/* ============================================================
   Fitness Coach Demo — style.css
   Replicates FitnessCoach-Module: forge / momentum / apex templates
   Full CSS variable contract from DESIGN-SYSTEM.md
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Manrope:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: clamp(15px, 0.4vw + 14px, 16.5px);
  -webkit-font-smoothing: antialiased;
}
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
::selection { background: var(--primary); color: var(--on-primary); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.6em; color: var(--ink); letter-spacing: var(--head-track, normal); }
h1 { font-size: clamp(2rem, 3.4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.8vw + 0.9rem, 2.2rem); }
h3 { font-size: clamp(1.12rem, 0.7vw + 0.9rem, 1.35rem); }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: clamp(1.8rem, 3vw, 2.8rem); }
.section-kicker {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--primary); background: var(--primary-light);
  padding: 0.35em 0.95em; border-radius: var(--radius-pill); margin-bottom: 0.9rem;
}
.section-sub { color: var(--ink-soft); margin: 0; }
.section-head-center { margin-inline: auto; text-align: center; }

/* ------------------------------- header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface, var(--bg)) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; color: var(--ink); margin-right: auto; text-transform: var(--head-transform, none); letter-spacing: var(--head-track, normal); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--hero-gradient); color: var(--on-primary); font-size: 1.05rem;
}
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.55rem 0.85rem; border-radius: var(--radius);
  color: var(--ink-soft); font-weight: 500; font-size: 0.95rem;
}
.nav-link:hover { color: var(--primary); background: var(--soft); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--primary); background: var(--primary-light); }
.nav-cta { margin-left: 0.75rem; white-space: nowrap; }
.nav-toggle {
  display: none; place-items: center; width: 44px; height: 44px;
  background: none; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--ink); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* -------------------------------- buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.72em 1.45em; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.95rem; line-height: 1.2; cursor: pointer;
  text-transform: var(--btn-transform, uppercase); letter-spacing: var(--btn-track, 0.04em);
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); color: var(--on-primary); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-ghost { background: var(--soft); color: var(--ink); }
.btn-ghost:hover { background: var(--border); color: var(--ink); }
.btn-sm { padding: 0.45em 1em; font-size: 0.86rem; }
.btn-block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent-light); color: var(--ink-soft);
  border-radius: var(--radius-pill); padding: 0.3em 0.8em;
}

/* --------------------------------- hero ---------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--hero-gradient); color: var(--hero-text); }
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem);
  align-items: center; padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.hero h1 { color: var(--hero-text); text-transform: var(--head-transform, none); }
.hero-copy p { color: var(--hero-text); opacity: 0.92; font-size: 1.06rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; left: -14px; bottom: 22px;
  background: var(--surface, var(--bg)); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 0.7rem 1rem; font-size: 0.85rem; display: flex; gap: 0.55rem; align-items: center;
}
.hero-badge .icon { color: var(--primary); }
.hero-badge svg { color: var(--primary); flex: none; }

/* ------------------------------ stats band ------------------------------- */
.stat-band { background: var(--bg-alt); border-block: 1px solid var(--border); }
.stat-band-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; padding-block: 2.2rem; text-align: center; }
.stat-item strong { display: block; font-family: var(--font-head); font-size: clamp(1.7rem, 2.5vw, 2.4rem); color: var(--primary); text-transform: var(--head-transform, none); }
.stat-item span { color: var(--ink-soft); font-size: 0.88rem; }

