/* ============================================================
   NovaSounds — pricing.css
   Styles ONLY for pricing.html (Plans & Pricing page).
   All shared tokens, navbar, footer → style.css
   ============================================================ */

/* ── UTILITY ─────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ══════════════════════════════════════════════
   PRICING HERO
══════════════════════════════════════════════ */
.pricing-hero {
  margin-top: 66px;
  padding: 80px 48px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Atmospheric glows behind the hero */
.ph-glow {
  position: absolute;
  width: 560px; height: 400px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.07;
}
.ph-glow-left  { background: var(--teal);  top: -80px; left: -120px; }
.ph-glow-right { background: var(--gold);  top: -60px; right: -120px; }
html.light-theme .ph-glow { opacity: 0.05; }

.ph-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ph-inner .eyebrow { justify-content: center; }

.ph-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
.ph-title em { font-style: italic; color: var(--gold); }

.ph-sub {
  font-size: 16px;
  color: var(--ink2);
  line-height: 1.8;
  font-weight: 300;
  max-width: 520px;
}

/* ── AUDIENCE SWITCHER ────────────────────────────────────── */
.audience-switcher {
  display: flex;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 50px;
  padding: 6px;
  margin-top: 8px;
  flex-wrap: nowrap;
  justify-content: center;
  transition: background 0.4s ease;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.audience-switcher::-webkit-scrollbar { display: none; }

.aud-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 40px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink3);
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.aud-btn:hover { color: var(--ink); background: var(--surface); }
.aud-btn.active {
  background: var(--gold);
  color: #1a0e00;
  font-weight: 600;
  box-shadow: 0 2px 12px var(--gold-glow);
}
.aud-icon { font-size: 16px; }


/* ══════════════════════════════════════════════
   PLANS SECTION (shared by all 4 audiences)
══════════════════════════════════════════════ */
.plans-section {
  padding: 64px 48px 80px;
  max-width: 1280px;
  margin: 0 auto;
  transition: opacity 0.3s ease;
}

.plans-inner { max-width: 1200px; margin: 0 auto; }

.plans-eyebrow {
  text-align: center;
  margin-bottom: 52px;
}
.plans-eyebrow .eyebrow {
  justify-content: center;
  margin-bottom: 12px;
}
.plans-tagline {
  font-size: 16px;
  color: var(--ink2);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── PLANS GRID ───────────────────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 52px;
}

/* ── MOBILE HORIZONTAL SCROLL ─────────────────────────────── */
@media (max-width: 700px) {
  .plans-section {
    padding: 48px 0 64px;
    overflow: hidden;
  }

  .plans-inner {
    overflow: hidden;
  }

  .plans-eyebrow {
    padding: 0 24px;
    margin-bottom: 32px;
  }

  /* Wrapper to enable horizontal scroll */
  .plans-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding: 16px 24px 24px;
    margin-bottom: 8px;
    /* Fade edges hint */
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 92%, transparent 100%);
  }

  .plans-grid::-webkit-scrollbar { display: none; }

  .plans-grid .plan-card {
    flex: 0 0 78vw;
    max-width: 300px;
    min-width: 260px;
    scroll-snap-align: center;
  }

  /* Keep featured card lift subtle on mobile */
  .plan-featured {
    transform: translateY(-4px);
  }

  /* Trailing spacer so last card isn't flush against edge */
  .plans-grid::after {
    content: '';
    flex: 0 0 8px;
    display: block;
  }

  /* Dot indicators */
  .plans-scroll-hint {
    display: flex !important;
  }
}

/* Show scroll hint dots only on mobile */
.plans-scroll-hint {
  display: none;
  justify-content: center;
  gap: 6px;
  padding-bottom: 12px;
  margin-top: -8px;
}

.plans-scroll-hint span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border2);
  display: block;
}

.plans-scroll-hint span.active {
  background: var(--gold);
  width: 18px;
  border-radius: 3px;
}

