/* ========================================
   PRICING SECTION — REDESIGNED
   Site tokens: 20px radius, layered shadows,
   #1a2b49 text, #2f56c9 primary, #30c56b green
   ======================================== */

.pricing-section {
  background: var(--bg-light);
  padding: 140px 24px 120px; /* extra top space to separate from #demo */
  position: relative;
  overflow: visible;
}

/* Ambient light blobs */
.pricing-section::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(47, 86, 201, 0.045) 0%, transparent 70%);
  pointer-events: none;
}
.pricing-section::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(48, 197, 107, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Header ── */
.pricing-header {
  text-align: center;
  margin-bottom: 36px;
}
.pricing-header h2 {
  font-size: 2.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(15, 26, 43, 0.95);
  line-height: 1.2;
  margin: 0;
}

@media (max-width: 768px){
  .pricing-section{ padding-top: 108px; }

  .pricing-header h2{ font-size: 2.05rem; }
}

/* ── Toggle Container ── */
.pricing-toggle-container {
  text-align: center;
  margin-bottom: 48px;
}
.pricing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  padding: 10px 24px;
  border-radius: 40px;
  box-shadow:
    0 2px 8px rgba(15, 26, 43, 0.06),
    0 0 0 1px rgba(15, 26, 43, 0.04);
  margin-bottom: 12px;
}
.pricing-toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(15, 26, 43, 0.4);
  transition: color 0.25s;
  user-select: none;
}
.pricing-toggle-label.active { color: #1a2b49; }

.pricing-toggle-switch {
  position: relative;
  width: 48px; height: 26px;
  background: rgba(15, 26, 43, 0.12);
  border: none;
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.25s;
  padding: 0;
  flex-shrink: 0;
}
.pricing-toggle-switch[data-annual="true"] {
  background: linear-gradient(135deg, #2f56c9 0%, #1e40af 100%);
}
.pricing-toggle-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.pricing-toggle-switch[data-annual="true"] .pricing-toggle-knob {
  transform: translateX(22px);
}
.pricing-toggle-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #30c56b 0%, #22a352 100%);
  padding: 4px 12px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Trial note (pill override from inline styles) */
.pricing-trial-note {
  text-align: center;
  font-size: 0.95rem;
  font-style: normal;
  color: rgba(15, 26, 43, 0.5);
  margin: 0;
}

/* ── 4-Column Grid ── */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* ── Base Card ── */
.pricing-plan-card {
  background: #ffffff;
  border: 1px solid rgba(15, 26, 43, 0.06);
  border-radius: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 24px rgba(15, 26, 43, 0.06),
    0 2px 6px rgba(15, 26, 43, 0.03);
  overflow: visible;
}

.pricing-plan-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 48px rgba(15, 26, 43, 0.1),
    0 4px 12px rgba(15, 26, 43, 0.05);
}

/* ── Card Head — colored top zone ── */
.pricing-plan-card__head {
  text-align: left;
  padding: 28px 22px 22px;
  position: relative;
  border-bottom: 1px solid rgba(15, 26, 43, 0.06);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

/* Tier accent backgrounds — subtle top gradient */
.pricing-plan-card:nth-child(1) .pricing-plan-card__head {
  background: linear-gradient(180deg, rgba(15, 26, 43, 0.02) 0%, transparent 100%);
}
.pricing-plan-card:nth-child(2) .pricing-plan-card__head {
  background: linear-gradient(180deg, rgba(47, 86, 201, 0.04) 0%, transparent 100%);
}
.pricing-plan-card:nth-child(4) .pricing-plan-card__head {
  background: linear-gradient(180deg, rgba(15, 26, 43, 0.04) 0%, transparent 100%);
}

.pricing-plan-card__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a2b49;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-plan-card__tagline {
  font-size: 0.82rem;
  color: rgba(15, 26, 43, 0.5);
  line-height: 1.45;
  margin: 0 0 20px;
}

.pricing-plan-card__price {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 2px;
  margin-bottom: 4px;
}
.pricing-plan-card__dollar {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2f56c9;
  align-self: flex-start;
  margin-top: 6px;
}
.pricing-plan-card__amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1a2b49;
  line-height: 1;
  letter-spacing: -0.03em;
  transition: all 0.3s ease;
}
.pricing-plan-card__period {
  font-size: 1rem;
  color: rgba(15, 26, 43, 0.45);
  font-weight: 500;
  margin-left: 2px;
}
.pricing-plan-card__annual-note {
  font-size: 0.75rem;
  color: #2f56c9;
  margin-top: 6px;
  text-align: left;
  font-weight: 600;
}

/* ── Minutes badge — pulled into header ── */
.pricing-plan-card__minutes {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 20px;
  background: rgba(47, 86, 201, 0.08);
  color: #2f56c9;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* ── Card Body — description hidden for cleaner cards ── */
.pricing-plan-card__desc {
  display: none;
}

/* ── Features ── */
.pricing-plan-card__features {
  list-style: none;
  padding: 18px 22px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.pricing-plan-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(15, 26, 43, 0.72);
}
.pricing-plan-card__features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}
/* "Everything in X, plus:" — use a class not :first-child to avoid affecting Basic/Standard */
.pricing-plan-card__features li.pricing-includes-note {
  font-weight: 600;
  color: #1a2b49;
  font-size: 0.82rem;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(15, 26, 43, 0.06);
  margin-bottom: 4px;
}

/* ── Card Foot ── */
.pricing-plan-card__foot {
  text-align: center;
  margin-top: auto;
  padding: 20px 22px 24px;
}

/* ── Progressive CTA buttons ── */

/* Basic — ghost outline */
.pricing-plan-card:nth-child(1) .pricing-plan-card__cta {
  display: block;
  width: 100%;
  padding: 15px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  background: transparent;
  border: 2px solid #2f56c9;
  color: #2f56c9;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.pricing-plan-card:nth-child(1) .pricing-plan-card__cta:hover {
  background: #2f56c9;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(47, 86, 201, 0.3);
}

/* Standard — outlined with color */
.pricing-plan-card:nth-child(2) .pricing-plan-card__cta {
  display: block;
  width: 100%;
  padding: 15px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  background: transparent;
  border: 2px solid #2f56c9;
  color: #2f56c9;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.pricing-plan-card:nth-child(2) .pricing-plan-card__cta:hover {
  background: #2f56c9;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 86, 201, 0.3);
}

/* Professional (Popular) — handled by --primary below */

/* Elite — ghost outline */
.pricing-plan-card:nth-child(4) .pricing-plan-card__cta {
  display: block;
  width: 100%;
  padding: 15px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  background: transparent;
  border: 2px solid #2f56c9;
  color: #2f56c9;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.pricing-plan-card:nth-child(4) .pricing-plan-card__cta:hover {
  background: #2f56c9;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 86, 201, 0.3);
}

/* Primary CTA — popular card (solid blue) */
.pricing-plan-card__cta--primary {
  display: block;
  width: 100%;
  padding: 15px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  background: #2f56c9;
  border: none;
  color: #fff;
  box-shadow: 0 4px 16px rgba(47, 86, 201, 0.3);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.pricing-plan-card__cta--primary:hover {
  box-shadow: 0 8px 28px rgba(47, 86, 201, 0.4);
  transform: translateY(-2px);
  color: #fff;
  background: #2548b0;
}

.pricing-plan-card__sub {
  font-size: 0.75rem;
  color: rgba(15, 26, 43, 0.4);
  margin: 0;
  letter-spacing: 0.01em;
}

/* ── Popular Card — ELEVATED ── */
.pricing-plan-card--popular {
  border: 2px solid rgba(212, 175, 55, 0.35);
  background: #ffffff;
  box-shadow:
    0 16px 48px rgba(47, 86, 201, 0.14),
    0 4px 12px rgba(47, 86, 201, 0.06);
  z-index: 2;
}

/* Keep inner content aligned with other cards even with a floating badge */
.pricing-plan-card__head { min-height: 190px; }
.pricing-plan-card__tagline { min-height: 54px; }
.pricing-plan-card--popular .pricing-plan-card__head {
  background: linear-gradient(180deg, rgba(47, 86, 201, 0.06) 0%, rgba(212, 175, 55, 0.02) 100%);
  /* Keep pricing content aligned with other cards (badge sits outside the card) */
  padding-top: 28px;
}

/* When a card has an outside badge, do NOT offset the card (keeps rows aligned) */
.pricing-plan-card--popular { margin-top: 0; }
.pricing-plan-card--popular:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 56px rgba(47, 86, 201, 0.18),
    0 6px 16px rgba(47, 86, 201, 0.08);
}

/* Popular badge */
.pricing-plan-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d4af37 0%, #b8941e 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 20px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
  z-index: 10;
}

