/* ============================================================
   HOLDBACK — homepage.css
   Homepage-specific styles (extracted from index.html inline)
   ============================================================ */

.full-price-section {
  background-color: var(--white);
  padding: var(--section-pad);
}
.full-price-inner h2 {
  margin-bottom: var(--card-pad-lg);
}
.full-price-inner p {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-5);
  color: var(--body-text);
}
.full-price-inner p:last-child {
  margin-bottom: 0;
}
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}
@media (max-width: 768px) {
  .pricing-tiers {
    grid-template-columns: 1fr;
  }
  .pricing-tier-featured {
    transform: none;
  }
}
.pricing-tier {
  background: var(--white);
  border-top: 3px solid var(--orange);
  padding: var(--sp-6);
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); /* round 9 — safety hairline so card stays visible on white sections */ }
.pricing-tier-featured {
  border: 2px solid var(--orange);
  border-top: 3px solid var(--orange);
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
/* "MOST POPULAR" badge — promoted from a small overlay pill into a confident
   ribbon that sits ABOVE the card with breathing room. Editorial precedent:
   The Pudding's "Featured" treatment, Stripe's pricing tier headline tags. */
.pricing-tier-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--slate);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: var(--sp-2) 22px var(--sp-2) 22px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--accent-alpha-35);
  /* Downward notch — visually anchors the badge to the card it labels.
     Adds editorial weight without making the ribbon feel decorative. */
}
.pricing-tier-badge::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 7px solid var(--orange);
}
.pricing-tier-name {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}
.pricing-tier-price {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--accent-large);   /* vibrant brand orange — AA Large at 28px bold */
  margin-bottom: var(--sp-3);
}
.pricing-tier-desc {
  font-size: var(--fs-base);
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}

