/* TiltCast — modern-minimal · Hallmark · genre: modern-minimal · theme: Cobalt Light */

:root {
  --bg:          #F8F9FD;
  --bg-2:        #EEF0F9;
  --surface:     #FFFFFF;
  --paper:       #F2F4FF;
  --ink:         #0D0F1C;
  --ink-2:       #3D4560;
  --muted:       #8891A8;
  --line:        rgba(13,15,28,.10);
  --line-soft:   rgba(13,15,28,.06);
  --accent:      #3D5BFF;
  --accent-hi:   #5B78FF;
  --accent-wash: rgba(61,91,255,.10);
  --blue:        #2E4FFF;
  --blue-hi:     #4C6EFF;
  --rec:         #E53535;
  --ease-out:    cubic-bezier(.23,1,.32,1);
  --ease-in-out: cubic-bezier(.77,0,.175,1);
  --r:    8px;
  --r-lg: 16px;
  --gut:  clamp(24px,4vw,56px);
  --max:  1240px;
  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body:    'Geist', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: 0.012;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

::selection { background: var(--accent); color: #FFFFFF; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }

/* ── Layout ──────────────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.section-pad { border-top: 1px solid var(--line-soft); padding: clamp(72px,10vw,120px) 0; }

/* ── Type ────────────────────────────────────────────────────── */
h1,h2,h3 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.kicker {
  font-family: var(--f-mono);
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-hi); font-weight: 600; margin: 0 0 20px; display: block;
}

h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2.5rem,5vw,4.5rem);
  line-height: 1.0; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 20px;
}

h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 8px; }

.section-lede { font-size: clamp(1rem,1.6vw,1.125rem); color: var(--ink-2); max-width: 58ch; line-height: 1.65; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body); font-weight: 700; font-size: 0.9375rem; letter-spacing: -0.01em;
  padding: 13px 24px; border-radius: var(--r); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn-ghost { border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }

/* ── Nav ─────────────────────────────────────────────────────── */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,249,253,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gut);
  height: 58px; display: flex; align-items: center; gap: 26px;
}
.mark { text-decoration: none; display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.mark-word {
  font-family: var(--f-body); font-weight: 800; font-size: 1.25rem;
  letter-spacing: -0.036em; line-height: 1;
}
.mark-glyph { width: 28px; height: 28px; display: block; flex-shrink: 0; overflow: visible; }
.mark-glyph .g-body { fill: var(--ink); }
.mark-glyph .g-edge {
  stroke: var(--accent); stroke-width: 2; stroke-linecap: round; fill: none;
  transition: stroke 150ms ease;
  filter: drop-shadow(0 0 4px rgba(61,91,255,.4));
}
.mark:hover .mark-glyph .g-edge { stroke: var(--accent-hi); filter: drop-shadow(0 0 6px rgba(61,91,255,.5)); }

/* Nav links — visible, readable, with hover state */
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  font-family: var(--f-body); font-weight: 500; font-size: 0.875rem;
  color: var(--ink-2); text-decoration: none;
  padding: 6px 12px; border-radius: 6px;
  transition: color 150ms ease, background 150ms ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(13,15,28,0.05); }
/* Download stands out as a bordered pill */
.nav-links a[href="#download"] {
  color: var(--accent);
  border: 1px solid rgba(61,91,255,0.45);
  padding: 6px 14px;
  border-radius: 99px;
}
.nav-links a[href="#download"]:hover {
  background: var(--accent-wash);
  border-color: var(--accent-hi);
  color: var(--accent-hi);
}
@media (max-width: 720px) { .nav-links a.hide-sm { display: none; } }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 100px var(--gut) 80px; border-bottom: 1px solid var(--line-soft); }
.hero-in {
  max-width: var(--max); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,80px); align-items: center;
}
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .hero-media { order: -1; } }

.hero-h {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.5rem,5vw,4.5rem); line-height: 1.05; letter-spacing: -0.03em;
  color: var(--ink); margin: 0 0 28px;
}
.hero-h em { font-style: normal; color: var(--accent); font-weight: 700; }
.hero-sub { font-size: clamp(1rem,1.5vw,1.125rem); color: var(--ink-2); max-width: 44ch; line-height: 1.65; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--muted); }

.video-slot {
  aspect-ratio: 9/16; max-height: 70vh;
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px dashed rgba(13,15,28,0.14);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.video-slot::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(76,110,255,0.06), transparent 70%),
    radial-gradient(ellipse 60% 80% at 30% 80%, rgba(92,124,255,0.04), transparent 70%);
}
.video-slot-inner { text-align: center; position: relative; z-index: 1; }
.video-slot-label {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--muted); font-family: var(--f-mono);
  font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.slot-icon { font-size: 2rem; color: var(--accent); opacity: 0.45; line-height: 1; }
