:root{--brand:#1E88E5;--brand-strong:#1565C0;--accent:#FFB300;--bg-l:#F6F9FD;--surface-l:#FFFFFF;--ink-l:#0D1B2A;--rule-l:#DCE6F2;--bg-d:#0B1220;--surface-d:#131E31;--ink-d:#E8EEF7}
/* Public product website. Brand colours are NOT in this file: web_site.py prepends a
   :root block built from the brand record's palette (--brand, --brand-strong, --accent,
   --bg-l/--surface-l/--ink-l/--rule-l, --bg-d/--surface-d/--ink-d). No fonts are loaded:
   the system UI stack keeps the CSP free of third-party origins. */

:root {
  color-scheme: light dark;
  --bg: var(--bg-l);
  --surface: var(--surface-l);
  --ink: var(--ink-l);
  --rule: var(--rule-l);
  --muted: color-mix(in srgb, var(--ink) 68%, var(--bg));
  --soft: color-mix(in srgb, var(--brand) 8%, var(--surface));
  --link: var(--brand-strong);
  --btn: var(--brand-strong);
  --btn-ink: #fff;
  --ring: color-mix(in srgb, var(--brand) 55%, transparent);
  --shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 8px 24px rgb(15 23 42 / 7%);
  --radius: 14px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--bg-d);
    --surface: var(--surface-d);
    --ink: var(--ink-d);
    --rule: color-mix(in srgb, var(--ink-d) 16%, var(--bg-d));
    --soft: color-mix(in srgb, var(--brand) 14%, var(--surface-d));
    --link: color-mix(in srgb, var(--brand) 62%, #fff);
    --btn: var(--brand);
    --btn-ink: var(--bg-d);
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 35%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 44rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* ── header ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.nav { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: none; gap: 4px; }
.nav-links a, .menu nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .98rem; }
.nav-links a:hover, .menu nav a:hover { background: var(--soft); }
.nav-links a[aria-current="page"], .menu nav a[aria-current="page"] { color: var(--link); }
.nav-cta { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--rule); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 32px)); display: grid; padding: 8px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.menu nav a { padding: 12px; }
.menu nav .btn { margin-top: 6px; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu { display: none; }
}

/* ── buttons ────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn) 88%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--soft); }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.btn svg { width: 20px; height: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.center .actions { justify-content: center; }

/* ── sections ───────────────────────────────────────────── */
.section { padding: 64px 0; }
.section + .section { padding-top: 16px; }
.section.band { background: var(--soft); padding: 64px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 46rem; margin-bottom: 32px; }
.center.section-head { margin-left: auto; margin-right: auto; }
.page-head { padding: 56px 0 8px; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: var(--link); background: var(--soft); border: 1px solid var(--rule); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.crumbs { font-size: .92rem; margin-bottom: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } .hero { padding: 88px 0 64px; } }
.hero h1 span { color: var(--link); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--muted); font-size: .95rem; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: var(--link); flex: none; }

/* ── cards / grids ──────────────────────────────────────── */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid { gap: 20px; } }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--rule)); transform: translateY(-2px); }
a.card .more { color: var(--link); font-weight: 600; font-size: .95rem; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--link); margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 20px; left: 22px; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--btn); color: var(--btn-ink); }
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checks svg { width: 22px; height: 22px; color: var(--link); margin-top: 2px; }

/* ── feature detail ─────────────────────────────────────── */
.detail { display: grid; gap: 16px; max-width: 52rem; }
.detail .card ul { margin: .5em 0 0; padding-left: 1.2em; }
.detail .card li { margin: .25em 0; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.subnav a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: .95rem; }
.subnav a[aria-current="page"] { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }

