/* AutoZonBooks marketing site. Same fonts and greens as the app (web/public/login.html). */
:root {
  --bg: #ffffff; --bg-alt: #f4f6f5; --surface: #ffffff; --sunk: #eaeeec; --line: #dde4e1; --line-strong: #c9d3cf;
  --fg: #17211e; --muted: #56645f; --faint: #66746f;
  --accent: #1d6b57; --accent-hover: #175a49; --accent-soft: #dcefe8; --accent-ink: #145140; --on-accent: #ffffff;
  --mint: #5cc3a4; --warn-soft: #fbf0d9; --warn-ink: #7a4e00;
  --rail: #13201c; --rail-2: #1a2b26; --rail-fg: #c9d6d1; --rail-muted: #93a7a0;
  --shadow-sm: 0 1px 2px rgba(19, 32, 28, .06), 0 1px 3px rgba(19, 32, 28, .05);
  --shadow-lg: 0 24px 60px -20px rgba(19, 32, 28, .35), 0 8px 20px -8px rgba(19, 32, 28, .18);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 14px; --wrap: 1180px; --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1513; --bg-alt: #131b18; --surface: #161e1b; --sunk: #1c2622; --line: #26322e; --line-strong: #34433e;
    --fg: #e3ebe8; --muted: #a2b1ac; --faint: #8a9a95;
    --accent: #5cc3a4; --accent-hover: #74d0b4; --accent-soft: #1b3a31; --accent-ink: #8fdcc3; --on-accent: #0b1714;
    --warn-soft: #3a2e14; --warn-ink: #f0c879;
    --rail: #0a0f0d; --rail-2: #111a17;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0; color: var(--fg); }
h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: var(--on-accent); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

/* ---------- buttons, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--fg); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.on-dark .btn-primary { background: var(--mint); color: #0b1714; }
.on-dark .btn-primary:hover { background: #79d3b8; color: #0b1714; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--body); letter-spacing: .02em; padding: 5px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; vertical-align: middle; }
.pill.soon { background: var(--warn-soft); color: var(--warn-ink); }
.eyebrow { display: inline-block; font: 600 13px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.on-dark .eyebrow { color: var(--mint); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); line-height: 1.6; }
.on-dark .lead { color: var(--rail-fg); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 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; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--display); letter-spacing: -.015em; color: var(--fg); text-decoration: none; }
.brand:hover { color: var(--fg); }
.badge { width: 30px; height: 30px; border-radius: 8px; background: #1d6b57; color: #fff; display: inline-grid; place-items: center; font: 700 12.5px/1 var(--body); letter-spacing: .01em; flex: none; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--fg); background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--bg-alt); }
.header-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.header-cta .btn { min-height: 40px; padding: 8px 14px; font-size: 14.5px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .close { display: none; }
.menu-btn[aria-expanded="true"] .open { display: none; }
.menu-btn[aria-expanded="true"] .close { display: block; }
.mobile-nav { display: none; }
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: grid; }
  .mobile-nav { position: fixed; inset: 68px 0 0 0; background: var(--bg); z-index: 49; padding: 12px var(--gutter) 32px; overflow-y: auto; border-top: 1px solid var(--line); }
  .nav-open .mobile-nav { display: block; }
  .nav-open { overflow: hidden; }
  .mobile-nav a.link { display: block; padding: 14px 4px; font: 600 19px/1.2 var(--display); color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-nav a.link[aria-current="page"] { color: var(--accent); }
  .mobile-nav .stack { display: grid; gap: 10px; margin-top: 22px; }
}

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 + .lead { margin-top: 16px; }
.on-dark { background: var(--rail); color: var(--rail-fg); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark a:not(.btn) { color: var(--mint); }

/* hero */
.hero { overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 0; }
.hero::before { content: ''; position: absolute; width: 900px; height: 900px; right: -320px; top: -380px; border-radius: 50%; background: radial-gradient(circle, rgba(92, 195, 164, .22), transparent 62%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 32%; background: var(--bg); }
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 820px; }
.hero h1 { color: #fff; }
.hero .lead { margin-top: 22px; max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--rail-muted); display: flex; align-items: center; gap: 8px; }
.hero-note::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex: none; }
.hero-shot { margin-top: clamp(44px, 6vw, 72px); }
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); overflow: hidden; }
.page-hero::before { content: ''; position: absolute; width: 700px; height: 700px; right: -260px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(92, 195, 164, .2), transparent 62%); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); max-width: 860px; }
.page-hero .lead { margin-top: 20px; max-width: 680px; }
.page-hero .hero-cta { margin-top: 28px; }

