:root {
  --bg: #0A0C0F;
  --bg-alt: #0D0F13;
  --surface: #12151A;
  --surface-featured: #15181E;
  --line-section: #1A1E25;
  --line-card: #1F242C;
  --line-input: #262C35;
  --line-secondary: #2A313B;
  --text: #E8EAED;
  --text-2: #B8C0CA;
  --muted: #9AA3AE;
  --text-3: #8A93A0;
  --strike: #6B7480;
  --gold: #C2912E;
  --gold-hover: #D2A23A;
  --green: #22C55E;
  --green-line: #2A3A2E;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

h1, h2, h3 { font-weight: 800; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 1rem; letter-spacing: -0.01em; }
.gold { color: var(--gold); }
h1 .gold { white-space: nowrap; }

.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.lede { font-size: 1.1875rem; line-height: 1.6; color: var(--text-2); margin: 0; max-width: 540px; text-wrap: pretty; }
.body-lg { font-size: 1.125rem; line-height: 1.65; color: var(--text-2); margin: 0; text-wrap: pretty; }
.fine { font-size: 0.875rem; line-height: 1.5; color: var(--text-3); margin: 0; }
.caption { font-size: 0.875rem; color: var(--text-3); margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 10px; padding: 15px 22px; cursor: pointer;
  font: 800 1rem Manrope, sans-serif; text-decoration: none;
  transition: background .3s ease, border-color .2s ease, color .2s ease;
}
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-hover); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-secondary); font-weight: 700; padding: 13px; }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-sm { padding: 9px 16px; border-radius: 8px; font-size: 0.875rem; font-weight: 700; }

/* Header (index) */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 12, 15, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-section);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.site-head .logo { height: 28px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 0.875rem; font-weight: 600; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--gold); }
@media (max-width: 680px) { .nav a { display: none; } }

/* Header (simple pages: confirmed, thanks, 404) */
.top { padding-top: 28px; }
.logo { height: 30px; width: auto; display: block; }

/* Sections */
.sec { padding: 96px 0; }
.sec-alt { background: var(--bg-alt); border-top: 1px solid var(--line-section); }
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: start; }
.stack-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 680px) { .sec { padding: 72px 0; } }

