/* ============================================================================
   platform.css — interactive surfaces. Calculator, onboarding, device.
   ========================================================================== */

/* Hero / intro */
.platform-hero {
  padding: 144px 32px 64px;
  background:
    radial-gradient(ellipse 1000px 600px at 50% 0%, rgba(0,190,90,0.06), transparent 60%),
    var(--bg);
  text-align: center;
}
.platform-hero .display {
  font-family: var(--font-sans);
  font-size: clamp(48px, 7vw, 88px); font-weight: 800;
  letter-spacing: -0.05em; line-height: 1.0;
  color: var(--text); max-width: 980px; margin: 24px auto 0;
}
.platform-hero .display .accent { color: var(--accent); }
.platform-hero .lede {
  margin: 32px auto 0; max-width: 680px;
  font-size: 19px; line-height: 1.65; color: var(--text-dim);
  letter-spacing: -0.01em;
}
.platform-hero .gbar { max-width: 480px; margin: 48px auto 0; }

/* Surface section header */
.surface {
  padding: 48px 32px;
  border-top: 1px solid var(--line-soft);
}
.surface.band { background: var(--bg-forest); }
.surface .container { max-width: 1200px; margin: 0 auto; }
.surface-head {
  display: flex; justify-content: space-between; gap: 48px;
  margin-bottom: 56px; align-items: flex-end;
}
.surface-head .lhs { flex: 1; max-width: 720px; }
.surface-head h2 {
  font-family: var(--font-sans); font-size: clamp(34px, 4vw, 52px);
  font-weight: 700; letter-spacing: -0.045em; line-height: 1.02;
  color: var(--text); margin: 12px 0 16px;
}
.surface-head h2 .accent { color: var(--accent); }
.surface-head h2 .dim { color: var(--text-dim); }
.surface-head .lede {
  font-size: 17px; color: var(--text-dim); line-height: 1.65;
  max-width: 640px; letter-spacing: -0.01em; margin: 0;
}
.surface-head .nda-stamp {
  font-family: var(--font-sans); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-mute); display: flex; flex-direction: column;
  gap: 4px; text-align: right; white-space: nowrap;
}
.surface-head .nda-stamp .v {
  font-family: var(--font-sans); font-weight: 600; font-size: 13px;
  text-transform: none; letter-spacing: -0.01em; color: var(--text-dim);
}
.surface-head .nda-stamp .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  margin-right: 6px; vertical-align: middle;
}

/* ============================================================================
   VIDEO PLAYER — clickable globe → in-place playback + scrub
   ========================================================================== */
.video-player {
  position: relative;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0,190,90,0.05), transparent 70%),
    #000;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Rotating + pulsing Earth globe — same as the homepage idle state. */
.video-player .globe-circle {
  position: relative;
  width: clamp(280px, 56%, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  background-image: url('earth-night.jpg');
  background-size: 200% 100%;
  background-repeat: repeat-x;
  background-position: 0 center;
  box-shadow:
    inset 0 0 80px rgba(0,0,0,0.55),
    0 0 64px rgba(0,190,90,0.08);
  animation:
    vpGlobeSpin 90s linear infinite,
    vpGlobePulse 1.6s cubic-bezier(.4,0,.2,1) infinite;
  transition: opacity 500ms ease;
}
@keyframes vpGlobeSpin { to { background-position: -200% center; } }
@keyframes vpGlobePulse {
  0%, 30%, 70%, 100% { transform: scale(1);    filter: brightness(1)    saturate(1); }
  45%                { transform: scale(1.03); filter: brightness(1.28) saturate(1.18); }
  55%                { transform: scale(1.03); filter: brightness(1.28) saturate(1.18); }
}
.video-player .globe-circle::before {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 50%, rgba(0,190,90,0.20) 60%, transparent 78%);
  pointer-events: none;
  animation: vpRimGlow 1.6s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes vpRimGlow {
  0%, 30%, 70%, 100% { opacity: 0.35; }
  50%                { opacity: 0.95; }
}
.video-player .globe-circle::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, transparent 50%, rgba(0,0,0,0.45) 92%);
  pointer-events: none;
}
.video-player .globe-bloom {
  position: absolute; top: 50%; left: 50%;
  width: clamp(280px, 56%, 480px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,190,90,0.45), transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: vpGlobeBloom 1.6s cubic-bezier(.4,0,.2,1) infinite;
  transition: opacity 500ms ease;
}
@keyframes vpGlobeBloom {
  0%, 35%, 65%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
  50%                { opacity: 0.55; transform: translate(-50%, -50%) scale(1.05); }
}

