/* SuenaBacan.cl — Sistema de diseño */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg: oklch(0.16 0.01 250);
  --bg-2: oklch(0.20 0.012 250);
  --bg-3: oklch(0.24 0.014 250);
  --ink: oklch(0.97 0.005 250);
  --ink-2: oklch(0.78 0.01 250);
  --ink-3: oklch(0.55 0.015 250);
  --line: oklch(0.30 0.015 250);
  --line-2: oklch(0.36 0.018 250);

  --accent: #C6FF3D;          /* verde lima eléctrico */
  --accent-ink: oklch(0.18 0.01 250);
  --accent-glow: rgba(198, 255, 61, 0.35);
  --accent-2: #B388FF;        /* violeta plasma */
  --accent-3: #FF5E7E;        /* rosa cálido */
  --warn: #FFB547;

  --radius: 14px;
  --radius-sm: 8px;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

#root {
  min-height: 100vh;
  position: relative;
}

button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ───── grain noise overlay ───── */
.grain::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ───── shared scroll container ───── */
.scroll-host {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.scroll-host::-webkit-scrollbar { width: 8px; }
.scroll-host::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

/* ───── nav ───── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-links { display: flex; gap: 28px; }
.nav-link {
  color: var(--ink-2);
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: color 0.18s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.15s, background 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  box-shadow: 0 0 32px 4px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink-3); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ───── logo ───── */
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.logo .dot { color: var(--accent); }
.logo .tld { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--ink-3); margin-left: 4px; align-self: center; }

/* ───── hero ───── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 1200px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.5;
  filter: blur(40px);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--bg-2) 60%, transparent);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  width: fit-content;
}
.hero-eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.h1 {
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 500;
  text-wrap: balance;
}
.h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.h1 .strike {
  position: relative;
  display: inline-block;
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink-2);
  max-width: 580px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-num .accent { color: var(--accent); }
.stat-lbl {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ───── Waveform ───── */
.wave-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  overflow: hidden;
}
.wave-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 30%, transparent 70%, var(--accent-2) 100%);
  opacity: 0.4;
  z-index: -1;
  filter: blur(8px);
}
.wave-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.wave-track-info { display: flex; gap: 14px; align-items: center; }
.wave-cover {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  position: relative;
  overflow: hidden;
}
.wave-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 50%);
}
.wave-title { font-size: 15px; font-weight: 500; }
.wave-sub { font-size: 12px; color: var(--ink-3); font-family: var(--font-mono); margin-top: 2px; }

.wave-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 88px;
  cursor: pointer;
  margin-bottom: 14px;
}
.wave-bar {
  flex: 1;
  background: var(--line-2);
  border-radius: 2px;
  transition: background 0.12s, transform 0.18s;
}
.wave-bar.played { background: var(--accent); }
.wave-bar.playing { background: var(--accent); transform: scaleY(1.15); }

.wave-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.play-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.play-btn:hover { transform: scale(1.06); }
.play-btn svg { width: 18px; height: 18px; }

/* ───── Section ───── */
section.sec {
  padding: 120px 32px;
  position: relative;
}
.sec-inner { max-width: 1200px; margin: 0 auto; }
.sec-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--accent);
}
.sec-title {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 24px;
  text-wrap: balance;
}
.sec-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.sec-sub {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.5;
}

/* ───── Steps (Cómo funciona) ───── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.step-card {
  position: relative;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--bg-2) 0%, color-mix(in oklab, var(--accent) 6%, var(--bg-2)) 100%);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 80px;
}
.step-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.step-icon svg { width: 22px; height: 22px; color: var(--accent); }
.step-h { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; }
.step-p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ───── Examples (audio cards) ───── */
.examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.ex-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.ex-card:hover { border-color: var(--line-2); }
.ex-card.playing { border-color: var(--accent); }
.ex-cover {
  height: 180px;
  border-radius: 10px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.ex-cover .play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.18s;
}
.ex-card:hover .play-overlay, .ex-card.playing .play-overlay { opacity: 1; }
.ex-genre {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.ex-title { font-size: 18px; font-weight: 500; margin: 4px 0 4px; letter-spacing: -0.015em; }
.ex-meta { font-size: 13px; color: var(--ink-3); }
.ex-bars {
  display: flex;
  gap: 2px;
  height: 28px;
  align-items: center;
  margin-top: 14px;
}
.ex-bar {
  flex: 1;
  background: var(--line-2);
  border-radius: 1px;
}
.ex-card.playing .ex-bar { background: var(--accent); }

/* ───── Form ───── */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.form-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
}
.form-progress-bar {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.form-progress-bar .fill {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-progress-bar.active .fill { width: 100%; }
.form-progress-bar.done .fill { width: 100%; }

.form-step-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.form-q {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}
.form-q em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.form-help {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 32px;
  line-height: 1.5;
}

.input, .textarea, .select {
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.01em;
  transition: border-color 0.18s, background 0.18s;
  outline: none;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 4%, var(--bg-2));
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.chip {
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: border-color 0.18s, background 0.18s;
}
.chip:hover { border-color: var(--line-2); }
.chip.active {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 12%, var(--bg-2));
  color: var(--ink);
}
.chip .emoji { font-size: 18px; }
.chip .check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.chip.active .check { background: var(--accent); border-color: var(--accent); }
.chip.active .check svg { color: var(--accent-ink); }

.anec-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}
.anec-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-3);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.form-nav .step-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
}

