/* Shared tokens and the marketing pages. The dashboard adds app.css on top. */
@font-face { font-family: "Geist"; src: url(/fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #fafafa;
  --surface: #ffffff;
  --soft: #f3f3f3;
  --fg: #0a0a0a;
  --fg-2: #262626;
  --muted: #666666;
  --faint: #a3a3a3;
  --border: #e5e5e5;
  --border-2: #d4d4d4;
  --primary: #141414;
  --primary-fg: #fafafa;
  --primary-hover: #2b2b2b;
  --money: #0b7a43;
  --money-ink: #06612f; /* money as text on tinted cells: 4.5:1 or better */
  --money-soft: #e8f5ee;
  --block: #b4530a;
  --block-soft: #fbf0e6;
  --down: #c2410c;
  --up: #0b7a43;
  --ring: #2563eb;
  --shadow: 0 0 0 1px rgb(0 0 0 / 6%), 0 1px 2px -1px rgb(0 0 0 / 6%), 0 2px 4px rgb(0 0 0 / 4%);
  --shadow-lg: 0 0 0 1px rgb(0 0 0 / 6%), 0 12px 32px -8px rgb(0 0 0 / 12%), 0 4px 8px -4px rgb(0 0 0 / 6%);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wide: 1152px;
  --gutter: 16px;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* Dark tokens. The head script sets data-theme before the first paint (stored choice, else the device's). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0b;
  --surface: #141414;
  --soft: #1c1c1c;
  --fg: #f5f5f5;
  --fg-2: #e5e5e5;
  --muted: #a1a1a1;
  --faint: #8a8a8a;
  --border: #262626;
  --border-2: #333333;
  --primary: #f5f5f5;
  --primary-fg: #0b0b0b;
  --primary-hover: #d4d4d4;
  --money: #34c27a;
  --money-ink: #34c27a;
  --money-soft: #10261a;
  --block: #f0a04b;
  --block-soft: #2a1d10;
  --down: #fb7a43;
  --up: #34c27a;
  --ring: #60a5fa;
  --shadow: 0 0 0 1px rgb(255 255 255 / 8%);
  --shadow-lg: 0 0 0 1px rgb(255 255 255 / 9%), 0 16px 40px -8px rgb(0 0 0 / 60%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, summary, label, input, select { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--money) 22%, transparent); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
code, kbd, pre { font-family: var(--mono); font-size: 0.875em; }
.num, table { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: 8px; top: -48px; z-index: 100; background: var(--primary); color: var(--primary-fg);
  padding: 8px 14px; border-radius: 8px; text-decoration: none; transition: top 0.15s; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 672px; margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.display { font: 520 clamp(34px, 4.6vw + 8px, 64px)/1.05 var(--serif); letter-spacing: -0.035em; }
.h2 { font: 420 clamp(40px, 1.6vw + 25px, 48px)/1.04 var(--serif); letter-spacing: -0.02em; }
.h3 { font: 600 18px/28px var(--sans); letter-spacing: -0.025em; }
.lede { font-size: 18px; line-height: 28px; color: var(--muted); }
.eyebrow { font: 500 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: var(--radius); border: 1px solid transparent; font: 500 15px/1 var(--sans); text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--soft); }
.btn-line { background: var(--surface); color: var(--fg); border-color: var(--border); box-shadow: 0 1px 2px rgb(0 0 0 / 4%); }
.btn-line:hover { border-color: var(--border-2); background: var(--soft); }
.btn-sm { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.btn .arrow { width: 16px; height: 16px; transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(2px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: default; }
.link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--fg); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--border); }
.top .wrap { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 17px/1 var(--sans); letter-spacing: -0.02em;
  text-decoration: none; padding: 6px; margin-left: -6px; border-radius: 10px; }
.brand-mark { width: 22px; height: 22px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 8px; font: 500 13px/1 var(--sans);
  color: var(--muted); text-decoration: none; transition: color 0.15s, background-color 0.15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--soft); }
.nav .btn-primary, .nav .btn-primary:hover { color: var(--primary-fg); background: var(--primary); margin-left: 8px; }
.nav .btn-primary:hover { background: var(--primary-hover); }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn:hover { background: var(--soft); }
@media (max-width: 767px) {
  .nav .hide-sm { display: none; }
  .menu-btn { display: inline-flex; }
}
.sheet { position: fixed; inset: 56px 0 auto; z-index: 49; background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 8px var(--gutter) 20px; overscroll-behavior: contain; }
.sheet a { display: flex; align-items: center; height: 48px; font-size: 17px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--border); }
.sheet .btn { width: 100%; margin-top: 16px; }

