/* ─── PRICING SECTION ─────────────────────────────────────────
   Matches Defbot homepage vocabulary: dark glass cards, violet
   accents, kicker headings, italic <em> highlights. Sits between
   "Two models. One platform." and the Step 01 register section.
   ──────────────────────────────────────────────────────────── */

.pricing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 160px 0;
  border-top: 1px solid var(--line);
}

/* Soft aurora behind the section — matches .models-aurora */
.pricing-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 60% at 20% 0%, oklch(0.42 0.20 275 / 0.18) 0%, transparent 60%),
    radial-gradient(40% 60% at 85% 50%, oklch(0.42 0.20 285 / 0.12) 0%, transparent 65%),
    radial-gradient(40% 60% at 50% 100%, oklch(0.40 0.18 285 / 0.10) 0%, transparent 70%);
}
.pricing-aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168,144,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,144,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 50% at 50% 30%, black 0%, transparent 75%);
  opacity: 0.45;
}
.pricing > * { position: relative; z-index: 1; }

/* ── Head ──────────────────────────────────────────────────── */
.pricing .head { text-align: center; margin-bottom: 40px; }
.pricing .head .kicker {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  display: inline-block;
  margin-bottom: 18px;
}
.pricing .head h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  margin: 0 0 18px;
  text-wrap: balance;
}
.pricing .head h2 em {
  font-style: normal;
  background: linear-gradient(135deg,
    oklch(0.88 0.10 280) 0%,
    oklch(0.65 0.20 275) 60%,
    oklch(0.78 0.18 280) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.pricing .head p {
  max-width: 56ch;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--fg-2);
  font-weight: 300;
}

/* ── Billing toggle ────────────────────────────────────────── */
.billing-toggle {
  margin: 28px auto 56px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.billing-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.billing-toggle button .save {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--violet-glow);
  background: var(--violet-soft);
  border: 1px solid var(--violet-line);
  padding: 2px 6px;
  border-radius: 999px;
}
.billing-toggle button:hover { color: var(--fg-1); }
.billing-toggle button[aria-pressed="true"] {
  color: var(--fg-1);
  background: var(--violet);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 6px 20px rgba(122,92,255,0.25);
}
.billing-toggle button[aria-pressed="true"] .save {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.25);
  color: white;
}

/* ── Plan grid ─────────────────────────────────────────────── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
  max-width: 1240px;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .plan-grid { grid-template-columns: 1fr; }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%),
    rgba(15,12,28,0.45);
  backdrop-filter: blur(6px);
  transition: transform 280ms cubic-bezier(0.22,1,0.36,1), border-color 280ms ease, box-shadow 280ms ease;
  overflow: hidden;
}
.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(168,144,255,0.05), transparent 30%);
  pointer-events: none;
}
.plan-card:hover {
  transform: translateY(-3px);
  border-color: var(--violet-line);
  box-shadow: 0 18px 60px rgba(122,92,255,0.10);
}

/* Featured (Pro) */
.plan-card.featured {
  border-color: var(--violet-line);
  background:
    linear-gradient(180deg, oklch(0.20 0.10 275 / 0.55) 0%, oklch(0.10 0.04 275 / 0.85) 100%);
  box-shadow: 0 0 0 1px var(--violet-line), 0 20px 80px rgba(122,92,255,0.20);
}
.plan-card.featured::after {
  content: "Most popular";
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  background: var(--violet);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(122,92,255,0.35);
  z-index: 2;
}

/* Plan head — badge + name */
.plan-card .plan-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-card .plan-tag::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--fg-4);
}
.plan-card.featured .plan-tag { color: var(--violet-glow); }
.plan-card.featured .plan-tag::before { background: var(--violet); }

.plan-card h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0 0 8px;
}
.plan-card .plan-blurb {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-1);
  margin: 0 0 22px;
  font-weight: 300;
  min-height: 42px;
}

/* Price block */
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
  font-family: var(--sans);
  color: var(--fg-1);
}
.plan-price .currency {
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-2);
  align-self: flex-start;
  margin-top: 10px;
}
.plan-price .amount {
  font-family: var(--sans);
  font-size: 54px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.plan-price .amount.custom {
  font-family: var(--sans);
  font-size: 38px;
  font-weight: 600;
  font-style: normal;
}
.plan-price .per {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-4);
}
.plan-price-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 22px;
  min-height: 14px;
}
.plan-price-sub b {
  color: var(--violet-glow);
  font-weight: 500;
}

