/* ============================================================
   Shippr — monochrome brutalist design system
   Alternating near-black / off-white blocks, huge grotesk display,
   monospace UI labels, cut-corner buttons, blueprint mockups.
   ============================================================ */

/* ---------- Tokens (night = default canvas) ---------- */
:root {
  /* surfaces (near-black) */
  --ink:        #0b0b0c;   /* night canvas */
  --ink-2:      #101012;   /* alt band on night */
  --surface:    #151517;   /* dark card */
  --surface-2:  #1c1c20;
  --border:     #2c2c31;   /* hairline on night */
  --border-2:   #202024;

  /* text on night — School Daze cream */
  --text:       #f4e9cd;   /* cream */
  --text-2:     #b8ae94;   /* muted cream */
  /* --muted was #6e6b64 = 3.43:1 on --surface, i.e. below AA for the 11–13px
     labels it is used on. Warmed and raised to 4.91:1. */
  --muted:      #8b8474;

  /* legacy accent names → the highlight colour. Aliasing these to --accent is
     what removes the cream focus rings, cream card borders and cream pills
     across the whole page in one move. */
  --purple:     var(--accent);
  --purple-2:   var(--accent);
  --blue:       var(--text-2);
  --purple-tint: var(--accent-tint);

  /* functional status colours (inside data mockups) */
  --green:      #46c06a;
  --amber:      #d6a534;
  --red:        #e8503a;
  --green-tint: rgba(70,192,106,.14);
  --red-tint:   rgba(232,80,58,.14);

  /* ---- School Daze "Mission Warm" ----
     Gold carries every accent; crimson marks the featured/urgent state only.
     Swap these two lines to recolor the entire site. */
  --accent:      #f2a600;   /* gold   — 9.59:1 on --ink */
  --accent-2:    #ffc64d;
  --accent-tint: rgba(242,166,0,.12);
  --accent-line: color-mix(in srgb, var(--accent) 46%, transparent);

  /* Crimson is 3.26:1 on --ink — that clears AA for large text and for
     non-text (borders, rings, fills) but FAILS for small text. Use it as a
     background with cream on top (5.00:1), never as small type on the canvas. */
  --featured:      #c4122f;
  --featured-2:    #e0324a;
  --featured-tint: rgba(196,18,47,.14);
  --featured-line: color-mix(in srgb, var(--featured) 55%, transparent);

  /* type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;

  /* geometry — brutalist, near-square */
  --radius:     4px;
  --radius-lg:  6px;
  --radius-xl:  8px;
  --pill:       999px;
  --maxw:       1200px;
  --gutter:     24px;
  --cut:        14px;      /* corner-notch size for cut-corner elements */
  --badge-h:    26px;      /* in-flow pricing badge height — the badge pins to
                              this and unbadged tiers reserve exactly it */
  --badge-gap:  14px;      /* and the gap below it — unbadged tiers reserve both */

  --shadow-sm: none;
  --shadow:    none;
  --shadow-lg: 0 30px 80px -50px rgba(0,0,0,.7);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* ---------- Raised charcoal block (subtle band rhythm; all-dark) ---------- */
.paper {
  --ink:        #131317;
  --ink-2:      #17171c;
  --surface:    #1c1c22;
  --surface-2:  #232329;
  --border:     #35353d;
  --border-2:   #2a2a31;
  background: var(--ink);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.94; margin: 0; }

/* ---------- Focus + skip link (a11y) ---------- */
:where(a, button, .opt, .quiz__back, kbd, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  /* no radius — a rounded ring on square rig buttons reads as a mistake */
}
.opt:focus-visible { border-color: var(--accent); outline-offset: 2px; }
.skip {
  position: absolute; left: -9999px; top: 10px; z-index: 100;
  background: var(--accent); color: var(--ink); font-size: 14px; font-weight: 500;
  padding: 10px 18px; border-radius: var(--pill);
}
.skip:focus { left: 16px; }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 132px); position: relative; background: var(--ink); color: var(--text); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.center { text-align: center; }

/* bracketed monospace section label (rig-accent) */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 24px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--accent-line);
  position: relative;
}
.eyebrow::before { content: "" !important; display: none !important; }

.h2 { font-family: var(--display); font-size: clamp(33px, 5vw, 58px); font-weight: 700; letter-spacing: -0.03em; line-height: 0.95; }
.lead { color: var(--text-2); font-size: clamp(17px, 2vw, 20px); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons (cut-corner monospace) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 26px; border-radius: 0;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid transparent; transition: background .18s, color .18s, border-color .18s, opacity .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
/* Solid gold, cut-corner. There used to be a cream background here with an
   orange ::before offset translate(5px,5px) meant to read as an extruded
   shadow — but `isolation: isolate` makes this a stacking context, and inside
   one a z-index:-1 pseudo paints ABOVE the element's own background. So the
   orange sat on top of the cream and left a cream band down the top and left
   edges plus a cream wedge in the corner notch. Both are gone. */
.btn--primary {
  background: var(--accent); color: var(--ink);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  position: relative;
  transition: background .14s var(--ease), transform .14s var(--ease);
}
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); position: relative; }
.btn--ghost:hover { border-color: var(--accent); }
/* ghost button corner-bracket ticks (rig detail) */
.btn--ghost::before, .btn--ghost::after {
  content: ""; position: absolute; width: 7px; height: 7px; pointer-events: none; border: 1px solid var(--accent);
}
.btn--ghost::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.btn--ghost::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.btn--lg { padding: 17px 30px; font-size: 13.5px; }
.btn--block { width: 100%; justify-content: center; }
.arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-2);
  text-align: center; padding: 10px 16px;
}
.announce a { color: var(--accent); border-bottom: 1px solid var(--accent-line); padding-bottom: 1px; }
.announce a:hover { border-color: var(--accent); }
.announce b { color: var(--text); font-weight: 500; }
.announce .hex { color: var(--text); }

/* ---------- Nav (brutalist top bar) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
.brand svg { width: 22px; height: 22px; }
.brand b { font-weight: 700; }
.nav__links { display: flex; gap: 22px; margin-left: 20px; }
.nav__links a { font-family: var(--mono); color: var(--text-2); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__spacer { flex: 1; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; }

/* ---------- Hero (light editorial) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(44px, 6vw, 84px) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(58% 46% at 50% -8%, rgba(255,255,255,.07), transparent 62%),
    var(--ink);
}
.aurora { display: none; }
.hero__inner { position: relative; z-index: 1; text-align: center; }
/* everything in the hero now sits on moving footage */
.hero__sub, .hero__note, .hero .pill-tag { text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 0.9;
  margin: 26px auto 0; max-width: 16ch; text-wrap: balance;
  color: var(--text);
}
.hero h1 .line2 { color: var(--text); }
.hero__sub { color: var(--text); font-size: clamp(16px, 1.7vw, 19px); max-width: 48ch; margin: 26px auto 34px; line-height: 1.5; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 24px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); font-family: var(--mono); }

.pill-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2);
  background: transparent; border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 0;
}
.pill-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
/* In the hero the chip sits high, where the scrim is weakest, and it was
   transparent — measured 1.62:1 over the bright window. Give it its own
   backing so it never depends on what the footage is doing behind it. */
