/* Shared styles for the generated content pages (web/pages/*.html, built by
   scripts/site/build.mjs). Same tokens and components as web/landing.html, which keeps
   its own inline copy so the homepage stays a single self-contained file. */
:root {
  color-scheme: dark;
  --bg: #07080b;
  --glass: rgba(255,255,255,.035);
  --glass-2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --fg: #f3f4f7;
  --muted: #9ba1ad;
  --dim: #6b7280;
  --violet: #a78bfa;
  --teal: #5eead4;
  --grad: linear-gradient(120deg, #c4b5fd 0%, #93c5fd 45%, #5eead4 100%);
  --maxw: 1120px;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font:17px/1.6 var(--sans); background:var(--bg); color:var(--fg); -webkit-font-smoothing:antialiased; overflow-x:hidden; }
a { color:inherit; text-decoration:none; }
p { margin:0; }
h1, h2, h3 { margin:0; font-weight:600; letter-spacing:-.025em; }
.wrap { max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.narrow { max-width:760px; margin:0 auto; padding:0 24px; }
.serif { font-family:var(--serif); font-style:italic; font-weight:400; letter-spacing:-.01em; }
.grad { background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.kicker { display:inline-block; font-size:13px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--violet); margin-bottom:16px; }

/* Background glow */
.aurora { position:absolute; inset:0 0 auto 0; height:700px; pointer-events:none; overflow:hidden; z-index:0; }
.aurora::before, .aurora::after { content:""; position:absolute; border-radius:50%; filter:blur(90px); opacity:.5; }
.aurora::before { width:560px; height:560px; left:50%; top:-260px; transform:translateX(-70%); background:radial-gradient(circle, rgba(139,92,246,.55), transparent 65%); }
.aurora::after { width:500px; height:500px; left:50%; top:-180px; transform:translateX(5%); background:radial-gradient(circle, rgba(45,212,191,.35), transparent 65%); }

/* Buttons */
.btn { display:inline-flex; align-items:center; gap:8px; padding:12px 20px; border-radius:999px; font:inherit; font-size:15px; font-weight:600; cursor:pointer; border:0; transition:transform .15s ease, box-shadow .2s ease, background .2s ease; white-space:nowrap; }
.btn.primary { background:#fff; color:#0a0a0f; box-shadow:0 0 0 1px rgba(255,255,255,.2), 0 8px 30px -8px rgba(167,139,250,.6); }
.btn.primary:hover { transform:translateY(-1px); box-shadow:0 0 0 1px rgba(255,255,255,.3), 0 12px 40px -8px rgba(167,139,250,.8); }
.btn.ghost { background:var(--glass); color:var(--fg); box-shadow:inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background:var(--glass-2); }
.btn .arrow { transition:transform .15s ease; }
.btn:hover .arrow { transform:translateX(3px); }

/* Nav */
.nav { position:sticky; top:0; z-index:20; backdrop-filter:saturate(160%) blur(14px); -webkit-backdrop-filter:saturate(160%) blur(14px); background:rgba(7,8,11,.6); border-bottom:1px solid var(--line); }
.nav .wrap { display:flex; align-items:center; justify-content:space-between; height:64px; gap:16px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:600; font-size:17px; letter-spacing:-.01em; }
.mark { width:26px; height:26px; flex:0 0 auto; }
.nav-links { display:flex; align-items:center; gap:28px; font-size:14.5px; }
.nav-links a.text { color:var(--muted); transition:color .15s ease; }
.nav-links a.text:hover { color:var(--fg); }
.nav .btn { padding:8px 16px; font-size:14px; }
@media (max-width:760px) { .nav-links a.text { display:none; } .nav-links { gap:10px; } }

/* Hero */
.hero { position:relative; padding:clamp(64px,9vw,112px) 0 clamp(40px,6vw,64px); text-align:center; }
.hero .narrow { position:relative; z-index:1; }
h1 { font-size:clamp(38px,6.4vw,68px); line-height:1.04; letter-spacing:-.045em; margin:0 auto; text-wrap:balance; }
h1 .serif { font-size:1.06em; letter-spacing:-.02em; }
.sub { font-size:clamp(17px,2.2vw,20px); color:var(--muted); max-width:44ch; margin:22px auto 0; line-height:1.5; }
.cta-row { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:32px; }

/* Article body */
.body { position:relative; z-index:1; padding-bottom:24px; }
.body section { padding:40px 0; border-top:1px solid var(--line); }
.body h2 { font-size:clamp(26px,3.6vw,36px); line-height:1.12; letter-spacing:-.035em; margin-bottom:16px; text-wrap:balance; }
.body p { color:var(--muted); margin-top:14px; }
.body p:first-of-type { margin-top:0; }
.body b, .body strong { color:var(--fg); font-weight:600; }
.points { list-style:none; padding:0; margin:20px 0 0; display:grid; gap:12px; }
.points li { padding:16px 18px; border-radius:14px; background:var(--glass); box-shadow:inset 0 0 0 1px var(--line); color:var(--muted); }
.points li b { display:block; margin-bottom:2px; }
.steps { list-style:none; padding:0; margin:20px 0 0; counter-reset:step; display:grid; gap:12px; }
.steps li { counter-increment:step; position:relative; padding:16px 18px 16px 58px; border-radius:14px; background:var(--glass); box-shadow:inset 0 0 0 1px var(--line); color:var(--muted); }
.body .steps + p { margin-top:16px; font-size:15px; }
.steps li::before { content:counter(step); position:absolute; left:18px; top:15px; width:26px; height:26px; border-radius:999px; display:grid; place-items:center; font-size:13px; font-weight:600; color:#0a0a0f; background:var(--grad); }
code { font-family:var(--mono); font-size:.88em; background:var(--glass-2); padding:2px 6px; border-radius:6px; color:var(--fg); overflow-wrap:anywhere; }
pre { margin:12px 0 0; padding:14px 16px; border-radius:12px; background:#0b0d12; box-shadow:inset 0 0 0 1px var(--line); overflow-x:auto; }
pre code { background:none; padding:0; font-size:13.5px; overflow-wrap:normal; }
.says { margin-top:18px; display:grid; gap:10px; }
.says p { margin:0; padding:14px 18px; border-radius:14px; background:var(--glass-2); color:var(--fg); }
.says p span { display:block; font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--violet); margin-bottom:4px; }

/* FAQ */
.faq { margin-top:8px; }
.faq details { border-bottom:1px solid var(--line); }
.faq summary { list-style:none; cursor:pointer; padding:20px 4px; font-size:18px; font-weight:500; letter-spacing:-.015em; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-size:22px; font-weight:300; color:var(--muted); transition:transform .2s ease; }
.faq details[open] summary::after { transform:rotate(45deg); }
.faq details p { color:var(--muted); padding:0 4px 20px; margin:0; font-size:16px; }

/* Other guides */
.more { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:12px; margin-top:18px; }
.more a { padding:16px 18px; border-radius:14px; background:var(--glass); box-shadow:inset 0 0 0 1px var(--line); font-weight:500; transition:background .15s ease; }
.more a:hover { background:var(--glass-2); }
.more a span { display:block; color:var(--muted); font-size:14px; font-weight:400; }

/* Document pages (the privacy policy): a quieter hero and a long, readable body. */
.doc-hero { padding:clamp(56px,8vw,96px) 0 clamp(28px,4vw,40px); }
.doc-hero h1 { font-size:clamp(36px,5.4vw,56px); }
.doc-hero .effective { color:var(--muted); font-size:15px; margin-top:16px; }
.doc section { padding:32px 0; }
.doc section#intro { border-top:0; padding-top:8px; }
.doc h2 { font-size:clamp(24px,3vw,30px); }
.doc h3 { font-size:18px; letter-spacing:-.015em; margin-top:26px; }
.doc h3 + p { margin-top:8px; }
.doc h2 + h3 { margin-top:8px; }
.body.doc ul + p { margin-top:16px; }
.doc ul { margin:14px 0 0; padding-left:22px; color:var(--muted); display:grid; gap:10px; }
.doc li { overflow-wrap:anywhere; }
.doc a { color:var(--fg); text-decoration:underline; text-decoration-color:var(--line-2); text-underline-offset:3px; }
.doc a:hover { text-decoration-color:var(--fg); }
.doc .summary, .doc .toc { margin-top:24px; padding:20px 22px; border-radius:14px; background:var(--glass); box-shadow:inset 0 0 0 1px var(--line); }
.doc .summary h2, .doc .toc h2 { font-size:13px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--violet); margin:0; }
.doc .toc ul { list-style:none; padding:0; gap:6px; }

/* Final CTA */
.final { position:relative; overflow:hidden; text-align:center; padding:clamp(72px,10vw,120px) 0; }
.final .glow { position:absolute; left:50%; bottom:-340px; width:900px; height:600px; transform:translateX(-50%); background:radial-gradient(closest-side, rgba(139,92,246,.35), rgba(45,212,191,.12) 60%, transparent); filter:blur(30px); pointer-events:none; }
.final .narrow { position:relative; }
.final h2 { font-size:clamp(30px,4.6vw,48px); letter-spacing:-.04em; line-height:1.08; text-wrap:balance; }
.final p { color:var(--muted); margin-top:16px; }

/* Footer */
footer { border-top:1px solid var(--line); padding:36px 0; color:var(--dim); font-size:14px; }
footer .wrap { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; }
footer .links { display:flex; gap:22px; flex-wrap:wrap; }
footer a:hover { color:var(--fg); }
footer .tagline { color:var(--dim); font-weight:400; margin-left:12px; padding-left:12px; border-left:1px solid var(--line-2); }
