/* Rubik, self-hosted, SIL Open Font License (see /fonts/LICENSE-rubik.txt) */
@font-face { font-family: "Rubik"; font-weight: 300 900; font-display: swap; src: url(/fonts/rubik-hebrew-wght-normal.woff2) format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-weight: 300 900; font-display: swap; src: url(/fonts/rubik-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0b1220;
  --text: #39404d;
  --muted: #6b7280;
  --line: #e6e8ec;
  --surface: #f4f5f7;
  --white: #fff;
  --brand: #1f45f0;
  --brand-hover: #1636c9;
  --brand-soft: #eef1ff;
  --amber: #b45309; --amber-soft: #fff4e5;
  --red: #c0262d;   --red-soft: #fdeeee;
  --green: #0f7a4a; --green-soft: #e8f6ef;
  --slate: #475467; --slate-soft: #eef0f3;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 1px 2px rgba(16, 24, 40, .06), 0 24px 48px -16px rgba(16, 24, 40, .22);
  font-family: "Rubik", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.6; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.15; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 .8em; color: var(--text); }
a { color: var(--brand); text-underline-offset: 3px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.lead { font-size: 1.2rem; line-height: 1.6; max-width: 32em; }
.lead.sm { font-size: 1.08rem; }

/* buttons */
.btn { font: inherit; font-weight: 600; font-size: 1rem; border-radius: 999px; padding: 0 22px; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn.lg { height: 56px; padding: 0 30px; font-size: 1.06rem; }
.btn.sm { height: 40px; padding: 0 18px; font-size: .95rem; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-hover); }
.btn.primary:disabled { background: #c9d0e6; cursor: not-allowed; }
.btn.secondary { background: var(--white); color: var(--ink); border-color: #d5d9e0; }
.btn.secondary:hover { border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); padding: 0 12px; }
.btn.ghost:hover { background: var(--surface); }
.btn.light { background: #fff; color: var(--brand); }
.btn.light:hover { background: var(--brand-soft); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid rgba(31, 69, 240, .35); outline-offset: 2px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 36px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; }
.logo svg { width: 32px; height: 32px; }
.logo span { color: var(--ink); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.logo.sm svg { width: 26px; height: 26px; }
.logo.sm span { font-size: 1.1rem; }
.nav-links { display: flex; gap: 28px; margin-inline-end: auto; }
.nav-links a { color: var(--text); text-decoration: none; font-size: .98rem; }
.nav-links a:hover { color: var(--ink); }

/* hero */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { max-width: 11em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--text); font-size: .95rem; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; background: var(--brand-soft); border-radius: var(--r-xl); padding: 48px 40px 72px; }
.mock { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 24px; max-width: 440px; margin-inline: auto; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mock-title { font-weight: 600; }
.mock-badge { font-size: .78rem; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 2px 8px; }
.mock-total { display: grid; gap: 2px; margin-bottom: 14px; }
.mock-label { font-size: .85rem; color: var(--muted); }
.mock-amount { font-size: 2.9rem; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mock-amount small { font-size: 1.5rem; font-weight: 500; color: var(--muted); }
.mock-alert { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--amber-soft); color: var(--amber); border-radius: var(--r-sm); padding: 10px 14px; font-size: .92rem; margin-bottom: 8px; }
.mock-alert strong { font-weight: 700; white-space: nowrap; }
.mock-list { list-style: none; margin: 0; padding: 0; }
.mock-list li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.mock-list li:first-child { border-top: 0; }
.mock-list b { display: block; font-weight: 600; font-size: .95rem; }
.mock-list small { color: var(--muted); font-size: .82rem; }
.mock-list em { font-style: normal; font-weight: 600; font-size: .92rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 1rem; flex: none; }
.ico.amber, em.amber { color: var(--amber); } .ico.amber { background: var(--amber-soft); }
.ico.red, em.red { color: var(--red); } .ico.red { background: var(--red-soft); }
.ico.green, em.green { color: var(--green); } .ico.green { background: var(--green-soft); }
.ico.slate { color: var(--slate); background: var(--slate-soft); }
.mock-float { position: absolute; inset-inline-start: -28px; bottom: -28px; width: 270px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 14px 16px; }
.mock-float p { margin: 4px 0 0; font-size: .9rem; color: var(--ink); line-height: 1.45; }

/* bands */
.band { padding: 96px 0; }
.band.gray { background: var(--surface); }
.band-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.band-head p { font-size: 1.1rem; }
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border-radius: var(--r-lg); padding: 32px 28px; box-shadow: var(--shadow-sm); }
.card p { margin: 0; }
.tile { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.tile svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }

.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ledger-col { background: var(--surface); border-radius: var(--r-lg); padding: 28px; }
.ledger-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 14px; }
.ledger-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ledger-col li { background: #fff; border-radius: var(--r-sm); padding: 10px 14px; font-size: .95rem; }
.ledger-col .struck li { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(192, 38, 45, .55); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green); } .dot.red { background: var(--red); }

.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: var(--r-md); padding: 0 22px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { margin: 0 0 18px; }

.cta-panel { background: var(--brand); border-radius: var(--r-xl); padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-panel h2 { color: #fff; margin-bottom: 8px; }
.cta-panel p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 1.1rem; }

.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-inner { display: flex; gap: 32px; align-items: flex-start; }
.footer p { color: var(--muted); font-size: .85rem; margin: 0; max-width: 60em; }

/* app screens (flow + report) */
.app-screen { background: var(--surface); min-height: calc(100vh - 69px); padding: 48px 20px 80px; }
.panel { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); max-width: 640px; margin: 0 auto; padding: 40px; }
.panel.wide { max-width: 960px; }
.panel h1 { font-size: clamp(1.7rem, 3.6vw, 2.2rem); font-weight: 700; margin-bottom: 8px; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.progress i { height: 4px; border-radius: 4px; background: var(--line); }
.progress i.on { background: var(--brand); }
.stepline { font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; }
.actions .btn.primary:only-child { margin-inline-start: auto; }
.error { background: var(--red-soft); color: var(--red); border-radius: var(--r-sm); padding: 12px 16px; margin-top: 16px; }
.fineprint { color: var(--muted); font-size: .82rem; margin: 18px 0 0; }

.drop { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 36px 20px; border: 2px dashed #cdd3de; border-radius: var(--r-md); background: #fafbfc; cursor: pointer; margin-top: 20px; transition: border-color .15s, background .15s; }
.drop .tile { margin-bottom: 10px; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.howto { margin-top: 16px; }
.howto summary { cursor: pointer; color: var(--brand); font-weight: 500; }
.howto p { margin-top: 8px; }

.person { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); margin-top: 12px; }
.person .avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; flex: none; }
.person .info { flex: 1; min-width: 0; }
.person input { font: inherit; font-weight: 600; border: 0; border-bottom: 1px dashed #cdd3de; padding: 0 0 2px; width: 100%; max-width: 220px; background: transparent; color: var(--ink); }
.person input:focus { outline: none; border-bottom: 1px solid var(--brand); }
.person .meta { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.person .remove { width: 36px; height: 36px; border-radius: 10px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; }
.person .remove:hover { background: var(--surface); color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 10px 0 28px; border: 1px solid var(--line); border-radius: var(--r-md); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 600; background: #fafbfc; color: var(--muted); font-size: .82rem; }
tr:last-child td { border-bottom: 0; }
#preview-tables h3 { margin-top: 24px; }
.removed { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.chip-x { background: var(--red-soft); color: var(--red); border-radius: 8px; padding: 3px 10px; font-size: .88rem; text-decoration: line-through; }

.intake { display: grid; gap: 28px; margin-top: 24px; }
.q > .q-title { font-weight: 600; margin-bottom: 10px; display: block; }
.q .hint { color: var(--muted); font-size: .86rem; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { border: 1px solid #d5d9e0; background: #fff; border-radius: 12px; padding: 10px 16px; cursor: pointer; user-select: none; font-size: .96rem; transition: border-color .15s, background .15s; }
.chips label:hover { border-color: var(--brand); }
.chips input:checked + label { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand); }
.chips input:focus-visible + label { outline: 3px solid rgba(31, 69, 240, .35); outline-offset: 2px; }
.sub-q { margin-top: 16px; padding: 16px; background: var(--surface); border-radius: var(--r-md); }
textarea { font: inherit; width: 100%; border: 1px solid #d5d9e0; border-radius: 12px; background: #fff; padding: 12px 14px; min-height: 84px; resize: vertical; }
textarea:focus { border-color: var(--brand); outline: none; }

.spinner { display: block; width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .9s linear infinite; margin-bottom: 24px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 4px; }
.loading-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--muted); }
.loading-steps li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; box-sizing: border-box; }
.loading-steps li.now { color: var(--ink); font-weight: 600; }
.loading-steps li.now::before { border-color: var(--brand); border-top-color: transparent; animation: spin .9s linear infinite; }
.loading-steps li.done { color: var(--ink); }
.loading-steps li.done::before { content: "✓"; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }

/* report */
.report { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sample-banner { background: var(--amber-soft); color: var(--amber); border-radius: var(--r-md); padding: 10px 10px 10px 10px; padding-inline-start: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-weight: 500; }
.r-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 32px; }
.report-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.report-head h1 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.1rem); font-weight: 700; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { background: var(--surface); border-radius: var(--r-md); padding: 16px 18px; flex: 1 1 150px; }
.stat .label { color: var(--muted); font-size: .86rem; }
.stat .value { font-size: 1.7rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.stat .value small.sub { display: block; font-size: .8rem; }
.stat.hl { background: var(--brand); flex-basis: 100%; padding: 22px 24px; }
.stat.hl .yearly { color: rgba(255, 255, 255, .8); font-size: .92rem; }
.stat.hl .label { color: rgba(255, 255, 255, .8); }
.stat.hl .value { color: #fff; font-size: 2.6rem; }
.stat.warn { background: var(--amber-soft); }
.stat.warn .value, .stat.warn .label, .stat.warn .value small { color: var(--amber); }
.stat.alert { background: var(--red-soft); }
.stat.alert .value, .stat.alert .label { color: var(--red); }
.summary { font-size: 1.12rem; line-height: 1.65; color: var(--ink); margin: 24px 0 0; }
.bars-title { font-size: .9rem; color: var(--muted); font-weight: 500; margin: 24px 0 10px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 120px 1fr 80px; gap: 14px; align-items: center; font-size: .92rem; }
.bar .track { height: 8px; background: var(--surface); border-radius: 8px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--brand); border-radius: 8px; }
.bar .amt { text-align: left; font-variant-numeric: tabular-nums; font-weight: 500; }

.section > h2 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; margin-bottom: 8px; }
.section > h2 .count { font-size: .85rem; font-weight: 600; color: var(--muted); background: var(--surface); border-radius: 8px; padding: 1px 9px; }
.item { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.section > h2 + .item { border-top: 0; padding-top: 12px; }
.item .ico { width: 40px; height: 40px; border-radius: 12px; }
.item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.item h3 { margin: 0 0 4px; font-size: 1.08rem; }
.item p { margin: 6px 0 0; }
.money { font-weight: 700; font-size: 1.15rem; color: var(--amber); white-space: nowrap; font-variant-numeric: tabular-nums; }
.money small { font-weight: 400; font-size: .8rem; color: var(--muted); }
.date { font-weight: 600; color: var(--red); background: var(--red-soft); border-radius: 8px; padding: 2px 10px; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .92rem; }
.conf { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.conf .meter { display: inline-flex; gap: 3px; }
.conf .meter i { width: 14px; height: 5px; border-radius: 3px; background: var(--line); }
.conf .meter i.on { background: var(--amber); }
.decides { margin-top: 12px; background: var(--surface); border-radius: var(--r-sm); padding: 12px 14px; font-size: .94rem; color: var(--text); }
.decides strong { color: var(--ink); font-weight: 600; }
.empty { color: var(--muted); margin: 8px 0 0; }
.question { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin-top: 12px; }
.question .to { font-size: .85rem; color: var(--muted); font-weight: 500; }
.question p { margin: 6px 0 12px; color: var(--ink); }

.feedback .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.feedback h2, .chat-section h2 { font-size: 1.4rem; margin: 0 0 4px; }
.cta-card { background: var(--brand); border-radius: var(--r-lg); padding: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.cta-card h2 { color: #fff; font-size: 1.45rem; margin-bottom: 6px; }
.cta-card p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 32em; }

.chat { display: grid; gap: 10px; margin: 12px 0; }
.chat:empty { margin: 0; }
.msg { padding: 12px 16px; max-width: 85%; white-space: pre-wrap; border-radius: 16px; line-height: 1.55; }
.msg.user { justify-self: start; background: var(--brand); color: #fff; border-end-start-radius: 4px; }
.msg.assistant { justify-self: end; background: var(--surface); border-end-end-radius: 4px; }
.msg.pending { color: var(--muted); }
.chat-form { display: flex; gap: 8px; margin-top: 12px; }
.chat-form input { flex: 1; font: inherit; border: 1px solid #d5d9e0; border-radius: 999px; background: #fff; padding: 0 20px; height: 48px; min-width: 0; }
.chat-form input:focus { border-color: var(--brand); outline: none; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.suggest button { font: inherit; font-size: .9rem; background: var(--brand-soft); color: var(--brand); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.suggest button:hover { background: #dfe5ff; }
.report > .fineprint { text-align: center; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .92rem; z-index: 20; box-shadow: var(--shadow-lg); }

@media (max-width: 960px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .cards.three { grid-template-columns: 1fr; }
  .band { padding: 72px 0; }
  .mock-float { inset-inline-start: 16px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav-inner { gap: 12px; height: 60px; }
  .nav-links { display: none; }
  .nav .btn { margin-inline-start: auto; }
  .lead { font-size: 1.08rem; }
  .cta-row .btn { width: 100%; }
  .hero-visual { padding: 24px 14px 96px; border-radius: var(--r-lg); }
  .mock { padding: 18px; }
  .mock-amount { font-size: 2.4rem; }
  .mock-float { width: auto; inset-inline: 20px; bottom: 16px; }
  .band { padding: 56px 0; }
  .ledger { grid-template-columns: 1fr; }
  .cta-panel { flex-direction: column; align-items: stretch; padding: 32px 24px; text-align: center; }
  .footer-inner { flex-direction: column; gap: 14px; }
  .app-screen { padding: 16px 12px 48px; }
  .panel { padding: 24px 20px; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn { width: 100%; }
  .r-card { padding: 22px 18px; }
  .stat { flex-basis: 40%; }

  .bar { grid-template-columns: 92px 1fr 64px; gap: 10px; }
  .item { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .item .ico { width: 32px; height: 32px; border-radius: 10px; font-size: .9rem; }
  .item-head { flex-direction: column; gap: 4px; }
  .cta-card .btn { width: 100%; }
}
@media print {
  .nav, .footer, .feedback, .cta-card, .chat-section, .sample-banner .btn, .report-actions { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .app-screen { background: #fff; padding: 0; }
  .r-card { box-shadow: none; padding: 16px 0; }
}

/* explainer video under "how it works" */
.explainer { margin: 48px auto 0; max-width: 960px; }
.explainer video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: #f4f5f7; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.explainer figcaption { margin-top: 12px; text-align: center; font-size: .9rem; color: var(--muted); }

/* ---------- brand layer: paper, coral overlap, illustrations ---------- */
:root { --paper: #f7f2ea; --paper-deep: #efe7da; --coral: #ff6a3d; --coral-soft: #ffe6dc; --coral-ink: #c2410c; --sky: #dce4ff; }
.nav { background: rgba(247, 242, 234, .92); }
.hero { background: var(--paper); }
.band.gray { background: var(--paper); }
.mark { background: linear-gradient(transparent 60%, rgba(255, 106, 61, .38) 60%, rgba(255, 106, 61, .38) 90%, transparent 90%); padding: 0 .06em; }
.eyebrow { color: var(--coral-ink); }
.logo svg { width: 46px; height: 26px; }
.logo.sm svg { width: 38px; height: 22px; }


.step-art { display: block; width: calc(100% + 28px); height: auto; margin: -16px -14px 20px; border-radius: var(--r-md); }
.privacy-art { display: block; width: 100%; max-width: 440px; height: auto; margin-top: 28px; border-radius: var(--r-lg); }

.explainer video { background: var(--paper); }

@media (max-width: 600px) {
  .privacy-art { max-width: none; }
}
.ledger-col { background: var(--paper); }


/* hero: the sample report, in brand colours */
.hero-visual { position: relative; background: radial-gradient(120% 90% at 85% 10%, var(--coral-soft), transparent 60%), radial-gradient(90% 80% at 10% 95%, var(--sky), transparent 65%), var(--paper-deep); border-radius: var(--r-xl); padding: 40px 36px 84px; }
.mock { max-width: 460px; border: 1px solid rgba(20, 20, 40, .06); }
.mock-head { align-items: flex-start; }
.mock-meta { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.mock-badge { background: var(--paper); }
.mock-split { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin-top: 10px; gap: 2px; }
.mock-split .a { flex: 812; background: var(--brand); }
.mock-split .b { flex: 530; background: #9db0ff; }
.mock-legend { display: flex; gap: 16px; font-size: .8rem; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.mock-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; }
.mock-legend i.a { background: var(--brand); } .mock-legend i.b { background: #9db0ff; }
.mock-alert { background: var(--coral-soft); color: var(--coral-ink); justify-content: flex-start; gap: 12px; }
.mock-alert > span:nth-child(2) { flex: 1; font-weight: 600; }
.mock-alert small { display: block; font-weight: 400; font-size: .8rem; opacity: .85; }
.mock-alert strong { font-size: 1.1rem; }
.mock-alert .lens { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #fff; position: relative; }
.mock-alert .lens::after { content: ""; position: absolute; inset: 7px 10px; border-radius: 50%; background: var(--coral); }
.ico.coral, em.coral { color: var(--coral-ink); } .ico.coral { background: var(--coral-soft); }
.mock-float { inset-inline-start: -24px; bottom: -24px; width: 300px; border: 1px solid rgba(20, 20, 40, .06); }
@media (max-width: 600px) {
  .hero-visual { padding: 20px 12px 0; }
  .mock { padding: 18px 16px; }
  .mock-list small { font-size: .78rem; }
  .mock-alert { padding: 10px 12px; gap: 10px; }
  .mock-alert > span:nth-child(2) { white-space: nowrap; font-size: .86rem; }
  .mock-alert strong { font-size: .95rem; }
  .mock-float { position: relative; inset: auto; width: auto; margin: 14px 8px -28px; }
}