/* Sections */
.sec { padding-block: 56px; }
@media (min-width: 640px) { .sec { padding-block: 80px; } }
.sec-head { max-width: 672px; margin: 0 auto 36px; text-align: center; }
.sec-head .lede { margin-top: 16px; }

/* Hero */
.hero { position: relative; padding-top: 48px; text-align: center; overflow: hidden; }
@media (min-width: 640px) { .hero { padding-top: 80px; } }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 560px; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 14%, transparent) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 30%, transparent 75%); opacity: 0.55; }
.hero > * { position: relative; }
.hero .display { max-width: 1000px; margin-inline: auto; }
.hero .lede { max-width: 600px; margin: 20px auto 0; text-wrap: pretty; }
/* Hero last line: one price gap at a time. landing.js moves .on to the next span and marks the old one .out, so the old
   line slides up while the new one slides in from below, both at once: there is never a blank or half-lit moment.
   Without the script, or with reduced motion, the first stays. */
.swap { display: grid; justify-items: center; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.swap > * { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(0.5em); transition: opacity 0.3s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); }
.swap > .on { opacity: 1; transform: none; transition-delay: 0.08s; }
.swap > .out { transform: translateY(-0.5em); }
@media (max-width: 640px) { .swap > * { white-space: normal; text-wrap: balance; } }
/* The comparison box: the same tool as the headline, its price against ours as two bars on one scale, and what it lacks. */
.vsbox { max-width: 560px; margin: 32px auto 0; padding: 16px 18px 18px; text-align: left; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.vs-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vs-h { margin-right: 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .vs-h { flex-basis: 100%; margin-bottom: 2px; } }
.vs-pick button { position: relative; overflow: hidden; height: 32px; padding: 0 13px; border: 0; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--border);
  font: 500 13px/1 var(--sans); color: var(--muted); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
@media (hover: hover) { .vs-pick button:hover { color: var(--fg); } }
@media (pointer: coarse) { .vs-pick button { height: 38px; padding: 0 15px; } }
.vs-pick button[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
/* While the box runs by itself, the chosen tool's chip fills along its bottom edge until the next one. */
.vs-pick button::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--money); transform: scaleX(0); transform-origin: left; }
.vsbox.auto button[aria-pressed="true"]::after { animation: vs-fill var(--vs-ms, 4500ms) linear both; }
.vsbox.hold button[aria-pressed="true"]::after { animation-play-state: paused; }
@keyframes vs-fill { to { transform: scaleX(1); } }
.vs-bars { display: grid; gap: 8px; margin-top: 16px; }
.vs-row { display: grid; grid-template-columns: 76px 1fr 44px; align-items: center; gap: 12px; font-size: 14px; }
.vs-who { color: var(--muted); }
.vs-row.us .vs-who { color: var(--fg); font-weight: 500; }
.vs-row b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.vs-row.us b { color: var(--money-ink); }
.vs-track { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.vs-fill { display: block; height: 100%; border-radius: 99px; background: color-mix(in srgb, var(--fg) 38%, var(--border)); transform: scaleX(var(--w)); transform-origin: left; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.vs-row.us .vs-fill { background: var(--money); }
.vs-plus { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 14px; line-height: 20px; color: var(--fg-2); }
.vs-plus.flip { animation: vs-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes vs-in { from { opacity: 0; transform: translateY(6px); } }
.save { margin-top: 12px; }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.money { color: var(--money); }

/* Product frame on the landing page */
.tabs { display: inline-flex; gap: 2px; padding: 4px; margin: 48px auto 20px; background: var(--soft); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent;
  font: 500 14px/1 var(--sans); color: var(--muted); cursor: pointer; white-space: nowrap; transition: color 0.15s, background-color 0.15s, box-shadow 0.15s; }
.tab svg { width: 16px; height: 16px; flex: none; }
@media (hover: hover) { .tab:hover { color: var(--fg); } }
.tab[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.frame { max-width: 992px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.frame-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--bg); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.url { flex: 1; display: flex; justify-content: center; }
.url span { font: 12px/1 var(--mono); color: var(--muted); background: var(--soft); padding: 6px 12px; border-radius: 8px; }
.frame-body { min-height: 420px; }

/* Proof band */
.proof { padding-block: 80px 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 832px; margin: 0 auto; background: var(--surface);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 28px 8px; }
.stat { text-align: center; padding: 4px 16px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { display: block; font: 420 clamp(32px, 4vw, 52px)/1.1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.stats-note { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 639px) {
  .stats { grid-template-columns: 1fr; padding: 8px 20px; }
  .stat { padding: 20px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
}

/* Feature grid */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.card { grid-column: span 12; background: var(--soft); border-radius: var(--radius-xl); padding: 24px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
@media (min-width: 900px) {
  .card.w8 { grid-column: span 8; } .card.w6 { grid-column: span 6; } .card.w4 { grid-column: span 4; }
}
.card .h3 a { text-decoration: none; }
.card p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 24px; max-width: 520px; }
.card-art { margin-top: 18px; display: flex; }
.panel { width: 100%; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; font-size: 13px; }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th { white-space: nowrap; text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 0 0 8px; }
.mini-table td { padding: 8px 0; border-top: 1px solid var(--border); white-space: nowrap; }
.mini-table td:first-child { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; padding-right: 12px; }
.mini-table th:not(:first-child), .mini-table td:not(:first-child) { text-align: right; padding-left: 14px; }
.bar-row { display: grid; grid-template-columns: 74px 1fr 46px; gap: 10px; align-items: center; padding: 5px 0; }
.bar-row .track { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 99px; background: var(--fg); }
.bar-row .fill.block { background: var(--block); }
.bar-row .fill.money { background: var(--money); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--fg-2); white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--money); }
.pill.warn .dot { background: var(--block); }
.code { background: var(--primary); color: var(--primary-fg); border-radius: 12px; padding: 14px 16px; font: 12.5px/1.7 var(--mono); overflow-x: auto; white-space: pre; }
.code .c { opacity: 0.55; }
.code .k { color: #7dd3a7; }

/* Dark band */
.band { margin-inline: auto; max-width: 1232px; background: #0c0c0c; color: #f5f5f5; border-radius: 28px; padding: 80px var(--gutter); position: relative; overflow: hidden; }
@media (min-width: 640px) { .band { padding: 96px 48px; } }
.band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgb(255 255 255 / 9%) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(#000, transparent 40%); -webkit-mask-image: linear-gradient(#000, transparent 40%); }
.band > * { position: relative; }
.band .lede { color: #a3a3a3; }
.band-links { display: flex; gap: 8px 24px; justify-content: center; flex-wrap: wrap; margin-top: 40px; font-size: 14px; }
.band-links a { color: #e5e5e5; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.band-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Story */
.story { max-width: 528px; margin: 0 auto; }
.story .h2 { margin-bottom: 32px; }
.story p { font-size: 16px; line-height: 28px; color: var(--fg-2); margin-top: 18px; }
.story ol { margin: 18px 0 0; padding-left: 22px; line-height: 28px; color: var(--fg-2); }
.story li + li { margin-top: 10px; }
.story strong { color: var(--fg); font-weight: 600; }

/* Pricing */
.price { display: grid; grid-template-columns: 1fr; max-width: 908px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
@media (min-width: 860px) { .price { grid-template-columns: 1.15fr 1fr; } }
.price-l, .price-r { padding: 32px 28px; }
.price-r { background: var(--bg); border-top: 1px solid var(--border); }
@media (min-width: 860px) { .price-r { border-top: 0; border-left: 1px solid var(--border); } }
.price-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.volume { display: block; font: 420 clamp(48px, 7vw, 72px)/1 var(--serif); letter-spacing: -0.03em; margin-top: 18px; font-variant-numeric: lining-nums tabular-nums; }
.volume-sub { margin-top: 10px; font-size: 14px; color: var(--muted); }
.range { display: block; width: 100%; margin: 32px 0 0; height: 40px; cursor: pointer; background: transparent; -webkit-appearance: none; appearance: none; accent-color: var(--fg); }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(var(--fg), var(--fg)) 0 0 / var(--fill, 0%) 100% no-repeat, var(--soft); box-shadow: inset 0 0 0 1px var(--border); }
.range::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(var(--fg), var(--fg)) 0 0 / var(--fill, 0%) 100% no-repeat, var(--soft); box-shadow: inset 0 0 0 1px var(--border); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--surface); border: 5px solid var(--fg); box-shadow: 0 1px 3px rgb(0 0 0 / 20%); }
.range::-moz-range-thumb { box-sizing: border-box; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 5px solid var(--fg); box-shadow: 0 1px 3px rgb(0 0 0 / 20%); }
.range:focus-visible { outline-offset: 4px; }
/* Tick labels sit under the thumb positions: the thumb centre runs from 11px to width minus 11px. */
.ticks { position: relative; height: 18px; margin: 2px 11px 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ticks span { position: absolute; top: 0; left: calc(var(--i) / 7 * 100%); transform: translateX(-50%); white-space: nowrap; }
.ticks span.on { color: var(--fg); font-weight: 600; }
.vs { margin-top: 28px; border-collapse: collapse; width: 100%; font-size: 14px; }
.vs td { padding: 9px 0; border-top: 1px solid var(--border); }
.vs th { white-space: nowrap; text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 0 0 8px; }
.vs td:first-child { white-space: nowrap; }
.vs td:last-child { text-align: right; font-variant-numeric: tabular-nums; width: 112px; white-space: nowrap; }
.vs tr.us td { font-weight: 600; }
.vs .bar { display: inline-block; width: 0; height: 6px; border-radius: 9px; background: var(--border-2); vertical-align: middle; margin-right: 10px; transition: width 0.2s; }
.vs .vs-bar { width: 128px; text-align: right; }
.vs .vs-bar .bar { margin: 0; }
.vs tr.us .bar { background: var(--money); }
.plan-name { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.amount { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.amount b { font: 700 44px/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.amount span { color: var(--muted); }
.amount-sub { margin-top: 6px; font-size: 13px; color: var(--muted); min-height: 20px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; font-size: 13.5px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks svg { width: 15px; height: 15px; margin-top: 2px; flex: none; color: var(--money); }
.price-r .btn { width: 100%; margin-top: 26px; }
.fine { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 18px; }

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; } }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 500; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 22px/1 var(--sans); color: var(--muted); transition: transform 0.2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--fg-2); }
.faq .a { padding: 0 32px 20px 0; color: var(--muted); font-size: 15px; line-height: 26px; }
.faq .a p + p { margin-top: 10px; }

/* Closing */
.close { text-align: center; }
.close .lede { margin: 20px auto 0; max-width: 480px; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 56px 0 40px; font-size: 14px; }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.foot .foot-h { font: 500 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--fg-2); text-decoration: none; }
.foot ul a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.theme-ctl { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--border); }
.theme-ctl button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.theme-ctl button:hover { color: var(--fg); }
.theme-ctl button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.theme-ctl svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (pointer: coarse) { .theme-ctl button { min-height: 44px; padding: 0 14px; } }
.foot-base { align-items: center; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* Inner pages */
.page-head { padding: 72px 0 40px; text-align: center; }
.page-head .lede { margin: 16px auto 0; max-width: 600px; }
.prose { max-width: 680px; margin: 0 auto; font-size: 16px; line-height: 28px; color: var(--fg-2); }
.prose h2 { font: 500 28px/1.2 var(--serif); letter-spacing: -0.015em; color: var(--fg); margin: 48px 0 12px; scroll-margin-top: 80px; }
.prose h3 { font: 600 16px/24px var(--sans); color: var(--fg); margin: 28px 0 8px; scroll-margin-top: 80px; }
.prose p, .prose ul, .prose ol, .prose pre, .prose table { margin: 0 0 16px; }
.prose code { background: var(--soft); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--primary); color: var(--primary-fg); padding: 16px 18px; border-radius: 12px; overflow-x: auto; line-height: 1.65; }
.prose pre code { background: none; padding: 0; font-size: 13px; }
.prose a { text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--fg); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-weight: 500; color: var(--muted); }
.copy-wrap { position: relative; }
.copy-btn { position: absolute; top: 8px; right: 8px; }

.compare { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
.compare th:first-child, .compare td:first-child { text-align: left; white-space: normal; min-width: 180px; }
.compare thead th { font-weight: 600; background: var(--bg); position: sticky; top: 0; }
.compare thead th.us { color: var(--money); }
.compare td.us { background: color-mix(in srgb, var(--money-soft) 60%, transparent); font-weight: 500; }
.compare tr.group td { background: var(--bg); font: 500 12px/16px var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); text-align: left; }
.yes { color: var(--money-ink); font-weight: 600; }
.no { color: var(--muted); } /* the comparison's evidence: readable, not faint (critic finding 9) */
.scroll-x { overflow-x: auto; border-radius: var(--radius-lg); }

/* Forms */
.field { display: grid; gap: 6px; align-content: start; text-align: left; }
.field label { font-size: 14px; font-weight: 500; }
.input { height: 44px; width: 100%; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--border-2); background: var(--surface); color: var(--fg);
  font-size: 16px; transition: border-color 0.15s, box-shadow 0.15s; }
.input:hover { border-color: var(--faint); }
/* A file input keeps the field's box; its button matches our outline buttons instead of the browser's grey one. */
.input[type="file"] { height: auto; min-height: 44px; padding: 6px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.input[type="file"]::file-selector-button { height: 30px; margin-right: 12px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 7px;
  background: var(--surface); color: var(--fg); font: inherit; font-weight: 500; cursor: pointer; }
.input[type="file"]:hover::file-selector-button { border-color: var(--faint); }
.input:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 22%, transparent); }
.err { color: var(--down); font-size: 14px; }
.ok { color: var(--money); font-size: 14px; }
.auth { max-width: 400px; margin: 0 auto; padding: 88px var(--gutter) 120px; }
.auth-card { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 32px 28px; margin-top: 32px; }
.auth-card form { display: grid; gap: 16px; }

/* Landing page (index.html): the product frame miniature, card art, pricing and closing extras. */
.hero { padding-bottom: 48px; }
.up { color: var(--up); }
.down { color: var(--down); }
.lp-ghost { visibility: hidden; }
.lp-app { display: grid; grid-template-columns: 184px minmax(0, 1fr); }
.lp-side { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; border-right: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.lp-side > span { padding: 7px 10px; border-radius: 8px; }
.lp-side-brand { display: flex; align-items: center; gap: 8px; padding: 2px 10px 14px; font-weight: 600; color: var(--fg); }
.lp-side-brand .brand-mark { width: 18px; height: 18px; }
.frame[data-tab="overview"] [data-for="overview"], .frame[data-tab="pages"] [data-for="pages"],
.frame[data-tab="ads"] [data-for="ads"], .frame[data-tab="search"] [data-for="search"] { background: var(--soft); color: var(--fg); font-weight: 500; }
.lp-main { padding: 16px 20px 20px; min-width: 0; }
.lp-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.lp-sample { margin-left: auto; background: var(--block-soft); box-shadow: none; color: var(--block); }
.lp-panel { min-height: 436px; }
.lp-panel:focus-visible { outline-offset: 4px; }
.lp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lp-kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-kpi { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.lp-kpi span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-kpi b { display: block; margin-top: 4px; font: 600 22px/1.2 var(--sans); letter-spacing: -0.03em; }
.lp-kpi em { display: block; margin-top: 2px; font-size: 12px; font-style: normal; color: var(--muted); }
.lp-kpi em.up { color: var(--up); } .lp-kpi em.down { color: var(--down); }
.lp-chart { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px 8px; }
.lp-chart svg { width: 100%; height: 150px; overflow: visible; }
.lp-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.lp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--border-2); flex: none; margin-right: 6px; }
.lp-legend .sw { margin-right: 0; }
.sw-money { background: var(--money); } .sw-fg { background: var(--fg); } .sw-mid { background: color-mix(in srgb, var(--money) 40%, var(--border)); }
.lp-bars rect { fill: color-mix(in srgb, var(--fg) 9%, transparent); }
.lp-line { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lp-line.money { stroke: var(--money); }
.lp-area { fill: color-mix(in srgb, var(--fg) 6%, transparent); }
.lp-mark { stroke: var(--down); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.lp-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.lp-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.lp-mini { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 13px; min-width: 0; }
.lp-mini .panel-title b { font-size: 15px; color: var(--fg); }
.lp-split { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--surface); }
.lp-split i { background: var(--border); }
.lp-split i.block { background: var(--block); } .lp-split i.money { background: var(--money); }
.lp-split i.mid { background: color-mix(in srgb, var(--money) 40%, var(--border)); }
.lp-split i.fg { background: var(--fg); } .lp-split i.fg2 { background: color-mix(in srgb, var(--fg) 45%, var(--border)); }
.lp-split-lg { height: 14px; margin: 4px 0 14px; }
.lp-split-key { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--muted); }
.lp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 14px; }
.lp-table td:not(:first-child) { color: var(--fg-2); }
.lp-rbar { display: inline-block; width: calc(var(--w) * 0.6); max-width: 60px; height: 6px; margin-right: 10px; border-radius: 9px; background: var(--money); vertical-align: middle; opacity: 0.7; }
.lp-low td:first-child { color: var(--muted); }
.lp-tier { font: 500 10px/1 var(--mono); font-style: normal; color: var(--muted); margin-left: 4px; }
.bar-row .num { text-align: right; }
.lp-foot { margin-top: 12px; font-size: 12px; color: var(--muted); }
.lp-big { font: 420 28px/1 var(--serif); letter-spacing: -0.02em; color: var(--fg); }
.lp-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lp-steps li { display: flex; align-items: center; gap: 8px; }
.lp-steps li + li::before { content: ""; width: 14px; height: 1px; background: var(--border-2); }
.lp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-pair div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.lp-pair b { display: block; font: 420 28px/1.1 var(--serif); letter-spacing: -0.02em; }
.lp-pair span { font-size: 12px; color: var(--muted); }
.bar-row .track, .bar-row .fill { display: block; }
.panel-title { flex-wrap: wrap; gap: 4px 12px; }
.lp-spark { width: 100%; height: 120px; }
.lp-alerts { display: grid; gap: 8px; }
.lp-alert { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.lp-alert:first-child { border-top: 0; padding-top: 0; }
.lp-alert > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-alert .muted { font-size: 12px; }
.card .code { width: 100%; }
.lp-incl { margin-top: 22px; font-weight: 500; }
.lp-incl + .checks { margin-top: 10px; }
.lp-close { font-size: clamp(44px, 3.6vw + 8px, 60px); font-weight: 430; line-height: 1.04; }
.band .sec-head { margin-bottom: 0; }
.band .h2 { color: #fafafa; }
@media (max-width: 899px) {
  .lp-app { grid-template-columns: minmax(0, 1fr); }
  .lp-side { display: none; }
}
@media (max-width: 639px) {
  .lp-hide-sm { display: none; }
  .lp-main { padding: 12px; }
  .lp-kpis, .lp-kpis-3 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lp-kpi { padding: 10px 12px; }
  .lp-kpi b { font-size: 18px; }
  .lp-duo { grid-template-columns: 1fr; }
  .lp-chart svg { height: 110px; }
  .lp-panel { min-height: 0; }
  .tab { padding: 0 14px; }
  .tab svg { display: none; }
  #tp-overview .lp-duo .lp-mini + .lp-mini { display: none; }
  .lp-head { flex-direction: column; align-items: flex-start; }
  .lp-head .pill { white-space: normal; height: auto; padding: 4px 9px; }
  .frame-bar .url span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lp-alert { grid-template-columns: minmax(0, 1fr) auto; }
  .lp-alert > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .card { padding: 24px 20px; }
  .price-l, .price-r { padding: 28px 20px; }
  .checks { grid-template-columns: 1fr; }
  .vs .vs-bar { width: 72px; }
  .vs td:last-child { width: 96px; }
}

/* Closing: a year of bills, Fathom against ours at 1M events (60:5) */
.year { max-width: 720px; margin: 40px auto 0; }
.year-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 180px; }
.mo { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; column-gap: 2px; align-items: end; }
.mo i { display: block; border-radius: 3px 3px 0 0; }
.mo .them { height: 100%; background: var(--border-2); }
.mo .us { height: 20%; min-height: 3px; background: var(--money); }
.mo > span { grid-column: 1 / -1; margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }
.year-key { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; margin-top: 20px; font-size: 14px; color: var(--fg-2); }
.card-more { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--fg); text-underline-offset: 3px; text-decoration-color: var(--border-2); }

/* Home: everything you would switch for, included */
/* Everything included: one sheet in three groups (Measure, Share, Control), rows not cards, so 18 items read as a list. */
.incl { display: grid; max-width: 1088px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-xl); box-shadow: inset 0 0 0 1px var(--border); }
.incl-g { padding: 22px 10px 10px; min-width: 0; }
.incl-g + .incl-g { border-top: 1px solid var(--border); }
@media (min-width: 900px) { .incl { grid-template-columns: repeat(3, 1fr); } .incl-g + .incl-g { border-top: 0; border-left: 1px solid var(--border); } }
.incl-h { padding: 0 12px; font: 420 26px/1.1 var(--serif); letter-spacing: -0.015em; }
.incl-d { padding: 0 12px; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--muted); }
.incl ul { margin: 12px 0 0; padding: 0; list-style: none; }
.incl a { display: grid; gap: 1px; padding: 9px 12px; border-radius: 12px; color: inherit; text-decoration: none; transition: background-color 0.15s; }
.incl b { font-size: 15px; font-weight: 550; }
.incl a span { font-size: 14px; line-height: 20px; color: var(--muted); }
@media (hover: hover) { .incl a:hover { background: var(--soft); } }
.incl a:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }

