/* ============================================================
   deskreject.ai — design system (designer redesign, 2026-10-04)
   ------------------------------------------------------------
   THEMING RULES
   - Every colour that differs between light and dark mode is a custom
     property declared in this block. Rules further down must use the
     variables, never literal colours, for anything theme-dependent.
   - Light values live on :root. Dark values are declared twice: once
     under prefers-color-scheme (no-JS fallback) and once under
     [data-theme="dark"] (theme.js sets data-theme on load and toggle).
     Keep the two dark blocks identical.
   - .doc (the review "paper") follows the theme: --doc-bg/--doc-line/
     --doc-shadow give it a white sheet in light mode and a slightly raised
     dark sheet in dark mode (user request, 2026-10-08).
   ============================================================ */
:root {
  color-scheme: light;
  --ink: #0E1116;
  --ink-soft: #1a1f28;
  --on-ink: #ffffff;              /* text placed on an --ink background */
  --red: #B42A16;
  --red-dark: #93220f;
  --blue: #1d4ed8;
  --bg: #faf7f1;
  --bg-soft: #f3eee3;
  --card: #fffdf9;
  --line: #e5ddd0;
  --line-dark: #2a2f38;
  --muted: #5b6470;
  --muted-light: #9aa3af;
  --green: #137333;
  --amber: #b06000;
  --header-bg: rgba(255,255,255,0.92);
  --band-bg: #0E1116;             /* always-dark marketing bands (.dark) */
  --shadow: 0 12px 40px rgba(14,17,22,0.08);
  --input-bg: #ffffff;
  --input-line: #c3c9d1;
  --dz-hover-bg: #fff7f5;
  --code-bg: #f4f6f8;
  --tag-bg: #eef0f2;
  --mark-bg: #fff3b0;
  --mark-fg: #0E1116;
  --why-bg: #fef9e7;   --why-line: #f9e79f;
  --fix-bg: #eaf2f8;   --fix-line: #aed6f1;
  --q-bg: #f4f0ff;     --q-line: #d9ccf5;   --q-badge-bg: #e6dbff;   --q-badge-fg: #6c3fd4;
  --risk-bg: #fdf6f5;
  --stamp-reject-bg: #fdf3f1;   --stamp-border-bg: #fdf8ec;   --stamp-accept-bg: #f0f9f2;
  --pill-blue-bg: #e8eefc;      --pill-gray-bg: #eef0f2;      --pill-red-bg: #fbe9e6;
  --pos-bg: #e6f4ea;   --neu-bg: #fdf3e3;   --neg-bg: #fbe9e6;
  --radius: 12px;
  --font-head: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --doc-bg: #ffffff;   --doc-line: transparent;   --doc-shadow: 0 24px 70px rgba(14,17,22,0.14);
}
/* Dark theme: follows the OS until the user picks manually via the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f0ede6;
    --ink-soft: #d8d4c8;
    --on-ink: #12100c;
    --red: #e05a3a;
    --red-dark: #c44a2e;
    --blue: #6ea8ff;
    --bg: #12100c;
    --bg-soft: #1a1712;
    --card: #1e1a14;
    --line: #2e2920;
    --line-dark: #3a342a;
    --muted: #a39e8f;
    --muted-light: #6b6558;
    --green: #4caf6d;
    --amber: #d4a04a;
    --header-bg: rgba(18,16,12,0.92);
    --band-bg: #0a0908;
    --shadow: 0 12px 40px rgba(0,0,0,0.45);
    --input-bg: #12100c;
    --input-line: #3f382c;
    --dz-hover-bg: rgba(224,90,58,0.08);
    --code-bg: #1a1f28;
    --tag-bg: #232a35;
    --mark-bg: #4a3d0a;
    --mark-fg: #ffe9a0;
    --why-bg: #2a2410;   --why-line: #4a3f1a;
    --fix-bg: #10202e;   --fix-line: #1d3a52;
    --q-bg: #1e1830;     --q-line: #352a5a;   --q-badge-bg: #2d2350;   --q-badge-fg: #c4b0ff;
    --risk-bg: #231512;
    --stamp-reject-bg: #2a1512;   --stamp-border-bg: #2a2110;   --stamp-accept-bg: #10241a;
    --pill-blue-bg: #16233d;      --pill-gray-bg: #232a35;      --pill-red-bg: #2e1a16;
    --pos-bg: #12301e;   --neu-bg: #2e2410;   --neg-bg: #2e1a16;
    --doc-bg: #221e18;   --doc-line: #35302a;   --doc-shadow: 0 24px 70px rgba(0,0,0,0.55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f0ede6;
  --ink-soft: #d8d4c8;
  --on-ink: #12100c;
  --red: #e05a3a;
  --red-dark: #c44a2e;
  --blue: #6ea8ff;
  --bg: #12100c;
  --bg-soft: #1a1712;
  --card: #1e1a14;
  --line: #2e2920;
  --line-dark: #3a342a;
  --muted: #a39e8f;
  --muted-light: #6b6558;
  --green: #4caf6d;
  --amber: #d4a04a;
  --header-bg: rgba(18,16,12,0.92);
  --band-bg: #0a0908;
  --shadow: 0 12px 40px rgba(0,0,0,0.45);
  --input-bg: #12100c;
  --input-line: #3f382c;
  --dz-hover-bg: rgba(224,90,58,0.08);
  --code-bg: #1a1f28;
  --tag-bg: #232a35;
  --mark-bg: #4a3d0a;
  --mark-fg: #ffe9a0;
  --why-bg: #2a2410;   --why-line: #4a3f1a;
  --fix-bg: #10202e;   --fix-line: #1d3a52;
  --q-bg: #1e1830;     --q-line: #352a5a;   --q-badge-bg: #2d2350;   --q-badge-fg: #c4b0ff;
  --risk-bg: #231512;
  --stamp-reject-bg: #2a1512;   --stamp-border-bg: #2a2110;   --stamp-accept-bg: #10241a;
  --pill-blue-bg: #16233d;      --pill-gray-bg: #232a35;      --pill-red-bg: #2e1a16;
  --pos-bg: #12301e;   --neu-bg: #2e2410;   --neg-bg: #2e1a16;
    --doc-bg: #221e18;   --doc-line: #35302a;   --doc-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
/* The sample review is always a white sheet of paper, whatever the page theme. */
/* Theme toggle button */
.theme-toggle {
  background: none; border: 1px solid var(--line); border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; margin-left: 8px; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--muted); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