/* When playing: hide the idle visuals and reveal the <video>. */
.video-player video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
  display: block; background: #000; z-index: 1;
  opacity: 0; transition: opacity 600ms ease;
}
.video-player.playing video { opacity: 1; }
.video-player.playing .globe-circle,
.video-player.playing .globe-bloom { opacity: 0; pointer-events: none; }

/* Central play button */
.video-player .play-button {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(7,15,7,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(0,190,90,0.50);
  color: var(--text);
  z-index: 3; cursor: pointer; padding: 0;
  box-shadow: 0 6px 32px rgba(0,0,0,0.55), 0 0 24px rgba(0,190,90,0.18);
  transition: opacity 400ms ease, background 220ms ease, border-color 220ms ease,
              transform 220ms ease, box-shadow 220ms ease;
}
.video-player .play-button:hover {
  background: rgba(0,190,90,0.18);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 40px rgba(0,190,90,0.35);
}
.video-player .play-button .triangle {
  width: 0; height: 0;
  border-left: 22px solid var(--accent);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
  filter: drop-shadow(0 0 8px rgba(0,190,90,0.55));
}
.video-player .play-button::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(0,190,90,0.30);
  animation: vpPlayPulse 2.4s ease-out infinite;
}
@keyframes vpPlayPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.45); opacity: 0; }
}
.video-player.playing .play-button {
  opacity: 0; pointer-events: none;
}

/* Hovering a playing player reveals the pause overlay. */
.video-player.playing.paused .play-button { opacity: 1; pointer-events: auto; }
.video-player.playing.paused .play-button .triangle {
  /* keep play triangle while paused */
}

/* Bottom controls — scrub bar + time. Visible always when video has begun. */
.video-player .scrub {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 24px 16px;
  display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, transparent 0%, rgba(7,15,7,0.85) 80%);
  z-index: 4;
  opacity: 0; transform: translateY(8px);
  transition: opacity 320ms ease, transform 320ms ease;
  pointer-events: none;
}
.video-player.playing .scrub,
.video-player.playing:hover .scrub { opacity: 1; transform: translateY(0); pointer-events: auto; }
.video-player .scrub-track {
  position: relative; height: 4px;
  background: rgba(240,240,234,0.16);
  border-radius: 2px; cursor: pointer;
  transition: height 200ms ease;
}
.video-player .scrub:hover .scrub-track { height: 6px; }
.video-player .scrub-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0; background: var(--accent);
  border-radius: 2px; pointer-events: none;
}
.video-player .scrub-handle {
  position: absolute; left: 0; top: 50%;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0,190,90,0.6);
  transition: transform 200ms ease;
}
.video-player .scrub:hover .scrub-handle,
.video-player.scrubbing .scrub-handle { transform: translate(-50%, -50%) scale(1); }
.video-player .scrub-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-sans); font-weight: 600; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim);
  font-feature-settings: "tnum" on;
}

/* ============================================================================
   CALCULATOR — interactive globe + ecological readout
   ========================================================================== */
