/* whipit.org. Whip It's look A ("State-house document", Garrett 2026-11-28; Figma t4ja52b0QkQYzfRrGxjTdU).
   Every color is a token here (Web Standard L1), copied from the app's site/styles.css so the site and the download
   look like one thing. Bluelink navy #1B365D and teal #3DB5C0; teal is never text on a light ground.
   Corners 8 / 14 / 22 or a pill (L3). Spacing 4 / 8 / 12 / 16 / 24 (G4). Every panel has a border (DESIGN.md: "Every
   surface needs a border"). Fonts already on every computer: nothing is fetched from a font service, so the site makes
   no third-party request (the feedback page's Turnstile is the one exception, and the privacy page says so). */
:root {
  --bg: #F4F7FA; --card: #FBFCFD; --line: #DCE4EC; --track: #E3E9F0;
  --ink: #12233A; --muted: #3E4F63; --action: #1B365D; --on-action: #FFFFFF; --focus: #0E7C8A;
  --band: #1B365D; --band-ink: #FFFFFF; --band-muted: #C9D8E8; --band-tab: rgba(255,255,255,.14); --spark: #3DB5C0;
  --free: #E4F4F5; --free-ink: #0B4A52; --free-line: #9ED6DB;
  --warn: #FFF4CC; --warn-line: #E6D58A; --warn-ink: #2B2300;
  --err: #FBE3DA; --err-line: #E3A58C; --err-ink: #6A1E00;
  --ok: #DDF2EA; --ok-line: #8FCFB6; --ok-ink: #0B4A35;
  --yes: #009E73; --leanyes: #56B4E9; --undecided: #F0E442; --leanno: #E69F00; --no: #D55E00; --none: #B8C4D1;
  --bar: #12233A; --shade: rgba(12,27,48,.10);
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, Consolas, "Courier New", monospace;
  --gutter: clamp(16px, 3vw, 40px);
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1B30; --card: #132847; --line: #24497A; --track: #1D3A63;
    --ink: #F4F7FA; --muted: #C9D8E8; --action: #5FCAD3; --on-action: #0C1B30; --focus: #5FCAD3;
    --band: #0A1626; --band-tab: rgba(255,255,255,.10);
    --free: #0F3A40; --free-ink: #CFF1F3; --free-line: #2C7F88;
    --warn: #3A3110; --warn-line: #6B5A1E; --warn-ink: #F6E7A8;
    --err: #4A1F12; --err-line: #9A4A2E; --err-ink: #FFD9CB;
    --ok: #0F3A2D; --ok-line: #2C8A66; --ok-ink: #CFF3E4;
    --none: #4A5F78; --bar: #F4F7FA; --shade: rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1B30; --card: #132847; --line: #24497A; --track: #1D3A63;
  --ink: #F4F7FA; --muted: #C9D8E8; --action: #5FCAD3; --on-action: #0C1B30; --focus: #5FCAD3;
  --band: #0A1626; --band-tab: rgba(255,255,255,.10);
  --free: #0F3A40; --free-ink: #CFF1F3; --free-line: #2C7F88;
  --warn: #3A3110; --warn-line: #6B5A1E; --warn-ink: #F6E7A8;
  --err: #4A1F12; --err-line: #9A4A2E; --err-ink: #FFD9CB;
  --ok: #0F3A2D; --ok-line: #2C8A66; --ok-ink: #CFF3E4;
  --none: #4A5F78; --bar: #F4F7FA; --shade: rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.55; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 2.4vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 24px; }
li { margin-bottom: 4px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--card); color: var(--ink); padding: 12px 16px; border-radius: var(--r-s); z-index: 10; }
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Letterhead band: navy, full width, a thin teal rule under it. Same as the app. */
.band { background: var(--band); color: var(--band-ink); border-bottom: 3px solid var(--spark); }
.band .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 12px var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--band-ink); text-decoration: none; min-height: 44px; }
.brand .name { font: 600 24px/1 var(--serif); }
.brand .free { font: 700 12px/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--band); background: var(--spark); padding: 6px 8px; border-radius: 999px; }
.seal { width: 40px; height: 40px; flex: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.seal .ring, .seal .tick { stroke: var(--band-ink); } .seal .inner { stroke: var(--spark); }
.navrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.band nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.band nav li { margin: 0; }
.band nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--r-s); color: var(--band-ink); text-decoration: none; font-size: 16px; }
.band nav a:hover { background: var(--band-tab); }
.band nav a[aria-current="page"] { background: var(--band-ink); color: var(--band); font-weight: 600; }
.band :focus-visible { outline-color: var(--spark); }
.theme { display: flex; background: var(--band-tab); border-radius: var(--r-m); padding: 4px; }
.theme button { border: 0; background: transparent; color: var(--band-ink); min-height: 44px; min-width: 44px; padding: 8px 12px; border-radius: var(--r-s); font: inherit; font-size: 15px; cursor: pointer; }
.theme button[aria-pressed="true"] { background: var(--band-ink); color: var(--band); font-weight: 600; }