footer { margin-top: auto; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; }
h1 { font-weight: 800; font-size: clamp(38px, 5vw, 64px); }
h2 { font-weight: 800; font-size: clamp(26px, 3vw, 38px); }
h3 { font-weight: 700; font-size: 20px; }
p { margin: 0 0 16px; }
a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ---------- kicker ---------- */
.kicker {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-family: var(--font-mono);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 2px solid var(--red); border-radius: 9px;
  color: var(--red); font-family: var(--font-head); font-weight: 800; font-size: 14px;
  transform: rotate(-4deg);
  flex-shrink: 0;
}
.logo-word { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo-word em { font-style: normal; color: var(--muted-light); }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
/* Hamburger: hidden on desktop, shown by the <=640px media query further down.
   (It must be declared BEFORE that query — a copy of this rule at the end of
   the file once overrode it, so phones had no menu and no theme toggle.) */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 11px; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink);
}
.site-nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a.btn, .site-nav a.btn:hover { color: #fff; border-bottom: none; }
.site-nav a.btn-dark, .site-nav a.btn-dark:hover { color: var(--on-ink); }
.site-nav a.nav-cta { color: var(--red); font-weight: 700; text-decoration: none; border-bottom: none; padding: 4px 0; }
.site-nav a.nav-cta:hover { color: var(--red-dark); }
.site-nav a:hover { color: var(--red); }
.site-nav a.active { border-bottom-color: var(--red); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--red); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  border: none; border-radius: 10px;
  padding: 16px 32px; cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
  text-align: center;
}
.btn:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-soft); }
.btn.secondary {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line);
}
.btn.secondary:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 8px; }

