/* =====================================================================
   HOME (index.html), everything below the hero. Loads after theme-luxe.css.
   Order: platform wheel > 90-day journey > testimonials > free audit (the
   decisive section) > FAQ > closing band.
   Every section head is centred like the hero; only the content under a head
   may split into columns. Spacing comes from the shared --sp tokens: tight
   between proof and the free audit, roomy before that pair and at the close.
   ===================================================================== */
:root { --fs-body: 1.03125rem; }   /* 16.5px, the body size: the floor for every text line here */

.platforms, .journey, .home-proof, .audit, .home-faq { border-top: 0; }

/* ---------- Platform wheel ---------- */
.platforms { padding-bottom: var(--sp-2); }
.platforms h2.platforms-stat { font-size: var(--fs-h2); line-height: 1.1; }
.platforms h2.platforms-stat span { font-size: clamp(3.4rem, 7.2vw, 6.5rem); }   /* stays under the hero line */
.platforms .lede.platforms-lede { justify-self: center; text-align: center; max-width: 52ch; margin: 0; }

/* Category names: headings in the list, chips once the wheel runs (wheel.js puts a button inside each) */
.wheel-cat { margin: 0; font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; line-height: 1.15; color: var(--ink); }
.wheel-list li, .wheel-readout li { font-size: var(--fs-body); line-height: 1.4; }
.wheel-list .pf, .wheel-readout .pf { color: var(--ink); }                       /* logos in espresso; colour only on the active wedge */
.wheel-list li[data-mark] .pf, .wheel-readout li[data-mark] .pf { filter: grayscale(1) brightness(.45); }

/* Without the wheel (phones, no JS): a compact 2 x 2 list of the same categories */
.platforms:not(.has-wheel) .wheel-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
.platforms:not(.has-wheel) .wheel-list { gap: 8px; margin-top: 12px; }
.platforms:not(.has-wheel) .wheel-list li { align-items: flex-start; }
.platforms:not(.has-wheel) .wheel-list .pf { margin-top: 1px; }
@media (min-width: 900px) { .platforms:not(.has-wheel) .wheel-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* With the wheel */
.has-wheel .wheel-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.has-wheel .wheel-cats > li { display: block; }
.has-wheel .wheel-cat { font: inherit; }
.has-wheel .wheel-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; font: 500 var(--fs-ui)/1 var(--font-body); letter-spacing: .02em; white-space: nowrap; }
.has-wheel .wheel-readout { min-height: 13.5rem; }
.wheel-readout p { font-size: var(--fs-body); color: var(--ink); max-width: 46ch; }
.wheel-readout ul { display: grid; grid-template-rows: repeat(3, auto); grid-auto-flow: column; grid-auto-columns: max-content; gap: 10px 40px; margin-top: 20px; }

@media (min-width: 641px) and (max-width: 959px) {
  .platforms .wrap { row-gap: 32px; }
  .has-wheel .wheel-cats { justify-content: center; }
  .has-wheel .wheel-readout { justify-self: center; width: min(100%, 560px); }
}
@media (min-width: 960px) {
  /* Head and lede centred across the page; chips + readout sit as one group beside the wheel */
  .platforms .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto auto 1fr;
    grid-template-areas: "head head" "lede lede" ". wheel" "cats wheel" "readout wheel" ". wheel";
    row-gap: 0; column-gap: clamp(40px, 5vw, 72px); align-items: start;
  }
  .platforms .lede.platforms-lede { margin-bottom: var(--sp-1); }
  .has-wheel .wheel { grid-row: 3 / 7; width: min(100%, 580px); }
  .has-wheel .wheel-cats { margin-bottom: 28px; }
}
@media (min-width: 960px) and (max-width: 1239px) {
  /* Too narrow for four chips in a row: a deliberate 2 x 2 */
  .has-wheel .wheel-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 400px; }
  .has-wheel .wheel-chip { width: 100%; }
}
@media (max-width: 640px) {
  /* If the wheel started at a wider size and the window shrank, fall back to the list */
  .has-wheel .wheel, .has-wheel .wheel-readout { display: none; }
  .has-wheel .wheel-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .has-wheel .wheel-cat { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; }
  .has-wheel .wheel-chip { all: unset; }
  .has-wheel .wheel-list { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; gap: 8px; margin-top: 12px; }
  .platforms .wrap { row-gap: 28px; }
}

