/* Payslop design system v2: "highlighter on a document".
   Paper, ink, one highlighter yellow. Self-hosted fonts, light + dark, no external requests. */

@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-variable.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f3f2ee;
  --surface: #ffffff;
  --surface-2: #f6f5f1;
  --ink: #111418;
  --ink-2: #3f4650;
  --muted: #737a85;
  --line: #d9d8d1;
  --line-strong: #111418;
  --mark: #ffe34a;
  --mark-ink: #111418;
  --mark-soft: #fff6c2;
  --accent: #111418;            /* primary action = ink */
  --accent-ink: #f6f5f0;
  --accent-soft: #fff6c2;
  --accent-soft-ink: #111418;
  --good: #1f9d55;  --good-soft: #e2f4e9;
  --warning: #d98b00; --warning-soft: #fff1cc;
  --serious: #e06b2f; --serious-soft: #fcebe0;
  --critical: #d83a3a; --critical-soft: #fde4e4;
  --series-1: #2b5fd9;
  --series-2: #e0603a;
  --series-3: #1f9d55;
  --shadow: 0 1px 0 rgba(17,20,24,.04), 0 12px 32px -12px rgba(17,20,24,.18);
  --radius: 10px;
  --radius-sm: 6px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1114; --surface: #171a1f; --surface-2: #1e2228; --ink: #f2f1ec; --ink-2: #c3c6cc; --muted: #868c96;
    --line: #2a2f37; --line-strong: #f2f1ec; --mark: #f2d43a; --mark-soft: #3a3417;
    --accent: #f2f1ec; --accent-ink: #111418; --accent-soft: #3a3417; --accent-soft-ink: #f2f1ec;
    --good-soft: #163b26; --warning-soft: #3d2f0c; --serious-soft: #42241a; --critical-soft: #431d1d;
    --series-1: #4f82e8; --series-2: #e8734e; --series-3: #35b36b;
    --shadow: 0 1px 0 rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1114; --surface: #171a1f; --surface-2: #1e2228; --ink: #f2f1ec; --ink-2: #c3c6cc; --muted: #868c96;
  --line: #2a2f37; --line-strong: #f2f1ec; --mark: #f2d43a; --mark-soft: #3a3417;
  --accent: #f2f1ec; --accent-ink: #111418; --accent-soft: #3a3417; --accent-soft-ink: #f2f1ec;
  --good-soft: #163b26; --warning-soft: #3d2f0c; --serious-soft: #42241a; --critical-soft: #431d1d;
  --series-1: #4f82e8; --series-2: #e8734e; --series-3: #35b36b;
  --shadow: 0 1px 0 rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body);
  font-size: 16px; line-height: 1.55; font-feature-settings: "cv11", "ss03", "tnum"; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.4vw, 68px); font-weight: 800; letter-spacing: -.035em; line-height: 1.0; }
h2 { font-size: clamp(28px, 3.8vw, 40px); letter-spacing: -.03em; }
h3 { font-size: 18px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
mark { background: var(--mark); color: var(--mark-ink); padding: 0 .12em; margin: 0 -.04em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
h1 mark, h2 mark { background: linear-gradient(transparent 8%, var(--mark) 8%, var(--mark) 88%, transparent 88%); padding: 0 .08em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.small { font-size: 14px; }
.mono { font-family: var(--font-mono); font-size: .92em; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 8px; background: var(--mark); border-radius: 1px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; z-index: 100; }
.mt-8 { margin-top: 8px; } .mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; } .mt-28 { margin-top: 28px; } .ml-8 { margin-left: 8px; }
.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); }
.page .lead { max-width: 62ch; font-size: 18px; color: var(--ink-2); }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink);
  font: inherit; font-weight: 600; font-size: 15px; letter-spacing: -.005em; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s, transform .08s, box-shadow .15s;
}
.btn:hover { background: var(--mark); color: var(--mark-ink); border-color: var(--mark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .input:focus-visible, .select:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--mark) 80%, var(--ink) 20%); outline-offset: 2px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--mark); border-color: var(--mark); color: var(--mark-ink); }
.btn-ghost { border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; color: var(--ink); }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.input, .select, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--muted); }
.input:hover, .select:hover { border-color: color-mix(in srgb, var(--ink) 45%, var(--line)); }
.input:focus, .select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--mark-soft); }
textarea.input { resize: vertical; min-height: 96px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field { display: grid; gap: 6px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.04em; line-height: 1; }
.brand img, .brand svg { width: 28px; height: 28px; }
.brand mark { background: linear-gradient(transparent 10%, var(--mark) 10%, var(--mark) 90%, transparent 90%); padding: 0 .06em; margin-right: -.06em; }
.nav-links { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
@media (max-width: 1400px) { .nav-links .nav-opt { display: none; } }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn { color: var(--accent-ink); font-weight: 600; }
.nav-links a.btn:hover { color: var(--mark-ink); }
.nav-links a.btn:not(.btn-primary) { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); width: 42px; height: 42px; cursor: pointer; color: var(--ink); font-size: 18px; }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 14px; }
  .nav-links .nav-opt { display: list-item; }
  .nav-links a { font-size: 15px; white-space: normal; }
  .nav-links a.btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 40px 0 28px; } }
