/* Flatclaim – one stylesheet, mobile first */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eff1f5;
  --ink: #15171a;
  --ink-2: #3a3f45;
  --muted: #6a7077;
  --line: #e2e5eb;
  --line-strong: #c9ced8;
  --accent: #1747c7;
  --accent-hover: #123aa6;
  --accent-ink: #ffffff;
  --accent-soft: #e9efff;
  --green: #0b7a4b;
  --green-soft: #e5f4ec;
  --yellow: #8a5a00;
  --yellow-soft: #fbf1dc;
  --red: #a8261b;
  --red-soft: #fbe9e6;
  --focus: #2f6fdd;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 8px 24px rgba(20, 22, 26, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a20;
    --surface-2: #1f232b;
    --ink: #eef0ee;
    --ink-2: #c9cdca;
    --muted: #979d99;
    --line: #2a2f39;
    --line-strong: #3a404c;
    --accent: #7ea2ff;
    --accent-hover: #9ab7ff;
    --accent-ink: #0a1638;
    --accent-soft: #18223d;
    --green: #5bd3a2;
    --green-soft: #15302a;
    --yellow: #e7b75a;
    --yellow-soft: #2d2616;
    --red: #f08a7e;
    --red-soft: #33201d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.45rem, 4vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; display: block; }
html, body { overflow-x: hidden; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 620px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.12rem; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.logo-mark svg { width: 17px; height: 17px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .05s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 0 14px; min-height: 44px; }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .spinner { width: 18px; height: 18px; }

/* Landing */
.hero { padding: 48px 0 40px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--accent); }

.ticket-art { position: relative; max-width: 380px; margin: 0 auto; width: 100%; }
.ticket {
  background: #fff7d1; color: #2b2512; border-radius: 6px; padding: 22px 22px 18px;
  box-shadow: 0 2px 0 rgba(0,0,0,.04), 0 18px 40px rgba(60, 50, 10, .18); transform: rotate(-3deg);
  font-family: var(--mono); font-size: .8rem; line-height: 1.5;
}
.ticket .t-head { font-family: var(--font); font-weight: 800; letter-spacing: .08em; font-size: .85rem; margin-bottom: 12px; }
.ticket .t-row { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(43,37,18,.25); padding: 4px 0; }
.ticket .t-amount { font-family: var(--font); font-size: 1.6rem; font-weight: 800; margin-top: 10px; }
.stamp {
  position: absolute; right: -6px; bottom: 18px; transform: rotate(8deg);
  background: var(--surface); color: var(--accent); border: 3px solid var(--accent); border-radius: 12px;
  padding: 8px 14px; font-weight: 800; letter-spacing: .04em; box-shadow: var(--shadow); font-size: 1rem;
}

.section { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin-bottom: 28px; }
.steps { display: grid; gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section:not(.section-alt) .steps li { background: var(--surface); }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 750; margin-bottom: 14px; }
.steps p { margin: 0; color: var(--muted); }

.guarantee { display: grid; gap: 20px; align-items: center; background: var(--accent-soft); border-radius: var(--radius); padding: 28px; }
.guarantee h2 { margin-bottom: 8px; }
.guarantee p { margin: 0; color: var(--ink-2); }
.price-tag { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.price-tag small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.reasons-grid { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.reasons-grid li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.reasons-grid svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 620; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); padding-bottom: 8px; }