.calc-shell {
  display: block;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px; overflow: hidden;
  max-width: 1120px; margin: 0 auto;
}
.calc-globe {
  position: relative;
  width: 100%; aspect-ratio: 2 / 1;
  background: #000;
  overflow: hidden;
  cursor: default;
}
.calc-globe .map {
  position: absolute; inset: 0;
  background: url('earth-blue-marble.jpg') 0 0 / 100% 100% no-repeat; /* 2:1 image in 2:1 box -> undistorted; lat/lng pins align */
  opacity: 1; filter: brightness(0.66) saturate(0.9) contrast(1.03);
}
.calc-globe .map::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 0%, rgba(0,0,0,0.45) 100%);
}
.calc-globe .grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,190,90,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,190,90,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mix-blend-mode: screen; opacity: 0.4;
}
.calc-globe .crosshair-h, .calc-globe .crosshair-v {
  position: absolute; background: rgba(0,190,90,0.5);
  pointer-events: none; opacity: 0;
  transition: opacity 200ms ease;
}
.calc-globe .crosshair-h { left: 0; right: 0; height: 1px; }
.calc-globe .crosshair-v { top: 0; bottom: 0; width: 1px; }
.calc-globe.aiming .crosshair-h, .calc-globe.aiming .crosshair-v { opacity: 1; }
.calc-globe .marker {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 24px rgba(0,190,90,0.6);
  transform: translate(-50%, -50%);
  animation: markerPlace 800ms cubic-bezier(.16,1,.3,1);
}
.calc-globe .marker::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0.6;
}
.calc-globe .marker::after {
  content: ""; position: absolute; inset: -16px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0;
  animation: markerRipple 2s ease-out infinite;
}
@keyframes markerPlace {
  from { transform: translate(-50%, -50%) scale(0); }
  to { transform: translate(-50%, -50%) scale(1); }
}
@keyframes markerRipple {
  0% { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(3); opacity: 0; }
}
.calc-globe .marker .coords {
  position: absolute; top: 18px; left: 18px;
  font-family: var(--font-sans); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); white-space: nowrap;
}

.calc-globe .hint {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-sans); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--text-dim); text-align: center;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.calc-globe.has-point .hint { opacity: 0; }
.calc-globe .hint .big {
  font-family: var(--font-sans); font-size: 22px; font-weight: 600;
  text-transform: none; letter-spacing: -0.02em; color: var(--text);
  margin-bottom: 8px; display: block;
}

.calc-globe .corner {
  position: absolute; font-family: var(--font-sans); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-mute);
}
.calc-globe .corner.tl { top: 16px; left: 20px; }
.calc-globe .corner.tr { top: 16px; right: 20px; text-align: right; }
.calc-globe .corner.bl { bottom: 16px; left: 20px; }
.calc-globe .corner.br { bottom: 16px; right: 20px; text-align: right; }
.calc-globe .corner .v {
  display: block; color: var(--text); font-family: var(--font-sans);
  font-size: 12px; font-weight: 600; text-transform: none;
  letter-spacing: -0.01em; margin-top: 2px;
}

/* Readout replaces the map in place when a pin is clicked (no scrolling). */
.calc-readout {
  background: var(--bg);
  padding: 28px 32px 32px; min-width: 0;
  display: none; flex-direction: column; gap: 20px;
}
.calc-shell.show-readout .calc-globe { display: none; }
.calc-shell.show-readout .calc-readout { display: flex; }
.calc-back {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--text-dim);
  background: rgba(45,90,39,0.10); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 15px 7px 12px; cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.calc-back .bk { font-family: var(--font-mono); font-size: 15px; line-height: 1; }
.calc-back:hover { color: var(--text); border-color: var(--accent); background: rgba(0,190,90,0.12); }
.calc-readout .body { display: flex; flex-direction: column; gap: 20px; max-width: 920px; margin: 0 auto; width: 100%; }

