/* ============================================================
   Datacator — THE INSTRUMENT PANEL (v4, 2026-07-24)

   THESIS: owners are flying blind; instruments exist so you don't.
   The page alternates handbook pages (warm white, line-work, plain
   warm copy) and panel moments (navy, where instruments live).
   Refuses: card grids, eyebrow grammar, section numbers, mono
   costume, scattered entrance effects.
   OWN-WORLD: Brand Guidelines V1 palette/type, engraved bezels,
   graduation rings, two-tone needles, dotted checklist leaders,
   plotted course line-work.
   STORY: your questions → the checks you've tried → the instrument
   → one clear view (proof) → what you get → talk to us.
   FIRST VIEWPORT: directional gyro settling above the tagline,
   legal line at base; single action = scroll.
   FORM: grounded direction #4 (instrument panel), seed 7a165af8.

   All copy comes from content.js. Brand Guidelines V1 binding.
   ============================================================ */

:root {
  --navy:   #0D1B2A;
  --teal:   #00C2CB;
  --white:  #F8F9FA;
  --teal-text: #00757A; /* darkened from #00949B — 3.49:1 failed AA on white; same hue, 5.21:1 */

  --ink:    #1B2B3A;
  --slate:  #415A77;
  --mist:   #8B9BB0;
  --cloud:  #E1E5EA;
  --tint:   #E5F8F9;
  --amber:  #F4B740;
  --amber-text: #916208; /* darkened, same hue — #F4B740 is 1.7:1 on white, unusable as text/border */
  --green:  #2E9E6B;

  --font-head: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --col-max: 480px;
  --pad-x: clamp(20px, 6vw, 26px);

  --rule: 1px solid var(--cloud);
  --rule-inv: 1px solid rgba(248, 249, 250, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #0A1622;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.frame {
  max-width: var(--col-max);
  margin: 0 auto;
  background: var(--white);
  min-height: 100dvh;
}

h1, h2 { font-family: var(--font-head); color: var(--navy); margin: 0 0 0.45em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 8.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.06; }
h2 { font-size: clamp(1.4rem, 6vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; }
p  { margin: 0 0 1rem; text-wrap: pretty; }
/* Balance short standalone lines so they never break to a 2-word orphan */
.hero-sub, .advisory-line, .reveal-pre, .reveal-sub, .plot-caption,
.check-but, .outcome-item p, .price-disclaimer { text-wrap: balance; }
a  { color: var(--teal-text); text-decoration: none; }
img, svg { max-width: 100%; display: block; }

/* Screen-reader-only (keeps content reachable when a visual is aria-hidden) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Deliberate keyboard focus ring (teal, offset so it clears the shape) */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* mono = data & measurement ONLY */
.data {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0;
}

.section { padding: clamp(52px, 13vw, 72px) var(--pad-x); }
.section--panel { background: var(--navy); color: var(--white); }
.section--panel h1, .section--panel h2 { color: var(--white); }

.accent { color: var(--teal); }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.12s ease, transform 0.12s ease;
  text-decoration: none;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--teal); color: var(--navy); }

/* Engraved instrument label — Jakarta small caps, not mono */
.engraved {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============================================================
   1 · HERO — the directional gyro (panel moment)
   ============================================================ */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 24px var(--pad-x) 0;
  position: relative;
  overflow: hidden;
}
.hero-brandrow { position: relative; z-index: 3; display: flex; align-items: center; gap: 9px; }
.wordmark-svg { display: block; width: auto; }
.hero-brandrow .wordmark { height: 15px; }

/* B — the off-axis instrument, bled off the right edge, kept quiet
   so the headline leads (premium: one instrument, much air) */
.hero-instrument {
  position: absolute; z-index: 1; pointer-events: none;
  width: min(98vw, 440px);
  right: -32%; top: 9%;
  opacity: 0.9;
}
.hero-instrument .gyro { width: 100%; }
.hero-bearing {
  position: absolute; z-index: 2;
  right: 9%; top: 20%;
  font-family: var(--font-mono); font-size: 0.6875rem;
  letter-spacing: 0.14em; color: var(--teal);
}

