/* ─────────────────────────────────────────────
   Tokens — light is the complete set on :root
   ───────────────────────────────────────────── */
:root {
  --paper:        #FAF9FC;
  --surface:      #FFFFFF;
  --surface-sunk: #F3F1F7;
  --ink:          #17141F;
  --ink-2:        #4A4457;
  --ink-3:        #7B7489;
  --rule:         #E6E2EC;
  --rule-strong:  #D5D0DE;
  --accent:       #7C3AED;
  --accent-ink:   #FFFFFF;
  --accent-soft:  rgba(124, 58, 237, 0.10);
  --wordmark:     #121016;   /* Branding/README.md — wordmark ink */
  --shadow:       0 1px 2px rgba(23, 20, 31, .04), 0 12px 32px -12px rgba(23, 20, 31, .12);

  /* Course hues — from TimetableImport.swift */
  --c-violet:  #7C3AED;
  --c-blue:    #3B82F6;
  --c-emerald: #10B981;
  --c-amber:   #D97706;
  --c-pink:    #EC4899;

  --tint: 12%;
  --wrap: 1120px;

  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.35rem, 1.1rem + 0.9vw, 1.6rem);
  --step-3: clamp(1.9rem, 1.3rem + 2.6vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.45rem + 4vw, 3.85rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #131019;
    --surface:      #1C1826;
    --surface-sunk: #17131F;
    --ink:          #F2EFF7;
    --ink-2:        #BCB4CB;
    --ink-3:        #8E86A0;
    --rule:         #2B2537;
    --rule-strong:  #3A3349;
    --accent:       #A56BF3;
    --accent-ink:   #17101F;
    --accent-soft:  rgba(165, 107, 243, 0.15);
    --wordmark:     #FFFFFF;
    --shadow:       0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .55);
    --c-violet:  #A56BF3;
    --c-blue:    #6BA6FF;
    --c-emerald: #34D3A0;
    --c-amber:   #F0AE4A;
    --c-pink:    #F472B6;
    --tint: 17%;
  }
}

:root[data-theme="dark"] {
  --paper:        #131019;
  --surface:      #1C1826;
  --surface-sunk: #17131F;
  --ink:          #F2EFF7;
  --ink-2:        #BCB4CB;
  --ink-3:        #8E86A0;
  --rule:         #2B2537;
  --rule-strong:  #3A3349;
  --accent:       #A56BF3;
  --accent-ink:   #17101F;
  --accent-soft:  rgba(165, 107, 243, 0.15);
  --wordmark:     #FFFFFF;
  --shadow:       0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .55);
  --c-violet:  #A56BF3;
  --c-blue:    #6BA6FF;
  --c-emerald: #34D3A0;
  --c-amber:   #F0AE4A;
  --c-pink:    #F472B6;
  --tint: 17%;
}

/* ─────────────────────────────────────────────
   Base
   ───────────────────────────────────────────── */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 660; }
h1 { font-size: var(--step-4); letter-spacing: -0.038em; line-height: 1.01; font-weight: 700; }
h2 { font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1.08; }
h3 { font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.2; }
p  { margin: 0; }
a  { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  margin: 0;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

.muted { color: var(--ink-3); }

/* ─────────────────────────────────────────────
   Header
   ───────────────────────────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-head[data-stuck="true"] { border-bottom-color: var(--rule); }

.head-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 660;
  letter-spacing: -0.022em;
  font-size: 1.0625rem;
  text-decoration: none;
  margin-right: auto;
  color: var(--wordmark);
}
.brand-mark { display: block; flex: none; }

.nav { display: flex; gap: 26px; }
.nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--ink-2);
  transition: color .18s ease;
}
.nav a:hover { color: var(--ink); }

@media (max-width: 780px) { .nav { display: none; } }

.theme-btn {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.theme-btn:hover { color: var(--ink); border-color: var(--rule-strong); }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun,
:root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

/* ─────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 11px;
  font-size: 0.9688rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s cubic-bezier(.2,.7,.3,1), background-color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--rule-strong); }

/* ─────────────────────────────────────────────
   Sections
   ───────────────────────────────────────────── */
.section { padding-block: clamp(72px, 9vw, 124px); }
.section + .section { border-top: 1px solid var(--rule); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 62ch;
  margin-bottom: clamp(38px, 5vw, 60px);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22,.8,.3,1), transform .7s cubic-bezier(.22,.8,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ─────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────── */
.hero { padding-top: clamp(52px, 7vw, 92px); padding-bottom: clamp(60px, 8vw, 104px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.34fr);
  gap: clamp(36px, 5vw, 60px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}

.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-copy h1 { margin-top: 4px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-top: 4px;
}
.platforms span { display: inline-flex; align-items: center; gap: 7px; }
.platforms span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .65;
}

/* ── The timetable ── */
.tt-frame {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tt-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-sunk);
}
.tt-bar-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tt-bar-term {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); display: block; }

