/* Homepage redesign (2026-11-17). Loaded ONLY by index.html, after site.css + clean.css.
   Public homepage sections only — never the member area, coach portal or login windows. */

/* small grey text on the homepage */
html body main .sub, html body .hero .hero-link, html body main .quiz-cta-note{ color:var(--hp-muted) }
html body .hero .sub{ color:#D4D4D8 }

/* shared section rhythm */
html body main > section.hp-stats{ padding:0; border-bottom:1px solid var(--hp-line) }
html body main > section.hp-pathway{ padding:120px 0 96px }
html body main > section.how{ padding:112px 0; background:var(--hp-alt); border-top:1px solid var(--hp-line); border-bottom:1px solid var(--hp-line) }
html body main > section.hp-assess{ padding:112px 0; background:var(--hp-alt); border-top:1px solid var(--hp-line); border-bottom:1px solid var(--hp-line) }
html body main > section.hp-tiles{ padding:120px 0 }
html body main > section.membership{ padding:112px 0; background:var(--hp-alt); border-top:1px solid var(--hp-line); overflow:visible }
html body main > section.membership::after{ display:none }
html body main > section.hp-news{ padding:72px 0; background:var(--bg); border-top:1px solid var(--hp-line); text-align:left }
html body main h2.display.h-lg{ font-size:clamp(40px,5vw,64px); line-height:1 }

/* 1. one stats row */
html body .hp-stats .big-nums{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; margin:0 auto; padding-top:36px; padding-bottom:36px; text-align:center }
html body .hp-stats .big-nums div{ padding:0; border:0; background:none; border-radius:0 }
html body .hp-stats .big-nums b{ font-size:40px; color:var(--accent) }
html body .hp-stats .big-nums span{ margin-top:8px; font-size:12px; letter-spacing:.14em; color:var(--hp-muted) }

/* 2. pathway: 4 photo cards stepping up */
html body .hp-books{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-top:56px; align-items:end }
html body .hp-book{ display:flex; flex-direction:column; gap:14px; color:var(--white); text-decoration:none }
html body .hp-book img{ display:block; width:100%; height:260px; object-fit:cover; border-radius:16px; transition:transform .25s, filter .25s }
html body .hp-book:nth-child(2) img{ height:320px }
html body .hp-book:nth-child(3) img{ height:380px }
html body .hp-book:nth-child(4) img{ height:440px }
html body .hp-book:hover img{ transform:translateY(-4px); filter:brightness(1.08) }
html body .hp-book-row{ display:flex; justify-content:space-between; align-items:baseline; gap:8px }
html body .hp-book-name{ font-family:var(--font-d); font-weight:700; font-size:clamp(20px,1.8vw,26px); line-height:1.1; text-transform:uppercase }
html body .hp-book-age{ font-size:13px; color:var(--hp-muted); white-space:nowrap }
html body .hp-note{ margin:32px 0 0; font-size:15px; color:var(--hp-muted) }

/* 3. how it works: numbered timeline */
html body .hp-timeline{ position:relative; list-style:none; margin:56px 0 0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px }
html body .hp-timeline::before{ content:""; position:absolute; left:28px; right:28px; top:27px; height:2px; background:var(--hp-line-2) }
html body .hp-step{ position:relative; display:flex; flex-direction:column; gap:20px }
html body .hp-step-num{ width:56px; height:56px; border-radius:999px; display:flex; align-items:center; justify-content:center; background:var(--hp-alt); border:2px solid var(--accent); font-family:var(--font-d); font-weight:700; font-size:22px; color:var(--white) }
html body .hp-step:first-child .hp-step-num{ background:var(--accent); color:#111 }
html body .hp-step h3{ margin:0; font-family:var(--font-d); font-weight:700; font-size:28px; line-height:1; text-transform:uppercase; color:var(--white) }
html body .hp-step p{ margin:0; font-size:15px; color:var(--hp-muted) }

/* 4. app section (the live demo inside stays as it is) */
html body main > section.training{ padding-top:120px; padding-bottom:120px }

/* 5. assessment + sample profile */
html body .hp-split{ display:flex; flex-wrap:wrap; gap:64px; align-items:center }
html body .hp-split-text{ flex:1 1 380px; display:flex; flex-direction:column; gap:24px }
html body .hp-split-text .label, html body .hp-split-text h2{ margin:0 }
html body .hp-line{ margin:0; font-size:17px; color:var(--hp-muted) }
html body .hp-assess .quiz-cta{ margin-top:0 }
html body .hp-profile{ flex:1 1 420px; background:var(--hp-card); border:1px solid var(--hp-line-2); border-radius:20px; padding:32px; display:flex; flex-direction:column; gap:22px }
html body .hp-profile-head{ display:flex; justify-content:space-between; align-items:center; gap:12px }
html body .hp-sample{ display:block; font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--hp-muted) }
html body .hp-profile-name{ display:block; margin-top:6px; font-family:var(--font-d); font-size:26px; line-height:1; text-transform:uppercase; color:var(--white) }
html body .hp-pill{ font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; background:var(--accent); color:#111; padding:8px 14px; border-radius:999px; white-space:nowrap }
html body .hp-bar{ display:flex; flex-direction:column; gap:8px }
html body .hp-bar-row{ display:flex; justify-content:space-between; font-size:13px; color:var(--white) }
html body .hp-bar-row span + span{ color:var(--hp-muted) }
html body .hp-bar-track{ height:8px; background:#222226; border-radius:999px; overflow:hidden }
:root[data-theme="light"] .hp-bar-track{ background:var(--panel-2) }
html body .hp-bar-track i{ display:block; height:100%; border-radius:999px; background:var(--accent) }

/* 6. two photo tiles */
html body .hp-tiles .wrap{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px }
html body .hp-tile{ position:relative; display:flex; align-items:flex-end; height:440px; border-radius:20px; overflow:hidden; background:#1C1C20; text-decoration:none; color:#F5F5F4 }
html body .hp-tile img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 35%; transition:transform .4s }
html body .hp-tile:hover img{ transform:scale(1.03) }
html body .hp-tile::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(14,14,16,0) 40%, rgba(14,14,16,.9) 100%) }
html body .hp-tile-text{ position:relative; z-index:1; padding:32px; display:flex; flex-direction:column; gap:8px }
html body .hp-tile-text b{ font-family:var(--font-d); font-weight:700; font-size:40px; line-height:1; text-transform:uppercase; color:#F5F5F4 }
html body .hp-tile-text span{ font-size:14px; letter-spacing:.1em; text-transform:uppercase; color:#D4D4D8 }

/* 7. pricing: 3 cards + toggle */
html body .membership .membership-head{ margin-bottom:40px }
html body .membership .membership-head .label{ margin:0 0 16px }
html body .membership .membership-head .sub:empty{ display:none }
html body .membership .billing-toggle{ margin:0 auto 40px; background:var(--hp-card); border-color:var(--hp-line-2) }
html body .membership .billing-toggle button{ min-height:44px; padding:0 24px; font-size:13px; letter-spacing:.08em }
html body .membership .billing-toggle button[aria-pressed="true"]{ background:var(--accent); color:#111 }
html body .hp-tiers{ gap:16px }
html body .hp-tiers .tier{ gap:28px; padding:32px; border-radius:20px; background:var(--hp-card); border:1px solid var(--hp-line-2) }
html body .hp-tiers .tier.featured{ border:2px solid var(--accent); background:var(--hp-card) }
html body .hp-tier-top{ display:flex; justify-content:space-between; align-items:center; min-height:28px }
html body .hp-tiers .tier-name{ font-size:13px; font-weight:600; letter-spacing:.16em; color:var(--white) }
html body .hp-tiers .tier.featured .tier-name{ color:var(--white) }
html body .hp-tag{ font-size:11px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; background:var(--accent); color:#111; padding:6px 10px; border-radius:999px }
html body .hp-tiers .tier-price{ margin:0; font-size:56px; line-height:1 }
html body .hp-tiers .tier-price b{ font-weight:700 }
html body .hp-tiers .tier-price small{ font-size:14px; font-weight:400; letter-spacing:0; color:var(--hp-muted); margin-left:6px }
html body .hp-tiers .tier ul{ margin:0; padding:0; border:0; display:flex; flex-direction:column; gap:14px; flex:1 }
html body .hp-tiers .tier li{ display:flex; gap:10px; align-items:center; padding:0; font-size:15px; color:var(--white) }
html body .hp-tiers .tier li::before{ display:none }
html body .hp-tiers .tier li svg{ flex:none; width:18px; height:18px; fill:none; stroke:var(--accent); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round }
html body .hp-tiers .tier li.off{ color:#6B6B72; text-decoration:line-through }
html body .hp-tiers .tier li.off svg{ stroke:currentColor }
html body .hp-tiers .tier .btn{ margin-top:auto; width:100% }
html body .hp-facts{ list-style:none; margin:40px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:12px 32px; justify-content:center; font-size:13px; color:var(--hp-muted) }
html body .membership details.more-info{ margin:16px auto 0; text-align:center; max-width:780px }
html body .membership details.more-info summary{ color:var(--hp-muted); font-size:13px }
html body .membership details.more-info .tier-note{ margin:16px auto 0 }

/* 8. newsletter: one line */
html body .hp-news .wrap{ display:flex; flex-wrap:wrap; gap:24px; align-items:center; justify-content:center }
html body .hp-news h2{ font-size:32px; line-height:1 }
/* the Kit form itself is left exactly as Kit draws it — only the area around it is styled */
html body .hp-news .newsletter-embed{ flex:0 1 460px; max-width:none; margin:0; width:100% }

/* phones + tablets */
@media (max-width:900px){
  html body .hp-books{ grid-template-columns:repeat(2,minmax(0,1fr)) }
  html body .hp-books .hp-book img{ height:220px }
  html body .hp-books .hp-book:nth-child(n+3) img{ height:280px }
  html body .hp-timeline{ grid-template-columns:repeat(2,minmax(0,1fr)) }
  html body .hp-timeline::before{ display:none }
  html body .hp-tiles .wrap{ grid-template-columns:1fr }
  html body .hp-tile{ height:340px }
}
@media (max-width:600px){
  html body main > section.hp-pathway, html body main > section.how, html body main > section.hp-assess,
  html body main > section.hp-tiles, html body main > section.membership, html body main > section.training{ padding-top:72px; padding-bottom:72px }
  html body .hp-stats .big-nums{ grid-template-columns:repeat(2,minmax(0,1fr)) }
  html body .hp-book-name{ font-size:20px }
  html body .hp-timeline{ grid-template-columns:1fr; gap:24px }
  html body .hp-timeline::before{ display:block; left:27px; right:auto; top:28px; bottom:28px; width:2px; height:auto }
  html body .hp-step{ flex-direction:row; flex-wrap:wrap; align-items:center; gap:4px 20px }
  html body .hp-step h3{ flex:1; font-size:24px }
  html body .hp-step p{ flex-basis:100%; padding-left:76px }
  html body .hp-profile{ padding:24px }
  html body .hp-tile-text b{ font-size:32px }
}

/* app section, visitors only (#training.is-demo is set by the page script): heading + one line + button on the left,
   the live demo phone (demo.js, unchanged) on the right; the demo's own long copy is hidden */
html body .hp-app-cta{ display:none }
html body #training.is-demo .hp-app-cta{ display:inline-flex; align-self:flex-start }
html body #training.is-demo > .wrap{ display:flex; flex-wrap:wrap; gap:64px; align-items:center; justify-content:space-between }
html body #training.is-demo .section-head{ flex:1 1 380px; flex-direction:column; align-items:flex-start; gap:24px; margin:0 }
html body #training.is-demo .section-head .label, html body #training.is-demo .section-head h2{ margin:0 }
html body #training.is-demo .section-head h2{ margin-top:16px }
html body #training.is-demo .section-head .sub{ margin:0; font-size:17px }
html body #training.is-demo #appDemo{ flex:0 1 360px; margin:0 }
html body #training.is-demo #appDemo .hpd{ display:block }
html body #training.is-demo #appDemo .hpd-copy{ display:none }
@media (max-width:760px){ html body #training.is-demo > .wrap{ gap:40px } html body #training.is-demo #appDemo{ flex-basis:100% } }


/* logged-in homepage (members): same look as the new sections. The page script builds these boxes; only their look changes here */
html body #training.is-member .section-head{ margin-bottom:32px }
html body .member-go{ padding:32px; border:2px solid var(--accent); border-radius:20px; background:var(--hp-card) }
html body .member-go b{ font-size:28px; line-height:1 }
html body .member-go p{ color:var(--hp-muted); margin-top:8px }
html body .my-plan{ max-width:none; gap:16px }
html body .my-plan-card{ padding:32px; border:2px solid var(--accent); border-radius:20px; background:var(--hp-card) }
html body .my-plan-card small{ font-size:11px; letter-spacing:.14em }
html body .my-plan-card h3{ font-size:40px; line-height:1 }
html body .my-plan-card p{ color:var(--hp-muted) }
html body .my-plan-up{ gap:16px }
html body .my-up{ padding:32px; border:1px solid var(--hp-line-2); border-radius:20px; background:var(--hp-card) }
html body .my-up p, html body .my-plan-note{ color:var(--hp-muted) }
