/* ==========================================================================
   DXTR — public marketing site
   One stylesheet for index / privacy / terms / support.

   Aesthetic: lab instrument. Machined hairlines, monospace data readouts,
   coordinate-frame margins. Dark-first, fully theme-aware (system + manual
   toggle). Boldness is spent in exactly one place: the hero anagram readout.

   Brand system (canonical): primary #F03C00, indigo #3800F0, lime #DEFF24,
   error #E5484D. Martian Mono = display / labels / numbers (restraint);
   Geist = body. Pipeline "three-actor" content colors (HUMAN/OBJECT/ROBOT)
   are semantic to the pipeline and deliberately distinct from the brand trio.
   ========================================================================== */

/* ── self-hosted fonts (latin subset, from Google Fonts, no external CDN) ── */
@font-face { font-family:'Geist'; font-style:normal; font-weight:400; font-display:swap; src:url(fonts/geist-400.woff2) format('woff2'); }
@font-face { font-family:'Geist'; font-style:normal; font-weight:500; font-display:swap; src:url(fonts/geist-500.woff2) format('woff2'); }
@font-face { font-family:'Geist'; font-style:normal; font-weight:600; font-display:swap; src:url(fonts/geist-600.woff2) format('woff2'); }
@font-face { font-family:'Geist'; font-style:normal; font-weight:700; font-display:swap; src:url(fonts/geist-700.woff2) format('woff2'); }
@font-face { font-family:'Martian Mono'; font-style:normal; font-weight:400; font-display:swap; src:url(fonts/martianmono-400.woff2) format('woff2'); }
@font-face { font-family:'Martian Mono'; font-style:normal; font-weight:500; font-display:swap; src:url(fonts/martianmono-500.woff2) format('woff2'); }
@font-face { font-family:'Martian Mono'; font-style:normal; font-weight:600; font-display:swap; src:url(fonts/martianmono-600.woff2) format('woff2'); }
@font-face { font-family:'Martian Mono'; font-style:normal; font-weight:700; font-display:swap; src:url(fonts/martianmono-700.woff2) format('woff2'); }

/* ── tokens: light is the base palette; dark overrides below ─────────────── */
:root {
  /* surfaces */
  --bg:        #f4f3ef;
  --bg-2:      #eceae3;
  --panel:     #ffffff;
  --line:      #d9d6cc;
  --line-soft: #e6e3da;

  /* ink */
  --ink:   #16181c;
  --ink-2: #454b52;
  --ink-3: #6a7078;   /* small mono labels — clears 4.5:1 on --bg */

  /* brand identity trio */
  --accent:      #f03c00;   /* graphic / fills / borders */
  --accent-ink:  #c23100;   /* readable orange text on --bg */
  --indigo:      #3800f0;   /* graphic */
  --indigo-ink:  #3800f0;   /* dark enough to read on light */
  --lime:        #deff24;
  --lime-ink:    #5c6b00;   /* lime is unreadable as text on light */
  --error:       #d13438;

  /* pipeline three-actor semantics (distinct from the brand trio) */
  --c-human:  #e08a3c;  --c-human-ink:  #a85f16;
  --c-object: #2fbf9e;  --c-object-ink: #157f66;
  --c-robot:  #a08ad8;  --c-robot-ink:  #6a52ad;

  /* the anagram "instrument readout" — a physical light label in BOTH themes,
     so the true brand hexes #F03C00 / #3800F0 are shown authentically. */
  --readout-bg:   #f6f4ec;
  --readout-ink:  #1b1d22;
  --readout-line: rgba(0,0,0,.16);
  --readout-glow: 0 1px 0 rgba(255,255,255,.6);

  --maxw: 1120px;
  --focus: color-mix(in srgb, var(--accent) 55%, transparent);

  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* dark via system preference (only when the user hasn't forced light) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0b0d0f;
    --bg-2:      #101317;
    --panel:     #14181d;
    --line:      #242c33;
    --line-soft: #1a2027;

    --ink:   #eef2f5;
    --ink-2: #a5b0ba;
    --ink-3: #8b949d;

    --accent:      #f03c00;
    --accent-ink:  #ff6a38;
    --indigo:      #3800f0;
    --indigo-ink:  #9184ff;
    --lime:        #deff24;
    --lime-ink:    #cfe83f;
    --error:       #e5484d;

    --c-human:  #e08a3c;  --c-human-ink:  #e69a54;
    --c-object: #2fbf9e;  --c-object-ink: #3fd0ae;
    --c-robot:  #a08ad8;  --c-robot-ink:  #b6a2e6;

    --readout-bg:   #f6f4ec;
    --readout-ink:  #1b1d22;
    --readout-line: rgba(0,0,0,.14);
    --readout-glow: 0 0 44px rgba(240,60,0,.14), 0 0 1px rgba(0,0,0,.4);
  }
}

