/* The LinoClass design system: tokens, base styles and the components every
   landing page shares (DESIGN.md, sections 2 to 5).

   Linked after assets/site.css (header and footer) by the homepage and by every
   page built on this system; blog posts use assets/blog.css instead. The two
   homepages then link assets/home.css for their homepage-only parts (hero
   stage, crew marquee, sticky story, card pictures, grades ruler).

   Moved out of home.css unchanged (DESIGN.md 9.1). Colours, radii and shadows
   are the app's own (linoclass-app, apps/web globals.css @theme) under the
   short names site.css already reads. Yellow is an accent: buttons,
   highlights, chips, the star. It is never a full-section background.

   /assets/* is cached for a year: when this file changes, bump its ?v= on every
   page that links it (check-site-shell.py requires one version), and update
   DESIGN.md in the same PR. */
:root {
  --brand: #fddd00;
  --brand-deep: #f4c800;
  --brand-soft: #fff9c4;
  --brand-gold: #e5a100;
  --ink: #0f1113;
  --ink-soft: #353a42;
  --ink-muted: #6a7280;
  --paper: #ffffff;
  --paper-soft: #f6f6f4;
  --paper-warm: #fffef7;
  --card: #ffffff;
  --line: #e7e5e0;
  --sage: #7fa896;
  --sage-soft: #e6f0eb;
  --kid-pink: #e56a9f;
  --kid-purple: #9b6dd6;
  --kid-blue: #4a90d9;
  --kid-green: #3a8259;
  --kid-pink-soft: #fce4ef;
  --kid-purple-soft: #f0e6fa;
  --kid-blue-soft: #e0ecf7;
  --kid-green-soft: #e6f0eb;

  --radius-chip: 8px;
  --radius-box: 12px;
  --radius-card: 20px;
  --radius-sheet: 28px;

  --shadow-soft: 0 2px 10px rgba(15, 17, 19, 0.04);
  --shadow-lift: 0 10px 32px rgba(15, 17, 19, 0.08);
  --shadow-float: 0 18px 44px -12px rgba(15, 17, 19, 0.22), 0 4px 12px rgba(15, 17, 19, 0.06);
  --shadow-deep: 0 40px 80px -24px rgba(15, 17, 19, 0.32), 0 12px 24px -8px rgba(15, 17, 19, 0.12);
  --shadow-brand: 0 6px 18px rgba(253, 221, 0, 0.45);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --gutter: 24px;
  --section: 112px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
/* The width/height attributes reserve space while images load; the height
   the attribute implies must not win over aspect-ratio or a set width. */
img { height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink); }
button { font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
*:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
/* On ink the ink ring would be invisible. */
.dark :focus-visible, .finale :focus-visible, .plan.inst :focus-visible { outline-color: var(--paper); }

/* Nothing on this page may push the document sideways on a phone
   (scripts/check-mobile-overflow.py, 320 and 390px). Every section that
   holds something wider than itself (marquee, floating cards, glows)
   clips it here rather than trusting each child to behave. */
main { overflow-x: clip; }
/* Engines without overflow:clip (Safari before 16) still must not scroll sideways;
   the hero is the one section whose decoration reaches past its edges. */
.hero { overflow: hidden; }

/* ----------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap; text-align: center;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; transition: transform .2s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: var(--ink); box-shadow: var(--shadow-brand), inset 0 -2px 0 rgba(15, 17, 19, 0.08); }
.btn-primary:hover { background: #ffe11a; color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(253, 221, 0, 0.5), inset 0 -2px 0 rgba(15, 17, 19, 0.08); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #24272c; color: var(--paper); transform: translateY(-2px); box-shadow: var(--shadow-float); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-soft); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn-on-ink { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, 0.28); }
.btn-on-ink:hover { border-color: var(--paper); color: var(--paper); transform: translateY(-2px); }
.btn:hover:active, .btn:active { transform: scale(.97); }

/* Text links that are not buttons: weight, never a line (feedback-no-underline-on-links). */
.more { display: inline-block; font-size: 15px; font-weight: 700; color: var(--ink); }
/* The last word and the arrow wrap together, so the arrow never sits alone. */
.more .nobr { white-space: nowrap; }
.more svg { display: inline-block; vertical-align: -3px; margin-left: 6px; width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.more:hover svg { transform: translateX(3px); }
.card .more, .step .more { align-self: flex-start; }

/* ----------------------------------------------------------------------------
   Section scaffolding
   ------------------------------------------------------------------------- */
.section { padding: var(--section) 0; position: relative; }
.section.tint { background: var(--paper-soft); }
.section.tight-top { padding-top: 32px; }
.head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  font-size: 13px; font-weight: 700; letter-spacing: 0.01em; color: var(--ink);
}
.eyebrow img { width: 20px; height: 20px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; color: var(--ink); text-wrap: balance; }
.lede { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.head .lede { margin-left: auto; margin-right: auto; max-width: 640px; }
.head.left .lede { margin-left: 0; }
.mark { background: linear-gradient(transparent 62%, var(--brand) 62%, var(--brand) 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ----------------------------------------------------------------------------
   Reveal on scroll. Only when JS is running (html.js, set inline in <head>)
   and only when motion is welcome; otherwise everything is simply there.
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* translate and scale, not transform: a card's own hover lift and the Pro
     plan's raise are transforms, and they must keep working once revealed. */
  .js [data-reveal] { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease-out) var(--d, 0s), translate .8s var(--ease-out) var(--d, 0s), scale .8s var(--ease-out) var(--d, 0s), transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s ease, background-color .2s ease; }
  .js [data-reveal="scale"] { translate: 0 16px; scale: .96; }
  .js [data-reveal="left"] { translate: -28px 0; }
  .js [data-reveal="right"] { translate: 28px 0; }
  .js [data-reveal].is-in { opacity: 1; translate: none; scale: none; }
  .js .cell[data-reveal] { opacity: 1; translate: none; }
  .js .cell[data-reveal] > * { opacity: 0; translate: 0 16px; transition: opacity .8s var(--ease-out) var(--d, 0s), translate .8s var(--ease-out) var(--d, 0s); }
  .js .cell.is-in > * { opacity: 1; translate: none; }
}
.is-paused, .is-paused *, .is-paused::before, .is-paused::after, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }
/* Print and a failed script: everything visible, nothing mid-animation. */
@media print { [data-reveal], .cell[data-reveal] > *, .chat .bub, .how-lino, .step { opacity: 1 !important; translate: none !important; scale: none !important; } .cell svg * { stroke-dashoffset: 0 !important; } }

.hero { position: relative; padding: 64px 0 96px; isolation: isolate; }
/* Soft colour, not a yellow field: three faint glows and a dot grid that
   fades out toward the edges. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(15, 17, 19, 0.07) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; inset: -10% -10% 0; z-index: -3;
  background:
    radial-gradient(38% 42% at 78% 30%, rgba(253, 221, 0, 0.20), transparent 70%),
    radial-gradient(30% 36% at 92% 78%, rgba(74, 144, 217, 0.12), transparent 70%),
    radial-gradient(26% 30% at 8% 88%, rgba(229, 106, 159, 0.10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
@media (min-width: 1040px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } .hero-ctas .btn { padding-left: 20px; padding-right: 20px; } }

.hero-copy { max-width: 600px; }
@media (max-width: 1039px) { .hero-copy { margin: 0 auto; text-align: center; } }
.hero h1 { font-size: clamp(40px, 5.3vw, 66px); font-weight: 800; letter-spacing: -0.048em; line-height: 1.0; color: var(--ink); text-wrap: balance; }
.hero h1 .mark { background-size: 100% 100%; background-repeat: no-repeat; }
.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
@media (max-width: 1039px) { .hero-sub { margin-left: auto; margin-right: auto; max-width: 560px; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 1039px) { .hero-ctas { justify-content: center; } }
.hero-micro { margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--ink-soft); text-wrap: balance; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
@media (max-width: 1039px) { .hero-proof { justify-content: center; } }
.proof { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 9px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.proof svg { width: 18px; height: 18px; color: var(--ink); }

/* The highlight sweeps in once, left to right. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .mark { background-size: 0% 100%; animation: sweep 1s .45s var(--ease-out) forwards; }
  .js .hero-copy > * { animation: rise .9s var(--ease-out) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .14s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .22s; }
  .js .hero-copy > :nth-child(5) { animation-delay: .28s; }
  .js .hero-copy > :nth-child(6) { animation-delay: .34s; }
}
@keyframes sweep { to { background-size: 100% 100%; } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: translate3d(0, 18px, 0) scale(.6); } 70% { opacity: 1; transform: translate3d(0, -4px, 0) scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); } 50% { transform: translate3d(0, -7px, 0) rotate(calc(var(--r, 0deg) * -1)); } }
@media (max-width: 1039px) { .hero { padding-top: 40px; } }
@media (max-width: 560px) {
  .hero { padding: 28px 0 64px; }
}
.ini[style*="e5a100"] { color: var(--ink); }
.ini { display: inline-grid; place-items: center; width: 3.4cqw; height: 3.4cqw; border-radius: 50%; background: var(--chip, var(--kid-blue)); color: #fff; font-size: 1.4cqw; font-weight: 800; font-style: normal; letter-spacing: 0; }
.step-shot { margin-top: 22px; border-radius: 16px; overflow: hidden; background: var(--paper-soft); border: 1px solid var(--line); }
.step-shot img, .step-shot video { display: block; width: 100%; height: auto; }
.step-shot.is-phone { max-width: 280px; margin-left: auto; margin-right: auto; border: 8px solid var(--ink); border-radius: 30px; }
.step-shot.mock { display: grid; place-items: center; padding: 28px 16px; background: var(--kid-pink-soft); border-color: transparent; }
/* ----------------------------------------------------------------------------
   4. Features bento. White cards on the tinted band, each with a small live
   picture of the feature on top.
   ------------------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(6, 1fr); } .bento > * { grid-column: span 3; } }
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(12, 1fr); gap: 20px; }
  .bento > * { grid-column: span 4; }
  .bento > .w5 { grid-column: span 5; }
  .bento > .w7 { grid-column: span 7; }
}
@media (min-width: 700px) and (max-width: 1039px) { .bento > .wide-md { grid-column: 1 / -1; } }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #dcd9d2; }
.card-vis { position: relative; height: 216px; overflow: hidden; background: var(--paper-soft); border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.card-vis.pink { background: var(--kid-pink-soft); }
.card-vis.blue { background: var(--kid-blue-soft); }
.card-vis.purple { background: var(--kid-purple-soft); }
.card-vis.green { background: var(--kid-green-soft); }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.card h3 { margin-top: 8px; font-size: 21px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.25; }
.card p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.card .more { margin-top: auto; padding-top: 16px; font-size: 14px; }

/* Mini UI pieces shared by the card pictures. */
.ui { background: var(--card); border-radius: 14px; box-shadow: var(--shadow-float); border: 1px solid rgba(15, 17, 19, .06); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.wait { background: #fff4d6; color: #8a5a00; }
.pill.ok { background: var(--sage-soft); color: #2e6a48; }
.pill svg { width: 13px; height: 13px; }
/* The Ministry's domain colours, as the app uses them (observation-labels.ts):
   the soft tint behind, the text darkened for contrast. */
.tag { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #e7dbe8; color: #5e3a63; }
.tag.social { background: #efd6d8; color: #8a2f4f; }
.tag.cog { background: #f8eacf; color: #6e4f12; }
/* ----------------------------------------------------------------------------
   5. Everything else, straight from the help centre: one line per guide.
   ------------------------------------------------------------------------- */
.index { display: grid; grid-template-columns: 1fr; gap: 8px 28px; margin-top: 48px; }
@media (min-width: 700px) { .index { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .index { grid-template-columns: repeat(3, 1fr); } }
.ix { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: 16px; transition: background .2s ease; }
.ix:hover { background: var(--card); }
.ix-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); transition: background .2s ease, border-color .2s ease, transform .3s var(--ease-spring); }
.ix-ic svg { width: 20px; height: 20px; }
.ix:hover .ix-ic { background: var(--brand); border-color: var(--brand-deep); transform: rotate(-6deg) scale(1.05); }
.ix b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.ix span:not(.ix-ic) { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.index-foot { margin-top: 32px; text-align: center; }

/* ----------------------------------------------------------------------------
   6. Parents
   ------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.checks { list-style: none; display: grid; gap: 18px; margin-top: 32px; }
.checks li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.checks .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.checks .ic svg { width: 20px; height: 20px; }
.checks b { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.checks span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.phones { position: relative; height: 580px; max-width: 520px; margin: 0 auto; width: 100%; }
.phones .phone { position: absolute; width: 250px; padding: 9px; border-radius: 40px; background: var(--ink); box-shadow: var(--shadow-deep); }
.phones .phone img { width: 100%; height: auto; border-radius: 32px; background: var(--paper); }
.phones .phone video { display: block; width: 100%; height: auto; border-radius: 32px; background: var(--paper); }
.phones .phone.a { left: 4%; top: 0; transform: rotate(-4deg); z-index: 2; }
.phones .phone.b { right: 4%; top: 64px; transform: rotate(5deg); }
.phone-tag { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-float); font-size: 13.5px; font-weight: 700; }
.phone-tag img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.phone-tag small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-muted); }
.phone-tag.t1 { left: -2%; bottom: 60px; }
.phone-tag.t2 { right: 0; top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .phone-tag { animation: bob 5s ease-in-out infinite; }
  .phone-tag.t2 { animation-delay: -2.5s; }
}
@media (max-width: 560px) {
  .phones { height: 470px; }
  .phones .phone { width: 196px; padding: 7px; border-radius: 32px; }
  .phones .phone img, .phones .phone video { border-radius: 26px; }
  .phones .phone.a { left: 14px; }
  .phones .phone.b { right: 18px; top: 56px; }
  .phone-tag { font-size: 12.5px; }
  .phone-tag.t1 { left: 0; bottom: 30px; }
}
@media (max-width: 360px) {
  .phones .phone { width: 176px; }
}

/* ----------------------------------------------------------------------------
   7. For schools and school service centres. The one ink section before
   the end: it is where the buyer reads.
   ------------------------------------------------------------------------- */
.dark { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; isolation: isolate; }
.dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000, transparent 75%); }
.dark::after { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 221, 0, .16), transparent 65%); }
.dark .eyebrow { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: var(--paper); box-shadow: none; }
.dark .h2 { color: var(--paper); }
.dark .lede { color: rgba(255, 255, 255, .72); }
/* On ink the highlight is the colour itself: white over a yellow band washes out. */
.dark .mark { background: none; color: var(--brand); }
.school-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 56px; }
@media (min-width: 1000px) { .school-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.school-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1000px) { .school-ctas { justify-content: flex-end; } }
/* Hairlines drawn by the gap, so the rounded corners close properly. */
.cells { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; overflow: hidden; }
@media (min-width: 700px) { .cells { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cells { grid-template-columns: repeat(3, 1fr); } }
.cell { padding: 30px 28px 32px; background: var(--ink); transition: background .3s ease; }
.cell:hover { background: #16181b; }
.cell svg { width: 44px; height: 44px; color: var(--paper); }
.cell svg .acc { color: var(--brand); stroke: var(--brand); }
.cell h3 { margin-top: 18px; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; color: var(--paper); }
.cell p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .66); }
.cell a { color: var(--paper); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .js .cell svg path, .js .cell svg rect, .js .cell svg circle { stroke-dasharray: 160; stroke-dashoffset: 160; }
  .js .cell.is-in svg path, .js .cell.is-in svg rect, .js .cell.is-in svg circle { transition: stroke-dashoffset 1.4s var(--ease-out); transition-delay: calc(var(--d, 0s) + .15s); stroke-dashoffset: 0; }
}
.school-note { margin-top: 28px; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .55); max-width: 820px; }
.school-note a { color: rgba(255, 255, 255, .85); font-weight: 700; }

/* ----------------------------------------------------------------------------
   8. How it works (#how)
   ------------------------------------------------------------------------- */
.how { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; counter-reset: how; }
@media (min-width: 900px) { .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.how-line { display: none; }
@media (min-width: 900px) {
  .how-line { display: block; position: absolute; left: 16%; width: 68%; top: 118px; height: 2px; z-index: 0; }
  .how-line path { stroke: var(--ink); stroke-opacity: .2; stroke-width: 2; stroke-dasharray: 6 8; fill: none; vector-effect: non-scaling-stroke; }
}
.how-card { position: relative; z-index: 1; padding: 28px 26px 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); text-align: center; }
.how-vis { height: 172px; padding: 40px 14px 12px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 16px; background: var(--paper-soft); position: relative; overflow: hidden; }
.how-n { z-index: 2; position: absolute; top: 12px; left: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); border: 2px solid var(--ink); font-size: 14px; font-weight: 800; }
.how-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.025em; }
.how-card p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.how-cta { margin-top: 40px; text-align: center; }
.how-lino { position: absolute; top: -46px; right: 7%; width: 84px; z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .js .how-lino { transform: translate3d(0, 50%, 0); opacity: 0; transition: transform .9s var(--ease-spring), opacity .5s ease; }
  .js .is-in .how-lino, .js .how-lino.is-in { transform: none; opacity: 1; }
}
.qr { width: 92px; height: 92px; padding: 8px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow-float); position: relative; overflow: hidden; }
.qr svg { width: 100%; height: 100%; }
.qr::after { content: ""; position: absolute; left: 6px; right: 6px; height: 2px; top: 10px; will-change: transform; background: var(--brand); box-shadow: 0 0 10px 2px rgba(253, 221, 0, .8); border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) { .qr::after { animation: scan 2.4s ease-in-out infinite; } }
@keyframes scan { 0%, 100% { transform: none; } 50% { transform: translateY(70px); } }
.roster { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.roster span { display: flex; align-items: center; gap: 6px; padding: 5px 9px 5px 5px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-soft); font-size: 11.5px; font-weight: 700; }
.roster .ini { width: 20px; height: 20px; font-size: 9px; }
.join { position: relative; width: min(196px, 100%); padding: 12px 14px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow-float); text-align: left; }
.join b { display: block; font-size: 13px; line-height: 1.3; }
.join small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-soft); }
.join .kid { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 5px 10px 5px 5px; border-radius: 12px; background: var(--paper-soft); font-size: 12.5px; font-weight: 700; }
.join .kid img { width: 28px; height: 28px; }

