/* =========================================================
   SPELLBOOK — design tokens + base styles
   ========================================================= */
:root {
  --bg-0: #07041a;
  --bg-1: #0d0828;
  --bg-2: #170c3a;
  --bg-3: #1f1147;
  --ink: #f4efe2;
  --ink-dim: #b8b0c8;
  --ink-faint: #6f6886;
  --gold: #FFD43A;
  --gold-soft: #ffe89a;
  --gold-deep: #c89a14;
  --violet: #9d6cff;
  --violet-deep: #5a2db8;
  --danger: #ff4d57;
  --success: #44d28a;
  --rule: rgba(255,255,255,0.08);
  --card: rgba(255,255,255,0.03);
  --card-strong: rgba(255,255,255,0.06);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --font-display: "Oswald", "Anton", Impact, sans-serif;
  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* Page-level atmospheric backdrop */
body {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(157,108,255,0.22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 90%, rgba(255,212,58,0.06), transparent 65%),
    linear-gradient(180deg, #07041a 0%, #0a0620 30%, #0c0728 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Stars */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--starOpacity, 0.6);
  transition: opacity 0.4s;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

img { display: block; max-width: 100%; }

/* =========================================================
   TYPE
   ========================================================= */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
}

h1, h2, h3, h4 { margin: 0; }

h1.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(54px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.spell-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.pronunciation {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-dim);
  font-size: 0.85em;
}

.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink-dim);
  max-width: 60ch;
  line-height: 1.55;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.wrap {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  z-index: 1;
}

section { position: relative; z-index: 1; }

.divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
  margin: 0;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,4,26,0.65);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
}
.brand-mark {
  width: 24px;
  height: 24px;
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-dim);
}
.nav-links a:hover { color: var(--gold); }
@media (max-width: 700px) {
  .nav-links { display: none; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.12s, background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, #FFE068 0%, #FFC93A 60%, #E5B020 100%);
  color: #1a0d30;
  box-shadow: 0 8px 30px -8px rgba(255,212,58,0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover {
  box-shadow: 0 12px 40px -8px rgba(255,212,58,0.7), inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-danger {
  background: #ff4d57;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.badge-new {
  background: rgba(157,108,255,0.18);
  color: var(--violet);
  border: 1px solid rgba(157,108,255,0.35);
}
.badge-soon {
  background: rgba(255,212,58,0.12);
  color: var(--gold);
  border: 1px solid rgba(255,212,58,0.3);
}
.badge-req {
  background: #ff4d57;
  color: #fff;
  padding: 9px 16px;
  font-size: 12px;
}
.badge-free {
  background: rgba(68,210,138,0.15);
  color: var(--success);
  border: 1px solid rgba(68,210,138,0.35);
}
.badge-premium {
  background: rgba(255,212,58,0.15);
  color: var(--gold);
  border: 1px solid rgba(255,212,58,0.35);
}

/* =========================================================
   HERO GLYPH (auto-cycling animated illustration)
   ========================================================= */
.hero-glyph {
  position: relative;
  aspect-ratio: 1 / 1.1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 45%, rgba(157,108,255,0.28), transparent 65%),
    radial-gradient(circle at 50% 80%, rgba(255,212,58,0.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.005));
  border: 1px solid var(--rule);
  overflow: hidden;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
}
.hero-glyph-top {
  display: flex;
  justify-content: space-between;
  padding: 22px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero-glyph-status { display: flex; align-items: center; gap: 8px; }
.hero-glyph-dot {
  width: 7px; height: 7px; border-radius: 99px;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}
.hero-glyph-stage {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 12px;
  min-height: 0;
}
.hero-glyph-rings,
.hero-glyph-svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(70%, 360px);
  height: min(70%, 360px);
}
.hero-glyph-rings {
  animation: spin 60s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes drawGlyph {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeGlyph {
  0% { opacity: 1; filter: drop-shadow(0 0 8px rgba(255,212,58,0.6)); }
  100% { opacity: 0.15; }
}
.hero-glyph-info {
  text-align: center;
  padding: 0 22px 20px;
  min-height: 96px;
  animation: infoIn 0.6s ease;
}
@keyframes infoIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-glyph-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 44px;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 24px rgba(255,212,58,0.35);
}
.hero-glyph-pron {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 8px;
}
.hero-glyph-purpose {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-dim);
  font-size: 16px;
  margin-top: 6px;
}
.hero-glyph-progress {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding-bottom: 20px;
}
.hero-glyph-tick {
  width: 16px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  transition: background 0.3s;
}
.hero-glyph-tick.active { background: var(--gold); box-shadow: 0 0 6px var(--gold); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 80px 0 60px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--gold); }
.hero h1 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 20px;
  display: flex;
  gap: 18px;
  color: var(--ink-faint);
  font-size: 13px;
}

/* Interactive demo */
.demo {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 50%, rgba(157,108,255,0.25), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--rule);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
}
.demo-canvas {
  position: absolute;
  inset: 0;
  cursor: crosshair;
  touch-action: none;
}
.demo-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}
.demo-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.demo-status {
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-dot {
  width: 7px; height: 7px; border-radius: 99px;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}
.demo-bottom {
  text-align: center;
}
.demo-result {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.demo-result.show { opacity: 1; }
.demo-result-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 56px;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255,212,58,0.5);
}
.demo-result-confidence {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.demo-hint {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-faint);
  font-size: 15px;
}
.demo-hint kbd {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 11px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--rule);
  padding: 2px 7px;
  border-radius: 5px;
  margin: 0 3px;
}
.demo-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 80%;
  margin: 0 auto;
}
.demo-chip {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-faint);
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  background: rgba(255,255,255,0.02);
}

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section-head {
  margin: 0 auto 56px;
  text-align: center;
  max-width: 720px;
}
.section-head .eyebrow { margin-bottom: 14px; display: inline-block; }
.section-head .lede { margin: 20px auto 0; }