.cta-band { text-align: center; padding: 64px 0; }
.cta-band p { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.disclaimer { max-width: 40em; }

/* Flow */
.flow { min-height: calc(100vh - 64px); padding: 8px 0 48px; }
.progress { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 8px 0 28px; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .35s ease; }
.flow-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-left: -14px; }
.back svg { width: 18px; height: 18px; }
.step-label { color: var(--muted); font-size: .88rem; }
.screen { animation: enter .28s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } .progress > span { transition: none; } }
.screen h1 { font-size: clamp(1.6rem, 5.2vw, 2.2rem); margin-bottom: .35em; }
.screen .help { color: var(--muted); margin-bottom: 24px; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  min-height: 240px; padding: 28px; border: 2px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone svg { width: 44px; height: 44px; color: var(--accent); }
.dropzone strong { font-size: 1.1rem; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.preview { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); max-height: 320px; display: grid; place-items: center; }
.preview img { max-height: 320px; width: auto; }
.reading { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--ink-2); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
.btn-primary .spinner { border-color: rgba(255,255,255,.35); border-top-color: var(--accent-ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.options { display: grid; gap: 10px; }
.option {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  min-height: 60px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .12s, background-color .12s;
}
.option:hover { border-color: var(--line-strong); }
.option[aria-pressed="true"], .option[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.option .opt-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.option .opt-title { display: block; font-weight: 620; }
.option .opt-hint { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.check { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; background: var(--surface); }
.check.round { border-radius: 50%; }
.check svg { width: 14px; height: 14px; color: var(--accent-ink); opacity: 0; }
[aria-pressed="true"] .check, [aria-checked="true"] .check { background: var(--accent); border-color: var(--accent); }
[aria-pressed="true"] .check svg, [aria-checked="true"] .check svg { opacity: 1; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { color: var(--muted); font-size: .85rem; }
.field-row { display: grid; gap: 0 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field { min-width: 0; }
.field label { overflow-wrap: anywhere; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], textarea {
  width: 100%; min-width: 0; max-width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit; transition: border-color .12s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.segmented { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 560px) { .segmented { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.segmented .option { min-height: 56px; }
.type-hint { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.autofilled { color: var(--accent); font-size: .78rem; font-weight: 650; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .95rem; color: var(--ink-2); }
.checkbox input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }

/* Verdict */
.verdict { border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.verdict.green { background: var(--green-soft); }
.verdict.yellow { background: var(--yellow-soft); }
.verdict.red { background: var(--red-soft); }
.verdict .badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 10px; }
.verdict.green .badge { color: var(--green); }
.verdict.yellow .badge { color: var(--yellow); }
.verdict.red .badge { color: var(--red); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.verdict h1 { margin-bottom: .25em; }
.verdict p { margin: 0; color: var(--ink-2); }
.grounds { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.grounds li { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.grounds .strength { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
.strength.strong { background: var(--green); }
.strength.possible { background: #d69e2e; }
.strength.weak { background: var(--line-strong); }
.grounds strong { font-weight: 620; }
.grounds span.why { color: var(--muted); font-size: .92rem; }
.notes { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.notes li { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); font-size: .94rem; }

.buy { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 24px; margin-top: 24px; box-shadow: var(--shadow); }
.buy .price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.buy .price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.buy ul.includes { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; }
.buy ul.includes li { display: flex; gap: 10px; color: var(--ink-2); }
.buy ul.includes li > span:first-child { flex: none; display: inline-flex; }
.buy ul.includes svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 4px; }
.pay-methods { display: flex; justify-content: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: .85rem; }

.error { background: var(--red-soft); color: var(--red); padding: 12px 14px; border-radius: var(--radius-sm); margin: 12px 0; font-size: .95rem; }
.notice { background: var(--surface-2); color: var(--ink-2); padding: 12px 14px; border-radius: var(--radius-sm); margin: 12px 0; font-size: .95rem; }

/* Case page */
.case-head { padding: 12px 0 8px; }
.success-banner { display: flex; gap: 14px; align-items: center; background: var(--accent-soft); color: var(--ink); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 24px; }
.success-banner svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.panel h2 { font-size: 1.25rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.panel h2 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: .9rem; flex: none; }
.panel.done h2 .num { background: var(--accent-soft); color: var(--accent); }
.letter {
  font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word;
  background: #fffefb; color: #1d1d1b; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 28px 24px; max-height: 520px; overflow: auto;
}
.letter-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.send-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.send-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; }
.send-steps .n { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; font-weight: 700; font-size: .85rem; grid-row: span 2; }
.send-steps strong { font-weight: 640; }
.send-steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.checklist label:hover { background: var(--surface-2); }
.checklist input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 650; background: var(--surface-2); color: var(--ink-2); }
.status-pill.ok { background: var(--accent-soft); color: var(--accent); }
.status-pill.warn { background: var(--yellow-soft); color: var(--yellow); }
.status-pill.bad { background: var(--red-soft); color: var(--red); }
.outcome-grid { display: grid; gap: 10px; }
.keep-link { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.keep-link input { font-family: var(--mono); font-size: .85rem; min-height: 42px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%); }

.ico { display: inline-flex; }
.ico svg { width: 18px; height: 18px; }
.pay-methods svg { width: 14px; height: 14px; }
.panel h2 svg { width: 24px; height: 24px; }
.panel h2 .num svg { width: 15px; height: 15px; }

/* Admin */
.admin { padding: 24px 0 64px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.kpi .v { font-size: 1.7rem; font-weight: 780; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: .85rem; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: .9rem; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.refund-card { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; }
.refund-card .row { display: flex; flex-wrap: wrap; gap: 8px; }
.refund-card img, .refund-card iframe { width: 100%; max-height: 420px; object-fit: contain; border-radius: 8px; background: var(--surface-2); border: 0; }
.refund-card iframe { height: 420px; }

/* Legal / prose */
.prose { padding: 32px 0 64px; }
.prose h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.prose h2 { font-size: 1.25rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }

/* Demo */
.demo-pay { margin-top: 64px; text-align: center; }
.demo-pay h1 { font-size: 3rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

@media (min-width: 720px) {
  body { font-size: 17.5px; }
  .hero { padding: 72px 0 64px; }
  .hero .wrap { grid-template-columns: 1.25fr 1fr; gap: 56px; }
  .hero-cta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .guarantee { grid-template-columns: 1fr auto; padding: 36px 40px; }
  .reasons-grid { grid-template-columns: 1fr 1fr; }
  .actions { flex-direction: row-reverse; justify-content: flex-start; }
  .actions .btn { min-width: 180px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .outcome-grid { grid-template-columns: 1fr 1fr; }
  .flow { padding-top: 24px; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .no-print, .toast, .panel:not(.print-letter), .success-banner, .case-head { display: none !important; }
  .panel.print-letter { border: 0; padding: 0; margin: 0; }
  .panel.print-letter > *:not(.letter) { display: none !important; }
  .letter { border: 0; padding: 0; max-height: none; overflow: visible; font-size: 11.5pt; background: #fff; color: #000; }
  .wrap { max-width: none; padding: 0; }
}


/* ---------- Flatclaim components ---------- */
.lang-link { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 600; }
.lang-link:hover { color: var(--ink); }
.header-right { display: flex; align-items: center; gap: 16px; }

/* Hero comparison visual */
.split-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 14px; max-width: 400px; margin: 0 auto; width: 100%; }
.split-card .row { display: grid; gap: 6px; }
.split-card .label { display: flex; justify-content: space-between; font-size: .92rem; color: var(--ink-2); }
.split-card .label strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.bar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; display: flex; }
.bar span { display: block; height: 100%; }
.bar .you { background: var(--accent); }
.bar .them { background: #e0a338; }
.bar .fee { background: var(--line-strong); }
.split-card .note { font-size: .82rem; color: var(--muted); margin: 0; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.amounts { display: grid; gap: 12px; }
.amount-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.amount-card .v { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.amount-card p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .98rem; }
.compare-table th, .compare-table td { white-space: normal; padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td.us { font-weight: 650; color: var(--ink); }
.compare-table td:first-child { color: var(--muted); width: 34%; }

/* Autocomplete */
.ac { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; max-height: 320px; overflow: auto; }
.ac-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: grid; gap: 2px; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--accent-soft); }
.ac-list .t { font-weight: 620; }
.ac-list .s { color: var(--muted); font-size: .86rem; }
.ac-empty { padding: 10px 12px; color: var(--muted); font-size: .92rem; }
.chosen { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 10px 10px 16px; border: 1.5px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius-sm); }
.chosen .t { font-weight: 650; }
.chosen .s { color: var(--muted); font-size: .86rem; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--accent); font: inherit; font-size: .92rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }
select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.route-arrow { display: flex; justify-content: center; color: var(--muted); margin: -6px 0 6px; }
.route-arrow svg { width: 20px; height: 20px; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.stepper button { width: 48px; height: 48px; border: 0; background: none; font-size: 1.4rem; color: var(--ink); cursor: pointer; border-radius: 999px; }
.stepper button:hover:not([disabled]) { background: var(--surface-2); }
.stepper button[disabled] { opacity: .35; cursor: default; }
.stepper output { min-width: 40px; text-align: center; font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }

/* Verdict amount */
.amount-hero { margin: 18px 0 4px; }
.amount-hero .k { font-size: .9rem; color: var(--ink-2); }
.amount-hero .v { font-size: clamp(2.6rem, 11vw, 3.6rem); font-weight: 820; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.amount-hero .s { color: var(--ink-2); font-size: .95rem; }
.msgs { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.msgs li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .96rem; }
.msgs .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.msgs .ic svg { width: 13px; height: 13px; }
.msgs .good .ic { background: var(--green-soft); color: var(--green); }
.msgs .warn .ic { background: var(--yellow-soft); color: var(--yellow); }
.msgs .bad .ic { background: var(--red-soft); color: var(--red); }
.compare-box { border-radius: var(--radius); padding: 18px 20px; background: var(--accent-soft); color: var(--ink); margin: 20px 0 0; }
.compare-box strong { display: block; margin-bottom: 4px; }
.compare-box p { margin: 0; color: var(--ink-2); }

.bank-field { margin-bottom: 14px; }
.letter mark { background: #fff1a8; color: inherit; padding: 0 2px; border-radius: 3px; }
.sub-panel { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.ext-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ext-links a { font-size: .92rem; }

body[data-app="admin"] .wrap.narrow { max-width: 1120px !important; }
@media (min-width: 720px) { .amounts { grid-template-columns: repeat(3, 1fr); } }