.parcours { position: relative; max-width: 1180px; margin: 0 auto; }
.parcours-stops { list-style: none; display: grid; grid-template-columns: 1fr; gap: 20px; margin: 0; padding: 0; }
.parcours-stops > li { display: flex; }
.stop { display: flex; flex: 1; position: relative; }
.stop:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: var(--radius-card); }
.stop-marker { display: none; }
.stop-card { flex: 1; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s ease; }
.stop:hover .stop-card { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--brand-deep); }
.stop-thumb { display: block; background: var(--paper-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.stop-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease-out); }
.stop:hover .stop-thumb img { transform: scale(1.05); }
.stop-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 20px 22px 22px; }
.stop-age { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); background: var(--brand-soft); border: 1px solid var(--brand-deep); padding: 4px 11px; border-radius: 999px; margin-bottom: 13px; transition: background .18s ease; }
.stop:hover .stop-age { background: var(--brand); }
.stop-title { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.35; margin-bottom: 8px; }
.stop-note { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.stop-more { display: block; margin-top: auto; padding-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.rail-star { display: none; }
.grades-all { text-align: center; margin-top: 36px; }
@media (min-width: 640px) { .parcours-stops { grid-template-columns: repeat(2, 1fr); } }
/* ----------------------------------------------------------------------------
   10. Pricing (#pricing). Content unchanged from the previous homepage;
   only the look is new. Pricing changes wait for Oli.
   ------------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 820px; margin: 0 auto; align-items: stretch; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(3, 1fr); max-width: 1180px; } }
@media (min-width: 720px) and (max-width: 1039px) { .plan.inst { grid-column: 1 / -1; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.plan.pro { border: 2px solid var(--ink); box-shadow: var(--shadow-lift); }
@media (min-width: 1040px) { .plan.pro { transform: translateY(-10px); } }
.plan.inst { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-top img { width: 48px; height: 48px; }
.plan h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; }
.plan-top { min-height: 52px; }
.plan .rec { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: var(--brand); border: 2px solid var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.plan .tier-sub { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-muted); min-height: 42px; }
.plan.inst .tier-sub, .plan.inst .per-month { color: rgba(255, 255, 255, .62); }
.plan .amount { margin-top: 20px; font-size: 46px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.plan .amount.quote { font-size: 34px; }
/* "Prix sur demande" is 260px wide at 34px; below 360px the card leaves 230px. */
@media (max-width: 359px) { .plan .amount.quote { font-size: 29px; } }
.plan .amount-unit { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink-muted); margin-left: 4px; }
.plan .launch { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; vertical-align: middle; border: 1px solid var(--brand-deep); }
.plan .per-month { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); min-height: 20px; }
.plan ul { list-style: none; margin: 22px 0 26px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.plan.inst ul { border-color: rgba(255, 255, 255, .14); }
.plan li { position: relative; padding: 5px 0 5px 28px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.plan.inst li { color: rgba(255, 255, 255, .84); }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1113' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan.free li::before { background-color: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.plan .btn { margin-top: auto; width: 100%; }

/* ----------------------------------------------------------------------------
   11. Compare, 12. FAQ, 13. Blog
   ------------------------------------------------------------------------- */
.links3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 880px) { .links3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.compare-card, .post-card { display: flex; flex-direction: column; padding: 26px 26px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s ease; }
.compare-card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #d9d6ce; }
.compare-card h3, .post-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.4; }
.compare-card p, .post-card p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.post-card::after, .compare-card::after { content: "\2192"; content: "\2192" / ""; margin-top: auto; padding-top: 16px; font-size: 18px; font-weight: 700; transition: transform .25s var(--ease-out); }
.post-card:hover::after, .compare-card:hover::after { transform: translateX(4px); }
.all-link { margin-top: 28px; text-align: center; }

.faq-wrap { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1000px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 72px; } .faq-wrap .head { position: sticky; top: 110px; align-self: start; } }
.faq-help { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.faq-help img { width: 52px; height: 52px; }
.faq-help b { display: block; font-size: 15px; }
.faq-help span { display: block; font-size: 14px; color: var(--ink-soft); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--paper-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1113' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease-out), background-color .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--brand); }
.faq-item summary:hover::after { background-color: var(--brand-soft); }
.faq-item[open] summary:hover::after { background-color: var(--brand); }
.faq-answer { padding: 0 52px 24px 4px; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-answer { animation: rise .4s var(--ease-out); }
}

/* ----------------------------------------------------------------------------
   14. The last word: Lino on a glow, the class around it.
   ------------------------------------------------------------------------- */
.finale { position: relative; padding: 120px 0 128px; text-align: center; background: var(--ink); color: var(--paper); overflow: hidden; isolation: isolate; }
.finale::before { content: ""; position: absolute; left: 50%; top: 46%; width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 221, 0, .22), rgba(253, 221, 0, .06) 38%, transparent 66%); z-index: -1; }
@media (prefers-reduced-motion: no-preference) { .finale::before { animation: breathe 5s ease-in-out infinite; } }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.finale-lino { width: 120px; height: 120px; margin: 0 auto 26px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
@media (prefers-reduced-motion: no-preference) { .finale-lino { animation: bob 4.4s ease-in-out infinite; --r: 5deg; } }
.finale h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.04; text-wrap: balance; max-width: 820px; margin: 0 auto; }
.finale p { margin: 18px auto 0; max-width: 540px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .72); text-wrap: balance; }
.finale .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.finale-crowd { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.finale-crowd img { position: absolute; width: calc(var(--w, 76px) * var(--crowd, 1)); left: var(--x); top: var(--y); opacity: var(--o, 1); filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .4)); }
@media (prefers-reduced-motion: no-preference) {
  .finale-crowd img { animation: hop var(--t, 2.8s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
}
@keyframes hop { 0%, 60%, 100% { transform: translate3d(0, 0, 0) scale(1, 1); } 70% { transform: translate3d(0, 0, 0) scale(1.06, .92); } 82% { transform: translate3d(0, -14px, 0) scale(.96, 1.04); } 92% { transform: translate3d(0, 0, 0) scale(1.03, .97); } }
@media (max-width: 760px) {
  .finale { padding: 88px 0 96px; }
  .finale-crowd { --crowd: .65; }
  .finale-crowd .far { display: none; }
}

/* ----------------------------------------------------------------------------
   Small screens
   ------------------------------------------------------------------------- */
@media (max-width: 760px) {
  :root { --section: 80px; }
  .head { margin-bottom: 40px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; --section: 64px; }
  .btn { width: 100%; white-space: normal; text-wrap: balance; padding-left: 20px; padding-right: 20px; }
  .hero-ctas, .school-ctas, .finale .ctas { flex-direction: column; }
  .lede { font-size: 17px; }
  .card-vis { height: 196px; }
  .plan .amount { font-size: 40px; }
  .faq-item summary { font-size: 16px; }
  .faq-answer { padding-right: 4px; }
}
/* Small utilities used by both pages instead of inline style attributes. */
.head.flush { margin-bottom: 0; }
.after-list { margin-top: 28px; }
.plan.free { background: var(--card); }
/* A plan line for something announced but not built yet. */
.plan li .soon { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-size: 11px; font-weight: 700; letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
.plan li.is-soon::before { background-color: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); background-image: none; }
.plan.inst li.is-soon { color: rgba(255, 255, 255, .6); }
/* The page ends on the ink finale: no white strip before the footer. */
main + .site-footer { margin-top: 0; }
.faq-wrap .h2 { font-size: clamp(30px, 3.4vw, 44px); }
/* The English title is 20% longer than the French one; a notch smaller keeps
   it to four lines beside the tablet instead of five. */
:lang(en) .hero h1 { font-size: clamp(38px, 4.6vw, 58px); }
/* The page's own pause control (WCAG 2.2.2). Only shown when there is motion
   to pause: not without JS, and not when the system already asks for less. */
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 10px; border-radius: 999px; border: 1px dashed var(--line); background: transparent; color: var(--ink-soft); font-size: 13px; font-weight: 600; cursor: pointer; }
.motion-toggle:hover { border-color: var(--ink-muted); color: var(--ink); }
.motion-toggle svg { width: 16px; height: 16px; }
.motion-toggle .i-play { display: none; }
.motion-off .motion-toggle .i-play { display: block; }
.motion-off .motion-toggle .i-pause { display: none; }
html:not(.js) .motion-toggle { display: none; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }
/* Paused means no animation at all, not frozen mid-way: a one-shot entrance
   frozen on its first frame would leave an FAQ answer or a chat bubble
   invisible. The two states that start hidden and rely on an animation to
   appear are forced to their end state. */
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation: none !important; }
html.motion-off .chat .bub { opacity: 1; transform: none; }
html.motion-off .hero h1 .mark { background-size: 100% 100%; }
/* Below 1024px the closing crowd would stand on the buttons and the lede. */
@media (max-width: 1023px) { .finale-crowd .near { display: none; } }
/* 1040 to 1170px: the French pills do not fit side by side; stacked, they share one width. */
@media (min-width: 1040px) and (max-width: 1170px) { :lang(fr) .hero-ctas { display: grid; justify-content: start; } }