.hero .pill-tag, .ss-hero .pill-tag {
  /* .88, not less: cream on (a·ink + (1-a)·white) only clears 4.5:1 at a>=.86,
     and the window blinds in the plate genuinely blow out near white. */
  background: rgba(11,11,12,.88);
  backdrop-filter: blur(6px);
  border-color: var(--accent-line);
  color: var(--text);
}

/* ---------- Hero scanner mock ---------- */
.scanner {
  margin: 48px auto 0; max-width: 760px; position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--surface), #12161d);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(137,87,229,.06);
  overflow: hidden; text-align: left;
}
.scanner__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border-2); background: rgba(0,0,0,.2); }
.scanner__bar .tl { width: 11px; height: 11px; border-radius: 50%; background: #30363d; }
.scanner__bar .title { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-left: 8px; }
.scanner__body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; }
.scanner__log { padding: 20px; border-right: 1px solid var(--border-2); min-height: 260px; }
.scanner__log .row { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 10px; padding: 5px 0; opacity: .25; transition: opacity .35s; }
.scanner__log .row.on { opacity: 1; }
.scanner__log .row .g { color: var(--muted); }
.scanner__log .row .sev { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.scanner__log .row.on .sev.red { background: var(--red); box-shadow: 0 0 8px var(--red); }
.scanner__log .row.on .sev.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.scanner__log .row.on .sev.green { background: var(--green); box-shadow: 0 0 8px var(--green); }

.scanner__score { padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.scanner__score .label { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.scanner__num { font-size: 72px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.scanner__bucket { font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: var(--pill); }
.gatebar { display: flex; gap: 4px; margin-top: 16px; width: 100%; }
.gatebar .seg { flex: 1; height: 8px; border-radius: 3px; background: var(--border); transform: scaleY(.4); transform-origin: bottom; transition: transform .3s var(--ease), background .3s; }
.gatebar .seg.fill { transform: scaleY(1); }
.gatebar .seg.red { background: var(--red); }
.gatebar .seg.amber { background: var(--amber); }
.gatebar .seg.green { background: var(--green); }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--border-2); background: var(--ink-2); }
.trust__inner { padding-block: 30px; text-align: center; }
.trust__line { font-size: 14.5px; color: var(--text-2); }
.trust__line b { color: var(--text); font-weight: 500; }
.trust__stakes { max-width: 54ch; margin: 0 auto 26px; font-size: clamp(15px, 1.7vw, 18px); line-height: 1.5; color: var(--text-2); }
.trust__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; margin-top: 22px; }
.trust__stats .stat { display: flex; flex-direction: column; gap: 2px; }
.trust__stats .stat b { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.trust__stats .stat span { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.trust__stats .stat .accent-red { color: var(--red); }

/* ---------- Feature blocks ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature--flip .feature__media { order: -1; }
.feature__body h3 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
.feature__body p { color: var(--text-2); font-size: 17px; }
.feature__body .kicker { font-family: var(--mono); font-size: 12.5px; color: var(--green); margin-bottom: 14px; }
.feature__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--purple-2); font-size: 15px; font-weight: 500; }
.feature__link:hover { color: var(--text); }

.card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* product-demo mockups render as dark jewels on the light canvas (dock move):
   re-scope the design tokens inside so descendant text/surfaces flip dark. */
.feature__media .card,
.terminal, .scanner {
  --surface: #1b1e24; --surface-2: #22262e;
  --border: #2b303a; --border-2: #262b34; --ink-2: #14171c;
  --text: #eceef1; --text-2: #aab0b9; --muted: #7a7f89;
}
.feature__media .card {
  background: linear-gradient(180deg, #1c1f27, #121419);
  border-color: #2b303a;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.card__head { padding: 13px 16px; border-bottom: 1px solid var(--border-2); font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.card__head .dot3 { display: flex; gap: 5px; }
.card__head .dot3 i { width: 9px; height: 9px; border-radius: 50%; background: #3a414d; }
.card__body { padding: 20px; }

/* score demo card */
.mini-score { display: flex; align-items: baseline; gap: 12px; }
.mini-score b { font-size: 46px; font-weight: 500; letter-spacing: -.04em; color: var(--amber); }
.mini-score .of { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.mini-score .tag { margin-left: auto; font-size: 12px; padding: 4px 11px; border-radius: var(--pill); background: var(--red-tint); color: var(--red); font-weight: 500; }
.mini-gates { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 16px; }
.mini-gates i { height: 26px; border-radius: 4px; }
.mono-list { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); margin-top: 18px; display: grid; gap: 8px; }
.mono-list .f { display: flex; gap: 10px; align-items: flex-start; }
.mono-list .f .d { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: none; }

/* cheat-code paste card */
.code {
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
  color: var(--text-2); background: var(--ink-2);
  border: 1px solid var(--border-2); border-radius: 12px; padding: 16px; overflow-x: auto;
  white-space: pre;
}
.code .cm { color: var(--muted); }
.code .ok { color: var(--green); }
.code .k { color: var(--purple-2); }
.paste-steps { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.paste-steps .step { display: flex; align-items: center; gap: 7px; }
.paste-steps .chip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--pill); padding: 4px 10px; color: var(--text-2); }
.score-move { color: var(--green); font-weight: 500; }

/* certificate card */
.cert { text-align: center; padding: 36px 24px; position: relative; }
.cert::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 0%, var(--green-tint), transparent 70%); pointer-events: none; }
.cert .seal { width: 62px; height: 62px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--green); color: var(--green); }
.cert h4 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; margin: 0 0 4px; }
.cert .sub { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cert .meta { margin-top: 20px; display: flex; justify-content: center; gap: 26px; font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }
.cert .meta b { display: block; color: var(--green); font-size: 15px; }

/* ---------- Crew ---------- */
.crew-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.agent {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .2s var(--ease), border-color .2s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.agent::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent, var(--purple)), transparent); opacity: .5; }
.agent:hover { transform: translateY(-3px); border-color: #45505f; box-shadow: 0 24px 48px -30px rgba(0,0,0,.9); }
.agent .role { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.agent .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: var(--surface-2); border: 1px solid var(--border); }
.agent .gates { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.agent h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -.02em; }
.agent .flag { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--purple-2); background: var(--purple-tint); padding: 2px 8px; border-radius: var(--pill); margin-left: 8px; vertical-align: middle; }
.agent p { color: var(--text-2); font-size: 14.5px; margin: 0; }

/* ---------- Gates ---------- */
.gates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gate {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; padding: 18px 18px;
  transition: border-color .2s, background .2s;
}
.gate:hover { border-color: var(--border); background: var(--surface-2); }
.gate .n { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 24px; flex: none; padding-top: 2px; }
.gate .sev { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; }
.gate h4 { font-size: 15px; font-weight: 500; margin: 0 0 3px; letter-spacing: -.01em; }
.gate p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.sev-red { background: var(--red); box-shadow: 0 0 8px var(--red-tint); }
.sev-amber { background: var(--amber); }
.sev-green { background: var(--green); }
.sev-blue { background: var(--blue); }

