/* ==========================================================================
   English with Miss Tursynay
   Design tokens lifted from the Claude Design prototype.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:          #F7F2EA;
  --cream:       #F6F1E9;
  --cream-2:     #FBF7F1;
  --cream-3:     #FDFAF5;
  --sand:        #EFE7DA;
  --sand-2:      #E6DCCC;
  --dark:        #2E2822;

  /* Ink */
  --ink:         #2E2822;
  --ink-2:       #4A413A;
  --ink-3:       #5C5248;
  --ink-4:       #3E362E;
  --muted:       #8A7F73;

  /* Accent */
  --accent:      #8A755C;
  --accent-soft: #C9B393;
  --accent-line: #C4B6A2;

  /* On dark */
  --on-dark:     #F2EBE0;
  --on-dark-2:   #E1D7C8;
  --on-dark-3:   #C4B8A8;
  --on-dark-4:   #9B8D7C;
  --on-dark-acc: #A9967E;

  /* Hairlines */
  --line:        rgba(46, 40, 34, 0.12);
  --line-strong: rgba(46, 40, 34, 0.2);

  /* Type */
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Manrope', system-ui, -apple-system, sans-serif;
  --script: 'Marck Script', cursive;

  /* Layout */
  --wrap: 1240px;
  --gut:  24px;
}

/* --------------------------------------------------------------- base ---- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(60% 45% at 78% 0%, rgba(201, 179, 147, 0.28), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
button { font-family: inherit; }
img { max-width: 100%; }

[hidden] { display: none !important; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* The hero chips are positioned outside their frame on purpose; clip them
   at the page edge instead of letting the document scroll sideways. */
#landing { width: 100%; overflow-x: hidden; }

/* Visually hidden, still read by screen readers */
.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------- animations ---- */

