/* Compare v2 — design system
   Dark-first. Tokens on :root, light theme via [data-theme="light"].
   Fonts: Geist + Geist Mono (SIL OFL 1.1, self-hosted in /fonts). */

@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0B0D12;
  --bg-2: #0B0D12;
  --band: #10141C;
  --main: #10141C;
  --surface: #171B24;
  --surface-2: #1E2430;
  --surface-solid: #171B24;
  --border: rgba(255,255,255,.08);
  --border-2: rgba(255,255,255,.14);
  --text: #eceef3;
  --text-2: #a3a9b5;
  --muted: #7f8693;
  --accent: #40E390;
  --accent-2: #9FF5C8;
  --accent-ink: #0B0D12;
  --content-max: 1120px;
  --gutter: clamp(16px, 4.2vw, 28px);
  --ok: #40E390; --ok-bg: rgba(64,227,144,.09); --ok-bd: rgba(64,227,144,.24);
  --warn: #f6bd5b; --warn-bg: rgba(246,189,91,.09); --warn-bd: rgba(246,189,91,.26);
  --no: #a3a9b5; --no-bg: rgba(255,255,255,.04);
  --glow-1: rgba(64,227,144,.28);
  --glow-2: rgba(64,227,144,.14);
  --shadow: 0 10px 30px -18px rgba(0,0,0,.65), 0 1px 0 rgba(255,255,255,.04) inset;
  --shadow-lg: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 120px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.06);
  --radius: 14px; --radius-sm: 9px; --radius-lg: 20px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
  --header-h: 60px;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F3F4F6; --bg-2: #F3F4F6;
  --band: #ffffff; --main: #F7F8FA;
  --surface: #ffffff; --surface-2: #EEF0F3; --surface-solid: #ffffff;
  --border: rgba(11,13,18,.08); --border-2: rgba(11,13,18,.14);
  --text: #0B0D12; --text-2: #474e5b; --muted: #5d6471;
  --accent: #14854C; --accent-2: #0E6B3D; --accent-ink: #fff;
  --shadow: 0 10px 28px -18px rgba(11,13,18,.18), 0 1px 0 rgba(255,255,255,.8) inset;
  --ok: #14854C; --ok-bg: rgba(20,133,76,.08); --ok-bd: rgba(20,133,76,.25);
  --warn: #93590a; --warn-bg: rgba(214,140,20,.09); --warn-bd: rgba(214,140,20,.3);
  --no: #5d6471; --no-bg: rgba(10,14,30,.04);
  --glow-1: rgba(20,133,76,.20); --glow-2: rgba(20,133,76,.12);
  --shadow: 0 1px 2px rgba(10,14,30,.04), 0 12px 32px -16px rgba(10,14,30,.16);
  --shadow-lg: 0 30px 80px -24px rgba(10,14,30,.28), 0 0 0 1px rgba(10,14,30,.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); max-width: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.6;
  font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; max-width: 100%;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .source a, .callout a, .vs-cell a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
p a:hover, .prose a:hover { text-decoration-color: var(--accent); }
code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--border); padding: .08em .38em; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.12; font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--content-max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.wrap.narrow { width: min(760px, calc(100% - var(--gutter) * 2)); }
kbd { font-family: var(--mono); font-size: 11px; line-height: 1; min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 5px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); box-shadow: 0 1px 0 var(--border); }
.muted-label { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .01em; }
.eyebrow { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }

/* ---------- Draft bar + header ---------- */
.draft-bar { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); padding: 7px 12px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.draft-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: var(--bg); border-bottom: 1px solid var(--border); }
.bar { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 0; font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.brand .logo-wordmark { height: 26px; width: auto; display: none; }
.brand .logo-for-dark { display: block; }
.brand .logo-for-light { display: none; }
[data-theme="light"] .brand .logo-for-dark { display: none; }
[data-theme="light"] .brand .logo-for-light { display: block; }
@media (max-width: 640px) {
  .brand .logo-wordmark { height: 22px; }
}
.logo-mark { color: var(--text); }
.nav { display: flex; gap: 4px; }
.nav a { font-size: 14px; color: var(--text-2); padding: 6px 10px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); }
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.kbar-trigger { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; min-width: 200px; transition: border-color .15s, background .15s; }
.kbar-trigger:hover { border-color: var(--border-2); background: var(--surface-2); color: var(--text-2); }
.kbar-trigger .kbar-label { margin-right: auto; }
.kbar-trigger kbd { height: 20px; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-2); }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }
.nav-backdrop { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 14px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* ---------- Buttons, chips, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: transform .15s var(--ease), background .15s, border-color .15s, box-shadow .2s; white-space: nowrap; }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 0 0 1px var(--text), 0 8px 24px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--text), 0 12px 30px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.actions.center { justify-content: center; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; font-size: 14px; }
.text-link svg { transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); white-space: nowrap; }
.chip-ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-bd); }
.chip-usd { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-bd); }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pill-yes .dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.pill-part .dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.pill-no .dot { background: transparent; border: 1.5px solid var(--no); }
.pill-no { color: var(--text-2); }
.price { display: inline-flex; align-items: baseline; gap: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price .amt { font-weight: 600; font-size: 1.05em; letter-spacing: -.02em; color: var(--text); }
.price .per { color: var(--muted); font-size: .85em; }
.price .cur { margin-left: 6px; align-self: center; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .04em; padding: 2px 5px; border-radius: 5px; border: 1px solid var(--border-2); color: var(--text-2); }
.price .cur-usd { color: var(--warn); border-color: var(--warn-bd); background: var(--warn-bg); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.status-live { color: var(--ok); border-color: var(--ok-bd); background: var(--ok-bg); }
.status-live::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status-soon::before { background: var(--warn); }
.tag { font-size: 13px; color: var(--text-2); padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); transition: color .15s, border-color .15s, background .15s; }
.tag:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }

/* Mono avatars (neutral, not vendor logos) */
.mono { --s: 30px; width: var(--s); height: var(--s); flex: none; display: inline-grid; place-items: center; border-radius: calc(var(--s) * .3); font-weight: 600; font-size: calc(var(--s) * .44); color: #fff; letter-spacing: -.02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 1px 0 rgba(255,255,255,.25); background: linear-gradient(135deg, #3A4458, #2A3140); }
.mono.sm { --s: 22px; } .mono.md { --s: 38px; } .mono.lg { --s: 64px; } .mono.xl { --s: 72px; }
.mono-wave { background: linear-gradient(135deg, #3c63f2, #1f3fb8); color: #fff; }
.mono-quickbooks-online { background: linear-gradient(135deg, #22a45d, #137a42); color: #fff; }
.mono-freshbooks { background: linear-gradient(135deg, #2d8de0, #145fa8); color: #fff; }
.mono-xero { background: linear-gradient(135deg, #0B6E8A, #084C60); color: #fff; }
.mono-zoho-books { background: linear-gradient(135deg, #C4470E, #8A2E08); color: #fff; }
.mono-sage-accounting { background: linear-gradient(135deg, #0B6B4A, #084C35); color: #fff; }
.mono-quickbooks-payroll { background: linear-gradient(135deg, #63247E, #581E5B); color: #fff; }
.mono-wagepoint { background: linear-gradient(135deg, #247E4E, #1E5B49); color: #fff; }
.mono-knit { background: linear-gradient(135deg, #247E51, #1E5B4B); color: #fff; }
.mono-wave-payroll { background: linear-gradient(135deg, #24567E, #1E315B); color: #fff; }
.mono-employment-hero { background: linear-gradient(135deg, #247E68, #1E5B5B); color: #fff; }
.mono-square-pos { background: linear-gradient(135deg, #4A7E24, #295B1E); color: #fff; }
.mono-shopify-pos { background: linear-gradient(135deg, #2C7E24, #1E5B28); color: #fff; }
.mono-lightspeed-retail { background: linear-gradient(135deg, #3B247E, #3C1E5B); color: #fff; }
.mono-shopify { background: linear-gradient(135deg, #0F7A4A, #0A5433); color: #fff; }
.mono-wix { background: linear-gradient(135deg, #1A1A1A, #111111); color: #fff; }
.mono-squarespace { background: linear-gradient(135deg, #1A1A1A, #111111); color: #fff; }
.mono-bigcommerce { background: linear-gradient(135deg, #24427E, #1E245B); color: #fff; }
.mono-godaddy-website-builder { background: linear-gradient(135deg, #457E24, #265B1E); color: #fff; }
.mono-woocommerce { background: linear-gradient(135deg, #7A2E8A, #54205E); color: #fff; }
.mono-hostinger { background: linear-gradient(135deg, #74247E, #5B1E54); color: #fff; }
.mono-bluehost { background: linear-gradient(135deg, #7E3F24, #5B3F1E); color: #fff; }
.mono-namecheap { background: linear-gradient(135deg, #7E2442, #5B1E24); color: #fff; }
.mono-hostpapa { background: linear-gradient(135deg, #247E56, #1E5B4E); color: #fff; }
.mono-ringcentral { background: linear-gradient(135deg, #7E244D, #5B1E2B); color: #fff; }
.mono-zoom-phone { background: linear-gradient(135deg, #387E24, #1E5B20); color: #fff; }
.mono-ooma-office { background: linear-gradient(135deg, #247E4D, #1E5B48); color: #fff; }
.mono-dialpad { background: linear-gradient(135deg, #24657E, #1E3B5B); color: #fff; }
.mono-fongo-works { background: linear-gradient(135deg, #4E247E, #491E5B); color: #fff; }
.mono-hubspot-crm { background: linear-gradient(135deg, #D13B2A, #9B2A1D); color: #fff; }
.mono-pipedrive { background: linear-gradient(135deg, #1A6B4A, #124C35); color: #fff; }
.mono-zoho-crm { background: linear-gradient(135deg, #C4470E, #8A2E08); color: #fff; }
.mono-monday-crm { background: linear-gradient(135deg, #C44A1A, #8A320F); color: #fff; }
.mono-freshsales { background: linear-gradient(135deg, #247E7C, #1E4E5B); color: #fff; }
.mono-mailchimp { background: linear-gradient(135deg, #24607E, #1E385B); color: #fff; }
.mono-constant-contact { background: linear-gradient(135deg, #65247E, #591E5B); color: #fff; }
.mono-brevo { background: linear-gradient(135deg, #247E32, #1E5B36); color: #fff; }
.mono-mailerlite { background: linear-gradient(135deg, #7E3924, #5B3B1E); color: #fff; }
.mono-klaviyo { background: linear-gradient(135deg, #7E2A24, #5B311E); color: #fff; }
.mono-kit { background: linear-gradient(135deg, #267E24, #1E5B2C); color: #fff; }
.mono-yardi-breeze { background: linear-gradient(135deg, #7E2474, #5B1E45); color: #fff; }
.mono-buildium { background: linear-gradient(135deg, #3E247E, #3E1E5B); color: #fff; }
.mono-appfolio { background: linear-gradient(135deg, #247E62, #1E5B57); color: #fff; }
.mono-doorloop { background: linear-gradient(135deg, #24687E, #1E3D5B); color: #fff; }
.mono-tenantcloud { background: linear-gradient(135deg, #7E243C, #5B1E20); color: #fff; }
.mono-rentec-direct { background: linear-gradient(135deg, #7E6824, #5B5B1E); color: #fff; }
.mono-landlord-studio { background: linear-gradient(135deg, #7E4224, #5B411E); color: #fff; }
.mono-touchbistro { background: linear-gradient(135deg, #7E2441, #5B1E23); color: #fff; }
.mono-square-restaurants { background: linear-gradient(135deg, #7E3F24, #5B3F1E); color: #fff; }
.mono-lightspeed-restaurant { background: linear-gradient(135deg, #247E45, #1E5B43); color: #fff; }
.mono-toast { background: linear-gradient(135deg, #7E7724, #525B1E); color: #fff; }
.mono-7shifts { background: linear-gradient(135deg, #24357E, #221E5B); color: #fff; }
.mono-marketman { background: linear-gradient(135deg, #24247E, #2D1E5B); color: #fff; }
.mono-opentable { background: linear-gradient(135deg, #7E4124, #5B401E); color: #fff; }
.mono-canva { background: linear-gradient(135deg, #247E48, #1E5B45); color: #fff; }
.mono-adobe-express { background: linear-gradient(135deg, #7E3824, #5B3A1E); color: #fff; }
.mono-adobe-creative-cloud { background: linear-gradient(135deg, #7E7924, #505B1E); color: #fff; }
.mono-figma { background: linear-gradient(135deg, #4D7E24, #2B5B1E); color: #fff; }
.mono-affinity { background: linear-gradient(135deg, #63247E, #581E5B); color: #fff; }
.mono-jobber { background: linear-gradient(135deg, #417E24, #235B1E); color: #fff; }
.mono-housecall-pro { background: linear-gradient(135deg, #247E74, #1E545B); color: #fff; }
.mono-homebase { background: linear-gradient(135deg, #7E2427, #5B2B1E); color: #fff; }
.mono-when-i-work { background: linear-gradient(135deg, #7E4524, #5B431E); color: #fff; }
.mono-connecteam { background: linear-gradient(135deg, #7E3024, #5B351E); color: #fff; }
.mono-bitwarden { background: linear-gradient(135deg, #247E4A, #1E5B46); color: #fff; }
.mono-keeper { background: linear-gradient(135deg, #7E7B24, #4F5B1E); color: #fff; }
.mono-nordpass { background: linear-gradient(135deg, #5C7E24, #355B1E); color: #fff; }
.mono-dashlane { background: linear-gradient(135deg, #7E2478, #5B1E49); color: #fff; }
.mono-nordlayer { background: linear-gradient(135deg, #247E48, #1E5B45); color: #fff; }
.mono-1password { background: linear-gradient(135deg, #242D7E, #271E5B); color: #fff; }
.mono-docusign { background: linear-gradient(135deg, #7E4B24, #5B471E); color: #fff; }
.mono-dropbox-sign { background: linear-gradient(135deg, #7E2C24, #5B321E); color: #fff; }
.mono-pandadoc { background: linear-gradient(135deg, #607E24, #385B1E); color: #fff; }
.mono-zoho-sign { background: linear-gradient(135deg, #C4470E, #8A2E08); color: #fff; }
.mono-float { background: linear-gradient(135deg, #7E2472, #5B1E44); color: #fff; }
.mono-venn { background: linear-gradient(135deg, #7E2460, #5B1E38); color: #fff; }
.mono-ownr { background: linear-gradient(135deg, #242F7E, #261E5B); color: #fff; }
.mono-jane-app { background: linear-gradient(135deg, #24797E, #1E4A5B); color: #fff; }
.mono-fresha { background: linear-gradient(135deg, #7E5024, #5B4A1E); color: #fff; }
.mono-clio { background: linear-gradient(135deg, #59247E, #501E5B); color: #fff; }
.mono-mindbody { background: linear-gradient(135deg, #547E24, #305B1E); color: #fff; }
.mono-shipstation { background: linear-gradient(135deg, #247E27, #1E5B2F); color: #fff; }
.mono-printful { background: linear-gradient(135deg, #7E5624, #5B4E1E); color: #fff; }
.mono-pilot { background: linear-gradient(135deg, #3E247E, #3E1E5B); color: #fff; }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
a.card { transition: border-color .2s, transform .25s var(--ease), background .2s; }
a.card:hover { border-color: var(--border-2); transform: translateY(-2px); background: var(--surface-2); }
.card-arrow { position: absolute; right: 18px; top: 18px; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: all .2s var(--ease); }
a.card:hover .card-arrow { opacity: 1; transform: none; color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; isolation: isolate; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 46% at 50% 18%, var(--glow-1), transparent 70%), radial-gradient(28% 32% at 72% 30%, var(--glow-2), transparent 70%), radial-gradient(26% 30% at 26% 34%, rgba(160,110,255,.12), transparent 70%); filter: blur(10px); }
.hero-glow.small { height: 420px; inset: -40% -10% auto; opacity: .7; }
.hero-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 64px 64px;
  mask-image: radial-gradient(60% 50% at 50% 20%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(60% 50% at 50% 20%, #000 20%, transparent 75%); }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.announce { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, color .2s; }
.announce:hover { color: var(--text); border-color: var(--border-2); }
.announce-tag { font-size: 11.5px; font-weight: 600; color: var(--accent-ink); background: linear-gradient(90deg, var(--accent), var(--accent-2)); padding: 2px 8px; border-radius: 999px; }
.hero-title { margin-top: 26px; font-size: clamp(42px, 7vw, 78px); line-height: 1.02; letter-spacing: -.045em; font-weight: 650; }
.grad-text { background: linear-gradient(100deg, var(--text) 10%, var(--accent) 55%, var(--accent-2) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin: 22px auto 0; max-width: 600px; font-size: 18px; color: var(--text-2); line-height: 1.55; }
.hero-search { margin-top: 36px; width: min(620px, 100%); height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 20px; border-radius: 16px; border: 1px solid var(--border-2); background: color-mix(in srgb, var(--surface-solid) 70%, transparent); color: var(--muted); font: inherit; font-size: 16px; cursor: text; text-align: left;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 6%, transparent), 0 20px 60px -20px color-mix(in srgb, var(--accent) 45%, transparent); transition: box-shadow .25s, border-color .25s, transform .25s var(--ease); backdrop-filter: blur(12px); }
.hero-search:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border-2)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 10%, transparent), 0 24px 70px -20px color-mix(in srgb, var(--accent) 60%, transparent); }
.hero-search svg { width: 18px; height: 18px; color: var(--text-2); }
.hs-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-keys { display: flex; gap: 4px; }
.hs-keys kbd { height: 24px; min-width: 24px; font-size: 12px; }
.hero-ask { margin-top: 14px; }
.ask-pill { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13.5px; color: var(--text-2); padding: 7px 14px 7px 10px; border-radius: 999px; cursor: pointer; border: 1px solid color-mix(in srgb, #ff7aa8 30%, var(--border)); background: linear-gradient(90deg, rgba(255,90,140,.09), rgba(139,156,255,.08)); transition: border-color .2s, transform .2s var(--ease); }
.ask-pill:hover { border-color: color-mix(in srgb, #ff7aa8 60%, var(--border)); transform: translateY(-1px); color: var(--text); }
.ask-pill > svg { color: #ff7aa8; }
.ask-pill span:nth-child(2) { color: var(--text); font-weight: 500; }
.ask-q { color: var(--text-2); }
.hero-quick { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.hero-quick .muted-label { margin-right: 4px; }

.stats { margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); width: min(860px, 100%); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: 20px 22px; text-align: left; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat dt { font-size: 12.5px; color: var(--muted); }
.stat dd { margin: 6px 0 0; font-size: 30px; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 8px; }
.stat dd small { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--ok); }
.stat dd.stat-date { font-size: 22px; padding-top: 6px; }

.app-window { margin-top: 28px; width: min(980px, 100%); text-align: left; border-radius: var(--radius-lg); border: 1px solid var(--border-2); background: color-mix(in srgb, var(--surface-solid) 82%, transparent); box-shadow: var(--shadow-lg), 0 0 120px -40px var(--glow-1); overflow: hidden; backdrop-filter: blur(16px); }
.aw-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.aw-dots { display: flex; gap: 6px; } .aw-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.aw-url { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.aw-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ok); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { from { opacity: .8; transform: scale(.6); } to { opacity: 0; transform: scale(1.8); } }
.aw-head, .pv-row { display: grid; grid-template-columns: 40px 1.4fr 1fr 1.6fr 1fr; align-items: center; gap: 12px; padding: 0 20px; }
.aw-head { height: 38px; font-size: 11.5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--border); }
.pv-row { height: 60px; border-bottom: 1px solid var(--border); transition: background .15s; }
.pv-row:hover { background: var(--surface-2); }
.pv-rank { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pv-tool { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.aw-foot { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; font-size: 13.5px; color: var(--text-2); transition: color .15s, background .15s; }
.aw-foot:hover { color: var(--text); background: var(--surface-2); }

/* ---------- Sections ---------- */
.section { padding: 48px 0 64px; }
.section.tight { padding-top: 32px; }
.section h2 { margin-bottom: 16px; }
.section.tight { padding: 32px 0 72px; }
.section-head { margin-bottom: 32px; max-width: 640px; }
.section-head h2, .cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; }
.sub { margin: 12px 0 0; color: var(--text-2); font-size: 16px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-card { padding: 22px; min-height: 150px; display: flex; flex-direction: column; }
.cat-card p { margin: 10px 0 0; color: var(--text-2); font-size: 14px; }
.cat-top { display: flex; align-items: center; gap: 10px; }
.cat-name { font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.cat-live { background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--surface); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.cat-live .cat-name { font-size: 22px; }
.cat-tools { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 6px; }
.cat-tools .mono { margin-right: -10px; box-shadow: 0 0 0 2px var(--bg), inset 0 0 0 1px rgba(255,255,255,.2); }
.cat-tools .mono.sm { --s: 28px; }
.cat-count { margin-left: 18px; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.cat-stub { min-height: 0; padding: 18px 20px; }
.cat-stub p { margin-top: 6px; font-size: 13px; }
.cat-more { border-style: dashed; background: transparent; box-shadow: none; }
.cat-more .cat-name { color: var(--muted); font-weight: 500; font-size: 15px; }
.cat-stub .cat-name { color: var(--text-2); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.feature { min-width: 0; overflow-wrap: anywhere; }
.feature { padding: 26px; }
.feature h3 { font-size: 17px; margin-top: 18px; }
.feature p { color: var(--text-2); font-size: 14.5px; margin: 8px 0 0; }
.feat-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.feat-ico svg { width: 16px; height: 16px; }
.feat-demo { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--border-2); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 44px; overflow: hidden; background: radial-gradient(60% 120% at 100% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--surface); }
.vs-mini { display: flex; align-items: center; gap: 14px; }
.vs-x { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- Page hero ---------- */
main { background: var(--main); min-height: 60vh; padding-bottom: 8px; }
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 36px 0 32px; background: var(--band); border-bottom: 1px solid var(--border); }
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 88px 0 72px; background: var(--band); border-bottom: 1px solid var(--border); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .45;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 64px 64px;
  mask-image: radial-gradient(60% 50% at 50% 20%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(60% 50% at 50% 20%, #000 20%, transparent 75%); }
.hero-grid { position: relative !important; inset: auto !important; z-index: 1; opacity: 1 !important; pointer-events: auto !important; background-image: none !important; mask-image: none !important; -webkit-mask-image: none !important; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 40px; align-items: center; }
.hero h1 { margin-top: 10px; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -.045em; font-weight: 650; color: var(--text); }
.hero .lead { margin: 18px 0 0; max-width: 540px; font-size: 18px; color: var(--text-2); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 32px; }
.hero-stats .num { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.hero-stats .lbl { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; max-width: 11rem; }
.hero .aw-card { padding: 18px 0 10px; }
.hero .aw-card .eyebrow { padding: 0 20px; }
.hero .pv-row { grid-template-columns: 32px 1fr auto; height: 56px; }
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: clamp(36px, 10vw, 48px); }
}
.page-hero.center { text-align: center; padding: 56px 0 32px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -.04em; margin-top: 14px; }
.page-hero .lead { margin: 14px 0 0; font-size: 17px; color: var(--text-2); max-width: 640px; }
.page-hero.center .lead { margin-inline: auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.page-hero.center .crumbs { justify-content: center; margin-bottom: 22px; }
.mono-example { background: linear-gradient(135deg, #6b6f7a, #3c3f47); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text-2); }
.crumbs .sep { opacity: .5; }
.ph-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ph-meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Filters ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 18px 26px; padding: 16px 18px; align-items: flex-end; }
.seg-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg-group legend, .seg-group .legend { display: block; padding: 0; margin-bottom: 8px; font-size: 11.5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.seg label { position: relative; cursor: pointer; }
.seg input, .chips-row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 7px; font-size: 13px; color: var(--text-2); transition: background .18s var(--ease), color .18s; white-space: nowrap; }
.seg span em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.seg label:hover span { color: var(--text); }
.seg input:checked + span { background: var(--surface-solid); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 0 0 1px var(--border-2); }
.seg input:focus-visible + span, .chips-row input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { position: relative; }
.fchip span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); transition: all .15s; cursor: pointer; }
.fchip:hover span { color: var(--text); border-color: var(--border-2); }
.fchip input:checked + span { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select { appearance: none; font: inherit; font-size: 13px; height: 34px; padding: 0 32px 0 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
select option { background: var(--surface-solid); color: var(--text); }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 2px 14px; min-height: 32px; }
.result-count { margin: 0; color: var(--text-2); font-size: 14px; }
.result-count strong { color: var(--text); font-variant-numeric: tabular-nums; }
.result-count [data-filter-note] { color: var(--warn); }

/* Featured slot */
.featured { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; margin-bottom: 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%), var(--surface); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.featured::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, transparent), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.feat-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.feat-l h3 { font-size: 16px; }
.feat-l p { margin: 3px 0 0; font-size: 13.5px; color: var(--text-2); }
.feat-tags { display: flex; gap: 6px; margin-bottom: 5px; }
.badge-feat, .badge-ex, .badge-ph { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.badge-feat { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.badge-ex, .badge-ph { color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-bd); }
.feat-actions { display: flex; gap: 8px; flex: none; }

/* Comparison table */
.table-shell { padding: 0; overflow: clip; }
.table-wrap { overflow: visible; }
.cmp-table thead th:first-child { border-top-left-radius: var(--radius); }
.cmp-table thead th:last-child { border-top-right-radius: var(--radius); }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.cmp-table thead th { position: sticky; top: var(--header-h); z-index: 2; text-align: left; font-weight: 500; font-size: 11.5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 16px; background: color-mix(in srgb, var(--surface-solid) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.cmp-table td { padding: 18px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cmp-table tbody tr { transition: background .15s; }
.cmp-table tbody tr:hover { background: var(--surface-2); }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tr.row-in { animation: rowIn .35s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(4px); } }
.c-rank { width: 44px; }
.rank { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.t-tool { display: flex; align-items: center; gap: 12px; }
.t-tool a { font-weight: 600; letter-spacing: -.01em; }
.t-tool a:hover { color: var(--accent); }
.t-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.t-price .chip { margin-top: 7px; height: 22px; font-size: 11px; padding: 0 8px; }
.t-note { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.c-act { text-align: right; }
td.c-act { text-align: right; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 40px !important; }
.note-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }

/* Callouts & placeholders */
.callout { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; color: var(--text-2); }
.callout strong { color: var(--text); }
.callout-warn { border-color: var(--warn-bd); background: var(--warn-bg); }
.placeholder { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px dashed var(--warn-bd); background: repeating-linear-gradient(-45deg, var(--warn-bg) 0 8px, transparent 8px 16px); font-size: 13.5px; color: var(--text-2); }
.placeholder::before { content: "Placeholder"; display: inline-block; margin-right: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); border: 1px solid var(--warn-bd); padding: 1px 6px; border-radius: 4px; vertical-align: 1px; }
.placeholder strong { color: var(--text); }

/* ---------- Tool page ---------- */
.tool-hero { display: flex; gap: 24px; align-items: flex-start; margin-top: 22px; }
.tool-hero h1 { margin-top: 0; }
.tool-hero .eyebrow { margin-bottom: 6px; }
.stub-tag { display: inline-block; margin: 12px 0 0; font-size: 12.5px; color: var(--warn); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.sec-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 14px; }
.sec-title h2 { font-size: 20px; }
.tool-grid > div > .sec-title:not(:first-child) { margin-top: 40px; }
.tool-grid .callout { margin-top: 14px; }
.plan-list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.plan { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--border); transition: background .15s; }
.plan:last-child { border-bottom: 0; }
.plan:hover { background: var(--surface-2); }
.plan-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.plan-name { font-weight: 600; }
.plan-note { font-size: 13px; color: var(--muted); }
.plan-r .price .amt { font-size: 20px; }
.source { margin: 12px 2px 0; font-size: 12.5px; color: var(--muted); }
.source a { display: inline-flex; align-items: center; gap: 4px; }
.side-panel { padding: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-h { font-size: 15px; margin-bottom: 14px; }
.kv { margin: 0; display: grid; }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; text-align: right; font-size: 13.5px; }
.side-note { font-size: 12px; color: var(--muted); margin: 14px 0; }

/* ---------- VS app ---------- */
.vs-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 34px; height: 20px; margin: 0; cursor: pointer; }
.switch .track { width: 34px; height: 20px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-2); position: relative; transition: background .2s; }
.switch .thumb { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-2); transition: transform .2s var(--ease), background .2s; }
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track .thumb { transform: translateX(14px); background: #fff; }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.vs-app { padding: 0; overflow: clip; }
.vs-row { display: grid; grid-template-columns: 220px 1fr 1fr; border-bottom: 1px solid var(--border); transition: background .2s, opacity .2s; }
.vs-row > div { padding: 15px 20px; min-width: 0; }
.vs-row > div + div { border-left: 1px solid var(--border); }
.vs-sticky { position: sticky; top: var(--header-h); z-index: 3; background: color-mix(in srgb, var(--surface-solid) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-2); }
.vs-headrow { border-bottom: 0; }
.vs-headrow .vs-label { display: flex; align-items: flex-end; }
.vs-tool { display: flex; flex-direction: column; gap: 12px; }
.vt-top { display: flex; gap: 12px; align-items: center; }
.vt-top strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.vt-top span { font-size: 13px; color: var(--muted); }
.vt-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vs-group-h { padding: 22px 20px 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--border); }
.vs-label { font-size: 13.5px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.vs-cell { font-size: 14px; }
.diff-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity .2s; }
[data-highlight="on"] .vs-row.is-diff { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
[data-highlight="on"] .vs-row.is-diff .vs-label { color: var(--text); }
[data-highlight="on"] .diff-dot { opacity: 1; }
[data-view="diff"] .vs-row[data-diff="0"] { display: none; }
.vs-row:not(.vs-headrow):hover { background: var(--surface-2); }
.mini-plan { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 13.5px; color: var(--text-2); }
.na { color: var(--muted); font-style: italic; font-size: 13px; }

/* ---------- Get featured ---------- */
.gf-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 28px; align-items: start; width: min(980px, 100% - 48px); }
.price-card { padding: 30px; overflow: hidden; border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: var(--shadow-lg), 0 0 80px -30px var(--glow-1); }
.pc-glow { position: absolute; inset: -40% -20% auto; height: 300px; background: radial-gradient(50% 50% at 50% 50%, var(--glow-1), transparent 70%); pointer-events: none; }
.price-card > *:not(.pc-glow) { position: relative; }
.pc-head h2 { font-size: 22px; margin-top: 16px; }
.pc-sub { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.pc-price { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 22px; }
.pc-amt { font-size: 60px; font-weight: 650; letter-spacing: -.05em; line-height: 1; }
.pc-per { color: var(--text-2); font-size: 15px; }
.checklist, .xlist { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; font-size: 14px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { flex: none; margin-top: 4px; width: 14px; height: 14px; color: var(--ok); }
.xlist { margin: 12px 0 0; color: var(--text-2); }
.xlist li { padding-left: 20px; position: relative; }
.xlist li::before { content: "×"; position: absolute; left: 2px; color: var(--muted); }
.pc-fine { font-size: 12px; color: var(--muted); margin: 10px 0 14px; text-align: center; }
.gf-side { display: grid; gap: 14px; padding-top: 4px; }
.gf-side .featured { margin: 0; }
.gf-list { padding: 22px; }
.gf-list h3 { font-size: 15px; }

/* ---------- About ---------- */
.doc { display: grid; grid-template-columns: 200px minmax(0, 720px); gap: 56px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 2px; }
.toc .muted-label { margin: 0 0 8px; }
.toc a { font-size: 13.5px; color: var(--text-2); padding: 5px 10px; border-left: 1px solid var(--border); transition: color .15s, border-color .15s; }
.toc a:hover, .toc a.active { color: var(--text); border-left-color: var(--accent); }
.prose h2 { font-size: 24px; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-2); font-size: 15.5px; }
.prose strong { color: var(--text); font-weight: 600; }
.chip-line { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Go & stubs ---------- */
.go-card { margin: 26px auto 16px; padding: 6px 18px; text-align: left; max-width: 460px; }
.go-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.go-row:last-child { border-bottom: 0; }
.page-hero.center .placeholder { text-align: left; max-width: 560px; margin: 0 auto 16px; }
.stub-skel { margin: 30px auto 0; max-width: 560px; padding: 18px; display: grid; gap: 10px; }
.stub-skel i { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 40%, transparent), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.stub-skel i:nth-child(2) { width: 80%; } .stub-skel i:nth-child(3) { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; max-width: 340px; margin: 14px 0 0; }
.foot-h { font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.site-footer ul a { color: var(--text-2); } .site-footer ul a:hover { color: var(--text); }
.kbd-list li { display: flex; align-items: center; gap: 4px; color: var(--text-2); }
.kbd-list kbd:last-of-type { margin-right: 6px; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }

/* ---------- Command palette ---------- */
.palette-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(4,5,8,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .18s ease both; }
[data-theme="light"] .palette-backdrop { background: rgba(20,24,40,.25); }
.palette { position: fixed; z-index: 91; top: 14vh; left: 50%; width: min(640px, calc(100% - 24px)); transform: translateX(-50%); border-radius: 16px; overflow: hidden;
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent); border: 1px solid var(--border-2); box-shadow: var(--shadow-lg), 0 0 100px -30px var(--glow-1); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); animation: palIn .2s var(--ease) both; }
@keyframes palIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 58px; border-bottom: 1px solid var(--border); color: var(--muted); }
.palette-input svg { width: 18px; height: 18px; }
.palette-input input { flex: 1; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.palette-input input::placeholder { color: var(--muted); }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: min(420px, 55vh); overflow: auto; }
.pal-group { padding: 10px 10px 6px; font-size: 11.5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; cursor: pointer; color: var(--text-2); }
.pal-item[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.pal-ico { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.pal-ico.ai { color: #ff7aa8; border-color: color-mix(in srgb, #ff7aa8 35%, var(--border)); background: rgba(255,90,140,.08); }
.pal-item .mono { --s: 28px; border-radius: 8px; }
.pal-main { flex: 1; min-width: 0; }
.pal-title { display: block; color: var(--text); font-size: 14px; font-weight: 500; }
.pal-title mark { background: none; color: var(--accent); }
.pal-desc { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-meta { flex: none; font-size: 12px; color: var(--muted); }
.pal-meta .price .amt { font-size: 13px; }
.pal-enter { opacity: 0; }
.pal-item[aria-selected="true"] .pal-enter { opacity: 1; }
.pal-empty { padding: 28px; text-align: center; color: var(--muted); font-size: 14px; }
.palette-foot { display: flex; gap: 16px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.palette-foot span { display: inline-flex; gap: 4px; align-items: center; }
.pf-right { margin-left: auto; }

/* ---------- Assistant ---------- */
.ai-launcher { position: fixed; right: max(22px, env(safe-area-inset-right, 0px)); bottom: max(22px, env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 6px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent); border: 1px solid var(--border-2); box-shadow: var(--shadow-lg), 0 10px 40px -10px rgba(255,90,140,.4); backdrop-filter: blur(14px); transition: transform .25s var(--ease), box-shadow .25s; }
.ai-launcher:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), 0 16px 50px -10px rgba(255,90,140,.55); }
.ai-launcher[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(.9); }
.ai-orb { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; background: radial-gradient(circle at 30% 25%, #ffb3cb, #ff4f8b 45%, #8b4dff 100%); box-shadow: inset 0 1px 1px rgba(255,255,255,.5), 0 0 18px rgba(255,79,139,.45); }
.ai-orb.lg { width: 36px; height: 36px; }
.ai-orb.sm { width: 24px; height: 24px; } .ai-orb.sm svg { width: 12px; height: 12px; }
.ai-panel { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: min(440px, calc(100vw - 24px)); height: min(660px, calc(100vh - 44px)); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent); border: 1px solid var(--border-2); box-shadow: var(--shadow-lg), 0 0 100px -30px rgba(255,79,139,.35); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); transform-origin: bottom right; animation: aiIn .28s var(--ease) both; }
@keyframes aiIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(255,79,139,.08), transparent 60%); }
.ai-id { flex: 1; min-width: 0; }
.ai-id h2 { font-size: 15px; letter-spacing: -.01em; }
.ai-id p { margin: 1px 0 0; font-size: 12px; color: var(--muted); }
.proto-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); border: 1px solid var(--warn-bd); background: var(--warn-bg); padding: 0 5px; border-radius: 4px; }
.ai-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.msg { max-width: 92%; font-size: 14px; line-height: 1.55; animation: rowIn .3s var(--ease) both; }
.msg-user { align-self: flex-end; background: var(--text); color: var(--bg); padding: 9px 13px; border-radius: 14px 14px 4px 14px; }
.msg-ai { align-self: flex-start; display: flex; gap: 10px; }
.msg-ai .bubble { background: var(--surface-2); border: 1px solid var(--border); padding: 12px 14px; border-radius: 4px 14px 14px 14px; min-width: 0; }
.msg-ai .bubble p { margin: 0 0 8px; color: var(--text); }
.msg-ai .bubble p:last-child { margin-bottom: 0; }
.msg-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ans-rows { display: grid; gap: 6px; margin: 10px 0; }
.ans-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.ans-row .who { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ans-row .who .mono { --s: 20px; border-radius: 6px; font-size: 10px; }
.ans-row .r { display: flex; align-items: center; gap: 8px; }
.ans-row .btn { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.cites { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-2); display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.cites a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 2px; }
.cites .chip { height: 22px; font-size: 11px; justify-self: start; margin-bottom: 4px; }
.refuse { border-color: var(--warn-bd) !important; background: var(--warn-bg) !important; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ai-welcome { text-align: center; padding: 18px 8px 4px; color: var(--text-2); font-size: 14px; }
.ai-welcome .ai-orb { width: 48px; height: 48px; margin: 0 auto 12px; }
.ai-welcome .ai-orb svg { width: 22px; height: 22px; }
.ai-welcome h3 { font-size: 18px; color: var(--text); margin-bottom: 6px; }
.ai-welcome p { margin: 0 auto; max-width: 300px; }
.ai-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 16px 10px; }
.ai-suggest button { font: inherit; font-size: 12.5px; color: var(--text-2); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; transition: all .15s; }
.ai-suggest button:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
.ai-form { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 8px 8px 8px 14px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.ai-form:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, var(--border-2)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.ai-form textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; line-height: 1.45; padding: 5px 0; max-height: 120px; }
.ai-form textarea::placeholder { color: var(--muted); }
.ai-send { width: 32px; height: 32px; flex: none; border-radius: 9px; border: 0; background: var(--text); color: var(--bg); display: grid; place-items: center; cursor: pointer; transition: transform .15s, opacity .15s; }
.ai-send:hover { transform: translateY(-1px); }
.ai-fine { margin: 8px 16px 12px; font-size: 11px; color: var(--muted); text-align: center; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .gf-grid { grid-template-columns: 1fr; max-width: 560px; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc .muted-label { width: 100%; }
  .toc a { border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }
}
@media (max-width: 1120px) {
  .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 54; }
  body.nav-open .nav-backdrop { display: block; }
  body.nav-open { overflow: hidden; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; flex-direction: column; padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--surface-solid); display: none; z-index: 55; overflow: auto; box-shadow: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; min-height: 44px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; position: relative; z-index: 56; }
  .kbar-trigger { min-width: 0; padding: 0 10px; }
  .kbar-trigger .kbar-label, .kbar-trigger kbd { display: none; }
}
@media (max-width: 860px) {
  .table-wrap { overflow-x: auto; }
  .cmp-table thead th { top: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .note-grid { grid-template-columns: 1fr; }
  .vs-row { grid-template-columns: 1fr 1fr; }
  .vs-row > .vs-label { grid-column: span 2; padding: 12px 14px 0; border-left: 0; }
  .vs-row > .vs-cell { padding: 8px 14px 14px; }
  .vs-row > div + div { border-left: 0; }
  .vs-row > .vs-cell + .vs-cell { border-left: 1px solid var(--border); }
  .vs-headrow > .vs-label { display: none; }
  .vs-headrow .vs-tool { padding: 14px; }
  .vs-headrow .vs-tool + .vs-tool { border-left: 1px solid var(--border); }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap, .wrap.narrow, .gf-grid { width: calc(100% - var(--gutter) * 2); }
  .draft-bar { font-size: 11px; }
  .bar { gap: 12px; }
  .hero { padding: 52px 0 48px; }
  .hero-title { font-size: 40px; }
  .hero-lead { font-size: 16px; }
  .hero-search { height: 52px; font-size: 14.5px; padding-left: 16px; }
  .hs-keys { display: none; }
  .ask-pill .ask-q { display: none; }
  .stat { padding: 16px; }
  .stat dd { font-size: 26px; }
  .stat dd.stat-date { font-size: 18px; }
  .aw-head { display: none; }
  .pv-row { grid-template-columns: 22px 1fr auto; height: auto; padding: 12px 14px; row-gap: 6px; }
  .pv-chip { grid-column: 2 / 4; }
  .pv-pills { display: none; }
  .bento { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .vs-mini .mono.lg { --s: 48px; }
  .filterbar { gap: 16px; }
  .seg { width: 100%; } .seg label { flex: 1; } .seg span { justify-content: center; width: 100%; padding: 0 8px; }
  .featured { flex-direction: column; align-items: flex-start; }
  /* table -> stacked cards */
  .cmp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table td, .cmp-table th { display: block; }
  .cmp-table tr { padding: 14px 16px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .cmp-table tbody tr:last-child { border-bottom: 0; }
  .cmp-table td { padding: 0; border: 0; }
  .cmp-table td.c-rank { display: none; }
  .cmp-table th[scope="row"], .cmp-table td[data-col="price"], .cmp-table td.td-tool, .cmp-table td.td-price { grid-column: 1 / -1; }
  .cmp-table td[data-label]::before { content: attr(data-label); display: block; font-size: 10.5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
  .cmp-table td.td-tool::before, .cmp-table td.td-price::before { display: none; }
  .cmp-table td.c-act, .cmp-table td[data-col="cta"] { grid-column: 1 / -1; text-align: left; margin-top: 4px; }
  .cmp-table td.c-act .btn { width: 100%; }
  .tool-hero { flex-direction: column; gap: 16px; }
  .plan { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pc-amt { font-size: 52px; }
  .price-card { padding: 22px; }
  .vt-actions .btn-ghost { display: none; }
  .vt-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .vs-toolbar .seg { width: auto; }
  .ai-launcher { right: max(14px, env(safe-area-inset-right, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); height: 52px; width: 52px; padding: 0; justify-content: center; gap: 0; }
  .ai-launcher > span:not(.ai-orb) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .ai-panel { right: 0; bottom: 0; width: 100vw; height: 88vh; height: 88dvh; border-radius: 20px 20px 0 0; }
  .palette { top: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (forced-colors: active) { .chip, .pill .dot, .status { border: 1px solid CanvasText; } }
.cat-mini { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.cat-mini li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; }
.cat-mini li span:nth-child(2) { flex: 1; font-weight: 500; }
.cat-mini .price .amt { font-size: 13.5px; }
.cat-mini + .cat-tools .mono { display: none; }
.cat-mini + .cat-tools .cat-count { margin-left: 0; }
@media (max-width: 640px) { .footer-grid > div:last-child { display: none; } }

/* --- Data import + preview additions (Nov 17, 2026) --- */
.chip-confirm { background: color-mix(in srgb, #e3a008 16%, transparent); color: #8a5a00; border: 1px solid color-mix(in srgb, #e3a008 40%, transparent); font-size: 11px; margin-left: 6px; }
[data-theme="dark"] .chip-confirm, :root:not([data-theme="light"]) .chip-confirm { color: #f6d58a; }
.price-confirm { flex-wrap: wrap; }
.price { display: inline-flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.checked-on { font-size: 12px; color: var(--muted); margin-top: 4px; }
.checked-on a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.plan-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.ev-list { margin: 0; padding-left: 1.1em; font-size: 12.5px; color: var(--muted); }
.featured-paid { padding: 18px 20px; margin-bottom: 20px; border: 1px dashed color-mix(in srgb, var(--accent, #40E390) 45%, var(--border)); }
.featured-paid h2 { margin: 8px 0 6px; font-size: 1.1rem; }
.featured-paid.tight { margin-top: 12px; padding: 12px 14px; }
.tool-head { display: flex; align-items: center; gap: 12px; }
.tool-head h1 { margin: 0; }
.tool-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.doc-wide { max-width: var(--content-max); width: 100%; }
.filter-count { margin: 0; font-size: 13px; color: var(--muted); }
.status-soon { background: color-mix(in srgb, var(--muted) 18%, transparent); }
.why-pick { margin-top: 8px; }
.badge-not-verified { font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
.canada-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; padding: 0; list-style: none; }
.canada-badges li,
.canada-badges li::marker,
.canada-badges li::before { list-style: none; content: none; padding-left: 0; margin-left: 0; }
.tc-canada ul { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tc-canada li,
.tc-canada li::marker,
.tc-canada li::before { list-style: none; content: none; }
.checked-on { font-size: 13px; color: var(--muted); line-height: 1.45; }
.aic-breakdown, .aic-source { display: block; margin-top: 4px; max-width: 36em; }
.choose-box, .calc-box { margin-top: 28px; padding: 20px 22px; }
.choose-q, .calc-row { margin: 12px 0; }
.choose-q label, .calc-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.choose-q select, .calc-row select, .calc-row input, .choose-q input { width: 100%; max-width: none; }
@media (min-width: 800px) {
  .calc-box form, .choose-box form, form[data-calc-form] { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; align-items: end; }
  .calc-box form > h2, .calc-box form > p, .calc-box form > button, .choose-box form > p, .choose-box form > button { grid-column: 1 / -1; }
}

.choose-results, .calc-results { margin-top: 16px; }
.price-log-empty { padding: 20px; }

.vs-links{margin:24px 0 8px}.vs-links ul{margin:8px 0 0;padding-left:1.2em}

.tax-table{width:100%;border-collapse:collapse;font-size:0.92rem}
.tax-table th,.tax-table td{border-bottom:1px solid rgba(15,23,22,.12);padding:8px 10px;text-align:left;vertical-align:top}
.tax-table thead th{border-bottom:2px solid rgba(15,23,22,.2)}


/* Side-by-side comparison */
.aic-controls{margin-bottom:20px}
.aic-toolbar{display:flex;flex-direction:column;gap:12px}
.aic-cat-row select{max-width:100%;width:min(100%,420px)}
.aic-chip-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.aic-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 6px 6px 8px;border-radius:999px;background:var(--surface-2);border:1px solid var(--border);font-size:14px;font-weight:500}
.aic-chip .mono{--s:22px;border-radius:50%}
.aic-chip-x{appearance:none;border:0;background:transparent;color:var(--text-2);width:24px;height:24px;border-radius:50%;cursor:pointer;font-size:16px;line-height:1}
.aic-chip-x:hover{background:var(--surface-2);color:var(--text)}
.aic-add-wrap{position:relative}
.aic-add-menu{position:absolute;left:0;top:calc(100% + 6px);z-index:8;min-width:260px;max-height:320px;overflow:auto;padding:8px;border-radius:var(--radius);background:var(--surface-solid);border:1px solid var(--border-2);box-shadow:var(--shadow-lg)}
.aic-add-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:8px 10px;border:0;background:transparent;color:var(--text);border-radius:10px;cursor:pointer}
.aic-add-item:hover{background:var(--surface-2)}
.aic-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px 20px;margin:16px 0 8px}
.aic-inputs .calc-row{margin:0}
.field-help{margin:6px 0 0;font-size:12px;color:var(--muted);max-width:36ch}
.aic-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.aic-scroll-clip{max-width:100%;width:100%;overflow:hidden;contain:paint;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface-solid)}
.aic-scroll{overflow:auto;max-width:100%;width:100%;-webkit-overflow-scrolling:touch}
.aic-table{border-collapse:separate;border-spacing:0;width:100%;min-width:640px}
.aic-table th,.aic-table td{padding:14px 16px;border-bottom:1px solid var(--border);vertical-align:top;background:var(--surface-solid)}
.aic-table tbody th{text-align:left;font-size:13px;font-weight:600;color:var(--text-2);width:148px;min-width:132px}
.aic-table td{min-width:220px}
.aic-table thead th{position:sticky;top:var(--header-h);z-index:3;border-bottom:1px solid var(--border-2);box-shadow:0 8px 16px -12px rgba(0,0,0,.5)}
.aic-table thead th.aic-stub,
.aic-table tbody th{position:sticky;left:0;z-index:2;background:var(--surface-solid);box-shadow:8px 0 16px -12px rgba(0,0,0,.45)}
.aic-table thead th.aic-stub{z-index:5;top:var(--header-h)}
.aic-col-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.aic-col-head .mono{--s:32px}
.aic-name{font-size:16px;font-weight:650;letter-spacing:-.02em}
.aic-total{min-height:7.5rem}
.aic-amt{display:block;font-size:clamp(22px,2.2vw,32px);font-weight:720;letter-spacing:-.04em;line-height:1.1;color:var(--text)}
.aic-amt-sm{font-size:16px;font-weight:650;letter-spacing:-.02em}
.aic-amt-confirm{font-size:20px;color:var(--warn)}
.aic-contact{font-weight:650;color:var(--warn);text-decoration:underline;text-underline-offset:2px}
.aic-contact:hover{text-decoration-thickness:2px}
.aic-amt-mid{color:var(--text)}
.aic-sub,.aic-y36,.aic-plan-name{font-size:12px;color:var(--muted);margin-top:4px}
.aic-plan-name{color:var(--text-2);font-weight:550}
.aic-lowest{display:inline-block;margin-bottom:6px;padding:2px 8px;border-radius:999px;background:var(--ok-bg);border:1px solid var(--ok-bd);color:var(--ok);font-size:11px;font-weight:650;letter-spacing:.02em;text-transform:uppercase}
.aic-tick,.aic-cross{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;font-size:12px;font-weight:700;margin-right:4px}
.aic-unknown{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;font-size:12px;font-weight:700;margin-right:4px;background:var(--surface-2);color:var(--muted)}
.aic-tick{background:var(--ok-bg);color:var(--ok)}
.aic-cross{background:var(--no-bg);color:var(--muted)}
.aic-fit{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:12.5px}
.aic-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px}
.aic-chips li{font-size:12px;padding:2px 8px;border-radius:999px;border:1px solid var(--border);color:var(--text-2)}
.aic-muted{color:var(--muted);font-size:13px}
.aic-plan-sel{width:100%;max-width:100%}
.aic-cta-row td{padding-top:18px;padding-bottom:18px}
.aic-disc{margin:12px 0 16px}
.aic-how{margin-top:8px}
.aic-how summary{cursor:pointer;font-weight:650;padding:4px 0}
.aic-how[open] summary{margin-bottom:10px}
@media (max-width:699px){
  .aic-table{min-width:0}
  .aic-table td{min-width:210px}
  .aic-table tbody th,.aic-table thead th.aic-stub{min-width:108px;width:108px;padding-left:12px;padding-right:10px}
}



/* Category tool cards + filter sheet */
.tool-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 8px 0 28px; }
.tool-card { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tool-card .tc-head { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.tool-card .tool-link { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; }
.tool-card .tc-name { min-width: 0; }
.tool-card .tc-price .amt { font-size: clamp(26px, 4vw, 34px); font-weight: 720; letter-spacing: -.04em; }
.tool-card .tc-year { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.tc-year-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); }
.tc-year-amt { font-size: 16px; font-weight: 650; }
.tc-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }
.tc-points li { padding-left: 0; }
.tc-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.tc-actions .btn { flex: 1; justify-content: center; }
.featured-note { margin: 8px 0 28px; }
.filters-launch { display: none; margin-bottom: 14px; }
.filter-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; }
.filter-sheet-head, .filter-sheet-actions { display: none; }
.filter-backdrop { display: none; }
.seg { flex-wrap: wrap; max-width: 100%; }
.seg-group { max-width: 100%; }

@media (max-width: 800px) {
  .filters-launch { display: flex; }
  .filter-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 65; }
  .filter-backdrop[hidden] { display: none !important; }
  body.filters-open { overflow: hidden; }
  .filterbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; margin: 0; border-radius: 16px 16px 0 0; max-height: min(86vh, 640px); overflow: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateY(110%); transition: transform .22s var(--ease); box-shadow: var(--shadow-lg); }
  body.filters-open .filterbar { transform: none; }
  .filter-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
  .filter-sheet-head h2 { font-size: 18px; }
  .filter-sheet-actions { display: flex; gap: 8px; margin-top: 16px; }
  .filter-sheet-actions .btn { flex: 1; justify-content: center; }
  .seg { width: 100%; }
  .seg label { flex: 1 1 auto; }
  .page-hero h1 { font-size: clamp(28px, 8vw, 40px); }
}

/* Page header band already uses --band; keep glow inside */
.hero-glow { max-width: none; }

.crumbs a, .crumbs span { min-height: 32px; display: inline-flex; align-items: center; }
.crumbs { row-gap: 4px; overflow-wrap: anywhere; }
.site-footer ul a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 800px) {
  .seg span, .fchip span { min-height: 44px; }
}

/* Tax table: stack as cards on phones */
.tax-table { width: 100%; border-collapse: collapse; }
.tax-table th, .tax-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.tax-table a { overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 800px) {
  .tax-scroll { overflow: visible; }
  .tax-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tax-table, .tax-table tbody, .tax-table tr, .tax-table th, .tax-table td { display: block; width: 100%; }
  .tax-table tr { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; box-shadow: var(--shadow); }
  .tax-table th[scope="row"] { font-size: 16px; font-weight: 650; padding: 0 0 10px; border: 0; }
  .tax-table td { padding: 8px 0; border: 0; border-top: 1px solid var(--border); }
  .tax-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
  .page-hero h1 { overflow-wrap: anywhere; }
}

/* comparison swipe hint + mid-width columns */
.aic-swipe-hint { display: none; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 1100px) {
  .aic-swipe-hint { display: block; }
  .aic-scroll-clip { position: relative; }
  .aic-scroll-clip::after { content: ""; position: absolute; top: 0; right: 0; width: 28px; height: 100%; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface-solid) 88%, transparent)); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
  .aic-table td, .aic-table th.aic-col { min-width: 160px; }
  .aic-table tbody th, .aic-table thead th.aic-stub { min-width: 96px; width: 96px; }
}
@media (max-width: 699px) {
  .aic-table td, .aic-table th.aic-col { min-width: 200px; }
}

/* Wide screens: keep the main column visibly framed */
@media (min-width: 1440px) {
  main { background: var(--main); box-shadow: inset 0 1px 0 var(--border); }
}

@media (max-width: 1439px) {
  .ai-launcher { height: 52px; width: 52px; padding: 0; justify-content: center; gap: 0; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
  .ai-launcher > span:not(.ai-orb) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}
.ai-launcher.is-away { opacity: 0; pointer-events: none; transform: scale(.9); }

.aic-plan-ctl { position: relative; min-width: 0; }
.aic-plan-face { display: block; white-space: normal; overflow: visible; text-overflow: unset; word-break: break-word; font-size: 13px; line-height: 1.35; padding: 8px 28px 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); }
.aic-plan-ctl .aic-plan-sel { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.vs-links { margin: 28px 0 8px; padding-top: 20px; border-top: 1px solid var(--border); }
.vs-links h2 { margin-bottom: 10px; }
.vs-links ul { margin: 8px 0 0; padding-left: 1.15em; display: grid; gap: 8px; }

/* ===== comparison light comparison surface (and pair-page compare columns) ===== */
.aic-light, .aic-compare.aic-light {
  --aic-bg: #F7F8FA;
  --aic-bg-2: #EEF0F4;
  --aic-ink: #151922;
  --aic-ink-2: #3A4150;
  --aic-muted: #5C6370;
  --aic-line: #D8DCE3;
  --aic-accent: #14854C;
  --aic-accent-bg: #E7F6EE;
  --aic-best-bg: #E7F6EE;
  --aic-warn: #8A4B00;
}
.aic-light-surface {
  background: var(--aic-bg);
  border: 1px solid var(--aic-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(15, 18, 24, .12);
  color: var(--aic-ink);
  overflow-x: auto;
  overflow-y: visible;
}
.aic-light .aic-table { min-width: 680px; background: var(--aic-bg); color: var(--aic-ink); }
.aic-light .aic-scroll-clip, .aic-compare .aic-scroll-clip, .aic-compare .aic-scroll { contain: none; overflow-x: auto; overflow-y: visible; }
.aic-light .aic-table thead th, .aic-light .aic-table thead th.aic-stub { top: var(--header-h); }
.aic-light .aic-table th,
.aic-light .aic-table td {
  padding: 18px 20px;
  vertical-align: middle;
  border-bottom: 1px solid var(--aic-line);
  background: var(--aic-bg);
  color: var(--aic-ink);
}
.aic-light .aic-table tbody tr:nth-child(even) td,
.aic-light .aic-table tbody tr:nth-child(even) th { background: var(--aic-bg-2); }
.aic-light .aic-table thead th {
  background: #fff;
  color: var(--aic-ink);
  box-shadow: 0 8px 16px -12px rgba(15,18,24,.25);
  border-bottom: 1px solid var(--aic-line);
}
.aic-light .aic-table tbody th,
.aic-light .aic-table thead th.aic-stub {
  background: #fff;
  color: var(--aic-ink-2);
  font-size: 13.5px;
  font-weight: 650;
  box-shadow: 8px 0 16px -12px rgba(15,18,24,.18);
}
.aic-light .aic-table tbody tr:nth-child(even) th { background: var(--aic-bg-2); }
.aic-light .aic-table thead th.aic-stub { background: #fff; }
.aic-light .aic-name { color: var(--aic-ink); font-size: 17px; font-weight: 700; }
.aic-light .aic-amt { color: var(--aic-ink); font-size: clamp(16px, 1.45vw, 22px); font-weight: 750; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.aic-light tbody tr.aic-core:first-of-type th, .aic-light tbody tr.aic-core:first-of-type td { padding-top: 16px; padding-bottom: 16px; }
.aic-light .aic-amt-sm { color: var(--aic-ink); font-size: 18px; font-weight: 700; }
.aic-light .aic-sub, .aic-light .aic-muted, .aic-light .aic-plan-name { color: var(--aic-muted); }
.aic-light .aic-amt-confirm { color: var(--aic-warn); }
.aic-light .aic-contact { color: var(--aic-warn); }
.aic-light td.aic-best, .aic-light th.aic-best {
  background: var(--aic-best-bg) !important;
  box-shadow: inset 3px 0 0 var(--aic-accent);
}
.aic-light .aic-lowest {
  background: var(--aic-accent-bg);
  border-color: var(--aic-accent);
  color: var(--aic-accent);
}
.aic-light .aic-tick { background: var(--aic-accent-bg); color: var(--aic-accent); }
.aic-light .aic-unknown { background: #E8E6E3; color: #5C6370; }
.aic-light .aic-cross { background: #ECEDEF; color: var(--aic-muted); }
.aic-light .aic-chips li { border-color: var(--aic-line); color: var(--aic-ink-2); background: #fff; }
.aic-light .aic-plan-face {
  background: #fff;
  border-color: var(--aic-line);
  color: var(--aic-ink);
}
.aic-light .aic-fit-short { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12.5px; color: var(--aic-ink-2); }
.aic-light .aic-fit-short li { display: inline-flex; align-items: center; gap: 2px; }
.aic-light .aic-trial-s { margin-left: 6px; font-size: 12.5px; color: var(--aic-ink-2); }
.aic-light a { color: var(--aic-accent); }
.aic-light a.btn-primary { color: #fff; background: var(--aic-accent); border-color: var(--aic-accent); }
.aic-light a.btn-ghost { color: var(--aic-ink); border-color: var(--aic-line); background: #fff; }
.aic-inline-link { font-size: 12.5px; margin-left: 4px; }

/* Tooltips — tap-friendly */
.aic-tip { position: relative; display: inline-block; max-width: 100%; }
.aic-tip-btn {
  appearance: none; border: 0; background: transparent; color: inherit;
  font: inherit; text-align: left; cursor: pointer; padding: 0; max-width: 100%;
}
.aic-tip-i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 4px; border-radius: 50%;
  border: 1px solid currentColor; font-size: 10px; font-weight: 700; vertical-align: 1px; opacity: .7;
}
.aic-tip-bubble {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 8;
  min-width: 180px; max-width: min(280px, 70vw);
  padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; font-weight: 500;
  background: #151922; color: #F7F8FA; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.aic-tip-btn[aria-expanded="true"] + .aic-tip-bubble { display: block; }

/* Mobile cards + sticky totals */
.aic-cards { display: none; }
.aic-sticky-totals { display: none; }
.aic-compare .aic-swipe-hint { display: none; }

@media (max-width: 720px) {
  html:has([data-compare-builder]), body:has([data-compare-builder]) { overflow-x: hidden; }
  .aic-compare { overflow: hidden; max-width: 100%; width: 100%; }
  .aic-compare .aic-scroll-clip { display: none; }
  .aic-cards { display: block; margin: 0; max-width: 100%; width: 100%; min-width: 0; overflow: hidden; }
  .aic-card-track {
    display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; padding: 4px 4px 12px; max-width: 100%; min-width: 0;
  }
  .aic-card {
    flex: 0 0 calc(100% - 8px); scroll-snap-align: start; scroll-snap-stop: always;
    background: #F7F8FA; color: #151922; border: 1px solid #D8DCE3;
    border-radius: 16px; padding: 18px 18px 16px; box-shadow: 0 8px 24px rgba(15,18,24,.1);
  }
  .aic-card.aic-best { box-shadow: inset 3px 0 0 #14854C, 0 8px 24px rgba(15,18,24,.1); background: #E7F6EE; }
  .aic-card-total { margin: 10px 0 14px; }
  .aic-card .aic-amt { font-size: 32px; color: #151922; }
  .aic-card-row {
    display: grid; grid-template-columns: 42% 1fr; gap: 10px 12px;
    padding: 12px 0; border-top: 1px solid #D8DCE3; align-items: start;
  }
  .aic-card-k { font-size: 12.5px; font-weight: 650; color: #3A4150; }
  .aic-card-v { color: #151922; font-size: 14px; }
  .aic-card { padding-bottom: 88px; }
  .aic-card-cta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
  .aic-sticky-totals { justify-content: flex-start; gap: 4px; }
  .aic-sticky-item { min-width: 70px; flex: 1 1 0; padding: 4px 4px; }
  .aic-sticky-amt { font-size: 12px; }
  .aic-card-nav { display: flex; align-items: center; justify-content: space-between; margin: 6px 4px 0; color: var(--muted); font-size: 13px; }
  .aic-dots { display: flex; gap: 6px; }
  .aic-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--border-2); padding: 0; cursor: pointer; }
  .aic-dot.is-on { background: #14854C; }
  .aic-compare .aic-swipe-hint { display: block; color: var(--muted); }
  .aic-sticky-totals {
    display: flex; gap: 8px; overflow-x: auto;
    position: sticky; bottom: 0; z-index: 6;
    margin: 16px -4px 0; padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff; color: #151922; border: 1px solid #D8DCE3; border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 24px rgba(15,18,24,.12);
  }
  .aic-sticky-item { flex: 1 0 auto; min-width: 88px; text-align: center; padding: 4px 8px; }
  .aic-sticky-item.aic-best { color: #14854C; font-weight: 700; }
  .aic-sticky-name { display: block; font-size: 11px; color: #5C6370; }
  .aic-sticky-amt { display: block; font-size: 13px; font-weight: 750; letter-spacing: -.02em; }
  /* Reserve space so the sticky bar and Ask Ruby don't cover content */
  body:has([data-compare-builder]) { padding-bottom: calc(var(--ruby-space, 88px) + 72px); }
}

/* Pair-page comparison columns: light surface inside dark chrome */
.cmp-light.compare-grid { gap: 20px; }
.cmp-light .compare-col {
  background: #F7F8FA; color: #151922;
  border: 1px solid #D8DCE3;
  box-shadow: 0 8px 28px rgba(15,18,24,.12);
}
.cmp-light .compare-col h2, .cmp-light .compare-col h3 { color: #151922; }
.cmp-light .compare-col p, .cmp-light .compare-col li { color: #3A4150; }
.cmp-light .compare-col .t-note, .cmp-light .compare-col .checked-on { color: #5C6370; }
.cmp-light .compare-col .price .amt { color: #151922; font-weight: 750; }
.cmp-light .compare-col a:not(.btn) { color: #14854C; }
.cmp-light .compare-col .btn-primary { background: #14854C; border-color: #14854C; color: #fff; }
.cmp-light .compare-col .btn-ghost { color: #151922; border-color: #D8DCE3; background: #fff; }

/* ===== Light theme polish (primary look) + theme banner ===== */
[data-theme="light"] .site-header {
  background: #fff;
  border-bottom-color: #D8DCE3;
}
[data-theme="light"] .draft-bar {
  background: #EEF0F4;
  color: #3A4150;
  border-bottom-color: #D8DCE3;
}
[data-theme="light"] .site-footer {
  background: #EEF0F4;
  border-top: 1px solid #D8DCE3;
}
[data-theme="light"] .nav a:hover { background: #EEF0F4; }
[data-theme="light"] .icon-btn,
[data-theme="light"] .kbar-trigger {
  background: #fff;
  border-color: #D8DCE3;
}
[data-theme="light"] .chip,
[data-theme="light"] .tag,
[data-theme="light"] .status {
  border-color: #D8DCE3;
}
[data-theme="light"] .hero-glow,
[data-theme="light"] .hero::before { opacity: .22; }

.theme-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 13.5px;
}
.theme-banner[hidden] { display: none !important; }
.theme-banner p { margin: 0; font-weight: 650; }
.theme-banner-actions { display: flex; align-items: center; gap: 8px; }
.theme-banner-x {
  width: 32px; height: 32px; display: inline-grid; place-items: center;
  border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer;
}
.theme-banner-x:hover { color: var(--text); background: var(--surface-2); }
.theme-banner [data-theme-pick="light"],
.theme-banner [data-theme-pick="dark"] {
  min-width: 72px;
}

.theme-menu-item { display: none; }
@media (max-width: 1120px) {
  .theme-menu-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 12px;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 16px;
    cursor: pointer;
  }
  .theme-menu-item .i-sun,
  .theme-menu-item .i-moon { flex: none; }
}

/* Keep the comparison comparison light even when the site chrome is dark.
   When the site itself is light, the same surface still works. */

/* === AIC layout fix 2026-11-18 === */

/* Form card padding: fields must not sit flush to the card edge. */
.aic-controls.card,
.aic-controls {
  padding: 24px;
  box-sizing: border-box;
}
.aic-how.card,
.aic-compare .card.pad,
details.aic-how.card {
  padding: 24px;
  box-sizing: border-box;
}
.aic-toolbar { gap: 16px; }
.aic-inputs {
  display: grid;
  grid-template-columns: 1fr;
  margin: 20px 0;
  gap: 20px;
}
.aic-input-pair { grid-column: 1 / -1; }
.aic-actions { margin-top: 20px; }
.aic-controls .calc-row label { margin-bottom: 8px; }
.aic-controls .field-help { margin-top: 8px; max-width: none; overflow: visible; white-space: normal; }

/* Employees + Province on one even row */
.aic-input-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  align-items: start;
  min-width: 0;
}
.aic-input-pair > .calc-row,
.aic-inputs > .calc-row { min-width: 0; }
.aic-controls .calc-row input,
.aic-controls .calc-row select {
  width: 100%;
  max-width: 100%;
  height: 44px;
  box-sizing: border-box;
}

/* Add-tool menu: in-flow panel so it pushes inputs down instead of covering them */
.aic-add-wrap { position: static; }
.aic-add-panel {
  position: relative;
  z-index: 30;
  width: 100%;
  max-width: 100%;
  max-height: min(280px, 50vh);
  overflow: auto;
  margin: 0;
  padding: 8px;
  box-sizing: border-box;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(15, 18, 24, .18);
}
.aic-add-panel .aic-add-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  text-align: left;
  box-sizing: border-box;
}
.aic-add-panel .aic-add-item:focus {
  outline: 2px solid var(--accent, #14854C);
  outline-offset: -2px;
}

/* Sticky tool-name header: solid surface, no blank band, first data row stays clear.
   overflow-x:auto on the table scroller forces overflow-y:auto, so top:var(--header-h)
   was creating a 60px empty band and covering the 12-month row. Stick to the scroller
   top by default; on wide screens drop the inner scroller so the head can sit under
   the site header when the page scrolls. */
.aic-table thead th,
.aic-light .aic-table thead th,
.aic-light .aic-table thead th.aic-stub {
  position: sticky;
  top: 0;
  background: #fff !important;
  z-index: 6;
  box-shadow: inset 0 -1px 0 var(--aic-line, var(--border));
}
.aic-table thead th.aic-stub { z-index: 7; }
.aic-table tbody tr.aic-core:first-of-type th,
.aic-table tbody tr.aic-core:first-of-type td {
  scroll-margin-top: calc(var(--header-h) + 100px);
}
.aic-compare,
.aic-table {
  scroll-margin-top: var(--header-h);
}
@media (min-width: 1100px) {
  .aic-compare .aic-scroll-clip,
  .aic-compare .aic-scroll,
  .aic-light .aic-scroll-clip,
  .aic-light .aic-scroll {
    overflow: visible !important;
  }
  .aic-table thead th,
  .aic-light .aic-table thead th,
  .aic-light .aic-table thead th.aic-stub {
    top: var(--header-h);
  }
}

/* Equal columns; logo + name left; cap names at 2 lines */
.aic-table { table-layout: fixed; }
.aic-table thead th.aic-stub,
.aic-table tbody th {
  width: 128px;
  min-width: 96px;
}
.aic-table th.aic-col,
.aic-table td {
  min-width: 0;
  vertical-align: top;
}
.aic-col-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 8px;
  min-width: 0;
  margin-bottom: 6px;
}
.aic-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-align: left;
  line-height: 1.3;
  min-width: 0;
}

@media (max-width: 720px) {
  .aic-controls.card,
  .aic-controls,
  .aic-how.card,
  .aic-compare .card.pad,
  details.aic-how.card {
    padding: 16px;
  }
  .aic-input-pair { grid-template-columns: 1fr; gap: 16px; }
  .aic-card {
    flex-basis: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }
}


/* Unified AIC / calc form controls: same grey fill, border and height for text, number and select */
.aic-controls .calc-row input[type="text"],
.aic-controls .calc-row input[type="number"],
.aic-controls .calc-row input:not([type]),
.aic-controls .calc-row select,
.calc-row input[type="text"],
.calc-row input[type="number"],
.calc-row input:not([type]),
.calc-row select,
.choose-q input[type="text"],
.choose-q input[type="number"],
.choose-q select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 13px;
  height: 44px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}
.aic-controls .calc-row select,
.calc-row select,
.choose-q select {
  padding-right: 32px;
  cursor: pointer;
}

/* Contact-vendor card label wrap */
.tool-card .tc-price,
.tool-card .tc-price .price,
.tool-card .tc-price .amt,
.tool-card .tc-year-amt {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  line-height: 1.15;
}
.tool-card .tc-price .amt {
  font-size: clamp(20px, 3vw, 28px);
}
.tool-card .tc-actions .btn {
  white-space: normal;
  height: auto;
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
  line-height: 1.2;
}

.aic-inline-link{display:inline;font-weight:600}
.tc-year-note,.checked-on{font-size:13px;color:var(--muted);line-height:1.45}

/* First-visit theme chooser (JS-injected; corner card, bottom sheet on mobile) */
.theme-prompt {
  position: fixed; right: 16px; top: 72px; z-index: 150;
  width: 280px; padding: 16px; border-radius: 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(0,0,0,.22);
  animation: tp-in .2s ease-out;
}
@keyframes tp-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .theme-prompt { animation: none; } }
.theme-prompt .tp-title { margin: 0 28px 12px 0; font-weight: 700; font-size: 15px; }
.theme-prompt .tp-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-prompt .tp-x:hover { background: var(--surface-2); color: var(--text); }
.theme-prompt .tp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-prompt .tp-pick { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; min-height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; }
.theme-prompt .tp-pick[aria-pressed="true"] { border-color: var(--accent, #2f6bff); box-shadow: 0 0 0 1px var(--accent, #2f6bff) inset; }
.theme-prompt .tp-pick:focus-visible, .theme-prompt .tp-x:focus-visible { outline: 2px solid var(--accent, #2f6bff); outline-offset: 2px; }
.tp-swatch { display: flex; flex-direction: column; gap: 4px; width: 100%; height: 44px; padding: 6px; border-radius: 6px; box-sizing: border-box; }
.tp-swatch-light { background: #F3F4F6; border: 1px solid #D8DCE3; }
.tp-swatch-dark { background: #0B0D12; border: 1px solid #2A2F3A; }
.tp-sw-bar { height: 8px; border-radius: 3px; }
.tp-sw-line { height: 5px; width: 80%; border-radius: 3px; }
.tp-sw-line.short { width: 50%; }
.tp-swatch-light .tp-sw-bar { background: #1F2937; } .tp-swatch-light .tp-sw-line { background: #9CA3AF; }
.tp-swatch-dark .tp-sw-bar { background: #E5E7EB; } .tp-swatch-dark .tp-sw-line { background: #4B5563; }
.theme-prompt .tp-hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.theme-prompt .tp-arrow { font-size: 15px; color: var(--text); }
.theme-prompt::before { content: ""; position: absolute; top: -7px; right: 66px; width: 12px; height: 12px; background: var(--surface); border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); }
@media (max-width: 640px) {
  .theme-prompt { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .theme-prompt::before { display: none; }
}

/* ===== Site-wide spacing pass (Dec 4, 2026) ===== */
:root { --gutter: 24px; --card-pad: 20px; --section-y: 40px; }
@media (min-width: 640px) { :root { --gutter: 32px; --card-pad: 28px; --section-y: 56px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --card-pad: 40px; --section-y: 64px; } }
.wrap, .wrap.narrow, .gf-grid { width: min(var(--content-max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.wrap.narrow { width: min(760px, calc(100% - var(--gutter) * 2)); }
.wrap.doc-col { width: min(1000px, calc(100% - var(--gutter) * 2)); }
@media (max-width: 640px) { .wrap, .wrap.narrow, .wrap.doc-col, .gf-grid { width: calc(100% - var(--gutter) * 2); } }
.section { padding-block: var(--section-y) calc(var(--section-y) + 16px); }
.section.tight { padding-block: calc(var(--section-y) * .6) calc(var(--section-y) + 16px); }
.card.pad { padding: var(--card-pad); }
.card.pad > :first-child { margin-top: 0; }
.card.pad > :last-child { margin-bottom: 0; }
/* About + legal prose */
.doc { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
@media (max-width: 1020px) { .doc { grid-template-columns: 1fr; gap: 24px; } }
.prose { line-height: 1.7; }
.prose p, .prose li { font-size: 16px; color: var(--text-2); }
.prose h2 { font-size: 22px; line-height: 1.3; margin: 40px 0 12px; padding-top: 4px; scroll-margin-top: calc(var(--header-h, 64px) + 16px); }
.prose h2:first-child, .prose .t-note + h2 { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 12px 0 16px; }
.prose li { margin: 6px 0; padding-left: .25em; }
.prose li::marker { color: var(--muted); }
.legal-doc .t-note { margin: 0 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
/* Numbered paragraphs ("1. …") rendered as hanging lists */
.prose p.num { position: relative; padding-left: 2em; }
.prose p.num > .n { position: absolute; left: 0; top: 0; width: 1.6em; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
/* Theme card + Ruby panel insets */
.theme-prompt { padding: 20px; }
@media (max-width: 640px) { .theme-prompt { left: 12px; right: 12px; bottom: 12px; padding: 20px; } }
.compare-col { padding: var(--card-pad); }
.doc > * { min-width: 0; }
.prose { overflow-wrap: anywhere; }
.chip { max-width: 100%; white-space: normal; height: auto; min-height: 24px; line-height: 1.35; padding-block: 3px; } .chip > span { min-width: 0; }

/* ===== programmatic pages (Dec 4, 2026) ===== */
.pg-stack { display: grid; gap: var(--card-pad, 24px); min-width: 0; }
.pg-stack > * { min-width: 0; }
.pg-h2 { margin: 8px 0 0; }
.pg-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-pad, 24px); }
@media (max-width: 800px) { .pg-two { grid-template-columns: minmax(0, 1fr); } }
.pg-stack .card h2, .pg-stack .card h3 { margin-top: 0; }
.pg-stack .card h4 { margin: 24px 0 8px; font-size: 14px; letter-spacing: .02em; color: var(--text-2); }
.pg-stack .card p { color: var(--text-2); }
.pg-stack .card ul { padding-left: 1.2em; margin: 8px 0 0; }
.pg-stack .card li { margin: 6px 0; color: var(--text-2); }
.pg-stack .card ul.pg-plans, .pg-stack .card ol.pg-glance, .pg-stack .card ul.pg-nopub { padding-left: 0; list-style: none; }
.pg-method li, .pg-short li { color: var(--text); }
.pg-sub { font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.pg-glance { margin: 8px 0 0; counter-reset: none; }
.pg-glance li { display: grid; grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 16px; align-items: center; padding: 14px 0; margin: 0; border-bottom: 1px solid var(--border); }
.pg-glance li:last-child { border-bottom: 0; }
.pg-g-name { font-weight: 650; }
.pg-g-name:hover { text-decoration: underline; }
.pg-rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-2); font-size: 13px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; flex: none; }
@media (max-width: 640px) { .pg-glance li { grid-template-columns: 32px minmax(0, 1fr); } .pg-glance .pg-g-price { grid-column: 2; } }
.pg-tool-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pg-tool-head h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.pg-tool-start { margin-left: auto; text-align: right; }
@media (max-width: 640px) { .pg-tool-start { margin-left: 0; text-align: left; flex-basis: 100%; } }
.pg-plans { margin: 4px 0 0; }
.pg-plans li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 0; margin: 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.pg-plans li:last-child { border-bottom: 0; }
.pg-plan-name { font-weight: 600; color: var(--text); }
.pg-plan-price { text-align: right; }
.pg-plan-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .pg-plans li { grid-template-columns: minmax(0, 1fr); } .pg-plan-price { text-align: left; } }
.pg-calc { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.pg-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 460px; }
.aff-note { display: block; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.aff-note a { color: var(--accent); text-decoration: underline; }
.pg-nopub li { padding: 14px 0; border-bottom: 1px solid var(--border); margin: 0; }
.pg-nopub li:last-child { border-bottom: 0; }
.pg-nopub .pg-cta { margin-top: 10px; }
.pg-links { list-style: none; padding-left: 0 !important; display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pg-links li { margin: 0 !important; }
.pg-links a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.pg-guides .card.pad { display: block; }
.pg-guides .card p { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.pg-facts .pg-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 28px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.pg-facts .pg-row:last-child { border-bottom: 0; }
.pg-facts .pg-head { padding-top: 0; font-size: 16px; }
.pg-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-family: var(--mono); padding-top: 3px; }
.pg-cell { min-width: 0; color: var(--text-2); overflow-wrap: anywhere; }
.pg-cell ul { margin: 0; }
@media (max-width: 760px) {
  .pg-facts .pg-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pg-facts .pg-head { display: none; }
  .pg-facts .pg-row:not(.pg-head) .pg-cell::before { content: attr(data-tool); display: block; font-size: 12px; font-weight: 650; color: var(--text); margin-bottom: 2px; }
}
.pg-linksec .card { margin: 0; }
.pg-stack .card .t-note { margin-top: 16px; line-height: 1.55; }
.pg-stack .card .t-note:first-of-type { margin-top: 16px; }
/* ===== end programmatic pages ===== */