@media (max-width: 860px) { .video-slot { aspect-ratio: 16/9; max-height: 46vw; } }

/* ── Truth ───────────────────────────────────────────────────── */
.truth-grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 40px; align-items: start; margin-top: 56px;
  padding: 48px; background: rgba(13,15,28,0.03);
  border-radius: var(--r-lg); border: 1px solid rgba(13,15,28,0.10);
}
.truth-col--them { opacity: 1; }
.truth-col--them .truth-list { color: var(--muted); }
.truth-label { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.truth-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 0.9375rem; color: var(--ink-2); }
.truth-list li { display: flex; align-items: flex-start; gap: 12px; }
.truth-x { color: #FF5555; font-family: var(--f-mono); font-size: 0.75rem; flex-shrink: 0; margin-top: 2px; }
.truth-ck { color: var(--accent); font-family: var(--f-mono); font-size: 0.75rem; flex-shrink: 0; margin-top: 2px; }
.truth-divider { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--muted); display: flex; align-items: center; justify-content: center; padding: 0 8px; }
@media (max-width: 760px) { .truth-grid { grid-template-columns: 1fr; padding: 28px; gap: 28px; } .truth-divider { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 16px 0; text-align: center; } }

/* ── Live ────────────────────────────────────────────────────── */
.live-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px,5vw,80px);
  max-width: var(--max); margin: 56px auto 0; padding: 0 var(--gut); align-items: start;
}
@media (max-width: 900px) { .live-wrap { grid-template-columns: 1fr; } }
.live-lede { font-size: 1.0625rem; color: var(--ink-2); max-width: 48ch; margin-bottom: 48px; line-height: 1.65; }
.live-steps { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.live-step {
  display: grid; grid-template-columns: 48px 1fr; gap: 20px;
  padding: 44px 0; border-bottom: 1px solid var(--line-soft);
  opacity: 0.25; transition: opacity 500ms var(--ease-out);
  min-height: 34vh; align-content: center;
}
.live-step.active { opacity: 1; }
.lstep-num { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.18em; color: var(--accent); padding-top: 3px; }
.lstep-body h3 { font-weight: 600; font-size: 1.0625rem; margin-bottom: 10px; color: var(--ink); }
.lstep-body p { font-size: 0.9375rem; color: var(--ink-2); margin: 0; line-height: 1.65; }
.live-stage-wrap {
  aspect-ratio: 4/5; background: var(--bg-2);
  border-radius: var(--r-lg); border: 1px solid var(--line-soft);
  position: sticky; top: 100px; overflow: hidden;
}
#liveStage { position: absolute; inset: 0; }

/* ── How ─────────────────────────────────────────────────────── */
.how-scroll-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: var(--max); margin: 56px auto 0; padding: 0 var(--gut);
  gap: clamp(28px,5vw,60px); align-items: start;
}
@media (max-width: 900px) { .how-scroll-wrap { grid-template-columns: 1fr; } }
.how-phone-col { position: sticky; top: 100px; }
.how-stage-well {
  background: var(--bg-2); border-radius: var(--r-lg);
  border: 1px solid var(--line-soft); aspect-ratio: 4/5;
  position: relative; overflow: hidden;
}
#howStage { position: absolute; inset: 0; }
.how-steps-col { display: flex; flex-direction: column; padding: clamp(64px,9vw,104px) 0; }
.how-step { padding: 44px 0; border-bottom: 1px solid var(--line-soft); opacity: 0.25; transition: opacity 500ms var(--ease-out); min-height: 34vh; display: flex; flex-direction: column; justify-content: center; }
.how-step:last-child { border-bottom: none; }
.how-step.active { opacity: 1; }
.step-num { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
.how-step h3 { font-size: 1.1875rem; margin-bottom: 12px; }
.how-step p { font-size: 0.9375rem; color: var(--ink-2); max-width: 52ch; }

pre {
  margin: 12px 0 0; background: var(--bg-2); color: #2D3548;
  border-radius: var(--r); padding: 14px 16px; overflow-x: auto;
  font-family: var(--f-mono); font-size: 0.8125rem; line-height: 1.65;
  border: 1px solid var(--line-soft);
}
pre .c { color: #8A96B0; }
pre .k { color: var(--blue); }
pre .f { color: var(--ink); }

/* ── Control ─────────────────────────────────────────────────── */
.control-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 48px; }
@media (max-width: 700px) { .control-grid { grid-template-columns: 1fr; } }
.control-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px;
  transition: border-color 200ms ease, transform 220ms var(--ease-out);
}
.control-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cc-icon { font-size: 1.25rem; color: var(--accent); margin-bottom: 16px; line-height: 1; }
.control-card h3 { font-size: 1.0625rem; margin-bottom: 10px; }
.control-card p { font-size: 0.9375rem; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* ── Builders ────────────────────────────────────────────────── */
.builder-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 56px; }
@media (max-width: 700px) { .builder-grid { grid-template-columns: 1fr; } }
.builder-card { padding: 32px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--bg-2); }
.bc-tag {
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; display: inline-block;
  padding: 3px 10px; border: 1px solid rgba(61,91,255,.25);
  border-radius: 4px; background: var(--accent-wash);
}
.builder-card > p { font-family: var(--f-body); font-size: 1.0625rem; font-style: normal; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* ── Scenes ──────────────────────────────────────────────────── */
.scenes { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width: 900px) { .scenes { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .scenes { grid-template-columns: 1fr; } }
.scene { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); transition: border-color 180ms ease, transform 220ms var(--ease-out); }
.scene:hover { border-color: rgba(61,91,255,.35); transform: translateY(-2px); }
.scene-view { aspect-ratio: 5/4; position: relative; display: grid; place-items: center; background: linear-gradient(180deg, var(--bg-t), var(--bg-b)); }
.scene-view.solid { background: var(--bg-t); }
.scene-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(180deg, color-mix(in srgb, var(--floor) 0%, transparent), var(--floor)); }
.scene-key { position: absolute; inset: 0; background: radial-gradient(ellipse 58% 44% at var(--kx,68%) 24%, rgba(255,255,255,.14), transparent 70%); }
.mini { position: relative; z-index: 2; width: 27%; aspect-ratio: 195/400; border-radius: 5px; background: linear-gradient(150deg, #767D84, #24282C 45%, #13161A); box-shadow: 0 0 0 .5px rgba(255,255,255,.16), 0 10px 18px rgba(0,0,0,.5); transform: rotateY(-14deg) rotateZ(-4deg); }
.mini::after { content: ''; position: absolute; inset: 1.5px; border-radius: 4px; background: linear-gradient(168deg, #2A3242, #10141C); }
.scene-meta { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 8px; }
.scene-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.scene-top h3 { margin: 0; font-size: 0.9375rem; }
.tag { font-family: var(--f-mono); font-size: 0.5625rem; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(13,15,28,0.07); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; font-weight: 600; }
.tag.free { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }
.scene-meta p { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; margin: 0; }
.scene-specs { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 9px; border-top: 1px solid var(--line-soft); font-family: var(--f-mono); font-size: 0.625rem; color: var(--muted); letter-spacing: .04em; }
.sec-head { margin-bottom: 22px; }

/* ── Motion ──────────────────────────────────────────────────── */
.motion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .motion-grid { grid-template-columns: 1fr; } }
.motion-card .well { aspect-ratio: 5/4; }
.motion-legend { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 6px; }
.motion-legend h3 { margin: 0; }
.amps { font-family: var(--f-mono); font-size: 0.6875rem; color: var(--muted); }

/* ── Well ────────────────────────────────────────────────────── */
.well { background: var(--bg-2); border-radius: var(--r-lg); border: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.well-cap { position: absolute; left: 14px; bottom: 12px; z-index: 4; color: var(--muted); font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: .15em; text-transform: uppercase; pointer-events: none; }
.well-badge { position: absolute; right: 12px; top: 12px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.80); border: 1px solid rgba(13,15,28,.10); color: var(--ink-2); font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: .13em; text-transform: uppercase; }
.well-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--rec); display: block; }

/* ── Three.js canvas ─────────────────────────────────────────── */
.stage { position: relative; }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }

/* ── Trust / SDK ─────────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.86fr); gap: clamp(24px,4vw,48px); align-items: start; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }
.pull { border-left: 2px solid var(--accent); padding: 2px 0 2px 18px; font-size: 1.0625rem; line-height: 1.55; color: var(--ink); margin: 0 0 20px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.facts li { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9375rem; color: var(--ink-2); }
.facts li:last-child { border-bottom: none; }
.facts b { color: var(--ink); font-weight: 600; }

/* ── Pricing ─────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; align-items: start; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
.plan {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 22px; position: relative;
}
.plan.pro {
  border-color: var(--accent);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 48px rgba(61,91,255,.12);
}
.plan-badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--accent); color: #fff;
  font-family: var(--f-mono); font-size: 0.5625rem; letter-spacing: .14em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px; font-weight: 700;
}
.plan-header { display: flex; flex-direction: column; gap: 10px; }
.plan-tier { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.price { font-family: var(--f-display); font-weight: 700; font-size: 3.5rem; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.plan-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.5; margin: 0; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 460px) { .pay-row { grid-template-columns: 1fr; } }
.pay { background: var(--bg-2); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; border: 1px solid transparent; }
.pay--hi { border-color: var(--accent); background: var(--accent-wash); }
.pay .amt { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.pay .amt small { font-size: 0.65em; font-weight: 400; color: var(--ink-2); }
.pay .spec { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.best-val { background: var(--accent); color: #fff; padding: 1px 6px; border-radius: 999px; letter-spacing: .04em; }
.feat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 0.9375rem; color: var(--ink-2); }
.feat li { display: flex; gap: 10px; align-items: baseline; }
.feat .ck { color: var(--accent); font-family: var(--f-mono); font-size: 0.8125rem; flex-shrink: 0; }
.plan-note { font-size: 0.8125rem; color: var(--muted); line-height: 1.55; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line-soft); }
summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-family: var(--f-body); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%) rotate(0deg); font-family: var(--f-mono); font-size: 1.125rem; color: var(--accent); transition: transform 240ms var(--ease-out); }
details[open] summary::after { transform: translateY(-50%) rotate(135deg); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size 260ms var(--ease-out), opacity 180ms var(--ease-out), content-visibility 260ms allow-discrete; }
  details[open]::details-content { block-size: auto; opacity: 1; }
}
details p { padding: 0 0 20px; font-size: 0.9375rem; color: var(--ink-2); max-width: 68ch; }

/* ── Download CTA ────────────────────────────────────────────── */
.download-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.download-cta h2 { max-width: 18ch; }
.download-cta .section-lede { text-align: center; max-width: 48ch; }
.download-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