/* Better than each: one card per tool (home and /compare/), built from the comparison table */
.better { display: grid; gap: 12px; max-width: 1088px; margin: 0 auto; padding: 0; list-style: none; }
@media (min-width: 720px) { .better { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .better { grid-template-columns: repeat(3, 1fr); } }
.better-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.better-vs { font: 500 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.better-claim { font: 420 24px/30px var(--serif); letter-spacing: -0.015em; color: var(--fg); }
.better-sub { margin-top: 4px; font-size: 13px; color: var(--muted); }
.better-wins { margin: 0 0 6px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--fg-2); }
.better-wins li { position: relative; padding-left: 22px; }
.better-wins li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border: solid var(--money); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.better-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 12px; border-radius: 10px; background: var(--money-soft); font-size: 13px; color: var(--fg-2); }
.better-price b { color: var(--money-ink); font-weight: 600; }
.better-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.better-links .link { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; font-weight: 500; }
/* Five cards on a wide screen: three, then two wider, so no cell is left empty */
@media (min-width: 1040px) { .better { grid-template-columns: repeat(6, 1fr); } .better > li { grid-column: span 2; } .better > li:nth-child(4):nth-last-child(2), .better > li:nth-child(5):last-child { grid-column: span 3; } }

/* Home: AI assistant band */
.ai-band .sec-head { margin-bottom: 28px; }
.ai-demo { max-width: 680px; margin: 0 auto; display: grid; gap: 12px; }
.ai-q { justify-self: end; max-width: 85%; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: color-mix(in srgb, var(--surface) 12%, transparent); font-size: 15px; }
.ai-a { max-width: 92%; padding: 14px 18px; border-radius: 16px 16px 16px 4px; background: var(--surface); color: var(--fg); font-size: 15px; line-height: 24px; }
.ai-note { font-size: 13px; opacity: 0.75; text-align: center; }
.ai-note .link { color: #f5f5f5; }
.price-r .lp-build + .btn { margin-top: 10px; }

/* Landing motion. landing.js adds .motion to <html> unless reduced motion is on, .rv to each product picture, and .seen
   once the picture is in view (again on each product tab switch): charts sweep in left to right, bars grow from their
   start, rows step in one after another. Without the script nothing is hidden. */
.motion .rv svg:is([role="img"], .lp-spark) { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s cubic-bezier(0.3, 0.6, 0.2, 1) 0.1s; }
.motion .rv :is(.fill, .lp-split i, .lp-rbar) { transform: scaleX(0); transform-origin: left; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s; }
.motion .rv :is(tbody tr, .lp-alert, .lp-kpi, .incl li, .stat) { opacity: 0; transform: translateY(8px); transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--n, 0) * 55ms); }
.motion .rv.seen svg:is([role="img"], .lp-spark) { clip-path: inset(0); }
.motion .rv.seen :is(.fill, .lp-split i, .lp-rbar) { transform: none; }
.motion .rv.seen :is(tbody tr, .lp-alert, .lp-kpi, .incl li, .stat) { opacity: 1; transform: none; }
.lp-rbar { transform-origin: left; }
.motion-init .rv, .motion-init .rv * { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .swap > *, .vs-fill, .vs-plus.flip { transition: none; animation: none; } }
