/* ── Pricing page ───────────────────────────────────────────────────────── */

/* Plan grid sits between hero and comparison table */
.pricing-plans-section {
  padding-block: clamp(48px, 7vw, 76px);
  background:
    radial-gradient(circle at 72% 8%, rgba(58, 125, 93, 0.09), transparent 30%),
    var(--cream);
  border-bottom: 1px solid var(--border);
}

.pricing-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

/* Plan card */
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  min-width: 0;
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.plan-card.plan-highlight {
  border-color: var(--green);
  box-shadow: 0 1px 0 var(--border), 0 8px 24px -16px rgba(58, 125, 93, 0.4);
}

body[data-page-kind="pricing"] .legal-article {
  max-width: 920px;
}

body[data-page-kind="pricing"] .legal-section {
  padding-top: clamp(64px, 8vw, 94px);
}

.plan-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plan-name {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.plan-tagline {
  font-size: 13px;
  color: var(--muted);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 0 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.plan-price-value {
  font-family: var(--sans);
  font-size: 38px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.plan-price-meta {
  font-size: 13.5px;
  color: var(--muted);
}

.plan-trial {
  display: inline-block;
  align-self: flex-start;
  background: var(--green-l);
  color: var(--green-d);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Two-tier Plus pricing (yearly featured + monthly). Reuses the same
   palette tokens and pill pattern as .plan-price / .plan-trial. */
.plan-tiers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.plan-tier {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-tier-featured {
  border-color: var(--green);
  background: var(--green-l);
  position: relative;
  margin-top: 9px;
}

.plan-tier-badge {
  position: absolute;
  top: -11px;
  left: 16px;
  background: var(--green);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}

.plan-tier-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.plan-tier-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.plan-tier-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.plan-tier-strike {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
}

.plan-tier-now {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.plan-tier-featured .plan-tier-now {
  color: var(--green-d);
}

.plan-tier-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.plan-tier-discount {
  align-self: flex-start;
  background: var(--green);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.plan-bullets {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.plan-bullets li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
}

.plan-bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  top: -2px;
  flex-shrink: 0;
}

.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  text-decoration: none;
  margin-top: 4px;
  transition: background 120ms ease;
}

.plan-card.plan-highlight .plan-cta {
  background: var(--green);
}

.plan-card.plan-highlight .plan-cta:hover {
  background: var(--green-d);
}

.plan-cta:hover {
  background: #1c1814;
}

/* ── Comparison table ─────────────────────────────────────────────────── */

.cmp-table-wrap {
  margin: 16px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cmp-table thead th {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  padding: 14px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.cmp-table thead th.cmp-feature-col {
  text-align: left;
}

.cmp-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  line-height: 1.45;
}

.cmp-table tbody td {
  text-align: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
  font-size: 13.5px;
}

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

.cmp-table tbody tr:nth-child(even) th,
.cmp-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--surface-2) 45%, var(--surface));
}

.cmp-yes {
  color: var(--green);
  font-size: 18px;
  line-height: 1;
}

.cmp-no {
  color: var(--border);
  font-size: 18px;
  line-height: 1;
}

.cmp-text {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--green-l);
  color: var(--green-d);
  font-size: 12.5px;
  font-weight: 600;
}

/* ── Trust strip below plan cards ──────────────────────────────────────── */

.pricing-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin: 18px auto 0;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 760px;
  /* Sits inside .pricing-plans-grid (2-col grid). Span both columns so
     it appears as a single full-width reassurance row under the cards. */
  grid-column: 1 / -1;
}

.pricing-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ── Pricing fineprint ─────────────────────────────────────────────────── */

.pricing-fineprint {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pricing-fineprint p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.pricing-fineprint p:last-child {
  margin-bottom: 0;
}

/* Small screens: stack plan cards and keep the comparison visible without
   making people discover a horizontally clipped value column. */
@media (max-width: 540px) {
  .pricing-plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-tier-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .plan-tier-price { justify-content: flex-start; }

  .cmp-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .cmp-table,
  .cmp-table tbody,
  .cmp-table tr,
  .cmp-table th,
  .cmp-table td { display: block; }

  .cmp-table { min-width: 0; table-layout: auto; font-size: 14px; }

  .cmp-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .cmp-table tbody { display: grid; gap: 12px; }

  .cmp-table tbody tr {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
  }

  .cmp-table tbody th,
  .cmp-table tbody td,
  .cmp-table tbody tr:nth-child(even) th,
  .cmp-table tbody tr:nth-child(even) td { background: transparent; }

  .cmp-table tbody th {
    padding: 15px 16px 13px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    line-height: 1.4;
  }

  .cmp-table tbody td {
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    text-align: right;
  }

  .cmp-table tbody td + td { border-top: 1px solid var(--border); }

  .cmp-table tbody td::before {
    content: attr(data-label) ":";
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 700;
    text-align: left;
  }

  .cmp-text { justify-self: end; padding-inline: 8px; font-size: 13px; }
  .cmp-yes,
  .cmp-no { justify-self: end; }
}
