/* ============================================================================
   One Hero — shared landing skeleton.
   Structure + components only. Every color/font comes from theme.css via
   CSS custom properties, so AIH and VCH share this file and differ only in
   their token values. Do not hardcode brand colors here.
   ========================================================================== */

@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --maxw: 940px;
  --pad: clamp(18px, 5vw, 40px);
  --radius: 18px;
  --radius-sm: 12px;
  --button-radius: 6px;
  --section-y: clamp(48px, 8vw, 96px);
  /* Motion — one easing + one keyframe drive hero, reveal and stagger */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); /* easeOutQuint: fast, then settles */
  --rise: 10px;            /* default entrance distance, overridden per context */
  --stagger-step: 55ms;    /* cascade step between grid children */
  --stagger-cap: 6;        /* cap: later children share the final delay */
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .charity-refresh-icon { animation: none !important; }
}

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: 0; }
h2 { font-size: 40px; font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
p { overflow-wrap: break-word; }
a { color: inherit; }
strong { font-weight: 700; color: var(--ink-strong, var(--ink)); }
em { font-style: italic; }

/* Fiery highlight for key theses — consistent orange/amber, never red */
.hot {
  font-weight: 800;
  background: var(--hot-grad, linear-gradient(90deg, var(--accent), var(--accent-2)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
a .hot, .hot a { color: inherit; }

/* --- Layout -------------------------------------------------------------- */
.lp { display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-alt { background: var(--bg-alt); }
.section > .wrap > h2 { margin-bottom: 14px; }
.section > .wrap > p { color: var(--muted); max-width: 62ch; }
.section > .wrap > p + p { margin-top: 14px; }

/* Eyebrow — small labelled kicker above headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-eyebrow, var(--font-body));
  font-size: 13px; font-weight: 700; letter-spacing: var(--eyebrow-spacing, 0.08em);
  text-transform: var(--eyebrow-transform, uppercase);
  color: var(--accent-ink, var(--accent)); margin-bottom: 16px;
}

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding: clamp(56px, 11vw, 120px) 0 clamp(40px, 7vw, 72px); overflow: hidden; }
.hero-title {
  font-size: 68px; font-weight: 800; line-height: 1.05;
  letter-spacing: 0;
}
.hero-sub { margin-top: 22px; font-size: 22px; color: var(--muted); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-eyebrow, var(--font-body));
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 15px 26px; border-radius: var(--button-radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--accent-shadow); }
.btn-primary:hover { box-shadow: var(--accent-shadow-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--card); }
.btn-lg { font-size: 18px; padding: 18px 34px; }
.telegram-cta::before {
  content: ""; flex: none; width: 23px; height: 23px; border-radius: 50%;
  background: #229ED9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M5.898 7.687l4.62-1.779c.214-.077.4.052.33.34l-.787 3.706c-.058.263-.214.327-.435.203l-1.2-.885-.579.557c-.064.064-.118.118-.242.118l.086-1.22 2.22-2.006c.097-.086-.021-.134-.15-.048L7.015 8.403l-1.183-.37c-.257-.081-.262-.257.054-.38l.012.034z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .36);
}
.btn-lg.telegram-cta::before { width: 26px; height: 26px; }

/* --- Thesis strip -------------------------------------------------------- */
.strip { padding: clamp(30px, 5vw, 54px) 0; background: var(--strip-bg, var(--bg-alt)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.thesis { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.25; letter-spacing: 0; }

/* --- Next-cohort bar ("Ближайший набор") — cross-landing module ---------- */
.intake { background: var(--accent-tint); border-bottom: 1px solid var(--line); }
.intake > .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-top: 16px; padding-bottom: 16px; }
.intake-label {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-family: var(--font-eyebrow, var(--font-body)); font-size: 13px; font-weight: 700;
  letter-spacing: var(--eyebrow-spacing, 0.08em); text-transform: var(--eyebrow-transform, uppercase);
  color: var(--accent-ink, var(--accent));
}
.intake-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.intake-date { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.15; letter-spacing: 0; color: var(--ink-strong, var(--ink)); }
.intake-note { flex-basis: 100%; margin-top: 2px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }

/* --- Author -------------------------------------------------------------- */
.author p { color: var(--muted); max-width: 66ch; }
.author p + p { margin-top: 14px; }

/* --- Callouts / quotes --------------------------------------------------- */
.callout {
  display: block; margin-top: 20px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
}
.callout + .callout { margin-top: 14px; }
.callout.warn { background: var(--warn-bg, var(--card)); border-color: var(--warn-line, var(--line)); }
.callout.accent { background: var(--accent-tint); border-color: transparent; }
.callout.flexible {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start;
  background: var(--flexible-bg, var(--accent-tint));
  border: 1px dashed var(--flexible-line, var(--accent));
}
.callout-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--flexible-icon-bg, var(--card)); font-size: 24px; line-height: 1;
}
.callout-body { margin: 0; min-width: 0; color: var(--ink); }
.pull {
  font-family: var(--font-display); font-weight: 700; font-size: 30px;
  line-height: 1.28; letter-spacing: 0; padding-left: 20px;
  border-left: 4px solid var(--accent); margin-bottom: 28px;
}

/* --- Figures / images ---------------------------------------------------- */
.figure { margin-top: 24px; }
.figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--figure-shadow, 0 18px 44px rgba(20, 14, 8, 0.10)); }
.figure figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }

/* --- Transformation story — full-width visual, not a card --------------- */
.transformation { background: var(--transformation-bg, var(--bg-alt)); }
.transformation h2 { max-width: 20ch; }
.transformation-visual { margin-top: clamp(28px, 5vw, 44px); }
.transformation-visual > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.transformation-captions { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.transformation-captions > span { padding: 16px 0 0; border-top: 3px solid var(--transformation-before, var(--muted)); color: var(--muted); font-size: 14px; line-height: 1.45; }
.transformation-captions > span:last-child { border-top-color: var(--transformation-after, var(--accent)); }
.transformation-captions strong { display: block; margin-bottom: 3px; color: var(--ink); }

/* --- Difficulty levels slider (real lesson names) ----------------------- */
.levels { margin-top: 28px; }
.levels-eyebrow { font-family: var(--font-eyebrow, var(--font-body)); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink, var(--accent)); margin-bottom: 8px; }
.levels-lead { margin: 0 0 18px; max-width: 32ch; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: 0; color: var(--ink-strong, var(--ink)); }
/* Level switch — tabs (segmented control), not a slider. The .levels-range
   input stays in the DOM for progressive enhancement but is visually hidden;
   the .levels-scale buttons are the real tabs (wired in landing.js). */
.levels-range { display: none; }
.levels-scale { display: flex; gap: 6px; margin-top: 0; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt); }
.levels-scale button { flex: 1; min-width: 0; background: none; border: none; border-radius: 999px; font-family: var(--font-eyebrow, var(--font-body)); font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; padding: 10px 8px; line-height: 1.1; white-space: nowrap; transition: background .18s ease, color .18s ease; }
.levels-scale button:hover { color: var(--ink); }
.levels-scale button.is-on { background: var(--accent); color: var(--on-accent); box-shadow: var(--accent-shadow); }
.levels-scale button:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 2px; }
@media (max-width: 480px) { .levels-scale button { font-size: 12.5px; padding: 9px 4px; letter-spacing: 0; } }
.levels-panel { margin-top: 22px; }
.levels-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.levels-panel-tier { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.levels-panel-sub { font-size: 14px; color: var(--muted); }
.levels-list { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 18px; }
.lesson {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  min-width: 0; min-height: 184px; overflow: hidden; padding: 24px;
  border-radius: var(--radius); background: var(--lesson-card-bg, var(--bg-alt));
  border: 1px solid var(--lesson-card-line, var(--line));
  box-shadow: var(--lesson-card-shadow, none);
}
.lesson::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.lesson-icon {
  display: grid; place-items: center; width: 54px; height: 54px; flex: none;
  border-radius: 15px; background: var(--lesson-icon-bg, var(--accent-tint));
  font-size: 28px; line-height: 1; margin-bottom: 16px;
}
.lesson-title {
  margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 17px;
  font-weight: 700; line-height: 1.38; overflow-wrap: anywhere;
}
.levels-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (min-width: 760px) {
  .levels-list { grid-template-columns: 1fr 1fr; min-height: 420px; }
}
/* JS on: show only the active level; without JS all levels render (visible) */
.js .levels-panel { display: none; }
.js .levels-panel.is-active { display: block; }

/* --- Book mockup (standing cover + copies stacked behind) ---------------- */
.book-mock { position: relative; width: 230px; margin: 6px auto 12px; aspect-ratio: 2 / 3; }
.book-mock .book-behind { position: absolute; top: 3%; width: 88%; height: 94%; border-radius: 4px 8px 8px 4px; box-shadow: 0 16px 30px rgba(20, 10, 0, 0.16); }
.book-mock .book-behind-1 { right: -7%; background: #EDE2D6; transform: rotate(6deg); z-index: 1; }
.book-mock .book-behind-2 { right: 3%; background: #E0D2C2; transform: rotate(-5deg); z-index: 0; }
.book-mock .book-cover {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover;
  border-radius: 2px 8px 8px 2px; box-shadow: 0 28px 46px rgba(20, 10, 0, 0.32);
  transform: perspective(1100px) rotateY(-10deg); transform-origin: left center;
}
.book-mock::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -5%; height: 22px;
  border-radius: 50%; background: radial-gradient(ellipse at center, rgba(20, 10, 0, 0.20), transparent 70%); z-index: 0;
}

/* --- Split: image beside text (two columns) ------------------------------ */
.split { display: grid; gap: clamp(22px, 4vw, 48px); align-items: center; grid-template-columns: 1fr; }
.split-text > h2 { margin-top: 0; }
.split-text > *:last-child { margin-bottom: 0; }
.split-media img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.split-media figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-reverse .split-text { order: 2; }
  .split-reverse .split-media { order: 1; }
}

/* --- Stat strip ---------------------------------------------------------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: 0; color: var(--accent-ink, var(--accent)); }
.stat .label { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.price-stats { margin-bottom: 28px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.pull strong { color: var(--accent-ink, var(--accent)); }

/* --- Numbered steps ------------------------------------------------------ */
.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; margin-top: 26px; }
.steps li {
  position: relative; padding: 18px 20px 18px 66px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--line);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 16px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  background: var(--accent); color: var(--on-accent);
}