/* Creator plans — slightly more compact */
.plans-grid-creators .plan-card {
  padding: 28px 24px 24px;
}

/* ── PLAN CARD ────────────────────────────────────────────── */
.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
}
.plan-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Featured card — highlighted gold border + subtle gold bg */
.plan-featured {
  border-color: rgba(212,168,67,0.5);
  background: var(--gold-subtle);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.plan-featured:hover { transform: translateY(-12px); }

/* Most Popular badge */
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1a0e00;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Plan top section */
.plan-top { display: flex; flex-direction: column; gap: 8px; }

.plan-icon { font-size: 2rem; line-height: 1; }

.plan-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink3);
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0;
}
.plan-price {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.plan-period {
  font-size: 13px;
  color: var(--ink3);
  font-weight: 300;
}

.plan-desc {
  font-size: 13.5px;
  color: var(--ink2);
  line-height: 1.65;
  font-weight: 300;
}

/* Plan features list */
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.5;
}

/* Check marks */
.pf-check {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  width: 18px;
  margin-top: 1px;
}
.pf-check.teal    { color: var(--teal); }
.pf-check.gold    { color: var(--gold); }
.pf-check.lavender{ color: var(--lavender); }

/* Muted (unavailable) features */
.pf-muted {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--ink3);
  width: 18px;
  margin-top: 1px;
  opacity: 0.5;
}
.plan-features li:has(.pf-muted) {
  color: var(--ink3);
  opacity: 0.6;
}

/* Plan CTA button */
.plan-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}


/* ── COIN BUNDLES ─────────────────────────────────────────── */
.coin-bundles {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  margin-top: 8px;
  transition: background 0.4s ease;
}

.cb-header {
  text-align: center;
  margin-bottom: 28px;
}
.cb-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.cb-sub {
  font-size: 12px;
  color: var(--ink3);
  font-family: var(--mono);
  letter-spacing: 1px;
}

.cb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cb-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}
.cb-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}
.cb-card.selected {
  border-color: var(--gold);
  background: var(--gold-subtle);
}

.cb-popular {
  border-color: rgba(212,168,67,0.4);
  background: var(--gold-subtle);
}

.cb-best {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1a0e00;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 12px;
  border-radius: 10px;
  white-space: nowrap;
}

.cb-amount {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.cb-unlocks {
  font-size: 11px;
  color: var(--ink3);
  font-family: var(--mono);
  margin-bottom: 12px;
}
.cb-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  font-family: var(--serif);
}
.cb-per {
  font-size: 10px;
  color: var(--ink3);
  font-family: var(--mono);
}


/* ── EARNINGS PANEL (Writers + Voice Artists) ─────────────── */
.earnings-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  margin-top: 8px;
  transition: background 0.4s ease;
}

.ep-header {
  text-align: center;
  margin-bottom: 32px;
}
.ep-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.ep-sub {
  font-size: 13px;
  color: var(--ink3);
  font-weight: 300;
}

.ep-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ep-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.25s ease, background 0.4s ease;
}
.ep-item:hover { border-color: var(--border2); }

.ep-icon { font-size: 1.8rem; margin-bottom: 10px; }
.ep-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 8px;
}
.ep-value {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
  line-height: 1.2;
}
.ep-value span {
  font-size: 11px;
  color: var(--ink3);
  font-family: var(--sans);
  font-weight: 300;
  display: block;
  margin-top: 3px;
}
.ep-note {
  font-size: 11px;
  color: var(--ink3);
  line-height: 1.5;
}


/* ══════════════════════════════════════════════
   COMPARISON TABLE
══════════════════════════════════════════════ */
.compare-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 48px;
  transition: background 0.4s ease;
}

.compare-inner { max-width: 900px; margin: 0 auto; }

.compare-section .section-header { margin-bottom: 36px; }
.compare-section .eyebrow { justify-content: center; }

