/* ============================================================
   PRICING PAGE — section styles
   Builds on the homepage system (styles.css + styles-new.css +
   styles-brand-invesp.css). Adds only what the pricing page needs:
   hero trust stats, the "why no price" band, rich program cards,
   the comparison table, the includes grid, the ROI/math block,
   and the "Yes" objection grid. Two layout directions are toggled
   via body.pricing-dir-a / body.pricing-dir-b.
   ============================================================ */

/* ---------- Hero: pricing variant ---------- */
.hero-pricing { min-height: auto; padding: 132px 0 88px; }
.hero-pricing .hero-grid { display: block; }
.hero-pricing .hero-headline { max-width: 16ch; }
.hero-pricing .hero-lede { max-width: 52ch; }

.hero-trust {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 48px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid hsl(220 30% 60% / .28);
  width: fit-content;
}
.hero-trust-item { display: flex; flex-direction: column; gap: 4px; }
.hero-trust-item .num {
  font-family: var(--font-display, inherit);
  font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1;
}
.hero-trust-item .lbl { font-size: 13px; line-height: 1.35; max-width: 16ch; }
@media (max-width: 720px) {
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 26px 36px; }
}

/* ---------- "Why no sticker price" band ---------- */
.why-price {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.25fr;
  gap: 56px;
  align-items: start;
}
.why-price-aside { position: sticky; top: 110px; }
.why-price-body { display: flex; flex-direction: column; gap: 22px; }
.why-price-body p { font-size: 19px; line-height: 1.62; color: hsl(var(--foreground) / .82); margin: 0; }
.why-price-body p strong { color: hsl(var(--foreground)); font-weight: 600; }
.why-price-callout {
  margin-top: 6px;
  padding: 20px 22px;
  border-radius: 14px;
  background: hsl(263 75% 58% / .07);
  border: 1px solid hsl(263 75% 58% / .22);
  font-size: 17px; line-height: 1.55; color: hsl(var(--foreground) / .9);
}
.why-price-callout strong { color: hsl(263 60% 46%); font-weight: 600; }
@media (max-width: 860px) {
  .why-price { grid-template-columns: 1fr; gap: 28px; }
  .why-price-aside { position: static; }
}

/* ---------- Program cards (Direction A) ---------- */
/* The shared "rich" card system (.door-rich, .door-detail, .prog-cards
   subgrid) lives in styles-program-cards.css, loaded by both this page
   and the homepage. Pricing-only card tweaks can go here if needed. */

#programs .section-head { margin-bottom: 52px; }
.cmp-wrap { margin-top: 8px; overflow-x: auto; }
.cmp {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
  font-size: 15px;
}
.cmp th, .cmp td {
  text-align: left;
  padding: 16px 22px;
  vertical-align: top;
  border-bottom: 1px solid hsl(var(--border));
}
.cmp thead th {
  border-bottom: 1.5px solid hsl(var(--border));
  vertical-align: bottom;
}
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp-rowlabel {
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  width: 26%;
}
.cmp-col-name { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: hsl(263 60% 50%); }
.cmp-col-title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-top: 6px; color: hsl(var(--foreground)); }
.cmp td { color: hsl(var(--foreground) / .9); line-height: 1.45; }
.cmp-strong { font-weight: 600; color: hsl(var(--foreground)); }
.cmp-check { display: inline-flex; color: hsl(142 55% 38%); }
.cmp-check svg { display: block; }
/* featured column shading */
.cmp .cmp-col-featured {
  background: hsl(263 75% 58% / .06);
  border-left: 1.5px solid hsl(263 75% 58% / .35);
  border-right: 1.5px solid hsl(263 75% 58% / .35);
}
.cmp thead .cmp-col-featured { border-top: 1.5px solid hsl(263 75% 58% / .45); border-top-left-radius: 12px; border-top-right-radius: 12px; }
.cmp tbody tr:last-child .cmp-col-featured { border-bottom: 1.5px solid hsl(263 75% 58% / .35); border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.cmp-tag {
  display: inline-block; margin-bottom: 8px;
  padding: 3px 10px; border-radius: 9999px;
  background: hsl(263 70% 56%); color: #fff;
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- Includes grid ---------- */
.inc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 8px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  overflow: hidden;
}
.inc-item { background: hsl(var(--card)); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.inc-num { font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 600; color: hsl(263 60% 50%); letter-spacing: .04em; }
.inc-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: hsl(var(--foreground)); }
.inc-body { font-size: 15px; line-height: 1.55; color: hsl(var(--muted-foreground)); margin: 0; }
@media (max-width: 900px) { .inc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .inc-grid { grid-template-columns: 1fr; } }

/* ---------- The Math / ROI block ---------- */
.math-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: stretch;
  margin-top: 8px;
}
.math-quote {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 18px;
  padding: 38px 36px;
  display: flex; flex-direction: column; gap: 22px;
}
.math-quote blockquote {
  margin: 0; font-size: 22px; line-height: 1.4; letter-spacing: -.01em;
  color: hsl(var(--foreground)); font-weight: 500;
}
.math-quote-cite { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.math-quote-logo { height: 30px; width: auto; opacity: .85; }
.math-quote-cite-text { display: flex; flex-direction: column; gap: 1px; }
.math-quote-name { font-weight: 600; font-size: 15px; color: hsl(var(--foreground)); }
.math-quote-role { font-size: 13px; color: hsl(var(--muted-foreground)); }
.math-stats { display: grid; grid-template-rows: repeat(3, 1fr); gap: 16px; }
.math-stat {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  padding: 22px 26px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
}
.math-stat .num {
  font-family: var(--font-display, inherit);
  font-size: 38px; font-weight: 700; letter-spacing: -.02em; line-height: 1;
  color: hsl(142 55% 34%);
}
.math-stat .lbl { font-size: 14px; line-height: 1.4; color: hsl(var(--muted-foreground)); text-align: right; max-width: 22ch; }
.math-close { margin-top: 26px; font-size: 18px; line-height: 1.55; color: hsl(var(--foreground) / .82); max-width: 60ch; }
.math-close strong { color: hsl(var(--foreground)); font-weight: 600; }
@media (max-width: 860px) { .math-grid { grid-template-columns: 1fr; } }

/* ---------- "Yes" block — Basecamp-style running list ---------- */
.yes-wrap {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) 1.18fr;
  gap: 64px;
  align-items: start;
}
.yes-aside { position: sticky; top: 110px; }
.yes-headline {
  font-family: var(--font-display, inherit);
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.05;
  margin: 14px 0 0; color: hsl(var(--foreground)); text-wrap: balance;
}
.yes-headline-yes { color: hsl(230 53% 34%); }
.yes-list { display: flex; flex-direction: column; }
.yes-item {
  display: flex; align-items: center; gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 19px; line-height: 1.35;
}
.yes-item:first-child { padding-top: 0; }
.yes-q { color: hsl(var(--foreground) / .82); }
.yes-q strong { color: hsl(var(--foreground)); font-weight: 600; }
.yes-mark {
  flex-shrink: 0;
  font-family: var(--font-display, inherit);
  font-weight: 800; font-size: 16px; letter-spacing: .01em;
  color: hsl(142 68% 23%);
  background: linear-gradient(101deg, hsl(142 74% 79%), hsl(142 72% 70%));
  padding: 2px 9px 3px; border-radius: 4px;
  transform: rotate(-2.5deg);
}
.yes-check {
  flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: hsl(230 53% 34%); color: #fff;
}
@media (max-width: 860px) {
  .yes-wrap { grid-template-columns: 1fr; gap: 32px; }
  .yes-aside { position: static; }
}