/* dominant, left-aligned headline anchored low */
.hero-body {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 6px;
}
.hero h1 {
  font-size: clamp(2.5rem, 12vw, 3.1rem);
  letter-spacing: -0.032em; line-height: 1.02;
  max-width: 9ch; margin-bottom: 14px;
}
.hero-sub { color: var(--mist); font-size: 0.9rem; margin: 0; white-space: nowrap; }

/* C — cockpit readout strip: the systems the instrument reads.
   Honest (no numbers), teal only as tiny status pips. */
.hero-readout {
  position: relative; z-index: 2;
  border-top: var(--rule-inv);
  padding: 14px 0 16px;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
}
.hero-readout .sys {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.625rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist);
}
.hero-readout .sys::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--teal); flex: none;
}

.hero-foot {
  border-top: var(--rule-inv);
  padding: 13px 0 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 0.75rem;
  color: var(--mist);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 7px; }
.scroll-cue .chev {
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  transform: rotate(45deg);
  animation: cue-bob 1.9s ease-in-out infinite;
}
@keyframes cue-bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50%      { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

/* Needle settle: the page's one authored motion, everywhere a
   needle lives. Spring overshoot, then rest. */
.gyro .needle {
  transform-origin: 100px 100px;
  animation: needle-settle 1.7s cubic-bezier(.34, 1.56, .64, 1) 0.3s both;
}
@keyframes needle-settle {
  0%   { transform: rotate(-140deg); }
  55%  { transform: rotate(16deg); }
  80%  { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

/* ============================================================
   2 · QUESTIONS — the problem gauge (handbook page)
   ============================================================ */
.aud-toggle {
  display: inline-flex;
  border: 1px solid var(--cloud);
  border-radius: 4px;
  overflow: hidden;
  margin: 2px 0 10px;
  background: #fff;
}
.aud-toggle button {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.84rem;
  border: 0;
  background: transparent;
  color: var(--slate);
  padding: 11px 16px;
  min-height: 44px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.12s ease, color 0.12s ease;
}
.aud-toggle button + button { border-left: 1px solid var(--cloud); }
.aud-toggle button[aria-pressed="true"] { background: var(--navy); color: var(--white); }

.gauge-wrap { margin: 0 auto; max-width: 370px; }
.gauge { width: 100%; }
.gauge .bezel { stroke: var(--navy); stroke-width: 2.5; fill: #fff; }
.gauge .grad  { stroke: var(--mist); stroke-width: 1; }
.gauge .grad--major { stroke: var(--slate); stroke-width: 1.75; }
.gauge .dial-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  fill: var(--slate);
  cursor: pointer;
  transition: fill 0.12s ease;
}
.gauge .dial-label.active { fill: var(--teal-text); }
.gauge .dial-hit { fill: transparent; cursor: pointer; }
.gauge .dial-needle {
  transform-origin: 185px 185px;
  transition: transform 0.55s cubic-bezier(.34, 1.3, .64, 1);
}

.q-stage { min-height: 110px; text-align: center; padding: 10px 4px 0; }
.q-stage .q-stage-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--navy);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.q-stage.swap .q-stage-text { opacity: 0; transform: translateY(5px); }

/* Reduced-motion fallback: plain handbook list */
.q-plain { border-top: var(--rule); }
.q-plain .q-row { padding: 13px 2px; border-bottom: var(--rule); font-weight: 500; color: var(--ink); font-size: 0.95rem; }

/* ============================================================
   3 · ALTERNATIVES — the trap loop (each option leads to the
   next; the whole thing circles back to guessing)
   ============================================================ */
.alternatives .loop { position: relative; margin-top: 22px; }
.loop-list { list-style: none; margin: 0; padding: 0; position: relative; }
/* the through-line connecting every option, dashed = the cycle */
.loop-list::before {
  content: "";
  position: absolute; left: 7px; top: 18px; bottom: 6px;
  border-left: 2px dashed var(--mist);
}
/* arrowhead at the very top — the loop returns to the start */
.loop-list::after {
  content: "";
  position: absolute; left: 2px; top: 5px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid var(--mist);
}
.loop-node {
  position: relative; padding: 16px 0 16px 30px;
  border-bottom: var(--rule);
}
.loop-node:first-child { padding-top: 4px; }
.loop-node .ln-tick {
  position: absolute; left: 0; top: 20px;
  width: 15px; height: 15px; display: block;
}
.ln-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ln-name {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.05rem; letter-spacing: -0.01em; color: var(--navy);
}
.ln-tag {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 0.8125rem; font-weight: 600; color: var(--navy); white-space: nowrap;
}
.ln-tag--prose { font-family: var(--font-head); font-weight: 600; font-size: 0.8rem; color: var(--slate); }
.ln-but { margin: 6px 0 0; font-size: 0.9rem; color: var(--slate); line-height: 1.55; max-width: 42ch; }
/* the return: the loop closes — one deliberate hit of teal before the reveal */
.loop-back {
  position: relative; margin: 18px 0 0; padding-left: 30px;
  font-family: var(--font-head); font-weight: 650; font-size: 0.95rem;
  color: var(--teal-text); line-height: 1.4;
}
.loop-back::before {
  content: "\21BA"; /* ↺ */
  position: absolute; left: -1px; top: -3px;
  font-size: 20px; color: var(--teal);
}

/* ============================================================
   4 · REVEAL — the roles dial (panel moment)
   ============================================================ */
.reveal-sect { text-align: center; }
.reveal-pre { color: var(--cloud); font-size: 1rem; margin-bottom: 26px; }
.reveal-lockup {
  display: flex; align-items: center; justify-content: center; gap: 13px;
  margin-bottom: 6px;
}
.reveal-lockup .gyro { width: 56px; flex: none; }
.reveal-lockup .name { height: 34px; }
.reveal-sub { color: var(--mist); font-size: 0.9rem; margin: 16px 0 22px; }

.role-stage { min-height: 88px; }
.role-word {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.5rem; letter-spacing: -0.018em;
  color: var(--teal);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.role-meaning { color: var(--cloud); font-size: 1rem; margin-top: 4px; transition: opacity 0.25s ease; }
.role-stage.swap .role-word,
.role-stage.swap .role-meaning { opacity: 0; transform: translateY(5px); }

.role-ticks { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.role-ticks button {
  width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer;
  touch-action: manipulation;
}
.role-ticks button span {
  width: 2px; height: 12px;
  background: var(--slate);
  transition: background 0.12s ease, transform 0.12s ease;
}
.role-ticks button[aria-current="true"] span { background: var(--teal); transform: scaleY(1.33); }

.reveal-lockup .gyro .needle {
  animation: none;
  transform-origin: 100px 100px;
  transition: transform 0.5s cubic-bezier(.34, 1.3, .64, 1);
}

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.role-grid .cell { border: var(--rule-inv); border-radius: 4px; padding: 12px 14px; }
.role-grid .cell b { display: block; color: var(--teal); font-family: var(--font-head); font-size: 1rem; }
.role-grid .cell span { font-size: 0.875rem; color: var(--cloud); }

/* ============================================================
   5 · ONE CLEAR VIEW — course plot + proof readout + gauges
   ============================================================ */
.plot-wrap { margin: 6px 0 0; }
.plot text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  fill: var(--slate);
}
.plot .track { stroke: var(--mist); stroke-width: 1.25; stroke-dasharray: 4 5; fill: none; }
.plot .course { stroke: var(--teal); stroke-width: 2.25; fill: none; }
.plot .wp { stroke: var(--slate); stroke-width: 1.5; fill: #fff; }
.plot .wp-cross { stroke: var(--slate); stroke-width: 1.25; }
.plot .dot { fill: var(--teal); }
.plot .dest { stroke: var(--navy); stroke-width: 2; fill: #fff; }

.plot-caption {
  text-align: center;
  color: var(--slate);
  font-size: 0.875rem;
  margin: 8px 0 26px;
}

/* Proof readout: real product shot in a panel frame */
.readout { margin: 0 0 26px; }
.readout-frame {
  border: 2px solid var(--navy);
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy);
}
.readout-frame img { width: 100%; display: block; }
.readout-label {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px;
  background: var(--navy);
  color: var(--cloud);
}
.readout-label .engraved { color: var(--cloud); }
.readout-label .data { font-size: 0.7rem; color: var(--teal); }
.readout-note { font-size: 0.78rem; color: var(--slate); margin: 6px 2px 0; }

/* Clear-out modules: the four bearings the compass resolves to */
.module-out { border-top: var(--rule); margin: 6px 0 24px; }
.module-out .mo-row {
  display: flex; align-items: baseline; gap: 11px;
  padding: 13px 2px; border-bottom: var(--rule);
}
.module-out .mo-tick { flex: none; }
.module-out .mo-tick svg { width: 13px; height: 13px; display: block; transform: translateY(1px); }
.module-out .mo-name {
  font-family: var(--font-head); font-weight: 650;
  font-size: 0.98rem; letter-spacing: -0.01em; color: var(--navy);
}

.advisory-line { margin: 0 0 14px; font-size: 1rem; color: var(--ink); }
.advisory-line b { color: var(--teal-text); font-weight: 650; }

.principles { font-size: 0.875rem; color: var(--slate); margin: 0; }

/* ============================================================
   6 · OUTCOMES — trend indicators (panel moment)
   ============================================================ */
.outcome-list { margin-top: 6px; }
.outcome-item {
  display: flex; gap: 16px; align-items: center;
  padding: 18px 0;
  border-top: var(--rule-inv);
}
.outcome-item .ind { flex: none; width: 28px; height: 28px; }
.outcome-item .ind svg { width: 28px; height: 28px; display: block; }
.outcome-item p { margin: 0; color: var(--cloud); font-size: 1rem; }
.outcome-item b { color: var(--white); font-weight: 700; }

/* ── Pricing — three instrument cards (Lite ⊂ Pro ⊂ Enterprise) ──
   Mobile: a one-card-at-a-time carousel — flip left/right via arrows,
   ticks, or native swipe (scroll-snap). Desktop: all three in a row. */
.pricing-grid {
  margin-top: 10px; display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad-x);
  -webkit-overflow-scrolling: touch;
  margin-left: calc(-1 * var(--pad-x)); margin-right: calc(-1 * var(--pad-x));
  padding: 4px var(--pad-x) 10px;
  scrollbar-width: none;
}
.pricing-grid::-webkit-scrollbar { display: none; }

.pricing-card {
  flex: 0 0 calc(100% - 8px);
  scroll-snap-align: center;
  position: relative;
  border: 1px solid var(--cloud);
  border-radius: 10px;
  padding: 24px 22px 22px;
  background: #fff;
}
.pc-rec {
  border-color: var(--teal);
  border-width: 2px;
  padding-top: 22px;
  background: var(--tint);
  box-shadow: 0 12px 28px -18px rgba(13, 27, 42, 0.35);
}
.pc-badge {
  position: absolute; top: -11px; left: 22px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); background: var(--teal);
  padding: 3px 10px; border-radius: 999px;
}
.pc-name {
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
  font-size: 1.05rem; letter-spacing: -0.01em; margin: 0 0 4px;
}
.pc-tagline { font-size: 0.8rem; color: var(--slate); margin: 0 0 14px; text-wrap: balance; }

.pc-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pc-price-prefix { font-family: var(--font-mono); font-size: 0.7rem; color: var(--slate); }
.pc-price {
  font-family: var(--font-head); font-weight: 800; color: var(--navy);
  font-size: 1.5rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.pc-price-suffix { font-family: var(--font-mono); font-size: 0.72rem; color: var(--slate); }
.pc-setup {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.02em;
  color: var(--slate); margin: 4px 0 16px;
}

.pc-features { list-style: none; margin: 0; padding: 14px 0 0; border-top: var(--rule); }
.pc-features li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 0.86rem; color: var(--ink); padding: 6px 0;
}
.pc-check { flex: none; width: 14px; height: 14px; margin-top: 3px; }
.pc-check svg { width: 13px; height: 13px; display: block; }

.pc-addons { margin-top: 16px; padding-top: 14px; border-top: var(--rule); }
.pc-addons-label {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate); margin: 0 0 8px;
}
.pc-addon-row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 0.78rem; color: var(--slate); padding: 3px 0;
}
.pc-addon-price { font-family: var(--font-mono); color: var(--navy); }

