:root {
  --bg: #F4F2EE;
  --fg: #131118;
  --muted: #5B5764;
  --card: #FFFFFF;
  --line: rgba(19, 17, 24, 0.12);
  --field: #FFFFFF;
  --field-line: rgba(19, 17, 24, 0.22);
  --accent: #5B3BE8;
  --accent-ink: #4B2DD6;
  --accent-soft: rgba(91, 59, 232, 0.10);
  --on-accent: #FFFFFF;
  --ok: #1F7A4D;
  --err: #B42318;
  --shadow: 0 1px 2px rgba(19, 17, 24, 0.05), 0 12px 32px rgba(19, 17, 24, 0.07);
  --radius: 20px;
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131118; --fg: #F4F2EE; --muted: #ABA6B5; --card: #1C1922;
    --line: rgba(244, 242, 238, 0.10); --field: #131118; --field-line: rgba(244, 242, 238, 0.22);
    --accent-ink: #A794FF; --accent-soft: rgba(139, 114, 255, 0.16);
    --ok: #6FD3A0; --err: #FF8A80;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #131118; --fg: #F4F2EE; --muted: #ABA6B5; --card: #1C1922;
  --line: rgba(244, 242, 238, 0.10); --field: #131118; --field-line: rgba(244, 242, 238, 0.22);
  --accent-ink: #A794FF; --accent-soft: rgba(139, 114, 255, 0.16);
  --ok: #6FD3A0; --err: #FF8A80;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--font);
       -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none;
         font-weight: 700; font-size: 20px; letter-spacing: -0.2px; }
.brand img { width: 32px; height: 32px; }
.toplink { font-size: 15px; font-weight: 600; text-decoration: none; }
.toplink:hover { text-decoration: underline; }

.hero { display: grid; gap: 32px; padding: 32px 0 56px; align-items: start; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 72px 0 88px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 14px;
           font-weight: 600; color: var(--muted); }
.dot { width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--accent); flex: none;
       box-shadow: 0 0 0 4px var(--accent-soft); }
h1 { font-size: clamp(38px, 6.4vw, 60px); line-height: 1.04; letter-spacing: -1.4px; font-weight: 800;
     margin: 0 0 18px; text-wrap: balance; }
.lede { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.45; font-weight: 500; margin: 0 0 16px; max-width: 30em; }
.body { color: var(--muted); margin: 0 0 22px; max-width: 34em; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
            background: var(--accent-soft); color: var(--accent-ink); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
        box-shadow: var(--shadow); padding: 28px; }
@media (max-width: 480px) { .card { padding: 22px 18px; } }
.join { scroll-margin-top: 16px; }
.join h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.4px; font-weight: 700; }
.muted { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.row { display: flex; gap: 10px; }
@media (max-width: 400px) { .row { flex-direction: column; } }
input[type="email"] { flex: 1; min-width: 0; font: inherit; font-size: 17px; color: var(--fg);
                      background: var(--field); border: 1px solid var(--field-line); border-radius: 12px;
                      padding: 12px 14px; }
input[type="email"]::placeholder { color: var(--muted); opacity: 0.8; }
input[type="email"]:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
input[type="email"][aria-invalid="true"] { border-color: var(--err); outline-color: color-mix(in srgb, var(--err) 22%, transparent); }
.btn { font: inherit; font-weight: 700; font-size: 17px; border: 0; border-radius: 12px; padding: 12px 22px;
       background: var(--accent); color: var(--on-accent); cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
fieldset { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.opt { font-weight: 500; color: var(--muted); margin-left: 4px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checks label { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 10px 12px;
                border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 440px) { .checks { grid-template-columns: 1fr; } .checks label { padding: 9px 12px; } }
.checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status:empty { display: none; }
.status { margin: 16px 0 0; font-size: 15px; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.fine { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

.points { display: grid; gap: 16px; grid-template-columns: 1fr; padding-bottom: 72px; }
@media (min-width: 760px) { .points { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.point { border-top: 1px solid var(--line); padding-top: 22px; }
.point h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 700; }
.point p { margin: 0; color: var(--muted); font-size: 16px; }
.ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
       background: var(--accent-soft); color: var(--accent-ink); }
.ico svg { width: 22px; height: 22px; }

.foot { border-top: 1px solid var(--line); padding: 24px 0 40px; display: flex; flex-wrap: wrap; gap: 12px 24px;
        justify-content: space-between; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--fg); }

.thanks { min-height: 70vh; display: grid; place-items: center; padding: 48px 0; }
.thanks .card { max-width: 520px; text-align: center; }
.thanks img { width: 72px; height: 72px; margin: 0 auto 18px; }
.thanks h1 { font-size: clamp(30px, 5vw, 40px); }
.thanks p { color: var(--muted); margin: 0 0 20px; }

.doc { max-width: 760px; padding: 24px 0 72px; overflow-wrap: anywhere; }
@media (min-width: 720px) { .doc { padding: 48px 0 88px; } }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -1px; margin: 0 0 20px; }
.doc h2 { font-size: 24px; letter-spacing: -0.4px; font-weight: 700; margin: 44px 0 12px; }
.doc h3 { font-size: 19px; font-weight: 700; margin: 32px 0 10px; }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin: 0 0 8px; }
.doc li > ul { margin-top: 8px; }
.doc code { font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent-soft);
            border-radius: 6px; padding: 1px 5px; }
.table-scroll { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 14px;
                background: var(--card); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line);
                   min-width: 9em; overflow-wrap: normal; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-weight: 700; background: var(--accent-soft); }
@media (max-width: 640px) {
  .table-scroll { overflow: visible; border: 0; background: none; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 0;
            margin: 0 0 12px; }
  .doc td { min-width: 0; border-bottom: 0; padding: 6px 14px; overflow-wrap: anywhere; }
  .doc td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: 12px;
            font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: var(--muted); }
}
.tbc { background: #FFE58A; color: #3D2E00; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.draft-banner { border: 1px solid var(--line); border-left: 4px solid #D9A400; background: var(--card);
                border-radius: 12px; padding: 12px 16px; margin: 0 0 24px; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound p { color: var(--muted); margin: 0 0 20px; }
