/* ==========================================================================
   Panther CS — O'Fallon Township High School
   Ported from the Claude Design prototype (project/Panther CS.dc.html).
   Desktop layout is intentionally 1:1 with the prototype; everything below
   the 980px breakpoint is new.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  /* Dark is the default, per the design brief. */
  --bg: #070E18;
  --bg2: #0B1626;
  --bgHdr: rgba(7, 14, 24, .82);
  --line: rgba(255, 255, 255, .10);
  --tx: #E9EEF7;
  --dim: #93A6C0;
  --blue: #7FA8EA;
  --goldTx: #F2C231;
  --cursor: #F2C231;

  /* Gold is shared across both themes ("sparing" intensity from the brief). */
  --gold: #F2C231;
  --goldWash: rgba(242, 194, 49, .05);
  --onGold: #07101C;

  /* The terminal is deliberately dark in both themes. */
  --tBg: #050B14;
  --tTx: #C9D6E8;
  --tMuted: #6C7F99;
  --tChrome: #7C8DA6;
  --tHint: #7C93B4;   /* raised from the prototype's #5E7391 — that was 4.07:1 */
  --tCheck: #647F9E;  /* raised from the prototype's #3E5273 — that was 2.50:1 */
  --tRule: rgba(255, 255, 255, .08);

  --maxw: 1180px;
  --gutter: 28px;
  --sectionY: 96px;
}

:root[data-theme="light"] {
  --bg: #F5F6F9;
  --bg2: #FFFFFF;
  --bgHdr: rgba(245, 246, 249, .86);
  --line: rgba(0, 36, 72, .14);
  --tx: #071A2E;
  --dim: #4E617B;
  --blue: #1F4E9C;
  --goldTx: #7E6210;
  --cursor: #2C3262;
}

/* ── Base ───────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
  overflow-x: clip;
}

h1, h2, h3, p, dd, dl, figure { margin: 0; }

img { max-width: 100%; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--goldTx); }

input, button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--goldTx);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--onGold);
  font-size: 15px;
  font-weight: 600;
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0;
  color: var(--onGold);
}

/* ── Animation ──────────────────────────────────────────────────────────── */

@keyframes pcsBlink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
@keyframes pcsRing  { from { transform: scale(.72) rotate(-14deg); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes pcsUp    { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }

/* Honour the OS "reduce motion" setting: no blinking cursors, no typing loop
   (also disabled in JS), no pinned scroll (also disabled in JS), no smooth
   scroll. This is the mechanism WCAG 2.2.2 expects for the blinking carets. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ── Shared bits ────────────────────────────────────────────────────────── */

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--goldTx);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.04;
  text-wrap: balance;
}

.section-lede {
  margin-top: 22px;
  font-size: 17.5px;
  line-height: 1.66;
  color: var(--dim);
  text-wrap: pretty;
}

.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
}
.btn-gold {
  background: var(--gold);
  color: var(--onGold);
}
.btn-gold:hover { color: var(--onGold); opacity: .86; }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--tx);
}
.btn-ghost:hover { border-color: var(--goldTx); color: var(--goldTx); }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bgHdr);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--tx);
}
.brand:hover { color: var(--tx); }
.brand img { height: 30px; width: auto; display: block; flex: none; }

.brand-name {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.brand-caret {
  display: inline-block;
  width: 9px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 2px;
  animation: pcsBlink 1.1s step-end infinite;
}

/* The nav sits before the actions visually, but after them in source order so
   it can drop to its own row on narrow screens without stranding the CTA. */
.site-nav { display: flex; align-items: center; gap: 26px; order: 2; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--goldTx); }

.header-actions { display: flex; align-items: center; gap: 26px; order: 3; }

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.theme-toggle:hover { color: var(--goldTx); border-color: var(--goldTx); }
.theme-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  flex: none;
}

/* Icon-only stand-in used on narrow screens (see the 900px block). The glyph
   shows the mode you'd switch *to*, matching the text label's wording. */
.theme-glyph { display: none; font-size: 15px; line-height: 1; }
.theme-glyph::before { content: '\2600'; }                        /* ☀ → light */
:root[data-theme="light"] .theme-glyph::before { content: '\263D'; } /* ☽ → dark */

