/* Home page, from the approved design/home-mockup.html (Ledger). */
:root {
  --bg: #F6F7F9; --surface: #FFFFFF; --ink: #14181F; --muted: #5B6472; --faint: #8A939F; --line: #E3E6EB; --grid: #EDF0F3;
  --accent: #0F766E; --trend: #0D9488; --accent-soft: #E7F3F1; --on-accent: #FFFFFF; --band: #0F2A27; --band-ink: #E8F3F1;
  --dot: #9AA3AE; --plan: #B45309; --up: #9A3412; --up-bg: #FCEFE6; --down: #1D4ED8; --down-bg: #E8EEFC;
  --shadow: 0 1px 2px rgba(20,24,31,.05), 0 10px 30px rgba(20,24,31,.08);
  --thumb-shadow: 0 0 0 1px rgba(20,24,31,.06), 0 1px 2px rgba(20,24,31,.08), 0 10px 24px -10px rgba(20,24,31,.35);
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1114; --surface: #161A1F; --ink: #E8ECEF; --muted: #98A2AE; --faint: #6E7884; --line: #272D34; --grid: #20262C;
    --accent: #1FA898; --trend: #2BB8A7; --accent-soft: #11302C; --on-accent: #06201C; --band: #0B1F1D; --band-ink: #DCEDEA;
    --dot: #5F6873; --plan: #F59E0B; --up: #FDBA74; --up-bg: #3A2416; --down: #93B4FF; --down-bg: #1A2747;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    --thumb-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 2px 4px rgba(0,0,0,.4), 0 12px 28px -10px rgba(0,0,0,.85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1114; --surface: #161A1F; --ink: #E8ECEF; --muted: #98A2AE; --faint: #6E7884; --line: #272D34; --grid: #20262C;
  --accent: #1FA898; --trend: #2BB8A7; --accent-soft: #11302C; --on-accent: #06201C; --band: #0B1F1D; --band-ink: #DCEDEA;
  --dot: #5F6873; --plan: #F59E0B; --up: #FDBA74; --up-bg: #3A2416; --down: #93B4FF; --down-bg: #1A2747;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  --thumb-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 2px 4px rgba(0,0,0,.4), 0 12px 28px -10px rgba(0,0,0,.85);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
nav.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.logo { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; flex: none; }
.navlinks { display: flex; align-items: center; gap: 22px; font-size: 14.5px; color: var(--muted); }
.navlinks a.hide { color: inherit; text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.sm { font-size: 14px; padding: 7px 14px; }
/* The nav's pre-launch button: the full label, "Coming soon" on phones (installButton). */
.navlinks .short { display: none; }
.btn:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.06; letter-spacing: -.025em; font-weight: 600; margin: 14px 0 18px; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; margin: 10px 0 12px; text-wrap: balance; }
h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.lede { font-size: 18.5px; color: var(--muted); max-width: 38em; margin: 0; }
.sub { color: var(--muted); max-width: 60ch; margin: 0; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-block: 40px 72px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.fine { font-size: 13.5px; color: var(--faint); margin-top: 14px; }
.comp { position: relative; min-width: 0; }
.dash { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 12px; }
.dash-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dash-top b { font-size: 15px; }
.dash-top span { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.stat small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.stat i { display: block; font-style: normal; font-size: 10.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.charts2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; }
.mini { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 4px; min-width: 0; }
.mini small { font-size: 11.5px; font-weight: 600; }
.mini .tag { display: inline-block; font-size: 10.5px; color: var(--accent); background: var(--accent-soft); border-radius: 5px; padding: 0 6px; margin-left: 4px; font-weight: 600; }
.mini svg { width: 100%; height: auto; display: block; }
.floatcard { position: absolute; right: -14px; bottom: -26px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 12px; font-size: 12.5px; width: 230px; }
.floatcard b { display: block; font-size: 12.5px; margin-bottom: 4px; }
.floatcard .r { display: flex; justify-content: space-between; gap: 8px; padding-block: 2px; }
.delta { font-weight: 600; font-size: 11.5px; padding: 1px 6px; border-radius: 5px; }
.delta.up { color: var(--up); background: var(--up-bg); }
.delta.down { color: var(--down); background: var(--down-bg); }

/* Steps */
section { padding-block: 64px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; }
.step .n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 500; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
.step .vis { margin-top: 16px; height: 86px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); position: relative; overflow: hidden; }

/* Feature split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--muted); font-size: 15.5px; }
.checks li b { color: var(--ink); font-weight: 600; }
.checks svg { margin-top: 5px; color: var(--accent); }
.planpanel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.planpanel svg.sc { width: 100%; height: auto; display: block; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.ptable th, .ptable td { text-align: right; padding: 7px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptable th:first-child, .ptable td:first-child { text-align: left; }
.ptable th { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.ptable tr:last-child td { border-bottom: 0; }
.tscroll { overflow-x: auto; }

/* Grid */
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; }
.fcard p { color: var(--muted); margin: 0; font-size: 15px; }
.ficon { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }

/* Audiences */
.aud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.acard { border-top: 2px solid var(--accent); padding-top: 16px; min-width: 0; }
.acard p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.acard .metric { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; display: inline-block; }

/* Outputs */
.outs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.ocard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-width: 0; }
.ocard p { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.xl { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 12px; }
.xl table { width: 100%; border-collapse: collapse; min-width: 440px; }
.xl th { background: var(--accent); color: var(--on-accent); font-weight: 600; text-align: left; padding: 6px 8px; }
.xl td { padding: 5px 8px; border-top: 1px solid var(--line); }
.xl tr:nth-child(even) td { background: var(--bg); }
.xl td.n, .xl th.n { text-align: right; }
.xl a { color: var(--accent); }
.pdf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 4px 2px 8px; }
/* Real report pages (npm run site:thumbs): printed pages are always white, so a hairline and a soft shadow set them off in both themes. */
.pdf img { display: block; width: 100%; height: auto; aspect-ratio: 760 / 587; border-radius: 4px; background: #FFFFFF; box-shadow: var(--thumb-shadow); }

/* Pricing teaser */
.price2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pcard .cta { margin-top: auto; padding-top: 16px; }
.pcard .cta .btn { width: 100%; }
/* Pre-launch: every plan button as tall as the two-line "Coming soon to the Chrome Web Store" (user decision 2026-11-18). */
.price2.prelaunch .pcard .cta .btn { min-height: calc(2 * 1.6em + 24px); }
.pcard .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 30px; }
.pcard .head h3 { margin: 0; }
.soon { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; }
.popular { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); border-radius: 99px; padding: 2px 8px; }
.pcard.pro { border: 1.5px solid var(--accent); }
.pcard .amt { font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.pcard .amt span { font-size: 14px; color: var(--muted); font-weight: 400; line-height: 1; }
/* Pro+ and Enterprise: "Pricing coming soon" in the price's spot (PRICE_COMING_SOON), on the
   same line box as $0 and $29. */
.pcard .amt { line-height: 40px; }
.pcard .amt.tba { font-size: 22px; letter-spacing: -.015em; }
.pcard p { color: var(--muted); font-size: 15px; margin: 6px 0 0; }

/* FAQ */
.faq { max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding-block: 16px; }
summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 64ch; }

