/* SongLLM concept demo. Standard music-app shell: dark surface, system type, one accent.
   References: Spotify (surfaces, chips, pills), Apple Music dark (accent), SoundCloud (waveform with timed notes). */

:root {
  --bg: #121212;
  --surface: #181818;
  --surface-2: #242424;
  --surface-hover: #2a2a2a;
  --text: #ffffff;
  --text-2: #d9d9d9;
  --subdued: #a7a7a7;
  --line: rgba(255, 255, 255, 0.10);
  --accent: #fa2d48;
  --wave: #4a4a4a;
  --wave-played: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 8px;
  --pill: 500px;
  --max: 1120px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ffffff; --surface: #f4f4f4; --surface-2: #e9e9e9; --surface-hover: #dedede;
    --text: #121212; --text-2: #333333; --subdued: #6a6a6a; --line: rgba(0, 0, 0, 0.10);
    --wave: #c9c9c9; --wave-played: #121212;
  }
}
:root[data-theme="light"] {
  --bg: #ffffff; --surface: #f4f4f4; --surface-2: #e9e9e9; --surface-hover: #dedede;
  --text: #121212; --text-2: #333333; --subdued: #6a6a6a; --line: rgba(0, 0, 0, 0.10);
  --wave: #c9c9c9; --wave-played: #121212;
}
:root[data-theme="dark"] {
  --bg: #121212; --surface: #181818; --surface-2: #242424; --surface-hover: #2a2a2a;
  --text: #ffffff; --text-2: #d9d9d9; --subdued: #a7a7a7; --line: rgba(255, 255, 255, 0.10);
  --wave: #4a4a4a; --wave-played: #ffffff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark light; }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mono { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* Header */

.top {
  max-width: var(--max); margin: 0 auto; padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.brand span { color: var(--accent); }
.top-nav { display: flex; gap: 20px; font-size: 14px; white-space: nowrap; }
@media (max-width: 560px) { .top-nav { gap: 14px; } .top-nav a[href="#why"] { display: none; } }
.top-nav a { color: var(--subdued); text-decoration: none; }
.top-nav a:hover { color: var(--text); }
.theme { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center; padding: 0; }
.theme:hover { background: var(--surface-hover); }
.theme svg { width: 18px; height: 18px; }
.theme[data-mode="dark"] .ico-moon { display: none; }
.theme[data-mode="light"] .ico-sun { display: none; }
.top-nav { align-items: center; }

main { max-width: var(--max); margin: 0 auto; padding: 0 24px 64px; }
@media (max-width: 720px) { .top, main { padding-left: 16px; padding-right: 16px; } }

/* Tracks */

.tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 16px; }
@media (max-width: 720px) { .tracks { grid-template-columns: 1fr; } }

.track {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 8px; background: var(--surface); border: 0; border-radius: var(--radius); cursor: pointer; text-align: left;
  transition: background 150ms ease;
}
.track:hover { background: var(--surface-2); }
.track[aria-selected="true"] { background: var(--surface-hover); }
.track .cover { width: 48px; height: 48px; display: block; border-radius: 4px; }
.track > span { display: flex; flex-direction: column; min-width: 0; }
.track .t-title { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .t-meta { display: block; font-size: 13px; color: var(--subdued); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .eq { display: none; gap: 2px; align-items: flex-end; height: 12px; margin-left: 6px; vertical-align: middle; }
.track[aria-selected="true"].playing .eq { display: inline-flex; }
.eq i { width: 3px; background: var(--accent); animation: eq 900ms ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -300ms; } .eq i:nth-child(3) { animation-delay: -600ms; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 12px; } }

/* Player */

.player { background: var(--surface); border-radius: var(--radius); padding: 20px; }

.now { display: grid; grid-template-columns: 144px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 16px; }
/* 3:2 artwork slot. Videos are cut 600x400 so nothing is cropped at display time. */
.now .art { width: 144px; height: 96px; border-radius: 6px; overflow: hidden; background: var(--surface-2); position: relative; }
.now .art svg, .now .art video, .now .art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.now .art video { position: absolute; inset: 0; }
.now .n-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 0; line-height: 1.2; }
.now .n-artist { color: var(--subdued); font-size: 14px; margin: 2px 0 0; }
.now .n-meta { color: var(--subdued); font-size: 13px; margin: 6px 0 0; }
@media (max-width: 560px) {
  .now { grid-template-columns: 108px minmax(0, 1fr); }
  .now .art { width: 108px; height: 72px; }
  .now .n-title { font-size: 18px; }
  .now .transport { grid-column: 1 / -1; }
}

.transport { display: flex; align-items: center; gap: 14px; }
.play {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); cursor: pointer;
  display: grid; place-items: center; transition: transform 120ms ease;
}
.play:hover { transform: scale(1.04); }
.play svg { width: 22px; height: 22px; fill: currentColor; }
.play .ico-pause { display: none; }
.play[aria-pressed="true"] .ico-play { display: none; }
.play[aria-pressed="true"] .ico-pause { display: block; }
.time { color: var(--subdued); font-size: 13px; white-space: nowrap; }
.meta { display: none; }

