:root {
  --plum-ink: #1b1426; --plum: #221a30; --plum-2: #352a4a; --accent: #6b3fa0; --accent-hover: #55308a;
  --jade: #0e8c6b; --lime: #b9e769;
  --bg: #f6f4f9; --surface: #fff; --ink: #1a1622; --muted: #514a5e; --line: #e4dfec;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #120e18; --surface: #1b1524; --ink: #ece8f3; --muted: #b3aac2; --line: #2e2640; --accent: #7c4fb5; --accent-hover: #8d62c4; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.hero { background: var(--plum); color: #f1edf7; padding: 20px 24px 64px; }
.nav { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.wordmark { font: 400 24px var(--display); letter-spacing: -0.01em; color: #cfc3e2; }
.wordmark b { color: #fff; font-weight: 700; }
.byline { font-size: 13px; color: #b3a6c9; margin-left: 2px; align-self: flex-end; padding-bottom: 3px; }
.footer a { color: inherit; }
.nav-links { display: flex; gap: 4px; }
.hero-link { color: #e6dcf5; font-weight: 600; }
.nav-link { color: #cfc3e2; text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
.nav-link:hover { color: #fff; background: var(--plum-2); }
.hero-inner { max-width: 1160px; margin: 48px auto 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero h1 { font: 600 clamp(32px, 4.4vw, 52px)/1.08 var(--display); letter-spacing: -0.02em; margin: 0 0 18px; }
.lede { font-size: 19px; color: #d8cfe6; margin: 0 0 28px; max-width: 36ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.hero .fine { color: #b3a6c9; }
.hero-shot { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); border: 1px solid #3c3052; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--lime); color: #1d2a07; }
.btn-primary:hover { background: #cdf08f; }
.card .btn-primary { background: var(--accent); color: #fff; }
.card .btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: #6b5a87; color: #f1edf7; }
.btn-ghost:hover { background: var(--plum-2); }
.card .btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.card .btn-ghost:hover { border-color: var(--accent); }
.btn[aria-disabled='true'] { opacity: .6; cursor: default; pointer-events: none; }

main section { max-width: 1160px; margin: 0 auto; padding: 72px 24px 0; }
h2 { font: 600 32px/1.15 var(--display); letter-spacing: -0.01em; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 24px; }
.grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.grid h3 { margin: 0 0 6px; font-size: 18px; }
.grid h3::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--jade); margin-right: 10px; vertical-align: 2px; }
.grid p { margin: 0; color: var(--muted); font-size: 16px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.shots figure { margin: 0; }
.shots img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 12px 30px -18px rgba(30,15,50,.4); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.card .btn { align-self: flex-start; }
.tag { font-size: 12px; font-weight: 700; color: #1d2a07; background: var(--lime); border-radius: 999px; padding: 3px 10px; }
.dl { display: flex; flex-wrap: wrap; gap: 10px; }
.privacy p { max-width: 70ch; color: var(--muted); }
.footer { max-width: 1160px; margin: 72px auto 0; padding: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .hero-inner, .cards, .shots { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 40px; }
  main section { padding-top: 56px; }
}

/* ---- Setup guide ---- */
.hero--small { padding-bottom: 48px; }
.nav-link[aria-current='page'] { color: #fff; background: var(--plum-2); }
.setup-hero { max-width: 1160px; margin: 40px auto 0; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.setup-hero h1 { font: 600 clamp(30px, 4vw, 46px)/1.1 var(--display); letter-spacing: -0.02em; margin: 0 0 14px; max-width: 20ch; }
.setup-hero .lede { max-width: 58ch; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--plum-2); color: #ece6f7; font-size: 14px; font-weight: 600; }
.chips svg { width: 16px; height: 16px; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-aside { margin: 18px 0 0; color: #b3a6c9; font-size: 15px; }
.hero-aside a { color: #e6dcf5; font-weight: 600; }

.doc-layout { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
.toc { position: sticky; top: 24px; align-self: start; margin-top: 48px; }
.toc-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

.doc { padding: 48px 0 0; min-width: 0; max-width: 820px; }
.doc section { scroll-margin-top: 24px; margin: 0 0 52px; padding: 0; max-width: none; }
.doc h2 { font-size: 28px; margin: 0 0 6px; display: flex; align-items: center; gap: 12px; }
.doc h3 { font-size: 17px; margin: 0 0 4px; }
.doc p { margin: 0 0 10px; }
.doc .sub { color: var(--muted); margin-bottom: 20px; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

.callout-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; box-shadow: 0 10px 30px -24px rgba(30,15,50,.5); }
.doc section.callout-card { padding: 22px 24px; }
.callout-card h2 { font-size: 19px; margin: 0 0 4px; }
.callout-card p { color: var(--muted); margin: 0; }
.callout-icon { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: color-mix(in srgb, var(--jade) 14%, transparent); fill: none; stroke: var(--jade); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.tile svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; margin-bottom: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile p { color: var(--muted); font-size: 15px; margin: 0; }

.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.option { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.option:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(60,30,100,.5); }
.option--rec { border-color: color-mix(in srgb, var(--jade) 55%, var(--line)); }
.option p { color: var(--muted); margin: 0; font-size: 15px; }
.option-go { margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 600; font-size: 15px; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge--rec { background: var(--lime); color: #1d2a07; border-color: transparent; }
.label-pill { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 18px; }
.label-pill--rec { background: var(--jade); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 26px 54px; counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 15px; }
.steps > li::after { content: ''; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps p { color: var(--muted); }

.code { margin: 10px 0 12px; border-radius: 12px; overflow: hidden; border: 1px solid #2e2440; background: #1b1426; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 14px; background: #241b33; color: #b8acc9; font: 600 12px ui-monospace, Menlo, monospace; }
.copy { font: 600 12px var(--font); color: #ece6f7; background: transparent; border: 1px solid #4a3d61; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.copy:hover { background: #352a4a; }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; color: #ece6f7; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

.aside-card { margin-top: 4px; padding: 20px 22px; border-radius: 14px; background: color-mix(in srgb, var(--lime) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--lime) 50%, var(--line)); }
.aside-card p { margin: 0; color: var(--ink); }
.cards--doc { margin-top: 16px; }
.cards--doc .card { gap: 8px; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.checks li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--jade) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.end-cta { text-align: center; padding: 40px 24px; border-radius: 20px; background: var(--plum); color: #f1edf7; }
.end-cta h2 { justify-content: center; color: #fff; }
.end-cta p { color: #cfc3e2; margin-bottom: 20px; }

@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; margin-top: 32px; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 4px 14px; border-left: 0; }
  .toc a { padding: 4px 0; border-left: 0; margin: 0; }
  .doc { padding-top: 24px; }
}
@media (max-width: 680px) {
  .tiles, .options, .checks { grid-template-columns: 1fr; }
  .steps > li { padding-left: 46px; }
}
