/* ================================================================ tokens */
:root {
  /* The night is fixed in both themes. The consolidation pass really does run
     at night, off the write path, so the ground is information not decor. */
  --night:          #090D20;
  --night-2:        #121834;
  --night-3:        #1C2348;
  --night-text:     #EDEBF6;
  --night-muted:    #ADAFCC;
  --night-line:     rgba(237,235,246,0.16);
  --night-accent:   #F2AE45;
  --night-settled:  #74CBA6;
  --night-contested:#E88A94;

  --bg:         #EFEEF5;
  --surface:    #FBFAFD;
  --surface-2:  #E4E3EF;
  --text:       #10142C;
  --muted:      #525675;
  --line:       rgba(16,20,44,0.16);
  --line-soft:  rgba(16,20,44,0.075);
  --accent:     #A2620A;
  --accent-soft:rgba(162,98,10,0.10);
  --settled:    #196B4F;
  --contested:  #A32F3E;
  --shadow:     0 1px 2px rgba(16,20,44,.05), 0 18px 44px -24px rgba(16,20,44,.34);

  --wrap: 1140px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --sec: clamp(4.5rem, 9vw, 8rem);
  --measure: 68ch;
  --ease: cubic-bezier(.16,.84,.32,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #0C1024;
    --surface:    #161B38;
    --surface-2:  #1E254A;
    --text:       #EDEBF6;
    --muted:      #A9ABC9;
    --line:       rgba(237,235,246,0.17);
    --line-soft:  rgba(237,235,246,0.085);
    --accent:     #F2AE45;
    --accent-soft:rgba(242,174,69,0.13);
    --settled:    #74CBA6;
    --contested:  #E88A94;
    --shadow:     0 1px 2px rgba(0,0,0,.35), 0 20px 48px -26px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"] {
  --bg:         #0C1024;
  --surface:    #161B38;
  --surface-2:  #1E254A;
  --text:       #EDEBF6;
  --muted:      #A9ABC9;
  --line:       rgba(237,235,246,0.17);
  --line-soft:  rgba(237,235,246,0.085);
  --accent:     #F2AE45;
  --accent-soft:rgba(242,174,69,0.13);
  --settled:    #74CBA6;
  --contested:  #E88A94;
  --shadow:     0 1px 2px rgba(0,0,0,.35), 0 20px 48px -26px rgba(0,0,0,.8);
}

/* ================================================================== base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

/* `hidden` must beat any display a class sets, or an element the markup hides
   is shown anyway. The signup confirmation was styled `display: flex` and
   carried `hidden`, and the class won: every visitor saw "You are on the list"
   sitting under the empty form they had not submitted yet. */
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.display {
  font-family: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.0;
}
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem; font-weight: 500; letter-spacing: .17em; text-transform: uppercase;
}
.mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ============================================================ night skin */
.night {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night);
  color: var(--night-text);
  --local-line: var(--night-line);
  --local-muted: var(--night-muted);
  --local-accent: var(--night-accent);
  --local-surface: var(--night-2);
  --local-settled: var(--night-settled);
  --local-contested: var(--night-contested);
}
.day {
  position: relative;
  background: var(--bg);
  color: var(--text);
  --local-line: var(--line);
  --local-muted: var(--muted);
  --local-accent: var(--accent);
  --local-surface: var(--surface);
  --local-settled: var(--settled);
  --local-contested: var(--contested);
}

/* aurora: slow drifting light behind the night sections */
.aurora { position: absolute; inset: -25% -10%; z-index: -1; pointer-events: none; opacity: .55; }
.aurora i {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(70px);
}
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -6%;  top: 4%;   background: radial-gradient(circle, rgba(96,86,208,.50), transparent 68%); }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; right: -4%; top: 26%;  background: radial-gradient(circle, rgba(242,174,69,.24), transparent 68%); }
.aurora i:nth-child(3) { width: 52vw; height: 52vw; left: 26%;  bottom: -18%; background: radial-gradient(circle, rgba(58,150,190,.30), transparent 70%); }