@keyframes tickerRun { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes revealIn   { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes revealLine { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

/* Scroll-linked reveals where supported (Chrome/Edge) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
      animation: revealIn 0.01s linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
    [data-reveal]:nth-child(2)    { animation-range: entry 6% entry 88%; }
    [data-reveal]:nth-child(3)    { animation-range: entry 12% entry 94%; }
    [data-reveal]:nth-child(4)    { animation-range: entry 16% entry 98%; }
    [data-reveal]:nth-child(n+5)  { animation-range: entry 20% entry 100%; }
    [data-reveal="line"]          { animation-name: revealLine; }
  }
}

/* IntersectionObserver fallback (Safari/Firefox). `js-io` is set by app.js
   only when animation-timeline is unsupported, so the two never stack. */
.js-io [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js-io [data-reveal].is-in { animation: revealIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .js-io [data-reveal="line"].is-in { animation-name: revealLine; }
}
@media (prefers-reduced-motion: reduce) {
  .js-io [data-reveal] { opacity: 1; }
}

/* ------------------------------------------------------------ headings --- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent-line);
  flex: 0 0 auto;
}
.eyebrow--dark { color: var(--on-dark-acc); }
.eyebrow--dark::before { background: #6B5C4C; }
.eyebrow--warm::before { background: #BCAC95; }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.28;
  margin: 0;
  text-wrap: pretty;
}
.script { font-family: var(--script); color: var(--accent); }
.script--soft { color: var(--accent-soft); }

.lede {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0;
  max-width: 380px;
}

/* Two-column "heading left, lede right" band used by several sections */
.band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: end;
  margin-top: 22px;
}

/* ------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 999px;
  padding: 17px 26px;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
}

.btn--dark {
  background: linear-gradient(160deg, #3B3129, #241F1A);
  color: var(--cream);
  box-shadow: 0 14px 28px -14px rgba(46, 40, 34, 0.75);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn--dark:hover { background: #463B31; color: var(--cream); }

.btn--ghost {
  gap: 12px;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--ink);
  transition: border-color 0.25s, background 0.25s;
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(46, 40, 34, 0.04); }
.btn--ghost .dot-o {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  flex: 0 0 auto;
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
  padding: 17px 28px;
  transition: background 0.25s;
}
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--outline-light {
  gap: 12px;
  border: 1px solid rgba(246, 241, 233, 0.3);
  background: none;
  color: var(--on-dark);
  padding: 17px 28px;
  transition: border-color 0.25s, color 0.25s;
}
.btn--outline-light:hover { border-color: var(--cream); color: #fff; }

.btn--sm { padding: 12px 20px; font-size: 14px; gap: 10px; }

/* Underlined text link / button */
.link-u {
  display: inline-block;
  background: none;
  border: 0;
  padding: 0 0 3px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.link-u:hover { color: var(--accent); border-color: var(--accent); }
.link-u--accent { color: var(--accent); border-color: var(--accent); }
.link-u--accent:hover { color: var(--ink); border-color: var(--ink); }

/* Pill toggle groups (language, pricing tabs) */
.pills {
  display: flex;
  border-radius: 999px;
  padding: 3px;
  background: rgba(46, 40, 34, 0.05);
  border: 1px solid var(--line);
}
.pills button {
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.pills button[aria-pressed="true"] { background: var(--dark); color: var(--cream); }

.tabs {
  display: flex;
  border-radius: 999px;
  padding: 5px;
  background: rgba(246, 241, 233, 0.08);
  border: 1px solid rgba(246, 241, 233, 0.14);
}
.tabs button {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  white-space: nowrap;
  background: transparent;
  color: var(--on-dark-3);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.tabs button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }

/* -------------------------------------------------------------- header --- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 233, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(46, 40, 34, 0.08);
}
.hdr__in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gut);
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo { color: var(--ink); line-height: 1.05; flex: 0 0 auto; }
.logo:hover { color: var(--ink); }
.logo__pre {
  display: block;
  font-family: var(--script);
  font-size: 15px;
  color: var(--accent);
}
.logo__name {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: clamp(14px, 1.8vw, 26px);
  margin-left: auto;
  font-size: 14px;
  flex-wrap: nowrap;
}
.nav a { color: var(--ink-2); white-space: nowrap; }
.nav a:hover { color: var(--ink); }

.hdr__side {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(46, 40, 34, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  flex: 0 0 auto;
  transition: border-color 0.2s, color 0.2s;
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }

@media (max-width: 1080px) {
  .nav a:nth-child(1), .nav a:nth-child(3) { display: none; }
}
@media (max-width: 820px) { .nav { display: none; } }

/* Below ~600px the logo + language pills + icons + CTA no longer fit on one
   row at full size, so tighten them rather than let the page scroll sideways. */
@media (max-width: 600px) {
  .hdr__in { gap: 12px; padding: 12px 16px; }
  .logo__pre  { font-size: 13px; }
  .logo__name { font-size: 19px; }
  .hdr__side { gap: 8px; }
  .pills { padding: 2px; }
  .pills button { padding: 6px 9px; font-size: 11px; }
  .icon-btn { width: 34px; height: 34px; }
  .btn--sm { padding: 10px 15px; font-size: 13px; gap: 7px; }
}
@media (max-width: 520px) { .js-ig { display: none; } }
@media (max-width: 400px) {
  .js-wa { display: none; }
  .btn--sm { padding: 10px 13px; }
}

/* ---------------------------------------------------------------- hero --- */

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; padding: 56px 0 8px; }
.hero__copy { min-width: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(46, 40, 34, 0.16);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--ink-2);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1.14;
  margin: 26px 0 0;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.hero h1 .script { font-size: 1.12em; }
.hero__lede { max-width: 460px; font-size: 16px; line-height: 1.65; color: var(--ink-3); margin: 26px 0 0; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

.hero__art { position: relative; min-width: 0; }
.hero__arc {
  position: absolute;
  top: 26px; right: 20px;
  width: min(430px, 86%);
  aspect-ratio: 515 / 800;
  border: 1px solid rgba(138, 117, 92, 0.42);
  border-radius: 280px 280px 18px 18px;
  pointer-events: none;
}
.hero__frame {
  position: relative;
  border-radius: 280px 280px 18px 18px;
  overflow: hidden;
  background: var(--sand-2);
  aspect-ratio: 515 / 800;
  max-width: 450px;
  margin-left: auto;
  box-shadow: 0 40px 80px -40px rgba(46, 40, 34, 0.55);
}
.hero__frame img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  display: block;
  background: var(--sand-2);
}
.chip {
  position: absolute;
  background: var(--cream-2);
  box-shadow: 0 18px 40px rgba(46, 40, 34, 0.12);
}
.chip--top {
  top: 6%; right: -14px;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 9px;
}
.chip--top .dot { width: 6px; height: 6px; }
.chip--score {
  bottom: 34px; left: -6px;
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: 0 22px 50px rgba(46, 40, 34, 0.16);
}
.chip--score b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1; font-weight: 400; }
.chip--score span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* --------------------------------------------------------------- stats --- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; padding: 44px 0 52px; }
.stat { border-left: 1px solid rgba(46, 40, 34, 0.14); padding-left: 20px; }
.stat b { display: block; font-family: var(--serif); font-size: 42px; line-height: 1; font-weight: 400; }
.stat span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.stat--script { font-family: var(--script); font-size: 22px; line-height: 1.35; color: var(--accent); }

/* --------------------------------------------------------------- video --- */

.video { padding-bottom: 76px; }
.video__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 44px; align-items: center; }
.video h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.28; margin: 20px 0 0; }
.video p { font-size: 15px; line-height: 1.65; color: var(--ink-3); margin: 20px 0 0; max-width: 400px; }
.player {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--dark);
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 60px rgba(46, 40, 34, 0.18);
}
.player__btn {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  padding: 0; border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player__cue {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(246, 241, 233, 0.94);
  color: var(--ink);
  border-radius: 999px;
  padding: 15px 26px;
  font-size: 15px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}
.player__cue i { font-style: normal; font-size: 13px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* -------------------------------------------------------------- ticker --- */

.ticker { background: var(--dark); color: #E9E0D3; overflow: hidden; padding: 18px 0; }
.ticker__row { display: flex; width: max-content; animation: tickerRun 34s linear infinite; }
.ticker__grp {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--serif);
  font-size: 19px;
  white-space: nowrap;
}
.ticker__grp i { font-style: normal; color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .ticker__row { animation: none; }
}

/* ------------------------------------------------------------- results --- */

.results { padding: 88px var(--gut) 0; scroll-margin-top: 90px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 40px; }
.card {
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}
.card__n { font-family: var(--serif); font-style: italic; font-size: 15px; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: auto 0 0; }
.card p { font-size: 14px; line-height: 1.6; margin: 0; }

.card--dark {
  background: linear-gradient(165deg, #3A3129, #26211B);
  color: var(--on-dark);
  border: 1px solid rgba(201, 179, 147, 0.22);
  box-shadow: 0 24px 48px -26px rgba(0, 0, 0, 0.6);
}
.card--dark .card__n { color: var(--on-dark-acc); }
.card--dark p { color: var(--on-dark-3); }
.card--dark:hover { transform: translateY(-4px); box-shadow: 0 32px 56px -26px rgba(0, 0, 0, 0.7); }

.card--light {
  background: linear-gradient(170deg, #F3EBDE, #E9DFCF);
  border: 1px solid rgba(138, 117, 92, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 14px 30px -18px rgba(46, 40, 34, 0.3);
}
.card--light .card__n { color: var(--muted); }
.card--light p { color: var(--ink-3); }
.card--light:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 26px 44px -22px rgba(46, 40, 34, 0.42);
}

/* Bordered cell strip (results footer, programme metrics) */
.strip {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin: 18px 0 0;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.strip > div { padding: 26px; border-right: 1px solid rgba(46, 40, 34, 0.1); }
.strip > div:last-child { border-right: 0; }
.strip h4 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.strip p { font-size: 14px; line-height: 1.6; color: var(--ink-3); margin: 0; }
.strip__lead { display: flex; align-items: center; }
.strip__lead span { font-family: var(--script); font-size: 28px; color: var(--accent); line-height: 1.2; }

/* --------------------------------------------------------- test teaser --- */

.teaser {
  background: radial-gradient(110% 90% at 75% 10%, #3A3129 0%, #2B241E 55%, #241E19 100%);
  color: var(--on-dark);
  margin-top: 88px;
  scroll-margin-top: 70px;
}
.teaser__in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 88px var(--gut);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
}
.teaser h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.8vw, 50px); line-height: 1.26; margin: 22px 0 0; }
.teaser__lede { font-size: 15px; line-height: 1.65; color: var(--on-dark-3); margin: 22px 0 0; max-width: 460px; }
.checks { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 0; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--on-dark-2); list-style: none; }
.checks { padding: 0; }
.tick {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid #6B5C4C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--accent-soft);
  flex: 0 0 auto;
}
.teaser__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 32px; }
.teaser__cta span { font-size: 13px; color: var(--on-dark-4); }

.mock {
  background: var(--cream-2);
  color: var(--ink);
  border-radius: 22px;
  padding: 30px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(-1.4deg);
}
.mock__head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.pill-o {
  border: 1px solid rgba(46, 40, 34, 0.18);
  border-radius: 999px;
  padding: 5px 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.bar { height: 2px; background: rgba(46, 40, 34, 0.1); border-radius: 2px; margin: 16px 0 22px; }
.bar > i { display: block; height: 2px; background: var(--dark); border-radius: 2px; transition: width 0.3s; }
.mock__q { font-family: var(--serif); font-size: 25px; line-height: 1.35; margin: 0 0 20px; }
.mock__q em { font-style: italic; border-bottom: 1px solid var(--accent); padding: 0 6px; }
.mock__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock__opts div { border: 1px solid rgba(46, 40, 34, 0.16); border-radius: 12px; padding: 13px 16px; font-size: 14px; }
.mock__opts .is-right { background: var(--dark); color: var(--cream); border-color: var(--dark); display: flex; justify-content: space-between; }
.mock__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.mock__foot > span:first-child { font-size: 13px; color: var(--muted); }
.pill-solid { background: var(--dark); color: var(--cream); border-radius: 999px; padding: 11px 20px; font-size: 13px; }

/* ----------------------------------------------------------- programme --- */

.programme { background: var(--sand); scroll-margin-top: 70px; }
.sect-pad { padding: 88px var(--gut); }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; margin-top: 52px; }
.levels > div { min-width: 0; }
.lvl-badge {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(46, 40, 34, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
}
.lvl-badge--fill { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.levels h3 { font-size: 11px; letter-spacing: 0.14em; margin: 18px 0 10px; font-weight: 400; }
.levels p { font-size: 14px; line-height: 1.6; color: var(--ink-3); margin: 0; }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: var(--cream);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 52px;
}
.metrics > div { padding: 26px 28px; border-right: 1px solid rgba(46, 40, 34, 0.09); }
.metrics > div:last-child { border-right: 0; }
.metrics small { display: block; font-size: 13px; color: var(--muted); }
.metrics b { display: block; font-family: var(--serif); font-size: 44px; line-height: 1.05; margin: 8px 0 2px; font-weight: 400; }
.metrics span { font-size: 14px; color: var(--ink-3); }
.footnote { font-size: 12px; color: var(--muted); margin: 16px 0 0; }

/* ------------------------------------------------------------ includes --- */

.warm { background: linear-gradient(180deg, #EAE0D0, #E3D7C4); }
.includes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; margin-top: 26px; }
.includes__grid > div { min-width: 0; }
.includes h2 + p { font-size: 15px; line-height: 1.65; color: var(--ink-3); margin: 22px 0 0; max-width: 400px; }
.skills { display: flex; flex-direction: column; }
.skills div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(46, 40, 34, 0.16);
  padding: 16px 0;
}
.skills div:last-child { border-bottom: 1px solid rgba(46, 40, 34, 0.16); }
.skills span:first-child { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.4vw, 44px); }
.skills span:last-child { font-size: 12px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 44px; margin-top: 56px; padding: 0; }
.features li {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 66px;
  padding: 10px 0;
  border-top: 1px solid rgba(46, 40, 34, 0.13);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-4);
  list-style: none;
}
.tick-sm {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #F7F0E4;
  border: 1px solid rgba(138, 117, 92, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--accent);
}