/* Carousel nav — arrows + engraved dial ticks, mobile only */
.pricing-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.pn-arrow {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; padding: 0;
  background: transparent; border: 1.5px solid var(--cloud); border-radius: 50%;
  color: var(--navy); cursor: pointer; touch-action: manipulation;
}
.pn-arrow svg { width: 7px; height: 12px; display: block; }
.pn-arrow--next svg { transform: scaleX(-1); }
.pricing-ticks { display: flex; align-items: center; gap: 10px; }
.pn-tick { width: 22px; height: 22px; padding: 0; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; touch-action: manipulation; }
.pn-tick span { width: 16px; height: 2px; background: var(--cloud); transition: background 0.12s ease, transform 0.12s ease; }
.pn-tick--active span { background: var(--teal); transform: scaleX(1.2); }

/* Pick a plan — button per card, single-select, highlights + feeds CTA */
.pc-pick {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; margin-top: 18px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  padding: 11px 14px; border-radius: 6px; cursor: pointer;
  min-height: 44px; touch-action: manipulation;
  background: transparent; border: 1.5px solid var(--navy); color: var(--navy);
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.pc-pick:hover { background: var(--navy); color: #fff; }
.pc-pick--rec { border-color: var(--teal); background: var(--navy); color: #fff; }
.pc-pick--rec:hover { background: #0a1520; }
.pc-pick-check { display: none; width: 12px; height: 12px; }
.pc-pick-check svg { width: 12px; height: 12px; display: block; }
.pc-pick[aria-pressed="true"] .pc-pick-check { display: inline-block; }

.pricing-card.pc-selected {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13, 27, 42, 0.14);
}
.pricing-card.pc-selected.pc-rec {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 194, 203, 0.22);
}
.pricing-card.pc-selected .pc-pick { background: var(--navy); color: #fff; }
.pricing-card.pc-selected.pc-rec .pc-pick { background: var(--teal); border-color: var(--teal); color: var(--navy); }

.pricing .price-disclaimer { font-size: 0.78rem; color: var(--slate); margin: 20px 0 0; }

/* ── The spinning problem-compass ───────────────────────────── */
.spin-wrap {
  width: min(72vw, 280px);
  margin: 10px auto 2px;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
}
.spin-wrap.grab { cursor: grabbing; }
.spin-compass { width: 100%; display: block; }
/* rotate the needle around the compass centre, not the SVG origin */
#spinRotor { will-change: transform; transform-box: fill-box; transform-origin: center; }
.q-line {
  margin: 20px calc(-1 * var(--pad-x)) 2px;
  padding: 0 10px;
  text-align: center;
  min-height: 30px;
  display: flex; align-items: center; justify-content: center;
}
.q-line span {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700;
  letter-spacing: -0.015em; color: var(--navy);
  white-space: nowrap;
}
.spin-hint {
  text-align: center;
  font-family: var(--font-mono); font-size: 0.625rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate);
  margin: 8px 0 0;
}

/* ============================================================
   7 · CONTACT + FOOTER
   ============================================================ */
.contact-selected-note {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em;
  color: var(--teal-text); margin: -4px 0 12px;
}

/* Contact us — a down expansion, not a card or modal */
.contact-expand { margin: 4px 0 16px; text-align: left; }
.contact-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  list-style: none; cursor: pointer; user-select: none;
  border: 1.5px solid var(--navy); border-radius: 6px;
  padding: 13px 18px; min-height: 44px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--navy);
}
.contact-trigger::-webkit-details-marker { display: none; }
.contact-trigger .ct-chev {
  width: 8px; height: 8px; flex: none;
  border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy);
  transform: rotate(45deg); transition: transform 0.18s ease;
}
.contact-expand[open] .contact-trigger .ct-chev { transform: rotate(-135deg); }

