/* Brand colors: see docs/brand.md. */
:root {
  --brand: #3225e4;
  --brand-light: #e4e2fc;
  --brand-dark-mode: #a9a3f4;
  --brand-ink: #1b1470;
  --bg: #f8f8fc;
  --ink: #16142b;
  --muted: #5d5b73;
  --line: #e3e2ee;
  --card: #ffffff;
  --accent: var(--brand);
  --accent-ink: #ffffff;
  --good: #15803d;
  --bad: #b91c1c;
  --warn-bg: #fef3c7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e1a;
    --ink: #efeef8;
    --muted: #a4a2ba;
    --line: #2d2b44;
    --card: #19182b;
    --accent: var(--brand-dark-mode);
    --accent-ink: var(--brand-ink);
    --good: #4ade80;
    --bad: #f87171;
    --warn-bg: #3b2f0b;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; justify-content: space-between; align-items: center; max-width: 880px; margin: 0 auto; padding: 18px 16px; }
.brand { display: block; line-height: 0; }
.brand img { display: block; height: 28px; width: auto; }
.toplink { font-weight: 600; text-decoration: none; }
/* Landing page: the logo over faint statement lines, on the main blue in both light and dark mode. */
.masthead { background: var(--brand); padding-bottom: 44px; } /* same as the "Free check" row above, so the logo sits in the middle of the blue */
.masthead .top { justify-content: flex-end; padding-bottom: 0; }
.masthead .toplink { color: #ffffff; }
.banner { display: block; width: 100%; max-width: 680px; height: auto; margin: 0 auto; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0.3em 0; }
h2 { font-size: 1.35rem; margin: 0 0 0.5em; }
h3 { font-size: 1.05rem; margin: 0 0 0.3em; }
.hero { padding-top: 24px; padding-bottom: 32px; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; margin: 0; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); font-size: 0.9rem; }
.notice { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.legal { max-width: 720px; padding-bottom: 16px; }
.legal h2 { margin-top: 1.6em; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px;
  padding: 14px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.soon { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 10px; vertical-align: 2px; white-space: nowrap; }
.features { padding-left: 1.2em; display: grid; gap: 8px; margin-bottom: 32px; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-top: 24px; margin-bottom: 32px; }
main > .card.wrap { padding: 24px; margin-left: 16px; margin-right: 16px; }
@media (min-width: 912px) { main > .card.wrap { max-width: 848px; margin-left: auto; margin-right: auto; } }
/* The free check: pick the app, follow its guide, upload. One path, top to bottom. */
@media (min-width: 1100px) { main > #check.card.wrap { max-width: 1040px; } } /* wider so the guide picture stays readable beside its steps */
.flow { display: grid; gap: 28px; }
.flow-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.flow-step + .flow-step { border-top: 1px solid var(--line); padding-top: 24px; }
.flow-step.form { max-width: none; }
.flow-step.form > * { max-width: 480px; }
.flow-step legend, .flow-step h3 { font-size: 1.2rem; font-weight: 700; padding: 0; margin: 0 0 14px; }
.step-of { display: block; color: var(--accent); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .apps { grid-template-columns: 1fr; } }
.app { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 700; cursor: pointer; background: var(--bg); }
.app input { width: 20px; height: 20px; padding: 0; margin: 0; flex: none; accent-color: var(--accent); }
.app:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.app:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Only the chosen app's guide shows. Browsers without :has show all three, which still works. */
.flow:has(input[value="doordash"]:checked) .guide:not(.doordash),
.flow:has(input[value="ubereats"]:checked) .guide:not(.ubereats),
.flow:has(input[value="grubhub"]:checked) .guide:not(.grubhub) { display: none; }
.guide { display: grid; gap: 16px 28px; margin-bottom: 8px; }
@media (min-width: 760px) { .guide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.guide figure { margin: 0; }
.guide img { display: block; width: 100%; height: auto; border-radius: 14px; }
.guide figcaption { margin-top: 6px; }
.guide-steps > p { margin: 0 0 12px; }
/* Step numbers drawn like the badges in the guide pictures, so they match at a glance. */
.nums { list-style: none; counter-reset: n; padding: 0; margin: 0; display: grid; gap: 12px; }
.nums li { counter-increment: n; position: relative; padding-left: 38px; min-height: 26px; }
.nums li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 0.85rem; line-height: 26px; text-align: center; }
/* Phones only: the apps' report downloads need a computer. */
.phone-note { display: none; margin: 0 0 16px; }
@media (max-width: 760px) and (pointer: coarse) { .phone-note { display: block; } }
details { border-bottom: 1px solid var(--line); padding: 10px 0; }
summary { font-weight: 700; cursor: pointer; }
.form { display: grid; gap: 16px; max-width: 480px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
input, select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 20px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--muted); font-size: 0.95rem; }
.stat span { display: block; font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.stat.good span { color: var(--good); }
.stat.bad span { color: var(--bad); }
.warn { background: var(--warn-bg); border-radius: 8px; padding: 10px 14px; }
.unlock { border-color: var(--accent); }
.table-scroll { overflow-x: auto; }
/* Phones: each charge becomes a card, verdict first, so nothing hides off the right edge. */
@media (max-width: 600px) {
  .table-scroll table, .table-scroll tbody, .table-scroll tr, .table-scroll td { display: block; }
  .table-scroll thead { display: none; }
  .table-scroll tr { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
  .table-scroll td { border: 0; padding: 3px 0; text-align: left; }
  .table-scroll td.take { order: -1; padding-bottom: 8px; }
  .table-scroll td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font: 0.85rem -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
}
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.num { text-align: right; white-space: nowrap; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.v-fight { background: var(--good); color: var(--bg); }
.v-skip { background: var(--line); color: var(--ink); }
.v-expired { background: var(--bad); color: var(--bg); }
.letter { border: 1px solid var(--line); border-radius: 10px; margin: 14px 0; overflow: hidden; }
.letter-head { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.letter-head .copy { margin-left: auto; }
.copy { font: inherit; font-size: 0.85rem; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.steps { margin: 0; padding: 12px 14px 12px 36px; display: grid; gap: 6px; }
.letter details { border-bottom: 0; border-top: 1px solid var(--line); padding: 0; }
.letter summary { padding: 10px 14px; }
.letter details .letter-head { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
pre { white-space: pre-wrap; margin: 0; padding: 14px; font: 0.95rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.foot { color: var(--muted); font-size: 0.9rem; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot p { margin: 0 0 6px; }