/* ------------------------------ sections/cards --------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 1.4rem; }
.card {
  background: var(--surface, var(--bg)); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.card-title { font-size: 1.08rem; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:hover { color: var(--primary); text-decoration: none; }
.card-meta { color: var(--ink-faint); font-size: 0.85rem; }
.card-summary { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }
.card-foot { margin-top: auto; padding-top: 0.8rem; display: flex; align-items: center; justify-content: space-between; }
.price-tag { font-weight: 700; color: var(--primary); font-size: 1.02rem; white-space: nowrap; }
.price-tag small { font-weight: 500; color: var(--ink-faint); font-size: 0.74rem; }
.card-link-label { font-size: 0.88rem; font-weight: 600; color: var(--primary); }

.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.6rem; }
.chip {
  padding: 0.48em 1.15em; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface, var(--bg));
  color: var(--ink-soft); font-size: 0.9rem; font-weight: 500;
}
.chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* --------------------------- before/after slider ------------------------- */
.ba-wrap { position: relative; overflow: hidden; border-radius: var(--radius); user-select: none; touch-action: pan-y; background: var(--soft); }
.ba-wrap img { width: 100%; display: block; pointer-events: none; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--ba-pos, 50%)); }
.ba-after img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--ba-pos, 50%); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18); cursor: ew-resize; }
.ba-handle {
  position: absolute; top: 50%; left: var(--ba-pos, 50%);
  transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--ink); border: 0; cursor: ew-resize;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  font-size: 13px; letter-spacing: -2px;
}
.ba-label { position: absolute; top: 10px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(0,0,0,.55); color: #fff; border-radius: var(--radius-pill); padding: 0.25em 0.75em; pointer-events: none; }
.ba-label-before { left: 10px; }
.ba-label-after { right: 10px; }
.story-card figcaption { padding: 1rem 1.2rem 1.2rem; }
.story-concern { font-size: 0.8rem; color: var(--primary); font-weight: 600; }
.story-result { display: inline-block; margin-top: .5rem; font-size: .82rem; font-weight: 600; color: var(--primary-dark, var(--primary)); background: var(--accent-light); border-radius: var(--radius-pill); padding: .28em .8em; }
.story-toggle { margin-top: .7rem; }
.story-toggle summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--primary); list-style: none; }
.story-toggle summary::-webkit-details-marker { display: none; }

/* ------------------------------ detail pages ------------------------------ */
.detail-hero { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(1.6rem, 3.5vw, 3.4rem); align-items: start; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface, var(--bg)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 1.2rem 0; }
.spec-table th, .spec-table td { text-align: left; padding: 0.65rem 1rem; font-size: 0.92rem; border-top: 1px solid var(--border); }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 0; }
.spec-table th { color: var(--ink-faint); font-weight: 500; width: 42%; }
.rich-body { color: var(--ink-soft); max-width: 800px; }
.rich-body h2 { color: var(--ink); margin-top: 1.6em; }
.rich-body ul, .rich-body ol { padding-left: 1.3em; }
.rich-body li { margin-bottom: 0.4em; }
.rich-body blockquote {
  margin: 1.4em 0; padding: 0.9em 1.3em;
  border-left: 3px solid var(--primary); background: var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink);
}

.gallery-main { border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); margin-bottom: 0.7rem; }
.gallery-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.gallery-thumb { width: 76px; height: 60px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--soft); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb.on { border-color: var(--primary); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }
.breadcrumb .sep { opacity: 0.6; }

/* -------------------------------- testimonials ---------------------------- */
.quote-card { position: relative; background: var(--surface, var(--bg)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; }
.quote-card .icon-quote { position: absolute; top: 1.1rem; right: 1.3rem; color: var(--primary-light); width: 34px; height: 34px; }
.quote-card blockquote { margin: 0 0 1rem; color: var(--ink); font-style: italic; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 0.9rem; display: inline-flex; gap: 1px; }
.quote-by { display: flex; align-items: center; gap: 0.7rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.quote-name { font-weight: 600; font-size: 0.94rem; }
.quote-city { color: var(--ink-faint); font-size: 0.82rem; }

/* ------------------------------ process steps ----------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.step {
  counter-increment: step; position: relative;
  background: var(--surface, var(--bg)); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.3rem;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-size: 2rem; font-weight: 700;
  color: var(--primary); opacity: .85; display: block; margin-bottom: .4rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* ---------------------------------- plans --------------------------------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.4rem; align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface, var(--bg)); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem 1.6rem; transition: transform .18s ease, box-shadow .18s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card.highlight { border-color: var(--primary); box-shadow: var(--shadow-md); }
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--on-primary); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--radius-pill);
  padding: 0.28em 1em; white-space: nowrap;
}
.plan-name { font-size: 1.2rem; margin-bottom: 0.15rem; }
.plan-tagline { color: var(--ink-faint); font-size: 0.88rem; margin-bottom: 1.1rem; }
.plan-price { font-family: var(--font-head); font-size: clamp(1.9rem, 2.4vw, 2.4rem); color: var(--ink); line-height: 1; }
.plan-price small { font-family: var(--font-body); font-size: 0.86rem; color: var(--ink-faint); font-weight: 500; }
.plan-features { list-style: none; margin: 1.2rem 0 1.4rem; padding: 0; display: grid; gap: 0.55rem; flex: 1; align-content: start; }
.plan-features li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.93rem; color: var(--ink-soft); }
.plan-features .check { color: var(--primary); flex: none; margin-top: 3px; }

/* -------------------------------- schedule -------------------------------- */
.sched-day { margin-bottom: 1.6rem; }
.sched-day > h3 {
  font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary);
  border-bottom: 2px solid var(--primary-light); padding-bottom: 0.45rem; margin-bottom: 0.8rem;
}
.slot-row {
  display: grid; grid-template-columns: 76px 1fr auto auto; gap: 1rem; align-items: center;
  background: var(--surface, var(--bg)); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.7rem 1rem; margin-bottom: 0.55rem;
}
.slot-time { font-family: var(--font-head); font-weight: 700; color: var(--primary); white-space: nowrap; }
.slot-title { font-weight: 600; font-size: 0.96rem; }
.slot-kind { font-size: 0.78rem; color: var(--ink-faint); }
.intensity {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius-pill); padding: 0.22em 0.75em; background: var(--soft); color: var(--ink-soft); white-space: nowrap;
}
.intensity.low { background: var(--accent-light); color: var(--ink-soft); }
.intensity.medium { background: var(--primary-light); color: var(--primary-dark, var(--primary)); }
.intensity.high { background: var(--primary); color: var(--on-primary); }