.wave { position: relative; margin: 0; padding-bottom: 22px; }
.wave svg { width: 100%; height: 120px; display: block; cursor: pointer; }
.wave .bars { fill: var(--wave); transition: fill 300ms ease; }
.wave.idle .bars { fill: var(--subdued); }
.wave .bars-progress { fill: var(--wave-played); }
.wave .head { stroke: var(--accent); stroke-width: 1.5; }
.wave .bound-line { stroke: var(--subdued); stroke-opacity: 0.35; stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.wave .ruler { stroke: var(--subdued); stroke-opacity: 0.5; stroke-width: 1; vector-effect: non-scaling-stroke; }

@media (prefers-reduced-motion: no-preference) {
  .wave .draw { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .wave.ready .draw { clip-path: inset(0 0 0 0); }
}

.labels { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; font-size: 11px; color: var(--subdued); }
.labels span {
  position: absolute; top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px;
  opacity: 0; transition: opacity 300ms ease;
}
.wave.ready .labels span { opacity: 1; }
.labels span.minor { display: none; }
@media (max-width: 720px) { .labels span:nth-child(odd) { display: none; } }
@media (prefers-reduced-motion: reduce) { .labels span { opacity: 1; transition: none; } }

.ticks { position: absolute; left: 0; right: 0; top: 104px; height: 0; }
.tick {
  position: absolute; width: 20px; height: 20px; margin-left: -10px; margin-top: -10px; border: 0; padding: 0; background: transparent; cursor: pointer;
}
.tick::after {
  content: ""; position: absolute; left: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--subdued); transition: background 150ms ease, transform 150ms ease;
}
.tick:hover::after { transform: scale(1.3); }
.tick[data-active="true"]::after { background: var(--accent); transform: scale(1.3); }

.margin-note { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; margin-top: 14px; align-items: start; }
.margin-note .tc { background: transparent; border: 0; padding: 2px 0 0; color: var(--accent); cursor: pointer; font-weight: 600; font-size: 14px; text-align: left; }
.margin-note p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--text); max-width: 64ch; transition: opacity 200ms ease; }
.margin-note p.swap { opacity: 0; }

/* Ask */

.ask { margin-top: 8px; background: var(--surface); border-radius: var(--radius); padding: 16px 20px 18px; }
.ask-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ask-title { margin: 0; font-size: 15px; font-weight: 700; }
.scope { font-size: 12px; color: var(--subdued); }
.outcome { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: var(--surface-2); color: var(--text); }
.outcome:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  text-align: left; font-size: 14px; padding: 8px 14px; border-radius: var(--pill); border: 0; background: var(--surface-2); cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.chip:hover { background: var(--surface-hover); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.answer { display: none; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.answer.open { display: block; }
.answer-head { display: flex; gap: 12px; align-items: baseline; color: var(--subdued); font-size: 13px; margin-bottom: 8px; }
.answer-head .tc { background: transparent; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-weight: 600; }
.answer .lead { margin: 0 0 10px; font-size: 17px; font-weight: 600; line-height: 1.4; max-width: 64ch; }
.answer .lead.streaming::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: text-bottom; margin-left: 3px; animation: blink 800ms steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.points li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.5; color: var(--text-2); max-width: 70ch; opacity: 0; transform: translateY(2px); transition: opacity 250ms ease, transform 250ms ease; }
.points li.in { opacity: 1; transform: none; }
.points li.noindex { grid-template-columns: minmax(0, 1fr); }
.points .tc { background: transparent; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-weight: 600; font-size: 13px; text-align: left; line-height: 1.7; }
.points.timeline { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.points.timeline li { display: inline-flex; gap: 6px; align-items: baseline; font-size: 14px; }
.points.timeline .tc { line-height: inherit; }
@media (prefers-reduced-motion: reduce) { .points li { opacity: 1; transform: none; transition: none; } }

.askbar { display: flex; gap: 8px; margin-top: 16px; }
.askbar input {
  flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 10px 14px;
  border: 1px solid transparent; border-radius: var(--pill); background: var(--surface-2); color: var(--text);
}
.askbar input::placeholder { color: var(--subdued); }
.askbar input:hover { background: var(--surface-hover); }
.askbar input:focus { outline: none; border-color: var(--text); }

/* Buttons */

.btn {
  display: inline-block; padding: 12px 24px; border-radius: var(--pill); border: 0; background: var(--text); color: var(--bg);
  font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; transition: transform 120ms ease, background 150ms ease;
}
.btn:hover { transform: scale(1.03); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--subdued); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--text); }
.btn-small { padding: 10px 18px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Intro: headline above the tool, compact, so the player is above the fold on a laptop */

.skip { position: absolute; left: 16px; top: -40px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 30; }
.skip:focus { top: 12px; }
.intro { padding: 8px 0 28px; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--subdued); margin: 0 0 14px; }
.tag { display: inline-block; white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--surface-2); color: var(--text); }
.tag-live { background: var(--accent); color: #fff; }
h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; max-width: 18em; }
.sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--subdued); max-width: 38em; margin: 0 0 20px; line-height: 1.45; }
.small { font-size: 13px; }

