/* ============================================================
   Attune - home.css
   Styles specific to the homepage sections (header nav, hero,
   enrollment, credibility/evidence, program, commitment, mechanisms, footer).
   Shared shell + primitives live in base.css. As components here
   prove reusable on other pages, promote them into a shared
   components.css.
   ============================================================ */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- header / nav ---------- */
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
}
.nav a.nav-cta { width: auto; padding: .82em 1.7em; color: var(--paper); }
.nav a.nav-cta:hover { color: var(--paper); }
@media (max-width: 860px) {
  .nav a.nav-cta { width: 100%; text-align: center; padding: .85em 1.4em; margin-top: .4rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(4rem, 10vw, 7rem); padding-bottom: 0; }
.hero h1 {
  font-size: clamp(2.5rem, 1.3rem + 4.6vw, 4.6rem); line-height: 1.05;
  margin: 1.4rem 0 1.8rem; max-width: 20em;
}
.hero h1 .turn { display: block; color: var(--accent); }  /* second sentence: teal, on its own line */
.hero .lede { font-size: clamp(1.18rem, 1.05rem + 0.4vw, 1.4rem); color: var(--ink-soft); max-width: 38rem; margin: 0 0 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2rem; }
.hero-actions .btn-primary { display: inline-flex; align-items: center; gap: .5rem; }
/* single-column hero: .hero-inner carries the gap before the wave (was .hero-note's margin) */
.hero-inner { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.hero-outcomes { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); max-width: 54rem; }
.hero-outcomes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem 2rem; }
.hero-outcomes li { font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
.hero-outcomes li { position: relative; padding-left: 1.1rem; }
.hero-outcomes li::before { content: ""; position: absolute; left: 0; top: .5em; width: .55rem; height: .55rem; background: var(--highlight); }
.hero-outcomes li strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: .2rem; }
@media (max-width: 760px) { .hero-outcomes ul { grid-template-columns: 1fr; } }

/* ---------- commitment ("what it asks of you") - takes over the sage band ---------- */
.asks { background: var(--sage); }
.asks .card a { color: var(--accent); }

/* ---------- experience ---------- */
.experience-grid { display: grid; gap: 3rem; grid-template-columns: 0.9fr 1.1fr; align-items: start; }
.list-label { font-size: .9rem; font-weight: 500; letter-spacing: .02em; color: var(--highlight-deep); margin: 0 0 1.4rem; }
.familiar-block { border-left: 2px solid var(--accent-soft); padding-left: clamp(1.4rem, 3vw, 2.2rem); }
.familiar p {
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); line-height: 1.35;
  padding: 1.5rem 0; margin: 0; border-bottom: 1px solid var(--line);
}
.familiar p:first-child { padding-top: 0; }
.familiar p:last-child { border-bottom: 0; }
.familiar p { position: relative; padding-left: 1.6rem; }
.familiar p::before { content: ""; position: absolute; left: 0; top: 1.5rem; transform: translateY(.42em); width: .55rem; height: .55rem; background: var(--highlight); }
.familiar p:first-child::before { top: 0; }
@media (max-width: 860px) { .experience-grid { grid-template-columns: 1fr; } }

/* ---------- mechanism (nested inside the experience section) ---------- */
.mechanism-inner { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.mechanism-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.8rem; }
.mechanism-cards .card {
  padding: 1.8rem 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.mechanism-cards h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--accent-deep); margin: 0 0 .6rem; letter-spacing: -0.02em; }
.mechanism-cards p { font-size: 1rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .mechanism-cards { grid-template-columns: 1fr; } }
.mechanism-inner .mechanism-cards { margin-top: 1.4rem; }

