*, *::before, *::after { box-sizing: border-box; }

/* ── Section ── */
.cr-pricing {
  background-color: #09090b;
  padding: 5rem 1.5rem 4rem;
  font-family: 'Inter', sans-serif;
}
.cr-pricing-inner {
  max-width: 72rem;
  margin: 0 auto;
}

/* ── Section label ── */
.cr-pricing-label-inner {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.cr-pricing-h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}
.cr-pricing-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3.5rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

/* ── Plans grid: 1-col mobile → 2-col desktop ── */
.cr-plans-grid { grid-template-columns: 1fr; }
@media (min-width: 768px) { .cr-plans-grid { grid-template-columns: 1fr 1fr; } }

/* ── Base plan card ── */
.cr-plan-card {
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.175,0.885,0.32,1.275),
              box-shadow 0.5s cubic-bezier(0.175,0.885,0.32,1.275),
              border-color 0.5s;
  position: relative;
}
.cr-plan-card:hover { transform: scale(1.015); }

/* Gold */
.cr-plan-gold {
  background: linear-gradient(145deg, rgba(24,24,27,0.9) 0%, rgba(24,24,27,0.8) 60%, rgba(39,39,42,0.6) 100%);
  border: 1px solid rgba(255,255,255,0.1);
}
.cr-plan-gold:hover { border-color: rgba(251,191,36,0.4); box-shadow: 0 0 30px -5px rgba(251,191,36,0.2); }

/* Platinum */
.cr-plan-platinum {
  background: linear-gradient(145deg, rgba(220,38,38,0.18) 0%, rgba(24,24,27,0.9) 50%, rgba(24,24,27,0.9) 100%);
  border: 2px solid rgba(220,38,38,0.6);
  box-shadow: 0 0 30px rgba(239,68,68,0.25);
}
.cr-plan-platinum:hover { box-shadow: 0 0 50px rgba(239,68,68,0.4); }

/* Unlimited */
.cr-plan-unlimited {
  background: linear-gradient(145deg, rgba(16,185,129,0.08) 0%, rgba(24,24,27,0.9) 50%, rgba(24,24,27,0.9) 100%);
  border: 2px solid rgba(16,185,129,0.4);
  box-shadow: 0 0 30px -5px rgba(16,185,129,0.2);
}
.cr-plan-unlimited:hover { box-shadow: 0 0 40px -5px rgba(16,185,129,0.35); }

/* ── Top badge (Most Popular / Unlimited Rounds) ── */
.cr-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
}
.badge-red     { background: #ef4444; }
.badge-emerald { background: #10b981; }

/* Dot pulse animation */
@keyframes cr-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.cr-dot { display: inline-block; }

/* ── Plan header pill ── */
.cr-plan-header { font-family: 'Inter', sans-serif; }
.cr-plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
}
.pill-amber { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; }
.dot-amber-sm {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fbbf24;
  animation: cr-pulse 2s ease-in-out infinite;
  display: inline-block;
}

.cr-plan-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
.cr-plan-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin: 0;
}