/* --- Feature cards ------------------------------------------------------- */
.cards { display: grid; gap: 14px; margin-top: 28px; grid-template-columns: 1fr; }
.card {
  position: relative; padding: 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.card-mark { font-size: 30px; display: block; margin-bottom: 12px; line-height: 1; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15.5px; }
/* Bolder lead-in ("subheading") at the start of a feature card */
.card p > strong:first-child { font-weight: 800; font-size: 1.04em; color: var(--ink); }

/* --- Portfolio artifact grid (VCH signature; harmless if unused) --------- */
.artifacts { display: grid; gap: 12px; margin-top: 28px; grid-template-columns: 1fr; }
.artifact {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line);
}
.artifact h3 { font-size: 17px; margin-bottom: 4px; }
.artifact p { color: var(--muted); font-size: 15px; }

/* --- Mechanic (penalty options) — playful cards -------------------------- */
.mechanic { display: grid; gap: 16px; margin-top: 26px; grid-template-columns: 1fr; }
.pen {
  position: relative; padding: 26px 22px 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pen::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.pen:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--accent-shadow); }
.pen-badge { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; font-size: 30px; line-height: 1; background: var(--accent-tint); margin-bottom: 14px; }
.pen-title { font-family: var(--font-display); font-weight: 800; font-size: 19px; margin-bottom: 6px; }
.pen p { color: var(--muted); font-size: 15px; }