/* ---------- evidence ---------- */
.evidence .col { max-width: 42rem; }
.credibility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 3rem; margin-top: 2.4rem; max-width: 62rem; }
.credibility-item p { font-size: 1.02rem; line-height: 1.65; color: var(--ink-soft); margin: 0; }
.credibility-item .list-label { margin-bottom: .8rem; }
.credibility-item strong { color: var(--ink); font-weight: 600; }
.credibility-item a { color: var(--accent); }
@media (max-width: 760px) { .credibility-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.evidence-stat-row {
  margin: 2.8rem 0 0; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.evidence-stat-item dt { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; line-height: 1.15; color: var(--accent); margin: 0; letter-spacing: -0.02em; }
.evidence-stat-item dd { margin: 0; }
.evidence-stat-item dd:first-of-type { font-size: .98rem; color: var(--ink); margin-top: .4rem; }
.evidence-stat-item .evidence-stat-source { font-size: .84rem; color: var(--muted); margin-top: .3rem; }
.evidence-stat-note { max-width: 42rem; font-size: .92rem; line-height: 1.6; color: var(--muted); margin: 1.6rem 0 2rem; }
@media (max-width: 760px) { .evidence-stat-row { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---------- program ---------- */
.program-head { display: grid; gap: 1.6rem 3rem; grid-template-columns: 0.8fr 1.2fr; align-items: end; }
.program-lede { color: var(--ink-soft); max-width: 32rem; margin: 0; }
@media (max-width: 860px) { .program-head { grid-template-columns: 1fr; } }

/* ---------- program shape ---------- */
.track-tabs { display: flex; gap: .65rem; margin: 3.2rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.track-tabs button {
  padding: .65rem 1.2rem; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink-soft); font: 500 .95rem/1 var(--font-body); cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.track-tabs button:hover { border-color: var(--accent-soft); color: var(--ink); }
.track-tabs button[aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: var(--paper); }

.track-panel[hidden] { display: none; }
.module-track-scroll { margin-top: 2.4rem; overflow-x: auto; scrollbar-width: none; }
.module-track-scroll::-webkit-scrollbar { display: none; }

.module-track {
  list-style: none; margin: 0; padding: .5rem .2rem 1rem;
  display: flex; align-items: flex-start; position: relative; min-width: max-content; gap: 0;
}
.module-track::before {
  content: ""; position: absolute; left: 1.05rem; right: 1.05rem; top: 1.55rem; height: 1px;
  background: var(--line); z-index: 0;
}
.module-node {
  flex: 0 0 7.5rem; display: flex; flex-direction: column; align-items: center;
  text-align: center; position: relative; z-index: 1; padding: 0 .5rem;
}
.module-index {
  width: 2.1rem; height: 2.1rem; border-radius: 50%; flex-shrink: 0;
  background: var(--paper); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: .85rem; color: var(--accent);
}
.module-node-body { margin-top: .7rem; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.module-label { font-size: .85rem; line-height: 1.35; color: var(--ink-soft); }
.module-checkin { color: var(--accent-soft); opacity: .85; }

.module-track[data-count="11"] .module-node { flex-basis: 6.4rem; }
.module-track[data-count="11"] .module-label { font-size: .8rem; }

@media (max-width: 760px) {
  .module-track-scroll { overflow-x: visible; }
  .module-track { flex-direction: column; align-items: flex-start; min-width: 0; gap: 0; }
  .module-track::before { left: 1.05rem; right: auto; top: 1.05rem; bottom: 1.05rem; width: 1px; height: auto; }
  .module-node { flex-direction: row; align-items: flex-start; text-align: left; width: 100%; flex-basis: auto; padding: 0 0 1.5rem; gap: 1rem; }
  .module-node:last-child { padding-bottom: 0; }
  .module-node-body { margin-top: 0; flex-direction: row; align-items: center; justify-content: space-between; flex: 1; }
}

/* ---------- enrollment ---------- */
.enrollment-safety-note { margin: 1rem 0 0; font-size: .92rem; line-height: 1.6; color: var(--muted); max-width: 40rem; }
.enrollment-paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 2.8rem; }
.path-card {
  display: flex; flex-direction: column;
  padding: clamp(1.8rem, 3vw, 2.4rem);
  background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.path-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; line-height: 1.2; color: var(--ink); margin: 1.2rem 0 .8rem; letter-spacing: -0.02em; }
.path-card p:not(.eyebrow):not(.path-meta) { flex: 1; font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 1.6rem; }
.path-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; margin: -0.9rem 0 1.4rem; font-size: .92rem; }
.path-meta .path-evidence { color: var(--muted); }
.path-meta .path-price { font-weight: 600; color: var(--ink); }
.path-choose {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: 0; border-bottom: 1px solid var(--accent);
  padding: .3em 0; font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  color: var(--accent); cursor: pointer; text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
.path-choose:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
.path-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem 1.6rem; }
.path-actions .btn-text { font-size: .95rem; }
@media (max-width: 760px) { .enrollment-paths { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-list { margin-top: 2.8rem; display: flex; flex-direction: column; gap: .9rem; max-width: 44rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 3px; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.5rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 2px; }
.faq-chevron { flex-shrink: 0; color: var(--accent-soft); transition: transform .25s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 1.5rem 1.4rem; }
.faq-answer p { font-size: 1rem; line-height: 1.65; color: var(--ink-soft); margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .faq-chevron { transition: none; }
}

/* ---------- footer ---------- */
.foot-dark {
  background: var(--accent-deep); color: var(--paper);
  border-top: 0;
}
.foot-top { display: grid; gap: 2.6rem; grid-template-columns: 1fr 1.1fr; padding-bottom: 3.1rem; border-bottom: 1px solid color-mix(in srgb, var(--paper) 25%, var(--accent-deep)); }
.foot-dark .brand { font-family: var(--font-display); font-size: 2rem; letter-spacing: -0.02em; margin: 0; }
.foot-dark .tag { margin: 1.1rem 0 0; max-width: 22rem; color: color-mix(in srgb, var(--paper) 85%, transparent); line-height: 1.6; }
.foot-alert { display: flex; align-items: flex-start; gap: .8rem; border-left: 1px solid color-mix(in srgb, var(--paper) 25%, var(--accent-deep)); padding-left: clamp(1.4rem, 3vw, 2.2rem); }
.foot-alert .icon { flex-shrink: 0; margin-top: .2em; color: var(--accent-soft); }
.foot-alert-title { font-weight: 600; margin: 0 0 .5rem; }
.foot-alert p:not(.foot-alert-title) { font-size: 1rem; line-height: 1.65; color: color-mix(in srgb, var(--paper) 75%, transparent); margin: 0; max-width: 32rem; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr; } .foot-alert { border-left: 0; padding-left: 0; } }

.foot-bottom { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; justify-content: space-between; padding-top: 2.2rem; font-size: .95rem; color: color-mix(in srgb, var(--paper) 80%, transparent); }
.foot-bottom a { color: color-mix(in srgb, var(--paper) 75%, transparent); text-underline-offset: 3px; }
.foot-bottom a:hover { color: var(--paper); }
