/* ─────────────────────────────────────────────
   Pricing Page — LunacyDev Professional Netrunner
   ───────────────────────────────────────────── */

/* Product color tokens — required by body[data-product] overrides in site.css */
body[data-product="pricing"] {
  --product-primary: var(--ld-primary);
  --product-secondary: var(--ld-accent);
}

.pricing-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

/* ── Hero ── */

.pricing-hero {
  text-align: center;
  padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 36px);
}

.pricing-hero__title {
  margin: 18px 0 0;
  font-family: var(--ld-font-display);
  font-size: clamp(36px, 7vw, 64px);
  font-weight: var(--ld-weight-display-strong);
  letter-spacing: var(--ld-track-display-tight);
  line-height: 0.98;
}

.pricing-hero__title span {
  display: inline;
  background: linear-gradient(120deg, var(--ld-primary), #B8E8FF 46%, var(--ld-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pricing-hero__subtitle {
  max-width: 540px;
  margin: 18px auto 0;
  color: var(--ld-text-secondary);
  font-size: 18px;
}

/* ── Toggle ── */

.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 28px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--ld-border);
  background: rgba(6, 8, 20, 0.7);
  width: fit-content;
}

.pricing-toggle__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ld-text-secondary);
  font-family: var(--ld-font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 160ms var(--ease-enter),
    background 160ms var(--ease-enter),
    box-shadow 160ms var(--ease-enter);
}

.pricing-toggle__btn:hover {
  color: var(--ld-text);
}

.pricing-toggle__btn--active {
  color: var(--ld-text);
  background: rgba(79, 209, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(79, 209, 255, 0.18),
    0 4px 12px rgba(4, 10, 20, 0.28);
}

.pricing-toggle__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.22), rgba(0, 212, 170, 0.1));
  border: 1px solid rgba(0, 212, 170, 0.3);
  color: var(--ld-success);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ── Plans Grid ── */

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

/* ── Card ── */

.pricing-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--ld-radius-lg);
  border: 1px solid var(--ld-border);
  background: linear-gradient(180deg, rgba(12, 14, 30, 0.82), rgba(10, 12, 28, 0.96));
  box-shadow: var(--ld-shadow-soft);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  padding: clamp(24px, 3vw, 32px);
  display: grid;
  gap: 24px;
  transition:
    transform 220ms var(--ease-enter),
    border-color 220ms var(--ease-enter),
    box-shadow 220ms var(--ease-enter);
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(79, 209, 255, 0.04), transparent 36%);
}

.pricing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(100, 140, 255, 0.08);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 48px rgba(4, 8, 18, 0.36),
    0 0 0 1px rgba(79, 209, 255, 0.08);
}

/* Featured card (Pro) */

.pricing-card--featured {
  border-color: rgba(123, 107, 245, 0.38);
  background:
    linear-gradient(180deg, rgba(17, 20, 42, 0.94), rgba(10, 12, 32, 0.98));
  box-shadow:
    0 24px 56px rgba(123, 107, 245, 0.12),
    0 0 0 1px rgba(123, 107, 245, 0.1);
}

.pricing-card--featured::before {
  background:
    radial-gradient(circle at top left, rgba(123, 107, 245, 0.1), transparent 42%),
    radial-gradient(circle at bottom right, rgba(79, 209, 255, 0.06), transparent 38%);
}

.pricing-card--featured:hover {
  border-color: rgba(123, 107, 245, 0.52);
  box-shadow:
    0 28px 64px rgba(123, 107, 245, 0.18),
    0 0 0 1px rgba(123, 107, 245, 0.14);
}

/* Badge (Most Popular) */

.pricing-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(135deg, var(--ld-secondary), rgba(123, 107, 245, 0.8));
  color: #fff;
  font-family: var(--ld-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(123, 107, 245, 0.28);
}

/* Card header */

.pricing-card__header {
  display: grid;
  gap: 8px;
}

