@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-display: swap; src: url(/fonts/bricolage-grotesque-700.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400 600; font-display: swap; src: url(/fonts/ibm-plex-sans-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500.woff2) format('woff2'); }

:root {
  --ink: #17140F; --ink-2: #3A362F; --muted: #5B5750; --line: #E6E2DA; --line-strong: #CFC9BE;
  --ground: #FFFFFF; --surface: #F6F4EF; --good: #1F6B44; --good-bg: #E9F4EE; --bad: #A3302A; --bad-bg: #FBECEA;
  --acc: #B4531C; --tint: #FBF1EA; --bar: #CFC9BE;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --sans: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; }
.mono { font-family: var(--mono); font-weight: 500; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.btn-acc { background: var(--acc); color: #fff; }
.btn-acc:hover { color: #fff; background: #94431A; }
.btn-line { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.btn-inverse { background: #fff; color: var(--ink); }
.btn-inverse:hover { color: var(--acc); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-acc { background: var(--tint); color: var(--acc); }
.pill-good { background: var(--good-bg); color: var(--good); }
.card { border: 1px solid var(--line); border-radius: 16px; background: #fff; }

/* header */
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.wordmark span { color: var(--acc); }
nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
nav a { text-decoration: none; font-size: 15px; }
nav .btn { min-height: 44px; font-size: 15px; padding: 0 18px; }

/* hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { margin: 14px 0 0; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; }
.hero p.lead { margin: 22px 0 30px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.facts li::before { content: "✓"; color: var(--good); font-weight: 600; margin-right: 6px; }

.demo { padding: 24px; }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.side-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.side-card.with { border: 2px solid var(--acc); }
.side-card .eyebrow { margin: 0 0 12px; }
.side-card.with .eyebrow { color: var(--acc); }
.raw { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 12px; line-height: 1.7; color: var(--muted); background: var(--surface); border-radius: 8px; padding: 12px; white-space: pre; overflow-x: auto; }
.lines { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.lines i { display: block; height: 8px; border-radius: 3px; background: var(--line-strong); }
.lines i.h { height: 14px; background: var(--ink); }
.lines i.h2 { height: 10px; background: var(--ink); margin-top: 6px; }
.side-card .pill { margin-top: 12px; }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.demo-note { margin: 18px 0 0; padding: 12px 14px; background: var(--tint); border-radius: 10px; font-size: 14px; color: var(--ink-2); }

/* sections */
section.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-top: 80px; padding-bottom: 80px; }
.section h2 { margin: 10px 0 14px; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
.section .intro { margin: 0 0 40px; max-width: 40em; color: var(--ink-2); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.features h3 { margin: 10px 0 8px; font-size: 19px; font-weight: 600; }
.features p { margin: 0; color: var(--ink-2); font-size: 16px; }
.num { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--acc); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: center; }
.code { background: var(--ink); color: #F6F4EF; border-radius: 16px; padding: 22px; font-family: var(--mono); font-weight: 500; font-size: 13.5px; line-height: 1.8; overflow-x: auto; white-space: pre; }
.code .c { color: #A39E95; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.checks li::before { content: "✓"; color: var(--good); font-weight: 600; }
.checks strong { color: var(--ink); }

/* stats with sources */
.stats-section { padding-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.stat { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.stat .big { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 32px; line-height: 1.1; color: var(--acc); }
.stat h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.stat p { margin: 0; font-size: 15px; color: var(--ink-2); }
.stat .src { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.stat .src a { color: var(--muted); }
.stat .src a:hover { color: var(--acc); }
.more { margin: 24px 0 0; font-size: 16px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.plan { padding: 26px; }
.plan.hl { border: 2px solid var(--acc); background: var(--tint); }
.plan h3 { margin: 0; font-size: 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { margin: 14px 0 4px; font-family: var(--mono); font-weight: 500; font-size: 36px; }
.price small { font-family: var(--sans); font-size: 16px; color: var(--muted); font-weight: 400; }
.plan .yearly { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: "·"; color: var(--acc); font-weight: 700; margin-right: 8px; }
.fineprint { margin-top: 18px; font-size: 14px; color: var(--muted); }

.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.way { padding: 22px; }
.way-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.way h3 { margin: 0; font-size: 17px; font-weight: 600; }
.way p { margin: 0; font-size: 15px; color: var(--ink-2); }
.pill-soon { background: #FFF3E0; color: #8A4B00; }

/* early access */
.dark { background: var(--ink); color: #fff; }
.dark .section { text-align: center; }
.dark h2 { color: #fff; }
.dark p { color: #D9D5CD; max-width: 36em; margin: 0 auto 28px; }
.dark .eyebrow { color: #A39E95; }

footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 36px; font-size: 14px; color: var(--muted); }

@media (max-width: 560px) {
  nav a:not(.btn):not(.nav-keep) { display: none; }
  .wrap { padding: 0 16px; }
  header .wrap { gap: 10px; flex-wrap: nowrap; }
  .wordmark { font-size: 21px; }
  nav { gap: 12px; flex-wrap: nowrap; }
  nav a { font-size: 14px; white-space: nowrap; }
  nav .btn { font-size: 14px; padding: 0 12px; }
  .compare { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