.calc-readout .stamp {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent);
}
.calc-readout .stamp .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.calc-readout .eci {
  display: grid; grid-template-columns: auto 1fr;
  align-items: end; gap: 18px;
}
.calc-readout .eci .value {
  font-family: var(--font-sans); font-feature-settings: "tnum" on;
  font-size: 68px; font-weight: 800; letter-spacing: -0.045em;
  line-height: 0.9; color: var(--text);
}
.calc-readout .eci .meta {
  display: flex; flex-direction: column; gap: 6px;
  padding-bottom: 6px;
}
.calc-readout .eci .label {
  font-family: var(--font-sans); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-dim);
  line-height: 1.4; max-width: 200px;
}
.calc-readout .eci .delta {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  color: var(--accent); letter-spacing: -0.005em;
}

.calc-readout .dims {
  display: flex; flex-direction: column; gap: 12px;
}
.calc-readout .dim-row {
  display: grid; grid-template-columns: 110px 1fr 44px;
  gap: 14px; align-items: center;
}
.calc-readout .dim-row .code {
  font-family: var(--font-sans); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  line-height: 1.2;
}
.calc-readout .dim-row .bar {
  height: 6px; background: rgba(240,240,234,0.06); border-radius: 1px;
  overflow: hidden; position: relative;
}
.calc-readout .dim-row .bar .fill {
  height: 100%; width: 0; transform-origin: left;
  transition: width 1.2s cubic-bezier(.16,1,.3,1);
}
.calc-readout .dim-row .v {
  font-family: var(--font-sans); font-feature-settings: "tnum" on;
  font-size: 14px; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em; text-align: right;
}

.calc-readout .sources {
  padding-top: 18px; border-top: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.calc-readout .sources .head {
  font-family: var(--font-sans); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-mute);
}
.calc-readout .sources .chips {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.calc-readout .sources .chip {
  font-family: var(--font-sans); font-weight: 700; font-size: 10px; 
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 5px 10px;
  background: rgba(45,90,39,0.10);
  border: 1px solid rgba(0,190,90,0.16);
  border-radius: 3px;
  color: var(--text-dim);
}

.calc-readout .method-link {
  align-self: flex-start;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  color: var(--text-dim); text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px; letter-spacing: -0.005em;
  transition: color 160ms ease, border-color 160ms ease;
}
.calc-readout .method-link:hover {
  color: var(--accent); border-color: var(--accent);
}
.calc-readout .method-link .arrow {
  display: inline-block; transition: transform 160ms ease;
}
.calc-readout .method-link:hover .arrow { transform: translateX(2px); }

/* ============================================================================
   ONBOARDING — multi-step form
   ========================================================================== */
.onboard-shell {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px; overflow: hidden;
  min-height: 620px;
}
.onboard-steps {
  background: var(--bg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.onboard-steps .head {
  font-family: var(--font-sans); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--text-mute); margin-bottom: 12px;
}
.onboard-step {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 14px; border-radius: 4px;
  cursor: pointer;
  transition: background 200ms ease;
}
.onboard-step:hover { background: rgba(45,90,39,0.06); }
.onboard-step.active { background: rgba(45,90,39,0.10); }
.onboard-step.done { color: var(--text-dim); }
.onboard-step .ic {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  background: transparent; border: 1px solid var(--line);
  color: var(--text-mute);
}
.onboard-step.active .ic { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.onboard-step.done .ic { background: rgba(0,190,90,0.18); color: var(--accent); border-color: rgba(0,190,90,0.32); }
.onboard-step .label {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em;
}
.onboard-step.done .label { color: var(--text-dim); }
.onboard-step .desc {
  font-size: 11px; color: var(--text-mute); margin-top: 2px;
  letter-spacing: -0.01em;
}

.onboard-pane {
  background: var(--bg);
  padding: 40px 48px;
  display: flex; flex-direction: column;
}
.onboard-pane .head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px;
}
.onboard-pane h3 {
  font-family: var(--font-sans); font-size: 32px; font-weight: 700;
  letter-spacing: -0.035em; color: var(--text); margin: 0;
}
.onboard-pane .step-of {
  font-family: var(--font-sans); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-mute);
}
.onboard-pane .intro {
  font-size: 15px; color: var(--text-dim); line-height: 1.6;
  margin-bottom: 32px; max-width: 540px;
}

.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.form-row .label-row { display: flex; justify-content: space-between; align-items: baseline; }
.form-row label {
  font-family: var(--font-sans); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-dim);
}
.form-row .hint {
  font-family: var(--font-sans); font-size: 12px; color: var(--text-dim);
  letter-spacing: -0.005em;
}
.form-row input[type=text], .form-row input[type=number], .form-row textarea, .form-row select {
  width: 100%; padding: 14px 16px;
  background: rgba(45,90,39,0.06); color: var(--text);
  font-family: var(--font-sans); font-size: 15px; letter-spacing: -0.01em;
  border: 1px solid var(--line); border-radius: 4px;
  transition: border-color 200ms ease, background 200ms ease;
}
.form-row input::placeholder, .form-row textarea::placeholder {
  color: rgba(240,240,234,0.55);
  font-weight: 400;
  opacity: 1;
}
.form-row input:focus::placeholder, .form-row textarea:focus::placeholder {
  color: rgba(240,240,234,0.35);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--accent); background: rgba(45,90,39,0.08);
}
.form-row textarea { min-height: 88px; resize: vertical; font-family: var(--font-sans); }
.form-row .col2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-pick {
  padding: 10px 16px;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  letter-spacing: -0.01em; cursor: pointer;
  transition: all 200ms ease;
}
.chip-pick:hover { color: var(--text); border-color: var(--text-dim); }
.chip-pick.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.onboard-pane .nav {
  margin-top: auto; padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-soft);
}
.onboard-pane .nav .progress {
  height: 2px; flex: 1; max-width: 200px;
  background: rgba(240,240,234,0.06);
}
.onboard-pane .nav .progress .fill {
  height: 100%; width: 0;
  background: var(--accent);
  transition: width 600ms cubic-bezier(.16,1,.3,1);
}