/* ---------- Comparison ---------- */
.compare { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; }
table.cmp th, table.cmp td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--border-2); font-size: 14px; }
table.cmp thead th { font-weight: 500; color: var(--muted); font-size: 13px; font-family: var(--mono); }
table.cmp tbody th { text-align: left; font-weight: 400; color: var(--text-2); font-size: 14px; }
table.cmp td { color: var(--muted); }
table.cmp .win { color: var(--green); font-weight: 600; }
table.cmp col.sp, table.cmp .sp-col { background: var(--purple-tint); }
table.cmp thead .sp-col { color: var(--purple-2); font-weight: 600; }
table.cmp tr:last-child td, table.cmp tr:last-child th { border-bottom: none; }

/* ---------- CLI showcase ---------- */
.cli { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.terminal {
  background: #05070a; border: 1px solid var(--border); border-radius: var(--radius-lg);
  font-family: var(--mono); font-size: 13px; line-height: 1.75; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.95);
}
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid var(--border-2); }
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; }
.terminal__bar i:nth-child(1){ background:#ff5f57; } .terminal__bar i:nth-child(2){ background:#febc2e; } .terminal__bar i:nth-child(3){ background:#28c840; }
.terminal__bar .t { margin-left: 8px; color: var(--muted); font-size: 12px; }
.terminal__body { padding: 18px 18px 22px; color: var(--text-2); }
.terminal__body .p { color: var(--green); }
.terminal__body .u { color: var(--text); }
.terminal__body .c { color: var(--muted); }
.terminal__body .a { color: var(--purple-2); }
.terminal__body .disp { color: var(--blue); }
.terminal__body .line { display: block; white-space: pre-wrap; }
.terminal__cursor { display: inline-block; width: 8px; height: 15px; background: var(--green); vertical-align: -2px; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cli__body h2 { margin-bottom: 18px; }
.cli__steps { display: grid; gap: 16px; margin-top: 26px; }
.cli__steps .s { display: flex; gap: 14px; }
.cli__steps .s .num { font-family: var(--mono); font-size: 12px; color: var(--purple-2); border: 1px solid var(--border); border-radius: 8px; width: 30px; height: 30px; display: grid; place-items: center; flex: none; }
.cli__steps .s b { display: block; font-weight: 500; margin-bottom: 2px; font-size: 15px; }
.cli__steps .s p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Stats band ---------- */
.band { border-block: 1px solid var(--border-2); background: var(--ink-2); }
.band__scroll { display: flex; gap: 18px; overflow-x: auto; padding-block: 40px; scroll-snap-type: x mandatory; }
.band__scroll::-webkit-scrollbar { height: 0; }
.metric { flex: 0 0 auto; min-width: 240px; scroll-snap-align: start; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.metric .div { position: absolute; top: 0; left: 24px; right: 24px; height: 3px; border-radius: 2px; }
.metric b { display: block; font-size: 40px; font-weight: 500; letter-spacing: -.04em; margin-top: 8px; }
.metric span { color: var(--muted); font-size: 13.5px; }

/* ---------- The method (framework cards) ---------- */
.method { position: relative; overflow: hidden; }
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.method-card { padding: 28px 26px; border: 1px solid var(--border); border-radius: 0; background: var(--surface); position: relative; overflow: hidden; transition: border-color .18s; }
.method-card:hover { border-color: var(--text); }
.method-card--wide { grid-column: 1 / -1; background: var(--surface); }
.method-card__tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 0; margin-bottom: 18px; border: 1px solid var(--border); color: var(--text-2); }
.method-card__tag[data-tone] { color: var(--text-2); border-color: var(--border); background: transparent; }
.method-card h3 { font-size: 20px; letter-spacing: -.02em; margin: 0 0 10px; }
.method-card p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.method-card--wide p { max-width: 72ch; }

/* ---------- Ship School (live cohort) ---------- */
.school { position: relative; overflow: hidden; }
.school__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.school__arc-label,
.school__stack-label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.school__copy { align-self: center; }
.school__copy .h2 { margin-bottom: 16px; }
.school__teaser-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 26px; }
.school__teaser-meta span { font-size: 14px; color: var(--muted); }
.school__teaser-meta b { color: var(--text); font-weight: 500; }

/* the six-week timeline */
.weeks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; position: relative; }
.weeks li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 14px 0; border-top: 1px solid var(--border-2); }
.weeks li:first-child { border-top: 0; }
.weeks .wk { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text-2); width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--pill); border: 1px solid var(--border); background: var(--surface); }
.weeks .wk--gl { color: #071008; background: linear-gradient(160deg, var(--green), #4ac26a); border-color: transparent; box-shadow: 0 0 22px -6px var(--green); }
.weeks li b { font-size: 16px; letter-spacing: -.01em; }
.weeks li p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* the offer card */
.school__card { padding: 30px 28px; overflow: visible; }
.badge--school { align-self: flex-start; display: inline-flex; align-items: center; height: var(--badge-h); box-sizing: border-box; background: var(--featured); color: var(--text); font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 0 10px; border-radius: var(--radius); letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--badge-gap); }
.school__price { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--border-2); margin-bottom: 20px; }
.school__amt { font-size: clamp(38px, 5vw, 48px); font-weight: 500; letter-spacing: -.04em; }
.school__amt small { font-size: 16px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 4px; }
.school__found { font-size: 13px; color: var(--text-2); font-family: var(--mono); }
.school__found b { color: var(--green); font-weight: 500; }
.school__stack { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; }
.school__stack li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--text-2); line-height: 1.45; }
.school__stack li b { color: var(--text); font-weight: 500; }
.school__stack li::before { content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: var(--pill); background: var(--green); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.55 17.3 4.9 12.65l1.4-1.4 3.25 3.25 8.15-8.15 1.4 1.4z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.55 17.3 4.9 12.65l1.4-1.4 3.25 3.25 8.15-8.15 1.4 1.4z'/></svg>") center/contain no-repeat; }
.school__card .btn { width: 100%; justify-content: center; }
.school__guarantee { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.5; }

/* pricing callout to Ship School */
.school-callout { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 18px 22px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(100deg, var(--accent-tint), transparent 60%); text-decoration: none; transition: border-color .18s, transform .18s; }
.school-callout:hover { border-color: var(--purple); transform: translateY(-1px); }
.school-callout__tag { flex: 0 0 auto; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-2); border: 1px solid var(--purple); border-radius: var(--pill); padding: 5px 12px; }
.school-callout__txt { flex: 1; color: var(--text-2); font-size: 14.5px; }
.school-callout__txt b { color: var(--text); font-weight: 600; }
.school-callout__cta { flex: 0 0 auto; color: var(--accent); font-size: 14px; font-weight: 500; white-space: nowrap; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tier {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 22px; display: flex; flex-direction: column; position: relative;
  z-index: 1;                     /* so the featured card can sit above its neighbours */
}

/* The featured card. Only ONE ring system now: the breathing gold ring in the
   motion block below. The old rule stacked a cream border, a cream box-shadow
   ring, a .gborder pseudo-ring and a purple drop-shadow — and the box-shadow
   was dead anyway, because the tier-glow keyframes own box-shadow outright. */
.tier--win {
  z-index: 2;
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-tint), var(--surface));
}

/* The badge used to hang at top:-11px. motion.js adds .tilt-glow to every
   .tier at runtime and .tilt-glow is overflow:hidden, so ~10px of a 25px pill
   was sliced off flat — the "overlap". It now sits in normal flow inside the
   card, which cannot be clipped by any future overflow change. */