/* ---------- hero (home) ---------- */
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  align-items: start; padding: 72px 0 80px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .red { color: var(--red); }
.hero .lede { font-size: 18px; color: var(--ink-soft); max-width: 34em; margin-bottom: 24px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 28px; padding: 0; list-style: none; }
.hero-checks li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.hero-checks .tick { color: var(--ink); font-weight: 700; }
.hero-checks strong { font-weight: 700; }
.privacy-card {
  border: 1.5px solid var(--ink); border-radius: 14px;
  padding: 22px 24px; background: var(--bg-soft);
}
.privacy-card .pc-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.privacy-card .pc-head svg { flex-shrink: 0; }
.privacy-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.privacy-card li { font-size: 15px; color: var(--ink-soft); }
.privacy-card li strong { font-weight: 700; color: var(--ink); }

/* ---------- upload card ---------- */
.upload-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  scroll-margin-top: 80px; /* clear the sticky header when scrolled into view */
}
.dropzone {
  border: 2px dashed var(--input-line); border-radius: 14px;
  padding: 40px 24px; text-align: center; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
  background: transparent; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--red); background: var(--dz-hover-bg); }
/* The real <input type=file> covers the whole dropzone (invisible, on top) so a
   tap anywhere opens the native picker — the most reliable approach on iOS/Android.
   Nothing else may call input.click() on tap or the picker opens twice. */
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.dropzone input[type="file"]:focus-visible { opacity: 1; outline: 2px solid var(--red); border-radius: 14px; }
.dz-icon { font-size: 28px; display: block; margin-bottom: 10px; }
.dz-title { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.dz-sub { font-size: 13.5px; color: var(--muted); }
.dropzone .file-name { font-weight: 700; color: var(--ink); word-break: break-word; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.field input[type="email"], .field input[type="text"], .field select {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--input-line); border-radius: 10px;
  font-size: 16px; font-family: var(--font-body); background: var(--input-bg); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.upload-card .btn { width: 100%; margin-top: 6px; }
.upload-foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; font-size: 13.5px; color: var(--muted);
}
.status-line { margin-top: 14px; font-size: 14.5px; min-height: 22px; }
.status-line.error { color: var(--red); font-weight: 600; }
.hidden { display: none !important; }

/* order summary / payment step */
.order-summary { border: 1px solid var(--line); border-radius: 12px; padding: 6px 18px; margin: 18px 0; }
.order-summary .row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.order-summary .row:last-child { border-bottom: none; }
.order-summary .row.total { font-weight: 800; font-size: 17px; }
.promo-row { display: flex; gap: 10px; margin-top: 16px; }
.upload-card .promo-row .btn { width: auto; margin-top: 0; flex: 0 0 auto; }
.promo-row input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--input-line); border-radius: 10px; font-size: 15px; font-family: var(--font-body); background: var(--input-bg); color: var(--ink); }
.step-head { font-family: var(--font-head); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; margin-bottom: 8px; }
.step-sub { color: var(--muted); font-size: 15.5px; margin-bottom: 8px; }
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--red);
  margin: 24px auto; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.step-top { border-top: 2px solid var(--ink); padding-top: 18px; }