/* Step 4 — review summary */
.review-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 24px;
}
.review-cell {
  background: rgba(45,90,39,0.06);
  border: 1px solid var(--line-soft);
  border-radius: 4px; padding: 16px;
}
.review-cell .label {
  font-family: var(--font-sans); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-mute);
  margin-bottom: 6px;
}
.review-cell .value {
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  color: var(--text); letter-spacing: -0.02em;
}

.deed-preview {
  background: #0d180c; border: 1px solid var(--line-accent);
  border-radius: 4px;
  padding: 28px 32px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.7;
  color: var(--text-dim);
  position: relative;
}
.deed-preview::before {
  content: "STEWARDSHIP TEMPLATE · PREVIEW · NOT BINDING";
  position: absolute; top: 12px; right: 14px;
  font-family: var(--font-sans); font-weight: 700; font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-mute);
}
.deed-preview h4 {
  font-family: var(--font-sans); font-size: 16px; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em;
  margin: 0 0 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.deed-preview .clause { margin: 12px 0; }
.deed-preview .clause .v { color: var(--accent); }

/* Step 4 final */
.onboard-final {
  background: rgba(0,190,90,0.06);
  border: 1px solid var(--line-accent);
  border-radius: 4px;
  padding: 18px 20px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  margin-top: 24px;
}
.onboard-final .text { font-size: 13px; color: var(--text-dim); line-height: 1.55; }
.onboard-final .text strong { color: var(--text); }

/* ============================================================================
   EARTH DASHBOARD — split layout: text left, wireframe globe right
   ========================================================================== */
#dashboard.surface { padding: 48px 32px; }
.dashboard-split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 1fr);
  gap: 48px; align-items: center;
  max-width: 1300px;
}
.dashboard-text { max-width: 540px; }
.dashboard-text .section-title {
  margin: 16px 0 16px;
  font-size: clamp(28px, 3vw, 40px);
}
.dashboard-text .lede {
  font-size: 16px; line-height: 1.6; color: var(--text-dim);
  letter-spacing: -0.005em; margin: 0;
}
.dashboard-modules {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.dashboard-modules li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px 10px 0;
  border-right: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text);
}
.dashboard-modules li:last-child { border-right: none; }
.dashboard-modules li:not(:first-child) { padding-left: 14px; }
.dashboard-modules .d-dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.dashboard-link {
  display: inline-flex; align-items: baseline; gap: 8px;
  margin-top: 24px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid rgba(0,190,90,0.40);
  padding-bottom: 4px;
  letter-spacing: -0.01em;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.dashboard-link:hover {
  color: var(--text); border-color: var(--accent);
}
.dashboard-link .arrow { transition: transform 160ms ease; }
.dashboard-link:hover .arrow { transform: translate(3px, -3px); }

.dashboard-globe-card {
  position: relative; display: block;
  aspect-ratio: 1; width: 100%; max-width: 460px;
  margin: 0 auto;
  border-radius: 50%;
  text-decoration: none;
  transition: filter 280ms ease, transform 280ms ease;
}
.dashboard-globe-card:hover { filter: brightness(1.08); transform: scale(1.01); }
.dashboard-globe-card .dg-svg {
  display: block; width: 100%; height: 100%;
  overflow: visible;
}
.dashboard-globe-card .dg-markers circle {
  filter: drop-shadow(0 0 6px currentColor);
  transform-origin: center;
  animation: dgDotPulse 3.4s ease-in-out infinite;
}
.dashboard-globe-card .dg-markers circle:nth-child(2n) { animation-delay: -0.6s; }
.dashboard-globe-card .dg-markers circle:nth-child(3n) { animation-delay: -1.2s; }
.dashboard-globe-card .dg-markers circle:nth-child(5n) { animation-delay: -2.0s; }
@keyframes dgDotPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50%      { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 880px) {
  .dashboard-split { grid-template-columns: 1fr; gap: 32px; }
  .dashboard-text { max-width: none; }
  .dashboard-globe-card { max-width: 360px; }
  .device-shell { grid-template-columns: 1fr; }
  .onboard-shell { grid-template-columns: 1fr; }
}

/* ============================================================================
   DEVICE — central holographic schematic with 5 sensor satellites
   (mirrors walkthrough scene 05; one node, five senses)
   ========================================================================== */
.device-shell {
  background:
    radial-gradient(ellipse 900px 480px at 50% 50%, rgba(0,190,90,0.10) 0%, transparent 65%),
    #000;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}
.device-canvas {
  position: relative;
  min-height: 640px;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--line-soft);
}
.device-canvas .grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,190,90,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,190,90,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mix-blend-mode: screen; opacity: 0.5;
}
.device-canvas .orbit {
  position: absolute; inset: 8% 6%; pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,190,90,0.05), transparent 70%);
}
.device-canvas .orbit::before,
.device-canvas .orbit::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(0,190,90,0.08);
}
.device-canvas .orbit::after {
  inset: 14%; border-color: rgba(0,190,90,0.05);
}
.device-canvas .lines {
  position: absolute; inset: 0; pointer-events: none;
  width: 100%; height: 100%;
}
.device-canvas .lines line {
  stroke: rgba(0,190,90,0.55);
  stroke-width: 1.2;
  stroke-dasharray: 3 6;
  animation: linesDash 30s linear infinite;
}
@keyframes linesDash { to { stroke-dashoffset: -200; } }

