:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --ink: #17201b;
  --muted: #5b6660;
  --line: #e3e6e1;
  --accent: #1f7a55;
  --accent-ink: #ffffff;
  --accent-soft: #e6f2ec;
  --err: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 12px 40px rgb(20 40 30 / 0.1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101412;
    --surface: #181d1a;
    --ink: #eef2ef;
    --muted: #9aa69f;
    --line: #2a322d;
    --accent: #4cc38f;
    --accent-ink: #06261a;
    --accent-soft: #17302a;
    --err: #ff8a80;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 40px rgb(0 0 0 / 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Launch switch: the Worker adds class="launched" to <html> once APP_STORE_URL is set. */
html:not(.launched) .post { display: none; }
.launched .pre { display: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .top nav a:not(.btn) { display: none; } }

.btn {
  display: inline-block; border: 0; cursor: pointer; white-space: nowrap;
  background: var(--accent); color: var(--accent-ink) !important;
  font: inherit; font-weight: 600; text-decoration: none;
  padding: 12px 20px; border-radius: 10px;
}
.btn:hover { filter: brightness(1.08); }
.btn.small { padding: 7px 14px; font-size: 14px; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero { padding-top: 40px; } .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; margin: 0 0 18px; }
h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 18px; text-wrap: balance; }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }

.notify label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.notify .row { display: flex; gap: 8px; flex-wrap: wrap; }
.notify input[type="email"] {
  flex: 1 1 220px; min-width: 0; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.hp { position: absolute; left: -9999px; }
.fine { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
#notify-status { margin: 10px 0 0; font-weight: 600; min-height: 1.6em; }
#notify-status.ok, .flash.ok { color: var(--accent); }
#notify-status.err, .flash.err { color: var(--err); }
.flash { display: none; font-weight: 600; margin: 10px 0 0; }
.flash:target { display: block; }

.shot { margin: 0; }
.shot svg { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.shot figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.win { fill: var(--surface); }
.bar { fill: var(--bg); }
.tl { fill: var(--muted); font-size: 12px; }
.t text { fill: #fff; font-size: 13px; font-weight: 600; }
.t text.s { font-weight: 400; opacity: 0.85; font-size: 12px; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 19px; max-width: 44em; margin: 0 0 36px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
@media (max-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts div { background: var(--bg); padding: 16px 18px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); }
.card .ico { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soon { margin-top: 28px; color: var(--muted); }

.steps { counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 14px; }

.price { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .price { grid-template-columns: 1fr; } }
.price .card.hi { border-color: var(--accent); }
.amount { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0; color: var(--ink) !important; }
.amount small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ticks { padding: 0; margin: 14px 0 0; list-style: none; color: var(--muted); }
.ticks li { padding-left: 26px; position: relative; margin: 6px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style-position: outside; }
.faq summary h3 { display: inline; font-size: inherit; }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 46em; }

.cta { text-align: center; }
.cta .sub { margin-inline: auto; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); }
footer .legal { flex-basis: 100%; margin: 0; font-size: 13px; }

/* Text pages */
.doc { max-width: 720px; padding-block: 56px; }
.doc h1 { font-size: 40px; }
.doc h2 { font-size: 26px; margin-top: 40px; }
.doc .updated { color: var(--muted); }

/* --- Added with the multi-page site --- */
@media (max-width: 900px) { .top nav a:not(.btn) { display: none; } }
.notify select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 10px; }
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip ul { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: center; list-style: none; margin: 0; padding: 16px 20px; font-size: 15px; color: var(--muted); }
.strip li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--accent); }
a.card h3 { color: var(--accent); }
.more { margin-top: 24px; font-weight: 600; }

.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.doc.wide { max-width: 1000px; }
.doc h1 { line-height: 1.1; }
.doc h3 { margin-top: 24px; }
.doc li { margin: 6px 0; }
.doc .lede { max-width: none; }
.doc .answer { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 24px; }
.doc .answer p { margin: 0; }
.doc code, .doc kbd { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.doc pre { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.doc pre code { border: 0; padding: 0; background: none; }
.doc .shot { margin: 28px 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.tablewrap { overflow-x: auto; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
tr.us td { background: var(--accent-soft); font-weight: 600; }
.note { font-size: 14px; color: var(--muted); }
.related, .callout { margin-top: 40px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.related h2, .callout h2 { font-size: 18px; margin: 0 0 8px; }
.related ul { margin: 0; padding-left: 20px; }
.callout { border-color: var(--accent); }
.callout p { margin: 0; }
.feature { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; align-items: center; margin: 48px 0; }
.feature .shot { margin: 0; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } }

footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; flex-basis: 100%; }
@media (max-width: 700px) { footer .cols { grid-template-columns: repeat(2, 1fr); } }
footer h2 { font-size: 13px; letter-spacing: 0; color: var(--ink); margin: 0 0 8px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 6px 0; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
