/* UNC Courses MCP design system: tokens, then components.
   Playful neo-brutalist look: cream paper, thick ink outlines, hard offset shadows, oversized type.
   UNC colors are accents: Carolina Blue #4B9CD3, Navy #13294B. */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --navy: #13294B;
  --blue: #4B9CD3;
  --link: #006A99;
  --positive: #1F8A5B;

  /* accents for blocks, chips and stickers */
  --sky: #E3F0FA;
  --sun: #FFD166;
  --mint: #8FE3B5;
  --rose: #F7C6D9;

  /* surfaces + text (light) */
  --bg: #FFFDF7;          /* page paper */
  --surface: #FFFFFF;     /* cards */
  --surface-2: #FBF1DC;   /* cream: wells, quiet buttons, chips */
  --ink: #111418;         /* outlines + hard shadows */
  --line: #111418;
  --text: #111418;
  --muted: #4A5260;
  --on-primary: #111418;
  --primary: var(--blue);

  /* type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --text-sm: 14px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: 28px;
  --text-display: clamp(46px, 7vw, 88px);

  /* space (4px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 112px;

  /* shape */
  --border: 3px solid var(--ink);
  --border-thin: 2px solid var(--ink);
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151B;
    --surface: #1A1F27;
    --surface-2: #242A34;
    --ink: #EDE6D6;
    --line: #EDE6D6;
    --text: #F4EFE4;
    --muted: #B3BAC6;
    --link: #8CCBF2;
    --positive: #6FD6A0;
    --sky: #1E3A52;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--text-md)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 2px; }
code { font: 0.9em var(--mono); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Layout ---------- */
.page { max-width: 820px; margin: 0 auto; padding: var(--space-6) var(--space-4) var(--space-8); }
.wide { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-4); }
.paper { border-bottom: var(--border); overflow-x: clip; }
.stack > * + * { margin-top: var(--space-5); }
.section { margin-top: var(--space-9); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; margin: 0; }