main { display: block; padding: 24px var(--gutter) 48px; }
main[data-layout="prose"] > * { max-width: 75ch; margin-left: auto; margin-right: auto; }
/* L4: running prose is capped on every page, not only prose pages; boards and tiles use the full width. */
main > p, main > section > p, main > ul, main > section > ul { max-width: 75ch; }
section { margin: 0 0 48px; }
.lede { font-size: clamp(19px, 1.5vw, 22px); color: var(--muted); max-width: 60ch; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

/* Home: the first screen. Words on the left, the count drawn on the right. */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px 48px; align-items: center; padding-top: 24px; }
.freebar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.freebar li { margin: 0; background: var(--free); color: var(--free-ink); border: 1px solid var(--free-line); border-radius: 999px; padding: 4px 12px; font-size: 15px; font-weight: 600; }
.freebar li.big { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--r-s); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--action); }
.btn.primary { background: var(--action); color: var(--on-action); font-size: 18px; }
.btn.ghost { background: var(--card); color: var(--action); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.fine { font-size: 15px; color: var(--muted); }
.hash, code { font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }

.picture { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 24px 24px; }
.picture .finding { font: 600 20px/1.3 var(--serif); margin: 0 0 4px; }
.picture svg { width: 100%; height: auto; display: block; }
.picture .key { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 15px; }
.picture .key li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.dot { width: 14px; height: 14px; border-radius: 999px; display: inline-block; border: 1px solid var(--shade); }
.s-yes { fill: var(--yes); background: var(--yes); } .s-leanyes { fill: var(--leanyes); background: var(--leanyes); }
.s-undecided { fill: var(--undecided); background: var(--undecided); } .s-leanno { fill: var(--leanno); background: var(--leanno); }
.s-no { fill: var(--no); background: var(--no); } .s-none { fill: var(--none); background: var(--none); }
.seat { stroke: var(--shade); stroke-width: 1; }
.passline { stroke: var(--bar); stroke-width: 3; stroke-dasharray: 6 6; }
.passlabel { fill: var(--ink); font: 600 26px system-ui, sans-serif; }

/* Tiles: one thing per box (L6). Rows fill the width (L4). */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; }
.tile h3 { margin-bottom: 8px; }
.tile p:last-child, .tile ul:last-child { margin-bottom: 0; }
.tile .mark { width: 40px; height: 40px; margin: 0 0 12px; display: block; fill: none; stroke: var(--action); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.promise { border-top: 4px solid var(--spark); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.steps > li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; margin: 0; }
.steps > li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--action); color: var(--on-action); font: 600 20px/1 var(--serif); margin-bottom: 12px; }
.steps h3 { margin-bottom: 4px; }
.steps p:last-child { margin-bottom: 0; }

/* Download: one card per state. */
.states { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.state { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.state.ready { border-left: 4px solid var(--spark); }
.state h3 { margin: 0; }
.state dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; font-size: 15px; }
.state dt { color: var(--muted); }
.state dd { margin: 0; min-width: 0; }
.status { align-self: flex-start; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; background: var(--track); color: var(--ink); border: 1px solid var(--line); }
.state.ready .status { background: var(--ok); color: var(--ok-ink); border-color: var(--ok-line); }
.state .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--spark); border-radius: var(--r-s); padding: 16px; margin: 0 0 16px; }
.note p:last-child { margin-bottom: 0; }
.caution { background: var(--warn); color: var(--warn-ink); border: 1px solid var(--warn-line); border-radius: var(--r-s); padding: 16px; margin: 0 0 16px; }
.caution a { color: var(--warn-ink); }
.caution p:last-child { margin-bottom: 0; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.compare tbody th { font-weight: 600; }
.compare .us { background: var(--free); color: var(--free-ink); }

pre.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px; overflow-x: auto; font: 14px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }

/* Feedback form. */
form.feedback { display: grid; gap: 24px; max-width: 640px; }
.field { display: grid; gap: 4px; }
.field > label, .field legend { font-weight: 600; }
.field .hint { font-size: 15px; color: var(--muted); margin: 0; }
input[type=text], input[type=email], select, textarea { font: inherit; font-size: 17px; padding: 12px; border: 1px solid var(--muted); border-radius: var(--r-s); background: var(--card); color: var(--ink); min-height: 48px; width: 100%; }
textarea { min-height: 160px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--muted); border-radius: 999px; background: var(--card); cursor: pointer; }
.choices input { width: 20px; height: 20px; margin: 0; accent-color: var(--action); }
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.formmsg { padding: 16px; border-radius: var(--r-s); }
.formmsg:empty { display: none; }
.formmsg.ok { background: var(--ok); color: var(--ok-ink); border: 1px solid var(--ok-line); }
.formmsg.bad { background: var(--err); color: var(--err-ink); border: 1px solid var(--err-line); }
.fielderr { color: var(--err-ink); background: var(--err); border: 1px solid var(--err-line); border-radius: var(--r-s); padding: 4px 8px; font-size: 15px; margin: 0; }
.fielderr:empty { display: none; }
.counter { font-size: 15px; color: var(--muted); }

footer.foot { border-top: 1px solid var(--line); padding: 24px var(--gutter) 40px; color: var(--muted); font-size: 15px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px 48px; }
footer.foot p { margin: 0 0 8px; }
footer.foot a { color: var(--muted); }
footer.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 16px; }
footer.foot li { margin: 0; }
footer.foot li a { display: inline-flex; min-height: 44px; align-items: center; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .band nav { width: 100%; }
  .band nav ul { gap: 0; }
  .band nav a { padding: 8px 10px; font-size: 15px; }
  .cta .btn { width: 100%; }
  .state dl { grid-template-columns: 1fr; gap: 0; }
  .state dd { margin-bottom: 8px; }
  .hero { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .band nav a, .theme button { transition: background-color .1s; }
}