/* ── COMPARISON TABLE ── */
.comparison-section {
  background-color: var(--cream);
  background-image: var(--grad-cream-warm);
  padding: var(--section-pad);
}
.comparison-wrapper {
  margin-top: var(--sp-7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.comparison-scroll {
  overflow-x: auto;  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 660px;
}
.comparison-table thead th {
  background: var(--slate);
  color: var(--white);
  padding: var(--sp-4) 20px;
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.comparison-table thead th.comp-holdback-col {
  background: var(--orange);
  font-size: var(--fs-sm);
}
.comparison-table thead th.comp-feature-col {
  width: 26%;
  color: var(--on-dark-muted);
}
.comparison-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
  vertical-align: top;
  line-height: 1.45;
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-table tbody td:first-child {
  color: var(--slate);
  font-weight: 600;
  font-size: var(--fs-sm);
  background: var(--cream);
}
.comparison-table tbody td.comp-holdback-col {
  background: var(--orange-tint);
  color: var(--orange-darkest);
  font-weight: 600;
  border-left: 3px solid var(--orange);
}
.comparison-table tbody td.comp-no {
  color: var(--ink-2);
}
.comparison-table tbody tr:hover td:not(.comp-holdback-col):not(:first-child) {
  background: var(--cream-hover);
}

/* ── COMPARISON TRUST ROW ── */
.comparison-trust-row {
  display: flex;
  justify-content: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-top: var(--sp-5);
}
.comparison-trust-item {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  font-weight: 500;
}
@media (max-width: 768px) {
  .comparison-trust-row {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* ── COMPACT EMAIL INLINE ──
   Audit 2026-05-08: visual review flagged the section as over-tall
   ("puffy padding wrapper, form on a separate row from content,
   consent text taking a full third row, lots of right-side air").
   Tightened: reduced wrapper padding from --section-pad-sm (40px)
   to a half-step, capped card max-width so it doesn't stretch to
   container edge, and moved consent text into a single line with
   smaller leading. Form remains side-by-side with content on
   ≥768px; stacks below on mobile. */
.email-inline-wrap {
  /* Visual review 2026-05-08: wrapper was cream — adjacent to the
     cream featured-reading band above, breaking the alternating
     rhythm. Switched to white so the band reads as a fresh moment.
     The card inside picks up the warm-cream gradient so it still
     registers as the lead-magnet anchor. */
  background: var(--white);
  background-image: var(--grad-white-soft);
  padding: var(--sp-7) var(--sp-5);
}
.email-inline-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  align-items: center;
  gap: var(--sp-6);
  background: var(--cream);
  background-image: var(--grad-cream-warm);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-6);
  box-shadow: var(--shadow-warm);
  border-top: 3px solid var(--orange);
  max-width: 920px;
  margin: 0 auto;
}
.email-inline-content {
  min-width: 0;
}
.email-inline-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  color: var(--slate);
  margin-bottom: var(--sp-1half);
  line-height: var(--lh-snug);
}
.email-inline-desc {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: var(--lh-base);
  margin: 0;
}
.email-inline-form {
  display: flex;
  gap: var(--sp-2);
  flex-direction: column;
  align-items: stretch;
}
.email-inline-input {
  padding: var(--sp-3) 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--slate);
  background: var(--cream);
  min-width: 200px;
}
/* ============================================================
   FEATURED READING — homepage deep-link grid
   Introduced to fix the "homepage links to 0 deep content pages"
   SEO gap. 6 cards linking to the highest-impact guides and blog
   posts, plus "see all" footer links.
   ============================================================ */
.featured-reading {
  background: var(--surface-raised);
  padding: var(--section-pad);
}
.featured-reading-header {
  max-width: 720px;
  margin: 0 auto var(--sp-7);
  text-align: center;
}
.featured-reading-header h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl-fluid);
  color: var(--ink);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
  margin-top: var(--sp-3);
}
.featured-reading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 960px) {
  .featured-reading-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .featured-reading-grid { grid-template-columns: 1fr; }
}
.featured-reading-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-border);
}
.featured-reading-card:hover {
  border-color: var(--accent-alpha-35);
  box-shadow: var(--shadow-3);
}
.featured-reading-kicker {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--accent-active);  /* elevated from --accent-hover for AA body */
  /* Reserve a single-line slot so wider kickers like "DECISION GUIDE"
     don't push the card heading downward and stagger the row. Keeps
     the entire featured-reading row visually aligned on the eyebrow. */
  display: block;
  min-height: 1.4em;
  line-height: 1.4;
}
.featured-reading-card h3 {
  /* min-height + 3-line clamp keeps title row aligned across cards
     even when one card has a 2-word title and another has 12 words.
     Audit 2026-05-06 #17 — extends card-title clamp system. */
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--ink);
  margin: 0;
  line-height: var(--lh-snug);
  min-height: calc(var(--lh-snug) * 3em);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-reading-card p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  flex-grow: 1;
}
.featured-reading-link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--accent-active);  /* elevated from --accent-hover for AA body */
  margin-top: var(--sp-2);
}
.featured-reading-more {
  text-align: center;
  margin-top: var(--sp-7);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.featured-reading-more a {
  color: var(--accent-active);  /* elevated from --accent-hover for AA body */
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
.featured-reading-more a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  /* .featured-reading padding handled by --section-pad token globally */
  .featured-reading-card { padding: var(--sp-5); }
}

/* .email-inline-btn — bespoke small primary button for the homepage
   email capture. Consolidated styling; identical to the canonical
   `.btn .btn-primary .btn-sm` combo. Keeps its own class name to avoid
   HTML change. New code should use the .btn system. */
.email-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--slate);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--sp-3) 20px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}
.email-inline-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--slate);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}
.email-inline-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.email-inline-success {
  display: none;
  grid-column: 1 / -1;
  color: var(--ok-text);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  margin-top: var(--sp-2);
}
.email-inline-consent {
  grid-column: 1 / -1;
  font-size: var(--fs-2xs);
  color: var(--ink-2);
  line-height: var(--lh-snug);
  margin: 0;
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--border);
}
.email-inline-consent a {
  color: var(--accent-active);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.email-inline-consent a:hover {
  color: var(--slate);
}
@media (max-width: 768px) {
  .email-inline-wrap {
    padding: var(--sp-6) var(--sp-4);
  }
  .email-inline-card {
    grid-template-columns: 1fr;
    text-align: left;
    padding: var(--sp-5);
  }
  .email-inline-form {
    width: 100%;
    justify-content: stretch;
  }
  .email-inline-input {
    width: 100%;
    min-height: 44px;
  }
  .email-inline-btn {
    min-height: 44px;
  }
}

/* ── NAV DEAL ANALYZER LINK ── */
/* ── HERO BRAND DEFINITION ── */
.hero-brand-def {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-2);
  background: var(--surface-on-dark-2);
  border: 1px solid var(--surface-on-dark-4);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-4);
  /* Was 20px — tokenized to --sp-4 (16) so the dictionary box sits
     closer to the headline it frames. Tightens the editorial pairing. */
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}
.hero-brand-term {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  color: var(--white);
  font-style: italic;
}
.hero-brand-meaning {
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
  line-height: 1.4;
}

