/* ============================================================
   ECONOMIC TWIN — public site stylesheet
   Identity: "survey sheet" — a night chart-room: warm-black ground,
   paper ink, surveyor's amber, ruled sections, crop-mark corners,
   mono coordinates. Hand-rolled; no framework; fonts self-hosted.

   BRAND SWAP: the wordmark string lives in the HTML ("Economic Twin").
   grep -rl 'Economic Twin' web_public/public | xargs sed -i 's/Economic Twin/NewName/g'
   ============================================================ */

/* ---------- faces (latin subsets, /assets/fonts, ~159 KB total) ---------- */
@font-face {
  font-family: "Instrument Serif";
  src: url(/assets/fonts/InstrumentSerif-400.woff2) format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url(/assets/fonts/InstrumentSerif-400i.woff2) format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url(/assets/fonts/InstrumentSans-400.woff2) format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url(/assets/fonts/InstrumentSans-500.woff2) format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url(/assets/fonts/InstrumentSans-600.woff2) format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url(/assets/fonts/IBMPlexMono-400.woff2) format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url(/assets/fonts/IBMPlexMono-500.woff2) format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  /* ink on ground — warm, low saturation */
  --ground: #0f0d0a;
  --ground-2: #14110d;
  --panel: #171410;
  --paper: #e8e1d1;
  --ink-2: #b3a892;
  --ink-3: #7d735f;

  /* rules */
  --line: #29241b;
  --line-2: #3b3425;

  /* signal — one accent family */
  --sig: #4d9bff;      /* signal — the blue from sheet rev.0, kept by request */
  --sig-ink: #0a1220;  /* text on signal fill */
  --green: #8fac80;      /* modeled (app HUD code) */
  --err: #c06a4f;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --shell: 1160px;
  --gut: 20px;
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ground);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* the graticule: two faint rulings + a breathing-room vignette */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(to right,  transparent 0 119px, rgba(232, 225, 209, 0.028) 119px 120px),
    repeating-linear-gradient(to bottom, transparent 0 119px, rgba(232, 225, 209, 0.028) 119px 120px),
    radial-gradient(120% 90% at 50% 0%, #171410 0%, var(--ground) 58%);
}

img, svg { max-width: 100%; }
a { color: var(--sig); text-decoration: none; }
a:hover { color: #7ab4ff; text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--sig); color: var(--sig-ink); }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: 0.002em; }
.num, code { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gut); }
.hidden { display: none !important; }
.dim { color: var(--ink-3); }

