/* home.css - the My Mentor AI home page (site build of v2/home/page.css, approved 2026-11-21). Loaded by the home's
   front matter only (en/index.html and it/index.html share it unchanged). The kit's system.css gives the tokens, the
   header, the grid, the buttons and the footer parts; site.css gives the palette, the shared header and footer.
   Changes from v2/home/page.css, and nothing else: the footer rules moved to site.css (the footer is shared), the
   hero mark's url() points at /assets/img/mark.svg. The chapters are this page's own (main > .flow > section.ch),
   so none of the kit's one-screen section rules (main > section), the kit's closing footer or .fill apply. Two layouts:
   - flow (default; a phone, a tablet, a window under 600 tall, reduced motion, no script): every chapter at its
     content's height, the window flat in the study chapter, the loop screen in the loop chapter.
   - journey (html.j-on, from 1024 x 600, motion allowed): held chapters on CSS sticky stages, the one window fixed in
     main > .rig and moved by home.js (transform and opacity only).
   Layers: inside main (relative, z 1): .ground fixed z 0, .rig fixed z 1, .flow relative z 2; the site footer is
   relative z 3 after main; the site header is fixed z 50.
   No chapter and no ancestor of .rig has a transform, filter, contain or will-change. */

/* ---------------------------------------------------------------- type and tokens */
:root {
  --t-h2: clamp(36px, 2.67vw + 25.6px, 64px); --t-display: clamp(52px, 9vw, 150px);
  --src: #a3a8b0; --veil: 10 13 20;
  --win-h: min(640px, 100vh - var(--nav) - 180px);
  --win-top: calc(var(--nav) + (100vh - var(--nav) - var(--win-h)) / 2);
}
@media (max-width: 639px) { :root { --t-display: clamp(44px, 12.5vw, 64px); } }
@media (max-height: 819px) { :root { --win-h: min(640px, 100vh - var(--nav) - 120px); } }
html, body { background: #0a0d14; }
body { overflow-x: clip; }
h2 { letter-spacing: var(--display-tracking-xl); }
.m-arrow { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- the ground: the still picture, the canvas over it */
.ground { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #0a0d14; }
.ground__still, #scene { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; display: block; }
.ground__still > g[data-still] { opacity: 0; }
html:not([data-chapter]) .ground__still > [data-still="hero"],
html:is([data-chapter="hero"], [data-chapter="study"]) .ground__still > [data-still="hero"],
html[data-chapter="problem"] .ground__still > [data-still="ask"],
html[data-chapter="features"] .ground__still > [data-still="tools"],
html[data-chapter="loop"] .ground__still > [data-still="loop"],
html:is([data-chapter="pricing"], [data-chapter="company"], [data-chapter="audiences"]) .ground__still > [data-still="calm"] { opacity: 1; }
#scene { opacity: 0; transition: opacity 900ms cubic-bezier(.22, 1, .36, 1); }
html.has-gl #scene { opacity: 1; }
html.has-gl .ground__still { opacity: 0; transition: opacity 900ms cubic-bezier(.22, 1, .36, 1); }
html:is(.is-shot, .is-reduced) :is(#scene, .ground__still) { transition: none; }

main { position: relative; z-index: 1; }
.flow { position: relative; z-index: 2; }
.ch { position: relative; background: transparent; }
.rig { display: none; }

/* a soft dark veil behind body copy on the dark ground: the scene stays calm under every text block */
.veil { position: relative; }
.veil::before {
  content: ""; position: absolute; inset: -16% -12%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgb(var(--veil) / .86), rgb(var(--veil) / .62) 58%, rgb(var(--veil) / 0));
}
@media (min-width: 640px) and (max-width: 1023px) { .veil::before { inset: -10% -5%; } }
@media (max-width: 639px) {
  .veil::before { inset: -8% -6%; background: radial-gradient(closest-side, rgb(var(--veil) / .92), rgb(var(--veil) / .66) 58%, rgb(var(--veil) / 0)); }
}

/* ---------------------------------------------------------------- flow layout: every chapter at its content's height */
.ch { padding: calc(var(--nav) + 48px) 0 72px; }
@media (max-width: 639px) { .ch { padding-bottom: 48px; } }
.ch__stage { position: relative; }
.ring-slot, .rail { display: none; }

/* ================================================================ 1. hero */
.ch--hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; }
.hx { width: min(100% - 2 * var(--gut), var(--container)); }
.hx__words { grid-column: 1 / -1; }
@media (min-width: 1024px) { .hx__words { grid-column: 1 / 8; } }
.hx__tag { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--font-mono); letter-spacing: .02em; color: var(--ink); }
.hx__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.hx__sub { color: var(--src); }
.ch--hero h1 { margin-top: 28px; font-size: clamp(46px, min(6.4vw, 11.5vh), 104px); line-height: .98; letter-spacing: -0.045em; max-width: 8em; }
.hero__mark { display: inline-block; width: .74em; height: .68em; margin-right: .1em; vertical-align: -.02em;
  background: url("/assets/img/mark.svg") center / contain no-repeat; }
.hx__lead { margin-top: 28px; max-width: 46ch; font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }
.hx .btn-row { margin-top: 40px; }
html.j-on .ch--hero { height: 100vh; height: 100svh; min-height: 0; padding: 0 0 112px; }
@media (max-height: 819px) {
  html.j-on .ch--hero { padding-bottom: 64px; }
  html.j-on .hx__lead { font-size: var(--t-body); margin-top: 20px; }
  html.j-on .hx .btn-row { margin-top: 28px; }
}
/* the entrance waits (head script h-enter) until page.js has set the lines in their masks, 2.5 s at most */
html.h-enter:not(.h-enter-go) .hx__words { opacity: 0; }
@media (max-width: 639px) {
  .ch--hero h1 { font-size: clamp(42px, 11.8vw, 52px); }
  .hx .btn-row { flex-direction: column; align-items: stretch; }
  .hx .btn-row > .btn { width: 100%; justify-content: center; }
}

/* ================================================================ 2. study */
.study__side { grid-column: 1 / -1; }
.caps { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.cap h3 { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); }
.cap p { margin-top: var(--s-2); color: var(--ink); max-width: 40ch; }
@media (min-width: 640px) and (max-width: 1023px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.win-slot { grid-column: 1 / -1; margin-top: var(--s-7); min-width: 0; }

/* ---------------------------------------------------------------- the window (one element; flow look first) */
.win {
  --fx-bg: var(--p-surface); --fx-surface: var(--p-bg); --fx-ink: var(--p-ink); --fx-muted: #9aa1ab;
  --fx-accent: var(--p-accent); --fx-accent-ink: var(--p-accent-ink); --ui-font: var(--font-text); --ui-radius: 12px;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 40px minmax(0, 1fr);
  min-width: 0; max-width: 100%; font: 400 13px/20px var(--font-text); color: var(--u-ink);
  background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .7), 0 0 0 1px rgb(233 237 243 / .04);
}
.app__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); white-space: nowrap; min-width: 0; }
.app__crumb { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.app__crumb img { width: 15px; height: 14px; flex: none; }
.app__crumb i { font-style: normal; opacity: .5; }
.app__crumb b { font-weight: 500; color: var(--u-ink); overflow: hidden; text-overflow: ellipsis; }
.app__lang { padding: 3px 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--u-line-2); }
.win__body { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; min-width: 0; }
.win__doc { display: none; position: relative; min-width: 0; min-height: 0; overflow: hidden; flex-direction: column;
  background: var(--u-fill); padding: 10px 20px 0; }