.contact-form {
  margin-top: 14px; padding-top: 16px; border-top: var(--rule);
  display: flex; flex-direction: column; gap: 16px;
}
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-label { color: var(--slate); }
.cf-field input, .cf-field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--cloud);
  padding: 9px 2px; min-height: 44px; border-radius: 0;
  transition: border-color 0.12s ease;
}
.cf-field textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.cf-field input:focus, .cf-field textarea:focus { border-color: var(--teal); outline: none; }
.cf-error {
  display: none; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.02em; color: var(--amber-text); margin-top: -2px;
}
.cf-field--error input, .cf-field--error textarea { border-color: var(--amber-text); }
.cf-field--error .cf-error { display: block; }

.cf-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cf-copy {
  background: transparent; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  color: var(--teal-text); text-decoration: underline; text-underline-offset: 3px;
}
.cf-note { font-size: 0.78rem; color: var(--slate); margin: 0; }

.privacy-note { font-size: 0.78rem; color: var(--slate); margin: 0; max-width: 330px; }

.site-footer {
  background: var(--navy);
  color: var(--mist);
  font-size: 0.75rem;
  padding: 24px var(--pad-x) 32px;
  line-height: 1.9;
}

/* ============================================================
   DESKTOP — a real layout, not a phone column on a dark void.
   Wide frame; full-bleed section bands; content centred to a
   readable measure; a two-column hero.
   ============================================================ */