/* mono micro-label — the house label style */
.kicker, .tag, .mlabel {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kicker { display: block; margin-bottom: 14px; color: var(--sig); }
.kicker::before { content: "// "; color: var(--ink-3); }

/* ---------- crop-mark corners (signature detail) ---------- */
.marked { position: relative; }
.marked::before, .marked::after,
.marked > .tick::before, .marked > .tick::after {
  content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none;
}
.marked::before        { top: -1px; left: -1px;  border-top: 1px solid var(--ink-3); border-left: 1px solid var(--ink-3); }
.marked::after         { top: -1px; right: -1px; border-top: 1px solid var(--ink-3); border-right: 1px solid var(--ink-3); }
.marked > .tick::before { bottom: -1px; left: -1px;  border-bottom: 1px solid var(--ink-3); border-left: 1px solid var(--ink-3); }
.marked > .tick::after  { bottom: -1px; right: -1px; border-bottom: 1px solid var(--ink-3); border-right: 1px solid var(--ink-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper); background: transparent;
  border: 1px solid var(--line-2); border-radius: 0;
  padding: 13px 20px; min-height: 44px;
  cursor: pointer; white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { border-color: var(--sig); color: var(--sig); text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primary { background: var(--sig); border-color: var(--sig); color: var(--sig-ink); }
.btn-primary:hover { background: #7ab4ff; border-color: #7ab4ff; color: var(--sig-ink); }
.btn-sm { padding: 9px 14px; min-height: 38px; font-size: 0.68rem; }
.btn-lg { padding: 15px 26px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15, 13, 10, 0.88);
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .shell {
  display: flex; align-items: center; gap: 18px;
  min-height: 60px; padding-top: 8px; padding-bottom: 8px;
}
.site-head.stuck { border-bottom-color: var(--line-2); }

.wordmark {
  display: inline-flex; align-items: baseline; gap: 10px;
  color: var(--paper); font-family: var(--serif); font-size: 1.22rem;
  letter-spacing: 0.01em; white-space: nowrap;
}
.wordmark:hover { color: var(--paper); text-decoration: none; }
.wordmark .glyph {
  align-self: center; width: 19px; height: 19px; flex: none;
  border: 1px solid var(--sig); border-radius: 50%;
  position: relative;
}
.wordmark .glyph::before, .wordmark .glyph::after {
  content: ""; position: absolute; background: var(--sig);
}
.wordmark .glyph::before { left: 50%; top: -3px; bottom: -3px; width: 1px; }
.wordmark .glyph::after  { top: 50%; left: -3px; right: -3px; height: 1px; }
.wordmark em { font-style: italic; color: var(--sig); }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-2);
}
.nav a:hover { color: var(--sig); text-decoration: none; }

@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 560px) { .site-head .head-signin { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 980px) { .hero-grid { grid-template-columns: 7fr 5fr; } }

.hero h1 {
  font-size: clamp(2.5rem, 8.4vw, 4.6rem);
  line-height: 1.04;
  margin: 10px 0 22px;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--sig); }
.lede {
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  color: var(--ink-2); max-width: 56ch;
  text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note {
  margin-top: 18px; font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.hero-note .pip {
  display: inline-block; width: 7px; height: 7px; margin-right: 7px;
  background: var(--green); border-radius: 50%;
  animation: pip 2.6s ease-in-out infinite;
}
@keyframes pip { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- globe plate ---------- */
.globe-stage { position: relative; margin: 0 auto; width: min(430px, 88vw); }
.plate-label {
  position: absolute; top: -26px; left: 0;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
}
.globe {
  position: relative; width: 100%; aspect-ratio: 1;
  border: 1px solid var(--line-2); border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #1d1913 0%, #14110d 52%, #0f0d0a 100%);
  overflow: hidden;
}
/* meridians + parallels: pure borders, no gradients-as-decoration */
.globe .parallels i, .globe .meridians i {
  position: absolute; border: 1px solid rgba(232, 225, 209, 0.07); border-radius: 50%;
}
.globe .parallels i { left: -2%; right: -2%; height: 0; border-width: 1px 0 0 0; border-radius: 0; }
.globe .parallels i:nth-child(1) { top: 24%; }
.globe .parallels i:nth-child(2) { top: 42%; }
.globe .parallels i:nth-child(3) { top: 60%; }
.globe .parallels i:nth-child(4) { top: 78%; }
.globe .meridians i { top: -1%; bottom: -1%; }
.globe .meridians i:nth-child(1) { left: 12%; right: 12%; }
.globe .meridians i:nth-child(2) { left: 30%; right: 30%; }
.globe .meridians i:nth-child(3) { left: 44%; right: 44%; }
.globe .equator {
  position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid rgba(77, 155, 255, 0.30);
}
.globe .sweep {
  position: absolute; inset: -1px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 86%, rgba(77, 155, 255, 0.11) 96%, transparent 100%);
  animation: sweep 14s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .globe .sweep { animation: none; opacity: 0; } }

.dots { position: absolute; inset: 0; }
.dots b {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--sig); box-shadow: 0 0 6px rgba(77, 155, 255, 0.55);
  animation: dot 3s ease-in-out infinite;
}
.dots b.m { background: var(--green); box-shadow: 0 0 5px rgba(143, 172, 128, 0.5); }
.dots b.s { width: 2px; height: 2px; background: var(--ink-3); box-shadow: none; }
@keyframes dot { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.readout {
  position: absolute; right: -6px; bottom: 4px;
  background: var(--ground-2); border: 1px solid var(--line-2);
  padding: 10px 13px; min-width: 205px;
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.75;
}
.readout .t { color: var(--sig); font-weight: 500; letter-spacing: 0.1em; font-size: 0.62rem; }
.readout .v { color: var(--paper); }
.readout .dim { font-size: 0.62rem; letter-spacing: 0.04em; }

/* ---------- archetype ticker ---------- */
.ticker {
  border-bottom: 1px solid var(--line);
  overflow: hidden; position: relative;
  padding: 13px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.ticker .belt {
  display: flex; gap: 0; width: max-content;
  animation: belt 110s linear infinite;
}
.ticker:hover .belt { animation-play-state: paused; }
@keyframes belt { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker .belt { animation: none; }
}
.ticker span {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2);
  white-space: nowrap; padding-right: 14px;
}
.ticker span::after { content: " /"; color: var(--line-2); padding-left: 14px; }
.ticker span i { font-style: normal; color: var(--sig); font-variant-numeric: tabular-nums; }
.ticker-cap {
  padding: 9px 0 0; text-align: left;
}

/* ---------- stat table ---------- */
.stats { border-bottom: 1px solid var(--line); background: var(--ground-2); }
.stats .shell {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
@media (min-width: 900px) { .stats .shell { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 26px 18px 24px; border-left: 1px solid var(--line);
  position: relative;
}
.stat:first-child { border-left: 0; }
@media (max-width: 899px) {
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
.stat .ix {
  font-family: var(--mono); font-size: 0.6rem; color: var(--ink-3);
  letter-spacing: 0.16em; display: block; margin-bottom: 10px;
}
.stat .v {
  font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums;
  font-size: clamp(1.05rem, 4.4vw, 1.9rem); color: var(--paper); line-height: 1.1;
}
.stat .l { margin-top: 8px; font-size: 0.8rem; color: var(--ink-3); line-height: 1.45; }

/* ---------- bands & sheet headers ---------- */
.band { padding: 76px 0; border-bottom: 1px solid var(--line); }
.band-head { max-width: 640px; margin-bottom: 44px; }
.band-head h2 { font-size: clamp(1.8rem, 5.4vw, 2.7rem); line-height: 1.12; margin-bottom: 16px; text-wrap: balance; }
.band-head .lede { font-size: 1rem; }
.sheet-ix {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--line); padding-bottom: 9px; margin-bottom: 34px;
}
.sheet-ix .co { letter-spacing: 0.06em; }

/* ---------- plates (capability cards) ---------- */
.plates { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 760px) { .plates { grid-template-columns: 1fr 1fr; } }
.plate {
  border: 1px solid var(--line); background: var(--ground-2);
  padding: 24px 22px 26px; position: relative;
}
.plate.wide { grid-column: 1 / -1; }
.plate .tag { display: block; margin-bottom: 14px; }
.plate .tag b { color: var(--sig); font-weight: 500; }
.plate h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.45rem; line-height: 1.15; margin-bottom: 12px; text-wrap: balance;
}
.plate p { font-size: 0.92rem; color: var(--ink-2); text-wrap: pretty; }
.plate p + p { margin-top: 11px; }

/* mono data tokens (the chip replacement) */
.tokens { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; }
.tokens span {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2);
  white-space: nowrap;
}
.tokens span::before { content: "[ "; color: var(--ink-3); }
.tokens span::after { content: " ]"; color: var(--ink-3); }
.tokens .n { color: var(--sig); font-variant-numeric: tabular-nums; }
.tokens .off { text-decoration: line-through; color: var(--ink-3); }
.tokens .off .n { color: var(--ink-3); }

/* the mini business-card mock inside a plate */
.mock {
  margin-top: 18px; border: 1px solid var(--line); background: var(--ground);
  padding: 14px 15px; font-family: var(--mono); font-size: 0.76rem;
}
.mock .row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.mock .k { color: var(--ink-3); }
.mock .v { color: var(--paper); text-align: right; }
.mock .v.obs { color: var(--sig); }
.split { display: flex; height: 8px; margin: 12px 0 8px; background: var(--line); }
.split span { height: 100%; }
.split .b2b { background: var(--sig); }
.split .b2c { background: var(--green); }
.split .gov { background: var(--ink-3); }
.split-key { display: flex; gap: 16px; font-size: 0.66rem; color: var(--ink-3); }
.split-key i {
  display: inline-block; width: 8px; height: 8px; margin-right: 5px; vertical-align: baseline;
}
.quote {
  margin-top: 16px; border-top: 1px solid var(--line); padding-top: 13px;
  font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--paper);
  text-wrap: pretty;
}
.quote cite {
  display: block; margin-top: 8px;
  font-family: var(--mono); font-style: normal; font-size: 0.64rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}

/* convergence sparkline */
.spark { display: block; width: 100%; height: 88px; margin-top: 18px; }
.spark .band-fill { fill: rgba(77, 155, 255, 0.12); stroke: none; }
.spark .mid { fill: none; stroke: var(--sig); stroke-width: 1.6; }
.spark .axis { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4; }
.spark-key {
  display: flex; justify-content: space-between; margin-top: 6px;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ---------- capture frames (screenshot placeholders) ---------- */
.frames { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 860px) { .frames { grid-template-columns: 1fr 1fr; } }
.frame {
  aspect-ratio: 16 / 10; position: relative;
  border: 1px dashed var(--line-2); background: var(--ground-2);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 20px;
}
.frame .mlabel { line-height: 2; letter-spacing: 0.14em; }
.frame .mlabel b { display: block; color: var(--ink-2); font-weight: 500; }

/* ---------- ask list ---------- */
.asks { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .asks { grid-template-columns: 1fr 1fr; } }
.ask {
  display: flex; gap: 14px; padding: 20px 6px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) {
  .ask:nth-child(odd) { padding-right: 34px; }
  .ask:nth-child(even) { padding-left: 34px; border-left: 1px solid var(--line); }
}
.ask .caret { font-family: var(--mono); color: var(--sig); flex: none; }
.ask p { font-family: var(--serif); font-size: 1.13rem; line-height: 1.4; color: var(--paper); text-wrap: pretty; }

/* ---------- provenance ledger ---------- */
.ledger { border-top: 1px solid var(--line-2); }
.tier {
  display: grid; grid-template-columns: 1fr; gap: 6px 30px;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) { .tier { grid-template-columns: 210px 1fr; } }
.tier h4 {
  font-family: var(--mono); font-weight: 500; font-size: 0.76rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--paper);
  display: flex; align-items: center; gap: 10px;
}
.tier .dot { width: 9px; height: 9px; flex: none; }
.tier.f .dot { background: var(--sig); }
.tier.e .dot { background: var(--green); }
.tier.s .dot { border: 1px solid var(--paper); background: transparent; }
.tier p { font-size: 0.92rem; color: var(--ink-2); text-wrap: pretty; }

.principles { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 860px) { .principles { grid-template-columns: 1fr 1fr; } }
.principle { border-top: 1px solid var(--line-2); padding-top: 16px; }
.principle .n { font-family: var(--mono); font-size: 0.68rem; color: var(--sig); letter-spacing: 0.16em; }
.principle h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin: 8px 0 8px; line-height: 1.2; text-wrap: balance; }
.principle p { font-size: 0.9rem; color: var(--ink-2); text-wrap: pretty; }

/* ---------- the synthetic-population principle block ---------- */
.synthetic {
  border-top: 3px double var(--line-2); border-bottom: 3px double var(--line-2);
  padding: 30px 0; margin-top: 54px;
}
.synthetic .mlabel { color: var(--sig); display: block; margin-bottom: 12px; }
.synthetic p.big {
  font-family: var(--serif); font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  line-height: 1.3; max-width: 30em; text-wrap: balance;
}
.synthetic p.small { margin-top: 12px; font-size: 0.9rem; color: var(--ink-2); max-width: 66ch; text-wrap: pretty; }

/* ---------- pricing ---------- */
.prices { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); }
@media (min-width: 700px) { .prices { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .prices { grid-template-columns: repeat(4, 1fr); } }
.price {
  padding: 26px 22px 28px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0; background: var(--ground-2);
}
.price:first-child { border-top: 0; }
@media (min-width: 700px) {
  .price { border-top: 0; border-left: 1px solid var(--line); }
  .price:nth-child(odd) { border-left: 0; }
  .price:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (min-width: 1020px) {
  .price { border-top: 0 !important; border-left: 1px solid var(--line); }
  .price:first-child { border-left: 0; }
}
.price.featured { background: var(--panel); box-shadow: inset 0 3px 0 var(--sig); }
.price .name {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.price.featured .name { color: var(--sig); }
.price .amt { font-family: var(--serif); font-size: 2.1rem; margin: 12px 0 4px; }
.price .amt small { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.price .blurb { font-size: 0.84rem; color: var(--ink-3); min-height: 2.6em; text-wrap: pretty; }
.price ul { list-style: none; padding: 14px 0 20px; flex: 1; }
.price li {
  font-size: 0.86rem; color: var(--ink-2); padding: 6px 0 6px 20px; position: relative;
}
.price li::before {
  content: "+"; position: absolute; left: 2px;
  font-family: var(--mono); color: var(--sig);
}
.price-note {
  margin-top: 16px; font-family: var(--mono); font-size: 0.7rem;
  color: var(--ink-3); letter-spacing: 0.06em;
}

/* ---------- access / waitlist ---------- */
.cta-wrap { max-width: 620px; }
.cta-wrap h2 { font-size: clamp(2rem, 6.4vw, 3.1rem); margin-bottom: 16px; }
.form.inline { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.form.inline .field { flex: 1 1 240px; }
.field {
  background: var(--ground-2); border: 1px solid var(--line-2); border-radius: 0;
  color: var(--paper); font-family: var(--mono); font-size: 0.9rem;
  padding: 13px 14px; min-height: 44px; width: 100%;
}
.field::placeholder { color: var(--ink-3); }
.field:focus { outline: none; border-color: var(--sig); }
.msg { margin-top: 12px; font-family: var(--mono); font-size: 0.78rem; min-height: 1.2em; }
.msg.ok { color: var(--green); }
.msg.err { color: var(--err); }

/* ---------- footer ---------- */
.site-foot { padding: 44px 0 54px; }
.site-foot .shell {
  display: grid; grid-template-columns: 1fr; gap: 30px;
}
@media (min-width: 860px) { .site-foot .shell { grid-template-columns: 1.4fr 1fr; } }
.colophon {
  font-family: var(--mono); font-size: 0.7rem; line-height: 2;
  color: var(--ink-3); letter-spacing: 0.04em;
}
.colophon .row1 { color: var(--ink-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
@media (min-width: 860px) { .foot-links { justify-content: flex-end; } }
.foot-links a {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2);
}
.foot-links a:hover { color: var(--sig); text-decoration: none; }
.foot-synth {
  grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px;
  font-size: 0.8rem; color: var(--ink-3); max-width: 76ch; text-wrap: pretty;
}
.foot-synth b { color: var(--ink-2); font-weight: 500; }

/* ---------- doc pages (product / security / contact) ---------- */
.doc { padding: 64px 0 80px; }
.doc-head { max-width: 680px; margin-bottom: 40px; }
.doc-head h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.06; margin: 10px 0 18px; text-wrap: balance; }
.doc h2 {
  font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 52px 0 14px; text-wrap: balance;
}
.doc h2:first-of-type { margin-top: 0; }
.doc p { color: var(--ink-2); max-width: 70ch; text-wrap: pretty; }
.doc p + p { margin-top: 12px; }
.doc ul.plain { list-style: none; padding: 6px 0; max-width: 70ch; }
.doc ul.plain li {
  padding: 9px 0 9px 22px; position: relative; color: var(--ink-2);
  border-bottom: 1px solid var(--line); font-size: 0.94rem;
}
.doc ul.plain li::before { content: "+"; position: absolute; left: 2px; font-family: var(--mono); color: var(--sig); }
.spec {
  width: 100%; border-collapse: collapse; margin: 18px 0 8px;
  font-size: 0.88rem;
}
.spec td, .spec th {
  border-top: 1px solid var(--line); padding: 10px 14px 10px 0;
  text-align: left; vertical-align: top; color: var(--ink-2);
}
.spec th { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.spec td:first-child { font-family: var(--mono); font-size: 0.78rem; color: var(--paper); white-space: nowrap; }
.spec .n { color: var(--sig); font-variant-numeric: tabular-nums; }

/* ---------- auth pages ---------- */
.stage { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 48px var(--gut); }
.auth-card {
  width: 100%; max-width: 400px;
  border: 1px solid var(--line-2); background: var(--ground-2);
  padding: 34px 30px 30px;
}
.auth-card h1 { font-size: 1.9rem; margin-bottom: 6px; }
.auth-card > p { color: var(--ink-3); font-size: 0.9rem; margin-bottom: 24px; }
.auth-card label {
  display: block; margin: 14px 0 6px;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-3);
}
.btn-google { width: 100%; }
.or {
  display: flex; align-items: center; gap: 14px; margin: 20px 0 6px;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-3);
}
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-card .btn-primary { margin-top: 18px; }
.switcher { margin-top: 16px; font-size: 0.84rem; color: var(--ink-3); }
.switcher button {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--sig); font: inherit;
}
.switcher button:hover { text-decoration: underline; }

/* ---------- app shell ---------- */
.app-bar { border-bottom: 1px solid var(--line); background: var(--ground-2); }
.app-bar .shell { display: flex; align-items: center; min-height: 58px; gap: 16px; }
.app-bar .who { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.app-bar .em { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }
@media (max-width: 640px) { .app-bar .em { display: none; } }
.app-bar .avatar {
  width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.7rem; color: var(--sig);
  text-transform: uppercase;
}
.stage-inner { text-align: center; max-width: 560px; }
.status-pill {
  display: inline-block; margin-bottom: 18px; padding: 7px 14px;
  border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-2);
}
.status-pill.ok { border-color: var(--green); color: var(--green); }
.status-pill.pending { border-color: var(--sig); color: var(--sig); }
.stage-inner h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); margin-bottom: 12px; }
.loader {
  width: 34px; height: 34px; margin: 0 auto 22px;
  border: 1px solid var(--line-2); border-top-color: var(--sig);
  border-radius: 50%; animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loader { animation-duration: 3s; } }
.checklist { list-style: none; margin: 26px auto 0; max-width: 330px; text-align: left; }
.checklist li {
  display: flex; align-items: center; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-3);
}
.checklist li.done { color: var(--paper); }
.checklist .box { width: 12px; height: 12px; border: 1px solid var(--line-2); flex: none; }
.checklist li.done .box { background: var(--sig); border-color: var(--sig); }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 40px 0; }
.lost .coords { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--ink-3); }
.lost h1 { font-size: clamp(2.4rem, 9vw, 4rem); margin: 14px 0 12px; }