/* dark via manual toggle — wins in both directions */
:root[data-theme="dark"] {
  --bg:        #0b0d0f;
  --bg-2:      #101317;
  --panel:     #14181d;
  --line:      #242c33;
  --line-soft: #1a2027;

  --ink:   #eef2f5;
  --ink-2: #a5b0ba;
  --ink-3: #8b949d;

  --accent:      #f03c00;
  --accent-ink:  #ff6a38;
  --indigo:      #3800f0;
  --indigo-ink:  #9184ff;
  --lime:        #deff24;
  --lime-ink:    #cfe83f;
  --error:       #e5484d;

  --c-human:  #e08a3c;  --c-human-ink:  #e69a54;
  --c-object: #2fbf9e;  --c-object-ink: #3fd0ae;
  --c-robot:  #a08ad8;  --c-robot-ink:  #b6a2e6;

  --readout-bg:   #f6f4ec;
  --readout-ink:  #1b1d22;
  --readout-line: rgba(0,0,0,.14);
  --readout-glow: 0 0 44px rgba(240,60,0,.14), 0 0 1px rgba(0,0,0,.4);
}

/* ── reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); }

/* ── type utilities ─────────────────────────────────────────────────────── */
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: -.01em; }
.eyebrow {
  font-family: var(--mono); font-weight: 500; font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
}
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

/* ── page frame: faint centre rule so the layout reads as a spec sheet ───── */
.frame { position: relative; }