/* Tab switcher for the comparison table */
.compare-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 36px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 5px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  transition: background 0.4s ease;
}
.ct-btn {
  background: none;
  border: none;
  border-radius: 8px;
  padding: 9px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink3);
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.ct-btn:hover { color: var(--ink); }
.ct-btn.active {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border2);
}
html.light-theme .ct-btn.active {
  background: var(--surface);
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.compare-table thead th {
  background: var(--card);
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink3);
  text-align: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease;
}
.compare-table thead th.ct-feature { text-align: left; color: var(--ink2); }
.compare-table thead th.ct-highlight {
  background: var(--gold-subtle);
  color: var(--gold);
  border-left: 1px solid rgba(212,168,67,0.2);
  border-right: 1px solid rgba(212,168,67,0.2);
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--card); }

.compare-table td {
  padding: 14px 20px;
  color: var(--ink2);
  text-align: center;
  vertical-align: middle;
}
.compare-table td.ct-feature {
  text-align: left;
  color: var(--ink);
  font-weight: 400;
}
.compare-table td.ct-highlight {
  background: rgba(212,168,67,0.04);
  border-left: 1px solid rgba(212,168,67,0.15);
  border-right: 1px solid rgba(212,168,67,0.15);
  font-weight: 500;
  color: var(--ink);
}

/* Colored price cells in last row */
.free-val    { color: var(--teal) !important; font-weight: 700 !important; font-family: var(--mono); }
.coin-val    { color: var(--gold) !important; font-weight: 700 !important; font-family: var(--mono); }
.premium-val { color: var(--lavender) !important; font-weight: 700 !important; font-family: var(--mono); }


/* ══════════════════════════════════════════════
   FAQ SECTION
══════════════════════════════════════════════ */
.faq-section {
  padding: 80px 48px;
}
.faq-inner { max-width: 860px; margin: 0 auto; }
.faq-section .section-header { margin-bottom: 48px; }
.faq-section .eyebrow { justify-content: center; }

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s ease;
}
.faq-item:last-child { border-bottom: none; }
.faq-item:hover { background: var(--card); }
.faq-item.open { background: var(--card); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  gap: 16px;
  user-select: none;
}

.faq-arrow {
  font-size: 16px;
  color: var(--ink3);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--gold); }

.faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: 13.5px;
  color: var(--ink2);
  line-height: 1.75;
  font-weight: 300;
}
.faq-item.open .faq-a { display: block; }


/* ══════════════════════════════════════════════
   FINAL CTA SECTION
══════════════════════════════════════════════ */
.pricing-cta-section {
  background: var(--bg);
  padding: 100px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

/* Radial gold glow from bottom */
.pcs-glow {
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(212,168,67,0.1) 0%, transparent 70%);
  pointer-events: none;
}
html.light-theme .pcs-glow {
  background: radial-gradient(ellipse, rgba(184,134,28,0.07) 0%, transparent 70%);
}

.pcs-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pcs-ornament {
  font-size: 1.2rem;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 4px;
}

.pcs-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
.pcs-title em { font-style: italic; color: var(--gold); }

.pcs-sub {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.7;
  font-weight: 300;
}

.pcs-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.pcs-micro {
  font-size: 13px;
  color: var(--ink3);
}
.pcs-micro a {
  color: var(--gold);
  font-weight: 500;
  transition: color 0.2s;
}
.pcs-micro a:hover { color: var(--gold-hover); }


