/* ============ Tokens (the only place raw color values live) ============ */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-subtle: #f7f7f6;
  --surface: #ffffff;
  --surface-2: #f2f2f0;
  --surface-hover: #ebebe8;
  --text: #1c1c1b;
  --text-muted: #5e5e5a;
  --text-faint: #8a8a85;
  --line: rgb(0 0 0 / 0.08);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow: 0 0 0 1px rgb(0 0 0 / 0.04), 0 1px 2px rgb(0 0 0 / 0.05), 0 4px 16px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 0 0 1px rgb(0 0 0 / 0.04), 0 2px 4px rgb(0 0 0 / 0.04), 0 16px 48px rgb(0 0 0 / 0.1);
  --accent: #0f766e;
  --accent-hover: #0d655e;
  --accent-text: #ffffff;
  --accent-soft: rgb(15 118 110 / 0.1);
  --accent-glow: rgb(15 118 110 / 0.22);
  --accent-glow-soft: rgb(15 118 110 / 0.08);
  --focus: rgb(15 118 110 / 0.45);
  --success: #15803d;
  --success-soft: rgb(21 128 61 / 0.1);
  --error: #b42318;
  --error-soft: rgb(180 35 24 / 0.08);
  --warn: #8a5a00;
  --star: #d99a00;
  /* The demo "video" is always dark, in both themes. */
  --video-bg: #071413;
  --video-bar: #030807;
  --video-blob-1: rgb(45 212 191 / 0.35);
  --video-blob-2: rgb(15 118 110 / 0.55);
  --video-blob-3: rgb(255 216 138 / 0.12);
  --video-text: #ffffff;
  --video-orig: #cfe7e4;
  --video-meta: #7fa8a3;
  --video-rec: #f87171;
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1312;
    --bg-subtle: #131817;
    --surface: #171c1b;
    --surface-2: #1f2524;
    --surface-hover: #283030;
    --text: #edefee;
    --text-muted: #a3aba9;
    --text-faint: #6f7876;
    --line: rgb(255 255 255 / 0.07);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 0 0 1px rgb(255 255 255 / 0.07), 0 2px 4px rgb(0 0 0 / 0.3), 0 24px 64px rgb(0 0 0 / 0.5);
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-text: #04201d;
    --accent-soft: rgb(45 212 191 / 0.12);
    --accent-glow: rgb(45 212 191 / 0.22);
    --accent-glow-soft: rgb(45 212 191 / 0.07);
    --focus: rgb(45 212 191 / 0.5);
    --success: #4ade80;
    --success-soft: rgb(74 222 128 / 0.12);
    --error: #ff8a7a;
    --error-soft: rgb(255 138 122 / 0.1);
    --warn: #ffd88a;
    --star: #ffd166;
  }
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 650;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 8.4vw, 112px); }
h2 { font-size: clamp(34px, 5.4vw, 68px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; font-weight: 650; }
h1 em, h2 em {
  font-style: italic;
  font-weight: 750;
  color: var(--accent);
  padding-right: 0.06em; /* keeps the slanted last letter from being clipped */
}
p { margin: 0; text-wrap: pretty; }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.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; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.prose-width { max-width: 680px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* Mono "eyebrow" label with a pulsing dot */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow.pill {
  padding: 8px 12px; border-radius: 999px;
  background: var(--accent-soft);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2s ease-out infinite; flex: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.micro { font: 500 12px/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }

/* ============ Header / footer ============ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 20px/1 var(--font-display); letter-spacing: -0.03em; min-height: 44px; }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: none;
  align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--text-muted); text-decoration: none; border-radius: 8px; font-size: 15px;
}
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
@media (hover: hover) { .nav a:not(.btn):hover { background: var(--surface-2); color: var(--text); } }
@media (min-width: 760px) { .nav a:not(.btn) { display: inline-flex; } }

.site-footer { margin-top: 120px; padding: 48px 0 56px; background: var(--bg-subtle); box-shadow: 0 -1px 0 var(--line); font-size: 14px; color: var(--text-muted); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h3 { font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid a { color: var(--text-muted); text-decoration: none; display: inline-block; padding: 4px 0; }
@media (hover: hover) { .footer-grid a:hover { color: var(--text); text-decoration: underline; } }
.footer-note { margin-top: 40px; font-size: 13px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 8px;
  font: 600 15px/1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: transform 100ms ease-out, background-color 150ms ease-out, box-shadow 150ms ease-out;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; box-shadow: none; }
@media (hover: hover) {
  .btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
  .btn-secondary:hover:not(:disabled) { background: var(--surface-hover); }
}
.btn svg { width: 18px; height: 18px; flex: none; }

/* ============ Sections & cards ============ */
.section { padding-top: 120px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 20px; color: var(--text-muted); font-size: 19px; line-height: 1.55; }
.section-head.center p { margin-left: auto; margin-right: auto; max-width: 560px; }
.card { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 28px; position: relative; overflow: hidden; }
.card p { color: var(--text-muted); margin-top: 10px; }
.muted { color: var(--text-muted); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.icon-tile { width: 44px; height: 44px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }
.icon-tile svg { width: 20px; height: 20px; }

/* ============ Hero ============ */
.hero { padding-top: 72px; position: relative; }
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: -120px; width: min(1100px, 140vw); height: 640px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-glow-soft), transparent);
}
.hero h1 { max-width: 13ch; }
.hero .lead { max-width: 560px; margin-top: 28px; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .micro { margin-top: 20px; }

/* Entrance animation for the hero (no JS needed) */
.rise { animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Scroll reveal (site.js adds .js to <html> and .is-in when visible) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 600ms ease-out, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============ Demo player ============ */
.player {
  margin: 72px auto 0; max-width: 1040px;
  border-radius: 12px; overflow: hidden;
  background: var(--video-bg);
  box-shadow: var(--shadow-lg), 0 40px 120px var(--accent-glow-soft);
  position: relative;
}
.player-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  background: var(--video-bar);
  font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--video-meta);
}
.player-bar .rec { display: inline-flex; align-items: center; gap: 8px; }
.player-bar .rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--video-rec); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.player-bar .pair { color: var(--video-text); }
.player-stage { position: relative; aspect-ratio: 16 / 8.2; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(48px); animation: float 14s ease-in-out infinite; }
.blob.b1 { width: 46%; height: 70%; left: 8%; top: 4%; background: var(--video-blob-2); }
.blob.b2 { width: 38%; height: 60%; right: 6%; top: 24%; background: var(--video-blob-1); animation-duration: 18s; animation-delay: -6s; }
.blob.b3 { width: 22%; height: 34%; right: 22%; top: 6%; background: var(--video-blob-3); animation-duration: 11s; animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, -6%) scale(1.06); }
  66% { transform: translate(-5%, 4%) scale(0.96); }
}
.player-caption {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  width: 92%; text-align: center; /* subtitle convention */
}
.player-caption .t, .player-caption .o { transition: opacity 280ms ease-out, transform 280ms ease-out; }
.player-caption .t { color: var(--video-text); font: 600 clamp(18px, 3.6vw, 42px)/1.15 var(--font); letter-spacing: -0.02em; text-shadow: 0 2px 12px rgb(0 0 0 / 0.5); }
.player-caption .o { color: var(--video-orig); font: 500 clamp(14px, 2.2vw, 24px)/1.3 var(--font); margin-top: 6px; transition-delay: 60ms; }
.player-caption.is-out .t, .player-caption.is-out .o { opacity: 0; transform: translateY(8px); }
.player-progress { height: 3px; background: rgb(255 255 255 / 0.08); }
.player-progress span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ============ Anatomy (two lines explained) ============ */
.anatomy { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .anatomy { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.anatomy-figure { padding: 32px 24px; }
.anatomy-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 16px 0; box-shadow: inset 0 -1px 0 var(--line); }
.anatomy-row:last-child { box-shadow: none; }
.anatomy-row .label { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.anatomy-row .val { font-size: clamp(19px, 2.4vw, 26px); line-height: 1.25; letter-spacing: -0.015em; }
.anatomy-row.tr .val { font-weight: 650; }
.anatomy-row.or .val { color: var(--text-muted); }
.anatomy-points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.anatomy-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--text-muted); }
.anatomy-points strong { color: var(--text); font-weight: 600; }
.anatomy-points svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