/* ── header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; gap: 20px;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand svg { width: 78px; height: auto; color: var(--ink); }
.brand .tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
  padding-left: 12px; border-left: 1px solid var(--line);
  display: none;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2);
  padding: 8px 12px; border-radius: 4px;
  transition: color .12s, background .12s;
}
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav .nav-hide { display: none; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2);
  transition: color .12s, border-color .12s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun,
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon,
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 500; font-size: 12px;
  letter-spacing: .04em; padding: 12px 18px; border-radius: 6px;
  border: 1px solid transparent; transition: transform .08s, background .14s, border-color .14s, color .14s;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--bg-2); }
.btn-sm { padding: 8px 13px; font-size: 11px; }
.btn .arrow { transition: transform .14s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── section scaffold ───────────────────────────────────────────────────── */
.section { border-top: 1px solid var(--line); padding-block: clamp(60px, 8.5vw, 116px); }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 40px; }
.section-head .idx {
  font-family: var(--mono); font-weight: 600; font-size: 12px;
  color: var(--accent-ink); letter-spacing: .04em;
}
.section-head h2 {
  font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -.02em; line-height: 1.1;
}
.section-head .rule { flex: 1; height: 1px; background: var(--line); align-self: center; }
.lead { color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 62ch; }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(52px, 8vw, 104px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-weight: 700; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(2.7rem, 7vw, 5rem);
}
.hero h1 .line2 { color: var(--ink-2); }
.hero .subhead { margin-top: 26px; max-width: 46ch; color: var(--ink-2); font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.55; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ── the signature: anagram instrument readout ──────────────────────────── */
.anagram { display: flex; flex-direction: column; gap: 14px; }
.readout {
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(15, 17, 22, .10);
  padding: clamp(20px, 3vw, 30px);
  position: relative; overflow: hidden;
}
.readout::before {
  /* faint machined grid inside the readout — theme-aware */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 100% 22px; opacity: .55;
}
.readout-top {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px;
  position: relative;
}
.readout-top .state { color: var(--ink-2); transition: color .5s; }
/* the toggling state label only makes sense in the animated view */
.anagram:not(.motion-on) .readout-top .state { display: none; }

/* the hex glyph line */
.hex {
  display: flex; align-items: center; gap: clamp(2px, 1vw, 10px);
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(2.4rem, 8.5vw, 4.6rem);
  line-height: 1; position: relative;
}
.hex .hash { color: rgba(27,29,34,.32); margin-right: 6px; font-weight: 500; }
.hex .g {
  color: #F03C00;                 /* human state — true brand orange */
  transition: color .6s cubic-bezier(.65,0,.35,1),
              transform .62s cubic-bezier(.65,0,.35,1);
  will-change: transform, color;
  display: inline-block; min-width: .62em; text-align: center;
}
.hex.is-robot .g { color: #3800F0; }  /* robot state — true brand indigo */
.hex .g.morph.flipping { animation: charflip .62s ease both; }
@keyframes charflip {
  0%   { opacity: 1; }
  46%  { opacity: 0; transform: translateX(var(--dx, 0)) scale(.86); }
  54%  { opacity: 0; }
  100% { opacity: 1; }
}
.readout-foot {
  margin-top: 18px; display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  color: rgba(27,29,34,.5); position: relative; text-transform: uppercase;
}
.readout-foot .swatch { width: 10px; height: 10px; border-radius: 2px; }

/* static fallback (no-JS / reduced motion): both states shown */
.anagram-static { display: grid; gap: 10px; }
.static-row { display: flex; align-items: center; gap: 14px; }
.static-row .lbl {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(27,29,34,.55); width: 52px;
}
.static-row .val { font-family: var(--mono); font-weight: 600; font-size: clamp(1.6rem,5vw,2.4rem); letter-spacing: .04em; }
.static-row.human .val { color: #F03C00; }
.static-row.robot .val { color: #3800F0; }
.anagram-live { display: none; }
.anagram.motion-on .anagram-static { display: none; }
.anagram.motion-on .anagram-live { display: block; }

/* caption under the readout */
.anagram-caption { color: var(--ink-2); font-size: .95rem; line-height: 1.5; max-width: 44ch; }
.anagram-caption b { color: var(--ink); font-weight: 600; }

/* product showcase — real screenshots */
.section-lede { color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; max-width: 62ch; margin: 4px 0 30px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.shot { margin: 0; }
.shot-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); box-shadow: 0 14px 46px rgba(20,22,28,.12); }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 13px; color: var(--ink-2); font-size: .9rem; line-height: 1.5; max-width: 52ch; }
.shot figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) { .shots { grid-template-columns: 1fr; } }
.shot-full { margin: 26px 0 0; }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 34px; }
.phone { margin: 0; }
.phone-frame { border-radius: 30px; overflow: hidden; border: 7px solid #0c0e11; background: #0c0e11; box-shadow: 0 18px 46px rgba(20,22,28,.22); }
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 23px; }
.phone figcaption { margin-top: 12px; color: var(--ink-2); font-size: .82rem; line-height: 1.45; text-align: center; }
.phone figcaption b { color: var(--ink); font-weight: 600; }

/* how-it-works — the end-to-end platform flow */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0; }
.flow-step { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 20px 22px; }
.flow-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.flow-n { font-family: var(--mono); font-weight: 600; color: var(--accent-ink); font-size: 12px; }
.flow-k { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.flow-step h3 { font-size: 1rem; margin-bottom: 8px; letter-spacing: -.01em; }
.flow-step p { color: var(--ink-2); font-size: .88rem; line-height: 1.5; }
.flow-arrow { align-self: center; color: var(--ink-3); font-family: var(--mono); font-size: 17px; padding: 0 8px; }
.flow-manage { margin-top: 22px; display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; border: 1px dashed var(--line); border-radius: 12px; padding: 16px 20px; background: var(--bg-2); }
.flow-manage-k { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); white-space: nowrap; }
.flow-manage span:last-child { color: var(--ink-2); font-size: .9rem; line-height: 1.5; flex: 1; min-width: 260px; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 12px; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; padding: 0; }
}
@media (max-width: 900px) { .phones { grid-template-columns: repeat(2, 1fr); gap: 18px; } }

