/* ==========================================================================
   The Honest Miles V2: homepage only (public/index.php)
   Builds on styles.css tokens and components.css. Every motion here is
   switched off under prefers-reduced-motion at the bottom of the file.
   ========================================================================== */

/* ---- Hero -------------------------------------------------------------- */
.home-hero .display { max-width: 11ch; }
.home-hero__tagline {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--hm-sand);
  font-variation-settings: 'opsz' 144;
}
.home-hero .lede { max-width: 54ch; }
.home-hero__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 22px 0 0;
  font-size: 0.92rem;
}
.home-hero__price-note { color: var(--hm-on-dark-soft); font-weight: 700; }
.home-hero__countdown { flex: none; }
.home-hero__countdown .countdown-caption { color: var(--hm-sand); }
.home-hero { padding-top: clamp(96px, 10vw, 140px); }
@media (min-width: 1100px) {
  .home-hero > .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 56px;
    align-items: end;
  }
  .home-hero .hero-mesh__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin: 0 0 6px;
    padding: 0 0 0 36px;
    border-top: 0;
    border-left: 1px solid rgba(245, 239, 224, 0.16);
  }
  .home-hero .hero-mesh__meta { flex-direction: column; margin-top: 0; gap: 12px; }
}
#music-icon { display: inline-flex; }
#music-icon svg { width: 18px; height: 18px; }

/* ---- Marquee ------------------------------------------------------------ */
.home-marquee-clip { position: relative; z-index: 2; overflow-x: clip; padding: 8px 0; margin: -26px 0; }
.home-marquee { position: relative; }
.home-marquee--questions .marquee__group > * { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); }

/* ---- Manifesto + pull quote + stats ----------------------------------- */
.home-manifesto { padding-top: calc(var(--section-y) + 24px); }
.home-pullquote {
  position: relative;
  margin: 0 0 clamp(40px, 6vw, 72px);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--hm-paper);
  border: 1px solid var(--hm-line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.home-pullquote::before {
  content: '\201C';
  position: absolute;
  top: 0.02em;
  right: 0.12em;
  font-family: var(--font-display);
  font-size: clamp(9rem, 6rem + 12vw, 16rem);
  line-height: 1;
  color: var(--hm-sun);
  opacity: 0.16;
  pointer-events: none;
}
.home-pullquote blockquote { margin: 0; }
.home-pullquote blockquote p {
  position: relative;
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--hm-ink);
}
.home-pullquote em { font-style: italic; font-weight: 400; color: var(--hm-sage); }
.home-pullquote figcaption {
  position: relative;
  max-width: 56ch;
  margin-top: 20px;
  color: var(--hm-ink-soft);
  font-size: var(--fs-lg);
}

/* ---- Course timeline ---------------------------------------------------- */
h3.timeline__kicker { font-family: var(--font-body); line-height: 1.4; }
.home-center { margin-top: 36px; text-align: center; }

/* ---- Bento -------------------------------------------------------------- */
.home-bento__finish { min-height: 460px; }
.home-bento__finish::before {
  background: linear-gradient(180deg, rgba(38, 48, 29, 0.05) 0%, rgba(38, 48, 29, 0.45) 38%, rgba(38, 48, 29, 0.92) 78%);
}
@media (max-width: 560px) {
  .home-bento__finish { padding-top: 200px; }
  .home-bento__finish::before { background: linear-gradient(180deg, rgba(38, 48, 29, 0) 0%, rgba(38, 48, 29, 0.7) 32%, rgba(38, 48, 29, 0.94) 55%); }
}
.home-bento__title { font-size: var(--fs-h2) !important; line-height: 1; letter-spacing: -0.03em; }
.home-bento__finish p:not(.eyebrow) { max-width: 60ch; }
.home-bento__medal { justify-content: flex-start; }
.home-bento__medal h3 { color: var(--hm-cream); }
.home-bento__medal-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 18px 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.6);
  transition: transform 600ms var(--ease-out);
}
.home-bento__medal:hover .home-bento__medal-img { transform: scale(1.02); }
.home-bento__medal p:last-child { margin-top: auto; font-size: 0.98rem; }
.home-station { justify-content: flex-start; }
.home-station .icon-badge { margin-bottom: 22px; }
.home-station__kicker {
  margin: 0 0 6px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--hm-sage-deep);
}
.bento-tile--sun .icon-badge { background: rgba(44, 42, 36, 0.1); color: var(--hm-ink); }
.bento-tile--sun .home-station__kicker { color: var(--hm-ink); }
.home-bento__resources { min-height: 0; justify-content: center; }
.home-bento__resources p {
  max-width: 60ch;
  margin: 0 auto !important;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.4;
  color: var(--hm-ink) !important;
}

