/* Plans — pricing grid */

.plans-section {
  --plans-blue: #0b4fd4;
  --plans-blue-mid: #1a6fe8;
  --plans-blue-soft: #e8f2ff;
  --plans-blue-muted: #5a7194;
  --plans-navy: #0c2d6b;
  --plans-gold: #e8b923;
  --plans-gold-ring: #f4c430;
  position: relative;
  padding: clamp(3rem, 6vw, 4.75rem) var(--space-page, 1.25rem);
  overflow: hidden;
  background: linear-gradient(165deg, #eef4fb 0%, #f8fafc 42%, #fff 100%);
}

.plans-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 12% 20%, rgba(26, 127, 255, 0.14), transparent 68%),
    radial-gradient(ellipse 50% 40% at 88% 10%, rgba(244, 196, 48, 0.12), transparent 65%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(186, 215, 252, 0.35), transparent 70%);
}

.plans-section__inner {
  position: relative;
  z-index: 1;
  width: min(76rem, 100%);
  margin: 0 auto;
}

.plans-section__head {
  max-width: 42rem;
  margin-bottom: 1.35rem;
}

.plans-section__head .section-kicker {
  color: var(--plans-blue);
  font-weight: 700;
}

.plans-section__head h2 {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--plans-navy);
}

.plans-section__lede {
  margin-top: 0.75rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--plans-blue-muted);
}

/* Trust highlights */
.plans-section__highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.65rem;
  margin: 0 auto 1.75rem;
  padding: 0;
  max-width: 52rem;
  list-style: none;
}

.plans-section__highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--plans-navy);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(11, 79, 212, 0.12);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(12, 45, 107, 0.06);
  backdrop-filter: blur(6px);
}

.plans-section__highlights strong {
  color: var(--plans-blue);
  font-weight: 800;
}

.plans-section__highlight-icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(26, 127, 255, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%230b4fd4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E")
    center / 0.65rem no-repeat;
}

.plans-section__deck {
  padding: clamp(1.25rem, 2.8vw, 1.85rem);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.35rem;
  box-shadow:
    0 0 0 1px rgba(12, 45, 107, 0.05),
    0 24px 60px rgba(12, 45, 107, 0.1);
  backdrop-filter: blur(8px);
}

.plans-section__footnote {
  margin: 1.35rem auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--plans-blue-muted);
}

.plans-section__footnote-link {
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--plans-blue);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(11, 79, 212, 0.35);
  cursor: pointer;
}

.plans-section__footnote-link:hover {
  color: var(--plans-blue-mid);
  border-bottom-color: currentColor;
}

/* Card grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.5vw, 1.15rem);
  align-items: stretch;
}

@media (max-width: 1120px) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 23rem;
    margin-inline: auto;
  }

  .plans-section__highlights {
    flex-direction: column;
    align-items: stretch;
  }

  .plans-section__highlights li {
    justify-content: flex-start;
  }
}

.plan-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.05rem;
  border: 1px solid rgba(12, 45, 107, 0.08);
  box-shadow: 0 8px 24px rgba(12, 45, 107, 0.06);
  min-height: 100%;
  position: relative;
  overflow: visible;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--plans-blue-mid), var(--plans-blue));
  opacity: 0.85;
}

.plan-card--basic::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.plan-card--standard::before {
  background: linear-gradient(90deg, #1a7aff, #0b4fd4);
}

.plan-card--premium::before {
  background: linear-gradient(90deg, #f4c430, #e8b923);
}

.plan-card--enterprise::before {
  background: linear-gradient(90deg, #64748b, #334155);
}

@media (hover: hover) {
  .plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 79, 212, 0.18);
    box-shadow: 0 16px 40px rgba(12, 45, 107, 0.12);
  }
}

.plan-card--featured {
  border: 2px solid var(--plans-gold-ring);
  box-shadow:
    0 10px 28px rgba(11, 79, 212, 0.14),
    0 0 0 4px rgba(244, 196, 48, 0.15);
}

@media (min-width: 1121px) {
  .plan-card--featured {
    transform: scale(1.02);
  }

  @media (hover: hover) {
    .plan-card--featured:hover {
      transform: scale(1.02) translateY(-4px);
    }
  }
}

/* Premium — crown + ribbon stacked in header */
.plan-card__featured-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.plan-card__crown {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #b8860b;
  background: linear-gradient(145deg, #fff7d6, #f4c430);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.plan-card__crown svg {
  width: 1.05rem;
  height: auto;
}

.plan-card__ribbon {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #422006;
  background: linear-gradient(135deg, #fde68a, #f4c430);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.plan-card__head {
  padding: 1.35rem 1.05rem 0.95rem;
  text-align: center;
}

.plan-card--featured .plan-card__head {
  position: relative;
  padding: 1.1rem 0.85rem 1rem;
  border-radius: 0.95rem 0.95rem 0 0;
  overflow: hidden;
  background: linear-gradient(165deg, #0b4fd4 0%, #1a6fe8 55%, #1560e0 100%);
  color: #fff;
}

.plan-card--featured .plan-card__name {
  font-size: 1.12rem;
  margin-top: 0.1rem;
}

.plan-card--featured .plan-card__tagline {
  margin-top: 0.45rem;
  max-width: 16rem;
  margin-inline: auto;
}

.plan-card__badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.38rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #059669, #10b981);
  border-radius: 999px;
  box-shadow: 0 2px 0 var(--plans-gold-ring);
}

.plan-card__icon {
  display: flex;
  justify-content: center;
  margin: 0.1rem 0 0.45rem;
  color: var(--plans-blue);
}

.plan-card__icon-svg {
  width: 2.65rem;
  height: 2.65rem;
}

.plan-card__name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--plans-navy);
}