.hero h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.hero-sub { font-size: clamp(17px, 1.9vw, 20px); color: var(--ink-2); max-width: 52ch; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13.5px; font-family: var(--font-mono); }
.hero-trust span::before { content: "✓ "; color: var(--good); font-weight: 700; }

/* ---------- "Slop vs decoded" illustration ---------- */
.slop { position: relative; padding-bottom: 36px; }
.slip { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); padding: 20px 22px 18px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); transform: rotate(-1.2deg); }
.slip-head { display: flex; justify-content: space-between; border-bottom: 1.5px solid var(--ink); padding-bottom: 8px; margin-bottom: 10px; color: var(--ink); font-weight: 600; }
.slip-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 5px 0; align-items: baseline; }
.slip-row span:first-child { position: relative; overflow: hidden; }
.slip-row span:first-child::after { content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ."; position: absolute; white-space: nowrap; color: var(--line); padding-left: 6px; }
.slip-row.total { border-top: 1.5px solid var(--ink); margin-top: 8px; padding-top: 9px; font-weight: 700; color: var(--ink); }
.slip-row.hl { background: linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 88%, transparent 88%); margin: 0 -6px; padding-inline: 6px; color: var(--mark-ink); }
.decoded { position: absolute; right: -10px; bottom: 0; width: min(80%, 340px); background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 12px 14px 12px 16px; font-size: 13.5px; line-height: 1.45; transform: rotate(.6deg); }
.decoded::before { content: ""; position: absolute; left: -1.5px; top: 10px; bottom: 10px; width: 5px; background: var(--mark); border-radius: 0 3px 3px 0; }
.decoded strong { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 12.5px; }
@media (max-width: 900px) { .slop { padding-bottom: 0; } .slip { transform: none; } .decoded { position: static; width: auto; margin-top: 12px; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--surface); }
.section-head { max-width: 64ch; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); font-size: 17px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 8px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-2); font-size: 15px; }
.step-num { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: var(--radius-sm); background: var(--mark); color: var(--mark-ink); font-family: var(--font-mono); font-weight: 700; font-size: 14px; }
.flags { display: flex; flex-wrap: wrap; gap: 8px; }
.flag-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.flag-pill::before { content: "✓"; color: var(--good); font-weight: 800; font-family: var(--font-mono); }

/* ---------- Pricing ---------- */
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; }
.plan.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
:root[data-theme="dark"] .plan.featured, :root:not([data-theme="light"]) .plan.featured { }
.plan.featured h3, .plan.featured .plan-price, .plan.featured .feature-list li { color: inherit; }
.plan.featured .feature-list li::before { color: var(--mark); }
.plan.featured .plan-price small { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.plan.featured .btn-primary { background: var(--mark); border-color: var(--mark); color: var(--mark-ink); }
.plan.featured .btn-primary:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.plan-tag { position: absolute; top: -13px; right: 18px; background: var(--mark); color: var(--mark-ink); font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 4px; letter-spacing: .06em; text-transform: uppercase; }
.plan-price { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.plan-price small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 8px; }
.feature-list li { padding-left: 24px; position: relative; color: var(--ink-2); font-size: 15px; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; font-family: var(--font-mono); }
.feature-list li.no::before { content: "–"; color: var(--muted); }
.feature-list li.no { color: var(--muted); }
.plan .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-family: var(--font-mono); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; max-width: 70ch; }