/* Shared mobile navigation and product benefits. */
.mobile-nav-toggle { display:none; min-width:44px; min-height:44px; color:var(--paper); background:transparent; border:1px solid var(--line-2); border-radius:6px; font-size:1.3rem; cursor:pointer; }
.mobile-site-navigation[hidden] { display:none !important; }
.mobile-site-navigation { display:none; }
.mobile-nav-toggle:focus-visible,.mobile-site-navigation a:focus-visible { outline:2px solid var(--sig); outline-offset:3px; }
.product-benefits { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:24px 0 32px; }
.product-benefit { padding:22px; border:1px solid var(--line); border-radius:8px; background:var(--surface,var(--ground)); }
.product-benefit h3 { margin:0 0 10px; font-family:var(--serif); font-size:1.3rem; }
.product-benefit p { margin:0; font-size:.95rem; }
@media (max-width:860px) {
  .site-head .shell { position:relative; flex-wrap:wrap; gap:10px; }
  .mobile-nav-toggle { display:inline-flex; align-items:center; justify-content:center; margin-left:auto; }
  .site-head .shell > .btn { display:none; }
  .mobile-site-navigation { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:100%; padding:12px 0; max-height:70vh; overflow:auto; }
  .mobile-site-navigation a { display:flex; align-items:center; min-height:48px; padding:12px; border:1px solid var(--line); border-radius:6px; font-size:.9rem; color:var(--paper); }
  .mobile-site-navigation a:hover { color:var(--sig); border-color:var(--sig); text-decoration:none; }
}
@media (max-width:560px) { .product-benefits { grid-template-columns:1fr; } }