/* ---------- 90-day journey ---------- */
.journey-head { display: block; text-align: center; max-width: var(--w-focus); margin: 0 auto clamp(28px, 4vw, 48px); }
.journey-head h2 { font-size: var(--fs-h2); margin: 0 0 18px; }
.journey-head .lede { max-width: 60ch; margin: 0 auto; }
.journey-card { border: 0; box-shadow: var(--shadow); }   /* one depth cue: soft offset shadow, no hairline */
.journey-chip { color: var(--jrt, var(--paper)); box-shadow: none; }   /* a solid marker on the curve, not a raised card */
.journey-chip span { font-size: var(--fs-body); }
.journey-range { color: var(--ct, var(--paper)); font-size: var(--fs-body); }
.journey-scale { background: linear-gradient(to top, #a9473a, #a0611c 35%, #5c7426 70%, #357540); }
.journey-steps p { font-size: var(--fs-body); }

/* ---------- Testimonials: proof right before the decision ---------- */
.home-proof { padding-top: var(--sp-3); padding-bottom: 0; }
.proof-title { text-align: center; font-size: var(--fs-h2); margin: 0 0 clamp(32px, 4vw, 56px); }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.home-proof .testimonial { margin: 0; border: 0; box-shadow: none; background: var(--grey-1); }
.home-proof .testimonial .headshot { border: 0; background: var(--grey-2); }
.home-proof .testimonial .who { font-size: var(--fs-body); }
.home-proof .testimonial figcaption { padding-right: 52px; }   /* names stay clear of the corner sprig */
.home-proof .testimonial .who b { font-size: var(--fs-body); }
@media (max-width: 1023px) {
  .proof-grid { grid-template-columns: 1fr; max-width: var(--w-prose); margin-inline: auto; }
}
@media (max-width: 640px) {
  .home-proof .testimonial { padding: 40px 24px 28px; gap: 18px; }
  .home-proof .testimonial::before, .home-proof .testimonial::after { width: 64px; height: 64px; }
  .home-proof .testimonial .headshot { width: 96px; }
}

/* ---------- Free audit: the decisive section ---------- */
.audit { padding-top: var(--sp-1); padding-bottom: var(--sp-2); }
#free-audit .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "promise" "booker" "sample"; gap: 28px; }
#free-audit .audit-intro { grid-area: intro; max-width: var(--w-focus); margin: 0 auto clamp(4px, 1.5vw, 20px); gap: 0; }
#free-audit .audit-intro h2 { font-size: var(--fs-h2-xl); margin: 0 0 20px; }
#free-audit .audit-intro .lede { max-width: 58ch; }

/* Ten questions x six engines: the engines the audit checks, named under the promise */
.audit .engines-row { width: 100%; margin-top: clamp(28px, 3vw, 40px); grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 12px; }
.audit .engines-row li { gap: 10px; font-size: var(--fs-body); letter-spacing: 0; color: var(--ink); }
.audit .engines-row .engine-mark { width: 40px; height: 40px; }

/* Reassurance, at body size, beside the calendar */
.audit-promise { grid-area: promise; align-self: start; width: 100%; max-width: var(--w-prose); margin-inline: auto; gap: 12px; font-size: var(--fs-body); line-height: 1.55; }
.audit-promise li { position: relative; padding-left: 28px; }
.audit-promise li::before { position: absolute; left: 0; top: .42em; margin: 0; }
.audit-promise b { font-weight: 600; }

#free-audit [data-booker] { grid-area: booker; max-width: var(--w-focus); margin: 0 auto; }

/* Example audit: cover beside its heading, then the numbered list that matches the cover's pins */
#free-audit .audit-sample { grid-area: sample; align-self: start; width: 100%; border: 0; max-width: var(--w-prose); margin: 0 auto; padding: clamp(20px, 2.4vw, 28px); grid-template-columns: clamp(92px, 9vw, 112px) minmax(0, 1fr); grid-template-areas: "cover head" "list list" "btn btn"; gap: 22px 24px; align-items: center; }
#free-audit .audit-sample > div { display: contents; }
#free-audit .audit-sample .audit-cover { grid-area: cover; }
#free-audit .audit-sample h3 { grid-area: head; margin: 0; }
#free-audit .audit-sample ul { grid-area: list; margin: 0; gap: 12px; font-size: var(--fs-body); line-height: 1.5; }
#free-audit .audit-sample li { padding-left: 42px; min-height: 28px; }
#free-audit .audit-sample li::before, #free-audit .audit-cover .pin {
  content: counter(pin); display: grid; place-items: center; width: 28px; height: 28px; margin: 0;
  border: 1.2px solid var(--ink); border-radius: 4px; background: var(--paper); color: var(--ink);
  font: 500 var(--fs-body)/1 var(--font-body); font-variant-numeric: tabular-nums; vertical-align: baseline;
}
#free-audit .audit-sample li::before { position: absolute; left: 0; top: -1px; }
#free-audit .audit-sample .btn { grid-area: btn; justify-self: start; min-height: 48px; }

@media (min-width: 1280px) {
  /* Booker ~62%, reassurance + example ~38%. Cal shows month + times side by side only when its
     frame is about 790px or wider (the frame bleeds 20px each side), hence the 750px floor */
  #free-audit .wrap {
    grid-template-columns: minmax(750px, 1.6fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "intro intro" "booker promise" "booker sample";
    column-gap: 48px; row-gap: 32px;
  }
  #free-audit [data-booker] { max-width: none; margin: 0; }
  #free-audit .audit-promise, #free-audit .audit-sample { max-width: none; margin: 0; }
  .audit-promise { padding-top: 12px; }
}
@media (max-width: 640px) {
  .audit .engines-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .audit .engines-row .engine-mark { width: 32px; height: 32px; }
}

/* ---------- FAQ: one 880px column ---------- */
.home-faq .wrap { max-width: calc(var(--w-focus) + 2 * var(--gutter)); }
.faq-title { text-align: center; font-size: var(--fs-h2); margin: 0 0 clamp(28px, 4vw, 48px); }
.home-faq .faq details:first-child { border-top: 1px solid var(--line); }
.home-faq .faq details:last-child { border-bottom: 1px solid var(--line); }
.home-faq .faq summary { padding-inline: 0; min-height: 64px; }
.home-faq .faq .a { padding: 0 0 24px; max-width: 68ch; }
.home-faq .faq .a p { font-size: var(--fs-body); color: var(--ink); }

/* ---------- Closing band: the hero line again, with the one button ---------- */
.home-close h2 { font-style: italic; font-weight: 400; max-width: none; line-height: 1.1; margin: 0 0 .55em; }
.home-close h2 .you { font-size: 1.5em; }
.home-close p { margin-top: 0; }
