/* Taxsons — near-black, warm cream, tabular figures.
   Layout: top bar · left step rail · work area · right live-summary rail */
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url(fonts/manrope-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(fonts/manrope-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700 800; font-display: swap; src: url(fonts/manrope-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 700; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
/* Taxsons: near-black and warm cream. Dark is the house look; data-theme="light" gives the cream version. */
:root {
  --bg: #0b0b0b; --surface: #131312; --surface-2: #1b1a18; --ink: #f2ede4; --muted: #a39d92; --line: #2a2926;
  --brand: #f2ede4; --brand-2: #ffffff; --brand-ink: #0b0b0b; --brand-tint: #1f1d1a;
  --ok: #86d3a9; --ok-tint: #13241b; --warn: #e9b65c; --warn-tint: #2a2112; --bad: #ff9187; --bad-tint: #321715;
  --focus: #e8dcc4; --shadow: none; color-scheme: dark;
  --f-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-num: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --r: 14px;
  --up: #151413; --up-line: #5b564d; --up-ink: #ece5d7; --top-h: 65px;
}
:root[data-theme="light"] {
  --bg: #f2ede4; --surface: #fbf9f5; --surface-2: #ebe5da; --ink: #0b0b0b; --muted: #5e5a53; --line: #d9d2c5;
  --brand: #0b0b0b; --brand-2: #2a2926; --brand-ink: #f2ede4; --brand-tint: #e6dfd2;
  --ok: #12754f; --ok-tint: #e2f1e8; --warn: #8a5300; --warn-tint: #f8ecd2; --bad: #b42318; --bad-tint: #f9e3df;
  --focus: #0b0b0b; color-scheme: light; --up: #f7f3ec; --up-line: #a39b8c; --up-ink: #2a2621; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: 1.9rem; font-weight: 500; letter-spacing: -.03em; } h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; } h3 { font-size: 1.04rem; font-weight: 600; }
h1 i, h2 i, .serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
p { margin: 0 0 .8em; max-width: 68ch; }
a { color: var(--brand); }
.num, .money { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .tiny { font-size: .76rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font: 400 .7rem var(--f-num); color: var(--muted); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: .45em; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: .7em 1.25em; border-radius: 999px; font: 600 .92rem var(--f-body); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-2); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.small { padding: .38em .75em; font-size: .82rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; justify-content: center; }
label.f { display: flex; flex-direction: column; gap: .3em; font-size: .84rem; font-weight: 600; color: var(--ink); min-width: 0; }
label.f .hint { font-weight: 400; color: var(--muted); font-size: .78rem; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: .58em .7em; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 1rem var(--f-body); min-width: 0; }
input.money-in { font-family: var(--f-num); text-align: right; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input.bad { border-color: var(--bad); }
.check { display: flex; gap: .55em; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { margin-top: .2em; width: 1.05em; height: 1.05em; accent-color: var(--brand); flex: none; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: .35em; padding: .18em .62em; border-radius: 99px; font-size: .74rem; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-tint); color: var(--ok); } .pill.warn { background: var(--warn-tint); color: var(--warn); } .pill.bad { background: var(--bad-tint); color: var(--bad); } .pill.brand { background: var(--brand-tint); color: var(--brand); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.note { border-left: 3px solid var(--muted); background: var(--brand-tint); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: .88rem; }
.note.warn { border-color: var(--warn); background: var(--warn-tint); } .note.bad { border-color: var(--bad); background: var(--bad-tint); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-in > * { flex: none; } .top-in .spacer { flex: 1; }
.show-sm { display: none !important; }
.top-in { display: flex; align-items: center; gap: 14px; padding: 10px 20px; max-width: 1440px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; cursor: pointer; }
.logo .mark { width: 30px; height: 30px; border-radius: 7px; background: var(--brand); display: grid; place-items: center; color: var(--brand-ink); font: 800 .8rem var(--f-num); }
.logo b { color: var(--brand); }
.logo .brandname, .auth-side .logo > span:last-child { display: flex; flex-direction: column; line-height: 1.1; }
.logo .mark-img { display: block; border-radius: 50%; flex: none; } .logo .wm { display: block; height: 30px; width: auto; }

.wordmark { font-family: 'Manrope', var(--f-body); font-size: 1.32rem; letter-spacing: -.02em; color: var(--brand); white-space: nowrap; }
.wordmark .w-min { font-weight: 200; } .wordmark .w-max { font-weight: 800; } .wordmark .w-tax { font-weight: 500; color: var(--ink); }
.auth-side .wordmark, .auth-side .wordmark .w-tax { color: inherit; } .auth-side .wordmark { font-size: 1.6rem; }
.logo .tagline { font: 600 .68rem var(--f-body); letter-spacing: .02em; color: var(--muted); margin-top: 2px; }
.auth-side .logo .tagline { color: inherit; opacity: .8; font-size: .78rem; }
@media (max-width: 520px) { .top .logo .tagline { display: none; } .top .logo .wm { height: 24px; } .top .logo { gap: 7px; } .top .mark-img { width: 30px; height: 30px; } }
@media (max-width: 420px) { .top .wordmark { font-size: .98rem; } .top-in { gap: 6px; } }

/* ---------- auth ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { background: var(--bg); color: var(--ink); border-right: 1px solid var(--line); padding: 48px 48px; display: flex; flex-direction: column; gap: 28px; }
.auth-side h1 { font-size: 2.5rem; color: inherit; line-height: 1.05; } .auth-side .badge { width: 132px; height: auto; }
.auth-side .lede { font-size: 1.08rem; opacity: .92; max-width: 46ch; }
.ledger { border-top: 1px solid var(--line); font-family: var(--f-num); font-size: .86rem; max-width: 460px; }
.ledger div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); gap: 12px; } .ledger div span:first-child { color: var(--muted); }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-box { width: 100%; max-width: 410px; display: flex; flex-direction: column; gap: 14px; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 9px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: .55em; border-radius: 6px; font: 600 .9rem var(--f-body); color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.meter { height: 6px; border-radius: 9px; background: var(--surface-2); overflow: hidden; } .meter i { display: block; height: 100%; background: var(--brand); transition: width .2s; }
.qr { background: #fff; padding: 12px; border-radius: 10px; width: 200px; max-width: 100%; border: 1px solid var(--line); } .qr svg { width: 100%; height: auto; display: block; }
.secret { font-family: var(--f-num); letter-spacing: .08em; font-size: .9rem; background: var(--surface-2); padding: 8px 10px; border-radius: 7px; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-family: var(--f-num); }
.codes span { background: var(--surface-2); border-radius: 6px; padding: 8px; text-align: center; }

/* ---------- workspace ---------- */
.ws { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; grid-template-areas: "rail main side"; gap: 22px; max-width: 1440px; margin: 0 auto; padding: 22px 20px 96px; align-items: start; }
.ws > .rail { grid-area: rail; } .ws > .main { grid-area: main; } .ws > .side { grid-area: side; }
.ws.home { grid-template-areas: "main"; }
.ws.settings { grid-template-areas: "rail main"; }
.rail { position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100vh - var(--top-h) - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.step { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: .9rem; border: 0; background: transparent; text-align: left; font-family: var(--f-body); }
.step .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font: 700 .72rem var(--f-num); flex: none; background: var(--surface); }
.step.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.step.on .n { border-color: var(--brand); color: var(--brand); }
.step.done .n { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.step.blocked .n { border-color: var(--warn); color: var(--warn); }
.main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.side { position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100vh - var(--top-h) - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; z-index: 1; }
.big { font: 700 2rem var(--f-num); letter-spacing: -.02em; }
.big.ok { color: var(--ok); } .big.bad { color: var(--bad); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.kv:last-child { border-bottom: 0; }
.kv b { font-family: var(--f-num); font-weight: 600; }

/* ---------- documents ---------- */
.dgroup { display: flex; flex-direction: column; gap: 8px; }
.drow { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.drow > .head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.drow.on { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.drow .body { border-top: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 14px; background: var(--surface-2); border-radius: 0 0 9px 9px; }
.inst { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.upzone { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 2px dashed var(--up-line); border-radius: 10px; padding: 16px; text-align: center; color: var(--up-ink); cursor: pointer; font-size: .92rem; background: var(--up); }
.upzone b { color: var(--up-ink); }
.upzone:hover, .upzone.over, .upzone:focus-visible { border-style: solid; background: color-mix(in srgb, var(--up) 70%, var(--up-line) 30%); }
.upzone.big-drop { padding: 30px 16px; margin-top: 6px; font-size: 1rem; }
.upzone.big-drop b { font-size: 1.15rem; }
.up-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--up-line); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 4px; }
.drow.on > .body { background: var(--up); border-top-color: var(--up-line); }
.drow.on { border-color: var(--up-line); }
.drow.has-bad { border-color: var(--bad); }
.file.bad { background: var(--bad-tint); }
.file { flex-wrap: wrap; }
.file select { width: auto; flex: 1; min-width: 180px; }
input.changed { border-color: var(--warn); background: var(--warn-tint); }
.check.resp { background: var(--warn-tint); border-radius: 8px; padding: 8px 10px; }
.hint.from-doc { color: var(--focus); }
.card.flat { box-shadow: none; background: var(--surface-2); }
.card.carry { border-color: var(--up-line); background: var(--up); }
.flat-intro { padding: 14px 20px; }
.file { display: flex; align-items: center; gap: 10px; font-size: .86rem; padding: 6px 10px; background: var(--surface-2); border-radius: 7px; }
.file .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auto { outline: 2px solid color-mix(in srgb, var(--focus) 45%, transparent); }

/* ---------- review table ---------- */
.lines { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lines th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.lines td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lines td.ln { font-family: var(--f-num); color: var(--muted); width: 56px; }
.lines td.amt { text-align: right; font-family: var(--f-num); width: 120px; }
.lines td.ov { width: 210px; }
.lines tr.over td { background: var(--warn-tint); }
.lines tr.total td { font-weight: 700; }
.tablewrap { overflow-x: auto; }
.audit-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; align-items: flex-start; }
.audit-item:last-child { border-bottom: 0; }
.tip { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.tip:last-child { border-bottom: 0; } .tip .amt { font: 700 1.05rem var(--f-num); color: var(--ok); white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 9px; font-size: .9rem; z-index: 50; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.retcard { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.retcard:hover { border-color: var(--brand); }
.choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.choice .card h3 { font-size: 1.1rem; }
.gate { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: .92rem; }
.gate .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 .7rem var(--f-num); flex: none; }
.gate .dot.y { background: var(--ok); color: #fff; } .gate .dot.n { background: var(--bad-tint); color: var(--bad); }

/* mid widths: the summary moves under the main column (never under the sticky step list) */
@media (max-width: 1180px) {
  .ws { grid-template-columns: 210px minmax(0, 1fr); grid-template-areas: "rail main" "rail side"; }
  .side { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; } .auth-side { padding: 32px 20px; } .auth-side h1 { font-size: 1.8rem; }
  .ws { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "rail" "main" "side"; padding: 14px 16px 60px; }
  .ws.settings { grid-template-areas: "rail" "main"; } .ws.home { grid-template-areas: "main"; }
  .rail { position: static; max-height: none; flex-direction: row; overflow-x: auto; padding-bottom: 4px; } .step { white-space: nowrap; }
  .top-in { padding: 10px 16px; gap: 8px; } .lines td.ov { width: 150px; }
  .hide-sm { display: none !important; } .show-sm { display: inline-flex !important; }
  .top .pill { font-size: .68rem; }
  h1 { font-size: 1.45rem; }
}

/* ---------- intake: "Here's what we found" ---------- */
.found-card { border-color: var(--up-line); }
.found { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.found.off { opacity: .72; }
.found-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.found-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.found-ctl { display: flex; flex-direction: column; gap: 6px; align-items: stretch; width: 210px; flex: none; }
.found-ctl select.mini, select.mini { padding: .35em .5em; font-size: .82rem; }
.goes { font-size: .86rem; background: var(--up); border-radius: 7px; padding: 6px 9px; color: var(--ink); }
.goes-l { font-weight: 700; color: var(--up-ink); margin-right: 4px; }
.figs { font: 600 .84rem var(--f-num); color: var(--ink); }
.warn-t { color: var(--warn); } .bad-t { color: var(--bad); }
.notused { margin-top: 10px; } .notused summary { cursor: pointer; padding: 6px 0; }
.upzone.busy { cursor: progress; }
.bar { width: min(420px, 90%); height: 6px; border-radius: 9px; background: var(--surface); overflow: hidden; margin-top: 8px; } .bar i { display: block; height: 100%; background: var(--up-line); transition: width .25s; }
.spin { animation: spin 1.2s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.done-card { border-color: var(--ok); background: var(--ok-tint); }
details.manual > summary { cursor: pointer; list-style: revert; }
@media (max-width: 860px) { .found { flex-direction: column; } .found-ctl { width: 100%; flex-direction: row; flex-wrap: wrap; } .found-ctl select { flex: 1; } }
/* documents check */
.need { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.check-need { border-color: var(--warn); }
.check-need > h3 { color: var(--warn); }
.check-ok { border-color: var(--ok); background: var(--ok-tint); }
.check-ok > h3 { color: var(--ok); }
.need.suggest b { font-weight: 600; }
/* ---------- consent dialogs ---------- */
body.modal-open { overflow: hidden; }
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; width: min(760px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.small-modal { width: min(480px, 100%); padding: 22px; gap: 8px; }
.m-head { padding: 20px 24px 10px; border-bottom: 1px solid var(--line); }
.small-modal .m-head { padding: 0 0 8px; }
.legal { overflow-y: auto; padding: 16px 24px; font-size: 1rem; line-height: 1.6; flex: 1; min-height: 160px; }
.legal p { max-width: none; font-size: 1rem; } .legal h4 { margin: 18px 0 6px; font-size: 1.02rem; }
.legal b { font-weight: 800; color: var(--ink); }
.legal-end { text-align: center; color: var(--muted); font-size: .85rem; padding: 14px 0 4px; }
.m-foot { border-top: 1px solid var(--line); padding: 12px 24px 18px; }
.m-progress { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--warn); margin-bottom: 8px; }
.m-progress .bar { margin: 0; flex: 0 0 140px; background: var(--surface-2); } .m-progress .bar i { background: var(--warn); }
.m-progress.done { color: var(--ok); } .m-progress.done .bar i { background: var(--ok); }
.m-agree { font-weight: 700; font-size: .98rem; }
.terms-box { display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); border-radius: 9px; padding: 10px 12px; }
/* ---------- premium ---------- */
.premium-card { border: 1px solid var(--muted); background: var(--surface); }
.premium-card .price { font: 800 1.5rem var(--f-num); color: var(--brand); }
.incl { margin: 8px 0; padding-left: 20px; } .incl li { margin: 4px 0; font-size: .92rem; }
.est { background: var(--surface); border: 1px solid var(--ok); border-radius: 10px; padding: 14px; margin-top: 10px; }
.premium-hero .hero-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 12px 0; }
.big small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.legal-note { font-size: .95rem; line-height: 1.55; }
.strat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.strat.accept { border-color: var(--ok); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 30%, transparent); }
.strat.decline { opacity: .6; }
.strat h3 { margin: 4px 0 0; } .strat details summary { cursor: pointer; padding: 4px 0; } .strat ol { margin: 6px 0; padding-left: 20px; }
.save { font: 800 1.25rem var(--f-num); color: var(--ok); } .save small { font-size: .75rem; color: var(--muted); }
.plan-card { border-color: var(--ok); } .plan-steps { padding-left: 20px; } .plan-steps li { margin: 6px 0; }
.step.premium-step .n { border-color: var(--brand); color: var(--brand); }
/* ---------- Premium report ---------- */
:root { --gold: #c9b48a; }
.report { display: flex; flex-direction: column; gap: 16px; }
.report .card { margin: 0; }
.report-cover { border: 1px solid var(--line); background: #151412; color: #f2ede4; padding: 26px 28px; }
.report-cover .eyebrow, .report-cover .muted { color: rgba(255,255,255,.78); }
.report-cover .btn.primary { background: #f2ede4; color: #0b0b0b; border-color: #f2ede4; }
.report-cover .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.report-title { font: 400 2.4rem/1.1 var(--f-serif); margin: 10px 0 4px; color: #fff; letter-spacing: 0; }
.report-cover .kpi { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.report-cover .kpi-l { color: rgba(255,255,255,.75); } .report-cover .kpi-v { color: #fff; }
.report-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.rh { font: 700 1.3rem/1.25 var(--f-serif); letter-spacing: 0; color: var(--ink); }
.rh4 { font: 700 1.05rem var(--f-serif); margin: 14px 0 4px; }
.section-h { margin: 14px 0 0; padding-bottom: 6px; border-bottom: 2px solid var(--gold); font-size: 1.45rem; }
.lead { color: var(--muted); font-size: .98rem; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); min-width: 0; }
.kpi-l { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.kpi-v { font: 700 1.15rem var(--f-num); font-variant-numeric: tabular-nums; margin-top: 2px; overflow-wrap: anywhere; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; margin: 10px 0; }
.chart { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 6px; background: var(--surface); min-width: 0; }
.chart figcaption { font: 700 .92rem var(--f-serif); margin-bottom: 6px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .cg { stroke: var(--line); stroke-width: 1; }
.chart .ct { fill: var(--muted); font: 11px var(--f-body); }
.chart .cv { fill: var(--ink); font: 600 10.5px var(--f-num); }
.chart .cl { fill: var(--ink); font: 12.5px var(--f-body); } .chart .cl.b { font-family: var(--f-num); font-weight: 600; }
.chart .ck { fill: var(--ink); font: 700 20px var(--f-num); }
.table-wrap { overflow-x: auto; margin: 10px 0; }
.rtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rtable th { text-align: left; background: var(--brand-tint); color: var(--ink); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--muted); white-space: nowrap; }
.rtable td { padding: 7px 10px; border-bottom: 1px solid var(--line); }
.rtable tbody tr:nth-child(even) td { background: var(--surface-2); }
.rlist { padding-left: 20px; margin: 8px 0; } .rlist li { margin: 5px 0; font-size: .93rem; }
.law-list { display: grid; gap: 8px; margin: 10px 0; }
.law { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.law.yes { border-left-color: var(--ok); background: var(--ok-tint); }
.assume { font-size: .8rem; color: var(--muted); font-style: italic; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 10px; max-width: none; }
@media (max-width: 640px) { .chart-grid { grid-template-columns: minmax(0, 1fr); } .report-title { font-size: 1.5rem; } .report-cover { padding: 20px 16px; } .chart-grid { grid-template-columns: 1fr; } }
@media print { .report-nav, .chat-fab, [data-act=planpdf] { display: none !important; } }
/* ---------- chat ---------- */
.chat-fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 99px; padding: 12px 18px; font: 700 .95rem var(--f-body); box-shadow: 0 8px 24px rgba(0,0,0,.2); cursor: pointer; }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: min(400px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 100px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.25); display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: .92rem; line-height: 1.45; white-space: normal; }
.msg.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg.typing { opacity: .7; font-style: italic; }
.chat-in { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); } .chat-in input { flex: 1; }
.mic.on { background: var(--bad); color: #fff; border-color: var(--bad); animation: pulse 1s infinite; } @keyframes pulse { 50% { opacity: .6; } }
.chat-foot { padding: 0 12px 10px; }
@media (max-width: 860px) { .chat { right: 8px; left: 8px; bottom: 8px; width: auto; } .chat-fab { right: 12px; bottom: 12px; } }
/* holds */
.hold-card { border-color: var(--bad); }
.hold-card h2 { margin: 8px 0 6px; }
.refbox { background: var(--bad-tint); border: 1px solid var(--bad); border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.big-ref { font-size: 1.25rem; letter-spacing: .02em; word-break: break-all; }
.issues-card { border-color: var(--warn); }
table.issues td { vertical-align: top; }
.kv.deliv { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }

/* =================== public landing page (Option 2) =================== */
.lp { --lp-pad: clamp(16px, 4vw, 56px); background: var(--bg); color: var(--ink); min-height: 100vh; }
.lp a { color: inherit; }
.lp-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px var(--lp-pad); padding-top: calc(16px + env(safe-area-inset-top, 0px)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lp-brand img { display: block; height: 40px; width: auto; }
.lp-nav { display: flex; gap: 32px; font-size: 15px; } .lp-nav a, .lp-subnav a { color: var(--muted); text-decoration: none; } .lp-nav a:hover { color: var(--ink); }
.lp-actions { display: flex; align-items: center; gap: 22px; }
.lp-link { text-decoration: none; font-weight: 500; }
.lp-subnav { display: none; }
.lp-pill { display: inline-flex; align-items: center; gap: 12px; background: var(--brand); color: var(--brand-ink) !important; border: 1px solid var(--brand); border-radius: 999px; padding: 15px 26px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s; }
.lp-pill:hover { transform: translateY(-1px); } .lp-pill.sm { padding: 10px 18px; font-size: 14px; }
.lp-pill.ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.lp-ul { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; font-weight: 500; }
.lp-lab { font: 400 12px var(--f-num); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 14px; }
.lp-lab::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.lp-lab.center { justify-content: center; }
.lp h1, .lp h2 { font-weight: 400; letter-spacing: -.035em; line-height: 1.02; }
.lp h1 i, .lp h2 i, .lp-stats b i { font-family: var(--f-serif); font-style: italic; letter-spacing: -.01em; }
.lp-hero { text-align: center; padding: 48px var(--lp-pad) 64px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.lp-badge { width: clamp(200px, 26vw, 330px); height: auto; }
.lp-hero h1 { font-size: clamp(38px, 5.4vw, 72px); max-width: 1160px; margin: 0; }
.lp-lede { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); max-width: 720px; margin: 0 auto; }
.lp-cta { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; }
.lp-stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-stats > div { padding: 30px 28px; border-right: 1px solid var(--line); } .lp-stats > div:last-child { border-right: 0; }
.lp-stats b { display: block; font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.03em; margin-bottom: 10px; }
.lp-stats span { font: 400 11.5px/1.7 var(--f-num); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lp-sec { padding: 96px var(--lp-pad); border-bottom: 1px solid var(--line); }
.lp-sec-head { max-width: 860px; margin-bottom: 48px; display: flex; flex-direction: column; gap: 18px; }
.lp-sec-head h2, .lp-split h2 { font-size: clamp(34px, 4.2vw, 60px); margin: 0; }
.lp-sec-head p, .lp-split p { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 640px; margin: 0; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.lp-steps li { padding: 28px 28px 8px 0; border-right: 1px solid var(--line); padding-left: 28px; } .lp-steps li:first-child { padding-left: 0; } .lp-steps li:last-child { border-right: 0; }
.lp-steps b { font: 400 13px var(--f-num); color: var(--muted); letter-spacing: .2em; } .lp-steps h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin: 18px 0 10px; } .lp-steps p { color: var(--muted); line-height: 1.6; }
.lp-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.lp-split > div:first-child { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.lp-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; } .lp-list li { padding-left: 22px; position: relative; color: var(--ink); } .lp-list li::before { content: "◆"; position: absolute; left: 0; font-size: 10px; top: 5px; color: var(--muted); }
.lp-compare { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--surface); font-size: 15px; display: flex; flex-direction: column; }
.lp-compare .lp-lab { margin-bottom: 10px; }
.lp-compare .r { display: grid; grid-template-columns: 1.6fr 1fr 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); } .lp-compare .r span:not(:first-child) { text-align: right; font-family: var(--f-num); }
.lp-compare .r.h span { font: 400 11px var(--f-num); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lp-compare .r.diff span:last-child { color: var(--ok); }
.lp-verdict { margin-top: 16px; font-family: var(--f-serif); font-style: italic; font-size: 26px; }
.lp-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-plan { border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.lp-plan.featured { border-color: var(--ink); }
.lp-plan h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin: 0; }
.lp-price { font-size: 46px; letter-spacing: -.04em; display: flex; flex-direction: column; } .lp-price small { font: 400 11px var(--f-num); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.lp-plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; flex: 1; } .lp-plan li { color: var(--muted); padding-left: 20px; position: relative; line-height: 1.45; font-size: 15px; } .lp-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ink); }
.lp-plan .lp-pill { justify-content: center; }
.lp-fine { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 900px; margin: 28px 0 0; }
.lp-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.lp-grid4 > div { padding: 28px 28px 0 28px; border-right: 1px solid var(--line); } .lp-grid4 > div:first-child { padding-left: 0; } .lp-grid4 > div:last-child { border-right: 0; }
.lp-grid4 h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; } .lp-grid4 p { color: var(--muted); line-height: 1.6; }
.lp-final { text-align: center; padding: 96px var(--lp-pad); display: flex; flex-direction: column; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.lp-final h2 { font-size: clamp(34px, 4.5vw, 64px); margin: 0; }
.lp-foot { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 28px var(--lp-pad) calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; } .lp-foot img { height: 30px; width: auto; display: block; }
@media (max-width: 1100px) { .lp-plans { grid-template-columns: repeat(2, 1fr); } .lp-steps, .lp-grid4 { grid-template-columns: repeat(2, 1fr); } .lp-steps li, .lp-grid4 > div { padding-left: 0 !important; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; } .lp-stats { grid-template-columns: repeat(3, 1fr); } .lp-stats > div:nth-child(3) { border-right: 0; } .lp-stats > div:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 860px) {
  .lp-nav { display: none; } .lp-actions { gap: 14px; } .lp-brand img { height: 30px; }
  .lp-subnav { display: flex; gap: 22px; overflow-x: auto; padding: 12px var(--lp-pad); border-bottom: 1px solid var(--line); font: 400 12px var(--f-num); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; scrollbar-width: none; }
  .lp-split { grid-template-columns: 1fr; gap: 36px; } .lp-sec { padding: 64px var(--lp-pad); } .lp-hero { padding-top: 32px; }
}
@media (max-width: 600px) {
  .lp-plans, .lp-steps, .lp-grid4 { grid-template-columns: 1fr; } .lp-stats { grid-template-columns: 1fr 1fr; } .lp-stats > div { border-right: 0 !important; border-top: 1px solid var(--line); padding: 20px 16px; } .lp-stats > div:nth-child(odd) { border-right: 1px solid var(--line) !important; } .lp-stats > div:first-child, .lp-stats > div:nth-child(2) { border-top: 0; } .lp-stats > div:last-child { grid-column: 1 / -1; border-right: 0 !important; }
  .lp-link { font-size: 14px; } .hide-xs { display: none; } .lp-pill.sm { padding: 9px 14px; font-size: 13px; } .lp-cta { flex-direction: column; gap: 18px; } .lp-cta .lp-pill { width: 100%; justify-content: center; }
  .lp-compare { padding: 16px; font-size: 13.5px; } .lp-verdict { font-size: 22px; } .lp-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
}
.auth-back { color: var(--muted); text-decoration: none; font-size: .9rem; }
/* top bar logo for signed-in pages */
.top { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* =================== document camera =================== */
.cam { width: min(760px, 100%); padding: 0; overflow: hidden; }
.cam-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cam-view { position: relative; background: #000; aspect-ratio: 4 / 3; max-height: 58dvh; display: grid; place-items: center; overflow: hidden; }
.cam-view video { width: 100%; height: 100%; object-fit: contain; }
.cam-view.flash::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: .6; }
.cam-frame { position: absolute; inset: 7% 10%; border: 2px dashed rgba(242, 237, 228, .55); border-radius: 12px; pointer-events: none; }
.cam-msg { position: absolute; left: 16px; right: 16px; bottom: 16px; text-align: center; color: #f2ede4; }
.cam-tips { padding: 10px 16px 0; color: var(--muted); }
.cam-strip { display: flex; gap: 10px; overflow-x: auto; padding: 10px 16px; min-height: 12px; }
.cam-strip figure { margin: 0; flex: none; width: 92px; } .cam-strip img { width: 92px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.cam-strip figcaption { font-size: .72rem; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.cam-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.cam-shutter { width: 66px; height: 66px; border-radius: 50%; border: 3px solid var(--ink); background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.cam-shutter i { width: 50px; height: 50px; border-radius: 50%; background: var(--ink); display: block; }
.cam-shutter:active i { transform: scale(.92); }
@media (max-width: 600px) { .cam-bg { padding: 0; } .cam { border-radius: 0; height: 100dvh; max-height: 100dvh; } .cam-view { flex: 1; max-height: none; aspect-ratio: auto; } .cam-foot .btn:first-child { font-size: .8rem; padding: .5em .8em; } }
.upzone .cam-btn { margin-top: 6px; }

/* =================== return check =================== */
.cmp-table td.amt, .cmp-table th.amt { text-align: right; font-family: var(--f-num); white-space: nowrap; }
.cmp-table tr.diff td { background: var(--warn-tint); }
.cmp-table input { max-width: 150px; text-align: right; font-family: var(--f-num); margin-left: auto; display: block; }
.verdict { font-family: var(--f-serif); font-style: italic; font-size: 1.6rem; line-height: 1.25; margin: 4px 0 8px; }
.verdict.ok { color: var(--ok); } .verdict.bad { color: var(--bad); } .verdict.warn { color: var(--warn); }
.pill.check { background: var(--brand-tint); color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 600px) {
  .cmp-table thead { display: none; } .cmp-table, .cmp-table tbody { display: block; }
  .cmp-table tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 10px; padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .cmp-table td { border: 0; padding: 0; } .cmp-table td:first-child { grid-column: 1 / -1; font-weight: 600; }
  .cmp-table td[data-l]::before { content: attr(data-l); display: block; font: 400 10px var(--f-num); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: left; margin-bottom: 3px; }
  .cmp-table tr.diff { background: var(--warn-tint); border-radius: 10px; } .cmp-table tr.diff td { background: transparent; } .cmp-table tr { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); }
  .cmp-table td.amt { text-align: left; } .cmp-table input { max-width: none; width: 100%; text-align: left; margin: 0; }
  .verdict { font-size: 1.3rem; } }