/* ───── Prompt preview ───── */
.prompt-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
}
.prompt-card .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.prompt-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.prompt-text .hl {
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  padding: 2px 6px;
  border-radius: 4px;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.85em;
}
.prompt-tech {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}

/* ───── Pricing ───── */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.plan {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.plan.selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 8%, var(--bg-2)) 0%, var(--bg-2) 60%);
}
.plan.featured { transform: scale(1.02); }
.plan-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}
.plan-name { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.plan-tag { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.plan-price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 24px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan-price .currency { font-size: 16px; color: var(--ink-3); font-weight: 400; }
.plan-features {
  list-style: none;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-features li {
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}
.plan-features li::before {
  content: '';
  width: 14px; height: 14px;
  margin-top: 4px;
  flex-shrink: 0;
  background: var(--accent);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}
.plan-features li.muted { color: var(--ink-3); }
.plan-features li.muted::before { background: var(--ink-3); }

/* ───── Checkout ───── */
.checkout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  margin-top: 40px;
}
.checkout-form, .checkout-summary {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.pay-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pay-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.pay-opt:hover { border-color: var(--line-2); }
.pay-opt.active {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, transparent);
}
.pay-opt-icon {
  width: 42px; height: 28px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pay-opt-name { font-size: 15px; font-weight: 500; }
.pay-opt-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pay-opt .radio {
  margin-left: auto;
  width: 18px; height: 18px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pay-opt.active .radio { border-color: var(--accent); }
.pay-opt.active .radio::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-2);
  padding: 8px 0;
}
.summary-row.total {
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

/* ───── Loader (Generación) ───── */
.gen-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  position: relative;
}
.gen-card {
  max-width: 640px;
  width: 100%;
  text-align: center;
}
.gen-orb {
  width: 220px; height: 220px;
  border-radius: 50%;
  margin: 0 auto 48px;
  position: relative;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 60%);
}
.gen-orb::before {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: spin 4s linear infinite;
}
.gen-orb::after {
  content: '';
  position: absolute;
  inset: 50px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  border-top-color: transparent;
  border-right-color: transparent;
  animation: spin 2.4s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.gen-orb-core {
  position: absolute;
  inset: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, var(--accent-2) 100%);
  filter: blur(2px);
  animation: pulseCore 1.8s ease-in-out infinite;
}
@keyframes pulseCore {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
}

.gen-h {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.gen-h em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.gen-p {
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 36px;
  line-height: 1.5;
}

.gen-stages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.gen-stage {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.3s;
}
.gen-stage.active { color: var(--ink); }
.gen-stage.done { color: var(--accent); }
.gen-stage-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.3s;
}
.gen-stage.active .gen-stage-dot {
  border-color: var(--accent);
}
.gen-stage.active .gen-stage-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s infinite;
}
.gen-stage.done .gen-stage-dot {
  border-color: var(--accent);
  background: var(--accent);
}
.gen-stage.done .gen-stage-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316160F' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/10px no-repeat;
}
.gen-stage-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* ───── Success ───── */
.success-art {
  width: 100%;
  height: 240px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

/* ───── FAQ ───── */
.faq-list {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-align: left;
}
.faq-q .icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 720px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 0 24px;
}

/* ───── Footer ───── */
footer.foot {
  padding: 80px 32px 40px;
  border-top: 1px solid var(--line);
}
.foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-cols h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.foot-cols a {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.18s;
}
.foot-cols a:hover { color: var(--ink); }
.foot-bottom {
  max-width: 1200px;
  margin: 64px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ───── Page transitions ───── */
.page-enter { animation: pageIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ───── Responsive ───── */
@media (max-width: 920px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  section.sec { padding: 80px 20px; }
  .hero { padding: 100px 20px 60px; }
  .steps, .examples, .plans { grid-template-columns: 1fr; }
  .checkout { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}

/* ───── Tweak overrides hooks ───── */
[data-palette="lime"]  { --accent: #C6FF3D; --accent-2: #B388FF; --accent-glow: rgba(198,255,61,.35); --accent-ink: oklch(0.18 0.01 250); }
[data-palette="magenta"] { --accent: #FF3DA8; --accent-2: #59E0FF; --accent-glow: rgba(255,61,168,.35); --accent-ink: oklch(0.97 0.005 320); }
[data-palette="sunset"] { --accent: #FF8F3D; --accent-2: #FFD23D; --accent-glow: rgba(255,143,61,.35); --accent-ink: oklch(0.18 0.04 50); }
[data-palette="cyan"] { --accent: #59E0FF; --accent-2: #B388FF; --accent-glow: rgba(89,224,255,.4); --accent-ink: oklch(0.18 0.04 240); }
