:root {
  color-scheme: light dark;
  --bg: #f7f8fc; --surface: #ffffff; --text: #11141c; --muted: #4a5163; --border: #d9dde8;
  --accent: #3047d4; --accent-text: #ffffff; --accent-soft: #e8ecff; --focus: #1d2fa8;
  --ok: #17663a; --err: #b3261e;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12; --surface: #141824; --text: #eceff7; --muted: #aab1c4; --border: #2a3042;
    --accent: #4560f0; --accent-text: #ffffff; --accent-soft: #1b2342; --focus: #a9b9ff;
    --ok: #6fdc9b; --err: #ff9a92;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font: 1rem/1.6 var(--font); background: var(--bg); color: var(--text); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw + .5rem, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.5vw + .8rem, 2.1rem); margin-bottom: .8em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
@media (prefers-color-scheme: dark) { a { color: #9db2ff; } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-text); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2.5rem); }
section.wrap { padding-block: clamp(2rem, 6vw, 4rem); }

.top { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; }
.brand a, a.brand { display: inline-flex; align-items: center; gap: .5rem; }
.brand .logo { flex: none; display: block; }
@media (prefers-color-scheme: dark) { .logo .logo-body { fill: #c99a74; } .logo .logo-eye { fill: #141824; } .logo .logo-code { stroke: #141824; } }
.brand, .brand a { font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; margin: 0; }
.pill { font-size: .8rem; padding: .2rem .7rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }

.hero { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1.1fr .9fr; padding-top: clamp(1.5rem, 5vw, 3.5rem); }
.eyebrow { font-size: .9rem; color: var(--muted); font-weight: 600; margin-bottom: .8rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin-top: 1.5rem; }
.fine { font-size: .85rem; color: var(--muted); margin: 0; }
.platforms { margin: 1.1rem 0 .8rem; }
.pill-accent { display: inline-block; color: var(--text); border-color: var(--accent); background: var(--accent-soft); font-weight: 600; font-size: .85rem; }
.pill-ads { display: inline-block; font-size: .85rem; color: var(--text); margin: 0 .35rem .4rem 0; }
.pill-accent { margin-bottom: .4rem; }
.tm { font-size: .8rem; }
.link { color: var(--text); font-weight: 600; }

.btn { display: inline-block; font: inherit; font-weight: 700; background: var(--accent); color: var(--accent-text); border: 0; border-radius: 10px; padding: .85rem 1.4rem; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover { filter: brightness(1.1); }
.btn[disabled] { opacity: .65; cursor: progress; }

.hero-art { width: 100%; height: auto; }
.art-win { fill: var(--surface); stroke: var(--border); stroke-width: 2; }
.art-line { stroke: var(--border); stroke-width: 2; }
.art-dot.a { fill: var(--accent); } .art-dot.b { fill: #e0a400; } .art-dot.c { fill: #2fa66a; }
.art-bar { fill: var(--border); } .art-bar.x1 { fill: var(--accent); opacity: .85; } .art-bar.x2 { fill: var(--muted); opacity: .55; }
.art-card { fill: var(--accent-soft); stroke: var(--border); stroke-width: 2; }
.art-chip { fill: none; stroke: var(--accent); stroke-width: 2; }

.cards, .steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card, .steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.card p, .steps p { color: var(--muted); margin: 0; }
.steps { counter-reset: s; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; margin-bottom: .8rem; }

.signup-box { max-width: 560px; margin-inline: auto; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: clamp(1.3rem, 4vw, 2.2rem); }
.signup-box h2 { margin-bottom: .4em; }
.muted { color: var(--muted); }
.count { font-weight: 600; }
.field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type=email], input[type=text], select { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--muted); border-radius: 10px; padding: .75rem .9rem; min-height: 44px; }
input::placeholder { color: var(--muted); opacity: .8; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup-box .btn { width: 100%; }
.consent { font-size: .88rem; color: var(--muted); margin: .9rem 0 0; }
.status { margin: .8rem 0 0; font-weight: 600; min-height: 1.4em; }
.status.ok { color: var(--ok); } .status.err { color: var(--err); }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 1.1rem; margin-bottom: .7rem; }
summary { cursor: pointer; font-weight: 700; padding: 1rem 0; }
details[open] summary { margin-bottom: .2rem; }
details p { color: var(--muted); }

.foot { border-top: 1px solid var(--border); padding-block: 1.8rem 3rem; color: var(--muted); font-size: .9rem; }
.foot p { margin: 0 0 .4rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.3rem; }
.prose li { margin-bottom: .4em; }
.standalone { padding-block: 3rem; margin-inline: auto; }
.standalone .btn { margin-top: .5rem; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
}
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