/* --- Charity impact — positive outcome after the penalty mechanic -------- */
.charity-impact { background: var(--charity-bg, var(--bg-alt)); }
.charity-impact-copy { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 12px 56px; align-items: end; }
.charity-impact-copy .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.charity-impact-copy h2 { max-width: 16ch; }
.charity-impact-copy > p:last-child { max-width: 52ch; margin-top: 14px; color: var(--muted); }
.charity-impact-total { margin-top: 64px; border-top: 1px solid var(--charity-line, var(--line)); }
.charity-status-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 18px;
}
.charity-verified {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; color: var(--muted);
  font-size: 12px; font-weight: 600; letter-spacing: 0;
}
.charity-refresh-button {
  display: inline-grid; width: 24px; height: 24px; padding: 0; place-items: center; flex: none;
  border: 1px solid var(--charity-line, var(--line)); border-radius: 50%; color: var(--muted);
  background: transparent; cursor: pointer;
}
.charity-refresh-button[hidden] { display: none; }
.charity-refresh-button:hover { color: var(--charity-ink, var(--ink)); border-color: currentColor; }
.charity-refresh-button:focus-visible { outline: 2px solid var(--charity-ink, var(--accent)); outline-offset: 2px; }
.charity-refresh-button:disabled { cursor: wait; opacity: .65; }
.charity-refresh-icon {
  display: inline-grid; width: 18px; height: 18px; place-items: center; flex: none;
  color: var(--muted); font-size: 18px; line-height: 1;
}
.charity-refresh-button[data-loading] .charity-refresh-icon { animation: charityRefresh .75s ease-out 1; }
.charity-refresh-status { color: var(--muted); font-size: 11px; font-weight: 500; }
[data-charity-state="error"] .charity-refresh-status,
[data-charity-state="stale"] .charity-refresh-status { color: var(--charity-ink, var(--ink)); }
.charity-weekly { display: flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: 12px; }
.charity-weekly strong {
  color: var(--charity-ink, var(--accent-ink)); font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.charity-visual { position: relative; min-height: 390px; overflow: visible; }
.charity-visual-copy { position: relative; z-index: 2; max-width: 850px; padding-top: 26px; pointer-events: none; }
.charity-total {
  color: var(--charity-ink, var(--accent-ink)); font-family: var(--font-display);
  width: 100%; font-size: 96px; font-weight: 800; line-height: .96; letter-spacing: 0;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.charity-total-label { max-width: 47ch; margin-top: 14px; color: var(--ink); font-size: 17px; line-height: 1.45; }
.charity-chart { position: absolute; z-index: 1; inset: 132px 0 0; opacity: .82; }
.charity-chart-plot { position: relative; height: 100%; }
.charity-chart-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.charity-chart-gridline { fill: none; stroke: var(--charity-chart-grid, var(--charity-line, var(--line))); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .45; }
.charity-chart-area { fill: var(--charity-chart-fill, transparent); }
.charity-chart-line { fill: none; stroke: var(--charity-ink, var(--accent-ink)); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.charity-chart-points { position: absolute; inset: 0; list-style: none; }
.charity-chart-points > li { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.charity-chart-point {
  position: absolute; left: 0; top: 0; width: 11px; height: 11px; border: 3px solid var(--charity-bg, var(--bg-alt));
  border-radius: 50%; background: var(--charity-ink, var(--accent-ink)); transform: translate(-50%, -50%);
  outline: none; transition: transform .18s ease, box-shadow .18s ease;
}
.charity-chart-point > span {
  position: absolute; z-index: 3; left: 50%; bottom: calc(100% + 8px); width: max-content;
  color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.2; text-align: center;
  pointer-events: none; transform: translateX(-50%); transition: color .16s ease, transform .16s ease;
}
.charity-chart-point > span strong { display: block; color: var(--charity-ink, var(--ink)); font-size: 11px; }
.charity-chart-point > span small { display: block; margin-top: 2px; color: inherit; font-size: 9px; font-weight: 600; white-space: nowrap; }
.charity-chart-point:hover, .charity-chart-point:focus { transform: translate(-50%, -50%) scale(1.35); box-shadow: 0 0 0 6px var(--charity-pulse, transparent); }
.charity-chart-point:hover > span, .charity-chart-point:focus > span { color: var(--ink); transform: translateX(-50%) scale(1.05); }
.charity-chart-points > li:first-child .charity-chart-point > span { left: -3px; transform: none; text-align: left; }
.charity-chart-points > li:first-child .charity-chart-point:hover > span,
.charity-chart-points > li:first-child .charity-chart-point:focus > span { transform: scale(1.05); transform-origin: left bottom; }
.charity-chart-points > li:last-child .charity-chart-point > span { right: -3px; left: auto; transform: none; text-align: right; }
.charity-chart-points > li:last-child .charity-chart-point:hover > span,
.charity-chart-points > li:last-child .charity-chart-point:focus > span { transform: scale(1.05); transform-origin: right bottom; }
.charity-impact-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 12px; color: var(--muted); font-size: 14px;
}
.charity-impact-meta strong { color: var(--charity-ink, var(--ink)); }
.charity-donors { display: flex; align-items: center; gap: 5px; }
.charity-popover-wrap { position: relative; display: inline-flex; align-items: center; }
.charity-info-trigger,
.charity-popover-close {
  display: inline-grid; place-items: center; border: 1px solid var(--charity-line, var(--line));
  color: var(--muted); background: transparent; font: inherit; cursor: pointer;
}
.charity-info-trigger { width: 21px; height: 21px; border-radius: 50%; font-size: 12px; font-weight: 800; line-height: 1; }
.charity-info-trigger:hover,
.charity-info-trigger[aria-expanded="true"] { color: var(--charity-ink, var(--ink)); border-color: currentColor; background: var(--charity-pulse, transparent); }
.charity-fund-popover {
  position: absolute; z-index: 60; right: -8px; bottom: calc(100% + 12px); width: min(390px, calc(100vw - 32px));
  padding: 18px; border: 1px solid var(--charity-line, var(--line)); border-radius: 8px;
  color: var(--ink); background: var(--charity-tooltip-bg, var(--card)); box-shadow: 0 18px 48px rgba(0, 0, 0, .2);
  font-size: 13px; line-height: 1.35; text-align: left;
}
.charity-fund-popover[hidden] { display: none; }
.charity-popover-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.charity-popover-head > strong { max-width: 25ch; color: var(--ink); font-size: 16px; line-height: 1.2; }
.charity-popover-close { width: 28px; height: 28px; flex: none; border: 0; border-radius: 50%; font-size: 22px; line-height: 1; }
.charity-popover-close:hover { color: var(--ink); background: var(--charity-pulse, rgba(0, 0, 0, .06)); }
.charity-popover-summary { margin-top: 12px; color: var(--muted); }
.charity-popover-summary strong { color: var(--charity-ink, var(--ink)); }
.charity-popover-summary i { margin: 0 3px; font-style: normal; }
.charity-popover-subtitle { margin-top: 5px; color: var(--muted); font-size: 11px; }
.charity-fund-list { display: grid; gap: 11px; margin-top: 16px; list-style: none; }
.charity-fund-list li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding-bottom: 8px; }
.charity-fund-list li > span { display: grid; min-width: 0; }
.charity-fund-list li > span strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.charity-fund-list li small { margin-top: 1px; color: var(--muted); font-size: 10px; }
.charity-fund-list li > b { align-self: start; color: var(--charity-ink, var(--ink)); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.charity-fund-list li > i { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; overflow: hidden; background: var(--charity-line, var(--line)); }
.charity-fund-list li > i::after { display: block; width: var(--fund-share); height: 100%; background: var(--charity-ink, var(--accent)); content: ""; }
.charity-fund-list li.charity-fund-outlier > i::after {
  background: repeating-linear-gradient(90deg, var(--charity-ink, var(--accent)) 0 5px, transparent 5px 8px);
}
.charity-fund-badge {
  display: inline-block; width: fit-content; margin-right: 3px; padding: 1px 5px;
  border: 1px solid var(--charity-line, var(--line)); border-radius: 3px;
  color: var(--charity-ink, var(--ink)); background: var(--charity-pulse, transparent);
  font-size: 9px; font-style: normal; font-weight: 700;
}
.charity-fund-pages { margin-top: 16px; }
.charity-fund-pages .charity-fund-list { margin-top: 0; }
.charity-fund-page[hidden] { display: none; }
.charity-fund-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.charity-fund-pager button {
  display: inline-grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--charity-line, var(--line));
  border-radius: 50%; color: var(--charity-ink, var(--ink)); background: transparent; font: inherit; cursor: pointer;
}
.charity-fund-pager button:hover:not(:disabled) { background: var(--charity-pulse, rgba(0, 0, 0, .06)); }
.charity-fund-pager button:disabled { cursor: default; opacity: .3; }
.charity-fund-page-status { min-width: 38px; color: var(--muted); font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.charity-impact-source { max-width: 78ch; margin-top: 14px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

@keyframes charityRefresh { to { transform: rotate(360deg); } }

/* --- Comparison table ---------------------------------------------------- */
.compare-wrap { margin-top: 24px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; background: var(--card); }
table.compare th, table.compare td { padding: 13px 14px; text-align: center; border-bottom: 1px solid var(--line); }
table.compare thead th { font-family: var(--font-eyebrow, var(--font-body)); font-size: 13px; color: var(--muted); font-weight: 700; }
table.compare tbody th { text-align: left; font-weight: 500; color: var(--ink); font-family: var(--font-body); }
table.compare th.us, table.compare td.us { background: var(--us-col-bg, var(--accent-tint)); }
table.compare thead th.us { color: var(--accent-ink, var(--accent)); }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: none; }
.yes { color: var(--yes, #17a06b); font-weight: 700; }
.no { color: var(--muted); opacity: .55; }

/* --- Price / CTA card ---------------------------------------------------- */
.price {
  padding: clamp(28px, 5vw, 44px); border-radius: var(--radius);
  background: var(--price-bg, var(--card)); border: 1px solid var(--price-line, var(--line-strong));
  box-shadow: var(--price-shadow, none);
}
.price-num { font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: 0; margin: 6px 0 10px; }
.price-note { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.price ul { list-style: none; display: grid; gap: 10px; margin: 0 0 26px; }
.price li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15.5px; }
.price li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

/* --- FAQ accordion ------------------------------------------------------- */
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700;
  font-family: var(--font-display); font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-weight: 700; color: var(--accent); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); font-size: 15.5px; }
.faq .answer ul { padding-left: 1.2em; margin-top: 6px; }

/* Standalone toggle (e.g. schedule) */
details.landing-toggle {
  margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: transparent;
}
details.landing-toggle > summary {
  list-style: none; cursor: pointer; padding: 14px 2px;
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 20px; gap: 10px; align-items: center;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: color .18s ease;
}
details.landing-toggle > summary::-webkit-details-marker { display: none; }
details.landing-toggle > summary:hover { color: var(--ink); }
details.landing-toggle > summary::after {
  content: "⌄"; justify-self: end; font-family: var(--font-body); font-size: 18px;
  font-weight: 600; line-height: 1; color: var(--muted); transition: transform .2s ease;
}
details.landing-toggle[open] > summary::after { transform: rotate(180deg); }
details.landing-toggle .toggle-icon { font-size: 17px; line-height: 1; opacity: .72; }
details.landing-toggle .answer { padding: 0 2px 16px 34px; color: var(--muted); font-size: 14.5px; }
details.landing-toggle .answer ul { padding-left: 1.2em; }

/* Weekly schedule — an editorial timeline, deliberately distinct from cards */
details.schedule-toggle {
  margin-top: 36px; border-top: 3px solid var(--schedule-accent, var(--accent));
  border-bottom-color: var(--schedule-line, var(--line));
  background: var(--schedule-bg, var(--bg-alt));
}
details.schedule-toggle > summary {
  grid-template-columns: 52px minmax(0, 1fr) auto 22px; gap: 16px;
  padding: 20px 22px; color: var(--ink);
}
details.schedule-toggle > summary:hover { color: var(--schedule-accent, var(--accent)); }
details.schedule-toggle > summary::after { color: var(--schedule-accent, var(--accent)); }
details.schedule-toggle .toggle-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--schedule-icon-bg, var(--accent-tint)); font-size: 22px; opacity: 1;
}
.schedule-heading { display: grid; gap: 2px; min-width: 0; }
.schedule-heading strong {
  font-family: var(--font-display); font-size: 18px; line-height: 1.25;
  color: inherit;
}
.schedule-heading small { font-size: 13px; font-weight: 500; color: var(--muted); }
.schedule-preview {
  font-family: var(--font-eyebrow, var(--font-body)); font-size: 12px; font-weight: 700;
  color: var(--schedule-accent, var(--accent)); white-space: nowrap;
}
details.schedule-toggle .schedule-answer { padding: 0 22px 22px; color: var(--ink); font-size: 15px; }
.schedule-flow { list-style: none; border-top: 1px solid var(--schedule-line, var(--line)); }
.schedule-item {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--schedule-line, var(--line));
}
.schedule-item:last-child { border-bottom: 0; }
.schedule-label {
  font-family: var(--font-eyebrow, var(--font-body)); font-size: 12px; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
}
.schedule-cycle {
  display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  gap: 14px; align-items: center;
}
.schedule-event { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; }
.schedule-event > strong {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--font-display); font-size: 13px; color: var(--schedule-on-accent, var(--on-accent));
  background: var(--schedule-accent, var(--accent));
}
.schedule-event > span { display: grid; font-weight: 700; line-height: 1.25; }
.schedule-event small { margin-top: 3px; font-size: 12px; font-weight: 500; color: var(--muted); }
.schedule-event-deadline > strong {
  color: var(--schedule-accent, var(--accent)); background: transparent;
  border: 2px solid var(--schedule-accent, var(--accent));
}
.schedule-arrow { position: relative; height: 2px; background: var(--schedule-line-strong, var(--schedule-accent, var(--accent))); }
.schedule-arrow::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px;
  border-top: 2px solid var(--schedule-accent, var(--accent));
  border-right: 2px solid var(--schedule-accent, var(--accent)); transform: translateY(-50%) rotate(45deg);
}