section.block {
  padding: clamp(80px, 11vw, 140px) 0;
}

/* =========================================================
   FEATURE CARDS
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.feature-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
}
.feature p {
  color: var(--ink-dim);
  margin: 0 0 20px;
  max-width: 48ch;
}
.feature.span-12 { grid-column: span 12; }
.feature.span-8  { grid-column: span 8; }
.feature.span-7  { grid-column: span 7; }
.feature.span-6  { grid-column: span 6; }
.feature.span-5  { grid-column: span 5; }
.feature.span-4  { grid-column: span 4; }

@media (max-width: 900px) {
  .feature.span-12, .feature.span-8, .feature.span-7,
  .feature.span-6, .feature.span-5, .feature.span-4 {
    grid-column: span 12;
  }
}

.feature-shot {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  justify-content: center;
}

/* iPhone bezel */
.phone {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9/19.5;
  border-radius: 38px;
  background: #000;
  padding: 8px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(255,255,255,0.12),
    0 0 0 2px #1a1820;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #000;
  border-radius: 99px;
  z-index: 2;
}

/* =========================================================
   SPELLS GALLERY
   ========================================================= */
.spells {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.spell-card {
  position: relative;
  background:
    radial-gradient(circle at 50% 30%, rgba(157,108,255,0.16), transparent 70%),
    var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.spell-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,212,58,0.4);
  box-shadow: 0 20px 50px -20px rgba(255,212,58,0.25);
}
.spell-card.coming { opacity: 0.7; }
.spell-glyph {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  display: block;
}
.spell-glyph path, .spell-glyph circle, .spell-glyph line {
  stroke: var(--gold);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255,212,58,0.4));
}
.spell-card.coming .spell-glyph path,
.spell-card.coming .spell-glyph circle,
.spell-card.coming .spell-glyph line {
  stroke: var(--ink-faint);
  filter: none;
}
.spell-card .spell-name {
  font-size: 28px;
  display: block;
  margin-bottom: 2px;
}
.spell-card .pron {
  font-size: 13px;
  color: var(--ink-faint);
  font-family: var(--font-serif);
  font-style: italic;
}
.spell-card .purpose {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.spell-card .shape-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 8px;
}
.spell-card .badge-soon {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* =========================================================
   DUELLING (big spotlight)
   ========================================================= */
.duel {
  background:
    radial-gradient(ellipse 70% 70% at 50% 0%, rgba(157,108,255,0.25), transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(255,77,87,0.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.duel-head {
  text-align: center;
  margin-bottom: 56px;
}
.duel-arena {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .duel-arena { grid-template-columns: 1fr; gap: 16px; }
}
.wizard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.wizard-portrait {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--gold);
  background: radial-gradient(circle at 50% 35%, rgba(255,212,58,0.22), transparent 70%);
  border: 1px solid rgba(255,212,58,0.3);
}
.wizard.opp .wizard-portrait {
  color: var(--violet);
  background: radial-gradient(circle at 50% 35%, rgba(157,108,255,0.22), transparent 70%);
  border-color: rgba(157,108,255,0.4);
}
.wizard-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}
.wizard-hp {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.hp-bar {
  width: 180px;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}
.hp-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff4d57, #ff8a3c);
  border-radius: 99px;
  transition: width 0.6s ease;
}
.wizard.opp .hp-bar > span {
  background: linear-gradient(90deg, #9d6cff, #5a2db8);
}
.vs {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  position: relative;
}
.vs::before, .vs::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--rule);
}
.vs::before { right: 100%; margin-right: 8px; }
.vs::after { left: 100%; margin-left: 8px; }

.spell-log {
  margin-top: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.log-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-size: 14px;
  animation: logIn 0.4s ease;
}
@keyframes logIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.log-row.you { border-left: 3px solid var(--gold); }
.log-row.opp { border-left: 3px solid var(--violet); }
.log-spell {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 17px;
}
.log-row.opp .log-spell { color: var(--violet); }
.log-dmg {
  margin-left: auto;
  font-family: var(--font-display);
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.duel-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* =========================================================
   WATCH STANDALONE
   ========================================================= */
.watch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .watch-row { grid-template-columns: 1fr; }
}
.watch-frame {
  position: relative;
  display: flex;
  justify-content: center;
}
.watch-frame img {
  max-width: 360px;
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6));
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
.pricing.pricing-3 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1240px;
  gap: 18px;
}
@media (max-width: 1100px) {
  .pricing.pricing-3 { grid-template-columns: 1fr 1fr; max-width: 920px; }
}
@media (max-width: 760px) { .pricing, .pricing.pricing-3 { grid-template-columns: 1fr; } }
.price-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  background: var(--card);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.price-card.premium {
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(255,212,58,0.18), transparent 60%),
    var(--card-strong);
  border: 1px solid rgba(255,212,58,0.35);
}
.price-card.lifetime {
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(157,108,255,0.18), transparent 60%),
    var(--card-strong);
  border: 1px solid rgba(157,108,255,0.35);
}
.price-flag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--gold);
  color: #1a0d30;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}