/* ============ Steps ============ */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-num { font: italic 750 clamp(56px, 7vw, 84px)/1 var(--font-display); letter-spacing: -0.05em; color: var(--accent); margin-bottom: 24px; padding-right: 0.08em; }
.step-art { margin-top: 28px; border-radius: 8px; background: var(--surface-2); padding: 16px; min-height: 104px; display: grid; align-content: center; gap: 10px; }
.fake-bar { height: 8px; border-radius: 999px; background: var(--line); }
.fake-row { display: flex; align-items: center; gap: 10px; }
.fake-btn { margin-left: auto; padding: 8px 16px; border-radius: 8px; background: var(--accent); color: var(--accent-text); font: 600 13px/1 var(--font); }
.fake-tag { font: 500 11px/1 var(--mono); letter-spacing: 0.08em; color: var(--text-faint); }
.fake-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: none; }
.mini-video { border-radius: 6px; background: var(--video-bg); padding: 14px 14px 10px; display: grid; gap: 6px; justify-items: center; }
.mini-video i { display: block; height: 5px; border-radius: 999px; }
.mini-video i:nth-child(1) { width: 62%; background: var(--video-text); }
.mini-video i:nth-child(2) { width: 44%; background: var(--video-orig); opacity: 0.6; }
.mini-video i:nth-child(3) { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 10px; border-radius: 999px; font: 500 12px/1 var(--mono); background: var(--surface); color: var(--text-muted); box-shadow: var(--shadow-sm); }
.chip.on { background: var(--accent); color: var(--accent-text); }
.chip-arrow { align-self: center; color: var(--text-faint); font: 500 12px/1 var(--mono); }