/* --- Footer -------------------------------------------------------------- */
.footer { padding: 46px 0 120px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.footer a { color: var(--accent-ink, var(--accent)); text-decoration: underline; text-underline-offset: 3px; }

/* --- Sticky mobile CTA --------------------------------------------------- */
.sticky-cta {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 40; display: none; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: var(--button-radius); font-family: var(--font-eyebrow, var(--font-body));
  font-weight: 700; text-decoration: none; background: var(--accent); color: var(--on-accent);
  box-shadow: var(--accent-shadow-hover); width: calc(100% - 32px); max-width: 420px; justify-content: center;
  transition: opacity .25s var(--ease-out);
}

/* --- Skip link + focus --------------------------------------------------- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 60; padding: 10px 16px; background: var(--accent); color: var(--on-accent); border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
a:focus-visible, summary:focus-visible, .btn:focus-visible,
.charity-info-trigger:focus-visible, .charity-popover-close:focus-visible {
  outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; border-radius: 6px;
}

/* --- Motion: one keyframe for hero, reveal and stagger ------------------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(var(--rise, 10px)); }
  to   { opacity: 1; transform: none; }
}

/* --- Scroll reveal ------------------------------------------------------- */
/* Progressive enhancement: the hidden state applies ONLY when JS is present
   (html.js is set inline before render), so content is always visible without
   JS or if the observer never fires. Reduced-motion is neutralized globally. */
.js.js-ready .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js.js-ready .reveal.in { opacity: 1; transform: none; }

/* Stagger grid children — they rise one after another once the section reveals.
   --i (0-based index within the grid) is set by landing.js. Children stay hidden
   under the parent .reveal (opacity:0) until then; `backwards` holds the hidden
   frame only during the delay, then releases — so hover-transforms on
   .card/.pen/.artifact stay untouched. */
.js.js-ready .reveal.in .stats    > *,
.js.js-ready .reveal.in .cards    > *,
.js.js-ready .reveal.in .mechanic > *,
.js.js-ready .reveal.in .steps    > *,
.js.js-ready .reveal.in .artifacts > * {
  --rise: 8px;
  animation: riseIn .5s var(--ease-out) backwards;
  animation-delay: calc(min(var(--i, 0), var(--stagger-cap, 6)) * var(--stagger-step, 55ms));
}

/* Hero entrance on load — soft 4-step cascade. Gated on .js → without JS the
   hero is fully visible. Scoped to .hero so mid-page .hero-cta isn't touched. */
.js .hero .eyebrow,
.js .hero .hero-title,
.js .hero .hero-sub,
.js .hero .hero-cta {
  --rise: 12px;
  animation: riseIn .6s var(--ease-out) backwards;
}
.js .hero .eyebrow    { animation-delay: .05s; }
.js .hero .hero-title { animation-delay: .13s; }
.js .hero .hero-sub   { animation-delay: .24s; }
.js .hero .hero-cta   { animation-delay: .34s; }

/* Emoji badge wink on card/pen hover — compositor-only, reinforces the lift */
.card-mark, .pen-badge { transition: transform .2s var(--ease-out); }
.card:hover .card-mark { transform: scale(1.06); }
.pen:hover  .pen-badge { transform: scale(1.08); }

/* --- Responsive ---------------------------------------------------------- */
@media (min-width: 760px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .artifacts { grid-template-columns: 1fr 1fr; }
  .mechanic { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 759px) {
  body { font-size: 16px; }
  h2 { font-size: 26px; }
  h3 { font-size: 18px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 18px; }
  .thesis { font-size: 20px; }
  .intake-date { font-size: 17px; }
  .pull { font-size: 20px; }
  .levels-lead { font-size: 18px; }
  .stat .num { font-size: 26px; }
  .price-num { font-size: 40px; }
  .callout.flexible { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .callout-icon { width: 42px; height: 42px; border-radius: 10px; font-size: 21px; }
  .lesson { min-height: 0; padding: 20px; }
  .lesson-icon { width: 48px; height: 48px; margin-bottom: 14px; font-size: 25px; }
  .lesson-title { font-size: 16px; }
  .transformation-captions { grid-template-columns: 1fr; gap: 16px; }
  details.schedule-toggle > summary { grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 12px; padding: 18px 16px; }
  details.schedule-toggle .toggle-icon { width: 42px; height: 42px; font-size: 20px; }
  .schedule-heading strong { font-size: 16px; }
  .schedule-preview { grid-column: 2; font-size: 10.5px; white-space: normal; }
  details.schedule-toggle > summary::after { grid-column: 3; grid-row: 1 / span 2; }
  details.schedule-toggle .schedule-answer { padding: 0 16px 18px; }
  .schedule-item { grid-template-columns: 1fr; gap: 10px; padding: 16px 0; }
  .schedule-label { font-size: 11px; }
  .schedule-cycle { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 8px; }
  .schedule-event { grid-template-columns: 38px minmax(0, 1fr); gap: 8px; }
  .schedule-event > strong { width: 36px; height: 36px; font-size: 11px; }
  .schedule-event > span { font-size: 13px; }
  .schedule-event small { font-size: 11px; }
  .charity-impact-copy { grid-template-columns: 1fr; gap: 0; }
  .charity-impact-copy .eyebrow { grid-column: auto; margin-bottom: 16px; }
  .charity-impact-copy > p:last-child { margin-top: 14px; }
  .charity-impact-total { margin-top: 42px; }
  .charity-status-row { align-items: flex-start; flex-direction: column; gap: 9px; }
  .charity-weekly { gap: 6px; }
  .charity-weekly strong { font-size: 15px; }
  .charity-visual { min-height: 336px; }
  .charity-visual-copy { padding-top: 24px; }
  .charity-total { font-size: 42px; }
  .charity-total-label { font-size: 16px; }
  .charity-chart { inset: 132px 0 4px; }
  .charity-chart-point { width: 9px; height: 9px; border-width: 2px; }
  .charity-chart-point > span strong { font-size: 10px; }
  .charity-chart-point > span small { font-size: 8px; }
  .charity-chart-points > li:not(:first-child):not(:nth-child(6)):not(:last-child) .charity-chart-point > span { display: none; }
  .charity-impact-meta { gap: 10px 22px; }
  .charity-fund-popover {
    position: fixed; right: 16px; bottom: max(18px, env(safe-area-inset-bottom)); left: 16px;
    width: auto; max-height: calc(100vh - 36px); overflow-y: auto;
  }
  .sticky-cta { display: flex; }
  .footer { padding-bottom: 96px; }
}

@media (max-width: 420px) {
  .charity-total { font-size: 37px; }
  .charity-total-label { max-width: 30ch; }
}