/* screenshots */
.shot { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.shot-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.shot-bar span { margin-left: 10px; font: 500 12px/1 var(--mono); color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-dark .shot { border-color: rgba(255, 255, 255, .08); }
figure { margin: 0; }
figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.phone { width: min(300px, 80%); border-radius: 30px; border: 8px solid #13201c; overflow: hidden; box-shadow: var(--shadow-lg); background: #13201c; }
.phone img { border-radius: 22px; }

/* grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.icon { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }
.on-dark .card { background: var(--rail-2); border-color: rgba(255, 255, 255, .07); box-shadow: none; }
.on-dark .card p { color: var(--rail-fg); }
.on-dark .icon { background: rgba(92, 195, 164, .14); color: var(--mint); }

.also { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; color: var(--muted); font-size: 15px; }
.also b { color: var(--fg); font-weight: 600; }

/* split rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.split h2 + .lead, .split h2 + p { margin-top: 16px; }
.split .btn { margin-top: 26px; }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231d6b57' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6'/%3E%3C/svg%3E") center / 20px no-repeat; }
.on-dark .checks li::before { background-color: rgba(92, 195, 164, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235cc3a4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235cc3a4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6'/%3E%3C/svg%3E"); } }
.checks b { color: var(--fg); font-weight: 600; }
.on-dark .checks b { color: #fff; }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 16px/1 var(--display); margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* flow diagram (AI page) */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.flow .node { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.flow .node h3 { font-size: 18px; margin: 12px 0 8px; }
.flow .node p { color: var(--muted); font-size: 15px; }
.flow .arrow { display: grid; place-items: center; color: var(--accent); }
.flow .arrow svg { width: 28px; height: 28px; }
.flow .node.hi { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .flow .arrow svg { transform: rotate(90deg); } }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font: 500 12.5px/1 var(--mono); padding: 6px 8px; border-radius: 6px; background: var(--sunk); color: var(--muted); }

/* feature groups (features page) */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.toc a { text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--fg); background: var(--surface); }
.toc a:hover { border-color: var(--accent); color: var(--accent); }
.on-dark .toc a { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.on-dark .toc a:hover { border-color: var(--mint); color: var(--mint); }
.fgroup + .fgroup { margin-top: clamp(64px, 8vw, 104px); }
.flist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; margin-top: 28px; }
@media (max-width: 640px) { .flist { grid-template-columns: 1fr; } }
.flist div { border-top: 1px solid var(--line); padding-top: 16px; }
.flist h3 { font-size: 17px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flist p { color: var(--muted); font-size: 15px; }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; max-width: 980px; margin: 0 auto; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; max-width: 520px; } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 36px); position: relative; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan-name { font-size: 22px; }
.plan .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 18px; font: 700 clamp(48px, 6vw, 60px)/1 var(--display); letter-spacing: -.03em; }
.plan .price small, .calc-total output small { font: 500 16px/1.2 var(--body); color: var(--muted); letter-spacing: 0; }
.plan .billed { font-size: 15px; color: var(--muted); margin-top: 10px; }
.plan .billed b { color: var(--accent-ink); }
.plan .btn { margin-top: 24px; width: 100%; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 11px; font-size: 15.5px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.calc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; }
.calc-title { font-size: 22px; }
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.calc-label { font-weight: 600; }
.calc-row input { width: 130px; font: 600 18px/1.2 var(--mono); color: var(--fg); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; text-align: right; }
.calc-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc input[type="range"] { width: 100%; margin: 20px 0 6px; accent-color: var(--accent); height: 28px; }
.calc-total { margin-top: 18px; padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.calc-total output { font: 700 clamp(40px, 5vw, 52px)/1.05 var(--display); letter-spacing: -.03em; color: var(--fg); }
.calc-note { margin-top: auto; padding-top: 20px; font-size: 14.5px; color: var(--muted); }
.calc-note b { color: var(--fg); }
.teaser { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow-sm); }
@media (max-width: 800px) { .teaser { grid-template-columns: 1fr; } }
.teaser .from { font: 700 clamp(40px, 5vw, 56px)/1 var(--display); letter-spacing: -.03em; }
.teaser .from small { font: 500 17px var(--body); color: var(--muted); letter-spacing: 0; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative; font: 600 17px/1.4 var(--body); color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 4px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details > div { padding: 0 0 20px; color: var(--muted); }
.faq details > div p + p { margin-top: 10px; }

/* cta band */
.cta-band { border-radius: 24px; padding: clamp(40px, 7vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; width: 560px; height: 560px; left: 50%; bottom: -380px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(92, 195, 164, .3), transparent 65%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .lead { margin: 16px auto 0; max-width: 560px; }
.cta-band .hero-cta { justify-content: center; }

/* forms */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-sm); }
.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--fg); padding: 0; }
.field .opt { font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea { width: 100%; font: 15.5px/1.4 var(--body); color: var(--fg); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 13px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: #b3361f; }
.field .err { color: #b3361f; font-size: 13.5px; }
@media (prefers-color-scheme: dark) { .field .err { color: #f08a74; } .field [aria-invalid="true"] { border-color: #f08a74; } }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14.5px; font-weight: 500; background: var(--surface); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fbe4df; color: #8f2a17; border-radius: 10px; padding: 12px 14px; font-size: 14.5px; }
.form .btn { width: 100%; }
.fine { font-size: 13.5px; color: var(--faint); }
.thanks { text-align: center; padding: 24px 4px; }
.thanks .icon { margin: 0 auto 18px; width: 56px; height: 56px; border-radius: 50%; }
.thanks .icon svg { width: 28px; height: 28px; }
.thanks h2 { font-size: 30px; }
.thanks p { color: var(--muted); margin-top: 12px; }
.expect { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.expect li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.expect .n { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font: 700 15px var(--display); }
.expect b { display: block; color: var(--fg); }
.expect span { color: var(--muted); font-size: 15px; }

/* prose (legal, security) */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 12px 0 0; display: grid; gap: 8px; }
.prose strong { color: var(--fg); }
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-grid .card h3 { margin-top: 14px; font-size: 18px; }
.sec-grid .card p + p { margin-top: 10px; }
.callout { border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 12px 12px 0; padding: 18px 22px; color: var(--muted); }
.callout b { color: var(--fg); }

/* legal pages: the owner's text is pasted between LEGAL BODY START/END inside .legal */
.legal-title, .legal-toc, .legal { max-width: 760px; margin-left: auto; margin-right: auto; }
.legal-title { font-size: clamp(34px, 4.5vw, 48px); }
.legal-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); font-size: 14.5px; }
.legal-toc span { color: var(--muted); font-weight: 600; margin-right: 4px; }
.legal-toc a { text-decoration: none; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--fg); }
.legal-toc a:hover { border-color: var(--accent); color: var(--accent); }
.legal { margin-top: 32px; font-size: 16px; line-height: 1.7; color: var(--fg); overflow-wrap: anywhere; }
.legal > :first-child { margin-top: 0; }
.legal h2 { font-size: clamp(22px, 2.6vw, 27px); margin: 48px 0 14px; padding-top: 8px; scroll-margin-top: 88px; }
.legal h3 { font-size: 19px; margin: 32px 0 10px; scroll-margin-top: 88px; }
.legal h4 { font: 600 16px/1.4 var(--body); letter-spacing: 0; margin: 24px 0 8px; }
.legal p { margin: 0 0 14px; color: var(--fg); }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal li > ul, .legal li > ol { margin: 6px 0 4px; }
.legal ul ul { list-style: circle; }
.legal a { overflow-wrap: anywhere; }
.legal strong, .legal b { font-weight: 600; }
.legal .legal-caps { text-transform: uppercase; font-size: 14px; letter-spacing: .02em; line-height: 1.65; }
.legal .legal-rev { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.legal .legal-contact { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.legal-contact p:last-child, .legal-contact:is(p) { margin-bottom: 0; }
.legal-table { margin: 8px 0 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.legal-table table { min-width: 620px; font-size: 14.5px; line-height: 1.55; }
.legal-table th { font-size: 12.5px; }
.legal-table td { color: var(--fg); }
.legal-table td ul { margin: 0; padding-left: 18px; }

/* cost table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; background: var(--bg-alt); }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--mono); white-space: nowrap; }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf .code { font: 700 clamp(80px, 14vw, 140px)/1 var(--display); letter-spacing: -.04em; color: var(--accent); }
.nf .hero-cta { justify-content: center; }

/* footer */
.site-footer { background: var(--rail); color: var(--rail-fg); padding: 64px 0 36px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
.site-footer .brand { color: #fff; }
.site-footer p { margin-top: 14px; color: var(--rail-muted); max-width: 320px; }
.site-footer h4 { font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--rail-muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--rail-fg); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--rail-muted); font-size: 14px; }
@media (max-width: 640px) { .hero-shot .shot img { width: 165%; max-width: none; } }
