/* gear-flipper.com - built on the flipper. design system v2 tokens (extension/tokens.css).
   Dark by default, light from the visitor's system setting, and a toggle that wins over both. */

@font-face { font-family: "Sarabun"; font-weight: 400; font-display: swap; src: url("/fonts/sarabun-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Sarabun"; font-weight: 500; font-display: swap; src: url("/fonts/sarabun-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Sarabun"; font-weight: 600; font-display: swap; src: url("/fonts/sarabun-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sarabun"; font-weight: 700; font-display: swap; src: url("/fonts/sarabun-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --chrome: #121210; --sunken: #191917; --base: #1F1F1C; --raised: #262622; --control: #2E2E29; --hover: #383831;
  --border: #32322C; --border-strong: #43433B;
  --text-strong: #F3F1EC; --text: #D5D2C9; --muted: #B3AFA5; --faint: #948F86;
  --accent: #6CB594; --accent-text: #8FC7A8; --accent-fill: #2F6B4F; --on-accent: #F3F1EC;
  --accent-fill-hover: #8FC7A8; --on-accent-hover: #14241C;
  --focus: #8FC7A8; --wash: rgba(108,181,148,.12); --halo: rgba(108,181,148,.25);
  --warn: #F0C48E; --danger: #E9A79B; --danger-wash: rgba(233,167,155,.10);
  --v-best-bg: #6CB594; --v-best-fg: #14241C; --v-best-edge: transparent;
  --v-good-bg: #E2F2E9; --v-good-fg: #14241C; --v-good-edge: #4E8A6B;
  --v-marg-bg: #F0C48E; --v-marg-fg: #14241C; --v-marg-edge: transparent;
  --v-no-bg: #E9A79B; --v-no-fg: #14241C; --v-no-edge: transparent;
  --v-none-bg: #8A8A80; --v-none-fg: #14241C; --v-none-edge: transparent;
  --s-verified: #8FC7A8; --s-confirmed: #6CB594; --s-sold: #E2F2E9; --s-live: #5A9A7B; --s-asks: #B3AFA5; --s-estimate: #948F86;
  --shadow-1: 0 1px 3px rgba(0,0,0,.35); --shadow-2: 0 6px 24px rgba(0,0,0,.45); --shadow-3: 0 24px 60px rgba(0,0,0,.55);
  --glow: rgba(108,181,148,.10);
  --font: "Sarabun", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --r-xs: 3px; --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --r-pill: 999px;
  --ease: cubic-bezier(.2,0,0,1);
  --wrap: 1160px;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { color-scheme: light;
  --chrome: #EAE7E0; --sunken: #EFEDE7; --base: #F8F7F4; --raised: #F1EFEA; --control: #E4E0D8; --hover: #D9D4CA;
  --border: #DEDAD1; --border-strong: #C7C2B6;
  --text-strong: #22221F; --text: #44443E; --muted: #5C5C54; --faint: #67675E;
  --accent: #336750; --accent-text: #2F6B4F; --accent-fill: #2F6B4F; --on-accent: #F3F1EC;
  --accent-fill-hover: #24342B; --on-accent-hover: #F3F1EC;
  --focus: #336750; --wash: rgba(51,103,80,.10); --halo: rgba(51,103,80,.25);
  --warn: #8A5E1C; --danger: #A04A39; --danger-wash: rgba(160,74,57,.07);
  --v-best-bg: #2F6B4F; --v-best-fg: #F3F1EC; --v-good-bg: #D3ECDD; --v-good-fg: #14241C; --v-good-edge: #2A5C44;
  --v-marg-bg: #8A5E1C; --v-marg-fg: #F3F1EC; --v-no-bg: #A04A39; --v-no-fg: #F3F1EC; --v-none-bg: #63635A; --v-none-fg: #F3F1EC;
  --s-verified: #2F6B4F; --s-confirmed: #2F6B4F; --s-sold: #5C5C54; --s-live: #387356; --s-asks: #5C5C54; --s-estimate: #67675E;
  --shadow-1: 0 1px 3px rgba(42,42,40,.12); --shadow-2: 0 6px 20px rgba(42,42,40,.14); --shadow-3: 0 24px 60px rgba(42,42,40,.18);
  --glow: rgba(47,107,79,.08);
} }
:root[data-theme="light"] { color-scheme: light;
  --chrome: #EAE7E0; --sunken: #EFEDE7; --base: #F8F7F4; --raised: #F1EFEA; --control: #E4E0D8; --hover: #D9D4CA;
  --border: #DEDAD1; --border-strong: #C7C2B6;
  --text-strong: #22221F; --text: #44443E; --muted: #5C5C54; --faint: #67675E;
  --accent: #336750; --accent-text: #2F6B4F; --accent-fill: #2F6B4F; --on-accent: #F3F1EC;
  --accent-fill-hover: #24342B; --on-accent-hover: #F3F1EC;
  --focus: #336750; --wash: rgba(51,103,80,.10); --halo: rgba(51,103,80,.25);
  --warn: #8A5E1C; --danger: #A04A39; --danger-wash: rgba(160,74,57,.07);
  --v-best-bg: #2F6B4F; --v-best-fg: #F3F1EC; --v-good-bg: #D3ECDD; --v-good-fg: #14241C; --v-good-edge: #2A5C44;
  --v-marg-bg: #8A5E1C; --v-marg-fg: #F3F1EC; --v-no-bg: #A04A39; --v-no-fg: #F3F1EC; --v-none-bg: #63635A; --v-none-fg: #F3F1EC;
  --s-verified: #2F6B4F; --s-confirmed: #2F6B4F; --s-sold: #5C5C54; --s-live: #387356; --s-asks: #5C5C54; --s-estimate: #67675E;
  --shadow-1: 0 1px 3px rgba(42,42,40,.12); --shadow-2: 0 6px 20px rgba(42,42,40,.14); --shadow-3: 0 24px 60px rgba(42,42,40,.18);
  --glow: rgba(47,107,79,.08);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
/* Nav links land with the section's heading 32px under the 64px header, not below 88px of empty padding. */
section[id] { scroll-margin-top: -56px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--base); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { color: var(--text-strong); line-height: 1.12; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(38px, 5.4vw, 62px); letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.8vw, 44px); }
h3 { font-size: 20px; letter-spacing: -0.01em; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 14px; }
strong { color: var(--text-strong); font-weight: 600; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-xs); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent-fill); color: var(--on-accent); padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--base) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.top.scrolled { border-bottom-color: var(--border); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text-strong); text-decoration: none; font-weight: 700; font-size: 23px; letter-spacing: -0.02em; }
.logo svg { width: 26px; height: 29px; }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: var(--r-sm); }
.nav a:not(.btn):hover { color: var(--text-strong); background: var(--raised); }
.nav a[aria-current="page"] { color: var(--text-strong); }
.iconbtn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; }
.iconbtn:hover { color: var(--text-strong); background: var(--raised); }
.iconbtn svg { width: 18px; height: 18px; }
.theme-dark-icon { display: none; }
:root[data-theme="light"] .theme-light-icon { display: none; } :root[data-theme="light"] .theme-dark-icon { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .theme-light-icon { display: none; } :root:not([data-theme="dark"]) .theme-dark-icon { display: block; } }
@media (max-width: 860px) { .nav a.hide-sm { display: none; } }
@media (max-width: 520px) { .nav a:not(.btn) { display: none; } .top .btn { padding: 0 14px; } }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r-sm); border: 1px solid transparent; font: 600 16px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s var(--ease), color .12s var(--ease); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-fill-hover); color: var(--on-accent-hover); }
.btn-ghost { background: transparent; color: var(--text-strong); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--raised); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 15px; }
.join { display: flex; gap: 8px; max-width: 480px; flex-wrap: wrap; }
.join input[type="email"] { flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--sunken); color: var(--text-strong); font: 400 16px var(--font); }
.join input[type="email"]::placeholder { color: var(--faint); }
.join input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--halo); }
.join .btn { height: 48px; flex: 0 0 auto; }
.join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; max-width: 480px; }
.join-msg { font-size: 15px; margin: 10px 0 0; font-weight: 500; }
.join-msg:empty { display: none; }
.join-msg.ok { color: var(--accent-text); } .join-msg.err { color: var(--danger); }
.join .opt { flex: 1 0 100%; display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text); cursor: pointer; line-height: 1.4; }
.join .opt input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent-fill); cursor: pointer; }
.join .opt input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.join.done input, .join.done .btn, .join.done .opt { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 30%; height: 760px; background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; }
.eyebrow { display: flex; width: fit-content; line-height: 1.2; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-text); letter-spacing: .01em; margin: 0 0 18px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--wash); }
.lede { font-size: 20px; line-height: 1.55; color: var(--text); max-width: 34em; margin: 22px 0 28px; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.demo-cap { font-size: 14px; color: var(--muted); text-align: center; margin: 14px 0 0; }
@media (max-width: 1200px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 32px; } .hero-demo { max-width: 440px; margin: 0 auto; width: 100%; } }