/* ══════════════════════════════════════════════
   ANIMATIONS — staggered entrance
══════════════════════════════════════════════ */
.plans-section .fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.plans-section .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Keep featured card raised even after animation */
.plan-featured.fade-in.visible { transform: translateY(-8px); }
.plan-featured.fade-in.visible:hover { transform: translateY(-12px); }


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cb-grid { grid-template-columns: repeat(2, 1fr); }
  .ep-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .pricing-hero  { padding: 60px 20px 56px; }
  .plans-section { padding: 48px 20px 60px; }
  /* NOTE: .plans-grid layout is intentionally NOT overridden here.
     On screens 641px–900px it stays as a 3-col grid (desktop layout).
     On ≤640px the horizontal-scroll rules below take over. */
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-4px); }
  .plan-featured.fade-in.visible { transform: none; }
  .compare-section { padding: 60px 20px; }
  .coin-bundles  { padding: 24px 20px; }
  .earnings-panel{ padding: 24px 20px; }
  .faq-section   { padding: 60px 20px; }
  .pricing-cta-section { padding: 72px 20px; }
  .audience-switcher { gap: 4px; }
  .aud-btn { padding: 8px 16px; font-size: 13px; }
}

@media (max-width: 600px) {
  .cb-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ep-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  /* .plans-grid gap intentionally not overridden — horizontal scroll handles it */
  .compare-tabs { flex-wrap: wrap; }
  .pcs-btns { flex-direction: column; align-items: stretch; }
  .pcs-btns .btn { justify-content: center; }
}