/* hero signal-chain: human video -> object trajectory -> any robot */
.chain { list-style: none; margin: 6px 0 0; padding: 0; }
.chain-step { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; }
.chain-step + .chain-step { border-top: 1px solid var(--line, rgba(20,22,28,.09)); }
.chain-ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }
.chain-step.human  .chain-ico { background: color-mix(in srgb, var(--c-human) 15%, transparent);  color: var(--c-human-ink); }
.chain-step.object .chain-ico { background: color-mix(in srgb, var(--c-object) 15%, transparent); color: var(--c-object-ink); }
.chain-step.robot  .chain-ico { background: color-mix(in srgb, var(--c-robot) 15%, transparent);  color: var(--c-robot-ink); }
.chain-txt { display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.chain-txt b { font-size: .98rem; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.chain-txt span { color: var(--ink-2); font-size: .84rem; line-height: 1.4; }

/* ── PIPELINE (real 3-step sequence, numbering justified) ────────────────── */
.pipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pipe-step { background: var(--bg); padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.pipe-step .step-top { display: flex; align-items: center; justify-content: space-between; }
.pipe-step .step-n { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .1em; }
.pipe-step .actor { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; border: 1px solid; }
.pipe-step.human .step-n, .pipe-step.human .actor { color: var(--c-human-ink); }
.pipe-step.object .step-n, .pipe-step.object .actor { color: var(--c-object-ink); }
.pipe-step.robot .step-n, .pipe-step.robot .actor { color: var(--c-robot-ink); }
.pipe-step .actor { border-color: color-mix(in srgb, currentColor 45%, transparent); }
.pipe-diagram { height: 96px; width: 100%; }
.pipe-step.human .pipe-diagram { color: var(--c-human-ink); }
.pipe-step.object .pipe-diagram { color: var(--c-object-ink); }
.pipe-step.robot .pipe-diagram { color: var(--c-robot-ink); }
.pipe-step h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.pipe-step p { color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.pipe-step .tech { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .02em; margin-top: auto; padding-top: 6px; }

/* ── WHY object-centric (two-column argument + diagram) ──────────────────── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.why-cols { display: grid; gap: 26px; }
.why-card { border-left: 2px solid var(--line); padding-left: 20px; }
.why-card.fail { border-left-color: var(--error); }
.why-card.win { border-left-color: var(--c-object); }
.why-card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }
.why-card h3 .k { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.why-card.fail h3 .k { color: var(--error); }
.why-card.win h3 .k { color: var(--c-object-ink); }
.why-card p { color: var(--ink-2); font-size: .98rem; line-height: 1.58; }
.why-figure { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 22px; }
.why-figure figcaption { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 14px; }

/* ── PROOF band (instrument readouts, not big-number template) ───────────── */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 8px 26px; border-left: 1px solid var(--line); }
.proof-item:first-child { border-left: none; padding-left: 0; }
.proof-item .v { font-family: var(--mono); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -.01em; line-height: 1.1; }
.proof-item .v .u { color: var(--accent-ink); }
.proof-item .k { margin-top: 8px; font-size: .82rem; color: var(--ink-2); line-height: 1.45; }
.proof-note { margin-top: 26px; font-size: .82rem; color: var(--ink-3); max-width: 74ch; }

/* ── TWO AUDIENCES ──────────────────────────────────────────────────────── */
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 28px); }
.aud {
  border: 1px solid var(--line); border-radius: 14px; padding: clamp(26px, 3vw, 38px);
  display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden;
  background: var(--panel);
}
.aud .aud-k { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.aud h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -.02em; }
.aud p { color: var(--ink-2); font-size: .98rem; line-height: 1.58; }
.aud ul { list-style: none; display: grid; gap: 9px; }
.aud li { display: flex; gap: 10px; font-size: .92rem; color: var(--ink-2); }
.aud li::before { content: ""; width: 5px; height: 5px; margin-top: 8px; border-radius: 1px; background: var(--accent); flex: none; }
.aud .aud-cta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.aud.collect { border-top: 2px solid var(--accent); }
.aud.build { border-top: 2px solid var(--indigo); }
.aud .req { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .02em; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding-block: 54px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand svg { width: 74px; color: var(--ink); margin-bottom: 14px; }
.footer-brand p { color: var(--ink-3); font-size: .84rem; max-width: 30ch; line-height: 1.5; }
.footer-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--ink-2); font-size: .9rem; padding: 5px 0; transition: color .12s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer-bottom .legal { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--ink-3); }
.footer-bottom .hexnote { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--ink-3); }
.footer-bottom .hexnote .o { color: var(--accent-ink); } .footer-bottom .hexnote .i { color: var(--indigo-ink); }