.pill-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--onGold);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.pill-cta:hover { color: var(--onGold); opacity: .86; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: var(--sectionY) var(--gutter) 64px;
  border-bottom: 1px solid var(--line);
}
.hero-wash {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 420px;
  background: var(--goldWash);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { min-width: 0; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.eyebrow-sep { opacity: .4; }
.eyebrow-year { color: var(--dim); }

.hero-title {
  font-size: clamp(38px, 6.2vw, 86px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .94;
  text-wrap: balance;
}
.hero-accent { color: var(--goldTx); display: block; }

.hero-lede {
  margin-top: 28px;
  max-width: 46ch;
  font-size: 19px;
  line-height: 1.62;
  color: var(--dim);
  text-wrap: pretty;
}

.hero-term {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg2);
  width: max-content;
  max-width: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}
.hero-term-sigil { color: var(--goldTx); flex: none; }
.hero-term-text { color: var(--tx); }
.hero-term-caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  flex: none;
  background: var(--gold);
  animation: pcsBlink 1.1s step-end infinite;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-fineprint {
  margin-top: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: .04em;
  line-height: 1.6;
  color: var(--dim);
}

.hero-mark-wrap { display: flex; justify-content: center; min-width: 0; }
.hero-mark {
  position: relative;
  width: min(310px, 100%);
  aspect-ratio: 310 / 306;
}
.hero-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: pcsRing .9s cubic-bezier(.2, .85, .2, 1) both;
}
.hero-mark-caret {
  position: absolute;
  left: 35%;
  top: 50%;
  width: 11.5%;
  height: 31%;
  transform: translateY(-50%);
  background: var(--cursor);
  animation: pcsBlink 1.1s step-end infinite;
}

/* ── At a glance ────────────────────────────────────────────────────────── */

.glance {
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}
.glance-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  /* auto-fit keeps five equal columns on desktop and reflows below that. */
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px 28px;
}
.glance-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--goldTx);
  margin-bottom: 7px;
}
.glance-value {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

/* ── The club ───────────────────────────────────────────────────────────── */

.what {
  padding: var(--sectionY) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.what-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.what-intro { position: sticky; top: 96px; }

.what-cards { display: grid; gap: 18px; }
.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg2);
  transition: border-color .2s ease;
}
.card:hover { border-color: var(--goldTx); }
.card-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}
.card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--goldTx);
}
.card-title { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.card-body {
  font-size: 16px;
  line-height: 1.62;
  color: var(--dim);
  text-wrap: pretty;
}

/* ── The path ───────────────────────────────────────────────────────────── */

.path {
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}
.path-intro {
  max-width: min(680px, var(--maxw));
  margin: 0 auto;
  padding: var(--sectionY) var(--gutter) 0;
}
/* Centre the 680px intro inside the same 1180px measure as everything else. */
@media (min-width: 1236px) {
  .path-intro { margin-left: calc((100% - var(--maxw)) / 2); }
}

.lede-scroll { display: none; }
.path.is-interactive .lede-scroll { display: inline; }
.path.is-interactive .lede-static { display: none; }

.path-runway { position: relative; }
.path-sticky { padding: 48px var(--gutter); }
.path-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* Stacked (default / small screens / no JS / reduced motion): the rail is
   pure navigation chrome, so it's dropped and all five panels read straight
   through as a document. Each panel already carries its own month + title. */
.path-rail-wrap { display: none; }
.path-panels { display: grid; gap: 40px; }
.path-panels .panel + .panel {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

/* Interactive (added by JS at >=980px, motion allowed): the prototype's
   pinned scroll-jack, one panel at a time. */
.path.is-interactive .path-runway { height: 460vh; }
.path.is-interactive .path-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 64px var(--gutter) 32px;
}
.path.is-interactive .path-grid {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 64px;
  align-items: center;
}
.path.is-interactive .path-rail-wrap { display: block; }
.path.is-interactive .path-panels { display: block; min-width: 0; }
.path.is-interactive .path-panels .panel + .panel {
  border-top: 0;
  padding-top: 0;
}
.path.is-interactive .panel { animation: pcsUp .45s cubic-bezier(.2, .8, .2, 1) both; }

.path-rail { position: relative; }
.rail-track {
  position: absolute;
  left: 7px;
  top: 38px;
  width: 2px;
  height: 304px;
  background: var(--line);
}
.rail-trace {
  position: absolute;
  left: 7px;
  top: 38px;
  width: 2px;
  height: 0;
  background: var(--gold);
  z-index: 0;
  transition: height .5s cubic-bezier(.22, .85, .24, 1);
}

.stop {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  height: 76px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.stop-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
  /* Opaque fill so the gold trace can never show through an unfilled dot —
     this was the bug the design chat kept circling. */
  background: var(--bg2);
  border: 2px solid var(--dim);
  opacity: .5;
}
.stop.is-on .stop-dot {
  background: var(--gold);
  border-color: var(--gold);
  opacity: 1;
  box-shadow: 0 0 0 6px var(--goldWash);
}
.stop-month {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--goldTx);
  width: 62px;
  flex: none;
}
.stop-name { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.stop:hover .stop-name { color: var(--goldTx); }

.rail-status {
  margin-top: 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--dim);
}