/* ── Footer ──────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.foot { max-width: var(--max); margin: 0 auto; padding: 44px var(--gut); display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 600; color: var(--ink-2); text-decoration: none; letter-spacing: 0.06em; }
.foot-links a:hover { color: var(--accent-hi); }
.colophon { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; color: var(--ink-2); line-height: 1.7; max-width: 40ch; }

/* ── Success banner ──────────────────────────────────────────── */
.success-banner {
  background: var(--accent-wash); border-bottom: 1px solid var(--accent);
  padding: 14px var(--gut); position: sticky; top: 0; z-index: 9998;
}
.success-banner[hidden] { display: none; }
.success-banner-in {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.sb-icon { color: var(--accent); font-size: 1.25rem; flex-shrink: 0; }
.success-banner-in > div { flex: 1; min-width: 0; font-size: 0.9375rem; color: var(--ink-2); }
.success-banner-in strong { color: var(--ink); display: block; margin-bottom: 2px; }

/* ── Plan price row (annual only) ────────────────────────────── */
.plan-price-row { display: flex; align-items: baseline; gap: 6px; }
.price-unit { font-family: var(--f-mono); font-size: 0.875rem; color: var(--muted); letter-spacing: 0.04em; }

/* ── Purchase modal ──────────────────────────────────────────── */
.pmodal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(13,15,28,.60); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.pmodal-overlay[hidden] { display: none; }
.pmodal {
  background: var(--surface); border: 1px solid var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 24px 80px rgba(61,91,255,.16);
  border-radius: var(--r-lg); padding: 40px 36px;
  max-width: 520px; width: 100%; position: relative;
  display: flex; flex-direction: column; gap: 20px;
}
.pmodal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 4px; transition: color .2s;
}
.pmodal-close:hover { color: var(--ink); }
.pmodal-eyebrow { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.pmodal-headline { font-family: var(--f-display); font-size: clamp(1.5rem,3vw,2rem); font-weight: 700; line-height: 1.15; margin: 0; color: var(--ink); }
.pmodal-sub { font-size: 0.9375rem; color: var(--ink-2); margin: 0; line-height: 1.55; }
.pmodal-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 20px;
}
.pmodal-price-row { display: flex; align-items: baseline; gap: 12px; }
.pmodal-amt { font-family: var(--f-display); font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.pmodal-label { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pmodal-cta { display: block; text-align: center; margin-top: 20px; justify-content: center; }
.pmodal-skip-row {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; font-size: 0.875rem; color: var(--muted);
  border-top: 1px solid var(--line-soft); padding-top: 16px;
}
.pmodal-skip-link { color: var(--ink-2); font-size: 0.875rem; text-decoration: none; transition: color .2s; background: none; border: none; cursor: pointer; padding: 0; font-family: var(--f-body); }
.pmodal-skip-link:hover { color: var(--accent); }
@media (max-width: 480px) { .pmodal { padding: 28px 20px; } .pmodal-amt { font-size: 2.5rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
