/* DepositCase — shared styles. Layout: slim top nav, content column for guides, two-column workbench for the tool. */
:root {
  --paper: #f3f5f4;
  --surface: #ffffff;
  --ink: #15212b;
  --muted: #5b6872;
  --line: #d9dfe2;
  --accent: #0b6b5d;
  --accent-ink: #ffffff;
  --accent-soft: #e2f0ec;
  --good: #1d7a3e;
  --good-soft: #e3f3e8;
  --warn: #9a6200;
  --warn-soft: #fbf0d9;
  --bad: #9b2c2c;
  --bad-soft: #f8e4e4;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1519; --surface: #172026; --ink: #e6ecef; --muted: #9aa8b1; --line: #2a363e;
    --accent: #3fb8a3; --accent-ink: #06201b; --accent-soft: #143a34;
    --good: #5fcf86; --good-soft: #163524; --warn: #e2b15a; --warn-soft: #3a2c12; --bad: #f08a8a; --bad-soft: #3d1c1c;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 750; letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; font-weight: 600; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 750; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 0.8rem; }
.nav-links { display: flex; gap: 18px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.cta { background: var(--accent); color: var(--accent-ink); padding: 7px 14px; border-radius: 8px; }

/* Buttons */
button { font: inherit; cursor: pointer; border-radius: 8px; }
.btn, a.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; padding: 12px 20px; font-weight: 700; font-size: 1rem; text-decoration: none; border-radius: 8px; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); padding: 7px 12px; font-weight: 600; font-size: 0.9rem; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-x { margin-left: auto; background: transparent; border: 0; color: var(--muted); font-size: 0.85rem; padding: 4px 6px; }
.btn-x:hover { color: var(--bad); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Landing */
.hero { padding: 56px 0 44px; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 56ch; margin-top: 14px; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.free-pill { font-weight: 700; font-size: 0.85rem; color: var(--good); background: var(--good-soft); padding: 4px 12px; border-radius: 99px; }
.sample { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 10px; }
.sample-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 8px; font-size: 0.95rem; }
.sample-row:last-child { border-bottom: 0; padding-bottom: 0; }
.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { margin-bottom: 20px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.point { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.point .n { font-family: var(--font-display); font-weight: 750; color: var(--accent); font-size: 1.3rem; }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 8px; color: var(--muted); }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--ink); display: grid; gap: 6px; }
.guide-card:hover { border-color: var(--accent); }
.guide-card span { color: var(--muted); font-size: 0.93rem; }

/* Article */
.article { padding: 40px 0 56px; }
.article h1 { margin-bottom: 10px; }
.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.prose { display: grid; gap: 16px; }
.prose h2 { margin-top: 18px; font-size: 1.35rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose th { font-weight: 700; }
.table-wrap { overflow-x: auto; }
.callout { background: var(--accent-soft); border-radius: 10px; padding: 16px 18px; display: grid; gap: 10px; }
.callout strong { font-family: var(--font-display); font-size: 1.05rem; }
.sources { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.sources ul { padding-left: 1.2em; margin: 6px 0 0; }

/* Footer */
footer.site { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; font-size: 0.9rem; color: var(--muted); }
footer.site .wrap { display: grid; gap: 10px; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

/* Tool */
.tool-head { padding: 28px 0 8px; }
.tool-head p { color: var(--muted); max-width: 70ch; margin-top: 8px; }
main.tool { padding: 18px 0 60px; }
.bench { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 16px; }
.col { display: grid; gap: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 0.9rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: 0.88rem; }
label span.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; font-weight: 400; font-size: 0.95rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
textarea { resize: vertical; min-height: 64px; }
.ded { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 10px; }
.ded-head { display: flex; align-items: center; gap: 10px; }
.ded-num { font-family: var(--font-display); font-weight: 750; color: var(--accent); }
.ded-row1 { display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 10px; }
.ded-row3 { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.guide { font-size: 0.86rem; color: var(--muted); background: var(--paper); border-radius: 8px; padding: 8px 10px; }
.guide strong { color: var(--ink); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: 0.93rem; }
.checks input { width: auto; }
.drop { border: 1.5px dashed var(--line); border-radius: 10px; padding: 16px; text-align: center; color: var(--muted); font-size: 0.92rem; cursor: pointer; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.exhibits { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.exhibits li { display: flex; gap: 10px; align-items: center; font-size: 0.9rem; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.exhibits .tag { font-weight: 700; color: var(--accent); min-width: 5.5em; }
.exhibits .name { overflow-wrap: anywhere; flex: 1; }
.run { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.status { color: var(--muted); font-size: 0.92rem; }
.status.err { color: var(--bad); }
.sticky { position: sticky; top: 16px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--paper); border-radius: 10px; padding: 12px; display: grid; gap: 2px; }
.tile .k { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.tile .v { font-family: var(--font-display); font-weight: 750; font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.tile.hl { background: var(--accent-soft); }
.tile.hl .v { color: var(--accent); }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.b-challenge { background: var(--good-soft); color: var(--good); }
.b-partial { background: var(--warn-soft); color: var(--warn); }
.b-fair { background: var(--bad-soft); color: var(--bad); }
.finding { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; padding: 12px 14px; display: grid; gap: 6px; }
.finding.challenge { border-left-color: var(--good); }
.finding.partial { border-left-color: var(--warn); }
.finding.fair { border-left-color: var(--bad); }
.finding-top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.finding-top h3 { flex: 1; min-width: 10em; }
.money { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.92rem; }
.finding p { font-size: 0.93rem; }
.finding .ev { font-size: 0.85rem; color: var(--muted); }
.list { margin: 0; padding-left: 1.1em; font-size: 0.93rem; display: grid; gap: 3px; }
.doc { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px; white-space: pre-wrap; font-size: 0.92rem; max-height: 340px; overflow: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 6px 12px; font-weight: 600; font-size: 0.88rem; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.example-flag { font-size: 0.8rem; font-weight: 700; color: var(--warn); background: var(--warn-soft); padding: 2px 9px; border-radius: 99px; }
.legal { font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.feedback { border: 1px dashed var(--accent); border-radius: 10px; padding: 12px 14px; background: var(--accent-soft); font-size: 0.92rem; }

@media (max-width: 900px) {
  .hero-grid, .bench { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 560px) {
  .grid3, .ded-row1, .ded-row3, .checks, .tiles { grid-template-columns: 1fr; }
  .nav-links { gap: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .finding { animation: rise .25s ease both; }
  @keyframes rise { from { transform: translateY(4px); } to { transform: none; } }
}