/* ── Bottom Note — info bar style ── */
.pricing-bottom-note {
  text-align: center;
  margin: 56px auto 0;
  font-size: 0.88rem;
  font-style: normal;
  color: rgba(15, 26, 43, 0.6);
  max-width: 780px;
  line-height: 1.6;
  background: #ffffff;
  border: 1px solid rgba(15, 26, 43, 0.06);
  border-radius: 14px;
  padding: 20px 32px;
  box-shadow:
    0 2px 8px rgba(15, 26, 43, 0.04),
    0 0 0 1px rgba(15, 26, 43, 0.02);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet — 2×2 */
@media (max-width: 968px) {
  .pricing-section {
    padding: 72px 16px 80px;
  }
  .pricing-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .pricing-plan-card__head {
    padding: 28px 20px 24px;
  }
  .pricing-plan-card--popular:hover {
    transform: translateY(-6px);
  }
  .pricing-plan-card__amount {
    font-size: 2.8rem;
  }
  .pricing-plan-card__name {
    font-size: 1.1rem;
  }
  .pricing-plan-card__tagline {
    font-size: 0.78rem;
  }
  .pricing-plan-card__desc {
    font-size: 0.8rem;
    padding: 20px 20px 0;
  }
  .pricing-plan-card__features {
    padding: 16px 20px 0;
    gap: 9px;
  }
  .pricing-plan-card__features li {
    font-size: 0.78rem;
  }
  .pricing-plan-card__foot {
    padding: 20px 20px 24px;
  }
  .pricing-toggle-wrap {
    padding: 8px 18px;
    gap: 10px;
  }
}

/* Mobile — single column */
@media (max-width: 600px) {
  .pricing-section {
    padding: 56px 16px 64px;
  }
  .pricing-header {
    margin-bottom: 28px;
  }
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pricing-plan-card__head {
    padding: 28px 24px 24px;
  }
  .pricing-plan-card--popular .pricing-plan-card__head {
    padding-top: 40px;
  }
  .pricing-plan-card--popular:hover {
    transform: translateY(-4px);
  }
  .pricing-plan-card__amount {
    font-size: 3rem;
  }
  .pricing-plan-card__name {
    font-size: 1.15rem;
  }
  .pricing-plan-card__desc {
    padding: 20px 24px 0;
  }
  .pricing-plan-card__features {
    padding: 16px 24px 0;
  }
  .pricing-plan-card__foot {
    padding: 20px 24px 28px;
  }
  .pricing-toggle-wrap {
    gap: 8px;
    padding: 8px 16px;
  }
  .pricing-toggle-label {
    font-size: 0.82rem;
  }
  .pricing-toggle-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
  }
  .pricing-bottom-note {
    font-size: 0.82rem;
    margin-top: 40px;
    padding: 16px 20px;
  }
}