/* ── HERO TRUST BADGES ── */
.hero-trust-row {
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-4);
  justify-content: center;
}
/* Was inline-flex with gap. Defensive refactor mirrors .cta-trust-badge. */
.hero-trust-badge {
  display: inline-block;
  font-size: var(--fs-sm);
  color: var(--on-dark-dim);
}
.hero-trust-badge .trust-check {
  margin-right: var(--sp-1half);
}
/* .trust-check moved to styles.css (shared across all pages) */

/* ── HERO CARD PRICE LINK ──
   Promoted from a thin-bordered orange link into a proper outline button
   that visually balances the orange "Book My Consultation" CTA below the
   hero card. Reduces visual confusion (was reading as a link, not a CTA). */
.hero-card-price-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1half);
  padding: 10px var(--sp-4);
  background: transparent;
  border: 1.5px solid var(--orange);
  border-radius: var(--radius-sm);
  color: var(--orange-text);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out);
  margin-top: var(--sp-3);
}
.hero-card-price-link::after {
  content: "→";
  transition: transform 180ms var(--ease-out);
}
.hero-card-price-link:hover {
  background: var(--orange);
  color: var(--slate);
  transform: translateY(-1px);
}
.hero-card-price-link:hover::after {
  transform: translateX(3px);
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.stats-bar-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}
.stats-bar-item {
  flex: 1;
  min-width: 180px;
  padding: var(--sp-5) var(--sp-6);
  text-align: center;
  border-right: 1px solid var(--border);
}
.stats-bar-item:last-child {
  border-right: none;
}
.stats-bar-value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  color: var(--ink);
  line-height: 1;
  letter-spacing: var(--ls-snug);
  margin-bottom: var(--sp-1);
}
/* Accent variant — reserved for the "key positive metric" in the stats bar
   (the return multiplier). The remaining stat values use --ink so color
   draws the eye to the single most important number. Legacy class name
   kept for HTML compatibility; was formerly green. */
.stats-bar-value-green {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  color: var(--accent-large);  /* was --accent (2.98:1). fs-2xl=36px allows AA Large. */
  line-height: 1;
  letter-spacing: var(--ls-snug);
  margin-bottom: var(--sp-1);
}
.stats-bar-source {
  font-size: var(--fs-xs);
  color: var(--ink-2);
  margin-top: 2px;
}

/* ── SECTION LABEL (reusable orange uppercase) ── */
/* ── DARK HEADING / PARAGRAPH COMBOS ── */
/* ── PROBLEM SECTION ──
   Audit round-4 2026-05-08: was flat cream — read "documentation"
   not "narrative moment." Now layered: warm cream gradient + subtle
   ember-glow at the top so the section visually opens with brand
   warmth. The problem statement is a key conversion beat; it should
   feel like a punch, not a fact sheet. */