/* Sections */

section.sheet, section.across, section.why, section.where { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.label { margin: 0 0 16px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; text-transform: none; color: var(--text); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.linkish { background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--subdued); font-size: 14px; text-decoration: none; }
.linkish:hover { color: var(--text); text-decoration: underline; }
.muted { color: var(--subdued); }

.sheet { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
@media (max-width: 900px) { .sheet { grid-template-columns: 1fr; gap: 32px; } .sheet .fixes { order: -1; } }

/* Facts row: value plus where it came from */

.facts-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 20px; }
.fact { background: var(--surface); border-radius: 6px; padding: 10px 12px; margin: 0; }
.fact dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--subdued); font-weight: 600; }
.fact dd { margin: 2px 0 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fact b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.src { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--subdued); }
.src-measured, .src-decoded { color: var(--text); }
.src-disputed { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: transparent; }
.facts-note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; color: var(--subdued); }

.reading h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--subdued); margin: 22px 0 6px; }
.reading p { margin: 0; max-width: 62ch; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.reading .small { font-size: 13px; margin-top: 6px; }
.reading-provenance { margin: 0 0 4px; }
.structure { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-width: 62ch; }
.structure li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; font-size: 15px; color: var(--text-2); padding: 4px 0; border-bottom: 1px solid var(--line); }
.structure .tc { background: transparent; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-weight: 600; font-size: 13px; text-align: left; }

.fold { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.fold summary { cursor: pointer; color: var(--subdued); font-size: 14px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 150ms ease; }
.fold[open] summary::before { transform: rotate(45deg); }
.fold summary:hover { color: var(--text); }
.fold pre { white-space: pre-wrap; font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 12px 0 0; max-width: 62ch; }
.fold > p { margin: 10px 0 0; }
.raw { margin-top: 10px; }
.raw h4 { margin: 16px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--subdued); font-weight: 600; }
.raw p { font-size: 14px; line-height: 1.55; margin: 0 0 8px; max-width: 62ch; color: var(--text-2); }
.ledger { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; max-width: 62ch; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.ledger .arrow { color: var(--subdued); padding: 0 4px; }

/* Change cards */

.fixes-lede { font-size: 15px; color: var(--subdued); max-width: 44em; margin: -6px 0 16px; line-height: 1.5; }
.fixes ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: fix; }
.fix { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; counter-increment: fix; position: relative; }
.fix .where { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.fix .where b { font-weight: 600; font-size: 16px; }
.fix .where b::before { content: counter(fix) "  "; color: var(--subdued); font-weight: 600; }
.fix .where .tc { background: transparent; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-weight: 600; font-size: 14px; }
.fix .fix-text { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.change summary { cursor: pointer; color: var(--subdued); font-size: 13px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.change summary::-webkit-details-marker { display: none; }
.change summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 150ms ease; }
.change[open] summary::before { transform: rotate(45deg); }
.change summary:hover { color: var(--text); }
.change-grid { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; }
.change-grid > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.5; }
.change-grid dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--subdued); font-weight: 600; padding-top: 3px; }
.change-grid dd { margin: 0; color: var(--text-2); }
.keep { margin: 0; padding: 0 0 0 16px; }
.keep li { margin: 0 0 2px; }
.dest { display: inline-flex; gap: 2px; margin: 16px 0 8px; padding: 3px; background: var(--surface-2); border-radius: var(--pill); }
.seg { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--pill); border: 0; background: transparent; color: var(--subdued); cursor: pointer; transition: background 150ms ease, color 150ms ease; }
.seg:hover { color: var(--text); }
.seg[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.instruction { margin: 0; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--text); white-space: pre-wrap; }
.dest-hint { margin: 8px 0 12px; }
.send { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.applied-note { margin: 12px 0 0; }

/* A/B */

.ab { margin-top: 16px; padding: 14px; border-radius: 6px; background: var(--surface-2); }
.ab-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.ab-label { font-size: 14px; line-height: 1.45; color: var(--text-2); }
.ab-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ab-switch { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg); border-radius: var(--pill); }
.ab-time { color: var(--subdued); font-size: 13px; margin-left: auto; }
.ab-bar { position: relative; height: 6px; margin: 12px 0 8px; background: var(--bg); border-radius: 3px; cursor: pointer; }
.ab-prog { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--text); border-radius: 3px; }
.ab[data-which="revision"] .ab-prog { background: var(--accent); }
.ab-mark { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--accent); }
.ab .small { margin: 0; }
.play-sm { width: 36px; height: 36px; }
.play-sm svg { width: 16px; height: 16px; }

