/* Holdout: night, one warm fire. Same palette as the app (all text WCAG AA). */
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces.ttf) format("truetype"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/nunito.ttf) format("truetype"); font-weight: 300 900; font-display: swap; }

:root {
  --night: #0e0b14; --surface: #1a1522; --surface2: #262033; --line: #3a3248;
  --text: #f5ede3; --text2: #b8ac9f; --muted: #8a7f86;
  --ember: #ff8a3d; --amber: #ffb547; --on-ember: #1a0e05; --moss: #7bd88f; --moon: #a9b8ff;
  --r: 28px; --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--night); color: var(--text2);
  font: 400 18px/1.6 "Nunito", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; color: var(--text); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(48px, 9vw, 112px); letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 5.2vw, 64px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
p { text-wrap: pretty; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.label { font: 800 13px/1 "Nunito", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.lede { font-size: clamp(19px, 2vw, 22px); color: var(--text2); max-width: 36ch; }

/* top bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; padding: 16px 0; transition: background .3s, backdrop-filter .3s; }
.bar.solid { background: rgba(14, 11, 20, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(58, 50, 72, .5); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 22px "Fraunces", serif; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--text2); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav a.btn, .nav a.btn:hover { color: var(--on-ember); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 18px;
  background: var(--ember); color: var(--on-ember); font: 800 17px "Nunito", sans-serif; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .18s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s; box-shadow: 0 10px 40px -12px rgba(255, 138, 61, .7); }
.btn:hover { color: var(--on-ember); transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--text2); color: var(--text); }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 14px; }

/* hero */
.hero { min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; padding: 120px 0 60px; isolation: isolate; }
.hero canvas.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero .glow { position: absolute; inset: auto 0 0; height: 70%; z-index: -1;
  background: radial-gradient(60% 55% at 50% 72%, rgba(255, 138, 61, .28), rgba(255, 138, 61, 0) 70%); }
.hero .ember { width: min(360px, 70vw); aspect-ratio: 1; margin: 0 auto -10px; display: block; }
.hero h1 { margin-top: 6px; }
.hero .lede { margin: 22px auto 34px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* sections */
section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 880px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.copy h2 { margin: 14px 0 18px; }
.copy p + p { margin-top: 14px; }

.phone { width: min(330px, 78vw); margin-inline: auto; border-radius: 46px; padding: 11px; background: linear-gradient(160deg, #2b2436, #120f18);
  box-shadow: 0 40px 120px -30px rgba(255, 138, 61, .35), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.phone img { display: block; width: 100%; height: auto; border-radius: 36px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border-radius: var(--r); padding: 30px; border: 1px solid rgba(58, 50, 72, .6); }
.step .n { font: 700 15px "Nunito"; color: var(--on-ember); background: var(--ember); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { margin-bottom: 10px; }

.quote { font: 500 clamp(24px, 3.2vw, 38px)/1.25 "Fraunces", serif; color: var(--text); letter-spacing: -0.01em; }
.quote em { color: var(--amber); font-style: normal; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 980px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: 24px; padding: 26px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { font-size: 16px; }
.card .ico { font-size: 26px; margin-bottom: 10px; display: block; }

.science { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
@media (max-width: 880px) { .facts { grid-template-columns: 1fr; } }
.fact .big { font: 600 clamp(48px, 6vw, 72px)/1 "Fraunces", serif; color: var(--ember); letter-spacing: -0.03em; }
.fact p { margin-top: 10px; font-size: 16px; }
.fact cite { display: block; font-size: 13px; color: var(--muted); font-style: normal; margin-top: 8px; }

.price { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } }
.tier { background: var(--surface); border-radius: var(--r); padding: 34px; border: 1px solid rgba(58, 50, 72, .6); }
.tier.plus { background: linear-gradient(160deg, #2a1d22, var(--surface)); border-color: rgba(255, 138, 61, .45); }
.tier .amt { font: 600 44px/1 "Fraunces", serif; color: var(--text); margin: 14px 0 6px; }
.tier ul { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 10px; }
.tier li { padding-left: 28px; position: relative; }
.tier li::before { content: "✦"; position: absolute; left: 0; color: var(--amber); }

details { background: var(--surface); border-radius: 20px; padding: 20px 24px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; color: var(--text); font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--amber); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin-top: 12px; }

footer { padding: 60px 0 50px; border-top: 1px solid var(--line); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--text2); text-decoration: none; }
footer a:hover { color: var(--text); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* forms */
.form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.form input[type=email] { min-height: 52px; min-width: min(340px, 100%); flex: 1 1 260px; max-width: 420px; padding: 0 18px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 17px "Nunito", sans-serif; }
.form input::placeholder { color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; justify-content: center; font-size: 14px; color: var(--muted); margin-top: 14px; text-align: left; }
.consent input { margin-top: 4px; accent-color: var(--ember); width: 18px; height: 18px; }
.status { min-height: 24px; margin-top: 12px; font-weight: 700; }
.status.ok { color: var(--moss); } .status.err { color: #ff6b5b; }

/* document pages */
.doc { padding: 140px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 12px; }
.doc h2 { font-size: 28px; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--text2); }
.doc ul { padding-left: 22px; display: grid; gap: 8px; margin-top: 10px; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); }
.code { font: 800 clamp(34px, 7vw, 56px) "Nunito", monospace; letter-spacing: .08em; color: var(--amber); }

/* utility (no inline styles anywhere: the CSP forbids them) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.narrow { max-width: 820px; }
.faq-title { margin-bottom: 28px; }
.center { text-align: center; }
.lede.mid { margin: 18px auto 30px; }
.amt small { font-size: 18px; color: var(--text2); }