/* ============================================================= progress */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--accent), #F2AE45);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ================================================================== nav */
.masthead {
  position: relative; z-index: 3;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; padding-block: 1.7rem 0;
}
.mark { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.mark-name {
  font-family: "Bricolage Grotesque", Helvetica, Arial, sans-serif;
  font-size: 1.28rem; font-weight: 700; letter-spacing: -.02em;
}
.mark-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--night-accent); flex: none;
  box-shadow: 0 0 0 0 rgba(242,174,69,.55);
}
.navlinks { display: flex; gap: 1.75rem; align-items: baseline; flex-wrap: wrap; }
.navlinks a {
  text-decoration: none; color: var(--night-muted); font-size: .82rem;
  padding-bottom: .25rem; border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.navlinks a:hover { color: var(--night-text); border-bottom-color: var(--night-accent); }

/* ================================================================= hero */
.hero { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; pointer-events: none; }
.hero-veil {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(9,13,32,0) 0%, rgba(9,13,32,.9) 76%, var(--night) 100%);
}
.hero > .wrap { position: relative; z-index: 2; }
.hero-body { padding-block: clamp(3.5rem, 8vw, 6.5rem) 0; }
.hero-eyebrow { color: var(--night-accent); margin-bottom: 1.7rem; display: block; }
.hero h1 { font-size: clamp(3.15rem, 9.6vw, 7rem); max-width: 13ch; margin-bottom: 1.25rem; line-height: .96; }
.hero-tag {
  font-family: "Bricolage Grotesque", Helvetica, Arial, sans-serif;
  font-weight: 600; letter-spacing: -.022em; line-height: 1.24;
  font-size: clamp(1.24rem, 2.55vw, 1.78rem);
  max-width: 26ch; color: var(--night-text); margin-bottom: 1.15rem;
}
.hero h1 .glow {
  color: var(--night-accent);
  text-shadow: 0 0 34px rgba(242,174,69,.42), 0 0 80px rgba(242,174,69,.18);
}
.hero-deck { color: var(--night-muted); font-size: clamp(1.03rem, 1.5vw, 1.2rem); max-width: 56ch; }
.hero-deck strong { color: var(--night-text); font-weight: 500; }

.cta-row { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2.5rem; }
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.6rem; border-radius: 2px; text-decoration: none;
  font-size: .88rem; font-weight: 600; letter-spacing: .01em; border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -140%; width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.btn:hover::after { animation: sheen .85s var(--ease) forwards; }
@keyframes sheen { to { left: 150%; } }
.btn-primary { background: var(--night-accent); color: #23170A; box-shadow: 0 0 0 rgba(242,174,69,0); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -14px rgba(242,174,69,.75); }
.btn-ghost { border-color: var(--night-line); color: var(--night-text); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--night-accent); }

/* the two products, stated immediately */
.duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--night-line); border: 1px solid var(--night-line);
}
.duo-cell {
  position: relative; overflow: hidden;
  background: var(--night); padding: 2rem 1.85rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: background .45s var(--ease);
}
.duo-cell::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(242,174,69,.13), transparent 62%);
  transition: opacity .5s var(--ease);
}
.duo-cell:hover::before { opacity: 1; }
.duo-cell .eyebrow { color: var(--night-muted); position: relative; }
.duo-name {
  font-family: "Bricolage Grotesque", Helvetica, Arial, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.15rem); font-weight: 700; letter-spacing: -.025em; position: relative;
}
.duo-cell p { color: var(--night-muted); font-size: .95rem; position: relative; }
.duo-cell .cadence { color: var(--night-accent); }