.tt-scroll { overflow-x: auto; }

/* On narrow screens the week runs off the edge — fade the trailing edge
   so it reads as scrollable rather than clipped. */
@media (max-width: 700px) {
  .tt-scroll {
    -webkit-mask-image: linear-gradient(90deg, #000 88%, rgba(0,0,0,.15) 100%);
    mask-image: linear-gradient(90deg, #000 88%, rgba(0,0,0,.15) 100%);
  }
}
@media (max-width: 560px) {
  .tt { grid-template-columns: 34px repeat(5, minmax(84px, 1fr)); min-width: 454px; }
}

.tt {
  display: grid;
  grid-template-columns: 40px repeat(5, minmax(92px, 1fr));
  grid-template-rows: 30px repeat(18, 21px);
  min-width: 510px;
  padding: 0 12px 14px;
}

.tt-day, .tt-time { font-family: var(--font-mono); }

.tt-day {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
}
.tt-day[data-today="true"] { color: var(--accent); }

.tt-time {
  grid-column: 1;
  font-size: 0.625rem;
  color: var(--ink-3);
  text-align: right;
  padding-right: 9px;
  transform: translateY(-6px);
  opacity: .85;
}

/* hairlines every hour, behind the blocks */
.tt-line {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  opacity: .7;
}

.tt-col-rule { border-left: 1px solid var(--rule); opacity: .55; grid-row: 2 / -1; }

.blk {
  position: relative;
  z-index: 2;
  margin: 1px 3px;
  padding: 4px 7px;
  border-radius: 6px;
  border-left: 2.5px solid var(--hue);
  background: color-mix(in srgb, var(--hue) var(--tint), var(--surface));
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px) scale(.985);
  animation: blk-in .5s cubic-bezier(.22,.9,.3,1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes blk-in { to { opacity: 1; transform: none; } }

.blk b {
  display: block;
  font-size: 0.6875rem;
  font-weight: 640;
  letter-spacing: -0.005em;
  color: var(--hue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blk s {
  display: block;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.5938rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hue-violet  { --hue: var(--c-violet); }
.hue-blue    { --hue: var(--c-blue); }
.hue-emerald { --hue: var(--c-emerald); }
.hue-amber   { --hue: var(--c-amber); }
.hue-pink    { --hue: var(--c-pink); }

.tt-caption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────
   Import — paste in, term out
   ───────────────────────────────────────────── */
.transform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
@media (max-width: 900px) {
  .transform { grid-template-columns: minmax(0, 1fr); }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-sunk);
  font-family: var(--font-mono);
  font-size: 0.6563rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.raw {
  margin: 0;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.85;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-x: auto;
  flex: 1;
}
.raw mark {
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: 3px;
  padding: 1px 3px;
}

.arrow {
  display: grid;
  place-items: center;
  color: var(--ink-3);
}
@media (max-width: 900px) {
  .arrow { height: 44px; }
  .arrow svg { transform: rotate(90deg); }
}

.rows { display: flex; flex-direction: column; flex: 1; }

.row {
  display: grid;
  grid-template-columns: 3px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 15px 11px 0;
  border-bottom: 1px solid var(--rule);
}
.row:last-child { border-bottom: 0; }
.row i { display: block; align-self: stretch; background: var(--hue); border-radius: 0 3px 3px 0; }
.row-main { min-width: 0; }
.row-title {
  font-size: 0.875rem;
  font-weight: 590;
  letter-spacing: -0.012em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.6563rem;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--surface-sunk);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rows-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 15px;
  border-top: 1px solid var(--rule);
  background: var(--surface-sunk);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.rows-foot svg { color: var(--c-emerald); flex: none; }
.rows-foot .pill {
  margin-left: auto;
  color: var(--c-emerald);
  background: transparent;
  border-color: color-mix(in srgb, var(--c-emerald) 38%, transparent);
}

.note-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 26px 34px;
  margin-top: clamp(38px, 5vw, 56px);
  padding-top: clamp(30px, 4vw, 40px);
  border-top: 1px solid var(--rule);
}
.note h3 { font-size: 1rem; font-weight: 640; margin-bottom: 6px; }
.note p { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.55; }

/* ─────────────────────────────────────────────
   Grades
   ───────────────────────────────────────────── */
.grades-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 3.5vw, 46px);
  align-items: start;
}
@media (max-width: 900px) { .grades-grid { grid-template-columns: minmax(0, 1fr); } }

.outlook { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 18px; }

.outlook-q {
  font-size: 1.0625rem;
  font-weight: 620;
  letter-spacing: -0.018em;
  line-height: 1.35;
}

.weights { display: flex; flex-direction: column; gap: 13px; }
.weight { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: baseline; }
.weight-name { font-size: 0.875rem; color: var(--ink-2); }
.weight-val {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.bar {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 3px;
  background: var(--surface-sunk);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  opacity: .8;
  width: 0;
  transition: width 1.1s cubic-bezier(.22,.8,.3,1);
}
.in .bar span { width: var(--w); }
/* Not graded yet — a hatched empty track, so it can't be read as "100%" */
.bar.is-pending {
  background: repeating-linear-gradient(-45deg,
    var(--surface-sunk) 0 5px,
    var(--rule) 5px 6px);
}
.bar.is-pending span { display: none; }

.answer {
  margin-top: 2px;
  padding: 16px 18px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.answer-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.answer-txt { font-size: 0.875rem; color: var(--ink-2); flex: 1; min-width: 160px; }

.trend { padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.trend-top { display: flex; align-items: baseline; gap: 10px; }
.trend-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.trend-delta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-emerald);
  letter-spacing: 0.02em;
}
.spark { width: 100%; height: 82px; display: block; overflow: visible; }
.spark-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  transition: stroke-dashoffset 1.5s cubic-bezier(.3,.8,.3,1);
}
.in .spark-line { stroke-dashoffset: 0; }
.spark-terms {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* ─────────────────────────────────────────────
   Focus
   ───────────────────────────────────────────── */
.focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .focus-grid { grid-template-columns: minmax(0, 1fr); } }

.tree-stage {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 16px;
  border: 1px solid var(--rule);
  background:
    radial-gradient(115% 85% at 50% 108%, color-mix(in srgb, var(--c-emerald) 13%, transparent), transparent 62%),
    var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.tree-stage svg { width: 74%; height: 78%; overflow: visible; }

.timer-chip {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 10px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.timer-chip::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-emerald);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.leaf { transform-origin: 200px 300px; animation: sway 6.1s ease-in-out infinite; }
.leaf-2 { animation-duration: 4.3s; }
@keyframes sway { 0%, 100% { transform: rotate(-.5deg); } 50% { transform: rotate(.5deg); } }

.species {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}
.species li {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  background: var(--surface);
}
.species-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }

.focus-copy { display: flex; flex-direction: column; gap: 20px; }

/* ─────────────────────────────────────────────
   Everywhere strip
   ───────────────────────────────────────────── */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.strip-cell {
  background: var(--surface);
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.strip-cell svg { color: var(--accent); margin-bottom: 4px; }
.strip-cell h3 { font-size: 0.9688rem; font-weight: 640; }
.strip-cell p { font-size: 0.875rem; color: var(--ink-2); line-height: 1.5; }

/* ─────────────────────────────────────────────
   Privacy band
   ───────────────────────────────────────────── */
.band { background: var(--surface-sunk); }
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
@media (max-width: 860px) { .band-grid { grid-template-columns: minmax(0, 1fr); } }

.facts { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; }
.fact {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 17px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.fact:last-child { border-bottom: 1px solid var(--rule); }
.fact dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.fact dd { margin: 0; font-size: 0.9688rem; color: var(--ink-2); line-height: 1.55; }
.fact dd b { color: var(--ink); font-weight: 620; }
@media (max-width: 560px) { .fact { grid-template-columns: minmax(0, 1fr); } }

/* ─────────────────────────────────────────────
   CTA + footer
   ───────────────────────────────────────────── */
.cta { text-align: center; }
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 52ch;
  margin-inline: auto;
}

/* ── Waitlist form ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 460px;
  margin-top: 4px;
}

.signup-row {
  display: flex;
  gap: 10px;
  width: 100%;
}
@media (max-width: 520px) {
  .signup-row { flex-direction: column; }
}

.signup-input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  font: inherit;
  font-size: 0.9688rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 11px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.signup-input::placeholder { color: var(--ink-3); }
.signup-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.signup-input[aria-invalid="true"] { border-color: var(--c-pink); }

/* Honeypot — off-screen rather than display:none, which some bots skip */
.signup-trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.signup-btn { flex: none; position: relative; }
.signup-spinner { display: none; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.signup[data-state="sending"] .signup-btn-label { opacity: .55; }
.signup[data-state="sending"] .signup-spinner { display: block; }
.signup[data-state="sending"] .signup-btn { pointer-events: none; }

.signup-status {
  font-size: 0.875rem;
  line-height: 1.45;
  min-height: 1.3em;
  margin: 0;
  color: var(--ink-2);
}
.signup-status[data-tone="ok"]  { color: var(--c-emerald); }
.signup-status[data-tone="bad"] { color: var(--c-pink); }

.signup-fine { font-size: 0.8125rem; color: var(--ink-3); margin: 0; }

/* On success the whole form collapses to the confirmation */
.signup[data-state="done"] .signup-row,
.signup[data-state="done"] .signup-fine { display: none; }
.signup[data-state="done"] .signup-status { font-size: 1rem; }

.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: 34px 44px;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.foot-inner nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.foot-inner a { text-decoration: none; transition: color .18s ease; }
.foot-inner a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .blk { opacity: 1; transform: none; }
  .bar span { width: var(--w); }
  .spark-line { stroke-dashoffset: 0; }
}

/* ─────────────────────────────────────────────
   Document pages (privacy, support, 404)
   ───────────────────────────────────────────── */
.doc { padding-block: clamp(48px, 6vw, 82px) clamp(64px, 8vw, 110px); }

.doc-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: clamp(28px, 4vw, 40px);
  margin-bottom: clamp(32px, 4vw, 44px);
  border-bottom: 1px solid var(--rule);
  max-width: 60ch;
}
.doc-head h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3rem); }

.doc-body { max-width: 68ch; display: flex; flex-direction: column; gap: 34px; }

.doc-body section { display: flex; flex-direction: column; gap: 12px; }
.doc-body h2 {
  font-size: 1.25rem;
  letter-spacing: -0.018em;
  padding-top: 4px;
}
.doc-body h3 { font-size: 1rem; font-weight: 640; margin-top: 6px; }
.doc-body p { color: var(--ink-2); line-height: 1.62; }
.doc-body a { color: var(--accent); text-underline-offset: 3px; }

.doc-body ul { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 9px; }
.doc-body li { color: var(--ink-2); line-height: 1.55; }
.doc-body li::marker { color: var(--ink-3); }

.doc-body strong { color: var(--ink); font-weight: 620; }

.doc-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--surface-sunk);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 1px 5px;
}

/* A pulled-out statement — used for the "what we don't collect" claims */
.doc-callout {
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.doc-callout p { color: var(--ink); }

.doc-updated {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

/* Support: question/answer pairs */
.faq { display: flex; flex-direction: column; gap: 0; }
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  padding: 17px 30px 17px 0;
  font-size: 1rem;
  font-weight: 590;
  letter-spacing: -0.012em;
  list-style: none;
  position: relative;
  transition: color .18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.8px solid var(--ink-3);
  border-bottom: 1.8px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-a { padding: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }

/* 404 */
.notfound {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding-block: 70px;
}
.notfound-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