.tier .badge {
  align-self: flex-start;
  display: inline-flex; align-items: center;
  height: var(--badge-h);            /* pinned to the same token the spacer
                                        reserves, so the four price rows can
                                        never drift out of line again */
  box-sizing: border-box;
  background: var(--featured); color: var(--text);   /* 5.00:1 */
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 0 10px; border-radius: var(--radius);
  margin-bottom: var(--badge-gap);
  white-space: nowrap;
}
/* Reserve the same vertical slot on the unbadged cards so all four price rows
   stay on one line. */
/* ::after, not ::before — .tilt-glow::before is the pointer glow and a
   .tier::before here would out-specify and kill it. order:-1 pulls this
   generated flex item back to the top of the column. */
.tier:not(.tier--win)::after {
  content: ""; display: block; order: -1;
  height: var(--badge-h); margin-bottom: var(--badge-gap);
}
.tier .name { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.tier .amt { font-size: 40px; font-weight: 500; letter-spacing: -.04em; margin: 10px 0 2px; }
.tier .amt small { font-size: 15px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.tier .blurb { color: var(--muted); font-size: 14px; flex: 1; margin: 10px 0 20px; }
.tier .btn { width: 100%; justify-content: center; }
.price-anchor { text-align: center; margin: 14px auto 0; max-width: 46ch; font-family: var(--mono); font-size: 13px; letter-spacing: .01em; color: var(--amber); }
.price-foot { text-align: center; margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.price-foot b { color: var(--text-2); font-weight: 500; }
.b2b-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.b2b { background: var(--ink-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; display: flex; align-items: center; gap: 18px; }
.b2b .amt { font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.b2b .amt small { font-size: 13px; color: var(--muted); }
.b2b p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }

/* ---------- Quiz (final panel) ---------- */
.quiz-section {
  position: relative; overflow: hidden;
  background-color: var(--ink-2);
}
.quiz-section .aurora { opacity: .5; }
.quiz {
  max-width: 680px; margin-inline: auto; position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-height: 440px;
}
.quiz__progress { height: 4px; background: var(--border-2); border-radius: var(--pill); overflow: hidden; margin: 0; }
.quiz__progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--purple), var(--green)); transition: width .4s var(--ease); }
.quiz__inner { padding: clamp(26px, 4vw, 44px); }

/* intro */
.quiz-intro { text-align: center; }
.quiz-intro h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 12px; }
.quiz-intro p { color: var(--text-2); max-width: 46ch; margin: 0 auto 24px; }
.quiz-intro .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 16px; }

/* question */
.q .count { font-family: var(--mono); font-size: 12px; color: var(--purple-2); letter-spacing: .05em; }
.q .gate-name { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 8px; }
.q h3 { font-size: clamp(20px, 2.6vw, 26px); margin: 14px 0 10px; line-height: 1.2; letter-spacing: -.02em; }
.q .why { color: var(--muted); font-size: 14.5px; margin: 0 0 26px; }
.q .opts { display: grid; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--ink-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; color: var(--text); font-size: 16px; transition: border-color .15s, background .15s, transform .12s;
}
.opt:hover { border-color: var(--purple); background: var(--surface-2); transform: translateX(2px); }
.opt .mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); flex: none; transition: border-color .15s; }
.opt:hover .mark { border-color: var(--purple); }
.opt kbd { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.quiz__back { background: none; border: none; color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.quiz__back:hover { color: var(--text); }
.quiz__back[hidden] { visibility: hidden; }

/* reveal */
.reveal { text-align: center; }
.reveal__scan { font-family: var(--mono); font-size: 13px; color: var(--text-2); min-height: 220px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.reveal__scan .row { opacity: .3; transition: opacity .3s; display: flex; gap: 10px; justify-content: center; align-items: center; }
.reveal__scan .row.on { opacity: 1; }
.reveal__scan .row .sev { width: 8px; height: 8px; border-radius: 50%; }
.reveal__num { font-size: clamp(72px, 14vw, 118px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.reveal__of { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.reveal__bucket { display: inline-block; font-size: 15px; font-weight: 500; padding: 6px 16px; border-radius: var(--pill); margin-top: 14px; }
.reveal__gatebar { display: flex; gap: 5px; max-width: 420px; margin: 26px auto 0; }
.reveal__gatebar .seg { flex: 1; height: 12px; border-radius: 4px; background: var(--border); transform: scaleY(.35); transform-origin: bottom; transition: transform .35s var(--ease); }
.reveal__gatebar .seg.fill { transform: scaleY(1); }
.reveal__meaning { color: var(--text-2); max-width: 42ch; margin: 20px auto 0; font-size: 15px; }
.reveal__gaps { max-width: 460px; margin: 28px auto 0; display: grid; gap: 10px; text-align: left; }
.reveal__gaps .gap { display: flex; gap: 12px; align-items: flex-start; background: var(--ink-2); border: 1px solid var(--border-2); border-radius: 12px; padding: 14px 16px; }
.reveal__gaps .gap .sev { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; }
.reveal__gaps .gap b { font-weight: 500; font-size: 14.5px; }
.reveal__gaps .gap span { display: block; color: var(--muted); font-size: 12.5px; font-family: var(--mono); margin-top: 2px; }
.reveal__cta { margin-top: 30px; }
.reveal__cta .rec { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.reveal__cta .rec b { color: var(--text-2); }
.reveal__disclaimer { margin-top: 18px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.reveal__restart { background: none; border: none; color: var(--muted); font-size: 13px; margin-top: 14px; text-decoration: underline; }
.reveal__restart:hover { color: var(--text); }
[hidden] { display: none !important; }

/* fade utility */
.fade-in { animation: fade .5s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-2); background: var(--ink-2); padding-block: 60px 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand .brand { margin-bottom: 14px; }
.footer__brand p { color: var(--muted); font-size: 14px; max-width: 34ch; }
.footer__brand .creds { font-size: 12.5px; color: var(--text-2); margin-top: 16px; line-height: 1.6; }
.footer__col h5 { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; margin: 0 0 14px; letter-spacing: .04em; }
.footer__col a { display: block; color: var(--text-2); font-size: 14px; padding: 5px 0; transition: color .15s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border-2); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; gap: 12px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; display: grid; place-items: center; color: var(--text-2); transition: border-color .15s, color .15s; }
.footer__social a:hover { border-color: var(--purple); color: var(--text); }

/* ---------- Responsive ---------- */
/* The four tier CTAs are all 14 characters and .btn is white-space:nowrap.
   In a 4-up grid their labels need ~118px but the button's content box is
   only ~112px from about 1000px down, so the text spilled past its own
   outline. Reflow to 2-up before that happens, and tighten the label a
   little through the squeeze zone. */
@media (max-width: 1000px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) and (min-width: 1001px) {
  .tier .btn { padding-inline: 12px; font-size: 12px; letter-spacing: .02em; }
}

@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .feature, .cli { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .school__grid { grid-template-columns: 1fr; }
  .crew-grid { grid-template-columns: repeat(2, 1fr); }
  .gates-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .scanner__body { grid-template-columns: 1fr; }
  .scanner__log { border-right: none; border-bottom: 1px solid var(--border-2); min-height: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .crew-grid, .gates-grid, .price-grid, .footer__top, .method-grid { grid-template-columns: 1fr; }
  .nav__cta .btn--ghost { display: none; }
  .trust__stats { gap: 14px 26px; }
  .school-callout { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .aurora { animation: none; }
  .terminal__cursor { animation: none; }
}

/* ============================================================
   DEPTH & CRAFT ENHANCEMENT LAYER (v2)
   Stripe/Linear-grade depth: grain, glass, gradient borders,
   elevation, 3D tilt, motion-gated entrances.
   ============================================================ */

@property --ga { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* ---- Global film grain (subtle, on top of everything, non-blocking) ---- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Elevation for light content surfaces ---- */
.card, .agent, .tier, .quiz, .metric, .b2b, .gate {
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}
/* product-demo / code surfaces stay dark jewels on the light canvas */
.feature__media .card { box-shadow: var(--shadow-lg); }
.terminal { background-color: rgba(8,10,14,.94); box-shadow: var(--shadow-lg); }

/* soft top-edge highlight line (only on the dark demo cards) */
.feature__media .card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  pointer-events: none;
}

/* ---- Animated gradient border (featured surfaces) ---- */
.gborder { position: relative; isolation: isolate; }
.gborder::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; z-index: -1;
  background: var(--text);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-border 7s linear infinite; opacity: .9;
}
@keyframes spin-border { to { --ga: 360deg; } }
.tier--win.gborder::before { opacity: 1; }

/* ---- 3D tilt scaffolding (JS drives --rx/--ry) ---- */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.tilt > * { transform: translateZ(0); }
.tilt.is-tilting { transition: transform .08s linear; }

/* glow that tracks the pointer on tilt surfaces */
.tilt-glow { position: relative; overflow: hidden; }
.tilt-glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), var(--accent-tint), transparent 60%);
}
.tilt-glow:hover::before { opacity: 1; }

/* ---- Section ambient glow meshes ---- */
.section { isolation: isolate; }
.glow-top::before, .glow-mesh::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
/* was `display:none`, which also killed the .section::before grid framing
   that this section shares — #pricing was the only block missing its rules. */
.glow-top::before, .glow-mesh::before { background: none; }

/* section-level tinted bands (light) */
.bg-blue, .bg-green { position: relative; background-color: var(--ink-2); }

/* ---- Motion-gated entrances (only when .motion on <html>) ---- */
.motion .hero__inner > * { opacity: 0; animation: heroIn .85s var(--ease) forwards; }
.motion .hero__inner > *:nth-child(1) { animation-delay: .04s; }
.motion .hero__inner > *:nth-child(2) { animation-delay: .12s; }
.motion .hero__inner > *:nth-child(3) { animation-delay: .20s; }
.motion .hero__inner > *:nth-child(4) { animation-delay: .28s; }
.motion .hero__inner > *:nth-child(5) { animation-delay: .36s; }
.motion .hero .scanner { opacity: 0; animation: heroIn 1s var(--ease) .40s forwards; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* JS-driven reveal targets: hidden only while motion is active AND not yet revealed */
.motion [data-reveal]:not(.revealed) { opacity: 0; }

/* ---- Reduced motion: strip the enhancement animations too ---- */
@media (prefers-reduced-motion: reduce) {
  .gborder::before { animation: none; }
  body::after { display: none; }
  .motion .hero__inner > *, .motion .hero .scanner { opacity: 1 !important; animation: none !important; }
  .motion [data-reveal] { opacity: 1 !important; }
  .tilt { transition: none; }
}

/* ============================================================
   CRAFTED GRAPHIC UI COMPONENTS (v2)
   ============================================================ */

/* ---- Agent hex emblems (replace emoji) ---- */
.agent .ico {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-2));
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
}
.agent .ico .emblem {
  width: 24px; height: 24px;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 55%, transparent));
}
.agent .ico .emblem .hex { color: var(--accent); }
.agent:hover .ico .emblem { animation: emblem-pulse 1.4s var(--ease); }
@keyframes emblem-pulse { 0%,100% { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 55%, transparent)); } 50% { filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 80%, transparent)); } }

