/* Level 100 home: colour chapters. Each section is one flat field; the climb from Iron to Ascended sets the colours. */
:root {
  color-scheme: dark;
  --black: #060607;
  --iron: #2e3238;
  --bronze: #7a4826;
  --silver: #c9ced6;
  --gold: #d4af37;
  --paper: #f1f2f4;

  /* league colours, used in the ladder, the tile tints and the footer mark */
  --lg-base: #f1f2f4;
  --lg-iron: #5b616b;
  --lg-bronze: #8e5427;
  --lg-silver: #e3e6ea;
  --lg-gold: #d4af37;
  --lg-platinum: #c3b4ec;
  --lg-obsidian: #2b1a3a;
  --lg-titanium: #8a939f;
  --lg-diamond: #7fd0ee;
  --lg-apex: #e8892c;
  --lg-ascended: #f3d36a;

  --font: "Epilogue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(3.5rem, 11vw + 1rem, 11rem);

  --margin: clamp(16px, 5vw, 80px);
  --gutter: clamp(12px, 2vw, 28px);
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-hover: 200ms;

  --ink: var(--paper);
  --muted: #b9bdc5;
  --focus: var(--gold);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { overflow-wrap: break-word; margin: 0; background: var(--black); color: var(--ink); font: 400 var(--step-body)/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
button { font: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-weight: 900; letter-spacing: -0.04em; line-height: 0.9; }
h2 { font-size: var(--step-head); }
h3 { font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
strong { font-weight: 500; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--black); }

.wrap { width: 100%; max-width: calc(1360px + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.skip-link { position: fixed; z-index: 30; left: 16px; top: -100px; padding: 12px 20px; background: var(--gold); color: var(--black); }
.skip-link:focus { top: 12px; }

/* Chapters: one flat field each, its own ink */
.ch { position: relative; min-height: 90svh; padding-block: clamp(72px, 12vh, 140px); background: var(--field); color: var(--ink); }
.ch-bronze { --field: var(--bronze); --ink: var(--paper); --muted: #ecd8c8; }
.ch-iron { --field: var(--iron); --ink: var(--paper); --muted: #b3b9c2; }
.ch-silver { --field: var(--silver); --ink: var(--black); --muted: #33373d; --focus: var(--black); }
.ch-gold { --field: var(--gold); --ink: var(--black); --muted: #2b2410; --focus: var(--black); }
.ch-paper { --field: var(--paper); --ink: var(--black); --muted: #3d4148; --focus: var(--black); }

/* Buttons and links: one shape everywhere */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 16px 28px; border: 0; border-radius: 0; font: 500 var(--step-body)/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer; transition: transform var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: #141106; }
.btn-gold:hover { background: #e2c25a; }
.btn-ink { background: var(--black); color: var(--paper); }
.btn-ink:hover { background: #24272c; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: var(--step-small); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; transition: text-underline-offset var(--t-hover) var(--ease-out); }
.text-link:hover { text-underline-offset: 0.35em; }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } .btn:active { transform: scale(0.97); } }

/* Navigation: always black, so Open app stays in sight */
.nav { position: sticky; top: 0; z-index: 20; background: var(--black); color: var(--paper); }
.nav-in { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "links brand tools"; align-items: center; gap: 12px 24px; min-height: var(--nav-h); padding-inline: var(--margin); }
.brand { grid-area: brand; display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 150px; height: auto; }
.nav-tools { grid-area: tools; justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav-actions { grid-area: links; display: flex; align-items: center; gap: 4px 28px; flex-wrap: wrap; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--step-small); font-weight: 500; color: var(--paper); text-decoration: none; transition: color var(--t-hover) var(--ease-out); }
.nav-link:hover { color: var(--gold); }
.nav-start { text-decoration: underline; text-decoration-color: var(--gold); }
.nav-app { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; white-space: nowrap; background: var(--paper); color: var(--black); font-size: var(--step-small); font-weight: 500; text-decoration: none; transition: background-color var(--t-hover) var(--ease-out); }
.nav-app:hover { background: var(--silver); }
.menu-toggle { display: none; min-height: 44px; padding: 10px 16px; border: 2px solid var(--paper); border-radius: 0; background: transparent; color: var(--paper); font-weight: 500; cursor: pointer; }

/* Hero: the tabbed folder stack */
.hero { background: var(--black); color: var(--paper); }
.hero-head { min-height: calc(51svh - var(--nav-h)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px var(--margin) 64px; text-align: center; }
.hero-title { font-size: var(--step-display); line-height: 0.86; padding-top: 0.04em; white-space: nowrap; }
.hero-title .rise { display: inline-block; }
.hero-lede { max-width: 40ch; margin-top: 32px; font-size: var(--step-lead); line-height: 1.35; }

.folders { width: 86%; margin-inline: auto; padding-top: 40px; }
.folder { position: relative; display: block; height: 64px; background: var(--fold); color: var(--fold-ink); text-decoration: none; }
.folder .tab { position: absolute; bottom: 100%; left: var(--tab-x); display: flex; align-items: center; height: 40px; padding: 4px 32px 0; background: var(--fold); color: var(--fold-ink); font-size: var(--step-body); font-weight: 500; white-space: nowrap; clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 100%, 0 100%); transition: transform var(--t-hover) var(--ease-out); }
a.folder:hover .tab, a.folder:focus-visible .tab { transform: translateY(-6px); }
a.folder:focus-visible { outline-offset: -6px; }
.folder-iron { --fold: var(--iron); --fold-ink: var(--paper); --tab-x: 2%; z-index: 1; }
.folder-bronze { --fold: var(--bronze); --fold-ink: var(--paper); --tab-x: 21%; z-index: 2; }
.folder-silver { --fold: var(--silver); --fold-ink: var(--black); --tab-x: 40%; z-index: 3; }
.folder-gold { --fold: var(--gold); --fold-ink: var(--black); --tab-x: 59%; z-index: 4; }
.folder-front { --fold: var(--paper); --fold-ink: var(--black); --tab-x: 80%; --focus: var(--black); z-index: 5; height: auto; padding: 32px; }
.front-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px var(--gutter); align-items: start; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero-note { margin-top: 14px; font-size: var(--step-small); color: #3d4148; }
.trial-offer { margin-top: 40px; max-width: 34ch; }
.trial-title { font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 8px; }
.trial-terms { margin-top: 24px; max-width: 46ch; font-size: var(--step-small); color: #3d4148; line-height: 1.55; }
.trial-terms a { color: var(--black); font-weight: 500; }
.front-frame { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--black); }
.front-frame img { width: 100%; height: 100%; object-fit: cover; }
.front-frame img + img { position: absolute; inset: 0; opacity: 0; }
.front-photo figcaption { margin-top: 12px; font-size: var(--step-small); color: #3d4148; }
.front-photo figcaption strong { color: var(--black); margin-right: 8px; }

/* About: Cameron on colour tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 12px; margin-top: 56px; }
.tile-pic { aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); }
.tile-pic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; transition: transform 600ms var(--ease-out); }
.tile:hover .tile-pic img { transform: scale(1.03); }
.tint-gold { --tint: var(--lg-gold); }
.tint-platinum { --tint: var(--lg-platinum); }
.tint-diamond { --tint: var(--lg-diamond); }
.tint-silver { --tint: var(--lg-silver); }
.tile-name { margin-top: 10px; font-size: var(--step-small); font-weight: 500; }
.tile-role { font-size: var(--step-small); color: var(--muted); }
.about-copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px var(--gutter); margin-top: 72px; }
.about-text { display: grid; gap: 18px; max-width: 46ch; font-size: var(--step-lead); line-height: 1.4; }
.about-facts { display: grid; align-content: start; gap: 20px; }
.coach-facts { font-size: var(--step-lead); font-weight: 500; line-height: 1.35; }
.credit { font-size: var(--step-small); color: var(--muted); }

/* Coaching: capabilities at poster scale, with the index preview */
.coaching { padding-block: clamp(96px, 20vh, 200px); }
.index { position: relative; }
.index-list { display: grid; gap: 0.35em; font-size: var(--step-head); }
.index-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr) minmax(0, 2fr); column-gap: var(--gutter); align-items: first baseline; }
.index-name { grid-column: 1; font-size: var(--step-head); font-weight: 900; letter-spacing: -0.04em; line-height: 1; transition: color var(--t-hover) var(--ease-out); }
.index-head .index-name { color: var(--muted); }
.index-text { grid-column: 2; font-size: var(--step-body); line-height: 1.45; }
.index-thumb { display: none; }
.index-frame { display: none; }
.index-note { margin-top: 56px; font-size: var(--step-small); color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .index-list:has(.index-row[data-preview]:hover) .index-row[data-preview]:not(:hover) .index-name { color: var(--muted); }
  .index-frame { display: block; position: absolute; top: 0; right: var(--margin); width: min(15%, 220px); aspect-ratio: 1320 / 2868; z-index: 2; pointer-events: none; background: var(--black); clip-path: inset(100% 0 0 0); transition: clip-path 320ms var(--ease-out), transform 360ms var(--ease-out); }
  .index-frame.is-open { clip-path: inset(0); }
  .index-frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity 240ms var(--ease-out); }
}
@media (hover: none), (pointer: coarse) {
  .index-row[data-preview] { grid-template-columns: minmax(0, 1fr) 96px; row-gap: 12px; align-items: start; }
  .index-row[data-preview] .index-name { grid-column: 1 / -1; }
  .index-row[data-preview] .index-text { grid-column: 1; }
  .index-thumb { display: block; grid-column: 2; width: 96px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
}

/* App: one chapter per screen, each grows from a panel to the full field */
.showcase { background: var(--iron); color: var(--paper); }
.chapter { position: relative; min-height: 100svh; }
.chapter-field { position: absolute; inset: 0; background: var(--field, #0d0d11); transition: clip-path 600ms var(--ease-out); }
.chapter-title { position: absolute; top: 32px; left: 32px; max-width: 16ch; font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.chapter-pic { position: absolute; left: 50%; top: 112px; height: 75%; aspect-ratio: 1260 / 2736; transform: translateX(-50%); transition: transform 800ms var(--ease-out); }
.chapter-pic img { width: 100%; height: 100%; object-fit: contain; }
.chapter-text { position: absolute; left: 32px; bottom: 32px; max-width: 32ch; line-height: 1.5; }
.chapter-text strong { display: block; font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 6px; }
.chapter-link { position: absolute; right: 32px; bottom: 32px; display: grid; justify-items: end; gap: 2px; text-align: right; }
.chapter-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.chapter-link span { font-size: var(--step-small); color: #b3b9c2; }

/* Pricing: the offer as one statement, then the ladder you can try */
.pricing .wrap { container-type: inline-size; }
.statement { font-size: min(var(--step-head), 7cqi); }
.statement h2, .statement-then { font-size: inherit; font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; }
.statement .rise { display: inline-block; }
.price-block { display: inline-block; padding: 0.04em 0.15em 0; background: var(--black); color: var(--gold); line-height: 0.95; }
.pricing-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px var(--gutter); align-items: end; margin-top: 64px; }
.pricing-lede { max-width: 46ch; font-size: var(--step-lead); line-height: 1.35; }
.pricing-actions { justify-self: end; display: grid; justify-items: end; gap: 8px; }
.ladder { margin-top: clamp(96px, 16vh, 160px); }
.ladder-title { font-size: var(--step-head); letter-spacing: -0.04em; line-height: 0.95; }
.ladder-lede { margin-top: 20px; max-width: 48ch; font-size: var(--step-lead); line-height: 1.35; }
.picker { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "label out" "range out"; gap: 12px var(--gutter); align-items: center; margin-top: 48px; }
.picker[hidden] { display: none; }
.picker-label { grid-area: label; font-weight: 500; }
.picker-range { grid-area: range; width: 100%; height: 48px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.picker-range::-webkit-slider-runnable-track { height: 12px; background: var(--black); }
.picker-range::-moz-range-track { height: 12px; background: var(--black); }
.picker-range::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 40px; margin-top: -14px; border: 4px solid var(--black); border-radius: 0; background: var(--gold); }
.picker-range::-moz-range-thumb { width: 32px; height: 32px; border: 4px solid var(--black); border-radius: 0; background: var(--gold); }
.picker-out { grid-area: out; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "badge league rate" "badge level rate"; align-items: center; column-gap: 20px; }
.picker-badge { grid-area: badge; width: 112px; height: 112px; transition: transform 300ms var(--ease-out); }
.picker-badge[hidden] { visibility: hidden; display: block; }
.picker-level { grid-area: level; align-self: start; margin-top: 6px; font-weight: 500; }
.picker-league { grid-area: league; align-self: end; font-size: var(--step-head); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; }
.picker-rate { grid-area: rate; padding: 0.04em 0.15em 0; background: var(--black); color: var(--gold); font-size: var(--step-head); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; }
.picker-out.bump .picker-badge { transform: scale(1.08); }
.rungs { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; align-items: end; margin-top: 40px; padding: 4px; background: var(--black); }
.rung { display: grid; align-content: space-between; gap: 8px; min-height: calc(120px + var(--i, 0) * 14px); padding: 12px 10px; background: var(--rung); color: var(--rung-ink, var(--black)); transition: transform 300ms var(--ease-out); }
.rung-badge { width: 48px; height: 48px; margin: -4px 0 0 -4px; }
.rung-name { font-weight: 500; font-size: var(--step-small); line-height: 1.2; }
.rung-levels { font-size: var(--step-small); line-height: 1.3; }
.rung-levels span { display: block; }
.rung-rate { font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.02em; }
.rung.is-current { outline: 4px solid var(--gold); outline-offset: -4px; }
.rung-base { --rung: var(--lg-base); --i: 0; }
.rung-iron { --rung: var(--lg-iron); --rung-ink: var(--paper); --i: 1; }
.rung-bronze { --rung: var(--lg-bronze); --rung-ink: var(--paper); --i: 2; }
.rung-silver { --rung: var(--lg-silver); --i: 3; }
.rung-gold { --rung: var(--lg-gold); --i: 4; }
.rung-platinum { --rung: var(--lg-platinum); --i: 5; }
.rung-obsidian { --rung: var(--lg-obsidian); --rung-ink: var(--paper); --i: 6; }
.rung-titanium { --rung: var(--lg-titanium); --i: 7; }
.rung-diamond { --rung: var(--lg-diamond); --i: 8; }
.rung-apex { --rung: var(--lg-apex); --i: 9; }
.rung-ascended { --rung: var(--lg-ascended); --i: 10; }
.ladder-foot { margin-top: 28px; max-width: 60ch; }

/* How it works: the stages as one bar */
.how h2 { margin-bottom: 64px; }
.stages { display: flex; gap: 6px; }
.stage-1 { flex: 22 1 0; --seg: var(--black); --seg-ink: var(--paper); }
.stage-2 { flex: 30 1 0; --seg: var(--bronze); --seg-ink: var(--paper); }
.stage-3 { flex: 48 1 0; --seg: var(--paper); --seg-ink: var(--black); }
.stage { min-width: 0; }
.stage-bar { height: 22vh; min-height: 140px; padding: 20px; background: var(--seg); color: var(--seg-ink); transform-origin: left center; transition: transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.stage-time { display: block; font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.stage h3 { margin-top: 20px; font-size: var(--step-body); }
.stage p { margin-top: 6px; max-width: 30ch; line-height: 1.5; }
.example { margin-top: 64px; max-width: 62ch; }
.example .text-link { margin-left: 4px; }

/* Get the app: a plain list */
.access-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px var(--gutter); align-items: end; }
.access-head p { font-size: var(--step-lead); line-height: 1.35; }
.platforms { display: grid; gap: 40px; margin-top: 80px; }
.platform { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); column-gap: var(--gutter); align-items: center; }
.platform h3 { font-size: var(--step-head); letter-spacing: -0.04em; line-height: 1; }
.store-name { font-size: var(--step-lead); font-weight: 500; }
.platform-actions { justify-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.availability { justify-self: end; font-size: var(--step-lead); font-weight: 500; color: var(--muted); }
.access-note { margin-top: 72px; color: var(--ink); }

/* Close: the idea again, inverted */
.start { min-height: 90svh; }
.start-in { display: flex; flex-direction: column; min-height: calc(90svh - 2 * clamp(72px, 12vh, 140px)); }
.start-title { font-size: var(--step-display); line-height: 0.9; }
.start-title .rise { display: inline-block; }
.start-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px var(--gutter); align-items: end; margin-top: auto; padding-top: 72px; }
.start-lede { font-size: var(--step-lead); line-height: 1.35; }
.start-actions { justify-self: end; display: grid; justify-items: end; gap: 10px; }
.start-actions .btn { background: var(--black); color: var(--gold); }
.start-actions .btn:hover { background: #24272c; }
.start-actions small { font-size: var(--step-small); color: var(--muted); }
.start-fine { display: grid; gap: 8px; margin-top: 40px; max-width: 62ch; font-size: var(--step-small); color: var(--muted); }
.start-fine a { color: var(--ink); font-weight: 500; }

/* Footer: the mark built from league blocks */
.footer { background: var(--black); color: var(--paper); padding-block: 72px 40px; }
.mark { display: flex; align-items: flex-end; gap: 4px; height: clamp(180px, 34svh, 360px); text-decoration: none; }
.block { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; height: calc(60% + var(--i) * 5.7%); overflow: hidden; background: var(--b); color: var(--black); font-size: var(--step-display); font-weight: 900; line-height: 0.78; letter-spacing: -0.04em; padding-bottom: 0.04em; transform-origin: bottom; transition: transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
/* the two darkest leagues take a lighter step here so the black letters keep 4.5:1 */
.b1 { --b: #7f858f; --i: 0; }
.b2 { --b: #b0703f; --i: 1; }
.b3 { --b: var(--lg-silver); --i: 2; }
.b4 { --b: var(--lg-gold); --i: 3; }
.b5 { --b: var(--lg-platinum); --i: 4; }
.b6 { --b: var(--lg-diamond); --i: 5; }
.b7 { --b: var(--lg-apex); --i: 6; }
.b8 { --b: var(--lg-ascended); --i: 7; }
.mark:focus-visible { outline-offset: 8px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px var(--gutter); margin-top: 56px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px var(--gutter); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--step-small); text-decoration: none; transition: color var(--t-hover) var(--ease-out); }
.footer-links a:hover { color: var(--gold); }
.footer-contact { font-size: var(--step-small); }
.footer .legal { font-size: var(--step-small); color: #b9bdc5; max-width: 62ch; }
.footer > .wrap > .legal { margin-top: 40px; }
.footer-last { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }

/* Motion: hidden starting states only when motion is welcome and script runs */
@media (prefers-reduced-motion: no-preference) {
  .motion .hero-title .rise { animation: rise 760ms var(--ease-out) both; }
  .motion .hero-lede { animation: fade-up 700ms var(--ease-out) 160ms both; }
  .motion .folder { animation: fold-in 700ms var(--ease-out) both; }
  .folder-iron { animation-delay: 240ms; }
  .folder-bronze { animation-delay: 310ms; }
  .folder-silver { animation-delay: 380ms; }
  .folder-gold { animation-delay: 450ms; }
  .folder-front { animation-delay: 520ms; }
  .motion .front-frame img + img { animation: xfade 18s ease-in-out 4s infinite; }
  .motion .front-frame img + img + img { animation-delay: 10s; }

  .motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .motion .reveal.is-in { opacity: 1; transform: none; }
  .motion .statement .rise, .motion .start-title .rise { opacity: 0; transform: translateY(0.35em); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .motion .statement .rise + .rise, .motion .start-title .rise + .rise { transition-delay: 120ms; }
  .motion .statement.is-in .rise, .motion .start-title.is-in .rise { opacity: 1; transform: none; }
  .motion .price-block { transform: scale(0.96); transition: transform 600ms var(--ease-out) 320ms; }
  .motion .statement.is-in .price-block { transform: none; }
  .motion .stage-bar { transform: scaleX(0.02); }
  .motion .stage.is-in .stage-bar { transform: none; }
  .motion .rung { opacity: 0; transform: translateY(24px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .motion .rung.is-in { opacity: 1; transform: none; }
  .motion .rung.is-in.is-current { transform: translateY(-8px); transition-delay: 0ms; }
  .motion .chapter .chapter-field { clip-path: inset(20px); }
  .motion .chapter .chapter-pic { transform: translateX(-50%) scale(0.92); }
  .motion .chapter.is-in .chapter-field { clip-path: inset(0); }
  .motion .chapter.is-in .chapter-pic { transform: translateX(-50%); }
  .motion .mark .block { transform: scaleY(0.2); }
  .motion .mark.is-in .block { transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.3em); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fold-in { from { transform: translateY(48px); } to { transform: none; } }
@keyframes xfade { 0% { opacity: 0; } 6% { opacity: 1; } 33% { opacity: 1; } 39% { opacity: 0; } 100% { opacity: 0; } }

/* Tablet */
@media (max-width: 1080px) {
  .index-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .index-frame { width: 0; }
  .rungs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rung { min-height: 120px; }
  .platform { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .platform h3 { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav-in { grid-template-columns: auto 1fr; grid-template-areas: "brand tools" "links links"; }
  .brand img { width: 128px; }
  .nav-in { column-gap: 12px; }
  .nav-tools { gap: 8px; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; }
  .nav-actions[data-open="false"] { display: none; }
  .nav-actions { flex-direction: column; align-items: flex-start; padding-bottom: 12px; }

  .hero-head { min-height: calc(48svh - var(--nav-h)); padding-top: 32px; padding-bottom: 56px; }
  .hero-lede { margin-top: 24px; }
  .hero-title { white-space: normal; }
  .folders { width: 100%; padding-top: 32px; }
  .folder { height: 52px; }
  .folder-front { height: auto; }
  .folder .tab { height: 32px; padding: 3px 22px 0; font-size: var(--step-small); clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 100%, 0 100%); }
  .folder-iron { --tab-x: 4%; }
  .folder-bronze { --tab-x: 36%; }
  .folder-silver { --tab-x: auto; }
  .folder-silver .tab { left: auto; right: 4%; }
  .folder-gold { --tab-x: 4%; }
  .folder-front { --tab-x: auto; padding: 24px 16px 32px; }
  .folder-front .tab { left: auto; right: 4%; }
  .front-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .trial-offer { margin-top: 28px; }

  .ch { min-height: 0; padding-block: 72px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 8px; margin-top: 40px; }
  .about-copy { grid-template-columns: 1fr; margin-top: 48px; }
  .about-text { font-size: var(--step-body); }

  .coaching { padding-block: 72px; }
  .index-list { gap: 28px; }
  .index-row[data-preview] { grid-template-columns: minmax(0, 1fr) 88px; }
  .index-thumb { width: 88px; }

  .chapter { min-height: 100svh; }
  .chapter-field { position: relative; inset: auto; min-height: 100svh; display: flex; flex-direction: column; gap: 20px; padding: 20px; }
  .chapter-title, .chapter-text, .chapter-link { position: static; }
  .chapter-pic { position: relative; left: auto; top: auto; height: 60svh; align-self: center; transform: none; }
  .motion .chapter .chapter-pic, .motion .chapter.is-in .chapter-pic { transform: none; }
  .chapter-link { justify-items: start; text-align: left; }

  .statement { font-size: var(--step-head); }
  .pricing-row { grid-template-columns: 1fr; margin-top: 40px; }
  .pricing-actions { justify-self: stretch; justify-items: start; }
  .pricing-actions .btn { width: 100%; }
  .picker { grid-template-columns: minmax(0, 1fr); grid-template-areas: "out" "label" "range"; }
  .picker-out { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "badge league" "badge rate" "level level"; column-gap: 14px; row-gap: 8px; }
  .picker-rate { justify-self: start; }
  .statement, .picker-out { overflow-wrap: anywhere; }
  .picker-badge { width: 72px; height: 72px; }
  .rungs { grid-template-columns: 1fr; }
  .rung { grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; min-height: 0; column-gap: 12px; padding: 8px 12px; }
  .rung-badge { width: 32px; height: 32px; margin: 0; }
  .rung-base .rung-name { grid-column: 2; }
  .rung-levels span { display: inline; }

  .how h2 { margin-bottom: 40px; }
  .stages { flex-direction: column; gap: 24px; }
  .stage-bar { height: auto; min-height: 72px; transform-origin: left top; }
  .stage-1 .stage-bar { min-height: 72px; }
  .stage-2 .stage-bar { min-height: 100px; }
  .stage-3 .stage-bar { min-height: 160px; }

  .access-head { grid-template-columns: 1fr; }
  .platforms { gap: 80px; margin-top: 48px; }
  .platform { grid-template-columns: minmax(0, 1fr); }
  .platform-actions, .availability { justify-self: start; }

  .start { min-height: 80svh; }
  .start-in { min-height: calc(80svh - 144px); }
  .start-title { font-size: var(--step-head); }
  .start-row { grid-template-columns: 1fr; padding-top: 48px; }
  .start-actions { justify-self: stretch; justify-items: start; }
  .start-actions .btn { width: 100%; }

  .mark { height: 22svh; min-height: 140px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Narrow phones: logo, Open app and Menu stay on one row; both controls keep a 44px target */
@media (max-width: 400px) {
  .brand img { width: 108px; }
  .nav-app { padding: 10px 12px; }
  .menu-toggle { padding: 10px 12px; }
}