/* ── legal / doc pages (privacy, terms, support) ────────────────────────── */
.doc { padding-block: clamp(40px, 6vw, 72px); }
.doc-head { border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 40px; }
.doc-head .eyebrow { margin-bottom: 14px; }
.doc-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -.03em; }
.doc-head .meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .9rem; color: var(--ink-2); }
.doc-body { max-width: 74ch; }
.doc-body h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; margin: 40px 0 12px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.doc-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.doc-body h3 { font-size: 1.05rem; font-weight: 600; margin: 26px 0 8px; }
.doc-body p { color: var(--ink-2); margin: 12px 0; line-height: 1.7; }
.doc-body ul { margin: 12px 0 12px 2px; padding-left: 20px; color: var(--ink-2); }
.doc-body li { margin: 8px 0; line-height: 1.6; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body a:not(.btn) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc-body code { font-family: var(--mono); font-size: .84em; background: var(--bg-2); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line-soft); }

/* fill-in placeholder chips for legal docs */
.fill {
  font-family: var(--mono); font-size: .82em; font-weight: 500;
  background: color-mix(in srgb, var(--lime) 30%, var(--bg));
  color: var(--ink); border: 1px dashed color-mix(in srgb, var(--lime-ink) 55%, var(--ink-3));
  padding: 1px 7px; border-radius: 4px; letter-spacing: .02em; white-space: nowrap;
}
:root[data-theme="dark"] .fill,
:root:not([data-theme="light"]) .fill { background: rgba(222,255,36,.14); border-color: rgba(222,255,36,.4); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .fill { background: color-mix(in srgb, var(--lime) 34%, #fff); } }

/* callout used on support/terms */
.callout { border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 8px; background: var(--bg-2); padding: 16px 18px; margin: 20px 0; }
.callout p { margin: 6px 0; }

/* FAQ (support) */
.faq { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq details { background: var(--bg); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1rem; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent-ink); font-size: 1.1rem; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--ink-2); line-height: 1.65; max-width: 70ch; }
.faq .faq-body p { margin: 8px 0; }
.faq .faq-body a:not(.btn) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

/* small building blocks reused across doc pages */
.support-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 26px 0 8px; }
.spec { border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.spec .k { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.spec .v { font-size: .95rem; color: var(--ink); line-height: 1.5; }
.spec .v b { font-weight: 600; }

/* ── overflow hardening: grid/flex children default to min-width:auto, which
   lets long content push past a narrow viewport. Pin them to 0 and let long
   monospace tokens break. ──────────────────────────────────────────────── */
.hero-grid, .why-grid, .aud-grid, .footer-grid, .pipe, .proof, .section-head { min-width: 0; }
.hero-copy, .anagram, .why-cols, .why-figure, .pipe-step, .aud, .footer-col, .footer-brand { min-width: 0; }
.section-head h2 { min-width: 0; }
.readout, .hex, .anagram-static { max-width: 100%; }
.readout-foot { flex-wrap: wrap; }
.pipe-step .tech, .proof-item .k, .anagram-caption, .doc-body p, .doc-body li, .faq .faq-body { overflow-wrap: anywhere; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .brand .tag { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .proof { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .proof-item { padding: 8px 22px; }
  .proof-item:nth-child(3) { border-left: none; padding-left: 0; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav .nav-hide { display: none; }
  .nav a.nav-min { display: none; }
  .pipe { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; }
  .proof-item { border-left: none; padding: 14px 0; border-top: 1px solid var(--line); }
  .proof-item:first-child { border-top: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 561px) { .brand .tag { display: inline-block; } }

/* ── motion guards ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.mail { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.mail:hover { border-bottom-color: var(--accent); }
