@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  --paper: #f8f4f2; --surface: #ffffff; --sunken: #f0e9e6; --ink: #1f1418; --muted: #64545a; --faint: #76666c; --line: #e8dfdc;
  --wine: #6b1a31; --accent: #9b2340; --gold: #c9a227; --gold-ink: #241604; --good: #2e7d55;
  --on-wine: #f8eff1; --on-wine-muted: #d9bfc6;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 20px; --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(31, 20, 24, .04), 0 12px 32px -18px rgba(31, 20, 24, .28);
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #2b2226; --surface: #372c31; --sunken: #3c3035; --ink: #f6eef0; --muted: #cfbec3; --faint: #ab979c; --line: #4b3d42; --accent: #ec9cb1; --good: #6fcf97; --wine: #7a2038; color-scheme: dark;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -18px rgba(0,0,0,.7); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 68px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-synthesis: none; font-optical-sizing: auto; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
b, strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.012em; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; max-width: 24ch; }
.head.center { text-align: center; max-width: 720px; }
.head.center h2, .head.center .lede { margin-left: auto; margin-right: auto; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 58ch; margin-top: 16px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--faint); max-width: 70ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); transition: box-shadow .2s; }
header.top.scrolled { box-shadow: 0 6px 20px -14px rgba(31, 20, 24, .35); }
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand.small { font-size: 18px; } .brand.small img { width: 24px; height: 24px; border-radius: 6px; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: background-color .15s, color .15s; }
.menu a:hover { background: var(--sunken); }
.menu a[aria-current="true"] { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.menubtn { display: none; appearance: none; border: 1px solid var(--line); background: var(--surface); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; position: relative; flex: none; }
.menubtn span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s var(--ease); }
.menubtn span:first-child { top: 16px; } .menubtn span:last-child { top: 24px; }
.menubtn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menubtn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav { gap: 10px; height: 62px; }
  .nav .cta { margin-left: auto; }
  .menubtn { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 2px; margin: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -20px rgba(31, 20, 24, .45); }
  .menu.open { display: flex; }
  .menu a { font-size: 17px; padding: 14px 14px; border-radius: 12px; }
}
@media (max-width: 380px) { .nav .cta { padding: 9px 12px; font-size: 13.5px; } }