@media (min-width: 900px) {
  /* Full-bleed: the frame fills the viewport, bands go edge to edge,
     content centres inside. No dark side-frame. */
  .frame { max-width: none; }

  /* Section bands stay full-width; content centres to ~760px via
     padding that grows with the viewport. */
  .section {
    padding-top: clamp(80px, 8vw, 120px);
    padding-bottom: clamp(80px, 8vw, 120px);
    padding-left: max(56px, calc((100% - 760px) / 2));
    padding-right: max(56px, calc((100% - 760px) / 2));
  }
  h2 { font-size: 2.1rem; }

  /* ---- Hero: full-width navy band, content a centred two-column grid ---- */
  .hero {
    overflow: visible;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas:
      "brand  brand"
      "body   instrument"
      "readout readout"
      "foot   foot";
    column-gap: 48px;
    padding-top: 26px;
    padding-left: max(56px, calc((100% - 1160px) / 2));
    padding-right: max(56px, calc((100% - 1160px) / 2));
  }
  .hero-brandrow { grid-area: brand; }
  .hero-body {
    grid-area: body;
    justify-content: center;
    padding-bottom: 0;
  }
  .hero-instrument {
    grid-area: instrument;
    position: static; transform: none;
    width: 100%; max-width: 460px; justify-self: center; align-self: center;
    opacity: 1;
  }
  .hero-readout { grid-area: readout; }
  .hero-foot { grid-area: foot; }
  .hero h1 { font-size: clamp(3rem, 4.4vw, 3.9rem); max-width: 11ch; }
  .hero-sub { font-size: 1rem; }

  /* ---- Diagrams shouldn't balloon on wide screens ---- */
  .spin-wrap { width: 300px; }
  .plot-wrap, .flow-wrap { max-width: 440px; margin-left: auto; margin-right: auto; }
  .q-line { margin-left: 0; margin-right: 0; }
  .module-out { max-width: 620px; margin-left: auto; margin-right: auto; }

  /* ---- Pricing: three cards in a row, Pro raised above its flanks ----
     Desktop drops the mobile carousel entirely — no snap, no scroll, no nav. */
  .pricing { padding-left: max(56px, calc((100% - 1020px) / 2)); padding-right: max(56px, calc((100% - 1020px) / 2)); }
  .pricing-grid {
    flex-direction: row; align-items: flex-end; gap: 22px; margin-top: 44px;
    overflow-x: visible; scroll-snap-type: none;
    margin-left: 0; margin-right: 0; padding: 4px 0 10px;
  }
  .pricing-card { flex: 1 1 0; scroll-snap-align: none; display: flex; flex-direction: column; }
  .pc-rec { transform: translateY(-16px); padding-bottom: 38px; }
  .pc-pick { margin-top: 20px; }
  .pc-features { flex: 1; }
  .pricing-nav { display: none; }

  /* ---- Contact centres its column ---- */
  .contact { text-align: center; }
  .contact .privacy-note { margin-left: auto; margin-right: auto; }

  .site-footer { padding: 30px max(56px, calc((100% - 760px) / 2)) 40px; text-align: center; }
}

/* ============================================================
   Reduced motion — instruments at rest.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .gyro .needle { animation: none; }
  .scroll-cue .chev { animation: none; }
  .gauge .dial-needle, .reveal-lockup .gyro .needle, .mini-gauge .mini-needle { transition: none; }
  .btn, .aud-toggle button { transition: none; }
}