/* ---------- the panel replica ---------- */
.pn { background: var(--base); border: 1px solid var(--border-strong); border-left: 4px solid var(--accent); border-radius: var(--r-md); box-shadow: var(--shadow-3); font-size: 15px; line-height: 1.45; color: var(--text); overflow: hidden; position: relative; }
.pn-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.pn-grip { color: var(--faint); letter-spacing: -2px; font-size: 14px; }
.pn-vdot { width: 10px; height: 10px; border-radius: 50%; background: var(--v-good-edge); flex: none; }
.pn-verdict { font-weight: 700; color: var(--text-strong); font-size: 18px; }
.pn-sum { color: var(--muted); font-size: 15px; }
.pn-badge { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--s-verified); border: 1px solid var(--border-strong); border-radius: var(--r-pill); padding: 2px 10px; white-space: nowrap; }
.pn-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
.pn-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 500 15px var(--font); padding: 9px 4px 10px; cursor: pointer; }
.pn-tabs button[aria-selected="true"] { color: var(--text-strong); border-bottom-color: var(--accent); }
.pn-tabs button:hover { color: var(--text-strong); }
.pn-body { padding: 10px 16px 14px; max-height: 540px; overflow-y: auto; scrollbar-width: thin; }
.pn-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.pn-row span:first-child { color: var(--muted); }
.pn-row span:last-child { color: var(--text-strong); text-align: right; font-variant-numeric: tabular-nums; }
.pn-row.big span { font-weight: 700; color: var(--text-strong); }
.pn-hr { border: 0; border-top: 1px solid var(--border); margin: 8px 0; }
.pn-notes { margin: 8px 0 6px; padding-left: 18px; font-size: 14px; color: var(--text); }
.pn-notes li { margin: 2px 0; }
.pn-meta { font-size: 13px; color: var(--faint); margin: 4px 0 8px; }
.pn-src { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; border-top: 1px solid var(--border); padding: 10px 0 4px; color: var(--muted); font: 500 15px var(--font); cursor: pointer; text-align: left; }
.pn-src .v { color: var(--text-strong); display: inline-flex; gap: 6px; align-items: center; }
.pn-src .caret { color: var(--faint); font-size: 11px; transition: transform .16s var(--ease); }
.pn-src[aria-expanded="true"] .caret { transform: rotate(180deg); }
.pn-src:hover .v { color: var(--accent-text); }
.pn-src > span:first-child { white-space: nowrap; }
.pn-src .v { flex-wrap: wrap; justify-content: flex-end; text-align: right; }
.pn-src .hint { white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--on-accent-hover); background: var(--accent); border-radius: var(--r-pill); padding: 1px 8px; margin-right: 2px; animation: nudge 2.4s var(--ease) 1.2s 3; }
.pn-src[aria-expanded="true"] .hint { display: none; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateX(-3px); } }
.pn-layers { display: grid; gap: 8px; margin-top: 8px; }
.pn-layers[hidden] { display: none; }
.layer { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 10px; background: var(--raised); }
.layer.used { border-color: var(--accent); }
.layer-h { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.layer-h strong { font-weight: 600; }
.used-tag { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--on-accent-hover); background: var(--accent); border-radius: var(--r-pill); padding: 1px 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-strong); background: var(--control); border-radius: var(--r-md); padding: 1px 4px 1px 8px; }
.chip.solo { padding-right: 8px; }
.chip.ignored { text-decoration: line-through; color: var(--faint); }
.chip button { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 3px; border-radius: 3px; }
.chip button:hover { color: var(--danger); background: var(--danger-wash); }
.layer-n { font-size: 12.5px; color: var(--faint); line-height: 1.4; }
.pn-foot { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--chrome); align-items: center; }
.pn-foot span.b { font-size: 13px; font-weight: 600; background: var(--control); color: var(--text-strong); border-radius: var(--r-xs); padding: 5px 10px; }
.pn-foot span.b.acc { color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.pn-foot .conf { margin-left: auto; font-size: 12px; color: var(--faint); }
.pn-sec { font-weight: 600; color: var(--text-strong); margin: 8px 0 6px; font-size: 15px; }
.repair { border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; margin: 6px 0 12px; }
.repair-card { background: var(--raised); border-radius: var(--r-sm); padding: 10px 12px; }
.repair-card .t { display: flex; justify-content: space-between; gap: 8px; }
.repair-card .t strong { font-size: 15px; }
.repair-card .t span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.repair-card p { font-size: 14px; margin: 6px 0 0; }
.pn-list { margin: 0 0 10px; padding-left: 18px; font-size: 14px; }
.flag { background: var(--danger-wash); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); border-radius: var(--r-sm); padding: 8px 10px; font-size: 14px; margin: 8px 0; }
.flag strong { color: var(--danger); display: block; margin-bottom: 2px; }
.ai-note { font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 88px 0; }
section.tint { background: var(--sunken); border-block: 1px solid var(--border); }
.kicker { font-size: 14px; font-weight: 700; color: var(--accent-text); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head p:not(.kicker) { font-size: 19px; color: var(--text); margin-top: 16px; }
.center { text-align: center; margin-inline: auto; }

/* gear strip */
.gear { padding: 28px 0; border-block: 1px solid var(--border); background: var(--sunken); }
.gear .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-content: center; }
.gear p { margin: 0 10px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.gear ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; justify-content: center; }
.gear li { font-size: 15px; color: var(--text-strong); border: 1px solid var(--border-strong); border-radius: var(--r-pill); padding: 4px 12px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--wash); color: var(--accent-text); font-weight: 700; margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; font-size: 16px; }
.shot { margin: 0; border: 1px solid var(--border-strong); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-2); background: var(--base); }
.shot img { width: 100%; height: auto; }
.shot figcaption { font-size: 14px; color: var(--muted); padding: 10px 16px; border-top: 1px solid var(--border); background: var(--chrome); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* sources */
.sources { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.ramp { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ramp li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; align-items: start; background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; }
.ramp .mk { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: var(--control); }
.ramp strong { font-size: 16px; }
.ramp span.d { font-size: 15px; color: var(--muted); grid-column: 2; }
.ramp .rank { font-size: 12px; font-weight: 700; color: var(--faint); margin-left: 6px; letter-spacing: .04em; text-transform: uppercase; }
.m-verified { color: var(--s-verified); } .m-confirmed { color: var(--s-confirmed); } .m-sold { color: var(--s-sold); }
.m-live { color: var(--s-live); } .m-asks { color: var(--s-asks); } .m-estimate { color: var(--s-estimate); }
.callout { border: 1px solid var(--border-strong); border-left: 4px solid var(--warn); border-radius: var(--r-md); padding: 20px 22px; background: var(--raised); margin-top: 26px; }
.callout h3 { font-size: 18px; margin-bottom: 8px; }
.callout p { font-size: 16px; margin: 0 0 8px; }
.callout p:last-child { margin: 0; }
.tick-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.tick-list li { display: flex; gap: 10px; font-size: 16px; }
.tick-list svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 3px; }
@media (max-width: 900px) { .sources { grid-template-columns: 1fr; gap: 36px; } }

/* features */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px; }
.card .ic { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--wash); color: var(--accent-text); margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 16px; margin: 0; }
.card p + p { margin-top: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.vp { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border-radius: var(--r-pill); padding: 3px 10px 3px 8px; border: 1px solid transparent; }
.vp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.vp.best { background: var(--v-best-bg); color: var(--v-best-fg); }
.vp.good { background: var(--v-good-bg); color: var(--v-good-fg); border-color: var(--v-good-edge); }
.vp.marg { background: var(--v-marg-bg); color: var(--v-marg-fg); }
.vp.no { background: var(--v-no-bg); color: var(--v-no-fg); }
.vp.none { background: var(--v-none-bg); color: var(--v-none-fg); }
.card.opt { background: transparent; border-style: dashed; }
@media (max-width: 960px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid3 { grid-template-columns: 1fr; } }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; border: 1px solid var(--border-strong); border-radius: var(--r-lg); overflow: hidden; background: var(--raised); box-shadow: var(--shadow-2); }
.calc-in { padding: 28px; border-right: 1px solid var(--border); display: grid; gap: 18px; align-content: start; }
.calc-in .item { font-size: 15px; color: var(--muted); }
.calc-in .item strong { display: block; font-size: 20px; margin-top: 2px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--text-strong); margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--faint); margin-top: 5px; }
.money { position: relative; }
.money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.field input, .field select { width: 100%; height: 44px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--sunken); color: var(--text-strong); font: 500 16px var(--font); font-variant-numeric: tabular-nums; }
.money input { padding-left: 26px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--halo); }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.seg label { margin: 0; font-weight: 500; font-size: 14px; color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 8px 10px; cursor: pointer; background: var(--sunken); line-height: 1.3; }
.seg label small { display: block; color: var(--faint); font-size: 12px; font-weight: 400; }
.seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; margin: 0; }
.seg input:checked + label { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--wash); color: var(--text-strong); }
.seg input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.calc-out { padding: 28px; background: var(--base); }
.receipt { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.receipt td { padding: 8px 0; border-bottom: 1px dashed var(--border-strong); }
.receipt td:last-child { text-align: right; color: var(--text-strong); font-weight: 500; }
.receipt tr.minus td:last-child { color: var(--muted); }
.receipt tr.total td { border-bottom: 0; border-top: 2px solid var(--border-strong); font-weight: 700; color: var(--text-strong); font-size: 19px; padding-top: 12px; }
.calc-verdict { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md); background: var(--raised); border: 1px solid var(--border); }
.calc-verdict .vp { font-size: 15px; padding: 5px 14px 5px 11px; }
.calc-verdict p { margin: 0; font-size: 15px; color: var(--text); flex: 1 1 220px; }
.maxoffer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--accent); background: var(--wash); }
.maxoffer span { font-size: 15px; color: var(--text); }
.maxoffer strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.calc-small { font-size: 13px; color: var(--faint); margin: 14px 0 0; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc-in { border-right: 0; border-bottom: 1px solid var(--border); } }