/* CTA */
.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid var(--line-2);
  color: var(--fg-1);
  background: rgba(255,255,255,0.02);
  transition: all 220ms ease;
  margin-bottom: 24px;
}
.plan-cta:hover {
  border-color: var(--line-3);
  background: rgba(255,255,255,0.04);
}
.plan-card.featured .plan-cta {
  background: var(--violet);
  border-color: var(--violet);
  color: white;
  box-shadow: 0 8px 24px rgba(122,92,255,0.30);
}
.plan-card.featured .plan-cta:hover {
  background: oklch(0.70 0.20 275);
}
.plan-cta .arrow {
  transition: transform 200ms ease;
}
.plan-cta:hover .arrow { transform: translateX(3px); }

/* Feature list */
.plan-feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-top: 1px dashed var(--line);
  padding-top: 22px;
}
.plan-feats .feats-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 4px;
}
.plan-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg-2);
}
.plan-feats li.heads-up {
  color: var(--fg-1);
  font-weight: 500;
}
.plan-feats li .check {
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--violet-soft);
  border: 1px solid var(--violet-line);
  display: grid;
  place-items: center;
  margin-top: 2px;
  color: var(--violet-glow);
}
.plan-feats li .check svg { width: 9px; height: 9px; }
.plan-card.featured .plan-feats li .check {
  background: var(--violet);
  border-color: var(--violet);
  color: white;
}
.plan-feats li b {
  font-weight: 500;
  color: var(--fg-1);
}

/* ── Compare table ─────────────────────────────────────────── */
.pricing-compare {
  max-width: 1240px;
  margin: 64px auto 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15,12,28,0.45);
  overflow: hidden;
}
.pricing-compare > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
  transition: color 200ms ease, background 200ms ease;
}
.pricing-compare > summary::-webkit-details-marker { display: none; }
.pricing-compare > summary:hover { color: var(--fg-1); background: rgba(255,255,255,0.02); }
.pricing-compare > summary .chev {
  display: inline-block;
  transition: transform 240ms ease;
  color: var(--violet);
}
.pricing-compare[open] > summary .chev { transform: rotate(180deg); }

.compare-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}
.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--fg-2);
}
.compare-table th,
.compare-table td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.compare-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  background: rgba(255,255,255,0.02);
  font-weight: 500;
  white-space: nowrap;
}
.compare-table thead th.col-featured {
  color: var(--violet-glow);
  background: oklch(0.40 0.20 275 / 0.10);
  position: relative;
}
.compare-table tbody td.col-featured {
  background: oklch(0.40 0.20 275 / 0.04);
}
.compare-table tbody th {
  font-weight: 400;
  color: var(--fg-2);
  background: transparent;
  white-space: nowrap;
}
.compare-table tbody tr:hover td,
.compare-table tbody tr:hover th { background: rgba(255,255,255,0.015); }
.compare-table tbody tr:hover td.col-featured { background: oklch(0.40 0.20 275 / 0.07); }

.compare-table .y {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--violet-soft);
  border: 1px solid var(--violet-line);
  color: var(--violet-glow);
}
.compare-table .y svg { width: 10px; height: 10px; }
.compare-table .n {
  display: inline-flex;
  width: 14px; height: 1px;
  background: var(--line-3);
  vertical-align: middle;
}
.compare-table .word {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-1);
}
.compare-table .word.dim {
  color: var(--fg-3);
}
.compare-table tr.section-head th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-4);
  background: rgba(255,255,255,0.015);
  padding-top: 18px;
  padding-bottom: 10px;
}

/* ── Footnote ─────────────────────────────────────────────── */
.pricing-note {
  text-align: center;
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-1);
}
.pricing-note a {
  color: var(--violet-glow);
  text-decoration: none;
  border-bottom: 1px dashed var(--violet-line);
}

@media (max-width: 720px) {
  .pricing { padding: 96px 0; }
  .plan-price .amount { font-size: 46px; }
}
