* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--color-text);
  background:
    radial-gradient(circle at 75% 10%, rgba(124, 58, 237, 0.2), transparent 30%),
    radial-gradient(circle at 20% 55%, rgba(37, 99, 235, 0.12), transparent 34%),
    var(--color-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pricing-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pricing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.pricing-brand .brand-mark {
  width: 45px;
  height: 40px;
  display: grid;
  place-items: center;
}

.pricing-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-header nav a {
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.pricing-header nav a:hover {
  color: white;
  background: rgba(124, 58, 237, 0.1);
}

.pricing-header .header-cta {
  color: white;
  background: linear-gradient(135deg, var(--color-primary), #4f46e5);
}

.pricing-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 50px;
}

.pricing-hero {
  max-width: 780px;
  margin: 0 auto 45px;
  text-align: center;
}

.eyebrow {
  color: var(--color-primary-light);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pricing-hero h1 {
  margin: 13px 0 14px;
  font-size: clamp(42px, 6vw, 70px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.pricing-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.billing-toggle {
  width: fit-content;
  margin: 28px auto 0;
  padding: 5px;
  display: flex;
  gap: 5px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(5, 11, 28, 0.78);
}

.billing-toggle button {
  min-width: 125px;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: var(--color-text-soft);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
}

.billing-toggle button span {
  display: block;
  color: #86efac;
  font-size: 9px;
}

.billing-toggle button.active {
  color: white;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.85), rgba(79, 70, 229, 0.75));
  box-shadow: 0 8px 24px rgba(76, 29, 149, 0.28);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  min-height: 570px;
  padding: 29px;
  border: 1px solid var(--color-border);
  border-radius: 19px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 90% 0%, rgba(124, 58, 237, 0.15), transparent 35%),
    rgba(7, 14, 32, 0.84);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.plan-card.popular {
  border-color: rgba(168, 85, 247, 0.62);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.13), 0 28px 90px rgba(76, 29, 149, 0.3);
  transform: translateY(-9px);
}

.plan-card.coming-soon {
  opacity: 0.82;
  background:
    radial-gradient(circle at 80% 5%, rgba(34, 211, 238, 0.12), transparent 34%),
    rgba(7, 14, 32, 0.75);
}

.popular-badge,
.coming-badge {
  position: absolute;
  top: 17px;
  right: 17px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #f3e8ff;
  background: rgba(124, 58, 237, 0.28);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coming-badge {
  color: #cffafe;
  background: rgba(8, 145, 178, 0.2);
}

.plan-icon {
  width: 58px;
  height: 52px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
}

.plan-icon img {
  width: 58px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.55));
}

.plan-card h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.plan-eyebrow {
  margin: 7px 0 0;
  color: var(--color-primary-light);
  font-size: 12px;
  font-weight: 750;
}

.plan-description {
  min-height: 48px;
  margin: 14px 0 19px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.plan-price {
  min-height: 68px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.plan-price strong {
  font-size: 47px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.plan-price span {
  padding-bottom: 6px;
  color: var(--color-text-soft);
  font-size: 12px;
}

.plan-price.coming-price strong {
  color: #c4b5fd;
  font-size: 32px;
}

.yearly-note {
  min-height: 18px;
  margin: 7px 0 17px;
  color: #86efac;
  font-size: 11px;
}

.trial-note {
  display: inline-flex;
  width: fit-content;
  margin: -8px 0 16px;
  padding: 6px 10px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.plan-limits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 17px;
}

.plan-limit {
  padding: 10px;
  border: 1px solid rgba(122, 139, 190, 0.12);
  border-radius: 9px;
  background: rgba(2, 6, 23, 0.38);
}

.plan-limit strong,
.plan-limit span {
  display: block;
}

.plan-limit strong {
  font-size: 16px;
}

.plan-limit span {
  margin-top: 3px;
  color: var(--color-text-soft);
  font-size: 10px;
}

.feature-list {
  margin: 0 0 25px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(122, 139, 190, 0.12);
  display: grid;
  gap: 11px;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.feature-list li::before {
  content: "✓";
  color: #4ade80;
  font-weight: 900;
}

.feature-list li.excluded {
  color: var(--color-text-soft);
}

.feature-list li.excluded::before {
  content: "—";
  color: #64748b;
}

.plan-action {
  width: 100%;
  height: 48px;
  margin-top: auto;
  border: 1px solid rgba(168, 85, 247, 0.38);
  border-radius: 10px;
  color: white;
  background: rgba(124, 58, 237, 0.15);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.popular .plan-action {
  border: 0;
  background: linear-gradient(135deg, var(--color-primary), #4f46e5);
}

.plan-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.checkout-notice,
.current-subscription {
  margin: 0 0 23px;
  padding: 16px 18px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  background: rgba(9, 16, 36, 0.84);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.checkout-notice.success {
  border-color: rgba(34, 197, 94, 0.38);
}

.checkout-notice.warning {
  border-color: rgba(245, 158, 11, 0.42);
  background:
    radial-gradient(circle at 95% 0%, rgba(245, 158, 11, 0.12), transparent 34%),
    rgba(9, 16, 36, 0.88);
  color: #fde68a;
}

.checkout-notice.error {
  border-color: rgba(255, 66, 109, 0.42);
  color: #fecdd3;
}

.checkout-notice p {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  font-size: 13px;
}

.checkout-notice button {
  min-height: 38px;
  margin: 12px 8px 0 0;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--color-primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.checkout-notice button.danger-action {
  background: linear-gradient(135deg, #be123c, #881337);
}

.current-subscription {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.current-subscription strong {
  color: white;
}

.current-subscription span:last-child {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.subscription-cancel-note {
  display: block;
  margin-top: 6px;
  color: #fbbf24;
  font-style: normal;
  font-size: 12px;
}

.subscription-cancel-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 8px;
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.09);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.subscription-cancel-btn:hover {
  border-color: rgba(244, 63, 94, 0.66);
  background: rgba(244, 63, 94, 0.16);
}

.pricing-assurance {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  background: rgba(7, 14, 32, 0.54);
}

.pricing-assurance strong,
.pricing-assurance span {
  display: block;
}

.pricing-assurance strong {
  margin-bottom: 7px;
  font-size: 13px;
}

.pricing-assurance span {
  color: var(--color-text-soft);
  font-size: 11px;
  line-height: 1.55;
}

.pricing-loading {
  grid-column: 1 / -1;
  padding: 80px;
  color: var(--color-text-muted);
  text-align: center;
}

.pricing-footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 80px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-soft);
  font-size: 12px;
}

.pricing-footer a {
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .plans-grid,
  .pricing-assurance {
    grid-template-columns: 1fr;
  }

  .plan-card.popular {
    transform: none;
  }
}

@media (max-width: 620px) {
  .pricing-header {
    padding: 15px 0;
    align-items: flex-start;
  }

  .pricing-header nav a:first-child {
    display: none;
  }

  .pricing-brand strong {
    display: none;
  }

  .pricing-main {
    padding-top: 42px;
  }

  .plan-card {
    min-height: 0;
  }

  .current-subscription {
    display: block;
  }

  .current-subscription span:last-child {
    justify-items: start;
    margin-top: 14px;
  }
}