/* compare */
.tablewrap { overflow-x: auto; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--raised); }
.compare { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 15px; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { font-size: 14px; color: var(--muted); font-weight: 600; background: var(--chrome); }
.compare thead th.us { color: var(--text-strong); }
.compare tbody th { font-weight: 500; color: var(--text-strong); width: 34%; }
.compare td.us { background: var(--wash); color: var(--text-strong); font-weight: 500; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.y, .n, .p { display: inline-flex; align-items: flex-start; gap: 6px; }
.y::before, .n::before, .p::before { font-weight: 700; width: 1.1em; text-align: center; }
.y::before { content: "\2713"; color: var(--accent); }
.n::before { content: "\2715"; color: var(--faint); }
.p::before { content: "~"; color: var(--warn); }

/* privacy */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stays, .leaves { border-radius: var(--r-md); padding: 24px; border: 1px solid var(--border); background: var(--raised); }
.stays { border-top: 4px solid var(--accent); }
.leaves { border-top: 4px solid var(--border-strong); }
.stays h3, .leaves h3 { margin-bottom: 14px; }
.stays ul { margin: 0; padding-left: 20px; }
.stays li { margin: 4px 0; }
.leaves dl { margin: 0; display: grid; gap: 14px; }
.leaves dt { font-weight: 600; color: var(--text-strong); }
.leaves dd { margin: 2px 0 0; font-size: 15px; color: var(--text); }
.leaves dd b { color: var(--text-strong); font-weight: 500; }
.privacy-foot { margin-top: 20px; font-size: 16px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* won't */
.wont { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.wont li { padding: 18px 0 18px 36px; border-top: 1px solid var(--border); position: relative; }
.wont li::before { content: "\2715"; position: absolute; left: 4px; top: 18px; color: var(--faint); font-weight: 700; }
.wont li > strong { display: block; font-size: 18px; margin-bottom: 4px; }
.wont span strong { font-weight: 600; }
.wont span { font-size: 16px; color: var(--text); }
@media (max-width: 760px) { .wont { grid-template-columns: 1fr; } }

/* price */
.price { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: stretch; }
.price-card { border-radius: var(--r-lg); padding: 32px; background: var(--raised); border: 1px solid var(--border-strong); }
.price-card .big { font-size: 64px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.03em; line-height: 1; }
.price-card .big small { font-size: 20px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price-card p { margin: 14px 0 0; }
.promise { border-radius: var(--r-lg); padding: 32px; border: 1px solid var(--accent); background: var(--wash); }
.promise h3 { margin-bottom: 12px; }
.promise ol { margin: 0; padding-left: 22px; }
.promise li { margin: 8px 0; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } }

/* closing */
.closing { text-align: center; }
.closing .join, .closing .join-note, .closing .join-msg { margin-inline: auto; justify-content: center; }
.closing h2 { max-width: 16em; margin: 0 auto 14px; }
.closing .lede { margin: 0 auto 28px; }

/* footer */
.foot { border-top: 1px solid var(--border); padding: 40px 0 48px; background: var(--chrome); font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text-strong); text-decoration: underline; }
.foot p { margin: 8px 0 0; max-width: 32em; }

/* ---------- document pages (FAQ, privacy, 404) ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { font-size: clamp(34px, 4.6vw, 48px); margin-bottom: 12px; }
.doc > p.sub { font-size: 19px; color: var(--muted); margin-bottom: 36px; }
.doc h2 { font-size: 26px; margin: 48px 0 12px; padding-top: 28px; border-top: 1px solid var(--border); }
.doc h3 { font-size: 19px; margin: 26px 0 8px; }
.doc ul, .doc ol { padding-left: 22px; } .doc li { margin: 5px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--raised); color: var(--text-strong); }
.doc code { background: var(--raised); padding: 1px 6px; border-radius: var(--r-xs); font-size: 14px; }
.doc hr { display: none; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-size: 19px; font-weight: 600; color: var(--text-strong); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 26px; font-weight: 400; color: var(--accent-text); transition: transform .16s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-text); }
.faq .a { padding: 0 0 20px; }
.faq .a p:last-child { margin-bottom: 0; }
.faq h2 { border-top: 0; padding-top: 0; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); margin: 44px 0 6px; }
.faq h2:first-of-type { margin-top: 12px; }
.help-box { margin-top: 48px; padding: 24px; border-radius: var(--r-md); background: var(--raised); border: 1px solid var(--border); }
.help-box h3 { margin: 0 0 6px; }
.help-box p { margin: 0; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.notfound h1 { margin-bottom: 12px; }

/* utilities that replace inline styles (the CSP allows no inline style) */
.lede.flush { margin-bottom: 0; }
.grid3.more { margin-top: 18px; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.plain legend { font-size: 14px; font-weight: 600; color: var(--text-strong); margin-bottom: 6px; padding: 0; }
@media (max-width: 960px) { .pn-body { max-height: none; } }

/* the two optional features: a labelled pair rather than a third row of three */
.opt-label { margin: 34px 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

/* the comparison table becomes one card per row on phones, each value labelled */
@media (max-width: 720px) {
  .tablewrap { overflow: visible; border: 0; background: transparent; }
  .compare { min-width: 0; display: block; }
  .compare thead { display: none; }
  .compare tbody, .compare tr { display: block; }
  .compare tr { background: var(--raised); border: 1px solid var(--border-strong); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; }
  .compare tbody th { display: block; width: auto; font-size: 16px; font-weight: 600; padding: 12px 14px 8px; border: 0; }
  .compare td { display: grid; grid-template-columns: 44% 1fr; gap: 10px; padding: 7px 14px; border: 0; border-top: 1px solid var(--border); }
  .compare td::before { content: attr(data-label); color: var(--muted); font-size: 14px; }
  .compare td.us::before { color: var(--text-strong); font-weight: 600; }
  .compare tr:last-child td { border-top: 1px solid var(--border); }
}
@media (max-width: 400px) { .doc table { font-size: 13px; } .doc th, .doc td { padding: 6px 7px; } }
.leaves ul { margin: 0; padding-left: 20px; }
.leaves li { margin: 4px 0; }
.leaves ul.never { list-style: none; padding-left: 0; }
.leaves ul.never li { padding-left: 24px; position: relative; }
.leaves ul.never li::before { content: "\2715"; position: absolute; left: 2px; color: var(--faint); font-weight: 700; }