/* ---------------------------------- faq ---------------------------------- */
.faq-list { display: grid; gap: 0.8rem; max-width: 800px; }
.faq-item { background: var(--surface, var(--bg)); border: 1px solid var(--border); border-radius: var(--radius); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1rem 1.3rem;
  font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .2s ease; color: var(--primary); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.faq-answer p:last-child { margin-bottom: 0; }

.notice-banner { background: var(--accent-light); border: 1px dashed var(--accent); border-radius: var(--radius); padding: 0.8rem 1.2rem; font-size: 0.92rem; color: var(--ink-soft); display: flex; gap: 0.6rem; align-items: baseline; }
.notice-banner strong { color: var(--ink); }

/* --------------------------------- forms ---------------------------------- */
.form { display: grid; gap: 1.05rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.form-field { display: grid; gap: 0.35rem; }
.form-label { font-weight: 600; font-size: 0.9rem; }
.form-label .req { color: var(--primary); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.7em 0.95em;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface, var(--bg)); color: var(--ink); font: inherit; font-size: 0.95rem;
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--primary); }
.form-hint { color: var(--ink-faint); font-size: 0.82rem; }
.form-check { display: flex; gap: 0.6rem; align-items: flex-start; }
.form-check input[type="checkbox"] { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.consent-note { font-size: 0.82rem; color: var(--ink-faint); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.flash-ok { background: var(--accent-light); border: 1px solid var(--accent); color: var(--ink); border-radius: var(--radius); padding: 0.85rem 1.1rem; }
.flash-err { background: #fbeaea; border: 1px solid #c0392b; color: #b03024; border-radius: var(--radius); padding: 0.85rem 1.1rem; }

/* ---------------------------------- cta ----------------------------------- */
.cta-band { background: var(--hero-gradient); color: var(--hero-text); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--hero-text); margin-bottom: 0.3rem; }
.cta-band p { margin: 0; opacity: 0.9; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }

/* -------------------------------- footer ---------------------------------- */
.site-footer { background: var(--footer-bg, var(--ink)); color: var(--footer-ink, rgba(255,255,255,.82)); margin-top: clamp(3rem, 6vw, 5rem); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.4rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer-col h3 { color: inherit; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: inherit; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: #fff; text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-size: 1.2rem; color: #fff; margin-bottom: 0.9rem; }
.footer-tagline { font-size: 0.92rem; opacity: 0.8; max-width: 36ch; }
.social-row { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.social-row a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: inherit;
}
.social-row a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.contact-line { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; margin-bottom: 0.6rem; opacity: .9; }
.contact-line .icon { flex: none; margin-top: 3px; opacity: .8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.1rem; font-size: 0.84rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; opacity: 0.75; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* -------------------------------- misc ------------------------------------ */
.pager { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2.4rem; }
.page-btn { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface, var(--bg)); color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; padding-inline: 0.7em; }
.page-btn.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.page-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

.empty {
  text-align: center; padding: 3.5rem 1.5rem;
  border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--ink-faint);
  background: var(--surface, var(--bg));
}

.prose-page { max-width: 780px; }
.article-card .card-meta { display: flex; gap: 0.8rem; align-items: center; }

/* ===================== Theme palettes (CSS variable contract) ===================== */

/* ----------------------------- forge (default) ----------------------------- */
/* Charcoal & signal orange — bold personal-brand energy, condensed caps. */
:root {
  --primary: #ff4d24;
  --primary-dark: #d63a15;
  --primary-light: #3a201a;
  --accent: #ffb02e;
  --accent-light: #3a2f1c;
  --bg: #101114;
  --bg-alt: #17181c;
  --surface: #1c1e23;
  --soft: #262930;
  --border: #30333b;
  --ink: #f2f2ef;
  --ink-soft: #b6b8bd;
  --ink-faint: #7f838d;
  --on-primary: #16130f;
  --font-head: 'Archivo', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #0c0d10 0%, #231512 55%, #7c2412 100%);
  --hero-overlay: rgba(12, 13, 16, 0.5);
  --hero-text: #faf8f6;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  --footer-bg: #0b0c0e;
  --footer-ink: rgba(250, 248, 246, 0.78);
  --head-track: -0.01em;
  --head-transform: uppercase;
  --btn-transform: uppercase;
  --btn-track: 0.08em;
}
html[data-theme="forge"] {
  --primary: #ff4d24;
  --primary-dark: #d63a15;
  --primary-light: #3a201a;
  --accent: #ffb02e;
  --accent-light: #3a2f1c;
  --bg: #101114;
  --bg-alt: #17181c;
  --surface: #1c1e23;
  --soft: #262930;
  --border: #30333b;
  --ink: #f2f2ef;
  --ink-soft: #b6b8bd;
  --ink-faint: #7f838d;
  --on-primary: #16130f;
  --font-head: 'Archivo', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #0c0d10 0%, #231512 55%, #7c2412 100%);
  --hero-overlay: rgba(12, 13, 16, 0.5);
  --hero-text: #faf8f6;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  --footer-bg: #0b0c0e;
  --footer-ink: rgba(250, 248, 246, 0.78);
  --head-track: -0.01em;
  --head-transform: uppercase;
  --btn-transform: uppercase;
  --btn-track: 0.08em;
}

/* ----------------------------- momentum ----------------------------- */
/* White & electric indigo — modern, app-clean, kinetic. */
html[data-theme="momentum"] {
  --primary: #4f46e5;
  --primary-dark: #3d36c4;
  --primary-light: #e6e4fc;
  --accent: #06b6d4;
  --accent-light: #dcf5fa;
  --bg: #fbfbfd;
  --bg-alt: #f2f3fa;
  --surface: #ffffff;
  --soft: #eceef6;
  --border: #dfe1ee;
  --ink: #191a2e;
  --ink-soft: #4d5068;
  --ink-faint: #85879c;
  --on-primary: #ffffff;
  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(140deg, #14163a 0%, #33309c 55%, #6d64f0 100%);
  --hero-overlay: rgba(20, 22, 58, 0.42);
  --hero-text: #f4f4ff;
  --shadow-sm: 0 1px 3px rgba(25, 26, 46, 0.08);
  --shadow-md: 0 6px 20px rgba(25, 26, 46, 0.11);
  --shadow-lg: 0 16px 44px rgba(25, 26, 46, 0.17);
  --footer-bg: #14163a;
  --footer-ink: rgba(244, 244, 255, 0.82);
  --head-track: -0.02em;
  --head-transform: none;
  --btn-transform: none;
  --btn-track: 0.04em;
}

/* ----------------------------- apex ----------------------------- */
/* Ivory, deep navy & brass — premium editorial one-on-one coaching. */
html[data-theme="apex"] {
  --primary: #14324f;
  --primary-dark: #0d2338;
  --primary-light: #e2eaf2;
  --accent: #b98a2e;
  --accent-light: #f4ead2;
  --bg: #faf7f1;
  --bg-alt: #f1ecdf;
  --surface: #ffffff;
  --soft: #eee8da;
  --border: #e0d8c5;
  --ink: #22252a;
  --ink-soft: #565b62;
  --ink-faint: #8d9096;
  --on-primary: #f9f6ef;
  --font-head: 'Marcellus', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(150deg, #0d2338 0%, #1d4062 55%, #3a6a94 100%);
  --hero-overlay: rgba(13, 35, 56, 0.44);
  --hero-text: #f7f3ea;
  --shadow-sm: 0 1px 3px rgba(34, 37, 42, 0.08);
  --shadow-md: 0 6px 20px rgba(34, 37, 42, 0.11);
  --shadow-lg: 0 16px 44px rgba(34, 37, 42, 0.16);
  --footer-bg: #0d2338;
  --footer-ink: rgba(247, 243, 234, 0.82);
  --head-track: 0.02em;
  --head-transform: none;
  --btn-transform: none;
  --btn-track: 0.02em;
}

/* forge accents */
html[data-theme="forge"] .section-kicker { letter-spacing: 0.2em; background: rgba(255, 77, 36, 0.14); color: var(--primary); }
html[data-theme="forge"] h1, html[data-theme="forge"] h2, html[data-theme="forge"] h3 { text-transform: uppercase; font-weight: 800; }
html[data-theme="forge"] .quote-card blockquote { color: var(--ink); }

/* momentum accents */
html[data-theme="momentum"] .section-kicker { letter-spacing: 0.16em; background: var(--accent-light); color: #0b7285; }
html[data-theme="momentum"] h1, html[data-theme="momentum"] h2, html[data-theme="momentum"] h3 { font-weight: 700; }

/* apex accents */
html[data-theme="apex"] .section-kicker { letter-spacing: 0.22em; background: transparent; color: var(--accent); padding-left: 0; padding-right: 0; }
html[data-theme="apex"] .btn { text-transform: none; letter-spacing: 0.02em; font-weight: 600; }
html[data-theme="apex"] .plan-card.highlight { border-color: var(--accent); }
html[data-theme="apex"] .plan-flag { background: var(--accent); color: #fff; }
html[data-theme="apex"] .intensity.high { background: var(--accent); }
html[data-theme="apex"] .stat-item strong { color: var(--primary-dark); font-family: var(--font-head); }

/* ===================== Theme switcher UI ===================== */
.theme-btn {
  position: fixed; right: 18px; bottom: 86px; z-index: 80;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--surface, var(--bg)); color: var(--ink);
  border: 1px solid var(--border); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  transition: transform .15s ease, box-shadow .15s ease;
}
.theme-btn:hover { transform: scale(1.06); box-shadow: var(--shadow-lg); }
.theme-panel {
  position: fixed; right: 18px; bottom: 146px; z-index: 81;
  width: min(340px, calc(100vw - 36px));
  background: var(--surface, var(--bg)); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.2rem;
  display: none; opacity: 0; transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}
.theme-panel.open { display: block; opacity: 1; transform: translateY(0); }
.theme-panel h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.theme-sub { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 0.9rem; }
.theme-card {
  display: flex; align-items: flex-start; gap: 0.8rem; width: 100%;
  text-align: left; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); padding: 0.7rem 0.85rem; margin-bottom: 0.55rem;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.theme-card:hover { border-color: var(--primary); }
.theme-card.active { border-color: var(--primary); background: var(--primary-light); }
.theme-swatches { display: flex; gap: 4px; flex: none; padding-top: 3px; }
.theme-swatches .sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.t-name { font-weight: 700; font-size: 0.95rem; }
.t-desc { font-size: 0.82rem; color: var(--ink-soft); }
.theme-note { font-size: 0.78rem; color: var(--ink-faint); margin: 0.7rem 0 0; padding-top: 0.7rem; border-top: 1px solid var(--border); }

/* -------------------------------- responsive ------------------------------ */
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface, var(--bg)); border-bottom: 1px solid var(--border);
    padding: 0.8rem 1.2rem 1.2rem; box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav-link { padding: 0.8rem 0.6rem; font-size: 1rem; }
  .nav-cta { margin: 0.8rem 0 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .slot-row { grid-template-columns: 64px 1fr auto; }
  .slot-row .intensity { display: none; }
}
@media (max-width: 560px) {
  .theme-panel { right: 12px; bottom: 140px; }
  .wa-float { right: 12px; bottom: 12px; }
  .theme-btn { right: 12px; bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto; }
}
