/* TrainingWheels page CSS: the palette tokens start.mjs printed for the client's own colours, then
   only what sits inside a visual and the kit lacks (references/system.md). Loaded after the kit. */
:root {
  --p-bg: #f4f3ef; --p-surface: #ffffff; --p-ink: #1e1e21; --p-muted: #6b6b72;
  --p-accent: #f7e063; --p-accent-ink: #111111; --p-action: #1e1e21; --p-action-ink: #f4f3ef;
  --p-inv-bg: #1e1e21; --p-inv-surface: #2a2a2d; --p-inv-ink: #f4f3ef; --p-inv-muted: #9b9a99;
  --p-inv-accent: #f7e063; --p-inv-accent-ink: #111111; --p-inv-action: #f7e063; --p-inv-action-ink: #111111;
  --font-display: "Mona Sans", system-ui, sans-serif;
  --font-text: "Mona Sans", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
  --display-stretch: 104%;
  --ly-scale: 0.96;
}
  /* the client's logo: the L-wheel on its yellow tile */
  .tw-logo { width: 32px; height: 32px; flex: none; }
  .nav__logo { gap: 10px; }
  .closing .tw-logo { width: 44px; height: 44px; }

  /* hero: the Lane Discipline field (art/hero-lanes.js) is the stage's ground, the booking queue on it.
     The head row takes the product hero's layout (h1 left, lead and buttons right). */
  @media (min-width: 1024px) {
    .hero--product .hero__head { grid-template-rows: auto auto; row-gap: var(--s-5); }
    .hero--product .hero__head > :first-child { display: contents; }
    .hero--product .hero__head h1 { grid-column: 1 / span 7; grid-row: 1 / span 2; align-self: end; margin: 0; }
    .hero--product .hero__head .hero__lead { grid-column: 9 / -1; grid-row: 1; align-self: end; margin: 0; max-width: none; }
    .hero--product .hero__head > .btn-row { grid-column: 9 / -1; grid-row: 2; justify-content: flex-start; }
  }
  @media (min-width: 1024px) and (max-width: 1279px) {
    .hero--product .hero__head h1 { grid-column: 1 / span 6; }
    .hero--product .hero__head .hero__lead, .hero--product .hero__head > .btn-row { grid-column: 7 / -1; }
  }
  .lanes { background: #ebe8df; }
  .lanes > .lanes__canvas { position: absolute; left: -24px; top: -24px; pointer-events: none; }
  .lanes > .stage { z-index: 1; }
  .lanes .hero-win { --ax: 56px; --ay: 48px; width: min(860px, calc(100% - 112px)); }
  .lanes .hero-note { --bx: 96px; --by: 72px; width: 380px; }
  @media (max-width: 1279px) { .lanes .hero-note { display: none; } }
  @media (max-width: 639px) { .hero--product .hero__stage.lanes { aspect-ratio: auto; flex: 1 1 auto; min-height: 240px; margin-bottom: 0; } }
  @media (max-width: 1279px) { .lanes .hero-win { width: calc(100% - 112px); } }
  @media (min-width: 640px) and (max-width: 1023px) { .lanes .hero-win { --ax: 32px; --ay: 32px; width: calc(100% - 64px); } }
  @media (max-width: 639px) { .lanes .hero-win { width: auto; } }

  /* app-frame (sections-library.md, app-frame) */
  .app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
  .app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
  .app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
  .app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
  .app > .app__pane--open > .ui-calendar { max-width: 560px; margin-inline: auto; }
  @media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
  @media (max-width: 1023px) {
    .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    .app > .app__pane--list { max-height: 252px; }
    .app > .app__pane--list::after { display: none; }
    .app .ui-win__side { display: none; }
    .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
    .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
  }
  @media (max-width: 639px) {
    .app.ui { grid-template-rows: minmax(0, 1fr); }
    .app > .app__pane--list { display: none; }
    .app > .app__pane + .app__pane { border-top: 0; }
  }

  /* the desk sign-up form inside the learners frame: the product's own screen as live HTML */
  .nic-form { width: 100%; }
  .nic-form .ui-head { padding: 14px 18px; border-bottom: 1px solid var(--u-line); }
  .nic-form__body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 18px; }
  .nic-form__f { display: grid; gap: 6px; min-width: 0; }
  .nic-form__f--wide { grid-column: 1 / -1; }
  .nic-form__f > span { font-size: 12px; color: var(--u-muted); }
  .nic-form__in { color: var(--u-ink, #1e1e21); display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid var(--u-border); border-radius: 8px; font-size: 13px; background: var(--u-bg); white-space: nowrap; overflow: hidden; }
  .nic-form__in.is-mono { font-family: var(--font-mono); letter-spacing: .02em; }
  .nic-form__in.is-on { border-color: var(--p-ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--p-accent) 70%, transparent); }
  .nic-form__in.is-auto { background: color-mix(in oklab, var(--u-bg) 92%, var(--p-ink)); }
  .nic-form__in .ui-chip { margin-left: auto; }
  .nic-form__foot { display: flex; align-items: center; gap: 12px; padding: 0 18px 18px; font-size: 12px; color: var(--u-muted); }
  .nic-form__foot .ui-btn { margin-left: auto; }
  @media (max-width: 639px) { .nic-form__body { grid-template-columns: 1fr; } }
  .split-copy > * + * { margin-top: var(--s-6); }
  .facts { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
  .facts li { padding-top: var(--s-3); border-top: 1px solid var(--line); }
  @media (min-width: 640px) and (max-width: 1023px) { main .frame--split { --ratio: 56%; } }
  .panel .dg { --dg-muted: #3a4138; }
  @media (max-width: 639px) { #features .card > p { display: none; } }

  /* the 2x2 */
  #features .panel { --p-h: 320px; }
  @media (min-width: 640px) and (max-width: 1023px) { #features .panel { --p-h: 540px; } }
  @media (max-width: 639px) { #features .stage { --fade-h: 40px; } }
  @media (max-width: 639px) { #features .panel { --p-h: 180px; } }

  /* the record-book statement */
  #record-book .rb-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: var(--s-8); }
  #record-book .rb-facts p { padding-top: var(--s-4); border-top: 1px solid var(--line); line-height: 1.6; }
  #record-book .rb-facts p { margin: 0; }
  @media (max-width: 639px) { #record-book .rb-facts { grid-template-columns: 1fr; } }

  /* the booking flow diagram at section size */
  #flow .flow-frame { margin-top: var(--s-7); height: 520px; padding: 0; }
  #flow .flow-frame > .dg { position: absolute; inset: 0; }
  @media (max-width: 1023px) { #flow .flow-frame { height: 640px; } }
  @media (max-width: 639px) { #flow .flow-frame { height: 440px; } }
  /* the language menu beside the questions */
  .lang-pick { max-width: 410px; margin-top: var(--s-7); }
  .lang-pick .ui-head { padding: 14px 18px; border-bottom: 1px solid var(--u-line); }
  .lang-pick__list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; }
  .lang-pick__list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--u-ink); }
  .lang-pick__list li > :last-child { color: var(--u-muted); font-size: 13px; }
  .lang-pick__list li.is-on { background: color-mix(in oklab, var(--p-accent) 55%, white); }

/* the splits on a phone: one screen (the facts give way, the frame goes wide) */
@media (max-width: 639px) {
  .facts { display: none; }
  main .frame--split { --ratio: 62%; }
}
/* the statement at tablet width: the headline carries the screen */
@media (min-width: 640px) and (max-width: 1023px) { #record-book .mo-lt__type { font-size: 13vw; } }

/* the learner's exam stages: the product's own stage list as live HTML */
.stages .ui-head { padding: 14px 18px; border-bottom: 1px solid var(--u-line); }
.stages__list { list-style: none; margin: 0; padding: 6px 0; }
.stages__list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 18px; font-size: 13px; color: var(--u-ink); }
.stages__list li + li { border-top: 1px solid var(--u-line); }
.stages__dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--u-ink) 45%, transparent); justify-self: center; }
.stages__list li.is-done .stages__dot { background: var(--u-ink); border-color: var(--u-ink); }
.stages__list li.is-now { background: color-mix(in oklab, var(--p-accent) 45%, white); }
.stages__list li.is-now .stages__dot { border-color: var(--u-ink); box-shadow: inset 0 0 0 2px #fff; background: var(--u-ink); }
.stages__who { font-size: 12px; color: var(--u-muted); }
/* phone trims so each section holds its one screen */
@media (max-width: 639px) {
  #record-book .rb-facts { margin-top: var(--s-6); }
  #record-book .rb-facts p:nth-child(3) { display: none; }
  #flow .flow-frame { height: 360px; }
}
@media (max-width: 639px) { #features .ui-tg:nth-child(5) { display: none; } }

/* ---------- Bookings: the triptych's booking moments ---------- */
.ly-collage .ly-piece.pc-card, .ly-collage .ly-piece.pc-sms { display: grid; gap: 6px; padding: 16px 18px; background: #fff; color: var(--p-ink);
  box-shadow: 0 0 0 1px rgb(30 30 33 / .08), 0 18px 36px -18px rgb(30 30 33 / .35); font-size: 14px; }
.pc-lbl { font: 500 12px/1.2 var(--font-mono); color: var(--p-muted); }
.pc-card b { font-weight: 500; font-size: 17px; }
.pc-sub { color: var(--p-muted); }
.pc-card--on { box-shadow: 0 0 0 2px var(--p-ink), 0 18px 36px -18px rgb(30 30 33 / .35) !important; }
.pc-card--on .pc-lbl { color: var(--p-ink); }
.pc-rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-top: 4px; }
.pc-rows > span { color: var(--p-muted); }
.pc-rows > em { font-style: normal; text-align: right; }
.pc-rows--sheet > em { text-align: left; }
.ly-collage .ly-piece.pc-sms { background: var(--p-accent); }
.pc-sms .pc-lbl { color: var(--p-ink); }
.pc-sms p { margin: 0; line-height: 1.45; }
.pc-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; height: 120px; margin-top: 6px; }
.pc-week > span { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; font: 500 12px/1 var(--font-mono); color: var(--p-muted); text-align: center; }
.pc-week i { display: block; border-radius: 6px; background: rgb(30 30 33 / .82); }
.pc-week > .is-off i { background: repeating-linear-gradient(135deg, rgb(30 30 33 / .14) 0 6px, transparent 6px 12px); box-shadow: inset 0 0 0 1px rgb(30 30 33 / .2); }
.hero--triptych .ly-collage { background: var(--ground-bg, #cdd6c6); border-radius: var(--r-lg); }

/* the booking flow and the stage list at section size */
.flow-frame { margin-top: var(--s-7); height: 520px; padding: 0; }
.flow-frame > .dg { position: absolute; inset: 0; }
@media (max-width: 1023px) { .flow-frame { height: 640px; } }
@media (max-width: 639px) { .flow-frame { height: 360px; } }

/* ---------- Learners ---------- */
.hero__media.tw-media { background: var(--ground-bg, #cdd6c6); }
.tw-media > .stage { position: absolute; inset: 0; }
.tw-media > .ly-float { z-index: 2; }
@media (max-width: 639px) { .tw-media .at-corner { --ax: 16px !important; --ay: 16px !important; width: calc(100% - 32px) !important; } }
.stages-frame { margin-top: var(--s-7); height: 380px; padding: 0; }
.stage-names { margin-top: var(--s-6); }
.stage-names b { font-weight: 500; }
.stage-names p { margin: 6px 0 0; }
@media (min-width: 640px) and (max-width: 1023px) { .stage-names > .span-3 { grid-column: span 6; } }
@media (max-width: 639px) { .stages-frame { height: 330px; } .stage-names p { display: none; } .stage-names { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stage-names > .span-3 { grid-column: auto; } }
.sms-frame { background: var(--p-inv-surface, #2a2a2d); }

/* ---------- Payments ---------- */
.receipt-card { max-width: 410px; margin-top: var(--s-7); }
.receipt-card .ui-head { padding: 14px 18px; border-bottom: 1px solid var(--u-line); }
.receipt-card__rows { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; padding: 16px 18px; font-size: 14px; }
.receipt-card__rows dt { color: var(--u-muted); }
.receipt-card__rows dd { margin: 0; text-align: right; color: var(--u-ink); }

#features .card > .link { margin-top: var(--s-3); align-self: start; }

/* the word-highlight statement on the light ground: the strong words in ink (the L-plate yellow is too pale to read on it) */
#every-payment { --accent: var(--p-ink); }
#every-payment strong { font-weight: 600; }

/* the home statement's way on to the record book page */
#record-book .rb-more { margin-top: var(--s-7); }

/* ---------- Record book ---------- */
.rb-hero-piece { max-width: 720px; }
.rb-sheet .ui-head, .rb-log .ui-head { padding: 14px 18px; border-bottom: 1px solid var(--u-line); }
.rb-sheet__cols, .rb-sheet__rows li { display: grid; grid-template-columns: 40px 72px minmax(0, 1fr) 48px; gap: 12px; align-items: center; padding: 0 18px; }
.rb-sheet__cols { padding-block: 10px; font: 500 11px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--u-muted); border-bottom: 1px solid var(--u-line); }
.rb-sheet__rows { list-style: none; margin: 0; padding: 0; }
.rb-sheet__rows li { min-height: 44px; font-size: 13px; color: var(--u-ink); }
.rb-sheet__rows li + li { border-top: 1px dashed var(--u-line); }
.rb-sheet__rows li > :first-child, .rb-sheet__rows li > :nth-child(2), .rb-sheet__rows li > :last-child { font-family: var(--font-mono); font-size: 12px; color: var(--u-muted); }
.rb-sheet__rows li > :last-child { text-align: right; }
.rb-sheet__rows li.is-blank > :first-child { color: color-mix(in oklab, var(--u-muted) 60%, transparent); }
.rb-sheet__foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px 16px; font-size: 12px; color: var(--u-muted); border-top: 1px solid var(--u-line); }
@media (max-width: 639px) { .rb-sheet__cols, .rb-sheet__rows li { grid-template-columns: 28px 56px minmax(0, 1fr); } .rb-sheet__cols > :last-child, .rb-sheet__rows li > :last-child { display: none; } }

.rb-log__list { list-style: none; margin: 0; padding: 6px 0; }
.rb-log__list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; padding: 12px 18px; }
.rb-log__list li + li { border-top: 1px solid var(--u-line); }
.rb-log__list .ui-avatar { grid-row: span 2; }
.rb-log__what { font-size: 14px; color: var(--u-ink); }
.rb-log__why { grid-column: 2; font-size: 13px; color: var(--u-muted); }
.rb-log__who { grid-column: 3; grid-row: 1 / span 2; font: 500 11px/1.3 var(--font-mono); color: var(--u-muted); text-align: right; }
@media (max-width: 639px) { .rb-log__who { display: none; } .rb-log__list li { grid-template-columns: 32px minmax(0, 1fr); } }

/* three numbered columns under a section head */
.tw-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); margin-top: var(--s-8); }
.tw-trio > div { display: grid; align-content: start; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.tw-trio__n { font: 500 12px/1 var(--font-mono); color: var(--muted); }
.tw-trio h3 { font: 500 var(--t-lead)/1.3 var(--font-text); margin: 0; }
.tw-trio p { margin: 0; color: var(--muted); line-height: 1.6; max-width: 40ch; }
@media (max-width: 1023px) { .tw-trio { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ---------- Pricing ---------- */
/* the plans sit in the hero, so it grows with them rather than holding to one screen */
main > .hero.tw-pricing { height: auto; min-height: 100svh; }
.hero.tw-pricing > .wrap { height: auto; }
.tw-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: var(--s-8); align-items: stretch; }
.tw-plan { display: flex; flex-direction: column; gap: var(--s-4); padding: 28px; border-radius: var(--r-lg, 16px); background: var(--p-surface);
  box-shadow: 0 0 0 1px rgb(30 30 33 / .08), 0 18px 40px -28px rgb(30 30 33 / .35); text-align: left; }
.tw-plan--on { background: var(--p-inv-bg); color: var(--p-inv-ink);
  --bg: var(--p-inv-bg); --ink: var(--p-inv-ink); --muted: var(--p-inv-muted); --line: rgb(255 255 255 / .12); --line-strong: rgb(255 255 255 / .24);
  --action: var(--p-inv-action); --action-ink: var(--p-inv-action-ink);
  box-shadow: 0 0 0 1px rgb(30 30 33 / .9), 0 24px 48px -24px rgb(30 30 33 / .55); }
.tw-plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tw-plan__name { margin: 0; font: 500 17px/1.2 var(--font-text); letter-spacing: 0; }
.tw-plan__tag { padding: 5px 10px; border-radius: 999px; font: 600 11px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase;
  background: rgb(247 224 99 / .16); color: var(--p-accent); box-shadow: inset 0 0 0 1px rgb(247 224 99 / .45); }
.tw-plan__price { margin: 0; font: var(--display-weight) clamp(32px, 2.4vw + 12px, 44px)/1.05 var(--font-display); letter-spacing: var(--display-tracking); }
.tw-plan__price small { font: 400 15px/1 var(--font-text); letter-spacing: 0; color: var(--muted); }
.tw-plan__for { margin: 0; color: var(--muted); }
.tw-plan__list { list-style: none; margin: 0; padding: var(--s-4) 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.tw-plan__list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.45; }
.tw-plan__list svg { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.tw-plan--on .tw-plan__list svg { color: var(--p-accent); }
.tw-plan__btn { margin-top: auto; width: 100%; justify-content: center; }
@media (max-width: 1023px) { .tw-plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; width: 100%; } }
