/* ═══════════════════════════════════════════════════
   Atomi — Pricing Section
   ═══════════════════════════════════════════════════ */

.pricing {
  position: relative;
  padding: clamp(var(--space-64), 10vh, var(--space-96)) clamp(var(--space-24), 5vw, var(--space-96));
  background:
    radial-gradient(ellipse 48% 40% at 50% 22%, oklch(0.72 0.16 294 / 0.05), transparent 58%),
    radial-gradient(ellipse 38% 34% at 84% 74%, oklch(0.84 0.12 72 / 0.06), transparent 52%),
    linear-gradient(180deg, var(--ivory-clean) 0%, var(--ivory) 50%, var(--rhythm-paper) 100%);
}

.pricing-inner {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.pricing .section-head {
  margin-bottom: clamp(var(--space-48), 7vh, var(--space-64));
  text-align: center;
}

/* ── Pricing grid ─────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-16), 2vw, var(--space-32));
  align-items: start;
}

/* ── Pricing card ─────────────────────────────────── */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(var(--space-24), 4vw, var(--space-48)) clamp(var(--space-24), 3vw, var(--space-32));
  border: 1px solid oklch(0.78 0.04 76 / 0.16);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 24% 12%, oklch(0.99 0.01 84 / 0.38), transparent 36%),
    linear-gradient(162deg, oklch(0.994 0.01 82 / 0.36), oklch(0.966 0.018 76 / 0.08));
  backdrop-filter: blur(14px) saturate(1.04);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
  box-shadow:
    var(--shadow-1),
    inset 0 1px 0 oklch(0.99 0.01 82 / 0.38);
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease), border-color 0.38s var(--ease);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: oklch(0.82 0.12 74 / 0.34);
  box-shadow:
    0 20px 50px oklch(0.32 0.05 288 / 0.07),
    0 0 22px oklch(0.78 0.12 72 / 0.06),
    inset 0 1px 0 oklch(0.99 0.01 82 / 0.52);
}

/* ── Highlighted middle card ───────────────────────── */
.pricing-card--featured {
  border-color: oklch(0.84 0.14 73 / 0.44);
  background:
    radial-gradient(circle at 24% 12%, oklch(0.99 0.01 84 / 0.52), transparent 34%),
    radial-gradient(circle at 78% 82%, oklch(0.88 0.13 61 / 0.14), transparent 44%),
    linear-gradient(162deg, oklch(0.994 0.01 82 / 0.52), oklch(0.93 0.045 67 / 0.22));
  box-shadow:
    0 16px 46px oklch(0.32 0.05 288 / 0.08),
    0 0 36px oklch(0.82 0.14 62 / 0.14),
    inset 0 1px 0 oklch(0.99 0.01 82 / 0.56);
  transform: scale(1.03);
}

.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: oklch(0.84 0.14 73 / 0.56);
  box-shadow:
    0 24px 64px oklch(0.32 0.05 288 / 0.12),
    0 0 48px oklch(0.82 0.16 62 / 0.22),
    inset 0 1px 0 oklch(0.99 0.01 82 / 0.66);
}

.pricing-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, oklch(0.82 0.14 62), oklch(0.72 0.16 48));
  color: oklch(0.99 0.01 82);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px oklch(0.78 0.14 55 / 0.3);
}

/* ── Plan header ──────────────────────────────────── */
.pricing-plan {
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.2vw, 3.2rem);
  font-weight: 650;
  color: var(--ink);
  line-height: 1;
}

.pricing-price small {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 450;
  color: var(--muted);
}

.pricing-card--featured .pricing-price {
  background: linear-gradient(135deg, oklch(0.48 0.12 294), oklch(0.38 0.08 286));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-desc {
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--ink-soft);
}

/* ── Feature list ─────────────────────────────────── */
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.pricing-features li svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: oklch(0.56 0.08 158);
}

/* ── CTA button ───────────────────────────────────── */
.pricing-cta {
  margin-top: auto;
  text-align: center;
}

.pricing-card--featured .pricing-cta .btn-primary {
  box-shadow:
    0 8px 28px oklch(0.62 0.17 294 / 0.28),
    0 0 18px oklch(0.82 0.14 62 / 0.12);
}

/* Approved design alignment: compact plan cards */
@media (min-width: 1121px) {
  .pricing {
    padding: clamp(32px, 4.2vh, 44px) clamp(24px, 5vw, 96px) clamp(36px, 4.8vh, 52px);
    background:
      radial-gradient(ellipse 42% 38% at 50% 18%, oklch(0.72 0.16 294 / 0.04), transparent 58%),
      radial-gradient(ellipse 34% 32% at 78% 70%, oklch(0.84 0.12 72 / 0.05), transparent 52%),
      linear-gradient(180deg, var(--ivory-clean) 0%, var(--ivory) 100%);
  }

  .pricing-inner {
    width: min(750px, 100%);
  }

  .pricing .section-head {
    display: block;
    margin: 0 auto 18px;
    text-align: center;
  }

  .pricing .section-label {
    font-size: 0.58rem;
    letter-spacing: 0.24em;
  }

  .pricing .section-title {
    font-size: clamp(1.9rem, 2.22vw, 2.44rem);
    line-height: 1.08;
  }

  .pricing .section-note {
    max-width: 390px;
    margin: 8px auto 0;
    font-size: 0.72rem;
    line-height: 1.46;
  }

  .pricing-grid {
    gap: 14px;
    align-items: stretch;
  }

  .pricing-card {
    min-height: 226px;
    gap: 9px;
    padding: 19px 19px 18px;
    border-radius: 13px;
    border-color: oklch(0.74 0.052 70 / 0.17);
    background:
      radial-gradient(circle at 24% 12%, oklch(0.99 0.01 84 / 0.48), transparent 36%),
      linear-gradient(162deg, oklch(0.994 0.01 82 / 0.42), oklch(0.968 0.018 76 / 0.12));
    backdrop-filter: blur(10px) saturate(1.02);
    -webkit-backdrop-filter: blur(10px) saturate(1.02);
    box-shadow:
      0 8px 22px oklch(0.34 0.04 286 / 0.04),
      inset 0 1px 0 oklch(0.99 0.01 82 / 0.48);
  }

  .pricing-card:hover {
    transform: translateY(-2px);
  }

  .pricing-card--featured,
  .pricing-card--featured:hover {
    transform: none;
  }

  .pricing-card--featured {
    border-color: oklch(0.84 0.14 73 / 0.42);
    box-shadow:
      0 12px 32px oklch(0.66 0.12 60 / 0.09),
      0 0 28px oklch(0.82 0.14 62 / 0.10),
      inset 0 1px 0 oklch(0.99 0.01 82 / 0.56);
  }

  .pricing-badge {
    top: -11px;
    padding: 4px 12px;
    font-size: 0.54rem;
  }

  .pricing-plan {
    font-size: 0.62rem;
    letter-spacing: 0.13em;
  }

  .pricing-price {
    font-size: clamp(1.72rem, 2.2vw, 2.22rem);
  }

  .pricing-price small {
    font-size: 0.58rem;
  }

  .pricing-desc {
    font-size: 0.64rem;
    line-height: 1.38;
  }

  .pricing-features {
    gap: 6px;
  }

  .pricing-features li {
    gap: 7px;
    font-size: 0.64rem;
  }

  .pricing-features li svg {
    width: 12px;
    height: 12px;
  }

  .pricing-cta .btn {
    min-height: 40px;
    padding-inline: 20px;
    border-radius: 10px;
    font-size: 0.72rem;
  }
}
