:root {
  --bg: #0b0b0d;
  --bg-2: #121216;
  --bg-3: #1a1a20;
  --fg: #ece8e1;
  --fg-2: #c9c4bb;
  --muted: #8f8a82;
  --accent: #d8b46a;
  --accent-2: #f0d9a4;
  --line: #26252b;
  --red: #d9583b;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --radius: 16px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; }
h1 { font-size: clamp(38px, 6vw, 64px); margin: 0 0 16px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 16px; }
h3 { font-size: 22px; margin: 28px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.kicker { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.lede { font-size: 20px; color: var(--fg-2); max-width: 44ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 24px; padding: 12px max(16px, calc((100vw - var(--max)) / 2)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 16px; }
.brand img { border-radius: 7px; }
.topbar nav { display: flex; gap: 22px; margin-left: auto; }
.topbar nav a { color: var(--fg-2); text-decoration: none; font-size: 15px; }
.topbar nav a:hover { color: var(--fg); }
.topbar .btn { padding: 8px 16px; font-size: 14px; }
@media (max-width: 720px) {
  .topbar { gap: 12px; }
  .topbar nav a:not([href="/learn/"]) { display: none; }
  .brand span { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #17130a; }
.btn-primary:hover { background: var(--accent-2); color: #17130a; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); color: var(--fg); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.is-static { cursor: default; }
.is-static:active { transform: none; }

/* ---------- home: hero ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 96px 16px; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.say { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 18px; font-size: 15px; color: var(--muted); }
.say .ipa { font-family: var(--serif); font-style: italic; color: var(--fg-2); }
.hero h1 .swap { display: inline-grid; }
.hero h1 .swap > span { grid-area: 1 / 1; transition: opacity .6s, transform .6s, filter .6s; }
.hero h1 .swap > span.out { opacity: 0; transform: translateY(-12px); filter: blur(6px); }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.demo { position: relative; display: grid; justify-items: center; gap: 14px; }
.demo svg { width: min(100%, 440px); height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)); touch-action: none; }
.demo .crown { cursor: grab; }
.demo-ui { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.demo-ui output { font-variant-numeric: tabular-nums; color: var(--fg-2); }
.demo-ui .stopped { color: var(--red); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; }
  .demo { order: -1; }
  .demo svg { width: min(100%, 340px); }
}

/* ---------- home: pun band ---------- */
.pun-band { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.pun-band .inner { max-width: var(--max); margin: 0 auto; padding: 56px 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pun-band h3 { margin: 0 0 6px; font-size: 26px; }
.pun-band h3 em { color: var(--accent); }
.pun-band p { margin: 0; color: var(--fg-2); }
@media (max-width: 860px) { .pun-band .inner { grid-template-columns: 1fr; } }

/* ---------- home: steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; margin-top: 40px; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); color: var(--accent); font-size: 28px; margin-bottom: 8px; }
.step h3 { margin: 0 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--fg-2); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- home: feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .shot { order: 2; }
.feature ul { padding-left: 20px; color: var(--fg-2); }
.feature li { margin: 6px 0; }
.shots { display: flex; gap: 16px; justify-content: center; }
.shot { display: flex; justify-content: center; }
.shot img { width: 280px; max-width: 100%; border-radius: 36px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.shots .shot img { width: 230px; }
.shots .shot:nth-child(2) { transform: translateY(32px); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .shot { order: 0; }
  .shots .shot img { width: 44vw; border-radius: 24px; }
}

/* ---------- home: gallery strip ---------- */
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 24px; margin: 32px -16px 0; scrollbar-width: thin; }
.strip figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.strip img { width: 220px; border-radius: 28px; border: 1px solid var(--line); display: block; }
.strip figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- pricing ---------- */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.tier { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tier.gold { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--bg-2)), var(--bg-2) 60%); }
.tier h3 { margin: 0 0 4px; }
.tier .cost { font-size: 15px; color: var(--muted); margin: 0 0 12px; }
.tier ul { padding-left: 20px; margin: 0; color: var(--fg-2); }
@media (max-width: 720px) { .price { grid-template-columns: 1fr; } }

/* ---------- get it ---------- */
.get { text-align: center; }
.get h2 { font-size: clamp(34px, 5vw, 56px); }
.get .lede { margin: 0 auto 28px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--fg); transition: border-color .15s, transform .15s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); color: var(--fg); }
.card strong { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.25; }
.card .muted { font-size: 15px; line-height: 1.5; }
.card .kicker { margin: 0; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] > summary::after { content: "–"; }
details > :not(summary) { color: var(--fg-2); }
.faq-list { max-width: 760px; }

/* ---------- plain pages ---------- */
.page { max-width: var(--max); margin: 0 auto; padding: 56px 16px 96px; }
.page.narrow { max-width: 760px; }
.page-head { margin-bottom: 48px; }
.page-head h1 { margin-bottom: 12px; }
.learn section { margin-top: 56px; }
.learn section h2 { font-size: 28px; }

/* ---------- articles ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 40px 16px 96px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs span { margin: 0 6px; opacity: .6; }
.article h1 { font-size: clamp(34px, 5.4vw, 52px); }
.article .lede { max-width: none; margin: 0 0 12px; }
.byline { margin: 0 0 32px; }
.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 22px; margin-bottom: 40px; }
.toc summary { font-size: 15px; }
.toc ol { margin: 10px 0 4px; padding-left: 20px; font-size: 15px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--fg-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.prose h2 { font-size: clamp(26px, 3.4vw, 32px); margin: 56px 0 14px; scroll-margin-top: 80px; }
.prose p, .prose li { color: var(--fg-2); }
.prose strong { color: var(--fg); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--fg); }
.prose figure { margin: 32px 0; text-align: center; }
.prose figure img { border-radius: 24px; border: 1px solid var(--line); width: 300px; }
.prose figure svg { width: 100%; height: auto; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.prose .table-wrap { overflow-x: auto; margin: 24px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--fg); font-weight: 600; background: var(--bg-2); }
.prose td { color: var(--fg-2); }
.prose .note { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.prose .note p { margin: 0; }
.prose .faq { margin-top: 56px; }
.prose dl dt { font-weight: 600; color: var(--fg); margin-top: 18px; }
.prose dl dd { margin: 4px 0 0; color: var(--fg-2); }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; margin: 36px 0; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--bg-2)); }
.inline-cta p { margin: 0; flex: 1 1 300px; color: var(--fg-2); }
.end-cta { display: flex; gap: 22px; align-items: flex-start; margin-top: 64px; padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.end-cta img { border-radius: 16px; flex: none; }
.end-cta p { margin: 0 0 14px; }
@media (max-width: 560px) { .end-cta { flex-direction: column; } }
.related { margin-top: 72px; }
.related h2 { font-size: 26px; }
.related .cards { grid-template-columns: 1fr; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 48px 16px 24px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer nav { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer nav a { color: var(--fg-2); text-decoration: none; }
.footer nav a:hover { color: var(--accent); }
.footer strong { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.copy { max-width: var(--max); margin: 0 auto; padding: 0 16px 32px; }
.pun { font-family: var(--serif); font-size: 22px; margin: 0 0 8px; color: var(--fg); }
.pun em { color: var(--accent); }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-inner > div { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.is-static { white-space: normal; text-align: center; justify-content: center; max-width: 100%; }