/* ========================================
   PRICING STEPS BAR — "How it works"
   3-step horizontal bar between cards & bottom note
   ======================================== */

.pricing-steps-bar {
  margin: 48px auto 0;
  max-width: 920px;
  text-align: center;
}

.pricing-steps-bar__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #2f56c9;
  margin: 0 0 20px 0;
}

.pricing-steps-bar__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 26, 43, 0.08);
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow:
    0 4px 16px rgba(15, 26, 43, 0.05),
    0 1px 4px rgba(15, 26, 43, 0.03);
}

.pricing-steps-bar__step {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.pricing-steps-bar__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f56c9 0%, #1e40af 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(47, 86, 201, 0.3);
}

.pricing-steps-bar__text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2b49;
  line-height: 1.35;
  text-align: left;
}

.pricing-steps-bar__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: rgba(47, 86, 201, 0.3);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Tablet */
@media (max-width: 768px) {
  .pricing-steps-bar__steps {
    flex-direction: column;
    gap: 16px;
    padding: 24px 24px;
  }
  .pricing-steps-bar__step {
    justify-content: flex-start;
    width: 100%;
    gap: 14px;
  }
  .pricing-steps-bar__arrow {
    display: none;
  }
  .pricing-steps-bar__text {
    font-size: 0.875rem;
  }
  .pricing-steps-bar {
    margin-top: 36px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .pricing-steps-bar__steps {
    padding: 20px 20px;
    gap: 14px;
    border-radius: 12px;
  }
  .pricing-steps-bar__num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 0.78rem;
  }
  .pricing-steps-bar__text {
    font-size: 0.82rem;
  }
  .pricing-steps-bar__title {
    font-size: 0.72rem;
    margin-bottom: 14px;
  }
  .pricing-steps-bar {
    margin-top: 28px;
  }
}
