/* Raporta — design system. Self-hosted fonts only: reporter pages make no third-party requests.
   Type: Newsreader (display), Geist (UI), Geist Mono (codes). Palette: ink navy + terracotta on warm paper. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin-ext-wght-italic.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin-wght-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/geist-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/geist-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/geist-mono-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/geist-mono-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --sunken: #f0eee8;
  --ink: #11151f;
  --ink-2: #2b3140;
  --muted: #5d6473;
  --line: #e4e1d9;
  --line-2: #d3cfc4;
  --brand: #1c2f5e;
  --brand-hover: #142449;
  --brand-ink: #ffffff;
  --brand-soft: #e8ecf6;
  --accent: #c4562b;
  --accent-soft: #fbeee7;
  --ok: #2f7a55;
  --ok-soft: #e6f2ec;
  --warn: #9a5a00;
  --warn-soft: #fbf1dd;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(17, 21, 31, .05);
  --shadow: 0 1px 2px rgba(17, 21, 31, .04), 0 8px 24px -12px rgba(17, 21, 31, .12);
  --shadow-lg: 0 2px 4px rgba(17, 21, 31, .04), 0 24px 60px -24px rgba(17, 21, 31, .28);
  --header-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c111b;
    --surface: #131a27;
    --sunken: #1a2232;
    --ink: #e9ecf2;
    --ink-2: #cdd3df;
    --muted: #98a1b3;
    --line: #253044;
    --line-2: #34405a;
    --brand: #a9bdf5;
    --brand-hover: #c3d1fa;
    --brand-ink: #0c111b;
    --brand-soft: #1c2741;
    --accent: #f08a5d;
    --accent-soft: #33221b;
    --ok: #6fcf9b;
    --ok-soft: #15291f;
    --warn: #f2b65a;
    --warn-soft: #33270f;
    --danger: #f59a90;
    --danger-soft: #3a1c1a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--brand); } }
a:hover { color: var(--brand-hover); }
img, svg { max-width: 100%; }
::selection { background: var(--brand-soft); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap, .narrow { padding: 0 16px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
  font: 500 .82rem/1.2 var(--sans); color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.eyebrow b { background: var(--brand); color: var(--brand-ink); font-weight: 600; padding: 3px 8px; border-radius: 99px; font-size: .74rem; letter-spacing: .02em; }
.kicker { font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 1.42rem/1 var(--serif); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; border-radius: 8px; }
.brand small { font: 500 .72rem/1 var(--sans); letter-spacing: .04em; color: var(--muted); margin-left: 4px; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--sunken); }
.nav .btn { margin-left: 6px; color: var(--brand-ink); padding: 8px 14px; }
.nav .btn:hover { background: var(--brand-hover); color: var(--brand-ink); }
.nav .nav-link-secondary { color: var(--muted); }
@media (max-width: 900px) { .nav .hide-sm { display: none; } }
@media (max-width: 520px) { .nav { gap: 2px; } .nav a:not(.btn):not(.keep) { display: none; } .nav a.keep { padding: 8px; } .nav .btn { margin-left: 0; } .brand { font-size: 1.3rem; } .brand-mark { width: 28px; height: 28px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: var(--brand-ink); font: 600 .94rem/1.2 var(--sans); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 1px 2px rgba(17, 21, 31, .18);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn .icon { width: 17px; height: 17px; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn.secondary:hover { background: var(--sunken); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--sunken); }
.btn.danger { background: var(--surface); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); box-shadow: none; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.small { padding: 7px 12px; font-size: .84rem; border-radius: 8px; }
.btn.lg { padding: 14px 22px; font-size: 1rem; border-radius: 12px; }
.btn.light { background: #fff; color: #11151f; }
.btn.light:hover { background: #eef0f5; color: #11151f; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-row + p { margin-top: 14px; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 550; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field { margin-bottom: 20px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 5px; line-height: 1.45; }
label .hint { display: inline; margin: 0 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=number], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: .97rem;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
select { appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235d6473' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
textarea.short { min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 10px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface);
  cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line-2)); }
.choice input { margin-top: 2px; }
.choice strong { display: block; font-weight: 600; margin-bottom: 2px; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-row .choice { margin: 0; }
@media (max-width: 600px) { .choice-row { grid-template-columns: 1fr; } }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error-text { color: var(--danger); font-size: .9rem; }
.error-text:empty { display: none; }

/* ---------- Surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.panel > h3:first-child, .panel > h2:first-child { margin-top: 0; }
.notice { display: block; padding: 13px 16px; border-radius: 12px; background: var(--brand-soft); color: var(--ink); margin-bottom: 18px; font-size: .94rem; border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.notice.error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.notice a { font-weight: 600; }
.stack > * + * { margin-top: 20px; }
.mt { margin-top: 36px; }
.mt-s { margin-top: 14px; }
.btn.block { width: 100%; }
.code-input { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.tick.lg { width: 52px; height: 52px; margin-bottom: 18px; } .tick.lg .icon { width: 26px; height: 26px; }
.label-like { margin: 0 0 10px; font-size: .9rem; }

/* Receipt: case code + key shown to reporters */
.receipt {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px 20px; margin: 22px 0; box-shadow: var(--shadow);
}
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 6px; border-radius: 0 0 var(--radius) var(--radius);
  background: radial-gradient(circle at 6px 6px, var(--bg) 3px, transparent 3.5px) 0 0 / 12px 12px repeat-x;
}
.receipt dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 20px; align-items: baseline; }
.receipt dt { color: var(--muted); font-size: .86rem; }
.receipt dd { margin: 0; font: 600 1.3rem/1.3 var(--mono); letter-spacing: .05em; word-break: break-all; color: var(--ink); }
@media (max-width: 520px) { .receipt dl { grid-template-columns: 1fr; gap: 2px; } .receipt dd { margin-bottom: 10px; font-size: 1.08rem; letter-spacing: .02em; } }
.receipt-head { display: flex; align-items: center; gap: 10px; font: 500 1.15rem var(--serif); margin-bottom: 16px; }
.receipt-foot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: .85rem; color: var(--muted); }
.tick { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ok-soft); color: var(--ok); flex: none; }
.tick .icon { width: 15px; height: 15px; stroke-width: 2.4; }