/* The central holographic schematic */
.device-tower {
  position: relative; z-index: 2;
  width: 120px; height: 220px;
  display: block;
}
.device-tower svg { width: 100%; height: 100%; display: block; }

/* Sensor satellites positioned on an ellipse */
.device-sensor {
  position: absolute; z-index: 3;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  cursor: pointer;
  user-select: none;
  background: transparent; border: none; padding: 0;
}
.device-sensor .ring {
  position: relative;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  box-shadow:
    0 0 0 6px #000,
    0 0 18px color-mix(in srgb, currentColor 30%, transparent),
    inset 0 0 14px color-mix(in srgb, currentColor 14%, transparent);
  transition: box-shadow 280ms ease, transform 280ms ease;
}
.device-sensor .ring::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid currentColor; opacity: 0;
  transition: opacity 280ms ease, transform 280ms ease;
}
.device-sensor:hover .ring,
.device-sensor.active .ring {
  background: transparent;
  box-shadow:
    0 0 0 6px #000,
    0 0 32px color-mix(in srgb, currentColor 70%, transparent),
    inset 0 0 20px color-mix(in srgb, currentColor 28%, transparent);
  transform: scale(1.10);
}
.device-sensor.active .ring::after {
  opacity: 0.55;
  animation: sensorRipple 2.8s ease-out infinite;
}
@keyframes sensorRipple {
  0%   { transform: scale(0.95); opacity: 0.55; }
  100% { transform: scale(1.25); opacity: 0; }
}
.device-sensor svg { width: 26px; height: 26px; }
.device-sensor .lbl {
  font-family: var(--font-sans); font-weight: 700; font-size: 10px; 
  text-transform: uppercase; letter-spacing: 0.16em;
  color: currentColor; white-space: nowrap;
}