/* Mini player */

.mini {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-rows: auto 3px; gap: 0 12px; align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
  transform: translateY(100%); transition: transform 200ms ease;
}
.mini.show { transform: none; }
.mini[hidden] { display: none; }
.mini-art { width: 40px; height: 40px; border: 0; padding: 0; border-radius: 4px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.mini-art img, .mini-art svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.mini-text { display: flex; flex-direction: column; min-width: 0; }
.mini-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-time { font-size: 12px; color: var(--subdued); }
.mini-bar { grid-column: 1 / -1; grid-row: 2; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--surface-2); }
.mini-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
@media (min-width: 720px) { .mini { left: 50%; right: auto; width: min(100%, var(--max)); transform: translate(-50%, 100%); } .mini.show { transform: translate(-50%, 0); } }
body { padding-bottom: 72px; }

/* Across the three */

.across-lede { font-size: 16px; color: var(--subdued); max-width: 44em; margin: -6px 0 20px; }
.across-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .across-grid { grid-template-columns: 1fr; } }
.across-card {
  display: grid; gap: 8px; text-align: left; padding: 16px; background: var(--surface); border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background 150ms ease;
}
.across-card:hover { background: var(--surface-2); }
.across-card svg { width: 100%; height: 44px; display: block; }
.a-title { font-weight: 700; font-size: 17px; }
.a-meta { color: var(--subdued); font-size: 13px; }
.a-verdict { font-size: 15px; line-height: 1.4; color: var(--text-2); }

/* Why now */

.why-lede { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.4; max-width: 34em; margin: -4px 0 22px; }
.facts { list-style: none; margin: 0; padding: 0; max-width: 62ch; }
.facts li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; font-size: 15px; color: var(--text-2); }
.facts li .mono { color: var(--subdued); font-size: 13px; padding-top: 2px; }
.facts li a { text-decoration-color: var(--subdued); text-underline-offset: 3px; }
.facts li a:hover { text-decoration-color: var(--text); }
@media (max-width: 560px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }

/* Where this goes */

.where-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 720px) { .where-grid { grid-template-columns: 1fr; gap: 18px; } }
section.where h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
section.where p { margin: 0; max-width: 40ch; color: var(--text-2); font-size: 15px; }
.contact { margin-top: 36px; padding: 24px; background: var(--surface); border-radius: var(--radius); display: grid; gap: 16px; }
.contact p { margin: 0; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.4; max-width: 34em; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr auto; align-items: center; } }

/* Modal */

.modal { border: 0; border-radius: var(--radius); background: var(--surface-2); color: var(--text); padding: 28px; max-width: 540px; width: calc(100% - 40px); }
.modal::backdrop { background: rgba(0, 0, 0, 0.6); }
.modal h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.modal p { margin: 0 0 14px; color: var(--text-2); font-size: 15px; }
.pipeline { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.pipeline li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.pipeline li span { color: var(--accent); font-weight: 600; }

/* Footer */

.foot {
  max-width: var(--max); margin: 0 auto; padding: 24px 24px 40px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--subdued);
}
.foot p { margin: 0; }
.foot a { color: inherit; text-underline-offset: 3px; }
.foot a:hover { color: var(--text); }
@media (max-width: 720px) { .foot { padding-left: 16px; padding-right: 16px; } }

/* Toast */

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--pill); font-size: 14px; font-weight: 600;
  pointer-events: none; transition: opacity 200ms ease, transform 200ms ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