/* ============================================================== section */
.section { padding-block: var(--sec); }
.section-head { display: flex; flex-direction: column; gap: 1.15rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { color: var(--local-accent); }
.section-head h2 { font-size: clamp(2.15rem, 4.7vw, 3.5rem); max-width: 19ch; line-height: 1.03; }
.section-head p { color: var(--local-muted); max-width: var(--measure); font-size: 1.06rem; }

/* =========================================================== audit table */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 3.4vw, 3.2rem); }
.step { position: relative; padding-top: 1.7rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .7rem; }
.step::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 16px rgba(242,174,69,.55);
}
.step-when { font-family: "IBM Plex Mono", monospace; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.step h3 { font-family: "Bricolage Grotesque", Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -.022em; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.12; }
.step p { color: var(--muted); font-size: .96rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ======================================================== product panels */
.panel-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start;
}
.feature-list { display: flex; flex-direction: column; }
.feature {
  display: grid; gap: .45rem; padding: 1.4rem 1rem 1.4rem 0;
  border-top: 1px solid var(--local-line);
  transition: padding-left .4s var(--ease), background .4s var(--ease);
}
.feature:last-child { border-bottom: 1px solid var(--local-line); }
.feature:hover { padding-left: 1rem; background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.feature h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.008em; }
.feature p { color: var(--local-muted); font-size: .95rem; }
.feature code { font-family: "IBM Plex Mono", monospace; font-size: .86em; color: var(--local-accent); }

.instrument { border: 1px solid var(--local-line); padding: 1.7rem 1.6rem; background: rgba(255,255,255,.012); }
.instrument-title {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-bottom: 1.3rem; border-bottom: 1px solid var(--local-line); margin-bottom: 1.3rem;
}
.instrument-title .eyebrow { color: var(--local-muted); }
.instrument-title .num { font-family: "IBM Plex Mono", monospace; font-size: .72rem; color: var(--local-accent); }

/* instrument — the standing ladder */
.rung { display: grid; grid-template-columns: 12px 1fr; gap: .95rem; align-items: start; }
.rung-mark { position: relative; min-height: 24px; height: 100%; }
.rung-mark span {
  position: absolute; top: 6px; left: 1px; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--local-accent); background: var(--night);
}
.rung:last-of-type .rung-mark span { background: var(--local-accent); box-shadow: 0 0 14px rgba(242,174,69,.6); }
.rung-mark::before { content: ""; position: absolute; left: 5.5px; top: 17px; bottom: -6px; width: 1px; background: var(--local-line); }
.rung:last-of-type .rung-mark::before { display: none; }
.rung-name { font-family: "IBM Plex Mono", monospace; font-size: .84rem; font-weight: 500; letter-spacing: .05em; }
.gate { display: grid; grid-template-columns: 12px 1fr; gap: .95rem; padding-block: .3rem 1rem; }
.gate-body { border-left: 1px dashed var(--local-line); padding-left: .95rem; }
.gate-label { font-family: "IBM Plex Mono", monospace; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--local-accent); }
.gate-req { color: var(--local-muted); font-size: .855rem; margin-top: .2rem; }