/* ---------- Landing ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 10%, transparent), transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 44px; } }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 22px; }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--muted); max-width: 33em; }
.hero .btn-row { margin: 30px 0 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; font-size: .88rem; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .icon { width: 17px; height: 17px; color: var(--ok); }

/* Product mock in the hero (pure HTML/CSS) */
.mock { position: relative; padding: 34px 10px 104px 24px; }
.mock-window { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--sunken); }
.mock-dots { display: flex; gap: 6px; } .mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-url { flex: 1; text-align: center; font: 500 .78rem var(--mono); color: var(--muted); background: var(--surface); border-radius: 7px; padding: 5px 10px; border: 1px solid var(--line); }
.mock-body { padding: 26px 26px 28px; }
.mock-org { font: 500 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mock-title { font: 500 1.55rem/1.15 var(--serif); letter-spacing: -0.02em; margin-bottom: 18px; }
.mock-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.mock-choice { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: .82rem; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.mock-choice i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }
.mock-choice.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.mock-choice.on i { border: 4px solid var(--brand); }
.mock-field { height: 38px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 9px; padding: 10px 12px; font-size: .8rem; color: var(--muted); }
.mock-field.tall { height: 76px; }
.mock-btn { display: inline-block; margin-top: 6px; background: var(--brand); color: var(--brand-ink); border-radius: 9px; padding: 9px 16px; font-size: .82rem; font-weight: 600; }
.mock-float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.mock-receipt { left: -8px; bottom: 0; width: 290px; padding: 16px 18px; }
.mock-receipt .row { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--muted); padding: 4px 0; }
.mock-receipt .row b { font: 600 .9rem var(--mono); color: var(--ink); letter-spacing: .04em; }
.mock-receipt .head { display: flex; align-items: center; gap: 10px; font: 500 1rem var(--serif); margin-bottom: 8px; }
.mock-deadline { right: -18px; top: 0; width: 210px; padding: 14px 16px; font-size: .8rem; }
.mock-deadline b { display: block; font: 500 1.4rem/1.1 var(--serif); margin: 2px 0 8px; }
.meter { height: 6px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.meter span { display: block; height: 100%; width: 30%; background: var(--ok); border-radius: 99px; }
@media (max-width: 960px) { .mock { max-width: 560px; margin: 0 auto; } }
@media (max-width: 520px) { .mock { padding: 0 0 70px; } .mock-deadline { display: none; } .mock-receipt { left: 12px; width: calc(100% - 24px); } }
@media (prefers-reduced-motion: no-preference) {
  .mock-window { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .mock-receipt { animation: rise .7s .25s cubic-bezier(.2, .7, .2, 1) both; }
  .mock-deadline { animation: rise .7s .4s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

section.band { padding: 96px 0; }
section.band.tint { background: var(--surface); border-block: 1px solid var(--line); }
@media (max-width: 700px) { section.band { padding: 64px 0; } }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--muted); }

/* Strip of facts under the hero */
.facts-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.facts-strip > div { padding: 26px 28px; }
.facts-strip > div + div { border-left: 1px solid var(--line); }
.facts-strip b { display: block; font: 500 2rem/1.1 var(--serif); letter-spacing: -0.02em; margin-bottom: 6px; }
.facts-strip p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 800px) { .facts-strip { grid-template-columns: 1fr; } .facts-strip > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Law vs. product */
.law { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.law-row { display: grid; grid-template-columns: 1fr 1.25fr 96px; gap: 24px; align-items: center; padding: 20px 26px; }
.law-row + .law-row { border-top: 1px solid var(--line); }
.law-row .req { font: 500 1.08rem/1.35 var(--serif); }
.law-row .req small { display: block; font: 500 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.law-row .how { color: var(--muted); font-size: .94rem; }
.law-row .pill { justify-self: end; }
.law-head { background: var(--sunken); padding: 12px 26px; font: 600 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .law-row { grid-template-columns: 1fr; gap: 8px; } .law-row .pill { justify-self: start; } .law-head { display: none; } }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font: 600 .76rem/1.2 var(--sans); white-space: nowrap; background: var(--ok-soft); color: var(--ok); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.pill .icon { width: 14px; height: 14px; stroke-width: 2.2; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px; box-shadow: var(--shadow-sm); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 500 .82rem var(--mono); color: var(--accent); margin-bottom: 26px; letter-spacing: .06em; }
.steps li strong { display: block; font: 500 1.2rem/1.25 var(--serif); margin-bottom: 8px; letter-spacing: -0.01em; }
.steps li p { margin: 0; color: var(--muted); font-size: .93rem; }
.steps li .when { position: absolute; top: 20px; right: 20px; font-size: .74rem; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .steps.steps-3 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.audience { border-radius: 20px; padding: 36px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.audience.dark { background: #131c33; color: #e9ecf2; border-color: #131c33; }
.audience.dark h3, .audience.dark .kicker { color: #fff; }
.audience.dark .kicker { color: #f3a27c; }
.on-dark { color: #b7bfd2; }
.btn.on-dark-btn { color: #fff; }
.btn.on-dark-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.audience.dark .check-list li { color: #cdd3e3; }
.audience.dark .check-list li::before { background-color: #2a3a63; }
.audience h3 { font-size: 1.6rem; margin-bottom: 14px; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background-color: var(--ok-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7a55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  background-size: 13px; background-position: center; background-repeat: no-repeat;
}
.audience.dark .check-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fe0bd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.features > div { background: var(--surface); padding: 30px 28px; }
.features h3 { font-size: 1.15rem; margin: 18px 0 8px; }
.features p { margin: 0; color: var(--muted); font-size: .94rem; }
.feature-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .cols-3 { grid-template-columns: 1fr; } }
.cols-3 > div h3 { font-size: 1.2rem; }

/* Partner earnings example */
.earn { padding: 30px; box-shadow: var(--shadow-lg); }
.earn-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.earn-row b { color: var(--ink); font-weight: 600; }
.earn-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 14px; }
.earn-total b { font: 500 2.4rem/1 var(--serif); letter-spacing: -0.02em; color: var(--ok); }

/* Referral calculator and client message */
.calc { padding: 30px; box-shadow: var(--shadow-lg); }
.calc label { font-size: 1rem; margin-bottom: 14px; }
.calc__row { display: flex; align-items: center; gap: 16px; }
.calc__row input { flex: 1; accent-color: var(--brand); height: 28px; }
.calc__row output { font: 500 1.6rem/1 var(--serif); min-width: 2.5ch; text-align: right; font-variant-numeric: tabular-nums; }
.calc__result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 14px; padding: 18px 0; border-block: 1px solid var(--line); }
.calc__result b { display: block; font: 500 2.1rem/1.1 var(--serif); letter-spacing: -0.02em; color: var(--ok); font-variant-numeric: tabular-nums; }
.template p { white-space: pre-line; font: 400 1.02rem/1.6 var(--serif); margin: 0 0 18px; }

/* Pricing */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
@media (max-width: 720px) { .price { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, var(--shadow); }
.plan .badge-top { position: absolute; top: -12px; left: 28px; }
.plan h3 { font: 600 .82rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.amount { display: flex; align-items: baseline; gap: 8px; font: 500 3.2rem/1 var(--serif); letter-spacing: -0.03em; }
.amount small { font: 500 .95rem var(--sans); letter-spacing: 0; color: var(--muted); }
.plan .check-list { margin: 24px 0 28px; flex: 1; }
.plan .btn { width: 100%; }
.offer { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 880px; margin: 20px auto 0; padding: 20px 24px; border-radius: 16px; background: var(--accent-soft); border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.offer > div { flex: 1 1 380px; }
.offer b { font: 500 1.15rem var(--serif); }
.offer p { margin: 2px 0 0; color: var(--ink-2); font-size: .93rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font: 500 1.12rem/1.35 var(--serif); }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--line-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6473' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: -6px 0 22px; color: var(--muted); max-width: 680px; }

/* Final call to action */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 56px; background: #131c33; color: #e9ecf2; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(240, 138, 93, .14); pointer-events: none; }
.cta-band h2 { color: #fff; margin: 0 0 10px; }
.cta-band h2 em { color: #f3a27c; }
.cta-band p { color: #b7bfd2; margin: 0; }
.cta-band .btn-row { justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 44px 28px; } .cta-band .btn-row { justify-content: flex-start; } }
.cta-panel { margin: 40px 0 16px; font-family: var(--sans); background: var(--brand-soft); border-color: transparent; }
.cta-panel h3 { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: .9rem; background: var(--surface); }
main.doc, main.wrap, main.narrow, .cta-section { padding-bottom: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font: 600 .76rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 6px 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }
.footer-grid p { max-width: 30em; margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .84rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.site-footer.compact { margin-top: 64px; padding: 28px 0; }
.site-footer.compact .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer.compact a { color: var(--muted); }

/* ---------- Reporter portal ---------- */
.portal-bar { border-bottom: 1px solid var(--line); background: var(--surface); }
.portal-bar .narrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; font-size: .84rem; color: var(--muted); }
.secure { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-weight: 600; }
.secure .icon { width: 16px; height: 16px; }
.portal-head { padding: 44px 0 20px; }
.portal-org { font: 600 .8rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.portal-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.facts { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.facts li::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7a55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; gap: 6px; margin: 18px 0; } .facts { gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; } .facts li { padding: 0; border: 0; background: none; font-size: .86rem; gap: 10px; } .facts li::before { width: 18px; height: 18px; } .portal-head { padding-top: 28px; } .portal-head .lead { font-size: 1rem; } }
.form-step { display: flex; align-items: baseline; gap: 12px; font: 500 1.2rem var(--serif); margin: 8px 0 16px; letter-spacing: -0.01em; }
.form-step span { font: 500 .78rem var(--mono); color: var(--accent); letter-spacing: .06em; }
.form-divider { border: 0; border-top: 1px solid var(--line); margin: 30px -26px 26px; }
.powered { text-align: center; font-size: .8rem; color: var(--muted); margin: 36px 0 40px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.powered img { width: 16px; height: 16px; border-radius: 4px; }

.thread { display: grid; gap: 12px; margin: 16px 0; }
.msg { padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); max-width: 86%; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.msg .meta { display: block; font-size: .76rem; color: var(--muted); margin-bottom: 5px; white-space: normal; font-weight: 500; }
.msg.mine { justify-self: end; background: var(--brand-soft); border-color: transparent; border-bottom-right-radius: 4px; }
.msg:not(.mine):not(.system) { border-bottom-left-radius: 4px; }
.msg.system { background: var(--sunken); border-color: transparent; max-width: 100%; font-size: .9rem; }

/* File picker */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px 18px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--bg); cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone strong { color: var(--brand); font-weight: 600; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.file-list:empty { display: none; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .9rem; overflow-wrap: anywhere; }
.file-list li .btn { flex: none; }

/* ---------- Auth (login) ---------- */
.auth-head h1 { font-size: 2.2rem; margin-bottom: 8px; }
.auth-head { margin-bottom: 22px; }
.auth-links { margin-top: 18px; justify-content: center; gap: 20px; }
.auth-foot { text-align: center; margin-top: 28px; }
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side { position: relative; overflow: hidden; background: #131c33; color: #cdd3e3; padding: 44px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side::after { content: ""; position: absolute; right: -140px; top: 30%; width: 420px; height: 420px; border-radius: 50%; border: 56px solid rgba(240, 138, 93, .12); }
.auth-side .brand { color: #fff; }
.auth-side blockquote { margin: 0; font: 400 1.75rem/1.3 var(--serif); color: #fff; letter-spacing: -0.015em; max-width: 18em; position: relative; z-index: 1; }
.auth-side blockquote em { color: #f3a27c; }
.auth-side .check-list li { color: #cdd3e3; }
.auth-side .check-list li::before { background-color: #2a3a63; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fe0bd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 44px 24px; }
.auth-main .inner { width: 100%; max-width: 420px; margin: 0 auto; }
.auth-main .panel { padding: 28px; }
.auth-main .btn[type=submit] { width: 100%; padding: 13px; }
.auth-top { display: none; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-top { display: flex; margin-bottom: 32px; } }

/* ---------- Dashboard ---------- */
.app-body { background: var(--bg); }
.app-body .site-header { position: sticky; background: var(--surface); backdrop-filter: none; }
.app-body .site-header .wrap { max-width: none; padding: 0 20px; }
.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: calc(100vh - var(--header-h)); }
.side { position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; gap: 14px;
  border-right: 1px solid var(--line); background: var(--surface); padding: 14px 12px; }
.nav-groups { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 18px; margin: 0 -4px; padding: 0 4px; }
.nav-group { display: grid; gap: 2px; }
.nav-group__title { margin: 0 0 4px; padding: 0 10px; font: 600 .7rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav-link:hover { background: var(--sunken); color: var(--ink); }
.nav-link[aria-current=page] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-link > span:first-of-type { flex: 1; }
.nav-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.nav-badge { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--sunken); color: var(--ink-2); font: 600 .74rem/1.5 var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
.nav-badge--late { background: var(--danger-soft); color: var(--danger); }

/* Organisation and account menus (details/summary, so they work with the keyboard and without extra state) */
.org-menu, .account-menu { position: relative; border-bottom: 0; }
.org-menu summary, .account-menu summary { font: inherit; justify-content: flex-start; }
.org-menu summary::after, .account-menu summary::after { content: none; display: none; }
.org-menu summary, .account-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; border-radius: 12px; }
.org-menu summary::-webkit-details-marker, .account-menu summary::-webkit-details-marker { display: none; }
.org-menu summary { flex-wrap: wrap; padding: 10px 34px 10px 12px; background: var(--sunken); }
.org-menu summary:hover { background: color-mix(in srgb, var(--sunken) 70%, var(--line)); }
.org-menu__name { width: 100%; font-weight: 600; font-size: .92rem; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.org-menu__role { font-size: .76rem; color: var(--muted); }
.org-menu summary .nav-icon, .account-menu summary .nav-icon { position: absolute; right: 10px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; transition: rotate .15s; }
details[open] > summary .nav-icon { rotate: 180deg; }
.account-menu { border-top: 1px solid var(--line); padding-top: 12px; }
.account-menu summary { padding: 8px 32px 8px 8px; }
.account-menu summary:hover { background: var(--sunken); }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font: 600 .9rem var(--sans); }
.account-menu__who { display: grid; min-width: 0; }
.account-menu__email { font-size: .86rem; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu__hint { font-size: .74rem; color: var(--muted); }
.pop { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); display: grid; gap: 2px; padding: 6px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.pop--up { top: auto; bottom: calc(100% + 6px); }
.pop__label { margin: 4px 8px 4px; font: 600 .68rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pop__item { display: flex; align-items: center; gap: 10px; width: 100%; white-space: nowrap; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2);
  font: 500 .9rem/1.3 var(--sans); text-align: left; text-decoration: none; cursor: pointer; }
.pop__item:hover, .pop__item[aria-current=page] { background: var(--sunken); color: var(--ink); }
.pop__tag { margin-left: auto; white-space: nowrap; padding: 1px 8px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); font-size: .72rem; font-weight: 600; }
.pop .nav-icon { position: static; translate: none; }

/* Top bar: menu button only on phones */
.app-top { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
.menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.side-scrim { display: none; }
.main { padding: 32px 40px 72px; min-width: 0; max-width: 1240px; }
.app-shell:has(> .side.hidden) { grid-template-columns: 1fr; }
.app-shell:has(> .side.hidden) .main { max-width: none; padding-top: 56px; }
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .menu-toggle { display: grid; }
  .side { position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; height: 100dvh; width: min(300px, 86vw); border-right: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding-top: 18px; transform: translateX(-102%); transition: transform .25s cubic-bezier(.23,1,.32,1); }
  body.menu-open .side { transform: none; }
  .side-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(12, 17, 27, .45); }
  .side-scrim[hidden] { display: none; }
  .main { padding: 22px 16px 56px; }
}
.main > * + .panel, .main > * + .stack, .main > * + .table-wrap, .main > .table-wrap + * { margin-top: 20px; }
.main > .notice + * { margin-top: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font: 600 .74rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--sunken); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; transition: background .1s; }
tr.click:hover td { background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
td select { width: auto; min-width: 190px; padding: 7px 34px 7px 10px; font-size: .88rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font: 600 .76rem/1.4 var(--sans); background: var(--sunken); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.received { background: var(--brand-soft); color: var(--brand); }
.badge.in_progress { background: var(--warn-soft); color: var(--warn); }
.badge.closed { background: var(--ok-soft); color: var(--ok); }
.badge.late { background: var(--danger-soft); color: var(--danger); }
.badge.soon { background: var(--warn-soft); color: var(--warn); }
.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); }
.empty strong { display: block; font: 500 1.35rem var(--serif); margin-bottom: 6px; }
.empty p { max-width: 440px; margin: 0 auto 18px; }
.checklist { margin-bottom: 22px; border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.checklist-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.checklist-head h3 { margin-bottom: 2px; }
.checklist .bar { margin: 12px 0 16px; }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; counter-reset: s; }
.steps-list li { counter-increment: s; display: flex; gap: 10px; align-items: center; font-size: .92rem; }
.steps-list li::before { content: counter(s); width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 .75rem var(--sans); border: 1.5px solid var(--line-2); color: var(--muted); }
.steps-list li.done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.steps-list li.done::before { content: "✓"; background: var(--ok-soft); color: var(--ok); border-color: transparent; }
@media (max-width: 700px) { .steps-list { grid-template-columns: 1fr; } }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.mfa-qr { background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
code { font: 500 .88em var(--mono); background: var(--sunken); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.btn-row .code-input { width: 160px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters select, .filters input { width: auto; min-width: 200px; }
.case-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1080px) { .case-grid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 9px 20px; margin: 0; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stat b { display: block; font: 500 2rem/1.1 var(--serif); letter-spacing: -0.02em; margin-bottom: 4px; }
.bar { height: 8px; background: var(--sunken); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 12px; z-index: 50; font-size: .92rem; font-weight: 500; box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: toast .25s ease-out; } @keyframes toast { from { opacity: 0; transform: translate(-50%, 8px); } } }
.qr img { image-rendering: pixelated; width: 190px; height: 190px; background: #fff; padding: 10px; border-radius: 12px; }

/* ---------- Articles & documents ---------- */
.doc { font-family: var(--serif); font-size: 1.12rem; line-height: 1.7; max-width: 46em; color: var(--ink-2); }
.doc h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--ink); margin: 12px 0 24px; }
.doc h2 { font-size: 1.55rem; margin-top: 1.8em; color: var(--ink); }
.doc h3 { margin-top: 1.4em; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc li::marker { color: var(--accent); }
.doc table { font-family: var(--sans); font-size: .92rem; margin: 1.2em 0; }
.doc .panel, .doc .notice { font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
main.doc { padding-top: 48px; }
.crumbs { font: 500 .84rem var(--sans); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.doc .guide-list, .guide-list { padding-left: 0; }
.guide-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0; list-style: none; font-family: var(--sans); }
.guide-list a { display: block; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.guide-list a:hover { border-color: var(--brand); transform: translateY(-2px); }
.guide-list strong { display: block; font: 500 1.2rem/1.3 var(--serif); margin-bottom: 8px; }
.guide-list span { color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .guide-list { grid-template-columns: 1fr; } }
.poster { text-align: center; padding: 48px 28px; border: 2px solid var(--ink); border-radius: 20px; max-width: 580px; margin: 0 auto; background: var(--surface); }
.poster h1 { font-size: 2rem; }
.poster .url { font: 600 1.05rem var(--mono); overflow-wrap: anywhere; }

/* Print: only the printable area */
.print-only { display: none; }
@media print {
  :root { --bg: #fff; --surface: #fff; --ink: #000; --muted: #333; --line: #bbb; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .no-print, .site-header, .side, .page-head, .toast, .site-footer, .portal-bar { display: none !important; }
  .app-shell { display: block; }
  .main { padding: 0; }
  .print-only { display: block; }
  .print-area { display: block !important; }
  .table-wrap { border: 0; overflow: visible; box-shadow: none; }
  .case-grid { display: block; }
  .panel { border: 0; padding: 0; box-shadow: none; }
  .poster { border: 2px solid #000; margin-top: 40px; }
  th { background: #eee; color: #000; }
  a { color: #000; }
  .doc { font-size: 11pt; }
  .doc h1 { font-size: 18pt; } .doc h2 { font-size: 13pt; margin-top: 14pt; }
}