/* Hero */
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 72px; }
@media (max-width: 680px) { .hero-grid { padding-top: 48px; padding-bottom: 56px; gap: 40px; } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.signup-wrap { display: flex; flex-direction: column; gap: 12px; max-width: 540px; }
.signup { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input {
  flex: 1 1 240px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line-input); border-radius: 10px;
  padding: 15px 16px; color: var(--text); font: 500 1rem Manrope, sans-serif; outline: none;
}
.signup input:focus { border-color: var(--gold); }
.signup button { min-width: 286px; }
.signup button .deal { font-weight: 600; opacity: .75; }
@media (max-width: 520px) { .signup button { min-width: 0; flex: 1 1 100%; } }
.signup .spin, .signup .ok { display: none; }
.signup[data-state="sending"] .lbl, .signup[data-state="done"] .lbl { display: none; }
.signup[data-state="sending"] .spin { display: block; }
.signup[data-state="done"] .ok { display: flex; align-items: center; gap: 10px; animation: ftsIn .25s ease-out; }
.signup[data-state="done"] button { background: var(--green); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(10, 12, 15, .25); border-top-color: var(--bg); animation: ftsSpin .7s linear infinite; }
.ok .tick { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; animation: ftsPop .4s ease-out; }
.form-error { color: #F0A3A3; font-size: 0.875rem; margin: 0; }
.form-error:empty { display: none; }
.confirm {
  background: var(--surface); border: 1px solid var(--green-line); border-radius: 10px;
  padding: 14px 18px; display: flex; align-items: center; gap: 14px; animation: ftsIn .4s ease-out;
}
.confirm[hidden] { display: none; }
.confirm .tick { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 0.9375rem; font-weight: 800; animation: ftsPop .45s ease-out; }
.confirm strong { display: block; font-size: 1rem; }
.confirm span { font-size: 0.875rem; color: var(--muted); }

.demo { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.demo-frame { position: relative; background: var(--surface); border: 1px solid var(--line-card); border-radius: 16px; padding: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
.demo-frame video { width: 100%; height: auto; display: block; border-radius: 10px; background: var(--bg); }
.demo-frame .v-phone { display: none; }
@media (max-width: 560px) {
  .demo-frame .v-wide { display: none; }
  .demo-frame .v-phone { display: block; }
}
.demo-tag {
  position: absolute; top: 22px; left: 22px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  background: rgba(10, 12, 15, .9); border: 1px solid var(--line-card); border-radius: 999px;
  padding: 6px 12px 6px 10px; font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.demo-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
/* On phones the tag sits above the clip so it doesn't cover the "You've played today" bar. */
@media (max-width: 560px) { .demo-tag { position: static; display: inline-flex; margin: 4px 0 10px 4px; } }
.demo figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.875rem; color: var(--text-3); }
.demo figcaption a { font-weight: 700; text-decoration: none; }

/* How it stays lean */
.points { display: flex; flex-direction: column; gap: 14px; padding: 8px 0 0; margin: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 1rem; line-height: 1.55; }
.points .n { font-family: var(--mono); color: var(--gold); font-size: 0.875rem; padding-top: 2px; }
.points .d { color: var(--muted); }

.split-code { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
@media (min-width: 1000px) { .split-code { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
.code {
  margin: 0; background: var(--bg); border: 1px solid var(--line-card); border-radius: 14px;
  padding: 22px; overflow-x: auto; font: 400 0.8125rem/1.7 var(--mono); color: #C9D1D9;
  font-variant-ligatures: none;
}
.code-inner { display: inline-block; min-width: 100%; vertical-align: top; }
.code .ln { white-space: pre; }
.code .hl { margin: 0 -22px; padding: 0 22px 0 19px; border-left: 3px solid transparent; transition: background .6s ease, border-color .6s ease; }
.code[data-step="1"] .hl-a, .code[data-step="2"] .hl-b { background: rgba(194, 145, 46, .14); border-left-color: var(--gold); }
.code[data-step="3"] .hl { background: rgba(194, 145, 46, .06); border-left-color: rgba(194, 145, 46, .45); }
.code .c { color: var(--gold); }
.code .k { color: #C792EA; }
.code .f { color: #82AAFF; }
.code .s { color: #A5D6A7; }

/* What you get */
.pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; padding-top: 12px; }
.pieces h3 { margin-bottom: 6px; }
.pieces p { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
@media (max-width: 420px) { .pieces { grid-template-columns: 1fr; } }
.tree-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tree {
  margin: 0; background: var(--bg); border: 1px solid var(--line-card); border-radius: 14px;
  padding: 24px; overflow-x: auto; font: 400 0.875rem/1.85 var(--mono); color: var(--muted);
}
.tree .hi { color: var(--text); }
.tree .cm { color: #5F6873; }

/* Comparison */
.compare-wrap { border: 1px solid var(--line-card); border-radius: 14px; overflow-x: auto; margin-top: 36px; }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { padding: 18px 20px; text-align: left; vertical-align: top; }
.compare thead th { background: var(--surface); font-size: 0.8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.compare thead th:last-child { color: var(--text); }
.compare tbody tr { border-top: 1px solid var(--line-section); }
.compare tbody th { font-weight: 400; line-height: 1.45; width: 52%; }
.compare td { color: var(--strike); }
.compare td:last-child { color: var(--text); font-weight: 700; }
@media (max-width: 560px) { .compare th, .compare td { padding: 14px 12px; font-size: 0.9375rem; } }

/* Bio */
.bio { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 860px; }
.bio img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; display: block; }
.bio h2 { font-size: 1.75rem; letter-spacing: -0.02em; }
.bio-text { display: flex; flex-direction: column; gap: 14px; }
.bio-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.9375rem; font-weight: 700; }
.bio-links a { text-decoration: none; }
@media (max-width: 560px) { .bio { grid-template-columns: 1fr; gap: 20px; } .bio img { width: 88px; height: 88px; } }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; align-items: stretch; margin-top: 40px; }
.tier { background: var(--surface); border: 1px solid var(--line-card); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; position: relative; }
.tier.featured { background: var(--surface-featured); border: 1.5px solid var(--gold); }
.tier h3 { font-size: 1rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.price { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 0; }
.price .amt { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em; color: var(--gold); }
.price s { font-size: 1.375rem; font-weight: 600; color: var(--strike); }
.pill {
  position: absolute; top: -13px; left: 28px;
  background: var(--gold); color: var(--bg); font-size: 0.75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); flex: 1; }
.tier ul .lead { color: var(--text); font-weight: 600; }

/* FAQ */
.faq-sec { max-width: 860px; }
.faq { margin-top: 32px; border-top: 1px solid var(--line-card); }
.faq details { border-bottom: 1px solid var(--line-card); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 1.125rem; font-weight: 700; display: flex; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 0 24px; font-size: 1rem; line-height: 1.65; color: var(--text-2); max-width: 680px; }

/* Final CTA */
.final { max-width: 760px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.final h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }

/* Footer */
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; font-size: 0.875rem; color: var(--text-3); }
.foot p { margin: 0; }

/* Simple pages (confirmed, thanks, 404) */
main > .hero:first-child { margin-top: 56px; }
.hero > .lede { margin: 20px 0 28px; }

@keyframes ftsSpin { to { transform: rotate(360deg); } }
@keyframes ftsPop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes ftsIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 480px) { .tree { font-size: 0.71875rem; padding: 16px; } }

/* Blog: /blog index and build note pages */
.post, .blog-index { max-width: 768px; padding-top: 72px; padding-bottom: 88px; }
@media (max-width: 680px) { .post, .blog-index { padding-top: 44px; padding-bottom: 64px; } }
.post-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.post-head h1, .blog-index h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08; }
.post-head .eyebrow a { color: var(--muted); text-decoration: none; }
.post-head .eyebrow a:hover { color: var(--gold); }
.blog-index .lede { margin-top: 16px; }

.prose { font-size: 1.125rem; line-height: 1.75; color: var(--text-2); overflow-wrap: break-word; }
.prose > * { margin: 0 0 1.25em; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); margin: 2em 0 0.75em; }
.prose h3 { font-size: 1.25rem; color: var(--text); margin: 1.75em 0 0.5em; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--text); text-decoration-color: var(--gold); }
.prose a:hover { color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: 0.5em 0; padding-left: 0.25em; }
.prose li::marker { color: var(--gold); }
.prose li > p { margin: 0.5em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line-card); margin: 2.5em 0; }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--gold); color: var(--text); }
.prose :not(pre) > code {
  font: 400 0.875em var(--mono); background: var(--surface); border: 1px solid var(--line-card);
  border-radius: 6px; padding: 0.1em 0.4em; color: var(--text);
}
.prose pre {
  background: var(--bg-alt); border: 1px solid var(--line-card); border-radius: 14px;
  padding: 20px 22px; overflow-x: auto; font: 400 0.875rem/1.7 var(--mono); color: #C9D1D9;
  font-variant-ligatures: none; tab-size: 2;
}
.prose pre code { font: inherit; background: none; border: 0; padding: 0; }
@media (max-width: 480px) { .prose { font-size: 1.0625rem; } .prose pre { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; padding: 16px; font-size: 0.8125rem; } }

.post-list { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line-card); }
.post-list li { padding: 28px 0; border-bottom: 1px solid var(--line-card); display: flex; flex-direction: column; gap: 8px; }
.post-list a { text-decoration: none; }
.post-list h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.02em; }
.post-list a:hover h2 { color: var(--gold); }
.post-list .meta { margin: 0; font-size: 0.875rem; color: var(--text-3); }
.post-list p { margin: 0; color: var(--text-2); }
.post-list .empty { color: var(--muted); }
.post-cta { margin-top: 64px; padding: 32px; background: var(--surface); border: 1px solid var(--line-card); border-radius: 16px; display: flex; flex-direction: column; gap: 16px; }
.post-cta h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; }
@media (max-width: 480px) { .post-cta { padding: 24px 20px; } }