/* ------------------------------------------------------------- pricing --- */

.pricing {
  background: radial-gradient(120% 80% at 50% 0%, #3C332B 0%, #2B241E 60%, #241E19 100%);
  color: var(--on-dark);
  scroll-margin-top: 70px;
}
.pricing h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.26;
  margin: 0;
  text-align: center;
}
.pricing__lede { text-align: center; font-size: 15px; line-height: 1.65; color: var(--on-dark-3); max-width: 520px; margin: 20px auto 0; }
.pricing__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 44px; align-items: start; }
.plan {
  background: linear-gradient(180deg, var(--cream-3), #F7F0E5);
  color: var(--ink);
  border: 1px solid rgba(138, 117, 92, 0.2);
  border-radius: 22px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 1px 0 #fff inset, 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s;
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 1px 0 #fff inset, 0 44px 70px -30px rgba(0, 0, 0, 0.65); }
.plan__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan__name { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.plan__fmt {
  font-size: 11px;
  border: 1px solid rgba(46, 40, 34, 0.16);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--ink-3);
  white-space: nowrap;
}
.plan__lessons { font-family: var(--serif); font-size: 25px; line-height: 1.2; }
.plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__price b { font-family: var(--serif); font-size: 44px; line-height: 1; font-weight: 400; }
.plan__price span { font-size: 13px; color: var(--muted); }
.rule { height: 1px; background: var(--line); }
.plan__f { display: flex; flex-direction: column; gap: 11px; padding: 0; margin: 0; }
.plan__f li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-4); list-style: none; }
.plan__f i { flex: 0 0 auto; color: var(--accent); font-style: normal; }
.plan__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--dark);
  color: var(--cream);
  border-radius: 999px;
  padding: 15px 22px;
  font-size: 14px;
  transition: background 0.25s;
}
.plan__cta:hover { background: #463B31; color: var(--cream); }
.pricing__note { text-align: center; font-size: 13px; color: var(--on-dark-4); margin: 28px auto 0; max-width: 620px; }

/* --------------------------------------------------------------- steps --- */

.steps { padding: 88px var(--gut); }
.steps h2 { margin: 22px 0 46px; }
.steps__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.step { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.step__n { font-family: var(--serif); font-style: italic; font-size: 30px; color: #A6947C; }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; margin: 14px 0 10px; }
.step p { font-size: 14px; line-height: 1.6; color: var(--ink-3); margin: 0 0 14px; }
.step p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- reviews --- */

.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 22px; }
.arrows { display: flex; gap: 10px; }
.arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.arrow--prev { border: 1px solid rgba(46, 40, 34, 0.22); background: none; color: var(--ink); }
.arrow--prev:hover { background: rgba(46, 40, 34, 0.06); }
.arrow--next { border: 0; background: var(--dark); color: var(--cream); }
.arrow--next:hover { background: #463B31; }

.rail {
  display: flex;
  gap: 20px;
  margin-top: 36px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 6px;
  scroll-behavior: auto;
}
.rail::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 min(360px, 82%);
  scroll-snap-align: start;
  background: linear-gradient(180deg, var(--cream-3), #F5EDE1);
  border: 1px solid rgba(138, 117, 92, 0.18);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 1px 0 #fff inset, 0 24px 44px -26px rgba(46, 40, 34, 0.45);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.review__mark { font-family: var(--serif); font-size: 46px; line-height: 0.6; color: var(--accent-line); }
.review p { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--ink-4); margin: 0; }
.review__by {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(46, 40, 34, 0.1);
}
.review__by b { display: block; font-size: 14px; font-weight: 600; }
.review__by span { display: block; font-size: 13px; color: var(--muted); }

/* ----------------------------------------------------------------- faq --- */

.faq { background: var(--sand); scroll-margin-top: 70px; }
.faq__in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 88px var(--gut);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}
.faq__in > div { min-width: 0; }
.faq h2 { margin: 22px 0 18px; }
.faq__lede { font-size: 15px; line-height: 1.65; color: var(--ink-3); margin: 0 0 18px; max-width: 340px; }
.faq__list { display: flex; flex-direction: column; gap: 8px; }
.qa {
  background: linear-gradient(180deg, var(--cream-3), #F7F0E5);
  border: 1px solid rgba(138, 117, 92, 0.16);
  border-radius: 16px;
  padding: 4px 24px;
  box-shadow: 0 1px 0 #fff inset, 0 12px 26px -20px rgba(46, 40, 34, 0.4);
}
.qa__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: none;
  border: 0;
  padding: 19px 0;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s;
}
.qa__q:hover { color: var(--accent); }
.qa__sign {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--accent);
}
.qa__a {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
  padding: 16px 46px 20px 0;
  border-top: 1px solid rgba(46, 40, 34, 0.09);
}
/* Answers can hold several paragraphs; a blank line in the source starts one. */
.qa__a p { margin: 0 0 13px; }
.qa__a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------- closing + foot --- */

.closing { background: var(--dark); color: var(--on-dark); }
.closing__in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 80px var(--gut);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}
.closing__in > div { min-width: 0; }
.closing h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.28; margin: 0; }
.closing p { font-size: 15px; line-height: 1.65; color: var(--on-dark-3); margin: 18px 0 0; max-width: 420px; }
.closing__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.foot { border-top: 1px solid rgba(246, 241, 233, 0.12); }
.foot__in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--gut);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--on-dark-4);
}
.foot__brand { font-family: var(--serif); font-size: 18px; color: var(--on-dark); }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot__links a { color: var(--on-dark-3); }
.foot__links a:hover { color: #fff; }

@media (max-width: 760px) {
  .closing__cta { justify-content: flex-start; }
}

/* ============================================================ test view == */

.test { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }

.test__side {
  flex: 1 1 260px;
  max-width: 320px;
  min-width: 240px;
  background: var(--dark);
  color: var(--on-dark);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.test__logo { line-height: 1.05; }
.test__logo span:first-child { display: block; font-family: var(--script); font-size: 15px; color: var(--accent-soft); }
.test__logo span:last-child { display: block; font-family: var(--serif); font-size: 24px; }
.scale__label { font-size: 11px; letter-spacing: 0.2em; color: var(--on-dark-4); margin-bottom: 14px; }
.scale { display: flex; flex-direction: column; gap: 9px; }
.scale div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(246, 241, 233, 0.06);
  color: var(--on-dark-2);
  transition: background 0.35s, color 0.35s, opacity 0.35s;
}
.scale div b { font-family: var(--serif); font-size: 21px; width: 34px; font-weight: 400; flex: 0 0 auto; }
.scale div span { font-size: 13px; }
.scale.is-active div { opacity: 0.45; }
.scale div.is-current { background: var(--cream); color: var(--ink); opacity: 1; }
.test__tag { margin-top: auto; font-family: var(--script); font-size: 20px; color: var(--accent); line-height: 1.4; }

.test__main {
  flex: 1 1 420px;
  min-width: 0;
  background: var(--cream);
  padding: 34px clamp(24px, 5vw, 64px) 64px;
}
.test__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 13px; color: var(--muted); }
.test__back { background: none; border: 0; padding: 0; font-size: 13px; color: var(--ink-3); cursor: pointer; transition: color 0.2s; }
.test__back:hover { color: var(--ink); }