/* ---- Honest Card + Check-In (dark) ------------------------------------ */
.home-honest__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.home-honest .headline { color: var(--hm-cream); }
.home-honest__text { color: var(--hm-on-dark-soft); margin: 0 0 28px; max-width: 52ch; }
.home-prompts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.home-prompts li {
  position: relative;
  padding: 18px 22px 18px 26px;
  border-radius: var(--radius);
  background: rgba(245, 239, 224, 0.06);
  border: 1px solid rgba(245, 239, 224, 0.14);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.35;
  color: var(--hm-cream);
  transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.home-prompts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: var(--hm-sun);
}
.home-prompts li:hover { background: rgba(245, 239, 224, 0.1); transform: translateX(4px); }
.home-honest__checkin {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: rgba(245, 239, 224, 0.05);
  border: 1px solid rgba(245, 239, 224, 0.12);
}
.home-wall {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.home-wall__col {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.16);
  text-align: center;
}
.home-wall__col--left { background: var(--hm-cream); color: var(--hm-ink); }
.home-wall__col h3 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hm-sand);
}
.home-wall__col--left h3 { color: var(--hm-sage-deep); }
.home-wall__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.home-wall__col li {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.3;
  color: var(--hm-on-dark-soft);
}
.home-wall__col--left li { color: var(--hm-sage-deep); font-weight: 500; }
.home-wall__arrow { color: var(--hm-sun); display: inline-flex; }
.home-wall__arrow svg { width: 26px; height: 26px; }
.home-wall__note { margin: 18px 0 0; font-size: 0.9rem; color: var(--hm-on-dark-soft); }
.home-wall__note a { color: var(--hm-cream); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.home-cards { margin-top: clamp(48px, 6vw, 80px); }
.home-cards__title { margin: 0 0 24px; font-size: var(--fs-h3); color: var(--hm-cream); }
@media (max-width: 900px) {
  .home-honest__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .home-wall { grid-template-columns: 1fr; }
  .home-wall__arrow { justify-content: center; transform: rotate(90deg); }
}

/* ---- Pricing ------------------------------------------------------------ */
.home-pricing__grid { max-width: 980px; margin: 0 auto; padding-top: 14px; }
.home-pricing .price-card--featured .price-card__amount { color: var(--hm-cream); }
.home-pricing__left {
  margin: -6px 0 18px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--hm-sand);
}
.home-pricing__save {
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--hm-line-strong);
  font-weight: 800;
  color: var(--hm-sage-deep);
}
.home-pricing .price-card--muted { justify-content: flex-start; align-self: start; }
.home-pricing .price-card--muted .price-card__note { margin-bottom: 18px; }
.home-capacity { max-width: 980px; margin: 36px auto 0; }
.home-capacity__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 10px;
  color: var(--hm-ink-soft);
  font-weight: 700;
}
.home-capacity__row strong { color: var(--hm-ink); font-size: 1.1rem; }
.home-capacity__bar {
  height: 10px;
  border-radius: 999px;
  background: var(--hm-sage-tint);
  overflow: hidden;
}
.home-capacity__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hm-sage), var(--hm-sun));
  transform-origin: left;
  transform: scaleX(var(--fill, 0));
  transition: transform 1200ms var(--ease-out);
}
html.js .home-capacity[data-reveal]:not(.is-revealed) .home-capacity__bar span { transform: scaleX(0); }
.home-pricing__fine { margin: 28px 0 0; text-align: center; font-size: 0.88rem; color: var(--hm-ink-soft); }
.home-pricing__fine a { color: var(--hm-sage-deep); font-weight: 700; text-decoration: underline; }

/* ---- Get involved ------------------------------------------------------- */
.home-involve__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.home-involve__card { display: flex; flex-direction: column; }
.home-involve__card > p { margin-bottom: 18px; }
.home-involve__cta { margin-top: auto; padding-top: 8px; }
.home-involve__badge-dark { background: rgba(245, 239, 224, 0.1); color: var(--hm-sand); }
.home-involve .spotlight-card--dark h3 { color: var(--hm-cream); }
.home-nextrun {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--hm-sage-tint);
}
.home-nextrun__label {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hm-sage-deep);
}
.home-nextrun__title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--hm-ink); }
.home-nextrun__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 0.88rem; font-weight: 700; color: var(--hm-ink-soft); }
.home-nextrun__meta span { display: inline-flex; align-items: center; gap: 6px; }
.home-nextrun__meta svg { width: 16px; height: 16px; color: var(--hm-sage-deep); flex: none; }
.home-chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.home-chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--hm-paper);
  border: 1px solid var(--hm-line);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--hm-sage-deep);
}
.home-chips--dark li { background: rgba(245, 239, 224, 0.08); border-color: rgba(245, 239, 224, 0.16); color: var(--hm-cream); }
.home-chips--dark li span { color: var(--hm-sand); font-weight: 600; }
.home-sponsors { margin-top: clamp(48px, 6vw, 72px); }
.home-sponsors .eyebrow { margin-bottom: 22px; }
@media (max-width: 1100px) {
  .home-involve__grid { grid-template-columns: 1fr 1fr; }
  .home-involve__grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .home-involve__grid { grid-template-columns: 1fr; }
}

/* ---- FAQ ---------------------------------------------------------------- */
.faq-answer a { color: var(--hm-sage-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.home-faq__more { margin: 32px 0 0; text-align: center; color: var(--hm-ink-soft); }
.home-faq__more a { color: var(--hm-sage-deep); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Closing CTA -------------------------------------------------------- */
.home-final { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(96px, 12vw, 176px) 0; }
.home-final .hero-mesh__bg { opacity: 0.8; }
.home-final__inner { position: relative; z-index: 3; }
.home-final__title { color: var(--hm-cream); }
.home-final .lede { margin: 24px auto 32px; }
.home-final__cta { justify-content: center; }
.home-final__meta { margin: 24px 0 0; font-weight: 700; color: var(--hm-on-dark-soft); }

/* ---- Small screens ------------------------------------------------------ */
@media (max-width: 560px) {
  .home-hero .btn-row .btn { flex: 1 1 100%; }
  .home-hero__countdown { width: 100%; }
  .home-hero__countdown .countdown { display: grid; width: 100%; }
  .home-bento__finish { min-height: 420px; }
  .home-final__cta .btn { flex: 1 1 100%; }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .home-bento__medal-img, .home-prompts li, .home-capacity__bar span { transition: none !important; }
  .home-bento__medal:hover .home-bento__medal-img, .home-prompts li:hover { transform: none; }
  html.js .home-capacity[data-reveal]:not(.is-revealed) .home-capacity__bar span { transform: scaleX(var(--fill, 0)); }
}