/* ── Price block ── */
.cr-savings-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.35);
  color: #4ade80;
}
.cr-savings-badge.emerald-badge {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.35);
  color: #34d399;
}
.cr-price-row { display: flex; align-items: baseline; gap: 0.75rem; }
.cr-price-original {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.35);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.cr-price-main {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.cr-price-suffix  { font-size: 0.9rem; color: rgba(255,255,255,0.55); }
.cr-price-recurring {
  display: block;
  font-size: 0.9rem;
  color: #34d399;
  font-weight: 600;
  margin-top: 0.25rem;
}
.cr-price-note {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.15rem;
}

/* ── Feature list ── */
.cr-features-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: -0.01em;
  margin-bottom: 0.875rem;
}
.cr-features-label.platinum-label { color: rgba(255,255,255,0.85); }
.cr-feature-list { display: flex; flex-direction: column; gap: 0.75rem; }
.cr-feature-item { display: flex; align-items: flex-start; gap: 0.625rem; }
.cr-feature-check {
  width: 1rem; height: 1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.check-amber   { background: rgba(245,158,11,0.15); }
.check-red     { background: rgba(220,38,38,0.15); }
.check-emerald { background: rgba(16,185,129,0.15); }
.cr-feature-text { font-size: 0.875rem; color: rgba(255,255,255,0.8); line-height: 1.55; }
.cr-feature-text strong { color: #fff; font-weight: 600; }

/* ── Card footer notes ── */
.cr-plan-footer-note { font-size: 0.75rem; color: rgba(255,255,255,0.45); font-style: italic; line-height: 1.5; margin: 0; }
.cr-plan-footer-sub  { font-size: 0.72rem; color: rgba(255,255,255,0.45); text-align: center; line-height: 1.5; margin: 0; }
.cr-plan-footer-sub a { color: #fbbf24; text-decoration: underline; text-underline-offset: 2px; }
.cr-plan-footer-sub a:hover { color: #f59e0b; }

/* ── Animated CTA buttons (idx-cta-anim-btn pattern, colored variant) ── */
@keyframes cr-sweep { 0% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@keyframes cr-fade  { 0%, 100% { opacity: 0; } 15% { opacity: 0.45; } 65% { opacity: 0; } }

.cr-anim-btn {
  position: relative;
  overflow: hidden;
  height: 52px;
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275),
              box-shadow 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}
.cr-anim-btn:hover { transform: scale(1.02); }

.cr-anim-btn-gold    { background: linear-gradient(to right, #d97706, #f59e0b); box-shadow: 0 0 20px -5px rgba(251,191,36,0.35); }
.cr-anim-btn-gold:hover    { box-shadow: 0 0 30px -5px rgba(251,191,36,0.65); }
.cr-anim-btn-red     { background: linear-gradient(to right, #dc2626, #ef4444); box-shadow: 0 0 25px -5px rgba(220,38,38,0.5); }
.cr-anim-btn-red:hover     { box-shadow: 0 0 35px -5px rgba(220,38,38,0.75); }
.cr-anim-btn-emerald { background: linear-gradient(to right, #059669, #10b981); box-shadow: 0 0 20px -5px rgba(16,185,129,0.35); }
.cr-anim-btn-emerald:hover { box-shadow: 0 0 30px -5px rgba(16,185,129,0.65); }

/* Sweep overlay */
.cr-anim-loader {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  background: transparent;
  -webkit-mask: repeating-linear-gradient(90deg, transparent 0, transparent 6px, black 7px, black 8px);
  mask: repeating-linear-gradient(90deg, transparent 0, transparent 6px, black 7px, black 8px);
}
.cr-anim-glow {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  animation: cr-sweep 2.2s infinite alternate, cr-fade 4.4s infinite;
  animation-timing-function: cubic-bezier(0.6,0.8,0.5,1);
}
/* White shimmer glow — works on any colored background */
.cr-glow-gold, .cr-glow-red, .cr-glow-emerald {
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.75) 0%, transparent 55%),
    radial-gradient(circle at 45% 45%, rgba(255,255,255,0.50) 0%, transparent 42%),
    radial-gradient(circle at 55% 55%, rgba(255,255,255,0.40) 0%, transparent 40%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 0%, transparent 8%, black 22%);
  mask: radial-gradient(circle at 50% 50%, transparent 0%, transparent 8%, black 22%);
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.35));
}

.cr-anim-text {
  position: relative;
  z-index: 2;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* ── Compare section ── */
.cr-compare { margin-top: 5rem; }

.cr-compare-label-wrap {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.875rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.cr-compare-h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.75rem 0 0.75rem;
}
.cr-compare-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.65;
}

/* Compare grid: 1-col mobile → 2-col desktop */
.cr-compare-grid { grid-template-columns: 1fr; }
@media (min-width: 768px) { .cr-compare-grid { grid-template-columns: 1fr 1fr; } }

/* Compare cards */
.cr-compare-card { border-radius: 1rem; }
.cr-cmp-gold     { background: linear-gradient(145deg, rgba(24,24,27,0.9), rgba(39,39,42,0.6)); border: 1px solid rgba(245,158,11,0.3); }
.cr-cmp-platinum { background: linear-gradient(145deg, rgba(220,38,38,0.08), rgba(24,24,27,0.9)); border: 2px solid rgba(220,38,38,0.5); box-shadow: 0 0 30px rgba(239,68,68,0.12); }
.cr-cmp-unlimited{ background: linear-gradient(145deg, rgba(16,185,129,0.08), rgba(24,24,27,0.9)); border: 2px solid rgba(16,185,129,0.4); box-shadow: 0 0 25px -5px rgba(16,185,129,0.15); }

/* Compare dots */
.cr-cmp-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; display: inline-block; }
.dot-amber   { background: #fbbf24; animation: cr-pulse 2s ease-in-out infinite; }
.dot-red     { background: #f87171; animation: cr-pulse 2s ease-in-out infinite; }
.dot-emerald { background: #34d399; animation: cr-pulse 2s ease-in-out infinite; }

.cr-cmp-h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.cr-cmp-h4.gold     { color: #fbbf24; }
.cr-cmp-h4.platinum { color: #f87171; }
.cr-cmp-h4.emerald  { color: #34d399; }

.cr-cmp-item { display: flex; align-items: flex-start; gap: 0.5rem; }
.cr-cmp-check {
  width: 1rem; height: 1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.cr-cmp-item-text { font-size: 0.875rem; color: rgba(255,255,255,0.8); line-height: 1.5; }

.cr-cmp-footnote {
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.cr-cmp-footnote svg { flex-shrink: 0; margin-top: 0.1rem; }

/* ── Bottom divider ── */
.cr-pricing-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(220,38,38,0.3), transparent);
  margin-top: 5rem;
}

@media (max-width: 600px) {
  .cr-pricing { padding: 3rem 1rem 3rem; }
}