.panel-eyebrow {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.panel-month {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--goldTx);
}
.panel-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--dim);
}
.panel-title {
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.02;
}
.panel-body {
  margin-top: 24px;
  max-width: 52ch;
  font-size: 17.5px;
  line-height: 1.66;
  color: var(--dim);
  text-wrap: pretty;
}
.panel-outcome {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.panel-outcome-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--goldTx);
  margin-bottom: 12px;
}
.panel-outcome-body {
  max-width: 52ch;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--tx);
  text-wrap: pretty;
}

/* ── Speakers ───────────────────────────────────────────────────────────── */

.speakers {
  padding: var(--sectionY) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.speakers-inner { max-width: var(--maxw); margin: 0 auto; }
.speakers-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.speakers-intro { max-width: 620px; }
.speakers-aside {
  max-width: 24ch;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--dim);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.photo { min-width: 0; }
.photo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg2);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-empty {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--dim);
  opacity: .75;
}
.photo-caption {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--dim);
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq {
  padding: var(--sectionY) var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}
.faq-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.faq-intro { position: sticky; top: 96px; }

.faq-item { border-top: 1px solid var(--line); }
.faq-item-last { border-bottom: 1px solid var(--line); }

.faq-q { margin: 0; }
.faq-trigger {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.faq-trigger:hover .faq-q-text { color: var(--goldTx); }
.faq-sign {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 400;
  color: var(--goldTx);
  flex: none;
}
.faq-sign::before { content: '+'; }
.faq-trigger[aria-expanded="true"] .faq-sign::before { content: '\2212'; }

.faq-a { padding-bottom: 24px; animation: pcsUp .28s ease both; }
.faq-a p {
  max-width: 64ch;
  font-size: 16.5px;
  line-height: 1.66;
  color: var(--dim);
  text-wrap: pretty;
}

/* ── Sign up ────────────────────────────────────────────────────────────── */

.join { padding: var(--sectionY) var(--gutter); }
.join-inner { max-width: var(--maxw); margin: 0 auto; }
.join-intro { max-width: 640px; margin-bottom: 44px; }

.terminal {
  border: 1px solid rgba(242, 194, 49, .28);
  border-radius: 16px;
  background: var(--tBg);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .7);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--tRule);
  background: rgba(255, 255, 255, .03);
}
.terminal-lights { display: flex; gap: 7px; flex: none; }
.terminal-lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.terminal-lights span:nth-child(1) { background: #F2C231; }
.terminal-lights span:nth-child(2) { background: rgba(242, 194, 49, .42); }
.terminal-lights span:nth-child(3) { background: rgba(255, 255, 255, .16); }
.terminal-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--tChrome);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.terminal-progress {
  margin-left: auto;
  flex: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--tChrome);
}

.terminal-body {
  padding: 26px 24px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14.5px;
  line-height: 1.85;
  min-height: 330px;
  color: var(--tTx);
  cursor: text;
}
.term-muted { color: var(--tMuted); }