.plan-card--featured .plan-card__name {
  color: #fff;
}

.plan-card__tagline {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--plans-blue-muted);
}

.plan-card--featured .plan-card__tagline {
  color: rgba(255, 255, 255, 0.9);
}

.plan-card--basic .plan-card__offer {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(135deg, #1a7aff 0%, var(--plans-blue) 100%);
  border-radius: 0.7rem;
  box-shadow: 0 8px 20px rgba(11, 79, 212, 0.28);
}

.plan-card__was {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fecaca;
  text-decoration: line-through;
}

.plan-card__free {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.plan-card__offer-note {
  margin: 0.55rem 0 0;
  font-size: 0.76rem;
  color: var(--plans-blue-muted);
}

.plan-card__body {
  flex: 1;
  padding: 0.85rem 1.05rem 0.75rem;
  text-align: left;
}

.plan-card__includes {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--plans-navy);
}

.plan-card__features {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.79rem;
  line-height: 1.48;
  color: #2b3d55;
}

.plan-card__features li {
  position: relative;
  padding: 0.32rem 0 0.32rem 1.55rem;
}

.plan-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1rem;
  height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plan-card--featured .plan-card__features li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%231a7aff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
}

.plan-card__foot {
  margin-top: auto;
  padding: 0 0 1.05rem;
}

.plan-card__rates {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--plans-blue-soft) 0%, #f0f6ff 100%);
  border-top: 1px solid rgba(12, 45, 107, 0.06);
  padding: 0.7rem 0.8rem;
}

.plan-card--featured .plan-card__rates {
  background: linear-gradient(180deg, #dce9ff 0%, #e8f2ff 100%);
}

.plan-card__rates--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
}

.plan-card__rates--split .plan-card__rate {
  padding: 0.7rem 0.55rem;
}

.plan-card__rates--split .plan-card__rate + .plan-card__rate {
  border-left: 1px solid rgba(12, 45, 107, 0.1);
}

.plan-card__rate {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.72rem;
  color: var(--plans-blue-muted);
}

.plan-card__rate-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.05rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='8' r='3.2' stroke='%230b4fd4' stroke-width='1.6'/%3E%3Cpath stroke='%230b4fd4' stroke-width='1.6' stroke-linecap='round' d='M5 20c0-3.8 3.1-6 7-6s7 2.2 7 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plan-card__rates--split .plan-card__rate:nth-child(2) .plan-card__rate-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%230b4fd4' stroke-width='1.6' stroke-linecap='round' d='M4 18h16M8 18V9l4-3 4 3v9'/%3E%3Ccircle cx='17' cy='7' r='2' stroke='%230b4fd4' stroke-width='1.4'/%3E%3C/svg%3E");
}

.plan-card__rate-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.plan-card__rate-label {
  font-size: 0.68rem;
  line-height: 1.3;
}

.plan-card__rate strong {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--plans-navy);
  white-space: nowrap;
}

.plan-card__min {
  margin: 0;
  padding: 0.55rem 1rem 0;
  font-size: 0.68rem;
  line-height: 1.4;
  text-align: center;
  color: #6b7c93;
}

.plan-card--enterprise {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.plan-card--enterprise::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4.75rem;
  height: 3.25rem;
  opacity: 0.28;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 48' preserveAspectRatio='none'%3E%3Cpath fill='%2394b8e8' d='M0 48V28l12-8 8 6 14-12 10 8 16-14 12 10 18-16 14 12 20-18 16 14 12-10 14 8 10-6 12 8 16-12 20 10V48z'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
}

.plan-card--enterprise .plan-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 7rem;
}

.plan-card--enterprise .plan-card__features {
  text-align: center;
}

.plan-card--enterprise .plan-card__features li {
  padding-left: 0;
}

.plan-card--enterprise .plan-card__features li::before {
  display: none;
}

.plan-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: calc(100% - 1.6rem);
  margin: 0.55rem 0.8rem 0;
  padding: 0.68rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  font-family: inherit;
  border-radius: 0.6rem;
  cursor: pointer;
  color: var(--plans-blue);
  background: #eef4ff;
  border: 1px solid rgba(11, 79, 212, 0.14);
  box-shadow: 0 2px 0 rgba(11, 79, 212, 0.06);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

@media (hover: hover) {
  .plan-card__cta:hover {
    background: #dce9ff;
    transform: translateY(-1px);
  }
}

.plan-card__cta--outline {
  color: var(--plans-blue);
  background: #fff;
  border: 2px solid var(--plans-blue);
}

.plan-card__cta--outline:hover {
  background: rgba(11, 79, 212, 0.06);
}

.plan-card__cta--primary {
  color: #fff;
  background: linear-gradient(135deg, #1a7aff 0%, var(--plans-blue) 100%);
  border: none;
  box-shadow: 0 8px 22px rgba(11, 79, 212, 0.35);
}

.plan-card__cta--primary:hover {
  background: linear-gradient(135deg, #2d88ff 0%, #1560e0 100%);
}

.plan-card__cta-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%230b4fd4' stroke-width='2' stroke-linecap='round' d='M4 6.5h11a3.5 3.5 0 0 1 0 7H7'/%3E%3Cpath stroke='%230b4fd4' stroke-width='2' stroke-linecap='round' d='M6.5 10.5 4 13l2.5 2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .plan-card,
  .plan-card__cta {
    transition: none;
  }
}