@media (max-width: 400px) {
  .audience-switcher { flex-direction: column; border-radius: 16px; }
  .aud-btn { width: 100%; justify-content: center; }
  .cb-grid { grid-template-columns: 1fr; }
  .ep-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   NOVA MILESTONES — BADGES SECTION
══════════════════════════════════════════════ */
.badges-section {
  padding: 80px 48px 96px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Atmospheric background glow */
.badges-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 10% 50%, rgba(212,168,67,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 90% 30%, rgba(46,184,164,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.badges-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.badges-title em {
  font-style: italic;
  color: var(--gold);
}

.badges-sub {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.85;
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
}

/* ── Toggle pill ── */
.badge-toggle-wrap {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.badge-toggle-btn {
  padding: 9px 22px;
  border-radius: 40px;
  border: 1.5px solid var(--border2);
  background: transparent;
  color: var(--ink3);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.badge-toggle-btn:hover { border-color: var(--gold); color: var(--ink); }
.badge-toggle-btn.active {
  background: var(--gold-subtle);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}

.badge-threshold-note {
  text-align: center;
  font-size: 12px;
  color: var(--ink3);
  margin-bottom: 52px;
  letter-spacing: 0.2px;
}
.badge-threshold-note strong { color: var(--ink2); }

/* ── Timeline ── */
.badges-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Individual badge card ── */
.badge-card {
  display: flex;
  gap: 0;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.badge-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Left column: orb + connector line */
.badge-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 72px;
  padding-top: 4px;
}

.badge-orb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 2px solid var(--border);
  background: var(--card);
  box-shadow: 0 0 0 4px var(--bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge-card:hover .badge-orb {
  transform: scale(1.12);
}

.badge-connector {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, var(--border2), transparent);
  margin-top: 6px;
}

/* ── Card body ── */
.badge-body {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.badge-card:hover .badge-body {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

/* Glow — coloured per tier, shown on hover */
.badge-card-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.badge-card:hover .badge-card-glow { opacity: 1; }

/* ── Per-tier colour theming ── */

/* Spark — warm gold */
.badge-spark .badge-orb          { border-color: rgba(212,168,67,0.4); box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(212,168,67,0.2); }
.badge-spark .badge-card-glow    { background: radial-gradient(ellipse at top left, rgba(212,168,67,0.06) 0%, transparent 60%); }
.badge-spark:hover .badge-body   { border-color: rgba(212,168,67,0.35); }
.spark-label                     { background: rgba(212,168,67,0.15); color: var(--gold); border-color: rgba(212,168,67,0.3); }

/* Pulse — teal */
.badge-pulse .badge-orb          { border-color: rgba(46,184,164,0.4); box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(46,184,164,0.18); }
.badge-pulse .badge-card-glow    { background: radial-gradient(ellipse at top left, rgba(46,184,164,0.06) 0%, transparent 60%); }
.badge-pulse:hover .badge-body   { border-color: rgba(46,184,164,0.35); }
.pulse-label                     { background: rgba(46,184,164,0.15); color: var(--teal); border-color: rgba(46,184,164,0.3); }

/* Nova — cool blue */
.badge-nova .badge-orb           { border-color: rgba(100,160,255,0.4); box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(100,160,255,0.18); }
.badge-nova .badge-card-glow     { background: radial-gradient(ellipse at top left, rgba(100,160,255,0.05) 0%, transparent 60%); }
.badge-nova:hover .badge-body    { border-color: rgba(100,160,255,0.35); }
.nova-label                      { background: rgba(100,160,255,0.12); color: #78aaff; border-color: rgba(100,160,255,0.3); }

/* Supernova — lavender-pink */
.badge-supernova .badge-orb        { border-color: rgba(200,100,220,0.4); box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(200,100,220,0.18); }
.badge-supernova .badge-card-glow  { background: radial-gradient(ellipse at top left, rgba(200,100,220,0.05) 0%, transparent 60%); }
.badge-supernova:hover .badge-body { border-color: rgba(200,100,220,0.35); }
.supernova-label                   { background: rgba(200,100,220,0.12); color: #d47ad4; border-color: rgba(200,100,220,0.3); }

/* Galactic — premium gold shimmer */
.badge-galactic .badge-orb        { border-color: rgba(255,180,60,0.5); box-shadow: 0 0 0 4px var(--bg), 0 0 24px rgba(255,180,60,0.25); }
.badge-galactic .badge-card-glow  { background: radial-gradient(ellipse at top left, rgba(255,180,60,0.07) 0%, transparent 60%); }
.badge-galactic:hover .badge-body { border-color: rgba(255,180,60,0.45); }
.galactic-label                   { background: rgba(255,180,60,0.15); color: #ffb43c; border-color: rgba(255,180,60,0.4); }

/* ── Card internals ── */
.badge-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.badge-tier-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-family: var(--mono);
}

.badge-always {
  font-size: 11px;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.2;
}

.badge-desc {
  font-size: 13.5px;
  color: var(--ink2);
  line-height: 1.75;
  margin-bottom: 18px;
  font-style: italic;
}

/* Threshold tag */
.badge-threshold-row {
  margin-bottom: 20px;
}

.badge-threshold-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink2);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 7px 14px;
  line-height: 1.4;
}
.badge-threshold-tag.hidden { display: none; }
.badge-threshold-tag strong { color: var(--ink); }

/* Rewards block */
.badge-rewards {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.badge-reward-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--ink3);
  margin-bottom: 12px;
  font-family: var(--mono);
}

.badge-rewards-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.badge-reward-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.5;
}

.bri-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
  width: 20px;
  text-align: center;
}

.badge-reward-item strong { color: var(--ink); font-weight: 700; }
.badge-reward-item em     { color: var(--gold); font-style: normal; font-weight: 500; }

/* Fine print */
.badges-note {
  text-align: center;
  font-size: 11px;
  color: var(--ink3);
  margin-top: 32px;
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Comparison table badge row ── */
.ct-feature-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ct-badge-note {
  font-size: 10.5px;
  color: var(--gold);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  display: block;
}

/* ── Light theme overrides for badges ── */
html.light-theme .badge-orb { background: #fff; }
html.light-theme .badge-body { background: #fff; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .badges-section { padding: 60px 24px 72px; }
  .badge-body     { padding: 22px 20px; }
  .badge-left     { width: 52px; }
  .badge-orb      { width: 42px; height: 42px; font-size: 1.3rem; }
  .badge-name     { font-size: 1.25rem; }
  .badge-toggle-wrap { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .badge-card { flex-direction: column; align-items: flex-start; }
  .badge-left { flex-direction: row; width: 100%; align-items: center; gap: 12px; padding: 0 0 12px; }
  .badge-connector { display: none; }
}