.term-log { margin-top: 14px; }
.term-line { display: flex; gap: 10px; align-items: baseline; }
.term-line-sigil { flex: none; }
.term-line-in .term-line-sigil { color: #F2C231; }
.term-line-in .term-line-text { color: #E9EEF7; }
.term-line-out .term-line-sigil { color: var(--tCheck); }
.term-line-out .term-line-text { color: var(--tMuted); }
.term-line-text { overflow-wrap: anywhere; }

.term-ask { margin-top: 14px; }
.term-question { display: block; color: #F2C231; }
.term-hint { color: var(--tHint); font-size: 13px; }
.term-error { color: #FFB4A2; font-size: 13px; }

.term-inputrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.term-sigil { color: #F2C231; flex: none; }
.term-inputrow input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #E9EEF7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14.5px;
  caret-color: #F2C231;
  padding: 0;
}
.term-inputrow input::placeholder { color: var(--tHint); }
.term-inputrow input:focus { outline: none; }
/* The input has no border of its own, so surface focus on the whole row. */
.term-inputrow:focus-within {
  outline: 2px solid #F2C231;
  outline-offset: 6px;
  border-radius: 4px;
}

.term-submit {
  flex: none;
  padding: 6px 14px;
  border: 1px solid rgba(242, 194, 49, .4);
  border-radius: 8px;
  background: transparent;
  color: #F2C231;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  cursor: pointer;
}
.term-submit:hover { background: rgba(242, 194, 49, .1); }

.term-done {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--tRule);
  animation: pcsUp .35s ease both;
}
.term-done-head { color: #F2C231; }
.term-done-body { color: var(--tMuted); margin-top: 8px; }
.term-done-body a { color: #F2C231; text-decoration: underline; }
.term-done-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.term-again {
  padding: 10px 18px;
  border: 1px solid rgba(242, 194, 49, .4);
  border-radius: 8px;
  background: transparent;
  color: #F2C231;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  cursor: pointer;
}
.term-again:hover { background: rgba(242, 194, 49, .1); }

.join-fallback {
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--dim);
}

.pending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.pending-card {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.pending-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.pending-value { font-size: 15px; font-weight: 500; color: var(--dim); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  padding: 52px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--bg2);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { height: 56px; width: auto; display: block; flex: none; }
.footer-name { font-size: 15px; font-weight: 600; }
.footer-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--dim);
  margin-top: 4px;
}
.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
  color: var(--dim);
  text-align: right;
}

/* ══ Responsive ═════════════════════════════════════════════════════════════
   Everything above is the prototype's desktop layout. Below here is new.
   ═════════════════════════════════════════════════════════════════════════ */

/* Tablet / small laptop: drop the two-column editorial splits. */
@media (max-width: 980px) {
  :root { --sectionY: 72px; --gutter: 24px; }

  .hero { padding-bottom: 56px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    justify-items: start;
  }
  /* Lead with the mark — it reads as a poster once the columns collapse. */
  .hero-mark-wrap { order: -1; justify-content: flex-start; }
  .hero-mark { width: min(160px, 40vw); }
  .hero-title { font-size: clamp(36px, 9vw, 64px); }
  .hero-br { display: none; }

  .what-inner,
  .faq-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .what-intro,
  .faq-intro { position: static; }
}

/* Header: give the nav its own row before it can crowd the actions. */
@media (max-width: 900px) {
  /* Two rows, and only two: brand + Sign up above, nav + theme toggle below.
     `display: contents` dissolves the actions wrapper so the CTA can ride the
     first row while the toggle drops to the second — all four items are then
     siblings and `order` decides the arrangement. Keeping this to two rows
     matters: the header is sticky, so every row costs permanent screen. */
  .header-inner { flex-wrap: wrap; gap: 12px 18px; }
  .brand { margin-right: 0; }
  .header-actions { display: contents; }

  .pill-cta { order: 2; }
  .site-nav {
    order: 3;
    flex: 1 1 100%;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 13px; }

  /* Shrink the toggle to a glyph and move it up beside the CTA — that frees
     the whole second row for the nav so no link gets clipped. The accessible
     name still comes from the aria-label app.js keeps up to date. */
  .theme-toggle { order: 1; flex: none; margin-left: auto; padding: 7px 10px; }
  .theme-dot, #theme-toggle-label { display: none; }
  .theme-glyph { display: inline; }

  /* Sticky offsets follow the taller header. */
  .what-intro, .faq-intro { top: 120px; }
}

/* Very narrow phones (SE-class, folded devices): shave the header down enough
   that brand + toggle + CTA still share one row. */
@media (max-width: 370px) {
  .header-inner { gap: 10px 12px; }
  .brand { gap: 9px; }
  .brand img { height: 26px; }
  .brand-name { font-size: 15px; }
  .pill-cta { padding: 8px 13px; font-size: 13px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 12.5px; }
}

/* Phone. */
@media (max-width: 640px) {
  :root { --sectionY: 60px; --gutter: 20px; }

  .hero { padding-top: 64px; }
  /* The eyebrow wraps to two lines here; a dangling "//" reads like a typo. */
  .eyebrow-sep { display: none; }
  .hero-lede { font-size: 17px; }
  .hero-term { font-size: 13px; padding: 11px 14px; }
  .hero-buttons { gap: 12px; margin-top: 30px; }
  .btn { width: 100%; text-align: center; padding: 15px 20px; }

  .section-lede { font-size: 16.5px; }
  .card { padding: 24px 20px; }
  .card-title { font-size: 19px; }

  .path-sticky { padding: 40px var(--gutter); }
  .path-grid, .path-panels { gap: 32px; }
  .path-panels .panel + .panel { padding-top: 32px; }
  .panel-body, .panel-outcome-body { font-size: 16.5px; }

  .photo-grid { grid-template-columns: 1fr; }
  .photo-frame { height: 220px; }

  .faq-trigger { font-size: 17px; gap: 16px; padding: 20px 0; }
  .faq-a p { font-size: 16px; }

  .terminal-body { padding: 22px 18px 24px; font-size: 13.5px; }
  .terminal-bar { gap: 10px; padding: 12px 16px; }
  .terminal-name { font-size: 11px; }
  .term-inputrow input { font-size: 16px; } /* >=16px stops iOS zoom-on-focus */

  .footer-inner { gap: 28px; }
  .footer-brand { align-items: flex-start; }
  .footer-meta { text-align: left; }
}

/* ── Print ──────────────────────────────────────────────────────────────── */

@media print {
  .site-header, .hero-wash, .theme-toggle, .pill-cta,
  .term-inputrow, .term-submit, .term-done-actions, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .faq-a { display: block !important; }
  .path.is-interactive .path-runway { height: auto; }
  .path.is-interactive .path-sticky { position: static; height: auto; }
}