.win__doc::after { content: ""; position: absolute; inset: auto 0 0 0; height: 56px; pointer-events: none; background: linear-gradient(transparent, var(--u-fill)); }
.win__tutor { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.win__loop { display: none; }
@media (min-width: 1024px) {
  .win__body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .win__doc { display: flex; }
  .win__tutor { border-left: 1px solid var(--u-line); }
}

/* the document's toolbar row (the app's own labels), small ghost controls */
.doc-bar { display: flex; align-items: center; gap: 6px; flex: none; height: 34px; margin-bottom: 8px; font-size: 12px; line-height: 16px; color: var(--u-muted); white-space: nowrap; min-width: 0; }
.doc-bar__c { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--u-line-2); }
.doc-bar__pg { display: inline-flex; align-items: center; gap: 6px; }
.doc-bar__ic { width: 24px; padding: 0; justify-content: center; }
.doc-bar__ic svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.doc-bar__n { font-variant-numeric: tabular-nums; color: var(--u-ink); padding: 0 2px; }
.doc-bar__sp { flex: 1; }
/* the document page is white paper, as in the real app */
.doc-paper.ui {
  --fx-bg: #ffffff; --fx-ink: #15181d; --fx-muted: #5f6670; --fx-accent: #0fb5a8; --fx-accent-ink: #ffffff;
  width: auto; padding-right: 0; position: relative; flex: 1 1 auto; min-height: 0;
}
.doc-paper .ui-doc__page { border-radius: 6px 6px 0 0; }
.doc-paper .ui-doc__text { font-size: 13px; }
.study__selp { position: relative; }
.study__sel { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* the selection menu the real app opens on selected text, under the selected line */
.ask-menu { position: absolute; left: 38%; top: calc(100% + 6px); z-index: 3; display: grid; gap: 2px; padding: 6px; border-radius: 10px;
  background: #ffffff; color: #15181d; font-size: 13px; line-height: 20px; box-shadow: 0 0 0 1px rgb(0 0 0 / .08), 0 14px 32px -12px rgb(0 0 0 / .45); }
.ask-menu span { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.ask-menu span:first-child { background: rgb(15 181 168 / .12); }
.ask-menu svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* the tutor panel: tabs (a picture of the app's tabs, not controls) and four views */
.tutor-tabs { position: relative; display: none; gap: 2px; padding: 10px 12px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); flex: none; cursor: default; white-space: nowrap; }
.tutor-tabs > span[data-tab] { position: relative; z-index: 1; padding: 4px 12px; border-radius: 6px; line-height: 20px; }
.tutor-tabs > span.is-on { color: var(--u-ink); font-weight: 500; }
.tutor-tabs__ind { position: absolute; z-index: 0; left: 12px; top: 10px; height: 28px; width: 60px; border-radius: 6px; background: var(--u-fill-3); transform-origin: 0 50%; }
.tutor-views { position: relative; min-height: 0; }
/* flow: the four views one under the other, each with its tab's name */
.tutor-view + .tutor-view { border-top: 1px solid var(--u-line); }
.tutor-view::before { content: attr(data-label); display: inline-flex; margin: 14px 16px 0; padding: 4px 12px; border-radius: 6px;
  background: var(--u-fill-3); color: var(--u-ink); font-weight: 500; }
.tutor-chat.ui-chat { width: auto; overflow: visible; }
.tutor-chat .ui-chat__body { min-height: 0; padding: 16px; gap: 12px; }
.tutor-chat .ui-msg--bot, .lesson .ui-msg--bot { max-width: 100%; }
.tutor-chat .ui-msg--me, .lesson .ui-msg--me { max-width: 85%; }
.tutor-chat .ui-msg__text, .tutor-chat .ui-msg__col { overflow-wrap: anywhere; }
.win img.ui-msg__av { width: 20px; height: 19px; flex: none; margin-top: 2px; }
.win .ui-msg__col { color: var(--u-text-2); }
/* Lesson: the stage bar, the request bubble, the tutor's question, the two answers at the panel's foot */
.lesson, .fcard, .quiz { display: flex; flex-direction: column; gap: 12px; padding: 16px; min-height: 100%; }
.lesson__stages { display: flex; flex-wrap: wrap; gap: 2px; color: var(--u-muted); }
.lesson__stages span { padding: 3px 10px; border-radius: 99px; }
.lesson__stages .is-on { background: var(--u-accent); color: var(--u-accent-ink); font-weight: 500; }
.lesson__req { align-self: flex-end; margin-top: 4px; }
.lesson__answers { margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt { display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 10px; border-radius: 8px; text-align: center;
  color: var(--u-ink); box-shadow: inset 0 0 0 1px var(--u-line-2); }
/* FlashCard: one large card, the counter between two arrows, the suggestion */
.fcard__card { flex: 1 1 auto; min-height: 150px; display: grid; place-items: center; padding: 24px; border-radius: 12px; text-align: center;
  background: var(--u-tint); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--u-accent) 28%, transparent);
  font-size: 17px; line-height: 24px; font-weight: 500; color: var(--u-ink); text-wrap: balance; }
.fcard__nav { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; color: var(--u-muted); font-variant-numeric: tabular-nums; }
.fcard__nav span { color: var(--u-ink); }
.fcard__nav svg, .fcard__hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fcard__hint { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--u-muted); }
/* Quiz: the counter, the question, four answers in a 2 x 2 grid at the foot (one wrong pick, the right answer) */
.quiz__meta { font-weight: 500; color: var(--u-ink); }
.quiz__q { font-size: 15px; line-height: 22px; font-weight: 500; color: var(--u-ink); }
.quiz__opts { margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quiz__opts li { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 10px; border-radius: 8px; text-align: center;
  box-shadow: inset 0 0 0 1px var(--u-line-2); }
.quiz__opts .is-wrong { background: rgb(255 120 110 / .1); box-shadow: inset 0 0 0 1px rgb(255 120 110 / .5); color: var(--u-ink); }
.quiz__opts .is-right { background: var(--u-tint); box-shadow: inset 0 0 0 1px var(--u-accent); color: var(--u-ink); font-weight: 500; }

/* ---------------------------------------------------------------- the window in the journey (in main > .rig) */
html.j-on .rig { display: block; position: fixed; inset: 0; z-index: 1; perspective: 1600px; perspective-origin: 50% 40%; pointer-events: none; }
.rig > .win {
  --wrapw: min(100% - 2 * var(--gut), var(--container));
  --col: calc((var(--wrapw) - 11 * var(--gutter)) / 12);
  position: absolute; margin: 0;
  left: calc((100% - var(--wrapw)) / 2 + 4 * (var(--col) + var(--gutter)));
  width: calc(8 * var(--col) + 7 * var(--gutter));
  top: var(--win-top); height: var(--win-h);
  will-change: transform;
  transform: translateY(calc(100vh - var(--win-top) + 24px)) scale(.9);   /* below (flat, so GSAP reads it cleanly), until page.js takes it */
}
.rig > .win .win__body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.rig > .win .win__doc { display: flex; }
.rig > .win .win__tutor { border-left: 1px solid var(--u-line); }
.rig > .win .tutor-tabs { display: flex; }
.rig > .win .tutor-views { flex: 1; overflow: hidden; }
.rig > .win .tutor-view { position: absolute; inset: 0; }
.rig > .win .tutor-view:not(.is-on) { opacity: 0; visibility: hidden; }
.rig > .win .tutor-view::before { display: none; }
.rig > .win .tutor-view + .tutor-view { border-top: 0; }
.rig > .win .lesson, .rig > .win .fcard, .rig > .win .quiz { height: 100%; }
.rig > .win .win__loop { display: block; position: absolute; left: 0; right: 0; top: 40px; bottom: 0; background: var(--u-bg); opacity: 0; overflow: hidden; }
@media (max-width: 1279px) { .rig > .win .tutor-tabs > span[data-tab] { padding: 4px 9px; } }
/* a short laptop window (600-819 tall): the document keeps the selected line and its menu in view */
@media (max-height: 819px) {
  .rig > .win .doc-bar__opt { display: none; }
  .rig > .win .doc-bar { height: 30px; margin-bottom: 6px; }
  .rig > .win .doc-paper .ui-doc__page { padding: 18px 20px 24px; }
  .rig > .win .doc-paper .ui-doc__title { font-size: 15px; line-height: 20px; margin: 2px 0 8px; }
  .rig > .win .doc-paper .ui-doc__text { font-size: 12px; line-height: 18px; }
  .rig > .win .doc-paper .ui-doc__text + .ui-doc__text { margin-top: 6px; }
  .rig > .win .fcard__card { font-size: 15px; line-height: 22px; }
}

/* ---------------------------------------------------------------- study in the journey: held 150vh */
html.j-on .ch--study { height: 250vh; height: 250svh; padding: 0; }
html.j-on .ch__stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
html.j-on .ch--study .win-slot { display: none; }
html.j-on .study__side { grid-column: 1 / 5; padding-top: var(--win-top); padding-right: 32px; }   /* text ends at x 458.7 (1440), clear of the note page's left edge (x 462-479, scene) */
html.j-on .study__side.veil::before { inset: -10% -24px -16% -12%; }
html.j-on .rail { display: flex; gap: 6px; margin-top: 32px; }
html.j-on .rail i { position: relative; display: block; width: 28px; height: 2px; border-radius: 2px; overflow: hidden; background: var(--line-strong); }
html.j-on .rail b { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
html.j-on .rail i:first-child b { transform: none; }
html.j-on .caps { grid-template-columns: minmax(0, 1fr); margin-top: 32px; gap: 0; }
html.j-on .cap { grid-area: 1 / 1; }
html.j-on .cap:not(.is-on) { opacity: 0; visibility: hidden; }
html.j-on .cap p { font-size: var(--t-lead); line-height: 1.5; }
@media (max-height: 819px) {
  html.j-on .study__side h2 { font-size: 48px; }
  html.j-on .rail { margin-top: 24px; }
  html.j-on .caps { margin-top: 24px; }
  html.j-on .cap p { font-size: var(--t-body); }
}

/* ================================================================ 3. the statement */
.stmt { display: flex; flex-direction: column; }
.stmt__line { font-size: var(--t-display); line-height: .94; letter-spacing: -0.045em; max-width: 4em; text-wrap: wrap; }
.stmt__foot { margin-top: var(--s-8); row-gap: var(--s-5); }
.stmt__foot p { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }
.stmt__lead strong { font-weight: 500; color: var(--accent); }
.stmt__side { display: grid; gap: var(--s-4); }
.stmt__foot .stmt__src { font-size: var(--t-small); color: var(--src); }
@media (min-width: 640px) { .stmt__lead { grid-column: 1 / 7; } .stmt__side { grid-column: 7 / 13; } }
@media (min-width: 1024px) { .stmt__lead { grid-column: 1 / 6; } .stmt__side { grid-column: 7 / 13; } }
/* flow: the words sit low, the page of points stands above them (the scene, upper part of the screen) */
.ch--ask .stmt { min-height: calc(100vh - var(--nav) - 120px); min-height: calc(100svh - var(--nav) - 120px); justify-content: flex-end; }
html.j-on .ch--ask { height: 140vh; height: 140svh; padding: 0; }
html.j-on .ch--ask .stmt { height: 100%; min-height: 0; padding: 152px 0 64px; justify-content: flex-start; }
html.j-on .stmt__foot { margin-top: auto; }
@media (max-height: 819px) {
  html.j-on .stmt__line { font-size: min(9vw, 15vh); }
  html.j-on .ch--ask .stmt { padding-top: calc(var(--nav) + 40px); padding-bottom: 48px; }
  html.j-on .stmt__foot p { font-size: var(--t-body); }
}

/* ================================================================ 4. the nine tools */
/* the veil sits on .tools__main (h2, lead, list, coming-soon line) only, the same area as on 22/11; the early-access
   block (4b) follows it in .tools__col without a veil, so the form does not grow the painted gradient layer */
.tools__col { grid-column: 1 / -1; }
@media (min-width: 1024px) { .tools__col { grid-column: 1 / 6; } }
.tools__lead { margin-top: 16px; font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }
.tools__list { margin-top: 32px; border-bottom: 1px solid var(--line); }
.tools__list li { display: grid; grid-template-columns: 40px 18px minmax(0, 1fr); align-items: center; min-height: 42px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.tools__n { font: 400 13px/1 var(--font-mono); color: var(--src); }
.tools__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); transform-origin: 50% 50%; }
.tools__list li.is-key .tools__dot { background: var(--accent); }
/* without the scene every mark is lit (page.js lights them from cardIn only under html.has-gl) */
html:not(.has-gl) .tools__dot { opacity: 1 !important; transform: none !important; }
.tools__next { margin-top: 24px; max-width: 52ch; color: var(--ink); }
.tools__label { display: block; margin-bottom: var(--s-1); font: 500 13px/1.4 var(--font-mono); color: var(--src); }
html.j-on .ch--tools { height: 220vh; height: 220svh; padding: 0; }
html.j-on .tools { position: relative; height: 100%; padding-top: var(--nav); align-content: center; }
html.j-on .ring-slot { display: block; position: absolute; left: calc(50% + var(--gutter) / 2); right: 0; top: 112px; bottom: 80px; pointer-events: none; }
/* the early-access block (4b) shares the held stage: in the journey the list and the coming-soon line are tighter
   than before (decision 241, 2026-11-23), so the column with the form fits 1440 x 900 and 1280 x 720 also in Italian,
   whose heading and coming-soon line run one line longer */
html.j-on .tools__lead { margin-top: 12px; }
html.j-on .tools__list { margin-top: 16px; }
html.j-on .tools__list li { min-height: 26px; font-size: 16px; }
html.j-on .tools__next { margin-top: 12px; font-size: var(--t-small); }
@media (max-height: 819px) {
  html.j-on .tools__col h2 { font-size: 44px; }
  html.j-on .tools__lead { margin-top: 8px; font-size: var(--t-body); }
  html.j-on .tools__list { margin-top: 12px; }
  html.j-on .tools__list li { min-height: 23px; font-size: 14px; }
  html.j-on .tools__next { margin-top: 8px; }
}

/* ---------------------------------------------------------------- 4b. early access to MMAI 2.0 (decision 241)
   One calm block under the coming-soon line, in the tools column (c1-c5; the ring slot is untouched). It is built
   from the contact form's parts (contact-form.css, on every page: cf-input, cf-label, cf-error, cf-status,
   cf-submit, cf-checkbox, cf-notice, cf-hp); these ea- rules only size and place them. Flow: one field under the
   other on a phone, the three fields in one row from 560 px, then the consent line with the button. Journey: the
   same rows in small type (below). Field errors are one short line each, so a mistake adds little height. */
.ea { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); max-width: none; color: var(--ink);
  scroll-margin-top: calc(var(--nav) + 16px); }
.ea__head { font-size: var(--t-small); line-height: 1.45; color: var(--src); }
.ea__title { display: block; margin: 0 0 4px; font: 500 var(--t-body)/1.4 var(--font-text); letter-spacing: 0; color: var(--ink); }
.ea__intro { display: block; margin: 0; }
.ea .cf-notice { margin: 16px 0 0; padding: 12px 14px; font-size: var(--t-small); line-height: 1.45; }
.ea__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 16px; }
@media (min-width: 560px) {
  .ea__form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.1fr); column-gap: 12px; }
  .ea__foot, .ea__form > .cf-status { grid-column: 1 / -1; }
}
.ea .cf-field { gap: 6px; align-content: start; }
.ea .cf-label { font: 500 13px/1.3 var(--font-text); color: var(--src); overflow-wrap: anywhere; }
.ea .cf-optional { font-weight: 400; color: var(--src); }
.ea .cf-input { min-height: 44px; padding: 8px 12px; border-radius: var(--r-btn, 8px); background: var(--p-surface); }
.ea .cf-error { font-size: 13px; line-height: 1.35; }
.ea__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ea__foot .cf-field--check { flex: 1 1 240px; min-width: 0; column-gap: 10px; }
.ea .cf-checkbox { width: 18px; height: 18px; margin-top: 1px; }
.ea .cf-check-label { font-size: var(--t-small); line-height: 1.45; color: var(--ink); }
.ea .cf-check-label a { white-space: nowrap; }
.ea .cf-submit { flex: none; min-height: 44px; padding: 0 20px; font: 500 15px/1 var(--font-text); border-radius: var(--r-btn, 8px); white-space: nowrap; }
.ea .cf-status { font-size: var(--t-small); line-height: 1.45; }
@media (max-width: 559px) {
  .ea__foot { flex-direction: column; align-items: stretch; }
  .ea__foot .cf-field--check { flex: none; }
  .ea .cf-submit { width: 100%; padding-block: 10px; line-height: 1.3; white-space: normal; }
}
/* journey: the heading alone on its line (the intro line stays for screen readers only; the labels, the consent line
   and the button say the same), small type, inputs 34 tall (32 under 820 tall) */