/* ============ Bento features ============ */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .span-2 { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento .span-2 { grid-column: span 2; }
  .bento .tall { grid-row: span 2; }
}
.bento .card { display: flex; flex-direction: column; min-height: 260px; }
.bento .card h3 { margin-top: auto; padding-top: 24px; }
.bento-art { position: relative; }

/* Orbiting languages */
.orbit-card { flex-direction: column; }
@media (min-width: 760px) { .orbit-card { flex-direction: row !important; align-items: center; gap: 24px; } .orbit-card .orbit-text { flex: 1; } .orbit-card h3 { margin-top: 0 !important; padding-top: 0 !important; } }
.orbit { position: relative; width: 260px; height: 260px; margin: 8px auto 0; flex: none; }
.orbit-core {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-text);
  font: 750 32px/1 var(--font-display); letter-spacing: -0.04em;
  box-shadow: 0 0 0 12px var(--accent-soft), 0 0 60px var(--accent-glow);
}
.orbit-core svg { width: 36px; height: 36px; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); animation: spin 40s linear infinite; }
.orbit-ring.inner { inset: 44px; animation-duration: 28s; animation-direction: reverse; }
.orbit-ring span {
  position: absolute; left: 50%; top: 50%;
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
  translate: -50% -50%;
}
.orbit-ring span b { display: block; padding: 5px 8px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font: 600 12px/1 var(--mono); color: var(--text-muted); animation: spin 40s linear infinite reverse; }
.orbit-ring.inner span b { animation-duration: 28s; animation-direction: normal; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sync waveform */
.wave-box { flex: 1; display: flex; flex-direction: column; justify-content: center; border-radius: 8px; background: var(--video-bg); padding: 20px; color: var(--video-text); text-align: center; }
.wave { width: 100%; height: 96px; }
.wave path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 8 10; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -36; } }
.wave-box .wave-line { color: var(--video-text); margin-top: 14px; font-weight: 600; font-size: 15px; }
.wave-box .wave-line + .wave-line { margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--video-orig); }
.wave-meta { display: flex; justify-content: space-between; margin-top: 14px; font: 500 10px/1 var(--mono); letter-spacing: 0.12em; color: var(--video-meta); }
.wave-meta .synced { color: var(--accent); }

/* Style controls */
.style-art { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.style-art > div { border-radius: 8px; background: var(--surface-2); padding: 12px; }
.style-art .fake-tag { display: block; margin-bottom: 10px; }
.sizes { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-weight: 650; color: var(--text-muted); }
.sizes .on { color: var(--accent); }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); }

/* Fullscreen corners */
.fs-art { position: relative; border-radius: 8px; background: var(--video-bg); padding: 30px 20px; text-align: center; }
.fs-art::before, .fs-art::after, .fs-art .c3, .fs-art .c4 { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--accent); border-style: solid; border-width: 0; animation: corners 2.4s ease-in-out infinite; }
.fs-art::before { left: 10px; top: 10px; border-left-width: 2px; border-top-width: 2px; }
.fs-art::after { right: 10px; top: 10px; border-right-width: 2px; border-top-width: 2px; }
.fs-art .c3 { left: 10px; bottom: 10px; border-left-width: 2px; border-bottom-width: 2px; }
.fs-art .c4 { right: 10px; bottom: 10px; border-right-width: 2px; border-bottom-width: 2px; }
@keyframes corners { 50% { transform: scale(1.25); } }
.fs-art p { margin: 0; color: var(--video-text); font-weight: 600; }
.fs-art p + p { color: var(--video-orig); font-weight: 500; font-size: 14px; margin-top: 2px; }

/* Transcript export */
.export-art { border-radius: 8px; background: var(--surface-2); padding: 14px 16px; font: 500 12px/1.7 var(--mono); color: var(--text-muted); }
.export-art b { color: var(--accent); font-weight: 500; }

/* ============ Pricing ============ */
.price-toggle { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface-2); margin-top: 32px; }
.price-toggle button {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-muted); font: 600 14px/1 var(--font); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.price-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.price-toggle .save { font: 600 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }

.billing-plans { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 48px; align-items: stretch; }
@media (min-width: 900px) { .billing-plans { grid-template-columns: repeat(3, 1fr); } }
.plan-card { display: flex; flex-direction: column; gap: 6px; padding: 32px; overflow: visible; }
.plan-card .plan-name { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.plan-card .price { color: var(--text); display: flex; align-items: flex-start; gap: 2px; margin-top: 18px; font: 650 clamp(52px, 6vw, 68px)/1 var(--font-display); letter-spacing: -0.05em; }
.plan-card .price sup { font-size: 0.42em; margin-top: 0.18em; letter-spacing: 0; color: var(--text-muted); }
.plan-card .per { color: var(--text-muted); font-size: 15px; }
.plan-card .billed { font: 500 12px/1.5 var(--mono); color: var(--text-faint); margin-top: 10px; min-height: 18px; }
.plan-card ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; font-size: 15px; }
.plan-card li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; box-shadow: inset 0 -1px 0 var(--line); }
.plan-card li:last-child { box-shadow: none; }
.plan-card li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.plan-card li strong { font-weight: 600; }
.plan-card .plan-cta { margin-top: auto; padding-top: 28px; }
.plan-card .plan-cta .btn { width: 100%; }
.plan-card .fine { text-align: center; margin-top: 12px; }
.plan-card.featured { box-shadow: 0 0 0 2px var(--accent), 0 24px 64px var(--accent-glow-soft), var(--shadow); }
.plan-card.is-selected { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.plan-card.featured.is-selected { box-shadow: 0 0 0 3px var(--accent), 0 24px 64px var(--accent-glow); }
.ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text);
  font: 600 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 11px/1 var(--mono); letter-spacing: 0.06em; }

.checkout { margin: 40px auto 0; max-width: 560px; }
.checkout .card { display: grid; gap: 16px; }
.checkout-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.checkout-summary strong { font: 650 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
#paypal-buttons { min-height: 52px; }
.legal-note { font-size: 13px; color: var(--text-muted); }

.notice { padding: 12px 16px; border-radius: 8px; font-size: 15px; }
.notice-error { background: var(--error-soft); color: var(--error); }
.notice-success { background: var(--success-soft); color: var(--success); }
.notice-info { background: var(--accent-soft); color: var(--text); }

/* Skeleton */
.skeleton { border-radius: 8px; background: var(--surface-2); position: relative; overflow: hidden; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--surface-hover), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.2s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ============ FAQ ============ */
.faq { display: grid; gap: 0; max-width: 860px; margin: 0 auto; }
.faq details { box-shadow: inset 0 -1px 0 var(--line); }
.faq summary {
  cursor: pointer; padding: 24px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 24px; align-items: center; min-height: 44px;
  font: 600 clamp(18px, 2vw, 21px)/1.3 var(--font-display); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--text-muted); transition: transform 200ms ease-out, background-color 150ms ease-out; }
.faq summary .plus svg { width: 16px; height: 16px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--accent-soft); color: var(--accent); }
.faq details p { padding: 0 56px 24px 0; color: var(--text-muted); font-size: 16px; }

/* ============ Final CTA ============ */
.final { text-align: center; padding-top: 140px; position: relative; }
.final::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 40px; width: min(900px, 120vw); height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-glow-soft), transparent);
}
.final-logo { width: 72px; height: 72px; margin: 0 auto 32px; border-radius: 16px; box-shadow: 0 16px 48px var(--accent-glow); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-3deg); } }
.final h2 { font-size: clamp(40px, 7vw, 88px); }
.final p.lead { margin: 24px auto 0; max-width: 520px; color: var(--text-muted); font-size: 19px; }
.final .hero-actions { justify-content: center; }
.final .micro { margin-top: 20px; }

/* ============ Key display (thank-you) ============ */
.key-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px; border-radius: 8px; background: var(--accent-soft);
}
.key-box code { font: 600 clamp(18px, 4.4vw, 24px)/1.2 var(--mono); letter-spacing: 0.04em; word-break: break-all; }
.key-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============ Forms ============ */
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 0; border-radius: 8px;
  background: var(--surface-2); color: var(--text);
  font: 16px var(--font);
  box-shadow: inset 0 0 0 1px var(--line);
}
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ============ Simple pages (legal, contact, find key, thank you) ============ */
.page-head { padding-top: 72px; }
.page-head h1 { font-size: clamp(40px, 6.4vw, 72px); }
.page-head .lead { margin-top: 20px; color: var(--text-muted); font-size: 19px; }
.legal { padding-top: 72px; }
.legal h1 { font-size: clamp(40px, 6.4vw, 72px); }
.legal .updated { margin-top: 16px; }
.legal h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.025em; margin: 56px 0 14px; line-height: 1.15; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text); font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 12px 12px 0; vertical-align: top; box-shadow: inset 0 -1px 0 var(--line); }
.legal th { font-weight: 600; }
.table-wrap { overflow-x: auto; }
.toc { margin-top: 32px; padding: 20px 24px; border-radius: 12px; background: var(--bg-subtle); box-shadow: var(--shadow-sm); font-size: 15px; }
.toc strong { font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.toc ol { margin: 12px 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