/* ---- Judgment-layer centerpiece (lattice) ---- */
.judgment-diagram { position: relative; display: flex; flex-direction: column; align-items: center; margin: 4px auto 60px; }
.jd-glow {
  position: absolute; width: min(560px, 82%); aspect-ratio: 1; top: 46%; left: 50%;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(137,87,229,.30), rgba(46,160,67,.12) 46%, transparent 70%);
  filter: blur(34px); z-index: 0; pointer-events: none;
}
.jd-art {
  position: relative; z-index: 1; width: min(440px, 86vw); aspect-ratio: 1; object-fit: contain;
  -webkit-mask: radial-gradient(circle closest-side, #000 62%, transparent 96%);
  mask: radial-gradient(circle closest-side, #000 62%, transparent 96%);
  animation: jd-float 8s ease-in-out infinite;
}
@keyframes jd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.jd-caption {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin-top: -14px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .03em; flex-wrap: wrap; justify-content: center;
}
.jd-caption i { color: var(--muted); font-style: normal; }
.jd-node {
  padding: 7px 15px; border-radius: var(--pill); border: 1px solid var(--border);
  background: rgba(22,27,34,.66); backdrop-filter: blur(6px); color: var(--text-2);
}
.jd-node[data-tone="purple"] { color: var(--purple-2); border-color: color-mix(in srgb, var(--purple) 42%, var(--border)); box-shadow: 0 0 20px -8px var(--purple); }
.jd-node[data-tone="blue"]   { color: #6ea8ff;        border-color: color-mix(in srgb, var(--blue) 42%, var(--border));   box-shadow: 0 0 20px -8px var(--blue); }
.jd-node[data-tone="green"]  { color: #54d081;        border-color: color-mix(in srgb, var(--green) 42%, var(--border));  box-shadow: 0 0 20px -8px var(--green); }

/* ---- Certificate seal art ---- */
.cert .seal-img {
  width: 138px; height: 138px; margin: 0 auto 6px; object-fit: contain; position: relative; z-index: 1;
  -webkit-mask: radial-gradient(circle closest-side, #000 70%, transparent 100%);
  mask: radial-gradient(circle closest-side, #000 70%, transparent 100%);
}

@media (max-width: 560px) {
  .jd-art { width: min(320px, 82vw); }
  .jd-caption { font-size: 12px; gap: 8px; }
}

/* ============================================================
   JUDGMENT-LAYER ANCHORED SPLIT + HEX-ECHO MOTIF (v3)
   ============================================================ */

/* ---- Anchored split: copy + 3D lattice ---- */
.jband { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.jband__copy .eyebrow { margin-bottom: 16px; }
.jband__copy .lead { margin-top: 18px; }
.jband__copy em { font-style: normal; color: var(--text); border-bottom: 1px solid color-mix(in srgb, var(--purple) 45%, transparent); }
.jband__pills { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; align-items: flex-start; }
.jband__pills .jd-node { font-size: 12.5px; }

.jband__art { position: relative; display: grid; place-items: center; min-height: 400px; margin: 0; }
.jband__art .jd-glow {
  width: min(520px, 92%); aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.jband__art .jd-art { width: min(470px, 92%); }

@media (max-width: 940px) {
  .jband { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .jband__copy .eyebrow, .jband__pills { align-items: center; }
  .jband__pills { align-items: center; }
  .jband__copy .lead { margin-inline: auto; }
  .jband__art { order: -1; min-height: 320px; }
}

/* ---- Hex-echo: the lattice motif, faint + edge-anchored + parallax ---- */
.hex-echo {
  display: none;
  position: absolute; z-index: -1; pointer-events: none;
  width: clamp(320px, 42vw, 560px); aspect-ratio: 1;
  background-image: var(--echo-img, url("assets/lattice.jpg"));
  background-position: center; background-size: contain; background-repeat: no-repeat;
  -webkit-mask: radial-gradient(circle closest-side, #000 48%, transparent 88%);
  mask: radial-gradient(circle closest-side, #000 48%, transparent 88%);
  opacity: .20; filter: saturate(115%);
  transform: translateY(var(--py, 0px));
  will-change: transform;
}
.he--tr { top: -8%;  right: -12%; }
.he--bl { bottom: -10%; left: -14%; opacity: .16; transform: translateY(var(--py, 0px)) rotate(150deg); }
.he--cr { top: calc(50% - clamp(160px, 21vw, 280px)); right: -16%; opacity: .17; }
.he--tl { top: -6%; left: -12%; opacity: .18; }

@media (max-width: 720px) {
  .hex-echo { opacity: .12; width: 70vw; }
  .he--tr { right: -30%; } .he--bl { left: -34%; } .he--cr { right: -40%; }
}
@media (prefers-reduced-motion: reduce) {
  .hex-echo { transform: none !important; }
}

/* ============================================================
   PRO POLISH v4 — vertical rhythm, balance, alignment
   Adobe-grade: one consistent spacing system, no stranded art,
   no giant voids, tightened type measure.
   ============================================================ */

/* ---- One consistent section rhythm (kills the ad-hoc paddings) ---- */
.section { padding-block: clamp(72px, 8.5vw, 116px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section-head { margin-bottom: clamp(38px, 5vw, 56px); }

/* ---- Balance the judgment band: no oversized min-height, art sized to copy ---- */
.jband { align-items: center; gap: clamp(30px, 5vw, 64px); }
.jband__art { min-height: 0; }
.jband__art .jd-art { width: min(420px, 84%); }
.jband__art .jd-glow { width: min(470px, 84%); }
@media (max-width: 940px) {
  .jband { gap: 4px; }
  .jband__art { min-height: 0; margin-top: 4px; }
  .jband__art .jd-art { width: min(340px, 74%); }
}

/* ---- Feature block rhythm ---- */
.feature + .feature { margin-top: clamp(52px, 7vw, 84px); }

/* ---- Hero: tidy the scanner gap ---- */
.scanner { margin-top: clamp(40px, 5vw, 56px); }

/* ---- Type measure (tighter, more editorial line length) ---- */
.lead { max-width: 56ch; }
.section-head .lead { max-width: 60ch; }
.jband__copy .lead { max-width: 46ch; }

/* ---- Trust strip breathing room ---- */
.trust__inner { padding-block: clamp(28px, 4vw, 40px); }

/* ---- Stats band rhythm ---- */
.band__scroll { padding-block: clamp(34px, 4.5vw, 46px); }

/* ---- Pricing foot spacing ---- */
.price-foot { margin-top: clamp(24px, 3vw, 34px); }
.b2b-row { margin-top: 16px; }

/* ============================================================
   RIG PATTERN LAYER — grid framing, stepped kickers, footer
   (monochrome brutalist; general techniques, our content)
   ============================================================ */

/* ---- Grid-line framing: thin vertical rules bound the content column ---- */
.hero, .trust, .section, .band, .quiz-section { position: relative; }
.hero::before, .trust::before, .section::before, .band::before, .quiz-section::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, var(--maxw)); border-inline: 1px solid var(--border);
  pointer-events: none; z-index: 0;
}
/* hairline dividers between blocks + keep content above the frame */
.trust, .section, .band, .quiz-section, .footer { border-top: 1px solid var(--border); }
.wrap { position: relative; z-index: 1; }

/* ---- Stepped feature kickers: STEP 0N with an accent bar ---- */
.feature__body .kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2); padding-left: 15px; position: relative; margin: 0 0 16px;
}
.feature__body .kicker::before {
  content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 3px; background: var(--text);
}

/* ---- Footer: rig-style monospace ---- */
.footer { background: var(--ink); }
.footer .brand { font-family: var(--display); }
.footer__brand p, .footer__brand .creds { color: var(--text-2); }
.footer__col h5 { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.footer__col a { color: var(--text-2); }
.footer__col a:hover { color: var(--text); }
.footer__bottom { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; color: var(--muted); }
.footer__social a { border-color: var(--border); color: var(--text-2); border-radius: 0; }
.footer__social a:hover { border-color: var(--text); color: var(--text); }

/* ---- Monospace block-bar chart (rig data-viz) ---- */
.barviz {
  font-family: var(--mono); font-size: 12.5px;
  display: grid; gap: 14px; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 56px);
  border: 1px solid var(--border); padding: clamp(22px, 3vw, 32px);
}
.barviz__cap { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.barviz__row { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 16px; }
.barviz__k { color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; text-align: right; }
.barviz__bar { height: 14px; position: relative; background: repeating-linear-gradient(90deg, var(--border) 0 3px, transparent 3px 6px); }
.barviz__bar::before {
  content: ""; position: absolute; inset: 0; width: var(--fill, 0%);
  background: repeating-linear-gradient(90deg, var(--text-2) 0 3px, transparent 3px 6px);
}
.barviz__v { color: var(--text); white-space: nowrap; }
.barviz__row--win .barviz__k { color: var(--text); }
.barviz__row--win .barviz__bar::before { background: repeating-linear-gradient(90deg, var(--green) 0 3px, transparent 3px 6px); }
.barviz__row--win .barviz__v { color: var(--green); }
@media (max-width: 560px) {
  .barviz__row { grid-template-columns: 1fr; gap: 6px; }
  .barviz__k { text-align: left; }
}

/* ---- Wireframe perspective floor grid (rig closing CTA) ---- */
.grid-cta { position: relative; overflow: hidden; }
.grid-cta::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 260%; height: 66%;
  transform: translateX(-50%) perspective(560px) rotateX(74deg);
  transform-origin: bottom center;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask: linear-gradient(to top, #000 4%, transparent 74%);
  mask: linear-gradient(to top, #000 4%, transparent 74%);
  opacity: .6; pointer-events: none; z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .grid-cta::after { animation: gridpan 22s linear infinite; }
}
@keyframes gridpan { to { background-position: 0 58px; } }

/* ============================================================
   RIG DETAIL LAYER v2 — labels, glow, ticks, ticker, status,
   numbered cards, data-streaks (accent = --accent, swappable)
   ============================================================ */

/* ---- Headline glow (soft halo behind big type) ---- */
.hero h1, .ss-hero h1 { text-shadow: 0 2px 18px rgba(0,0,0,.85), 0 0 46px rgba(242,166,0,.12); }

/* ---- Corner-bracket ticks on panels (diagonal L-marks) ---- */
.tick { position: relative; }
.tick::before, .tick::after { content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none; border: 1px solid var(--accent); z-index: 2; }
.tick::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.tick::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---- Ticker marquee (mono feature tags) ---- */
.ticker { overflow: hidden; border-block: 1px solid var(--border); }
.ticker__row { display: flex; gap: 0; width: max-content; animation: ticker 34s linear infinite; }
.ticker__row span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2); padding: 12px 34px; white-space: nowrap; position: relative;
}
.ticker__row span::after { content: "·"; position: absolute; right: -3px; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__row { animation: none; } }

/* ---- Section status row (mono footer strip) ---- */
.statusrow {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); border-top: 1px solid var(--border);
  margin-top: clamp(40px, 5vw, 64px); padding-top: 16px;
}
.statusrow b { color: var(--text-2); font-weight: 400; }
.statusrow .on { color: var(--green); }
.statusrow .off { color: var(--accent); }

/* ---- Numbered card labels: [ 0N ] before the card tag ---- */
.method-grid { counter-reset: card; }
.method-card { counter-increment: card; }
.method-card__tag::before { content: "[ " counter(card, decimal-leading-zero) " ] "; color: var(--accent); }

/* ---- Data-streak bars (decorative red bars around hero heads) ---- */
.streaks { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.streaks i { position: absolute; height: 4px; background: var(--accent); opacity: .9; }
.streaks i:nth-child(1) { top: 10%; left: 6%;  width: 90px; }
.streaks i:nth-child(2) { top: 15%; left: 14%; width: 150px; }
.streaks i:nth-child(3) { top: 8%;  right: 10%; width: 70px; }
.streaks i:nth-child(4) { top: 20%; right: 6%;  width: 120px; opacity: .6; }
.streaks i:nth-child(5) { top: 46%; left: 3%;   width: 70px; }
.streaks i:nth-child(6) { top: 52%; left: 8%;   width: 210px; }
.streaks i:nth-child(7) { top: 60%; left: 4%;   width: 60px; opacity: .55; }
.streaks i:nth-child(8) { top: 48%; right: 5%;  width: 90px; }
.streaks i:nth-child(9) { top: 55%; right: 9%;  width: 140px; opacity: .5; }
@media (max-width: 720px){ .streaks { display: none; } }

/* ---- Schematic blueprint diagram ---- */
.schematic {
  max-width: 880px; margin: clamp(20px, 3vw, 40px) auto 0;
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--mono);
}
.sch-node {
  border: 1px solid var(--border); background: var(--surface);
  padding: 15px 22px; text-align: center; display: flex; flex-direction: column; gap: 5px;
  min-width: 158px;
}
.sch-t { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.sch-s { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sch-ok { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.sch-node--ghost { opacity: .55; border-style: dashed; background: transparent; }
.sch-node--hero {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 44px -12px var(--accent);
  padding: 20px 28px;
}
.sch-node--hero .sch-t { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }

/* severed connector (dashed vertical + × break) */
.sch-sev { display: flex; flex-direction: column; align-items: center; padding: 4px 0; }
.sch-sev::before, .sch-sev::after {
  content: ""; width: 1px; height: 15px;
  background: repeating-linear-gradient(180deg, var(--accent) 0 4px, transparent 4px 8px);
}
.sch-x { color: var(--accent); font-size: 15px; line-height: 1; margin: 3px 0; }
.sch-l { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }

/* active flow group (dashed frame + label) */
.sch-group { position: relative; border: 1px dashed var(--border); padding: clamp(24px, 3.4vw, 38px) clamp(18px, 3vw, 32px); margin-top: 8px; width: 100%; max-width: 820px; }
.sch-group__label {
  position: absolute; top: -8px; left: 18px; background: var(--ink); padding: 0 9px;
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.sch-flow { display: flex; align-items: center; justify-content: center; }
.sch-wire { flex: 1 1 40px; min-width: 26px; height: 1px; position: relative; background: repeating-linear-gradient(90deg, var(--green) 0 5px, transparent 5px 10px); }
.sch-wire::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 6px; height: 6px; background: var(--green); box-shadow: 0 0 8px -1px var(--green); }
@media (prefers-reduced-motion: no-preference) {
  .sch-wire::after { animation: schpulse 2.2s ease-in-out infinite; }
}
@keyframes schpulse { 0%,100% { opacity: .5; transform: translate(-50%,-50%) scale(.8); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.15); } }

@media (max-width: 720px) {
  .sch-flow { flex-direction: column; }
  .sch-node { width: 100%; }
  .sch-wire { width: 1px; height: 26px; min-width: 0; flex: 0 0 26px; background: repeating-linear-gradient(180deg, var(--green) 0 5px, transparent 5px 10px); }
}

/* ============================================================
   AMBIENT MOTION LAYER — CSS-animated generated stills
   Seamless rotating/drifting loops from Higgsfield art. Near-zero
   weight, mobile-safe, GPU transforms, reduced-motion aware.
   ============================================================ */
.videobg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.videobg .vid {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .40; mix-blend-mode: screen; will-change: transform;
}
/* edge-fade so the art melts into the section */
.videobg::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 92% at 50% 42%, transparent 36%, var(--ink) 90%);
}
/* motion variants */
.videobg--spin  .vid { animation: v-spin 120s linear infinite; }
.videobg--drift .vid { animation: v-push 24s ease-in-out infinite alternate; transform: scale(1.12); }
@keyframes v-spin { from { transform: scale(1.6) rotate(0deg); } to { transform: scale(1.6) rotate(360deg); } }
@keyframes v-push { from { transform: scale(1.10) translateY(0); } to { transform: scale(1.26) translateY(-4%); } }

/* ------------------------------------------------------------
   HERO — real footage, not generated line-art.
   The base .videobg .vid treatment above (opacity .40 + screen blend)
   exists to make flat generated art melt into the canvas. Applied to
   photographic footage on a #0b0b0c ground it just turns to mud, so
   the hero opts out of both and earns its legibility from the scrim.
   ------------------------------------------------------------ */
.videobg--hero .vid {
  opacity: 1;
  mix-blend-mode: normal;
  animation: none;                 /* no v-spin on a live-action plate */
  transform: none;
  object-position: center 42%;     /* keep the desk/laptop in frame when cropped */
}
/* The <video> is injected by motion.js over the poster <img>; cross-fade so
   the swap is invisible, and never fade in a video that hasn't started. */
.videobg--hero video.vid { opacity: 0; transition: opacity .8s var(--ease); }
.videobg--hero video.vid.is-on { opacity: 1; }
.videobg--hero:has(video.vid.is-on) img.vid { opacity: 0; transition: opacity .8s var(--ease); }

/* Engineered scrim. Three jobs: protect the sticky nav, hold the headline
   block, and dissolve the bottom edge into the section below. */
.videobg--hero::after {
  background:
    /* holds the whole centred text column, all the way past the CTA row */
    radial-gradient(125% 82% at 50% 48%, rgba(11,11,12,.92) 0%, rgba(11,11,12,.78) 42%, rgba(11,11,12,.44) 70%, rgba(11,11,12,.12) 100%),
    linear-gradient(180deg, var(--ink) 0%, rgba(11,11,12,.72) 12%, transparent 32%),
    linear-gradient(0deg, var(--ink) 2%, rgba(11,11,12,.80) 20%, transparent 50%);
}

/* The scrim above is a radial tuned to a WIDE hero box. On a phone the hero
   goes tall and narrow, the headline column drops into the .44/.12 stops, and
   cream type lands on the brightest part of the plate (the desk lamp) — measured
   unreadable at 390px. Narrow widths get a vertical scrim instead of a radial:
   it darkens the whole text column regardless of how tall the hero grows. */
@media (max-width: 860px) {
  .videobg--hero::after {
    background:
      linear-gradient(180deg,
        var(--ink) 0%,
        rgba(11,11,12,.94) 14%,
        rgba(11,11,12,.90) 52%,
        rgba(11,11,12,.82) 74%,
        var(--ink) 100%),
      radial-gradient(150% 46% at 50% 22%, rgba(11,11,12,.62) 0%, transparent 100%);
  }
  /* the plate is doing atmosphere now, not subject — bias to the darker half */
  .videobg--hero .vid { object-position: center 58%; }
}

/* ============================================================
   THE PATH — the page spine. Two gates bracketing four stages.
   Reads top-to-bottom as a journey, so it stacks on mobile with
   no layout change: the gates are already full-width bars.
   `data-mode` carries the teach/run split, which is the honest
   claim the whole section exists to make.
   ============================================================ */
.stage-pick { margin: 0 0 34px; text-align: center; }
.stage-pick__q {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 14px;
}
.stage-pick__opts {
  display: grid; gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stage-pick__opt {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .18s, background .18s, transform .18s var(--ease);
}
.stage-pick__opt:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }
.stage-pick__opt b { font-size: 14px; color: var(--text); font-weight: 600; }
.stage-pick__opt span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.path { display: flex; flex-direction: column; gap: 12px; }

.path__gate {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 15px 20px; border: 1px solid var(--accent-line);
  background: var(--accent-tint);
}
.path__gate-n {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
.path__gate-q { font-size: 14px; color: var(--text-2); }
.path__gate--end { border-color: rgba(70,192,106,.34); background: var(--green-tint); }
.path__gate--end .path__gate-n { color: var(--green); }

.path__stages {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.path__stage {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 20px 18px 18px;
  background: var(--surface); border: 1px solid var(--border);
}
.path__num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: var(--muted);
}
.path__stage b { font-family: var(--display); font-size: 20px; color: var(--text); font-weight: 600; letter-spacing: -.01em; }
.path__job { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.path__mode {
  margin-top: 8px; align-self: flex-start;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 9px;
}
/* the teach/run split, made visible */
.path__stage[data-mode="teach"] { border-style: dashed; }
.path__stage[data-mode="teach"] .path__mode { color: var(--muted); border: 1px solid var(--border); }
.path__stage[data-mode="run"]   { border-color: var(--accent-line); }
.path__stage[data-mode="run"] .path__mode { color: var(--ink); background: var(--accent); font-weight: 600; }

.path__honesty { margin-top: 22px; }

@media (max-width: 900px) {
  .stage-pick__opts, .path__stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .stage-pick__opts, .path__stages { grid-template-columns: 1fr; }
  .path__gate { flex-direction: column; gap: 4px; }
}

/* ambient hex accent — small, cornered, very faint, parallax on the box */
.videobg--hex { inset: auto; width: clamp(320px, 42vw, 560px); aspect-ratio: 1; transform: translateY(var(--py, 0px)); }
.videobg--hex .vid { opacity: .12; animation: v-spin 165s linear infinite; }
.videobg--hex::after { background: radial-gradient(closest-side, transparent 32%, var(--ink) 84%); }

/* sections that host a motion layer clip it */
.hero, .quiz-section, .ss-hero, .ss-final, .section, .ss-band, .ss-section { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .videobg .vid { animation: none !important; }
}

/* ============================================================
   PER-SECTION INTERACTION MOTION (decorative; reduced-motion off)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* hero headline soft glow-breathe */
  .hero h1, .ss-hero h1 { animation: glow-breathe 6.5s ease-in-out infinite; }
  @keyframes glow-breathe {
    0%,100% { text-shadow: 0 2px 18px rgba(0,0,0,.85), 0 0 46px rgba(242,166,0,.10); }
    50%     { text-shadow: 0 2px 18px rgba(0,0,0,.85), 0 0 66px rgba(242,166,0,.18); }
  }
  /* data-streak drift */
  .streaks i { animation: streak-drift 5s ease-in-out infinite; }
  .streaks i:nth-child(2n) { animation-duration: 6.5s; animation-delay: -2.2s; }
  .streaks i:nth-child(3n) { animation-duration: 7.5s; animation-delay: -1.1s; }
  @keyframes streak-drift { 0%,100% { transform: translateX(0); } 50% { transform: translateX(9px); } }

  /* schematic: hero node breathe, severed × flicker, particle running the wire */
  .sch-node--hero { animation: node-breathe 4.2s ease-in-out infinite; }
  @keyframes node-breathe {
    0%,100% { box-shadow: 0 0 0 1px var(--accent-line), 0 0 44px -12px var(--accent); }
    50%     { box-shadow: 0 0 0 1px var(--accent),      0 0 62px -6px  var(--accent); }
  }
  .sch-x { animation: x-flicker 3.4s steps(1,end) infinite; }
  @keyframes x-flicker { 0%,90%,100% { opacity: 1; } 92% { opacity: .25; } 94% { opacity: 1; } 96% { opacity: .4; } 98% { opacity: 1; } }
  .sch-wire::before {
    content: ""; position: absolute; top: 50%; left: 0; width: 5px; height: 5px; margin-top: -2.5px;
    border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green);
    animation: wire-run 2.6s linear infinite;
  }
  @keyframes wire-run { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
  @media (max-width: 720px) { .sch-wire::before { display: none; } }

  /* pricing winner tier: gentle glow-breathe (on top of the spinning gborder) */
  .tier--win { animation: tier-glow 5s ease-in-out infinite; }
  @keyframes tier-glow {
    0%,100% { box-shadow: 0 0 0 1px var(--accent-line), 0 0 44px -20px var(--accent); }
    50%     { box-shadow: 0 0 0 1px var(--accent),      0 0 66px -14px var(--accent); }
  }
}

/* barviz bars fill on scroll (full by default → safe for reduced-motion / no-JS) */
.barviz__bar::before { transition: width 1.05s var(--ease); }
html.motion .barviz:not(.revealed) .barviz__bar::before { width: 0; }
.barviz__row:nth-child(3) .barviz__bar::before { transition-delay: .10s; }
.barviz__row:nth-child(4) .barviz__bar::before { transition-delay: .20s; }
.barviz__row:nth-child(5) .barviz__bar::before { transition-delay: .30s; }

/* ---- Radar scan (trust section) + rotating gauge (certify card) ---- */
.trust { position: relative; overflow: hidden; }
.videobg--radar { inset: auto; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(660px, 108%); aspect-ratio: 1; }
.videobg--radar .vid { opacity: .14; animation: v-spin 44s linear infinite; }
.videobg--radar::after { background: radial-gradient(closest-side, transparent 26%, var(--ink) 76%); }

.videobg--seal { inset: auto; left: 50%; top: 46%; transform: translate(-50%,-50%); width: 240px; aspect-ratio: 1; z-index: 0; }
.videobg--seal .vid { opacity: .5; animation: v-spin 34s linear infinite; }
.videobg--seal::after { background: radial-gradient(closest-side, transparent 52%, var(--ink) 92%); }
.cert { position: relative; }
.cert > :not(.videobg) { position: relative; z-index: 1; }