/* Position the five senses around the central tower */
.device-sensor.weather  { top: 14%;  left: 50%; color: var(--dim-a2); }
.device-sensor.acoustic { top: 32%;  left: 16%; color: var(--dim-b2); }
.device-sensor.camera   { top: 32%;  left: 84%; color: var(--dim-b1); }
.device-sensor.soil     { top: 76%;  left: 22%; color: var(--dim-a1); }
.device-sensor.water    { top: 76%;  left: 78%; color: var(--dim-b3); }

/* Caption pinned to bottom-left of the canvas */
.device-canvas .canvas-caption {
  position: absolute; left: 32px; bottom: 32px;
  display: flex; flex-direction: column; gap: 4px;
}
.device-canvas .canvas-caption .h {
  font-family: var(--font-sans); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-mute);
}
.device-canvas .canvas-caption .t {
  font-family: var(--font-sans); font-size: 22px; font-weight: 700;
  letter-spacing: -0.025em; color: var(--text); line-height: 1.05;
}
.device-canvas .canvas-caption .t .accent { color: var(--accent); }
.device-canvas .canvas-caption .sub {
  font-family: var(--font-sans); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-mute);
  margin-top: 4px;
}

/* The status chip at top-right of canvas */
.device-canvas .canvas-status {
  position: absolute; top: 24px; right: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(7,15,7,0.6); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-sans); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-dim);
}
.device-canvas .canvas-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 2.4s ease-in-out infinite;
}

/* ============================================================================
   Info panel — to the right of the canvas
   ========================================================================== */
.device-panel {
  padding: 40px;
  display: flex; flex-direction: column; gap: 24px;
  background: var(--bg);
}
.device-panel .panel-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.device-panel .panel-head .num {
  font-family: var(--font-sans); font-weight: 700; font-size: 10px; 
  text-transform: uppercase; letter-spacing: 0.18em;
}
.device-panel .panel-head .step {
  font-family: var(--font-sans); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-mute);
}
.device-panel h3 {
  font-family: var(--font-sans); font-size: 36px; font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.0; color: var(--text);
  margin: 0;
}
.device-panel .what {
  font-size: 15px; color: var(--text-dim); line-height: 1.65;
  letter-spacing: -0.01em;
}
.device-panel .feeds {
  display: flex; flex-direction: column; gap: 8px;
}
.device-panel .feeds .h {
  font-family: var(--font-sans); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-mute);
}
.device-panel .feeds .chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  letter-spacing: -0.01em;
  align-self: flex-start;
}
.device-panel .feeds .chip .sw {
  width: 8px; height: 8px; border-radius: 1px;
  background: currentColor;
}
.device-panel .specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px; overflow: hidden;
}
.device-panel .specs .cell {
  background: var(--bg);
  padding: 14px 16px;
}
.device-panel .specs .cell .l {
  font-family: var(--font-sans); font-weight: 700; font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-mute);
  margin-bottom: 4px;
}
.device-panel .specs .cell .v {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em; line-height: 1.35;
}