/* buttons */
.btn { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; border-radius: 999px; padding: 13px 22px; font: 600 15.5px/1 var(--sans); text-decoration: none; transition: transform .12s var(--ease), filter .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn.gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 6px 16px -8px rgba(201, 162, 39, .9); }
.btn.gold:hover { filter: brightness(1.06); }
.btn.small { padding: 10px 16px; font-size: 14.5px; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* hero */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 15ch; }
.signup { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; max-width: 480px; }
.signup .row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .15s; }
.signup .row:focus-within { border-color: var(--accent); }
.signup input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 16px var(--sans); padding: 10px 14px; }
.signup input:focus { outline: none; }
.signup .msg { font-size: 14.5px; padding-left: 18px; min-height: 1.5em; }
.signup .msg.ok { color: var(--good); } .signup .msg.err { color: var(--accent); }
.signup .note { font-size: 13.5px; color: var(--faint); padding-left: 18px; }
@media (max-width: 460px) { .signup .row { flex-direction: column; border-radius: 22px; } .signup .btn { width: 100%; } .signup input { padding: 12px 14px; } }
.facts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts svg { width: 16px; height: 16px; fill: none; stroke: var(--good); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* device frames: straight, crisp, no tilt */
.device { position: relative; background: #140a0d; border-radius: 42px; padding: 9px; box-shadow: 0 30px 60px -30px rgba(31, 8, 15, .55), 0 0 0 1px rgba(255,255,255,.06) inset; }
.device img { border-radius: 33px; width: 100%; aspect-ratio: 1170 / 1992; object-fit: cover; object-position: top; background: var(--sunken); }
.hero-art { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; padding-block: 12px 24px; }
.hero-art .back { grid-column: 6 / 13; grid-row: 1; margin-top: 0; opacity: .96; }
.hero-art .front { grid-column: 1 / 8; grid-row: 1; margin-top: 64px; z-index: 1; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 460px; margin: 8px auto 0; width: 100%; }
}

/* sections */
section { padding-block: clamp(64px, 8vw, 112px); }
section.tight { padding-top: 0; }
.band { background: var(--wine); color: var(--on-wine); }
.band h2 { color: #fff; }
.band .rules b { color: #fff; }
.band .lede { color: var(--on-wine-muted); }
.split { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.rules { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.rules li { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-direction: column; gap: 4px; }
.rules li:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.rules b { color: #fff; font-weight: 600; font-size: 17.5px; }
.rules span { color: var(--on-wine-muted); font-size: 16px; }

.shots { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.shots .device { max-width: 300px; width: 100%; margin: 0 auto; }
.shots figcaption { text-align: center; color: var(--muted); font-size: 15.5px; max-width: 30ch; margin: 0 auto; }
.shots figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 16.5px; margin-bottom: 2px; }
@media (max-width: 760px) {
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); padding-inline: max(20px, env(safe-area-inset-left, 0px)); scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots figure { scroll-snap-align: center; }
}

.levels { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.lv { padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); }
.lv:first-child { border-left: 0; }
.lv .rg { font-size: 13px; font-weight: 600; color: var(--accent); }
.lv p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lv:nth-child(3) { border-left: 0; } .lv:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 540px) { .levels { grid-template-columns: minmax(0, 1fr); } .lv { border-left: 0; } .lv + .lv { border-top: 1px solid var(--line); } }

.course { margin-top: 28px; padding: 28px; border-radius: var(--r); background: var(--sunken); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.course p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
.course ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; color: var(--ink); font-size: 15.5px; }
.course ol li { break-inside: avoid; padding: 3px 0; }
.course ol li::marker { color: var(--faint); }
@media (max-width: 760px) { .course { grid-template-columns: minmax(0, 1fr); padding: 22px; } }
@media (max-width: 460px) { .course ol { columns: 1; } }

.feats { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; }
.feat { padding: 28px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.feat svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.feat p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feats { grid-template-columns: minmax(0, 1fr); } }

.price { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; box-shadow: var(--shadow); }
.plan.best { border-color: var(--gold); }
.tag { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sunken); color: var(--muted); }
.tag.gold { background: color-mix(in srgb, var(--gold) 20%, transparent); color: #7a5c00; }
@media (prefers-color-scheme: dark) { .tag.gold { color: #e9c75a; } }
.plan .amt { font-family: var(--serif); font-size: 50px; font-weight: 600; line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.plan .amt small { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--muted); }
.plan p { color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .price { grid-template-columns: minmax(0, 1fr); } }

.faqwrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .faqwrap { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 66ch; }

.final .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; align-items: center; }
.final .signup { margin-top: 0; }
.final .signup .row { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); box-shadow: none; }
.final .signup input { color: #fff; } .final .signup input::placeholder { color: var(--on-wine-muted); }
.final .signup .note { color: var(--on-wine-muted); } .final .signup .note a { color: #fff; }
.final .signup .msg.ok { color: #9fe0bb; } .final .signup .msg.err { color: #ffc6d3; }
@media (max-width: 860px) { .final .wrap { grid-template-columns: minmax(0, 1fr); } }

footer { padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: auto 1fr; gap: 16px 32px; align-items: center; }
.foot nav { display: flex; gap: 22px; justify-self: end; font-size: 14.5px; }
.foot nav a { color: var(--muted); text-decoration: none; } .foot nav a:hover { color: var(--ink); }
.legal { grid-column: 1 / -1; color: var(--faint); font-size: 13.5px; max-width: 80ch; }

/* privacy page */
.doc { padding-block: 48px 80px; }
.doc h1 { font-size: clamp(34px, 4.4vw, 48px); }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc p, .doc li { color: var(--muted); max-width: 68ch; margin-top: 12px; }
.doc ul { padding-left: 22px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
.nav .brand + .cta { margin-left: auto; }
@media (max-width: 900px) { html { scroll-padding-top: 62px; } }