/* instrument — the dispatch queue */
.queue { display: flex; flex-direction: column; gap: .5rem; }
.qrow {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
  padding: .72rem .9rem; border: 1px solid var(--local-line); background: var(--local-surface);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.qrow:hover { transform: translateX(5px); border-color: var(--local-accent); }
.qrow.is-held { border-style: dashed; opacity: .8; }
.qrow.is-going { border-color: var(--local-accent); box-shadow: inset 3px 0 0 var(--local-accent); }
.qmid { font-family: "IBM Plex Mono", monospace; font-size: .82rem; }
.qgoal { color: var(--local-muted); font-size: .765rem; margin-top: .12rem; }
.qtag {
  font-family: "IBM Plex Mono", monospace; font-size: .63rem; letter-spacing: .11em;
  text-transform: uppercase; padding: .24rem .5rem; border: 1px solid currentColor; white-space: nowrap;
}
.t-go { color: var(--local-accent); }
.t-hold { color: var(--local-contested); }
.t-block { color: var(--local-muted); }
.t-done { color: var(--local-settled); }
.queue-note { color: var(--local-muted); font-size: .855rem; margin-top: 1.15rem; }

/* ============================================================== loop svg */
.loopwrap { overflow-x: auto; padding-block: 1rem; }
.loopwrap svg { display: block; min-width: 720px; width: 100%; height: auto; }
.racer { filter: drop-shadow(0 0 5px currentColor); }

/* ============================================================== refusals */
.plate { border: 1px solid var(--line); padding: clamp(2rem, 4.5vw, 3.75rem); background: var(--surface); box-shadow: var(--shadow); }
.plate-head { padding-bottom: 1.9rem; border-bottom: 1px solid var(--line); }
.plate-head .eyebrow { color: var(--accent); }
.plate-head h2 { font-size: clamp(2rem, 3.9vw, 3rem); margin-top: .95rem; }
.refusal { display: grid; gap: .45rem; padding-block: 1.7rem; border-bottom: 1px solid var(--line-soft); }
.refusal:last-child { border-bottom: 0; padding-bottom: 0; }
.refusal h3 {
  font-family: "Bricolage Grotesque", Helvetica, Arial, sans-serif;
  font-weight: 700; letter-spacing: -.022em; font-size: clamp(1.32rem, 2.5vw, 1.8rem); line-height: 1.12;
}
.refusal p { color: var(--muted); font-size: .95rem; max-width: 62ch; }
@media (min-width: 820px) {
  .refusal { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 2.75rem; align-items: baseline; }
}

/* ================================================================= facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--night-line); border-block: 1px solid var(--night-line); }
.fact { background: var(--night); padding: 1.75rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; transition: background .4s var(--ease); }
.fact:hover { background: var(--night-2); }
.fact-n {
  font-family: "Bricolage Grotesque", Helvetica, Arial, sans-serif;
  font-size: clamp(2.1rem, 3.3vw, 2.9rem); font-weight: 800; line-height: 1; letter-spacing: -.04em;
  color: var(--night-accent); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px rgba(242,174,69,.3);
}
.fact-l { color: var(--night-muted); font-size: .82rem; line-height: 1.45; }

/* ================================================================= close */
.close h2 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); max-width: 15ch; margin-bottom: 1.5rem; line-height: 1.0; }
.close p { color: var(--night-muted); max-width: 54ch; font-size: 1.06rem; }
.foot {
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding-block: 2rem; border-top: 1px solid var(--night-line);
  margin-top: clamp(3.5rem, 7vw, 5.5rem); color: var(--night-muted); font-size: .8rem;
}

/* ============================================================ responsive */
@media (max-width: 900px) {
  .panel-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .navlinks { gap: 1.05rem; }
}


/* ================================================================= trust */
.badge {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start;
  border: 1px solid var(--line); background: var(--surface); padding: 1.9rem 1.8rem;
  box-shadow: var(--shadow);
}
.badge-mark {
  width: 46px; height: 46px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--accent); color: var(--accent); border-radius: 50%;
}
.badge-mark svg { width: 22px; height: 22px; }
.badge h3 {
  font-family: "Bricolage Grotesque", Helvetica, Arial, sans-serif; font-weight: 700;
  letter-spacing: -.022em; font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: .4rem;
}
.badge p { color: var(--muted); font-size: .96rem; max-width: 62ch; }
.signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.signal { background: var(--bg); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.signal-mark { color: var(--accent); }
.signal-mark svg { width: 20px; height: 20px; }
.signal h4 { font-size: .98rem; font-weight: 600; margin: 0; }
.signal p { color: var(--muted); font-size: .88rem; }

/* =============================================================== pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch; }
.tier {
  border: 1px solid var(--line); background: var(--surface); padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tier:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tier.featured { border-color: var(--accent); box-shadow: var(--shadow); position: relative; }
.tier-flag {
  position: absolute; top: -1px; right: 1.5rem; background: var(--accent); color: #23170A;
  font-family: "IBM Plex Mono", monospace; font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .3rem .6rem;
}
.tier-name { font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.tier-price { display: flex; align-items: baseline; gap: .4rem; }
.tier-price b {
  font-family: "Bricolage Grotesque", Helvetica, Arial, sans-serif; font-weight: 800;
  font-size: clamp(2.3rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tier-price span { color: var(--muted); font-size: .88rem; }
.tier-for { color: var(--muted); font-size: .93rem; }
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.tier li { display: grid; grid-template-columns: 16px 1fr; gap: .65rem; font-size: .92rem; align-items: start; }
.tier li svg { width: 14px; height: 14px; margin-top: .34em; color: var(--accent); flex: none; }
.tier .btn { justify-content: center; margin-top: auto; }
.btn-solid { background: var(--accent); color: #23170A; }
.btn-solid:hover { transform: translateY(-3px); }
.btn-line { border-color: var(--line); color: var(--text); }
.btn-line:hover { border-color: var(--accent); transform: translateY(-3px); }
.price-note { color: var(--muted); font-size: .88rem; margin-top: 2rem; max-width: var(--measure); }

/* ================================================================ signup */
.signup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.signup-form { border: 1px solid var(--night-line); background: rgba(18,24,52,.72); padding: 1.9rem 1.75rem; }
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--night-muted); }
.field input {
  font: inherit; font-size: .95rem; color: var(--night-text);
  background: rgba(9,13,32,.7); border: 1px solid var(--night-line); border-radius: 2px;
  padding: .78rem .9rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder { color: rgba(173,175,204,.55); }
.field input:focus { outline: none; border-color: var(--night-accent); box-shadow: 0 0 0 3px rgba(242,174,69,.16); }
.field input[aria-invalid="true"] { border-color: var(--night-contested); }
.field .err { color: var(--night-contested); font-size: .8rem; min-height: 1.1em; }
.signup-form .btn { width: 100%; justify-content: center; }
.fineprint { color: var(--night-muted); font-size: .8rem; margin-top: 1rem; }
.thanks { display: flex; flex-direction: column; gap: .8rem; }
.thanks h3 { font-family: "Bricolage Grotesque", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; }
.thanks p { color: var(--night-muted); font-size: .94rem; }
.thanks .tick { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--night-accent); color: var(--night-accent); display: grid; place-items: center; }
.thanks .tick svg { width: 18px; height: 18px; }