/* Selector tab strip — five senses + the tower itself */
.sensor-tabs {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden;
}
.sensor-tabs button {
  background: rgba(45,90,39,0.04);
  border: none; padding: 12px 6px;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  cursor: pointer; color: var(--text-mute);
  font-family: var(--font-sans); font-weight: 700; font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.14em;
  transition: background 200ms ease, color 200ms ease;
}
.sensor-tabs button .swatch {
  width: 18px; height: 4px; border-radius: 1px; background: currentColor;
}
.sensor-tabs button:hover { background: rgba(45,90,39,0.10); color: var(--text-dim); }
.sensor-tabs button.active { background: rgba(45,90,39,0.18); color: currentColor; }

/* Component strip below — internal tower components */
.device-internals {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.device-internals .int {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: rgba(45,90,39,0.06);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}
.device-internals .int .ix {
  flex-shrink: 0; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(0,190,90,0.30);
  border-radius: 3px;
}
.device-internals .int .label {
  font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--text);
}
.device-internals .int .desc { font-size: 11px; color: var(--text-dim); line-height: 1.5; }


/* ============================================================================
   Calculator pins — preloaded representative points (assessments.json)
   ========================================================================== */
.calc-globe { cursor: default; }
/* The pin is a fixed-size hit box centered EXACTLY on the lat/lng coordinate.
   The dot is absolutely centered inside it and the label floats above as a
   tooltip — neither affects the dot's position (fixes the off-center drift). */
.calc-globe .calc-pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 20px; height: 20px; padding: 0;
  background: transparent; border: none; cursor: pointer; z-index: 3;
}
.calc-globe .calc-pin .pin-dot {
  position: absolute; top: 50%; left: 50%;
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--accent);
  /* crisp dark separator ring + green halo + soft glow */
  box-shadow:
    0 0 0 2px rgba(7,15,7,0.92),
    0 0 0 3.5px rgba(0,190,90,0.45),
    0 0 9px 1px rgba(0,190,90,0.55);
  transition: width 160ms ease, height 160ms ease, margin 160ms ease, box-shadow 200ms ease, background 160ms ease;
}
.calc-globe .calc-pin .pin-label {
  position: absolute; left: 50%; bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(4px);
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--text); white-space: nowrap;
  background: rgba(7,15,7,0.92); border: 1px solid rgba(0,190,90,0.35);
  padding: 3px 9px; border-radius: 999px; pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  opacity: 0; transition: opacity 150ms ease, transform 150ms ease;
}
.calc-globe .calc-pin:hover .pin-label,
.calc-globe .calc-pin:focus-visible .pin-label,
.calc-globe .calc-pin.active .pin-label { opacity: 1; transform: translateX(-50%) translateY(0); }
.calc-globe .calc-pin:hover .pin-dot,
.calc-globe .calc-pin:focus-visible .pin-dot {
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  box-shadow: 0 0 0 2px rgba(7,15,7,0.92), 0 0 0 4px rgba(0,190,90,0.6), 0 0 14px 2px rgba(0,190,90,0.75);
}
.calc-globe .calc-pin.active .pin-dot {
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: #2BE886;
  box-shadow: 0 0 0 2px rgba(7,15,7,0.95), 0 0 0 5px rgba(0,190,90,0.7), 0 0 18px 3px rgba(0,190,90,0.9);
}
.calc-globe .calc-pin:focus-visible { outline: none; }
.calc-globe .calc-pin:focus-visible .pin-dot { box-shadow: 0 0 0 2px rgba(7,15,7,0.95), 0 0 0 4px var(--accent), 0 0 14px 2px rgba(0,190,90,0.8); }