.step-no { font-family: var(--font-mono); font-size: 13px; color: var(--red); letter-spacing: 0.08em; display: block; margin-bottom: 10px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.three-col h3 { font-size: 21px; margin-bottom: 10px; }
.three-col p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- dark sections ---------- */
.dark { background: var(--band-bg); color: #fff; }
.dark .kicker { color: #9aa3af; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark p { color: #c9cfd8; }
.gauntlet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.gauntlet-card {
  border: 1px solid var(--line-dark); border-radius: 14px; padding: 24px;
  background: rgba(255,255,255,0.02);
}
.gauntlet-card .g-no { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; color: #9aa3af; display: block; margin-bottom: 12px; }
.gauntlet-card h3 { font-size: 20px; margin-bottom: 10px; }
.gauntlet-card p { font-size: 14.5px; color: #aab2bd; margin: 0; }
.text-link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: #ffd9d2; }
.pipeline-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-dark); border-radius: 14px; overflow: hidden; margin-top: 44px;
}
.pipeline-strip > div { padding: 26px 24px; border-left: 1px solid var(--line-dark); }
.pipeline-strip > div:first-child { border-left: none; }
.pipeline-strip .p-no { font-family: var(--font-mono); font-size: 12.5px; color: #9aa3af; display: block; margin-bottom: 10px; }
.pipeline-strip h3 { font-size: 19px; margin-bottom: 8px; }
.pipeline-strip p { font-size: 14px; color: #aab2bd; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); }
.cta-sub { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.site-footer .footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.dark-footer { background: #0E1116; color: #9aa3af; border-top: none; }
.dark-footer a { color: #c9cfd8; }
.dark-footer a:hover { color: #fff; }
.dark-footer .footer-cta { border-bottom: 1px solid var(--line-dark); padding-bottom: 32px; margin-bottom: 28px; }

/* ---------- sample review document ---------- */
.doc-page { background: var(--bg-soft); padding: 64px 0 72px; }
.doc {
  background: var(--doc-bg); border: 1px solid var(--doc-line); border-radius: 6px;
  box-shadow: var(--doc-shadow);
  padding: 56px 64px; position: relative;
  max-width: 880px; margin: 0 auto;
  color: var(--ink); /* follows the page theme: a white sheet in light mode, a dark one in dark mode */
}
.doc p { color: var(--ink-soft); }
.doc-meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; margin-bottom: 20px; }
.doc h1 { font-size: clamp(28px, 3.6vw, 42px); max-width: 20ch; margin-bottom: 22px; }
.verdict-stamp {
  display: inline-block;
  font-family: var(--font-head); font-weight: 800; font-size: 22px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 3px solid; border-radius: 8px; padding: 8px 22px;
  transform: rotate(-3deg);
}
.doc .verdict-stamp { position: absolute; top: 40px; right: 44px; }
.verdict-likely_reject { color: var(--red); border-color: var(--red); background: var(--stamp-reject-bg); }
.verdict-borderline { color: var(--amber); border-color: var(--amber); background: var(--stamp-border-bg); }
.verdict-likely_accept { color: var(--green); border-color: var(--green); background: var(--stamp-accept-bg); }
.scorecard-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14.5px; margin: 6px 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.scorecard-line .sc-label { font-weight: 700; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.pill-blue { background: var(--pill-blue-bg); color: var(--blue); }
.pill-gray { background: var(--pill-gray-bg); color: var(--muted); }
.pill-red { background: var(--pill-red-bg); color: var(--red); }
.scorecard-line .sev-note { color: var(--muted); }
.doc h2 { font-size: 22px; margin: 34px 0 14px; }
.doc .summary-text, .doc p.body-text { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; }
.strengths { list-style: none; margin: 0; padding: 0; }
.strengths li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 15.5px; color: var(--ink-soft); }
.strengths li::before { content: '✓'; position: absolute; left: 2px; top: 0; color: var(--blue); font-weight: 800; }

/* issue cards */
.issue-card {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 24px; margin: 16px 0; background: var(--card);
  border-left: 4px solid var(--line);
}
.issue-card.sev-critical { border-left-color: var(--red); }
.issue-card.sev-high { border-left-color: var(--ink); }
.issue-card.sev-medium { border-left-color: var(--muted-light); }
.issue-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.sev-badge { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; color: #fff; }
.sev-critical .sev-badge { background: var(--red); }
.sev-high .sev-badge { background: var(--ink); color: var(--on-ink); }
.sev-medium .sev-badge { background: #6b7280; }
.issue-area { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.issue-card h3 { font-size: 18px; margin: 0 0 12px; letter-spacing: -0.01em; }
.evidence {
  background: var(--bg-soft); border: 1px dashed var(--input-line); border-radius: 8px;
  padding: 12px 16px; margin: 12px 0; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft);
}
.evidence .quote { margin: 0 0 4px; }
.evidence .evidence-source { margin: 0; color: var(--muted); font-size: 12px; }
.issue-label { font-size: 13px; font-weight: 700; margin: 14px 0 4px; color: var(--muted); }
.why-box { background: var(--why-bg); border: 1px solid var(--why-line); border-radius: 10px; padding: 12px 16px; margin: 8px 0 12px; }
.why-box p { margin: 0 !important; font-size: 14.5px; }
.fix-box { background: var(--fix-bg); border: 1px solid var(--fix-line); border-radius: 10px; padding: 12px 16px; margin: 8px 0 12px; }
.fix-box p { margin: 0 !important; font-size: 14.5px; }
.why-box .issue-label, .fix-box .issue-label { margin: 0 0 6px !important; }
.author-questions { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: q; }
.author-questions li { position: relative; background: var(--q-bg); border: 1px solid var(--q-line); border-radius: 10px; padding: 14px 16px 14px 52px; margin: 0 0 10px; font-size: 15px; }
.author-questions li::before { counter-increment: q; content: "Q" counter(q); position: absolute; left: 14px; top: 14px; font-weight: 800; font-size: 13px; color: var(--q-badge-fg); background: var(--q-badge-bg); border-radius: 6px; padding: 2px 8px; }
.section-sub { color: var(--muted); font-size: 14.5px; margin: -8px 0 14px; }
.wrap.narrow { max-width: 720px; }
.privacy-item { border-top: 2px solid var(--ink); padding: 20px 0; }
.privacy-item h3 { margin: 0 0 8px; font-size: 19px; }
.privacy-item p { margin: 0; color: var(--ink); font-size: 15.5px; }
.privacy-icon { margin-bottom: 14px; }
.step-top .privacy-icon svg { display: block; }
.issue-card p { font-size: 15px; color: var(--ink); }
.suggested-fix { margin-top: 6px; }
.suggested-fix .fix-text { font-family: var(--font-mono); font-size: 13.5px; background: var(--code-bg); border-radius: 8px; padding: 10px 14px; }
mark.edit, .edit { background: var(--mark-bg); color: var(--mark-fg); padding: 1px 3px; border-radius: 3px; }
.desk-risk-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--red); color: var(--red); border-radius: 8px;
  font-size: 13px; font-weight: 700; padding: 6px 12px; margin-top: 12px;
}

/* criterion table */
.criterion-table { width: 100%; border-collapse: collapse; margin: 8px 0 8px; font-size: 14.5px; }
.criterion-table th, .criterion-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.criterion-table th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.criterion-table td.c-name { font-weight: 700; white-space: nowrap; }
.c-sent { font-weight: 700; white-space: nowrap; }
.c-sent.neg { color: var(--red); }
.c-sent.pos { color: var(--blue); }
.c-sent.neu { color: var(--muted); }
.criterion-table td.c-just { color: var(--ink-soft); }

/* revision roadmap */
.roadmap { list-style: none; margin: 0; padding: 0; counter-reset: rm; }
.roadmap li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.roadmap li:last-child { border-bottom: none; }
.roadmap .rm-no { font-family: var(--font-mono); color: var(--red); font-weight: 700; font-size: 14px; flex-shrink: 0; padding-top: 2px; }
.doc-foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase;
}

/* sample page intro + CTA */
.sample-intro { max-width: 720px; margin-bottom: 40px; }
.sample-intro p { color: var(--ink-soft); font-size: 16.5px; }
.sample-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; max-width: 880px; margin: 48px auto 0; }
.sample-cta h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 36px); }
.sample-cta .cta-sub { margin: 0; }

/* ---------- benchmark ---------- */
.stat-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 28px 32px;
  background: var(--card); min-width: 280px;
}
.stat-card .stat-num { font-family: var(--font-head); font-weight: 800; font-size: 64px; color: var(--red); letter-spacing: -0.04em; line-height: 1; }
.stat-card .stat-cap { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 22em; }
.bench-hero { display: grid; grid-template-columns: 1.2fr auto; gap: 48px; align-items: start; margin-bottom: 48px; }
.bench-table-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.bench-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bench-table th, .bench-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.bench-table thead th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); }
.bench-table tbody tr:last-child td { border-bottom: none; }
.bench-table td.paper { font-weight: 700; }
.match-yes { color: var(--blue); font-weight: 700; white-space: nowrap; }
.limit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 32px; }
.limit-grid h3 { font-size: 18px; margin-bottom: 8px; }
.limit-grid p { color: var(--ink-soft); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin: 32px 0 0; }
.faq-tab {
  background: none; border: none; font-family: var(--font-body); font-size: 16px; font-weight: 600;
  padding: 0 2px 14px; cursor: pointer; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.faq-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.faq-layout { display: grid; grid-template-columns: 260px 1fr; gap: 64px; padding: 48px 0 72px; }
.faq-side .kicker { margin-bottom: 12px; }
.faq-side p { color: var(--muted); font-size: 15px; }
.faq-side a { color: var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
  color: var(--ink); text-align: left;
}
.faq-q .plus { font-weight: 400; font-size: 22px; color: var(--muted); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 24px; color: var(--ink-soft); font-size: 15.5px; max-width: 60em; }
.faq-item.open .faq-a { display: block; }

/* venues */
.venues-band { background: var(--bg-soft); padding: 72px 0; }
.venues-layout { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.venue-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.venue-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.venue-card.dashed { border-style: dashed; color: var(--muted); }
.venue-card h3 { font-size: 17px; margin: 0 0 4px; }
.venue-card p { font-size: 13.5px; color: var(--muted); margin: 0; }
.venue-card a { color: var(--ink); }

/* ---------- results page ---------- */
/* The live report is rendered inside the sample page's .doc sheet (.report-doc
   adds the few differences: no headline, so the stamp sits in the flow). */
.report-doc .verdict-stamp { position: static; transform: rotate(-2deg); margin-bottom: 6px; }
.report-doc .loading { padding: 40px 0; }
.report-error { text-align: center; padding: 24px 0; }
.report-error h2 { margin-top: 0; }
.report-error p { color: var(--muted); }
.report-header { margin-bottom: 8px; }
.summary-text { font-size: 17px; line-height: 1.7; color: var(--ink); max-width: 62em; }
.report-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.loading { text-align: center; padding: 80px 0; color: var(--muted); }
.error-box { max-width: 560px; margin: 80px auto; text-align: center; border: 1px solid var(--line); border-radius: 16px; padding: 48px 32px; }
.expiry-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* tags (results page) */
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tag { font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; background: var(--tag-bg); color: var(--muted); }
.tag.sev-critical { background: var(--red); color: #fff; }
.tag.sev-high { background: var(--ink); color: var(--on-ink); }
.tag.area { background: transparent; border: 1px solid var(--line); }
.tag.desk-risk { background: transparent; border: 1.5px solid var(--red); color: var(--red); }
.weakness { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 22px 24px; margin: 16px 0; background: var(--card); }
.weakness.sev-critical { border-left-color: var(--red); }
.weakness.sev-high { border-left-color: var(--ink); }
.weakness h3 { font-size: 18px; margin: 0 0 10px; }
.weakness .criterion { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.weakness blockquote, .minor-item blockquote {
  margin: 12px 0; padding: 12px 16px; background: var(--bg-soft);
  border-left: 3px solid var(--red); border-radius: 0 8px 8px 0;
  font-size: 14.5px; color: var(--ink-soft);
}
.weakness blockquote cite, .minor-item blockquote cite { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.action-point, .why-matters { font-size: 15px; margin-top: 12px; color: var(--ink); }
.suggested-edit { margin-top: 12px; font-size: 15px; }
.suggested-edit .edit-line { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 13.5px; background: var(--code-bg); border-radius: 8px; padding: 10px 14px; }
.edit-legend { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.minor-item { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 12px 0; }
.minor-item h3 { font-size: 16.5px; margin: 0 0 8px; }
.typo-list { list-style: none; margin: 0; padding: 0; }
.typo-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.typo-fix { color: var(--green); font-weight: 600; margin-top: 4px; }
.counter-arg { border-left: 4px solid var(--ink); background: var(--bg-soft); border-radius: 0 12px 12px 0; padding: 20px 24px; font-size: 15.5px; }
.risk-callout { border: 1.5px solid var(--red); border-radius: 12px; padding: 18px 22px; background: var(--risk-bg); }
.risk-callout ul { margin: 0; padding-left: 20px; }
.risk-callout li { margin-bottom: 8px; font-size: 15px; }
.rationale { font-size: 15.5px; color: var(--ink); }

/* scorecard pills (results page top) */
.scorecard { margin: 24px 0 8px; }
.scorecard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.scorecard-title { font-family: var(--font-head); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.scorecard-tally { font-size: 14px; color: var(--muted); }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }  /* 260px: icon + a name like "Presentation" + the badge; at 200px the name ran under the badge */
.sc-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); min-width: 0; }
.sc-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #fff; }
.sc-positive .sc-icon { background: var(--green); }
.sc-neutral .sc-icon { background: var(--amber); }
.sc-negative .sc-icon { background: var(--red); }
.sc-name { flex: 1; font-weight: 700; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.sc-pill { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px; flex-shrink: 0; white-space: nowrap; }
.sc-positive .sc-pill { background: var(--pos-bg); color: var(--green); }
.sc-neutral .sc-pill { background: var(--neu-bg); color: var(--amber); }
.sc-negative .sc-pill { background: var(--neg-bg); color: var(--red); }

/* criterion cards (results page, detailed section) */
.criterion-cards { display: grid; gap: 14px; }
.criterion-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: var(--card); }
.criterion-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.criterion-head h3 { margin: 0; font-size: 17px; }
.sentiment { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.sent-positive { background: var(--pos-bg); color: var(--green); }
.sent-neutral { background: var(--neu-bg); color: var(--amber); }
.sent-negative { background: var(--neg-bg); color: var(--red); }
.criterion-card p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 56px; }
  .three-col { grid-template-columns: 1fr; gap: 28px; }
  .gauntlet-grid { grid-template-columns: 1fr 1fr; }
  .pipeline-strip { grid-template-columns: 1fr 1fr; }
  .pipeline-strip > div:nth-child(3) { border-left: none; }
  .pipeline-strip > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .limit-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .venues-layout { grid-template-columns: 1fr; gap: 32px; }
  .venue-cards { grid-template-columns: 1fr 1fr; }
  .bench-hero { grid-template-columns: 1fr; }
  .doc { padding: 40px 28px; }
  .doc .verdict-stamp { position: static; transform: rotate(-2deg); margin-bottom: 20px; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 16px 24px 24px; border-bottom: 1px solid var(--line); gap: 14px; }
  .theme-toggle { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .form-row { grid-template-columns: 1fr; }
  .upload-card { padding: 20px 16px; border-radius: 14px; }
  .dropzone { padding: 28px 14px; }
  .step-head { font-size: 24px; }
  .gauntlet-grid { grid-template-columns: 1fr; }
  .pipeline-strip { grid-template-columns: 1fr; }
  .pipeline-strip > div { border-left: none; border-top: 1px solid var(--line-dark); }
  .pipeline-strip > div:first-child { border-top: none; }
  .venue-cards { grid-template-columns: 1fr; }
  .sc-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .criterion-table { font-size: 13.5px; }
  .criterion-table td.c-name { white-space: normal; }
}