/* ----------------------------------------------------------------------------
   Landing-page pieces beyond the homepage (grade pages first; DESIGN.md 4.20)
   ------------------------------------------------------------------------- */

/* Breadcrumb at the top of a page hero. */
.crumb { margin-bottom: 18px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.crumb a { color: var(--ink-soft); font-weight: 600; }
.crumb a:hover { color: var(--ink); }
.crumb [aria-hidden="true"] { margin: 0 6px; }

/* A screen framed in a hero or split column: no top margin (the 22px is for story steps). */
.hero-grid > .step-shot, .split > .step-shot, .stack > .step-shot { margin-top: 0; }

/* Split rows that alternate sides: .flip puts the picture first on wide screens. */
@media (min-width: 1000px) { .split.flip > :first-child { order: 2; } }

/* A hero with no picture: one centred column. */
.hero.solo { padding-bottom: 48px; }
.hero.solo .hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.hero.solo .hero-ctas { justify-content: center; }

/* Four cards in a row: one column, two from 700px, four from 1040px. */
.cards4 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 700px) { .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cards4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.cards4 .card h3 { font-size: 18px; }
/* A time of day as a kicker ("8 h 10 · Accueil"): no uppercase, the h stays a unit. */
.card-kicker.time { text-transform: none; letter-spacing: 0.01em; font-size: 13px; }

/* A smaller section title, for a run of feature rows under one page. */
.h2.sm { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.035em; line-height: 1.08; }

/* A plain tick list: the plans' yellow disc with an ink tick, on any light band. */
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.ticks li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1113' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticks b { color: var(--ink); font-weight: 700; }
/* The same list for things a product does NOT do: a neutral disc with a cross. */
.ticks.cross li::before { background: var(--paper-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23353a42' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 10px no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
.card .ticks { margin-top: 16px; }
.card .ticks li { font-size: 15px; }

/* Cards stacked in one column (for example two lists beside a text column). */
.stack { display: grid; gap: 16px; align-content: start; }

/* Small print on a light band (company and privacy officer lines). */
.fine { max-width: 820px; margin: 40px auto 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); text-align: center; }
.fine a { color: var(--ink); font-weight: 700; }