.problem-section {
  background:
    var(--grad-ember-glow),
    var(--grad-cream-warm);
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}
.problem-section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-subtitle-narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px var(--border-subtle);
}
.problem-card {
  background: var(--white);
  /* Was 32×28 (28 off-grid). Normalized to --sp-6 (32) both axes. */
  padding: var(--sp-6);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); /* round 9 — safety hairline so card stays visible on white sections */ }
.problem-card-number {
  /* Audit 2026-05-06 #12: was --fs-xl (28px), same scale as the h3
     below it. Combined with vibrant orange + heading-font, it visually
     outweighed the slate h3 → demoted the heading to a caption.
     Reduced to --fs-lg (22px, -21%) so it reads as a card-eyebrow
     numeral, not the card's primary heading. Switched accent token
     from --accent-large (3.25:1, AA Large only) to --orange-text
     (5.98:1, AA Normal) since 22px is below the 18pt large-text
     threshold for regular-weight contrast. */
  font-size: var(--fs-lg);
  font-family: var(--font-heading);
  color: var(--orange-text);
  margin-bottom: var(--sp-3);
  line-height: 1;
}
.problem-card h3 {
  font-size: var(--fs-md);
  margin-bottom: 10px;
  color: var(--slate);
}
.problem-card p {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 768px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { padding: var(--sp-5); /* 24px — tighter at mobile */ }
}

/* ── CBC QUOTE BOX ── */
.cbc-quote-box {
  background: var(--slate);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  margin-top: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.cbc-quote-content {
  flex: 1;
  min-width: 260px;
}
.cbc-quote-text {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  margin: 0;
  line-height: 1.5;
}
.cbc-source-wrap {
  flex-shrink: 0;
  text-align: center;
}
.cbc-source-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--orange-on-dark);
}
.cbc-source-detail {
  font-size: var(--fs-xs);
  color: var(--on-dark-muted);
  margin-top: 2px;
}

/* ── COMPARISON SECTION ── */
.section-subtitle-narrow-sm {
  max-width: 640px;
  margin: 0 auto;
}
.table-scroll-hint {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  margin-top: 10px;
}
.table-disclaimer {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  margin-top: var(--sp-4);
  opacity: 0.7;
}
.table-cta-wrap {
  text-align: center;
  margin-top: var(--card-pad-lg);
}

/* ── PRICING COMING SOON ── */
.pricing-coming-soon {
  text-align: center;
  margin-top: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  background: var(--cream);
  border-radius: var(--radius-lg);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-coming-soon-text {
  margin: var(--sp-1half) 0 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.link-orange-bold {
  color: var(--orange-text);
  font-weight: 600;
}

/* .cta-trust-row, .cta-trust-badge, .cta-contact-note, .cta-contact-link moved to styles.css (shared across all pages) */

/* ── STATS BAR MOBILE ──
   Audit round-2 2026-05-07 #1a: breakpoint was 640px but the 180px
   min-width on .stats-bar-item caused horizontal overflow in the
   641-767px range (large-phone landscape, small tablet). 4 items ×
   180px = 720px, plus 32px container padding = 752px > 720px
   viewport. Bumped breakpoint to 768px so the override kicks in
   before the overflow window. */
@media (max-width: 768px) {
  .stats-bar-inner {
    display: grid;
    /* minmax(0, 1fr) so the 180px min-width on .stats-bar-item doesn't
       leak through and push the layout viewport at <360px screens. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .stats-bar-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px var(--sp-4);
    min-width: 0;          /* override the 180px desktop min */
  }
  .stats-bar-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  .stats-bar-item:nth-child(n+3) {
    border-bottom: none;
  }
  .stats-bar-value,
  .stats-bar-value-green {
    font-size: var(--fs-xl);
  }
}
@media (max-width: 640px) {
  .hero .hero-content > div:first-child { display: flex; flex-wrap: wrap; }
}