/* ---------- Program rows (Direction B) ---------- */
.prog-rows { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.prog-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 18px;
  overflow: hidden;
}
.prog-row-featured {
  border: 1.5px solid hsl(263 75% 58%);
  box-shadow: 0 0 0 4px hsl(263 75% 58% / .12), 0 24px 48px -28px hsl(263 75% 58% / .4);
}
.prog-row-head {
  padding: 32px 30px;
  background: hsl(263 75% 58% / .04);
  border-right: 1px solid hsl(var(--border));
  display: flex; flex-direction: column; gap: 12px;
}
.prog-row-featured .prog-row-head { background: hsl(263 75% 58% / .08); }
.prog-row-tier { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: hsl(263 60% 50%); }
.prog-row-badge {
  align-self: flex-start; margin-bottom: 2px;
  padding: 4px 12px; border-radius: 9999px;
  background: hsl(263 70% 56%); color: #fff;
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.prog-row-price { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: hsl(var(--foreground)); }
.prog-row-pmeta { font-size: 14px; color: hsl(var(--muted-foreground)); line-height: 1.45; }
.prog-row-head .door-cta { margin-top: 6px; width: 100%; justify-content: center; }
.prog-row-body {
  padding: 32px 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.prog-row-col { display: flex; flex-direction: column; gap: 6px; }
.prog-row-col-k { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.prog-row-col-v { font-size: 15px; line-height: 1.5; color: hsl(var(--foreground) / .9); }
.prog-row-reassure {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 4px; padding-top: 18px;
  border-top: 1px solid hsl(var(--border));
  font-size: 14px; line-height: 1.5; color: hsl(var(--muted-foreground));
}
.prog-row-reassure strong { color: hsl(var(--foreground)); font-weight: 600; }
.prog-row-reassure .door-reassure-check { flex-shrink: 0; }
@media (max-width: 920px) {
  .prog-row { grid-template-columns: 1fr; }
  .prog-row-head { border-right: 0; border-bottom: 1px solid hsl(var(--border)); }
  .prog-row-body { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Direction toggling ---------- */
.prog-a, .prog-b { display: none; }
body.pricing-dir-a .prog-a { display: block; }
body.pricing-dir-b .prog-b { display: block; }
/* In direction B the table leads, framed as the primary chooser */
.cmp-lead-head { margin-bottom: 28px; }

/* ---------- Section eyebrow accent (brand violet on light) ---------- */
.pricing-eyebrow { color: hsl(263 60% 50%); }

/* ---------- Active nav link ---------- */
.nav-links a.is-active { color: #fff; position: relative; }
body.brand-invesp .nav-links a.is-active { color: #fff !important; }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: hsl(263 80% 70%); border-radius: 2px;
}