/* ================================================================ footer */
.sitefoot { background: var(--night); color: var(--night-text); position: relative; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: clamp(1.75rem, 3.5vw, 3rem); padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2.5rem, 4vw, 3.5rem); }
.foot-brand { display: flex; flex-direction: column; gap: .9rem; }
.foot-brand p { color: var(--night-muted); font-size: .88rem; max-width: 32ch; }
.foot-col h5 { font-family: "IBM Plex Mono", monospace; font-size: .67rem; letter-spacing: .16em; text-transform: uppercase; color: var(--night-accent); margin: 0 0 1.05rem; font-weight: 500; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.foot-col a { color: var(--night-muted); text-decoration: none; font-size: .875rem; transition: color .2s var(--ease); }
.foot-col a:hover { color: var(--night-text); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  padding-block: 1.6rem; border-top: 1px solid var(--night-line); color: var(--night-muted); font-size: .8rem;
}
.foot-bottom a { color: var(--night-muted); text-decoration: none; }
.foot-bottom a:hover { color: var(--night-text); }
.foot-legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.attrib { color: var(--night-text); }
.attrib b { color: var(--night-accent); font-weight: 600; }

@media (max-width: 980px) {
  .foot-top { grid-template-columns: repeat(2, 1fr); }
  .signup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; }
  .signals { grid-template-columns: 1fr; }
  .badge { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 560px) { .foot-top { grid-template-columns: 1fr; } }

/* =========================================================================
   MOTION
   Rest state is always the finished state: nothing here is parked invisible.
   Path A is scroll-driven CSS where the browser supports it. Path B is an
   observer, enabled only once JS has confirmed Path A is unavailable.
   ========================================================================= */
@keyframes rvIn {
  from { opacity: 0; transform: translate3d(0, 54px, 0) scale(.965); filter: blur(12px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes rvOut {
  from { opacity: 1; transform: none; filter: blur(0); }
  to   { opacity: 0; transform: translate3d(0, -38px, 0) scale(.99); filter: blur(7px); }
}
@keyframes wake {
  from { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(16px); letter-spacing: .05em; }
  to   { opacity: 1; transform: none; filter: blur(0); letter-spacing: -.028em; }
}
@keyframes wakeSoft {
  from { opacity: 0; transform: translate3d(0, 24px, 0); filter: blur(9px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(242,174,69,.6); }
  70%  { box-shadow: 0 0 0 12px rgba(242,174,69,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,174,69,0); }
}
@keyframes floatA { 0%,100% { transform: translate3d(0,0,0) } 50% { transform: translate3d(3%, -5%, 0) } }
@keyframes floatB { 0%,100% { transform: translate3d(0,0,0) } 50% { transform: translate3d(-4%, 4%, 0) } }
@keyframes floatC { 0%,100% { transform: translate3d(0,0,0) } 50% { transform: translate3d(2%, 6%, 0) } }
@keyframes race { to { stroke-dashoffset: var(--race-end); } }
@keyframes grow { from { transform: scaleX(0) } to { transform: scaleX(1) } }

@media (prefers-reduced-motion: no-preference) {

  .mark-dot { animation: pulseRing 3.4s ease-out infinite; }
  .aurora i:nth-child(1) { animation: floatA 26s ease-in-out infinite; }
  .aurora i:nth-child(2) { animation: floatB 32s ease-in-out infinite; }
  .aurora i:nth-child(3) { animation: floatC 38s ease-in-out infinite; }

  /* the loop races as it is read */
  .racer { animation: race 5.5s linear infinite; }
  .racer.rev { animation-duration: 7s; animation-direction: reverse; }

  /* hero wakes: soft, unfocused, then sharp */
  .wake { animation: wakeSoft .95s var(--ease) both; }
  .wake-hero { animation: wake 1.15s var(--ease) both; }
  .d1 { animation-delay: .05s } .d2 { animation-delay: .18s } .d3 { animation-delay: .5s }
  .d4 { animation-delay: .64s } .d5 { animation-delay: .78s }
  .d6 { animation-delay: .92s } .d7 { animation-delay: 1.04s }

  /* -------- Path A: scroll-driven -------- */
  @supports (animation-timeline: view()) {
    .progress { animation: grow linear both; animation-timeline: scroll(root block); }

    .rv {
      animation: rvIn linear both, rvOut linear both;
      animation-timeline: view(), view();
      animation-range: entry 2% entry 62%, exit 40% exit 96%;
    }
    /* stagger inside a group, driven by scroll position rather than a clock */
    .rv.s1 { animation-range: entry 8%  entry 68%, exit 40% exit 96%; }
    .rv.s2 { animation-range: entry 14% entry 74%, exit 40% exit 96%; }
    .rv.s3 { animation-range: entry 20% entry 80%, exit 40% exit 96%; }
    .rv.s4 { animation-range: entry 26% entry 86%, exit 40% exit 96%; }

    /* instruments settle without the exit fade, so they stay readable longer */
    .rv-hold {
      animation: rvIn linear both;
      animation-timeline: view();
      animation-range: entry 4% entry 66%;
    }
  }

  /* -------- Path B: observer fallback, only when Path A is absent -------- */
  html.io .rv, html.io .rv-hold {
    opacity: 0; transform: translate3d(0, 46px, 0) scale(.975); filter: blur(10px);
    transition: opacity .95s var(--ease), transform .95s var(--ease), filter .95s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  html.io .rv.is-in, html.io .rv-hold.is-in { opacity: 1; transform: none; filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* =========================================================== subpage shell */
.subhead { padding-block: clamp(2.4rem, 5vw, 3.6rem) clamp(3rem, 6vw, 4.5rem); }
.crumbs { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap;
          font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .07em;
          color: var(--night-muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--night-muted); text-decoration: none; }
.crumbs a:hover { color: var(--night-accent); }
.crumbs span { opacity: .5; }
.subhead h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); max-width: 17ch; margin-bottom: 1.2rem; line-height: 1.0; }
.subhead .deck { color: var(--night-muted); font-size: clamp(1.02rem, 1.5vw, 1.16rem); max-width: 60ch; }

/* prose for docs and legal pages */
.prose { max-width: var(--measure); }
.prose h2 { font-family: "Bricolage Grotesque", Helvetica, Arial, sans-serif; font-weight: 700;
            letter-spacing: -.024em; font-size: clamp(1.5rem, 2.9vw, 2rem); line-height: 1.1;
            margin: 2.8rem 0 .9rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.06rem; font-weight: 600; margin: 1.9rem 0 .5rem; }
.prose p { margin-bottom: 1rem; color: var(--muted); }
.prose p strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.15rem; margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose code { font-family: "IBM Plex Mono", monospace; font-size: .875em; color: var(--accent); }
.updated { font-family: "IBM Plex Mono", monospace; font-size: .74rem; letter-spacing: .1em;
           text-transform: uppercase; color: var(--muted); margin-bottom: 2.2rem; }

/* code block */
.code { background: var(--night); color: var(--night-text); border: 1px solid var(--night-line);
        padding: 1.1rem 1.25rem; overflow-x: auto; margin-bottom: 1.3rem; }
.code pre { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: .84rem; line-height: 1.7; }
.code .c { color: var(--night-muted); }
.code .k { color: var(--night-accent); }

/* two-up cards used on hub pages */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
         border: 1px solid var(--line); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); padding: 1.8rem 1.7rem; display: flex; flex-direction: column;
        gap: .6rem; text-decoration: none; color: inherit; transition: background .3s var(--ease); }
a.card:hover { background: var(--surface-2); }
.card h3 { font-family: "Bricolage Grotesque", Helvetica, Arial, sans-serif; font-weight: 700;
           letter-spacing: -.022em; font-size: 1.24rem; }
.card p { color: var(--muted); font-size: .93rem; }
.card .go { color: var(--accent); font-family: "IBM Plex Mono", monospace; font-size: .74rem;
            letter-spacing: .12em; text-transform: uppercase; margin-top: auto; padding-top: .6rem; }

/* product summary on the trimmed landing */
.duo-cell .go { color: var(--night-accent); font-family: "IBM Plex Mono", monospace; font-size: .72rem;
                letter-spacing: .12em; text-transform: uppercase; margin-top: .5rem;
                text-decoration: none; position: relative; display: inline-block; }
a.duo-cell { text-decoration: none; color: inherit; }

/* changelog */
.release { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 2rem;
           padding-block: 1.9rem; border-top: 1px solid var(--line); }
.release:last-child { border-bottom: 1px solid var(--line); }
.release-when { font-family: "IBM Plex Mono", monospace; font-size: .78rem; color: var(--muted); }
.release-when b { display: block; color: var(--accent); font-size: .95rem; margin-bottom: .2rem; font-weight: 600; }
.release h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .55rem; }
.release ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.release li { color: var(--muted); font-size: .93rem; padding-left: 1rem; position: relative; }
.release li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px;
                      border-radius: 50%; background: var(--accent); }
@media (max-width: 700px) { .release { grid-template-columns: 1fr; gap: .7rem; } }

/* downloads */
.dl { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
      padding: 1.35rem 0; border-top: 1px solid var(--line); }
.dl:last-of-type { border-bottom: 1px solid var(--line); }
.dl-name { font-family: "IBM Plex Mono", monospace; font-size: .95rem; font-weight: 500; }
.dl-meta { color: var(--muted); font-size: .84rem; margin-top: .15rem; }

/* status */
.status-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
              padding: 1.05rem 0; border-top: 1px solid var(--line); }
.status-row:last-of-type { border-bottom: 1px solid var(--line); }
.dot-ok { display: inline-flex; align-items: center; gap: .5rem; color: var(--settled);
          font-family: "IBM Plex Mono", monospace; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.dot-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
                border: 1px solid var(--line); }
.contact-cell { background: var(--surface); padding: 1.7rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; }
.contact-cell h3 { font-size: 1.02rem; font-weight: 600; }
.contact-cell p { color: var(--muted); font-size: .9rem; }
.contact-cell a { color: var(--accent); text-decoration: none; font-family: "IBM Plex Mono", monospace; font-size: .86rem; }
@media (max-width: 820px) { .cards, .cards.three, .contact-grid { grid-template-columns: 1fr; } }

/* cta band shared across subpages */
.cta-band { border-top: 1px solid var(--night-line); }
