/* ===== Pricing ===== */
main {
  flex: 1;
  padding: 32px max(20px, 3vw) 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* ── Pitch card ── */
.pitch-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.pitch-card::before {
  content: '';
  position: absolute;
  top: -50px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 220px;
  background: radial-gradient(ellipse, rgba(198,242,78,.08) 0%, transparent 68%);
  pointer-events: none;
}
.pitch-card > * { position: relative; z-index: 1; }

/* Sparkles */
.pitch-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  animation: sparkle-pulse 3s ease-in-out infinite;
}
.ps-1 { width: 15px; height: 15px; top: 20px; right: 32px; color: var(--accent); animation-delay: 0s; }
.ps-2 { width: 9px;  height: 9px;  top: 44px; right: 62px; color: var(--accent); opacity: .5; animation-delay: 1.1s; }
.ps-3 { width: 11px; height: 11px; top: 28px; left: 36px;  color: var(--accent); opacity: .5; animation-delay: .6s; }
@keyframes sparkle-pulse {
  0%, 100% { opacity: .15; transform: scale(.85) rotate(0deg); }
  50%       { opacity: .7;  transform: scale(1.15) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) { .pitch-sparkle { animation: none; opacity: .3; } }

.pitch-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 18px;
}

.pitch-card h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}
.h1-accent { color: var(--accent); }

.pitch-stats {
  display: flex;
  align-items: center;
  padding: 20px 0;
  margin: 0 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pitch-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pitch-stat + .pitch-stat { border-left: 1px solid var(--line); }

.stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-suffix { font-size: 1.4rem; font-weight: 700; margin-left: 2px; }
.stat-label { font-size: 11px; color: var(--text-3); line-height: 1.35; text-align: center; }

.pitch-body { font-size: 14px; color: var(--text-2); line-height: 1.7; max-width: 480px; margin: 0 auto; }
.pitch-body strong { color: var(--text-1); font-weight: 600; }

/* ── Cards grid ── */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
@media (max-width: 560px) { .plans-grid { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .pitch-stats { padding: 16px 0; } }

/* ── Popular label ── */
.card-wrapper { display: flex; flex-direction: column; gap: 0; }
.popular-label {
  text-align: center;
  background: var(--accent);
  color: var(--btn-text);
  border-radius: 12px 12px 0 0;
  padding: 6px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card-wrapper .plan-card { border-radius: 0 0 14px 14px; }
.card-wrapper.has-label .plan-card { border-top: none; }

/* ── Plan card ── */
.plan-card {
  --mx: 50%; --my: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  overflow: hidden;
  position: relative;
  transition: border-color .2s, transform .2s;
  cursor: default;
}
.plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(198,242,78,.07), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.plan-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.plan-card:hover::before { opacity: 1; }
.plan-card > * { position: relative; z-index: 1; }

/* Featured subscription card */
.plan-card.featured {
  border-color: var(--accent-line);
  background: linear-gradient(160deg, var(--accent-soft), var(--card));
  box-shadow: 0 0 22px rgba(198,242,78,.1);
}

/* Breathing glow lives on the wrapper — no overflow:hidden, no hover-transform conflict.
   Animating opacity (a composited property) instead of box-shadow avoids repaints. */
.card-wrapper.has-label {
  position: relative;
}
.card-wrapper.has-label::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  box-shadow: 0 0 42px rgba(198,242,78,.25);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
@media (prefers-reduced-motion: no-preference) {
  .card-wrapper.has-label::after { animation: plan-glow 3.5s ease-in-out infinite; }
}
@keyframes plan-glow {
  0%, 100% { opacity: 0; }
  50%       { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .card-wrapper.has-label::after { opacity: .5; }
}

/* Intro deal — full width */
.intro-deal {
  grid-column: 1 / -1;
  border-color: var(--accent-line);
  background: linear-gradient(110deg, rgba(198,242,78,.07), var(--card) 55%);
  box-shadow: 0 0 26px rgba(198,242,78,.08);
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
@media (max-width: 560px) { .intro-deal { flex-direction: column; align-items: stretch; } }

.intro-left  { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.intro-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}
@media (max-width: 560px) { .intro-right { min-width: unset; } }

.deal-tag {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  width: fit-content;
}

.intro-features { display: flex; flex-wrap: wrap; gap: 6px 16px; }

.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.plan-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 6px;
}
.plan-card.featured .plan-name { color: var(--accent); }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}
.price-main {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-suffix { font-size: 13px; color: var(--text-2); }

/* Referral price cut: the old price struck through, the new one in accent. The same pair is
   used next to a 2rem headline price and inline in 11.5px fine print, so the size is set per
   context rather than once here. */
.price-was {
  font-weight: 600;
  color: var(--text-3);
  text-decoration: line-through;
}
.plan-price .price-was {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-cut { color: var(--accent); }

/* Referral savings note below the headline price on the subscription card. */
.plan-referral-note {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 6px;
}

.badge {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge.purple {
  background: rgba(255,255,255,.04);
  border-color: var(--line-strong);
  color: var(--text-2);
}

.plan-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }

.plan-features { display: flex; flex-direction: column; gap: 7px; flex: 1; }

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.feature-icon {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5 6.5-7' stroke='%23C6F24E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.plan-cta {
  display: block;
  padding: 13px 16px;
  border-radius: 10px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s;
  margin-top: auto;
}
.plan-cta:hover { transform: translateY(-1px); }

/* Subscription CTA — accent lime */
.cta-sub {
  background: var(--accent);
  color: var(--btn-text);
}
.cta-sub:hover { box-shadow: 0 12px 32px rgba(198,242,78,.3); }

/* Sessions pack CTA — accent green */
.cta-sessions {
  background: var(--accent);
  color: var(--btn-text);
}
.cta-sessions:hover { box-shadow: 0 12px 32px rgba(198,242,78,.3); }

/* Intro CTA — strong accent */
.cta-intro {
  background: var(--accent);
  color: var(--btn-text);
  font-weight: 800;
  width: 100%;
}
.cta-intro:hover { box-shadow: 0 14px 36px rgba(198,242,78,.3); }

.plan-fine {
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.5;
}
.plan-fine.credit-note { color: var(--accent); margin-top: 4px; }

/* ── Referral code redemption ── */
/* A direct child of `main`, whose flex column already supplies the 20px gap to the plans grid
   below it — hence no margin of its own. */
.ref-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.ref-card-head { flex: 1 1 260px; }
.ref-card-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}
.ref-card-desc { font-size: 13px; color: var(--text-2); line-height: 1.55; }

.ref-form { display: flex; gap: 8px; flex: 1 1 280px; }
.ref-input {
  flex: 1;
  min-width: 0;
  background: var(--card-inset);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 10px 12px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13.5px;
  color: var(--text-1);
}
.ref-input::placeholder { color: var(--text-3); }
.ref-input:focus { outline: none; border-color: var(--accent-line); }
.ref-submit {
  background: var(--accent);
  color: var(--btn-text);
  border: none;
  border-radius: 9px;
  padding: 10px 20px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.ref-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(198,242,78,.22); }
.ref-error { flex: 1 1 100%; font-size: 12.5px; color: var(--danger); }

.ref-card--applied { border-color: var(--accent-line); justify-content: flex-start; gap: 10px; }
.ref-tick { color: var(--accent); font-size: 15px; line-height: 1; }
.ref-msg { font-size: 13.5px; color: var(--text-2); }

@media (max-width: 640px) { main { padding: 24px 16px 56px; } }