.pricing-card__tier {
  font-family: var(--ld-font-display);
  font-size: 22px;
  font-weight: var(--ld-weight-display);
  letter-spacing: var(--ld-track-display-soft);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-card__amount {
  font-family: var(--ld-font-display);
  font-size: clamp(38px, 5vw, 52px);
  font-weight: var(--ld-weight-display-strong);
  letter-spacing: var(--ld-track-display-tight);
  line-height: 1;
  background: linear-gradient(135deg, var(--ld-text) 30%, var(--ld-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pricing-card--featured .pricing-card__amount {
  background: linear-gradient(135deg, #fff 20%, var(--ld-primary) 60%, var(--ld-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pricing-card__period {
  color: var(--ld-text-muted);
  font-size: 16px;
  font-weight: 500;
}

.pricing-card__tagline {
  margin: 0;
  color: var(--ld-text-secondary);
  font-size: 14px;
}

/* Features list */

.pricing-card__features {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card__feature {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  color: var(--ld-text);
}

.pricing-card__feature--muted {
  color: var(--ld-text-muted);
}

.pricing-card__check {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.16);
  border: 1px solid rgba(0, 212, 170, 0.32);
  position: relative;
}

.pricing-card__check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid var(--ld-success);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pricing-card__dash {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(95, 122, 154, 0.12);
  border: 1px solid rgba(95, 122, 154, 0.2);
  position: relative;
}

.pricing-card__dash::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 8px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--ld-text-muted);
}

/* CTA */

.pricing-card__action {
  margin-top: auto;
}

.pricing-card__cta {
  width: 100%;
  text-align: center;
}

/* ── Compare Table ── */

.pricing-compare {
  margin-top: clamp(40px, 6vw, 72px);
}

.pricing-compare__title {
  text-align: center;
  font-family: var(--ld-font-display);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: var(--ld-weight-display-strong);
  letter-spacing: var(--ld-track-display);
  margin: 0 0 24px;
}

.pricing-compare__table-wrap {
  overflow-x: auto;
  border-radius: var(--ld-radius-lg);
  border: 1px solid var(--ld-border);
  background: linear-gradient(180deg, rgba(12, 14, 30, 0.82), rgba(10, 12, 28, 0.96));
  box-shadow: var(--ld-shadow-soft);
}

.pricing-compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pricing-compare__table th,
.pricing-compare__table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(79, 209, 255, 0.06);
}

.pricing-compare__table th {
  font-family: var(--ld-font-display);
  font-weight: var(--ld-weight-display);
  font-size: 15px;
  color: var(--ld-text);
  background: rgba(6, 10, 22, 0.5);
}

.pricing-compare__table td {
  color: var(--ld-text-secondary);
}

.pricing-compare__feature-col {
  text-align: left !important;
}

.pricing-compare__table td:first-child {
  text-align: left;
  color: var(--ld-text);
  font-weight: 500;
}

.pricing-compare__highlight {
  background: rgba(123, 107, 245, 0.06);
}

.pricing-compare__table tbody tr:last-child td,
.pricing-compare__table tbody tr:last-child th {
  border-bottom: none;
}

.pricing-check-icon {
  color: var(--ld-success);
  font-weight: 700;
}

.pricing-dash-icon {
  color: var(--ld-text-muted);
}

/* ── FAQ ── */

.pricing-faq {
  margin-top: clamp(40px, 6vw, 72px);
}

.pricing-faq__title {
  text-align: center;
  font-family: var(--ld-font-display);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: var(--ld-weight-display-strong);
  letter-spacing: var(--ld-track-display);
  margin: 0 0 24px;
}

.pricing-faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pricing-faq__item {
  border-radius: var(--ld-radius-md);
  border: 1px solid rgba(79, 209, 255, 0.08);
  background: rgba(6, 14, 27, 0.34);
  padding: 20px;
  transition: border-color 160ms var(--ease-enter);
}

.pricing-faq__item[open] {
  border-color: rgba(79, 209, 255, 0.16);
}

.pricing-faq__question {
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  color: var(--ld-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pricing-faq__question::-webkit-details-marker {
  display: none;
}

.pricing-faq__question::marker {
  content: "";
}

.pricing-faq__question::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(79, 209, 255, 0.1);
  border: 1px solid rgba(79, 209, 255, 0.16);
  color: var(--ld-primary);
  font-family: var(--ld-font-mono);
  font-size: 14px;
  font-weight: 700;
  transition: transform 200ms var(--ease-enter);
}

.pricing-faq__item[open] .pricing-faq__question::after {
  content: "−";
  transform: rotate(180deg);
}

.pricing-faq__answer {
  margin: 12px 0 0;
  color: var(--ld-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ── CTA Band ── */

.pricing-cta-band {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--ld-radius-xl);
  border: 1px solid var(--ld-border-strong);
  background:
    linear-gradient(135deg, rgba(8, 16, 31, 0.98), rgba(11, 22, 43, 0.88)),
    radial-gradient(circle at top left, rgba(79, 209, 255, 0.14), transparent 44%);
  box-shadow: var(--ld-shadow);
  text-align: center;
}

.pricing-cta-band__title {
  margin: 0;
  font-family: var(--ld-font-display);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: var(--ld-weight-display-strong);
  letter-spacing: var(--ld-track-display);
}

.pricing-cta-band__copy {
  margin: 12px auto 0;
  max-width: 480px;
  color: var(--ld-text-secondary);
  font-size: 16px;
}

.pricing-cta-band__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-card--featured {
    order: -1;
  }

  .pricing-faq__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pricing-hero__title {
    font-size: clamp(28px, 9vw, 44px);
  }

  .pricing-toggle {
    width: calc(100% - 16px);
  }

  .pricing-toggle__btn {
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
  }

  .pricing-compare__table th,
  .pricing-compare__table td {
    padding: 10px 12px;
    font-size: 13px;
  }
}