/* Closing band */
.band { background: var(--band); color: var(--band-ink); }
.band .wrap { padding-block: 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { margin: 0; color: var(--band-ink); max-width: 18em; }
.band p { margin: 8px 0 0; opacity: .75; }
.band .btn.primary { background: #2BB8A7; border-color: #2BB8A7; color: #06201C; }
footer .wrap { padding-block: 28px 44px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
footer .links { display: flex; gap: 18px; }
footer .links a { color: inherit; text-decoration: none; }
footer .links a:hover { color: var(--ink); }
/* Were inline styles in the mockup (the site's CSP allows none). */
section.pt-24 { padding-top: 24px; }
section.pt-16 { padding-top: 16px; }
.compare-all { margin-top: 18px; }
.xl a { text-decoration: underline; }

@media (max-width: 980px) {
  .hero, .split { grid-template-columns: 1fr; }
  .floatcard { right: 8px; }
  .aud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .navlinks a.hide { display: none; }
  .navlinks .long { display: none; }
  .navlinks .short { display: inline; }
  .steps, .fgrid, .outs, .price2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Two narrow columns: let the labels and "Middle 50% …" lines wrap instead of cutting them off. */
  .stat small, .stat i { white-space: normal; overflow: visible; text-overflow: clip; }
  .charts2 { grid-template-columns: 1fr; }
  .floatcard { position: static; width: auto; margin-top: 12px; }
  section { padding-block: 48px; }
}
@media (max-width: 460px) { .aud { grid-template-columns: 1fr; } .pdf { grid-template-columns: 1fr; } }