html.j-on .ea { margin-top: 12px; padding-top: 10px; }
html.j-on .ea__intro { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
html.j-on .ea__head { line-height: 1.4; }
html.j-on .ea__title { margin: 0; font-size: 15px; }
html.j-on .ea__foot { column-gap: 16px; }
html.j-on .ea__form { row-gap: 8px; margin-top: 8px; }
html.j-on .ea .cf-field { gap: 4px; }
html.j-on .ea .cf-label { font-size: 12px; }
html.j-on .ea .cf-input { min-height: 34px; padding: 4px 10px; }
html.j-on .ea .cf-check-label { font-size: 13px; line-height: 1.35; }
html.j-on .ea .cf-checkbox { width: 16px; height: 16px; }
html.j-on .ea .cf-submit { min-height: 34px; padding: 0 16px; font-size: 14px; }
html.j-on .ea :is(.cf-error, .cf-status) { font-size: 12px; line-height: 1.35; }
@media (max-height: 819px) {
  html.j-on .ea { margin-top: 10px; padding-top: 8px; }
  html.j-on .ea .cf-input { min-height: 32px; padding-block: 4px; }
  html.j-on .ea .cf-submit { min-height: 32px; }
  html.j-on .ea .cf-check-label { font-size: 12px; line-height: 1.3; }
}

/* ================================================================ 5. the study loop */
.loop__copy { grid-column: 1 / -1; }
@media (min-width: 1024px) { .loop__copy { grid-column: 1 / 6; } }
.loop__steps { margin-top: 32px; border-bottom: 1px solid var(--line); }
.loop__steps li { display: grid; grid-template-columns: 44px 16px minmax(0, 1fr); align-items: center; min-height: 56px; padding-block: 8px;
  border-top: 1px solid var(--line); font-size: 18px; line-height: 1.35; }
.loop__n { font: 400 13px/1 var(--font-mono); color: var(--src); }
.loop__on { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform-origin: 50% 50%; }
.loop__close { margin-top: 24px; font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }
.loop__skip { display: inline-block; margin-top: 16px; font-size: var(--t-small); color: var(--src); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.loop__skip:hover { color: var(--ink); }
.loop-slot { grid-column: 1 / -1; margin-top: var(--s-7); min-width: 0; }
html.j-on .ch--loop { height: 220vh; height: 220svh; padding: 0; }
html.j-on .loopx { position: relative; height: 100%; align-content: start; }
html.j-on .loop__copy { padding-top: 152px; }
html.j-on .loop__copy.veil::before { inset: -10% -24px -16% -12%; }
html.j-on .loop-slot { display: none; }
@media (max-height: 819px) {
  html.j-on .loop__copy { padding-top: calc(var(--nav) + 40px); }
  html.j-on .loop__copy h2 { font-size: 48px; }
  html.j-on .loop__steps { margin-top: 20px; }
  html.j-on .loop__steps li { min-height: 44px; font-size: 16px; padding-block: 4px; }
  html.j-on .loop__close { margin-top: 16px; font-size: var(--t-body); }
}

/* the loop screen: one block. Flow: a panel of its own in .loop-slot; journey: inside the window under its bar */
.loop-screen { font-size: 16px; line-height: 1.45; color: var(--ink); }
.loop-slot .loop-screen { background: var(--p-surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.loop-screen .pa__row:not(.pa__row--action) { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.loop-screen .loop__head { grid-template-columns: minmax(0, 1fr) auto; padding-block: 20px; }
.loop__file { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.loop__file img { width: 16px; height: 15px; flex: none; }
.loop-screen .loop__head b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loop__muted { color: var(--src); }
.loop__tag { font: 500 var(--t-label)/1 var(--font-mono); color: var(--src); }
.loop__stages { display: flex; flex-wrap: wrap; gap: 6px; }
.loop__stages i { font-style: normal; padding: 3px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; }
.loop__wrong { display: block; margin-top: 2px; color: var(--src); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.loop-screen .pa__row--action { display: flex; align-items: center; gap: 20px; padding: 20px 28px; }
.loop-screen [data-action] { height: 48px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 500 16px/1 var(--font-text); cursor: default; flex: none; }
.loop__state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--src); white-space: nowrap; }
.loop__state i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
/* in the window (journey): 17px rows, 60 tall, the action row 88 */
.win__loop .loop-screen { font-size: 17px; line-height: 1.35; color: var(--u-ink); }
.win__loop .loop-screen .pa__row:not(.pa__row--action) { min-height: 60px; padding: 6px 28px; border-bottom-color: var(--u-line); }
.win__loop .loop-screen .pa__row--action { min-height: 88px; padding-block: 0; }
@media (max-height: 819px) {
  .win__loop .loop-screen { font-size: 15px; }
  .win__loop .loop-screen .pa__row:not(.pa__row--action) { min-height: 41px; padding-block: 3px; }
  .win__loop .loop-screen .pa__row--action { min-height: 64px; }
  .win__loop .loop-screen [data-action] { height: 40px; font-size: 15px; }
  .win__loop .loop__stages i { padding: 1px 8px; font-size: 13px; }
}
@media (max-width: 639px) {
  .loop-screen .pa__row:not(.pa__row--action) { grid-template-columns: 72px minmax(0, 1fr); padding: 14px 16px; gap: 10px; }
  .loop-screen .pa__row--action { flex-wrap: wrap; row-gap: 8px; padding: 16px; }
  .loop__state { white-space: normal; }
}

/* ================================================================ 6. pricing (not held) */
.prc__head { align-items: end; row-gap: var(--s-4); }
.prc__head p { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); max-width: 46ch; }
@media (min-width: 1024px) { .prc__head > h2 { grid-column: 1 / 7; } .prc__head > p { grid-column: 7 / 13; } }
.price__grid { margin-top: 48px; align-items: stretch; }
.ch--pricing .card--plan { display: grid; grid-template-rows: auto 1fr auto; gap: var(--s-5); background: var(--p-surface); }
.ch--pricing .card--plan h3 { color: var(--muted); }
.ch--pricing .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
.ch--pricing .price .t-stat { font-size: var(--t-h2); line-height: 1; letter-spacing: var(--display-tracking-xl); }
.ch--pricing .price .muted { font-size: var(--t-body); color: var(--src); }
.ch--pricing .card--plan .btn { width: 100%; justify-content: center; }
.faq__grid { margin-top: 64px; row-gap: 0; }
@media (min-width: 1024px) { .faq__grid > .faq:first-child { grid-column: 1 / 7; } .faq__grid > .faq:last-child { grid-column: 7 / 13; } }
@media (max-width: 1023px) { .faq__grid > .faq + .faq > .faq__item:first-child { padding-top: var(--s-5); } }
.ch--pricing .faq__item p { color: var(--ink); }
html.j-on .ch--pricing { min-height: 120vh; padding: 160px 0 120px; }

/* ================================================================ 7. company (not held) */
.co__head { display: grid; gap: var(--s-4); max-width: 760px; }
@media (min-width: 1024px) { .co__head { max-width: calc(58.33% + 10px); } }
.co__head p { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }
.co__grid { margin-top: 48px; row-gap: var(--s-7); align-items: start; }
@media (min-width: 1024px) { .co__left { grid-column: 1 / 7; } .co__right { grid-column: 7 / 13; } }
.who > li, .facts > li { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); align-items: baseline; padding-block: var(--s-5); }
.who > li:first-child, .facts > li:first-child { padding-top: var(--s-1); }
.who > li > p, .facts > li > p { grid-column: 2; grid-row: 1; }
.who .rows__name { font: 500 13px/1.4 var(--font-mono); letter-spacing: .01em; color: var(--src); }
.facts .rows__name { font: var(--display-weight) var(--t-h3)/1.15 var(--font-display); letter-spacing: var(--display-tracking); white-space: nowrap; }
.co__more { display: grid; justify-items: start; gap: var(--s-2); margin-top: 32px; }
.co__more > p { color: var(--ink); }
.co__more > .link:last-child { margin-top: var(--s-2); }
@media (max-width: 639px) {
  .who > li, .facts > li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .who > li > p, .facts > li > p { grid-column: 1; grid-row: auto; }
}
/* where students who used the platform study: under the facts, in the same veiled column. Each logo sits unaltered
   (no filter, no opacity) on its own white chip, the same size for all six, as the grant strip in the footer */
.unis { margin-top: var(--s-6); }
.unis__line { color: var(--ink); }
.unis__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-4); }
.unis__list > li { height: 76px; padding: 6px; background: #ffffff; border-radius: var(--r-sm); }
.unis__list img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 639px) { .unis__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html.j-on .ch--company { min-height: 100vh; padding: 152px 0 72px; }

/* ================================================================ 8. schools: the one light sheet */
.ch--aud { background: var(--bg); color: var(--ink); border-radius: clamp(24px, 3vw, 44px); overflow: clip; }
.ch--aud > .wrap { position: relative; z-index: 1; }
.aud { row-gap: var(--s-7); align-items: start; }
.aud__text { grid-column: 1 / -1; }
.aud__list { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 1024px) { .aud__text { grid-column: 1 / 6; } .aud__list { grid-column: 7 / 13; } }
.aud__text > .t-lead { margin-top: var(--s-4); color: var(--ink); max-width: 36ch; }
.aud__text > .link { margin-top: var(--s-5); }
.aud__rule { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.door { font-size: var(--t-small); line-height: 1.5; color: color-mix(in oklab, var(--ink) 80%, transparent); max-width: 44ch; }
.door .link { display: inline; }
.aud__checks.ui {
  --fx-bg: #ffffff; --fx-surface: #f4f5f7; --fx-ink: #0a0d14; --fx-muted: #54575f; --fx-accent: #0a0d14; --fx-accent-ink: #ffffff;
  width: 100%; max-width: 560px; background: var(--u-bg); border-radius: 12px; box-shadow: 0 0 0 1px var(--u-border), 0 18px 40px -24px rgb(10 13 20 / .35);
}
.aud__checks .ui-check.is-done .ui-check__label { color: var(--u-ink); }
.aud__checks .ui-check__label::after { display: none; }
.aud__checks .ui-checks__head { height: 60px; padding: 0 20px; }
.aud__checks .ui-checks__bar { margin: 0 20px 10px; }
.aud__checks .ui-check { height: 56px; padding: 0 20px; gap: 14px; font-size: 16px; line-height: 24px; }
.aud__checks .ui-check__box { width: 22px; height: 22px; }
@media (max-width: 639px) {
  .aud__checks .ui-check { height: 48px; padding: 0 16px; font-size: 15px; }
  .aud__checks .ui-checks__head { height: 52px; padding: 0 16px; }
  .aud__checks .ui-checks__bar { margin: 0 16px 8px; }
}
/* the ring as a thin ink line on the sheet (journey with the scene only; page.js sets the group's transform) */
.band-ring { display: none; position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; overflow: hidden; pointer-events: none; }
.band-ring ellipse { fill: none; stroke: #0a0d14; stroke-width: 1; }
.band-ring__g { opacity: 0; }
html.j-on.has-gl .band-ring { display: block; }
/* the words and the checklist sit in the middle of the sheet's height, so its lower half is not left empty and the
   ink line crosses behind the checklist (frame check 2026-11-21) */
html.j-on .ch--aud { min-height: 100vh; padding: calc(var(--nav) + 40px) 0 72px; }
html.j-on .ch--aud > .aud { min-height: calc(100vh - var(--nav) - 112px); align-content: center; align-items: center; }

/* ================================================================ 9. the close: the M slot, the line, the button */
.close { display: flex; flex-direction: column; align-items: flex-start; }
.close__mark { position: relative; width: 196px; height: 180px; flex: none; }
.close__mark::before { content: ""; position: absolute; inset: -40%; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(23 234 217 / .18), rgb(23 234 217 / 0)); transition: opacity 600ms ease; }
.close__mark img { position: relative; z-index: 1; width: 100%; height: 100%; transition: opacity 600ms ease; }
html.has-gl .close__mark::before, html.has-gl .close__mark img { opacity: 0; }
.close__words { margin-top: 40px; width: 100%; }
.close__line { font-size: var(--t-display); line-height: .96; letter-spacing: var(--display-tracking-xl); max-width: none; text-wrap: balance; }
@media (min-width: 1024px) { .close__line { max-width: calc(91.67% - 2px); } }
.close__note { margin-top: 32px; max-width: 46ch; font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }
.close > .btn--xl { margin-top: 40px; align-self: stretch; }
html.j-on .ch--close { min-height: 100vh; padding: 120px 0 60px; }
@media (max-width: 639px) { .close__mark { width: 130px; height: 120px; } .close__words { margin-top: 32px; } }

/* ================================================================ reduced motion: nothing waits, nothing moves */
@media (prefers-reduced-motion: reduce) {
  html.h-enter .hx__words { opacity: 1; }
  .close__mark::before, .close__mark img { transition: none; }
}