/* intro */
.t-intro { max-width: 720px; margin: 0 auto; padding: 60px 0; }
.t-intro h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.22; margin: 26px 0 0; }
.t-intro > p { font-size: 16px; line-height: 1.65; color: var(--ink-3); margin: 22px 0 0; max-width: 560px; }
.t-intro__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 34px 0 0; }
.t-card {
  background: linear-gradient(170deg, #F3EBDE, #E9DFCF);
  border: 1px solid rgba(138, 117, 92, 0.16);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.t-card b { display: block; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 15px; margin-bottom: 10px; font-weight: 400; }
.t-card span { font-size: 14px; line-height: 1.5; }
.t-intro__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 38px; }
.t-intro__cta span { font-size: 13px; color: var(--muted); }
.t-intro__cta .btn { padding: 18px 30px; }

/* running */
.t-run { max-width: 660px; margin: 0 auto; padding: 48px 0; }
.t-run__head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.t-run .bar { margin: 16px 0 34px; background: var(--line); }
.t-run__q { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.35; margin: 0 0 28px; text-wrap: pretty; }
.t-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.t-opt {
  text-align: left;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
  cursor: pointer;
  background: var(--cream-2);
  color: var(--ink);
  border: 1px solid rgba(46, 40, 34, 0.16);
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s, opacity 0.18s;
}
.t-opt:hover { border-color: var(--accent); }
.t-opts.is-answered .t-opt { opacity: 0.5; }
.t-opt.is-picked {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
  transform: scale(1.015);
  opacity: 1;
}
.t-run__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.t-prev { background: none; border: 0; padding: 0; font-size: 14px; color: var(--muted); cursor: pointer; transition: color 0.2s; }
.t-prev:hover { color: var(--ink); }
.t-skip {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 14px;
  color: var(--ink-3);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.t-skip:hover { border-color: var(--ink); color: var(--ink); }

/* done */
.t-done { max-width: 720px; margin: 0 auto; padding: 56px 0; }
.t-done__head { display: flex; align-items: center; gap: 24px; margin: 26px 0 0; flex-wrap: wrap; }
.t-done__lvl {
  flex: 0 0 auto;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 38px;
}
.t-done__meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.t-done__title { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; }
.t-done__score { font-size: 14px; color: var(--muted); }
.t-done__text { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin: 28px 0 0; max-width: 600px; }

.t-plan {
  background: linear-gradient(170deg, #F3EBDE, #E9DFCF);
  border: 1px solid rgba(138, 117, 92, 0.18);
  border-radius: 20px;
  padding: 28px;
  margin-top: 30px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.t-label { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.t-plan__title { font-family: var(--serif); font-size: 24px; line-height: 1.3; margin: 12px 0 10px; }
.t-plan p { font-size: 14px; line-height: 1.6; color: var(--ink-3); margin: 0; }

.t-pack {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  margin-top: 16px;
}
.t-pack__head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.t-pack__title { font-family: var(--serif); font-size: 27px; line-height: 1.3; margin: 12px 0 2px; }
.t-pack__lessons { font-size: 14px; color: var(--ink-3); }
.t-pack__price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 16px; }
.t-pack__price b { font-family: var(--serif); font-size: 42px; line-height: 1; font-weight: 400; }
.t-pack__price span { font-size: 13px; color: var(--muted); }
.t-done__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.t-done__actions .btn--dark { background: var(--dark); box-shadow: none; }
.t-plain { background: none; border: 0; padding: 17px 4px; font-size: 15px; color: var(--muted); cursor: pointer; transition: color 0.2s; }
.t-plain:hover { color: var(--ink); }

@media (max-width: 720px) {
  .test__side {
    max-width: none;
    flex-basis: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 20px var(--gut);
  }
  .test__side .scale-block { display: none; }
  .test__tag { margin-top: 0; margin-left: auto; font-size: 17px; text-align: right; }
}

/* ============================================================== icons ==== */

.ico {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: 0 0 auto;
  display: block;
}
.icon-btn .ico { width: 15px; height: 15px; }
.ico--wa { width: 17px; height: 17px; }
.foot__links a { display: inline-flex; align-items: center; gap: 8px; }
.foot__links .ico { width: 14px; height: 14px; }

/* ====================================================== trial booking ==== */

.trial { background: linear-gradient(180deg, #F1E8DA, #EADFCC); }
.trial__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
}
.trial__copy { min-width: 0; }
.trial__copy h2 { margin: 20px 0 0; }
.trial__lede {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 20px 0 0;
  max-width: 420px;
}
.trial .checks { margin: 26px 0 0; }
.trial .checks li { color: var(--ink-4); }
.trial .tick {
  border-color: rgba(138, 117, 92, 0.4);
  background: rgba(255, 255, 255, 0.5);
  color: var(--accent);
}
.trial__alt { margin: 26px 0 0; font-size: 14px; }
.trial__alt a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(138, 117, 92, 0.5);
  padding-bottom: 3px;
}
.trial__alt a:hover { color: var(--ink); border-color: var(--ink); }

.trial__card {
  position: relative;
  min-width: 0;
  background: linear-gradient(180deg, var(--cream-3), #F7F0E5);
  border: 1px solid rgba(138, 117, 92, 0.2);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 1px 0 #fff inset, 0 30px 60px -32px rgba(46, 40, 34, 0.5);
}

/* -------------------------------------------------------------- fields -- */

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--ink-3); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #FFFDFA;
  border: 1px solid rgba(46, 40, 34, 0.18);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%238A7F73' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px;
  padding-right: 36px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 117, 92, 0.15);
}
.field input:user-invalid,
.field.is-bad input { border-color: #B4503C; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.trial__submit { width: 100%; justify-content: center; margin-top: 4px; }
.trial__privacy {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 14px 0 0;
  text-align: center;
}

.form-msg {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(180, 80, 60, 0.08);
  border: 1px solid rgba(180, 80, 60, 0.28);
  color: #8C3B2B;
}

/* ------------------------------------------------------------ success --- */

.trial__done { text-align: center; padding: 22px 0 8px; }
.trial__tick {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.trial__done h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 10px;
}
.trial__done p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0 0 18px;
  max-width: 340px;
  margin-inline: auto;
}

/* ================================================================ hints == */

.hint {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-3);
  background: rgba(138, 117, 92, 0.08);
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 13px 16px;
  margin: 26px 0 0;
  max-width: 600px;
}
.hint--sm {
  font-size: 12.5px;
  background: none;
  border-left: 0;
  padding: 0;
  margin-top: 18px;
  color: var(--muted);
}
.hint:empty { display: none; }

/* ====================================================== scroll motion ==== */

@keyframes revealScale { from { opacity: 0; transform: translateY(24px) scale(0.965); } to { opacity: 1; transform: none; } }
@keyframes revealFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes growX       { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes driftUp     { from { transform: translateY(26px); } to { transform: translateY(-26px); } }

/* Reading-progress hairline under the sticky header. */
.progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress {
    animation: growX linear both;
    animation-timeline: scroll(root block);
  }
}

@media (prefers-reduced-motion: no-preference) {

  /* Cards settle in with a touch of scale; plain text just fades. */
  @supports (animation-timeline: view()) {
    [data-reveal="scale"] { animation-name: revealScale; }
    [data-reveal="fade"]  { animation-name: revealFade; }

    /* Deeper stagger than the prototype's four steps. */
    [data-reveal]:nth-child(5)   { animation-range: entry 18% entry 96%; }
    [data-reveal]:nth-child(6)   { animation-range: entry 21% entry 99%; }
    [data-reveal]:nth-child(7)   { animation-range: entry 24% entry 100%; }
    [data-reveal]:nth-child(n+8) { animation-range: entry 27% entry 100%; }

    /* Hero photo drifts against the scroll — subtle, never more than ~50px. */
    .hero__frame,
    .hero__arc {
      animation: driftUp linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 70vh;
    }
    .hero__arc { animation-range: 0 90vh; }
  }

  /* IntersectionObserver path keeps the same vocabulary. */
  .js-io [data-reveal="scale"].is-in { animation-name: revealScale; }
  .js-io [data-reveal="fade"].is-in  { animation-name: revealFade; }
  .js-io [data-reveal].is-in         { animation-duration: 0.66s; }
}

/* ------------------------------------------------- GSAP takes the wheel -- */

/* When ScrollTrigger is driving, stand the CSS scroll animations down so the
   two never double up. index.html removes .js-gsap if GSAP never loads. */
.js-gsap [data-reveal] {
  animation: none !important;
  opacity: 0;
}
.js-gsap .hero__frame,
.js-gsap .hero__arc,
.js-gsap .ticker__row,
.js-gsap .progress { animation: none !important; }
.js-gsap .progress { transform: scaleX(0); }

/* The marquee still needs its own loop — GSAP only nudges it on scroll. */
.js-gsap .ticker__row { animation: tickerRun 34s linear infinite !important; }

@media (prefers-reduced-motion: reduce) {
  .js-gsap [data-reveal] { opacity: 1; }
}

/* ------------------------------------------------------- course booking -- */

/* The plan CTA is a button now, not a link — keep the exact same look. */
button.plan__cta { border: 0; cursor: pointer; font-family: inherit; width: 100%; }

.course-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(138, 117, 92, 0.12);
  border: 1px solid rgba(138, 117, 92, 0.3);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.course-chip button {
  margin-left: auto;
  flex: 0 0 auto;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  color: var(--muted);
  padding: 2px 4px;
}
.course-chip button:hover { color: var(--ink); }