/* ── mock screenshots (placeholders until real captures are added) ── */
.shots { display: grid; gap: 28px; grid-template-columns: 1fr; justify-items: center; }
@media (min-width: 760px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shots.hero-shot { grid-template-columns: 1fr; }
.shot { margin: 0; width: 100%; max-width: 300px; text-align: center; }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.shot img { border-radius: 24px; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.device { background: var(--surface); border: 1px solid var(--rule); border-radius: 30px; padding: 14px; box-shadow: var(--shadow); text-align: left; aspect-ratio: 9 / 17; display: flex; flex-direction: column; gap: 10px; font-size: .82rem; overflow: hidden; }
.device .bar { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 4px 6px 8px; border-bottom: 1px solid var(--rule); }
.device .bar i { width: 18px; height: 18px; border-radius: 6px; background: var(--brand); }
.device .search { border: 1px solid var(--rule); border-radius: 10px; padding: 7px 10px; color: var(--muted); }
.device .row { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; }
.device .row + .row { border-top: 1px solid var(--rule); }
.device .av { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--brand-strong); flex: none; }
.device .av.a2 { background: var(--accent); color: #111; }
.device .av.a3 { background: color-mix(in srgb, var(--brand) 55%, #0a7); }
.device .row b { display: block; font-weight: 600; }
.device .row small { color: var(--muted); }
.device .field { border: 1px solid var(--rule); border-radius: 10px; padding: 9px 10px; display: flex; justify-content: space-between; align-items: center; }
.device .field.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.device .pop { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; }
.device .ghost-btn { border: 1px dashed var(--muted); border-radius: 10px; padding: 9px; text-align: center; color: var(--muted); }
.device .code { font: 700 1.6rem/1.1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .12em; text-align: center; padding: 10px 0 4px; }
.device .pill { background: var(--btn); color: var(--btn-ink); border-radius: 999px; padding: 8px; text-align: center; font-weight: 600; }
.device .grow { flex: 1; }

/* ── pricing ────────────────────────────────────────────── */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 980px; margin: 0 auto; }
.plans.one { max-width: 440px; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .price { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 12px 0 4px; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .checks { margin: 20px 0 24px; flex: 1; }

/* ── compare table ──────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; font-size: .97rem; }
@media (max-width: 599px) { .compare th, .compare td { padding: 10px 8px; font-size: .9rem; } .compare tbody th { width: 40%; } }
.compare th, .compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: break-word; }
.compare thead th { background: var(--soft); font-size: .92rem; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { font-weight: 500; color: var(--muted); width: 38%; }
.compare .us { font-weight: 600; }
.note { font-size: .92rem; color: var(--muted); margin-top: 12px; }

/* ── faq / prose / legal ────────────────────────────────── */
.faq { display: grid; gap: 10px; max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--rule); margin-bottom: 12px; }
.faq details p { margin-bottom: 16px; }
.prose { max-width: 48rem; }
.prose h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; }
.prose code { font-size: .92em; background: var(--soft); padding: 1px 5px; border-radius: 5px; }
.legal-meta { font-size: .95rem; color: var(--muted); margin-bottom: 8px; }

/* ── call to action ─────────────────────────────────────── */
.cta-band { background: var(--btn); color: var(--btn-ink); border-radius: 24px; padding: 44px 24px; text-align: center; }
.cta-band h2 { color: inherit; }
.cta-band p { color: inherit; opacity: .9; }
.cta-band .btn-primary { background: var(--btn-ink); color: var(--btn); }
.cta-band .btn-primary:hover { background: color-mix(in srgb, var(--btn-ink) 90%, var(--btn)); }

/* ── download ───────────────────────────────────────────── */
.dl-meta { font-size: .92rem; color: var(--muted); margin: 12px 0 0; }
.dl-meta code { font-size: .8rem; word-break: break-all; }
.store-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ── footer ─────────────────────────────────────────────── */
.site-footer { margin-top: 72px; border-top: 1px solid var(--rule); background: var(--surface); padding: 48px 0 28px; font-size: .95rem; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-brand { grid-column: auto; } }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.legal-line { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