/* ---------- Waitlist (yellow block) ---------- */
.waitlist { background: var(--mark); color: var(--mark-ink); border-radius: var(--radius); padding: 44px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
@media (max-width: 860px) { .waitlist { grid-template-columns: 1fr; padding: 28px 22px; } }
.waitlist h2 { color: inherit; }
.waitlist p { color: inherit; opacity: .78; }
.waitlist-form { display: grid; gap: 10px; }
.waitlist-form .row { display: grid; grid-template-columns: 1fr 150px; gap: 10px; }
@media (max-width: 480px) { .waitlist-form .row { grid-template-columns: 1fr; } }
.waitlist .input, .waitlist .select { background-color: #fff; color: #111418; border-color: transparent; }
.waitlist .select { background-image: linear-gradient(45deg, transparent 50%, #111418 50%), linear-gradient(135deg, #111418 50%, transparent 50%); }
.waitlist .input:focus, .waitlist .select:focus { border-color: #111418; box-shadow: none; }
.waitlist .btn-primary { background: #111418; border-color: #111418; color: #f6f5f0; }
.waitlist .btn-primary:hover { background: #fff; border-color: #fff; color: #111418; }
.waitlist .form-msg.ok { color: #0d5a2f; } .waitlist .form-msg.err { color: #9c1c1c; }
.form-note { font-size: 13px; opacity: .72; }
.form-msg { font-size: 14px; min-height: 20px; }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: var(--critical); }

/* ---------- Footer ---------- */
.footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.footer a { color: var(--ink-2); text-decoration: none; margin-right: 16px; }
.footer a:hover { text-decoration: underline; }
.footer .lang-note { margin-right: 16px; }
.theme-btn { background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 10px; color: var(--ink-2); cursor: pointer; font: inherit; font-family: var(--font-mono); font-size: 12px; }

/* ---------- Prose pages ---------- */
.prose { max-width: 72ch; padding: 48px 0 72px; }
.prose h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: .35em; }
.prose h2 { font-size: 26px; margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 22px; }
.prose .lead { font-size: 19px; color: var(--ink-2); }
.callout { background: var(--mark-soft); border-left: 4px solid var(--mark); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 20px 0; }
.callout p:last-child { margin: 0; color: var(--ink); }

/* ================= App ================= */
.app-main { padding: 32px 0 72px; }
.app-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.app-head h1 { font-size: clamp(32px, 5vw, 46px); margin: 0; }
.pass-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--mark); color: var(--mark-ink); font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.pass-badge.none { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }

.upload-card { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.dropzone { display: block; border: 2px dashed color-mix(in srgb, var(--ink) 40%, var(--line)); border-radius: var(--radius-sm); padding: 34px 18px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; background: var(--surface-2); }
.dropzone:hover, .dropzone.drag { border-color: var(--ink); background: var(--mark-soft); }
.dropzone.has-file { border-style: solid; border-color: var(--good); background: var(--good-soft); }
.dropzone input { display: none; }
.dropzone .dz-icon { margin: 0 auto 10px; width: 44px; height: 44px; color: var(--ink); }
.dropzone strong { display: block; font-size: 17px; letter-spacing: -.01em; }
.dropzone .dz-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.dz-file { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; }
.options-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
@media (max-width: 560px) { .options-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: start; margin-top: 16px; font-size: 14px; color: var(--ink-2); font-weight: 400; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.upload-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.upload-actions .spacer { flex: 1; }
.privacy-line { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.privacy-line svg { width: 16px; height: 16px; color: var(--good); flex: none; }
.error-box { background: var(--critical-soft); border: 1px solid color-mix(in srgb, var(--critical) 40%, transparent); color: var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 14px; font-size: 14.5px; }
.error-box a { font-weight: 600; }

/* Progress */
.progress { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--ink); animation: spin .9s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; color: var(--muted); font-size: 13.5px; font-family: var(--font-mono); }
.progress-steps span.on { color: var(--ink); font-weight: 600; background: var(--mark); padding: 0 4px; border-radius: 2px; }
.progress-steps span.done { color: var(--good); }

/* Result */
.result { display: grid; gap: 16px; }
.result-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
@media (max-width: 800px) { .result-head { grid-template-columns: 1fr; } }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.badge.good { background: var(--good-soft); border-color: transparent; color: var(--ink); }
.badge.warn { background: var(--warning-soft); border-color: transparent; color: var(--ink); }
.badge.bad { background: var(--critical-soft); border-color: transparent; color: var(--ink); }
.headline { font-size: clamp(22px, 2.8vw, 28px); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; margin: 6px 0 10px; }
.summary { color: var(--ink-2); font-size: 15.5px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat .label { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.stat .value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat.hero .value { font-size: 32px; color: var(--ink); }
.stat.hero { grid-column: 1 / -1; background: var(--mark); color: var(--mark-ink); }
.stat.hero .label { color: var(--mark-ink); opacity: .7; }

/* Waterfall chart */
.viz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 10px; }
.viz-title { font-weight: 700; margin-bottom: 2px; letter-spacing: -.01em; }
.viz-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.viz svg { width: 100%; max-width: 760px; height: auto; overflow: visible; font-family: var(--font-body); }
.viz .lbl { fill: var(--ink-2); font-size: 13px; }
.viz .val { fill: var(--ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.viz .grid { stroke: var(--line); stroke-width: 1; }
.viz .bar-gross, .viz .bar-net { fill: var(--series-1); }
.viz .bar-deduction { fill: var(--series-2); }
.viz .bar-addition { fill: var(--series-3); }
.viz .connector { stroke: var(--line); stroke-width: 1; }
.viz .hit { fill: transparent; }
.viz .hit:hover + .bar, .viz g:hover .bar { opacity: .85; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .l1::before { background: var(--series-1); } .legend .l2::before { background: var(--series-2); } .legend .l3::before { background: var(--series-3); }
.tooltip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 6px; font-size: 13px; box-shadow: var(--shadow); display: none; white-space: nowrap; }

/* Line items (ledger) */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h2 { font-size: 24px; margin-bottom: 4px; }
.panel h3 { font-size: 17px; }
.panel .sub { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.line { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); }
.line:first-of-type { border-top: 0; }
.line .dot { width: 10px; height: 10px; border-radius: 2px; margin-top: 6px; background: var(--muted); }
.line .dot.earning { background: var(--series-1); } .line .dot.social_security, .line .dot.tax, .line .dot.deduction { background: var(--series-2); }
.line .dot.tax_credit, .line .dot.reimbursement { background: var(--series-3); } .line .dot.info, .line .dot.employer_contribution, .line .dot.benefit_in_kind { background: var(--muted); }
.line .label { font-weight: 600; }
.line .basis { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.line .expl { color: var(--ink-2); font-size: 14.5px; margin-top: 3px; }
.line .amt { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14.5px; white-space: nowrap; text-align: right; }
.line .amt.neg { color: var(--ink-2); }
.cat-badge { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-left: 8px; }

/* Checks & flags */
.flag { border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 10px; background: var(--surface); }
.flag.high { border-left-color: var(--critical); } .flag.medium { border-left-color: var(--serious); } .flag.low { border-left-color: var(--warning); }
.flag .t { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.flag .sev { font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 3px; }
.flag.high .sev { background: var(--critical-soft); } .flag.medium .sev { background: var(--serious-soft); } .flag.low .sev { background: var(--warning-soft); }
.flag p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }
.flag .todo { margin-top: 8px; font-size: 14px; }
.flag .todo strong { color: var(--ink); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.check:first-child { border-top: 0; }
.check .ic { width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 800; color: #fff; }
.check.pass .ic { background: var(--good); } .check.warn .ic { background: var(--warning); color: #231a00; } .check.fail .ic { background: var(--critical); } .check.skipped .ic { background: var(--muted); }
.check .n { font-weight: 600; }
.check .d { color: var(--ink-2); }
.q-list { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.q-list li { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14.5px; display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.copy-btn { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; font: inherit; font-family: var(--font-mono); font-size: 12px; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.copy-btn:hover { background: var(--mark); color: var(--mark-ink); border-color: var(--mark); }
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.gloss div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; }
.gloss dt { font-weight: 700; font-family: var(--font-mono); font-size: 13px; } .gloss dd { margin: 2px 0 0; color: var(--ink-2); }

/* Locked (paywall) */
.locked { position: relative; overflow: hidden; }
.locked .blur { filter: blur(6px); pointer-events: none; user-select: none; opacity: .55; }
.paywall { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 85%, transparent) 35%, var(--surface)); }
.paywall-card { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; max-width: 480px; text-align: center; }
.paywall-card h3 { font-size: 22px; margin-bottom: 6px; }
.paywall-card p { color: var(--ink-2); font-size: 14.5px; }
.paywall-card .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.counts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.result-actions .spacer { flex: 1; }
.next-steps a { font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); font-size: 14px; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 70; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; }
.hidden { display: none !important; }
.disclaimer { font-size: 13px; color: var(--muted); }

.print-only { display: none; }
@page { size: A4; margin: 16mm 15mm 18mm; @bottom-right { content: counter(page) " / " counter(pages); font: 9pt Inter, system-ui, sans-serif; color: #666; } @bottom-left { content: "payslop.com"; font: 9pt Inter, system-ui, sans-serif; color: #666; } }
@media print {
  /* A document, not a web page: only the decoded content, in reading order. */
  html, body { background: #fff !important; color: #111; font-size: 10pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none !important; animation: none !important; }
  .print-only { display: block; }
  .screen-only { display: none !important; }
  .nav, .footer, .skip, .lang-banner, .app-head, #pass-card, .upload-card, #upload, #progress, #toast, .result-actions, .paywall,
  .copy-btn, .theme-btn, button, .btn, .chips, .ask-form, #ask-note, .upload-actions, #compare-status, .contract-form, .redeem-form,
  form, input, select, .camera-row, #plus:not(#plus-report) { display: none !important; }
  #ask:not(:has(.qa)), .compare-block:not(:has(.comparison, .check)) { display: none !important; }
  .wrap, .app-main { max-width: none; padding: 0; margin: 0; }
  .print-head { border-bottom: 2px solid #111; padding-bottom: 8pt; margin-bottom: 12pt; }
  .print-brand { font-weight: 800; font-size: 13pt; letter-spacing: -.02em; }
  .print-brand mark { background: var(--mark); color: #111; padding: 0 2px; }
  .print-head h1 { font-size: 20pt; margin: 6pt 0 2pt; letter-spacing: -.02em; }
  .print-facts { font-size: 11pt; font-weight: 600; }
  .print-meta { font-size: 9pt; color: #555; margin-top: 2pt; }
  .panel, .viz, .upload-card { border: 0 !important; border-radius: 0; padding: 0 !important; margin: 0 0 12pt !important; background: none !important; }
  .panel h2, .viz h2 { font-size: 13pt; border-top: 1px solid #bbb; padding-top: 8pt; margin-top: 4pt; break-after: avoid; }
  .flag, .check, .lever, .qa, .line, .cmp-row, .source, .stat, .hook, .viz { break-inside: avoid; }
  .viz .viz-sub { display: none; }  /* "tap or hover a bar" makes no sense on paper */
  #plus-report { break-before: page; }
  .panel:has(> .line) { break-before: page; }
  .result-head { display: block; }
  .result-head .stat-grid { grid-template-columns: repeat(3, 1fr); margin-top: 10pt; }
  .result-head .stat.hero { grid-column: span 1; }
  .disclaimer { break-before: avoid; }
  .stat-grid { gap: 6pt; }
  .stat { border: 1px solid #ddd; background: #fafafa !important; }
  .sources .source a::after { content: "  " attr(href); font-family: var(--font-mono); font-size: 8pt; color: #555; word-break: break-all; }
  .q-list a::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; word-break: break-all; }
  a { color: #111; text-decoration: none; }
  .disclaimer { border-top: 1px solid #bbb; padding-top: 6pt; font-size: 8.5pt; color: #444; }
  .locked .blur { filter: none; opacity: 1; }
}

/* ---------- Plus funnel ---------- */
.panel.plus { border: 1.5px solid var(--ink); }
.panel.plus > .eyebrow { color: var(--ink); }
.hooks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
@media (max-width: 1100px) { .hooks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) { .hooks { grid-template-columns: 1fr; } }
.hook { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; }
.hook-icon { font-family: var(--font-mono); font-size: 12px; font-weight: 700; display: inline-block; background: var(--mark); color: var(--mark-ink); padding: 2px 6px; border-radius: 3px; }
.hook-title { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.hook-big { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-top: 4px; }
.hook-big.good { color: var(--good); } .hook-big.warn { color: var(--serious); }
.hook-sub { font-weight: 600; margin-top: 2px; }
.hook-text { color: var(--ink-2); font-size: 14px; margin: 8px 0 0; }
.plus-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.plus-form .span2 { grid-column: span 3; }
@media (max-width: 700px) { .plus-form { grid-template-columns: 1fr 1fr; } .plus-form .span2 { grid-column: span 2; } }
.plus-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lever { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 10px; background: var(--surface); }
.lever-head { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; }
.lever-saving { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--good); white-space: nowrap; }
.lever p { margin: 10px 0 0; font-size: 14.5px; }
.lever .todo { margin-top: 8px; font-size: 14px; }
.stat-grid.four { grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
@media (max-width: 800px) { .stat-grid.four { grid-template-columns: 1fr 1fr; } }
.steps-list { padding-left: 22px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- Phone refinements ---------- */
.camera-row { display: none; margin-top: 12px; gap: 8px; flex-direction: column; align-items: flex-start; }
@media (hover: none) and (pointer: coarse) { .camera-row { display: flex; } }
.camera-btn { width: 100%; }
.viz svg.narrow .lbl { font-size: 12px; }
.viz svg.narrow .val { font-size: 12px; }
@media (max-width: 560px) {
  .lever-head { grid-template-columns: 34px 1fr; }
  .lever-saving { grid-column: 2; }
  .stat .value { font-size: 20px; }
  .stat.hero .value { font-size: 26px; }
  .headline { font-size: 22px; }
  .panel, .upload-card, .viz { padding: 16px; }
  .result-actions .btn { width: 100%; }
  .result-actions .spacer { display: none; }
  .plus-cta .btn { width: 100%; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Verdict, chips, ask, compare, redactor ---------- */
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 4px solid var(--muted); margin-bottom: 14px; }
.verdict strong { font-size: 16px; letter-spacing: -.01em; }
.verdict-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; }
.verdict.good { background: var(--good-soft); border-left-color: var(--good); } .verdict.good .verdict-dot { background: var(--good); }
.verdict.warn { background: var(--warning-soft); border-left-color: var(--warning); } .verdict.warn .verdict-dot { background: var(--warning); }
.verdict.bad { background: var(--critical-soft); border-left-color: var(--critical); } .verdict.bad .verdict-dot { background: var(--critical); }
.verdict-note { color: var(--ink-2); font-size: 14px; flex-basis: 100%; }
.chip { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; margin-left: 8px; vertical-align: 1px; }
.chip.ok { background: var(--good-soft); color: var(--ink); } .chip.check { background: var(--warning-soft); color: var(--ink); }
.redact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.redactor { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.75); display: grid; place-items: center; padding: 12px; }
.redactor-inner { background: var(--surface); border-radius: var(--radius); width: min(960px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.redactor-head { padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.redactor-canvas { overflow: auto; background: #222; flex: 1; min-height: 200px; }
.redactor-canvas canvas { width: 100%; height: auto; display: block; touch-action: none; cursor: crosshair; }
.redactor-actions { display: flex; gap: 8px; padding: 10px 16px; align-items: center; border-top: 1px solid var(--line); }
.redactor-actions .spacer { flex: 1; }
.ask-thread { display: grid; gap: 10px; margin-bottom: 10px; }
.qa { border-left: 3px solid var(--mark); padding: 2px 0 2px 12px; }
.qa .q { font-weight: 600; } .qa .a { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; white-space: pre-line; }
.qa.pending { border-left-color: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip-btn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.chip-btn:hover { background: var(--mark); color: var(--mark-ink); border-color: var(--mark); }
.ask-form { display: flex; gap: 8px; }
.ask-form .input { flex: 1; }
@media (max-width: 520px) { .ask-form { flex-direction: column; } }
.compare-block { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.compare-block:first-of-type { border-top: 0; padding-top: 0; margin-top: 6px; }
.contract-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.contract-form .span2 { grid-column: span 2; }
.contract-out { margin-top: 10px; }
.cmp-table { margin-top: 12px; display: grid; gap: 0; }
.cmp-row { display: grid; grid-template-columns: 1.6fr .8fr .8fr .8fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); align-items: start; font-size: 14px; }
.cmp-row.head { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-top: 0; }
.cmp-row .amt { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cmp-row.head span:not(:first-child) { text-align: right; }
.cmp-row .label { font-weight: 600; }
@media (max-width: 560px) { .cmp-row { grid-template-columns: repeat(3, 1fr); row-gap: 6px; } .cmp-row > :first-child { grid-column: 1 / -1; } .cmp-row.head { display: none; } .cmp-row .amt { text-align: right; font-size: 13px; } .cmp-row .amt::before { content: attr(data-l); display: block; color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; } }
.guide-card { text-decoration: none; display: block; transition: border-color .15s, transform .15s; }
.guide-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.guide-card h3 { font-size: 18px; margin-top: 6px; }
.guide-card p { color: var(--ink-2); font-size: 14.5px; }
.pro-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 0; align-self: start; }
.pro-form .span2 { grid-column: span 2; }
@media (max-width: 600px) { .pro-form { grid-template-columns: 1fr; } .pro-form .span2 { grid-column: span 1; } }

/* ---------- Logo mark (inline SVG, theme-aware) ---------- */
.logo .sheet { fill: currentColor; }
.logo .bar { fill: var(--bg); }
.logo .bar.dim { opacity: .55; }
.logo .hl { fill: var(--mark); }
.logo .hl-text { fill: #111418; }


/* ---------- Languages, sources, live progress ---------- */
.lang-switch { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--ink-2); font: inherit; font-family: var(--font-mono); font-size: 12.5px; padding: 6px 26px 6px 10px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.lang-switch:hover { border-color: var(--ink); color: var(--ink); }
.nav-links .lang-switch { min-height: 36px; }
@media (max-width: 760px) { .nav-links .lang-switch { width: 100%; } }
.lang-banner { background: var(--mark); color: var(--mark-ink); font-size: 14px; padding: 8px 0; }
.lang-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.lang-banner a { font-weight: 600; }
.lang-banner button { background: none; border: 0; font: inherit; cursor: pointer; margin-left: auto; color: inherit; opacity: .7; }
.lang-note { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.sources { display: grid; gap: 6px; margin-top: 8px; }
.source { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; align-items: start; }
.source .ic { width: 20px; height: 20px; border-radius: 4px; background: var(--mark); color: var(--mark-ink); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.source a { word-break: break-all; }
.source .u { display: block; color: var(--muted); font-size: 12.5px; font-family: var(--font-mono); }
.research-badge { display: inline-flex; align-items: center; gap: 6px; }
.progress-steps { flex-direction: column; align-items: center; gap: 6px; }
.progress-steps span { display: inline-flex; align-items: center; gap: 8px; }
.progress-steps span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.progress-steps span.on::before { background: var(--mark-ink); animation: pulse 1s ease-in-out infinite; }
.progress-steps span.done::before { background: var(--good); }
@keyframes pulse { 0%, 100% { transform: scale(.8); opacity: .5; } 50% { transform: scale(1.2); opacity: 1; } }
.progress-detail { margin-top: 10px; font-size: 14px; color: var(--ink-2); min-height: 20px; }
.flag .stake { margin-left: auto; font-family: var(--font-mono); font-size: 13px; font-weight: 700; background: var(--mark); color: var(--mark-ink); padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.flag .t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.verdict-stake { flex-basis: 100%; font-weight: 700; }
.autostart { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--mark-soft); border: 1px solid var(--line); font-weight: 600; }
.consent-note { margin-top: 4px; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.consent.pulse { border-radius: var(--radius-sm); }
.hero-drop { display: grid; gap: 4px; justify-items: center; text-align: center; margin-top: 16px; padding: 18px 16px; border: 2px dashed color-mix(in srgb, var(--ink) 35%, var(--line)); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.hero-drop:hover, .hero-drop.drag { border-color: var(--ink); background: var(--mark-soft); }
.hero-drop strong { font-size: 17px; }
.hero-drop span { color: var(--ink-2); font-size: 14px; }
.progress-privacy { margin-top: 8px; font-size: 13.5px; }
.progress-privacy.ok { color: var(--good); }
.progress-privacy.note { color: var(--ink-2); }
.progress-detail .search { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .9s linear infinite; vertical-align: -2px; margin-right: 6px; }
.country-featured { font-weight: 600; }

.line .label .tr, .cmp-row .tr { color: var(--muted); font-weight: 500; }

.buy-pack { display: grid; gap: 4px; }
.rule-card .lever-head { grid-template-columns: 34px 1fr auto; }
.conds { display: grid; gap: 6px; margin-top: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.cond { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.cond input { margin-top: 3px; }
.error-box.limit-offer { background: var(--mark-soft); border: 1.5px solid var(--ink); color: var(--ink); }
.limit-offer p { margin: 6px 0 10px; }
.limit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .limit-actions .btn { width: 100%; } }

/* ---------- Quick first look (streamed while the full decode runs) ---------- */
.first-look { margin-top: 22px; text-align: left; border-top: 1px solid var(--line); padding-top: 18px; animation: fade-in .25s ease-out; }
.first-look .eyebrow { margin-bottom: 10px; }
.stat-grid.three { grid-template-columns: repeat(3, 1fr); }
.first-look-lines { margin-top: 12px; max-height: 340px; overflow-y: auto; }
.fl-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.fl-row .label { font-weight: 600; }
.fl-row .amt { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.fl-row .amt.neg { color: var(--ink-2); }
.fl-row .tr { color: var(--muted); font-weight: 500; }
.retake { text-align: left; border: 1.5px solid var(--warning); background: var(--warning-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.retake.unreadable { border-color: var(--critical); background: var(--critical-soft); }
.retake p { margin: 6px 0 10px; font-size: 14px; }
.retake-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.input.prefilled, .select.prefilled { background: var(--mark-soft); border-color: color-mix(in srgb, var(--mark) 60%, var(--line)); }
.prefilled-note { color: var(--ink-2); }
.prefilled-note::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--mark); margin-right: 6px; vertical-align: -1px; }
.pulse { animation: pulse 0.8s ease-in-out 3; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px var(--mark); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; outline: 3px solid var(--mark); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .stat-grid.three { grid-template-columns: 1fr 1fr; } .stat-grid.three .hero { grid-column: span 2; } }
@media (prefers-reduced-motion: reduce) { .first-look { animation: none; } }
@media (max-width: 560px) { .buy-pack { width: 100%; } }

/* ---------- Pass card and redeem form ---------- */
.pass-badge.clickable { cursor: pointer; }
.pass-badge.clickable:hover, .pass-badge.clickable:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pass-card { margin-bottom: 20px; border: 1.5px solid var(--ink); }
.pass-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2px 0 10px; }
.pass-code { font-family: var(--font-mono); font-size: 22px; font-weight: 700; letter-spacing: .06em; background: var(--mark); color: var(--mark-ink); padding: 6px 10px; border-radius: var(--radius-sm); user-select: all; word-break: break-all; }
.redeem-form { margin-top: 14px; }
.redeem-form label { display: block; color: var(--ink-2); }
.redeem-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.redeem-row .input { flex: 1; min-width: 220px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 560px) { .pass-code { font-size: 18px; } .redeem-row .btn { width: 100%; } }

/* Plus not on sale yet (PLUS_FAKE_DOOR): honest note before the prices, thank-you after a choice. */
.soon-note { margin-top: 16px; color: var(--ink-2); }
.soon-note::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--mark); margin-right: 6px; vertical-align: -1px; }
.soon-thanks { flex: 1 1 100%; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--mark-soft, var(--surface)); }
.soon-thanks p { margin: 6px 0 0; color: var(--ink-2); }
.soon-thanks:focus { outline: none; }
