:root {
  color-scheme: light;
  --bg: #ffffff;
  --alt: #f6f7f9;
  --text: #1b1f24;
  --muted: #5d6673;
  --border: #dfe3e8;
  --accent: #1f6feb;
  --accent-soft: #e6effd;
  --navy: #0b1530;
  --navy-text: #e6e9ed;
  --ok: #1a7f37;
  --error: #c62828;
  --radius: 10px;
}
/* Dark: the computer's setting, unless the visitor picked light; or picked dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #15181c;
    --alt: #1d2126;
    --text: #e6e9ed;
    --muted: #9aa3ae;
    --border: #2f353d;
    --accent: #4c8dff;
    --accent-soft: #1d2a40;
    --navy: #0b1220;
    --ok: #3fb950;
    --error: #f47067;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15181c;
  --alt: #1d2126;
  --text: #e6e9ed;
  --muted: #9aa3ae;
  --border: #2f353d;
  --accent: #4c8dff;
  --accent-soft: #1d2a40;
  --navy: #0b1220;
  --ok: #3fb950;
  --error: #f47067;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
a { color: var(--accent); }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h1 code { color: var(--accent); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 12px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.spoken { color: var(--muted); }

.top { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand img { border-radius: 7px; }
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav a:not(.btn):hover { color: var(--text); }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  border: 1px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn-sm { padding: 7px 14px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--accent); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 12px; }

.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.lede { font-size: 1.15rem; color: var(--muted); }
.lede strong { color: var(--text); }

.demo { margin: 0; background: var(--navy); color: var(--navy-text); border-radius: 14px; padding: 22px; }
.demo ol { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 14px; }
.demo li { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.demo li:last-child { border-bottom: 0; padding-bottom: 0; }
.demo span { font: 0.92rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.before { color: #9aa3ae; text-decoration: line-through; }
.after { color: #7fb4ff; }
.after::before { content: "→ "; color: #9aa3ae; }
.demo figcaption { color: #9aa3ae; }

.band { padding: 64px 0; }
.band-alt { background: var(--alt); }
.band-dark { background: var(--navy); color: var(--navy-text); }
.band-dark .facts li { border-color: rgba(255,255,255,0.12); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 28px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 16px; justify-content: center; margin-top: 20px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.facts li { padding-left: 26px; position: relative; }
.facts li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.band-dark .facts li::before { color: #3fb950; }

.plan { display: flex; flex-direction: column; }
.plan ul { padding-left: 18px; margin: 8px 0 20px; flex: 1; }
.plan .btn { text-align: center; }
.plan-pro { border: 2px solid var(--accent); }
.price { font-size: 2rem; font-weight: 700; margin: 0; }
.was { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; font-weight: 400; }
.founder { background: var(--accent-soft); border-radius: var(--radius); padding: 12px 16px; font-weight: 600; text-align: center; margin: 16px 0 0; }

details { border-bottom: 1px solid var(--border); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

.foot { border-top: 1px solid var(--border); padding: 16px 0; }

@media (max-width: 760px) {
  .hero { padding: 40px 0; }
  .hero-grid, .two, .grid3, .grid2 { grid-template-columns: minmax(0, 1fr); }
  nav a:not(.btn) { display: none; }
}

.license { width: 100%; font: 0.85rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--alt); color: var(--text); resize: none; word-break: break-all; }

.teams-title { margin: 48px 0 4px; text-align: center; font-size: 1.4rem; }
.teams { max-width: 900px; margin-left: auto; margin-right: auto; }
.teams .price { font-size: 1.6rem; }
.teams .plan .btn { margin-top: auto; }

.theme-toggle { background: none; border: 1px solid var(--border); color: var(--text); border-radius: 999px; width: 34px; height: 34px; cursor: pointer; font-size: 1rem; line-height: 1; }
.theme-toggle:hover { border-color: var(--accent); }
.founder-bar { display: block; background: var(--accent); color: #fff; text-align: center; padding: 8px 16px; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.founder-bar:hover { filter: brightness(1.08); }
.notify { max-width: 520px; margin: 40px auto 0; padding-top: 32px; border-top: 1px solid var(--border); }
.signup { display: flex; gap: 8px; margin: 12px 0 8px; }
.signup input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; }
.signup-done { font-weight: 600; color: var(--ok); }
.signup-error { color: var(--error); font-size: 0.9rem; flex-basis: 100%; margin: 0; }
.signup { flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 10px; }
.lang-select { font: inherit; font-size: 0.875rem; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); }

.doc h2 { margin-top: 32px; font-size: 1.3rem; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }

.dl-pill { display: inline-flex; align-items: stretch; border: 1px solid var(--accent); border-radius: 999px; overflow: hidden; }
.dl-pill a { display: flex; align-items: center; padding: 12px 20px; font-weight: 600; text-decoration: none; }
.dl-win { background: var(--accent); color: #fff; }
.dl-win:hover { filter: brightness(1.08); }
.dl-mac { color: var(--muted); font-size: 0.9rem; background: transparent; }
.dl-mac:hover { color: var(--text); }
.center-pill { display: flex; justify-content: center; margin-bottom: 8px; }
.banner-note { background: var(--accent-soft); border-radius: var(--radius); padding: 10px 14px; }
@media (max-width: 480px) { .dl-pill { flex-direction: column; border-radius: var(--radius); } }

.shot-band { padding-top: 24px; }
.app-shot { margin: 20px 0 0; }
.app-shot img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(11, 21, 48, 0.18); }
.app-shot figcaption { margin-top: 10px; text-align: center; }
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none; }
  :root:not([data-theme="light"]) .shot-dark { display: block; }
}
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }

.key-actions { display: flex; gap: 8px; flex-wrap: wrap; }