/* ---------- Text ---------- */
.eyebrow { font-size: var(--text-md); font-weight: 600; margin: 0 0 var(--space-3); }
.display { font-size: var(--text-display); font-weight: 900; letter-spacing: -0.045em; line-height: 0.98; margin: 0; }
.lede { font-size: var(--text-lg); color: var(--muted); margin: var(--space-6) 0 0; max-width: 30em; line-height: 1.55; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Typewriter name in the hero. Every name sits in the same grid cell, hidden, so the box is always as wide as the longest one and the headline never reflows. */
.typer { display: inline-grid; text-align: left; }
.typer > span { grid-area: 1 / 1; visibility: hidden; padding-right: 0.12em; }
.typer > .typer-live { visibility: visible; padding-right: 0; }
.typer-live::after { content: ""; display: inline-block; width: 0.07em; height: 0.82em; margin-left: 0.05em; vertical-align: -0.04em; background: var(--blue); border-radius: 1px; animation: caret-blink 1.06s steps(1) infinite; }
.typer-live.typing::after { animation: none; }
@keyframes caret-blink { 50% { opacity: 0; } }

/* ---------- Top nav (UNC signature; keep clear space >= 1/4 logo height) ---------- */
.nav { background: var(--bg); border-bottom: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 76px; }
.nav img { display: block; height: 40px; width: auto; max-width: 100%; }
.nav-links { display: flex; align-items: center; gap: var(--space-5); font-weight: 600; font-size: 15px; }
.nav-links a { color: var(--text); text-decoration: none; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (max-width: 640px) {
  .nav img { height: 32px; }
  .nav-links .nav-extra { display: none; }
}

/* ---------- Hero (headline left, example schedule right) ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-8); align-items: center; padding-top: var(--space-9); padding-bottom: var(--space-9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: var(--space-6) 0 0; }
.hero-hint { margin: var(--space-3) 0 0; font-size: var(--text-sm); }
.quick-add .js-copy-open-status:empty { display: none; }
.quick-add .js-copy-open-status { margin: var(--space-3) 0 0; font-size: var(--text-sm); }
.hero-url { margin-top: var(--space-8); max-width: 460px; }
.hero-url-label { display: block; font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-2); }
/* Add to Claude nudge: a bigger button and reassurance ticks */
.cta { margin-top: var(--space-7); }
.cta .hero-actions { margin-top: 0; }
.btn.btn-xl { min-height: 60px; padding: 0 var(--space-6); font-size: var(--text-lg); }
.btn.btn-xl svg { width: 20px; height: 20px; }
/* A small, occasional wiggle so the main button catches the eye without shouting. */
.btn-primary.btn-xl { animation: nudge 7s ease-in-out 3s infinite; }
@keyframes nudge { 0%, 92%, 100% { transform: none; } 94% { transform: rotate(-1deg); } 96% { transform: rotate(1deg); } 98% { transform: rotate(-0.5deg); } }
.btn-primary.btn-xl:hover { animation: none; }
@media (prefers-reduced-motion: reduce) { .btn-primary.btn-xl { animation: none; } }
.card.go { text-align: center; background: var(--surface-2); padding: var(--space-7) var(--space-5); }
.go p { margin: var(--space-3) auto 0; }
.go .hero-actions { justify-content: center; margin-top: var(--space-5); }
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: var(--space-7); gap: var(--space-8); }
}
@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Example week: a drawing, not live data. Classes are placed with grid-column (day) and grid-row (hour). */
.board { position: relative; margin: 0; padding: var(--space-4); background: var(--surface); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.board-head { display: flex; justify-content: space-between; gap: var(--space-3); margin: 0 0 var(--space-3); font-size: 15px; font-weight: 700; }
.board-head span + span { color: var(--muted); font-weight: 600; }
.week { display: grid; grid-template-columns: 28px repeat(5, 1fr); grid-template-rows: 22px repeat(6, 42px); gap: 5px; font-size: 12px; }
.week .day { grid-row: 1; text-align: center; font-weight: 800; }
.week .hour { grid-column: 1; color: var(--muted); font-size: 11px; }
.cls { border: var(--border-thin); border-radius: 7px; padding: 3px 6px; font-weight: 800; font-size: 12px; line-height: 1.15; color: #111418; box-shadow: 2px 2px 0 var(--ink); overflow: hidden; }
.cls small { display: block; font-weight: 500; font-size: 11px; }
.cls-a { background: #CFE6F7; } .cls-b { background: var(--sun); } .cls-c { background: var(--rose); } .cls-d { background: var(--mint); }
.cls { transition: box-shadow .15s ease; }
.cls.lift { box-shadow: 5px 5px 0 var(--ink); }
/* Friday is crossed off: the example student said "No Fridays". */
.fri-off { grid-column: 6; grid-row: 2 / span 6; border: var(--border-thin); border-radius: 7px; background: repeating-linear-gradient(135deg, var(--ink) 0 1.5px, transparent 1.5px 8px); opacity: .28; transition: clip-path .3s ease-out; }
.week .day-off { text-decoration: line-through; opacity: .45; transition: opacity .3s ease; }
/* Intro (board.js): the request types out, Friday crosses off, open slots outline, classes slide in. */
.board.intro .cls, .board.intro .sticker-ok { opacity: 0; }
.board.intro .fri-off { clip-path: inset(0 0 100% 0); }
.board.intro .day-off { text-decoration-color: transparent; opacity: 1; }
.board.intro.fri .fri-off { clip-path: inset(0); }
.board.intro.fri .day-off { text-decoration-color: currentColor; opacity: .45; }
.slot { border: 2px dashed var(--ink); border-radius: 7px; opacity: 0; transition: opacity .2s ease; }
.slot.on { opacity: .4; }
/* Snap in: each class drops into its outline and lands with a little press (shadow 6px -> 2px). */
.cls.in { animation: snap-in .24s cubic-bezier(.3,.7,.4,1) both; }
@keyframes snap-in {
  0% { opacity: 0; transform: translateY(-10px); box-shadow: 6px 6px 0 var(--ink); }
  35% { opacity: 1; }
  80% { transform: translateY(1px); box-shadow: 1px 1px 0 var(--ink); }
  100% { opacity: 1; transform: none; box-shadow: 2px 2px 0 var(--ink); }
}
.sticker-ok.stamp { animation: stamp .2s ease-out both; }
@keyframes stamp { from { opacity: 0; transform: rotate(0deg) scale(1.3); } to { opacity: 1; transform: rotate(3deg) scale(1); } }
.bubble .b-ghost { visibility: hidden; }
.bubble .b-typed { position: absolute; inset: 10px 16px; }
.bubble .b-typed.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: #111418; animation: caret-blink 1.06s steps(1) infinite; }
/* Track picker: redraws the example for a pre-med, business or CS student. Hidden until the intro is done (and without JS). */
.board-ctrl { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--space-3); margin-top: var(--space-7); visibility: hidden; opacity: 0; transition: opacity .3s ease; }
.board-ctrl.on { visibility: visible; opacity: 1; }
.board-try { font-size: var(--text-sm); font-weight: 700; color: var(--muted); }
.board-picks { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.btn.btn-sm { min-height: 40px; padding: 0 var(--space-4); font-size: 15px; }
.board-picks .btn[aria-pressed="true"] { background: var(--sun); color: #111418; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.pick-short { display: none; }
.cls.out { opacity: 0; transform: translateY(6px); transition: opacity .12s ease, transform .12s ease; }
@media (max-width: 600px) { .board-ctrl { margin-top: 72px; justify-content: center; } .board-try { flex-basis: 100%; text-align: center; } .board-picks { justify-content: center; } .pick-long { display: none; } .pick-short { display: inline; } }
.sticker { position: absolute; border: var(--border); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); font-weight: 800; color: #111418; }
.sticker-ok { right: -16px; top: -22px; background: var(--mint); padding: 5px 14px; font-size: 14px; transform: rotate(3deg); }
.bubble { position: absolute; left: -48px; bottom: -40px; max-width: 290px; background: var(--sun); color: #111418; border: var(--border); border-radius: 16px 16px 16px 3px; box-shadow: var(--shadow-sm); padding: 10px 16px; font-weight: 700; transform: rotate(-3deg); }
@media (max-width: 880px) {
  .board { margin: 0 var(--space-2); }
  .bubble { left: -6px; bottom: -46px; }
  .sticker-ok { right: -8px; }
}
@media (max-width: 420px) {
  .week { grid-template-columns: 20px repeat(5, 1fr); gap: 3px; }
  .cls { padding: 2px 4px; font-size: 11px; }
  .cls small { font-size: 10px; }
}

/* Decorative sparkles */
.spark { position: absolute; width: 64px; height: 64px; pointer-events: none; }
.spark path { stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.spark-board { right: -36px; bottom: 36px; }
.spark-board path { fill: var(--sun); }
.spark-hero { left: -10px; top: -46px; width: 44px; height: 44px; }
.spark-hero path { fill: var(--blue); }
@media (max-width: 880px) { .spark-board { display: none; } }

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow);
}
.card-cream { background: var(--surface-2); }

/* ---------- Desktop layout: use the width (bento grid, stats band, two columns); phones stack ---------- */
.page-wide { max-width: 1120px; }
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: var(--space-7); align-items: start; margin-bottom: var(--space-6); }
.split-head .prose-lg { color: var(--muted); }
.bento { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: var(--space-6); }
.bento-card { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; padding: var(--space-6); }
.bento-tall { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: 1fr; align-content: space-between; background: var(--surface-2); }
.bento-text h3 { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-xl); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.bento-text p { margin: 0; color: var(--muted); }
.icon-tile { width: 48px; height: 48px; display: grid; place-items: center; border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); color: #111418; }
.icon-tile svg { width: 24px; height: 24px; }
.tile-sky { background: #CFE6F7; } .tile-sun { background: var(--sun); } .tile-mint { background: var(--mint); }
/* Mini product drawings inside bento cards (decorative) */
.mini { display: grid; gap: var(--space-2); padding: var(--space-3); background: var(--bg); border: var(--border-thin); border-radius: var(--radius-md); box-shadow: 3px 3px 0 var(--ink); font-size: 14px; }
.mini-row { display: flex; align-items: center; gap: var(--space-3); white-space: nowrap; padding: 8px 10px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 8px; }
.mini-row b { font-family: var(--mono); font-size: 13px; }
.mini-row span:not(.pill):not(.tick) { color: var(--muted); }
.pill { margin-left: auto; padding: 1px 9px; border: 1.5px solid var(--ink); border-radius: var(--radius-pill); background: var(--mint); color: #111418; font-weight: 800; font-size: 12px; white-space: nowrap; }
.pill-low { background: var(--sun); }
.tick { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--mint); color: #111418; border: 1.5px solid var(--ink); font-size: 11px; font-weight: 900; }
.mini-checks { font-size: 15px; padding: var(--space-4); gap: var(--space-3); }
.mini-ok { justify-content: space-between; background: var(--mint); color: #111418; }
.mini-ok b { font-family: var(--font); font-size: 16px; }
.mini-ok span:not(.pill) { color: #111418 !important; font-weight: 700; }
/* Stats band */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: var(--space-6) 0 0; padding: var(--space-6) var(--space-5); list-style: none; background: var(--navy); color: #FFFFFF; border: 3px solid #111418; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.stats li { padding: 0 var(--space-5); border-left: 2px dashed rgb(255 255 255 / 30%); }
.stats li:first-child { border-left: 0; }
.stats b { display: block; font-size: clamp(44px, 5vw, 64px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: var(--blue); }
.stats span { display: block; margin-top: var(--space-2); color: rgb(255 255 255 / 82%); }
/* Two columns: prompts beside the suggestion form; FAQ beside Claude Code */
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-6); align-items: start; }
.two-col .suggest { margin-top: 0; }
.two-col-sections > .section { min-width: 0; }
/* Setup steps: two per row on desktop (text above its picture); an odd last step spans the row */
@media (min-width: 981px) {
  #setup .guide { grid-template-columns: 1fr 1fr; }
  #setup .guide-step { grid-template-columns: 1fr; align-content: space-between; align-items: start; }
  #setup .guide-step:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: center; }
}
@media (max-width: 980px) {
  .split-head { grid-template-columns: 1fr; gap: var(--space-4); }
  .bento { grid-template-columns: 1fr; }
  .bento-tall { grid-column: auto; grid-row: auto; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .two-col .suggest { margin-top: var(--space-6); }
}
@media (max-width: 600px) {
  .bento-card { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats li { border-left: 0; padding: 0; }
}

/* ---------- Rows (label left, value right, hairline between) ---------- */
.rows { margin: var(--space-5) 0 0; padding: var(--space-2) 0 0; border-top: var(--border-thin); }
.row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; }
.row dt { color: var(--muted); }
.row dd { margin: 0; font-weight: 500; text-align: right; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--positive); margin-right: var(--space-2); vertical-align: middle; }

/* ---------- Field (read-only value with copy) ---------- */
.field { display: flex; align-items: center; gap: var(--space-2); background: var(--sky); border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 500 var(--text-md) var(--mono); padding: var(--space-2) 0; }
.field input:focus { outline: none; }
.field .btn { box-shadow: none; min-height: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 52px; padding: 0 var(--space-5);
  border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  background: var(--surface); color: var(--text);
  font: 800 var(--text-md)/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); color: #111418; }
.btn-quiet { background: var(--surface-2); color: var(--text); }
.btn-icon { width: 44px; min-height: 44px; padding: 0; }

/* ---------- Setup guide (numbered steps, each with a picture) ---------- */
.guide { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.guide-step { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; background: var(--surface); border: var(--border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow); }
.guide-step h3 { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 var(--space-2); }
.guide-step p { margin: 0 0 var(--space-3); }
.guide-step p:last-child { margin-bottom: 0; }
.guide-step .muted { font-size: var(--text-sm); }
.num { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: var(--border-thin); border-radius: 50%; background: var(--sun); color: #111418; font-size: var(--text-sm); font-weight: 900; box-shadow: 2px 2px 0 var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 38px; padding: 0 var(--space-3); border: var(--border-thin); border-radius: var(--radius-sm); box-shadow: 2px 2px 0 var(--ink); background: var(--surface-2); color: var(--text); font: 600 var(--text-sm)/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .08s ease, box-shadow .08s ease; }
.chip:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.chip code { font-size: var(--text-sm); }
.chip-primary { background: var(--primary); color: #111418; }
.chip-lg { min-height: 48px; padding: 0 var(--space-4); font-size: var(--text-md); font-weight: 800; border: var(--border); box-shadow: var(--shadow-sm); }
.chip svg { width: 15px; height: 15px; }
.quick-add { background: var(--surface-2); border: var(--border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow); }
.quick-add p { margin: 0 0 var(--space-4); }
.quick-add .chips { margin: 0; }
.gemini-needs { margin: var(--space-4) 0 0; font-size: var(--text-sm); }
.quick-add-or { margin: var(--space-6) 0 var(--space-4); font-size: var(--text-sm); font-weight: 600; }
.prompts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.prompt { width: 100%; text-align: left; background: var(--surface-2); color: var(--text); border: var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--space-4) var(--space-4); font: 500 var(--text-md)/1.4 var(--font); cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-3); align-items: center; transition: transform .08s ease, box-shadow .08s ease; }
.prompt:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.prompt:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
/* Copy icon: a copy glyph that swaps to a check while .copied is set. */
.copy-ico { display: inline-grid; flex: none; }
.copy-ico svg { grid-area: 1 / 1; width: 20px; height: 20px; }
.chip .copy-ico svg { width: 15px; height: 15px; }
.prompt .copy-ico { color: var(--muted); }
.copy-ico .i-check, .copied .copy-ico .i-copy { visibility: hidden; }
.copied .copy-ico .i-check { visibility: visible; }
.prompt.copied .copy-ico { color: var(--positive); }
.chip.copied, .prompt.copied { background: var(--mint); color: #111418; }
.prompt.copied .copy-ico { color: #111418; }
@media (max-width: 600px) {
  .guide-step { grid-template-columns: 1fr; gap: var(--space-4); }
}

.tabs { display: inline-flex; gap: var(--space-2); padding: 5px; margin-bottom: var(--space-5); background: var(--surface-2); border: var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.tab { min-height: 42px; padding: 0 var(--space-5); border: 2px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font: 800 var(--text-md)/1 var(--font); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--primary); color: #111418; border-color: var(--ink); }
@media (max-width: 480px) { .tabs { display: flex; gap: 2px; } .tab { flex: 1; padding: 0 var(--space-2); } }
[role="tabpanel"] + [role="tabpanel"]:not([hidden]) { margin-top: var(--space-5); }

/* Shot: a simplified drawing of the app screen for a step. Not a screenshot.
   To use a real screenshot instead, put <img src="..." alt="..."> inside the figure. */
.shot { --hair: color-mix(in srgb, var(--ink) 22%, transparent); margin: 0; background: var(--surface-2); border: var(--border-thin); border-radius: var(--radius-md); padding: var(--space-3); font-size: 13px; line-height: 1.3; color: var(--text); overflow: hidden; user-select: none; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.shot-bar { display: flex; gap: 5px; margin-bottom: var(--space-3); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--surface); }
.shot-win { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius-sm); padding: var(--space-3); display: grid; gap: var(--space-2); }
.shot-split { display: grid; grid-template-columns: 40% 1fr; gap: var(--space-3); }
.shot-side { display: grid; gap: 6px; align-content: start; }
.shot-item { padding: 6px 8px; border-radius: 8px; }
.shot-title { font-weight: 700; font-size: 14px; }
.shot-label { color: var(--muted); font-size: 11px; margin-bottom: -2px; }
.shot-input { border: 1px solid var(--hair); border-radius: 8px; padding: 6px 8px; font-family: var(--mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-btn { justify-self: end; padding: 6px 12px; border-radius: 8px; background: var(--primary); color: #111418; font-weight: 700; }
.shot-btn-quiet { background: var(--surface-2); color: var(--text); }
.shot-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.shot-ph { height: 8px; border-radius: 4px; background: var(--hair); }
.shot-menu { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 10px; padding: 4px; display: grid; gap: 2px; box-shadow: 3px 3px 0 var(--ink); }
.shot-radio { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; }
.shot-radio::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; }
.shot-radio.on::before { border: 3.5px solid var(--blue); width: 7px; height: 7px; }
.shot-toggle { width: 26px; height: 15px; border-radius: 8px; background: var(--hair); position: relative; flex: none; }
.shot-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.shot-toggle.on { background: var(--blue); }
.shot-toggle.on::after { left: 13px; }
.shot-composer { border: 1px solid var(--hair); border-radius: 12px; padding: 8px; display: grid; gap: 8px; }
.shot-plus { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hair); font-weight: 600; }
.shot-check { display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.shot-check .box { width: 12px; height: 12px; border-radius: 3px; background: var(--blue); flex: none; position: relative; }
.shot-check .box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 3px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.shot-caret { display: inline-block; width: 1.5px; height: 13px; background: var(--text); vertical-align: -2px; margin-left: 1px; }
/* the thing to click */
.hl { outline: 2px solid var(--blue); outline-offset: 1px; background: color-mix(in srgb, var(--blue) 16%, transparent); border-radius: 8px; }
.shot-btn.hl { background: var(--primary); outline-offset: 2px; }
.shot-btn-quiet.hl { background: color-mix(in srgb, var(--blue) 16%, var(--surface-2)); }

/* ---------- Disclosure (troubleshooting) ---------- */
.faq details { border-top: var(--border-thin); padding: var(--space-4) 0; }
.faq details:first-child { border-top: 0; padding-top: 0; }
.faq details:last-child { padding-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: var(--space-2) 0 0; color: var(--muted); }

/* ---------- FAQ board: sticky-note questions scattered around a big heading ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; grid-template-areas: "n1 . n2" "n3 c n4" "n5 . n6"; gap: var(--space-6) var(--space-5); align-items: center; }
.faq-center { grid-area: c; position: relative; text-align: center; padding: var(--space-5) 0; }
.faq-title { margin: 0; font-size: clamp(36px, 4.4vw, 56px); font-weight: 900; letter-spacing: -0.045em; line-height: 0.98; text-transform: uppercase; color: var(--navy); }
.faq-center p { margin: var(--space-3) 0 0; }
.faq-tag { display: inline-block; margin-bottom: var(--space-3); padding: 4px 14px; background: var(--blue); color: #111418; border: var(--border-thin); border-radius: 6px; box-shadow: 2px 2px 0 var(--ink); font-weight: 900; letter-spacing: .04em; transform: rotate(-8deg); }
.spark-faq1 { left: 2%; top: -6px; width: 40px; height: 40px; } .spark-faq1 path { fill: var(--blue); }
.spark-faq2 { right: 4%; bottom: -10px; width: 30px; height: 30px; } .spark-faq2 path { fill: var(--sun); }
.note { position: relative; background: var(--note-bg); color: #111418; border: var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transform: rotate(var(--tilt)); transition: transform .15s ease; }
.note[open] { transform: none; z-index: 1; }
.note summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5); font-weight: 700; cursor: pointer; }
.note summary::-webkit-details-marker { display: none; }
.note summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: var(--border-thin); border-radius: 50%; background: #FFFFFF; font-size: 20px; font-weight: 700; line-height: 1; transition: transform .15s ease; }
.note[open] summary::after { transform: rotate(45deg); }
.note p { margin: 0; padding: 0 var(--space-5) var(--space-4); color: #2A3240; }
.note a { color: #00507A; }
.note code { word-break: break-all; }
.note-1 { grid-area: n1; --note-bg: #CFE6F7; --tilt: -2deg; }
.note-2 { grid-area: n2; --note-bg: #FFFFFF; --tilt: 2deg; margin-top: var(--space-6); }
.note-3 { grid-area: n3; --note-bg: #FFFFFF; --tilt: 1.5deg; }
.note-4 { grid-area: n4; --note-bg: #9FCBEA; --tilt: -1.5deg; }
.note-5 { grid-area: n5; --note-bg: #E3F0FA; --tilt: -1deg; margin-left: var(--space-6); }
.note-6 { grid-area: n6; --note-bg: #CFE6F7; --tilt: 2.5deg; }
.note-4 summary::after, .note-1 summary::after { background: var(--sun); }
.faq-contact { text-align: center; margin-top: var(--space-6); }
@media (prefers-color-scheme: dark) { .faq-title { color: var(--text); } }
@media (max-width: 980px) {
  .faq-grid { grid-template-columns: 1fr; grid-template-areas: "c" "n1" "n2" "n3" "n4" "n5" "n6"; gap: var(--space-4); }
  .note-2, .note-5 { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .note { transform: none; } }

/* ---------- List (inside a card) ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: var(--space-3) 0; border-top: var(--border-thin); }
.list li:first-child { border-top: 0; padding-top: 0; }
.list li:last-child { padding-bottom: 0; }

/* ---------- Prose (privacy, terms, docs) ---------- */
.prose h1 { font-size: clamp(36px, 6vw, 52px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin: 0 0 var(--space-4); }
.prose h2 { font-size: var(--text-xl); font-weight: 900; letter-spacing: -0.025em; margin: var(--space-7) 0 var(--space-3); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--space-4); }
.prose li + li { margin-top: var(--space-2); }
.prose .muted { font-size: var(--text-sm); }
.backlink { display: inline-block; margin-bottom: var(--space-6); font-size: var(--text-sm); font-weight: 700; color: var(--text); padding: 6px 12px; border: var(--border-thin); border-radius: var(--radius-sm); box-shadow: 2px 2px 0 var(--ink); background: var(--surface-2); text-decoration: none; }

/* ---------- Registration dates banner (top of page): a TV-style news crawl ---------- */
.ticker { background: var(--navy); color: #FFFFFF; font-size: var(--text-sm); line-height: 1.35; border-bottom: 3px solid #111418; }
.ticker[hidden] { display: none; }
.ticker-inner { display: flex; align-items: stretch; min-height: 44px; }
.ticker-label { flex: none; display: flex; align-items: center; margin: 0; padding: 0 var(--space-4); background: var(--blue); color: #111418; font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; border-right: 3px solid #111418; }
/* News crawl: the list (and a hidden copy) slide left forever; ticker.js sets --crawl-s from the list's width. */
.ticker-window { flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden; }
/* own compositor layer so the moving text stays sharp */
.ticker-track { display: flex; width: max-content; will-change: transform; backface-visibility: hidden; }
.ticker-track.crawl { animation: crawl var(--crawl-s, 30s) linear infinite; }
.ticker-track.stopped { animation-play-state: paused; }
@keyframes crawl { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.ticker-list { display: flex; list-style: none; margin: 0; padding: 0 0 0 var(--space-5); white-space: nowrap; }
.ticker-list li { padding-right: var(--space-5); }
.ticker-list li::after { content: "\25C6"; margin-left: var(--space-5); color: var(--blue); font-size: 10px; vertical-align: 1px; }
.ticker.still .ticker-window { overflow-x: auto; }
.ticker-list time { font-weight: 800; margin-right: var(--space-2); color: var(--sun); }
.ticker-list .soon { display: inline-block; margin-right: var(--space-2); padding: 1px 8px; border-radius: var(--radius-pill); background: var(--sun); color: #111418; font-weight: 800; font-size: 12px; }
.ticker-pause { flex: none; align-self: center; width: 28px; height: 28px; margin: 0 var(--space-2); display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 14%); color: #FFFFFF; cursor: pointer; }
.ticker-pause svg { grid-area: 1 / 1; width: 12px; height: 12px; }
.ticker-pause .i-play, .ticker-pause.paused .i-pause { visibility: hidden; }
.ticker-pause.paused .i-play { visibility: visible; }
.ticker-more { flex: none; align-self: center; padding-right: var(--space-4); color: #FFFFFF; font-weight: 700; }
@media (max-width: 560px) {
  .ticker-label { padding: 0 var(--space-3); font-size: 11px; }
  .ticker-label .ticker-term { display: none; }
  .ticker-more { display: none; }
}

/* ---------- Prompt suggestion form ---------- */
.suggest { margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.suggest-label { font-weight: 800; font-size: var(--text-lg); letter-spacing: -0.015em; }
.suggest-note { margin: 0; font-size: var(--text-sm); }
.suggest textarea { width: 100%; resize: vertical; min-height: 88px; padding: var(--space-3) var(--space-4); border: var(--border); border-radius: var(--radius-sm); background: var(--sky); color: var(--text); font: var(--text-md)/1.4 var(--font); }
.suggest textarea:focus { outline: none; box-shadow: var(--shadow-sm); }
.suggest-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.suggest-status { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.suggest.sent .suggest-status { color: var(--positive); font-weight: 700; }
.suggest-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.prose-lg { margin: 0; font-size: var(--text-lg); line-height: 1.6; }

/* ---------- Footer ---------- */
.footer { margin-top: var(--space-8); padding-top: var(--space-5); border-top: var(--border); color: var(--muted); font-size: var(--text-sm); }
.footer p { margin: 0 0 var(--space-2); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .typer-live::after { display: none; }
  .ticker-track { animation: none !important; }
  /* also covers turning reduced motion on while the page is open, before ticker.js could add .still */
  .ticker-window { overflow-x: auto; }
  .btn:hover, .prompt:hover { transform: none; }
}

/* ---------- Phones: calmer, with more room ---------- */
@media (max-width: 600px) {
  :root { --shadow: 4px 4px 0 var(--ink); --shadow-sm: 2px 2px 0 var(--ink); --space-9: 80px; }
  .hero { padding-top: var(--space-7); padding-bottom: var(--space-8); gap: var(--space-8); }
  .lede { font-size: var(--text-md); }
  .btn.btn-xl { min-height: 54px; font-size: var(--text-md); }
  .hero-actions { gap: var(--space-3); }
  .bento { gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
  .guide, .guide-step { grid-template-columns: minmax(0, 1fr); }
  .guide-step { padding: var(--space-4); }
  .mini { overflow: hidden; }
  .chip { max-width: 100%; }
  .chip code { overflow-wrap: anywhere; line-height: 1.3; }
  .bento-card { padding: var(--space-5); }
  .split-head { margin-bottom: var(--space-5); }
  .stats { padding: var(--space-6) var(--space-5); row-gap: var(--space-5); }
}

/* ---------- Ask box answer (streamed Markdown from /api/ask) ---------- */
.answer { margin-top: var(--space-2); padding: var(--space-4); background: var(--surface-2); border: var(--border-thin); border-radius: var(--radius-sm); font-size: var(--text-md); line-height: 1.55; }
.answer p, .answer ul, .answer ol { margin: 0 0 var(--space-3); }
.answer > :last-child { margin-bottom: 0; }
.answer ul, .answer ol { padding-left: 1.2em; }
.answer li + li { margin-top: 4px; }
.answer a { overflow-wrap: anywhere; }
.upsell { padding: var(--space-4); background: var(--sun); color: #111418; border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.upsell p { margin: 0 0 var(--space-3); }
.upsell .upsell-title { font-weight: 800; font-size: var(--text-lg); letter-spacing: -0.015em; }
.upsell .upsell-text { font-size: var(--text-sm); }
.upsell .chips { margin-bottom: 0; }
.upsell[hidden] { display: none; }

/* ChatGPT add helper: a dialog that stays beside the ChatGPT window and names each click. */
.helper { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; margin: auto; padding: var(--space-5); background: var(--surface); color: var(--text); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.helper::backdrop { background: rgb(17 20 24 / 45%); }
.helper h2 { font-size: var(--text-xl); font-weight: 900; letter-spacing: -0.02em; margin: 0 var(--space-7) var(--space-2) 0; }
.helper-close { position: absolute; top: var(--space-4); right: var(--space-4); margin: 0; }
.helper-close .chip { font-size: 22px; min-width: 38px; justify-content: center; }
.helper-steps { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; gap: var(--space-3); }
.helper-steps li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; padding: var(--space-3); background: var(--surface-2); border: var(--border-thin); border-radius: var(--radius-md); }
.helper-steps p { margin: 0 0 var(--space-2); }
.helper-steps p:last-child { margin-bottom: 0; }
.helper-steps .muted { font-size: var(--text-sm); }
.helper-steps .chip { vertical-align: middle; }
.kbd { display: inline-block; padding: 0 6px; border: var(--border-thin); border-radius: 6px; background: var(--surface); box-shadow: 1px 1px 0 var(--ink); white-space: nowrap; }
.helper-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin: 0; }