.price-flag.flag-violet {
  background: var(--violet);
  color: #fff;
}
.price-tier {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.price-card.premium .price-tier { color: var(--gold); }
.price-card.lifetime .price-tier { color: var(--violet); }
.price-cost {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.price-cost small {
  font-size: 14px;
  color: var(--ink-faint);
  font-weight: 400;
  letter-spacing: 0;
}
.price-var {
  display: inline-block;
  font-size: 28px;
  color: var(--ink-faint);
  font-weight: 500;
  letter-spacing: -0.05em;
  margin-left: -3px;
  position: relative;
  top: -2px;
}
.price-billing {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.005em;
}
.price-billing small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  font-style: italic;
}
.price-card.premium .price-billing { color: var(--gold); }
.price-card.lifetime .price-billing { color: var(--violet); }
.price-tagline {
  color: var(--ink-dim);
  margin-bottom: 24px;
  font-size: 14px;
  min-height: 40px;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}
.price-list li .check {
  flex-shrink: 0;
  color: var(--success);
  margin-top: 2px;
}
.price-card.premium .price-list li .check { color: var(--gold); }
.price-card.lifetime .price-list li .check { color: var(--violet); }
.price-list li.faded { color: var(--ink-faint); }
.price-list li.faded .check { color: var(--ink-faint); }
.price-fineprint {
  margin-top: 12px;
  font-size: 11px;
  color: var(--ink-faint);
  text-align: center;
  letter-spacing: 0.02em;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 22px 26px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: 600;
}
.faq-q:hover { color: var(--gold); }
.faq-toggle {
  width: 22px; height: 22px; flex-shrink: 0;
  color: var(--ink-faint);
  transition: transform 0.2s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); color: var(--gold); }
.faq-a {
  padding: 0 26px;
  max-height: 0;
  overflow: hidden;
  color: var(--ink-dim);
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a {
  padding: 0 26px 24px;
  max-height: 500px;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.quote {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}
.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 18px;
}
.quote-text::before { content: "“"; color: var(--gold); font-size: 1.4em; margin-right: 2px; }
.quote-text::after { content: "”"; color: var(--gold); }
.quote-attr {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-avatar {
  width: 36px; height: 36px;
  border-radius: 99px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet-deep), var(--violet));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.quote-meta {
  font-size: 13px;
  color: var(--ink-faint);
}
.quote-meta strong { color: var(--ink); font-weight: 600; display: block; }
.stars-row { color: var(--gold); letter-spacing: 0.1em; font-size: 13px; margin-left: auto; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,212,58,0.1), transparent 60%);
}
.final-cta h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(48px, 8vw, 100px);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 18px;
}
.final-cta h2 em { color: var(--gold); }
.final-cta p { color: var(--ink-dim); margin-bottom: 36px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--rule);
  padding: 60px 0 40px;
  color: var(--ink-faint);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 14px;
}

/* iOS-style App Store badge */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  color: #fff;
}
.app-store-badge svg { width: 22px; height: 22px; }
.app-store-badge small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.app-store-badge strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

/* Sparkle glow utility */
.glow {
  filter: drop-shadow(0 0 12px rgba(255,212,58,0.5));
}
