/*
 * NAVEDU landing, version 3 ("Арена"): cobalt field, lime action colour, Oswald for headlines, Onest for text.
 * Everything that moves is plain CSS; app.js only adds .in to blocks that scroll into view.
 */
:root {
  --cobalt: #2536f0;
  --cobalt-2: #3d4dff;
  --navy: #0b0f3b;
  --navy-2: #171c55;
  --lime: #c8f53c;
  --lime-ink: #101a00;
  --coral: #ff6b4a;
  --pink: #ffc2dd;
  --sky: #b9c6ff;
  --paper: #f4f5ff;
  --ink: #12142b;
  --muted: #5d6285;
  --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cobalt); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 90px; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
.on-light :focus-visible { outline-color: var(--cobalt); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1296px; margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.02; text-transform: uppercase; }

/* Buttons: spring on hover, quick squeeze on press */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 28px; border-radius: 999px; font-size: 18px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform 0.5s var(--spring), box-shadow 0.3s ease; }
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: scale(0.93); transition-duration: 0.08s; }
.btn-lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 0 -4px rgba(0, 0, 0, 0.25); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.4); color: #fff; font-weight: 600; font-size: 17px; }
.btn-ghost.dark { border-color: rgba(11, 15, 59, 0.3); color: var(--navy); }
.btn-s { min-height: 44px; padding: 0 20px; font-size: 15px; box-shadow: none; }
.btn .arrow { animation: nudge 1.4s ease-in-out infinite; }

/* Navigation: a floating capsule */
.top { position: sticky; top: 12px; z-index: 20; padding: 0 16px; }
.capsule { display: flex; align-items: center; gap: 14px; max-width: 1248px; margin: 0 auto; padding: 10px 12px 10px 18px; border-radius: 999px; background: rgba(11, 15, 59, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.02em; }
.brand svg { transition: transform 0.6s var(--spring); }
.brand:hover svg { transform: rotate(-10deg) scale(1.08); }
.nav { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0; font-size: 15px; font-weight: 500; }
.nav a { white-space: nowrap; }
/* The section links sit in the middle, in the order of the page; the switch stays by the mark, sign-in and the action on the right. */
.nav .sects { display: flex; align-items: center; gap: 20px; margin: 0 auto; }
.nav .aud-switch + a { margin-left: auto; }
.nav a:not(.btn) { text-decoration: none; background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 100% / 0 2px; padding: 4px 0; transition: background-size 0.35s var(--out); }
.nav a:not(.btn):hover { background-size: 100% 2px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--lime); color: var(--lime-ink); cursor: pointer; align-items: center; justify-content: center; }

/* Hero */
.hero { position: relative; margin-top: -76px; padding: 150px 0 0; color: #fff; overflow: hidden; }
.hero-ring { position: absolute; right: -200px; top: -240px; width: 760px; height: 760px; border-radius: 50%; border: 96px solid var(--cobalt-2); animation: spin 60s linear infinite; }
.hero-ring::after { content: ""; position: absolute; left: 40px; top: 40px; width: 46px; height: 46px; border-radius: 50%; background: var(--lime); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding-bottom: 96px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 96px); }
.hero h1 .lime { color: var(--lime); }
.w { display: inline-block; animation: wordin 0.8s var(--out) both; }
.lead { margin-top: 26px; max-width: 540px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: #d7dcff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.note { margin-top: 16px; font-size: 14px; color: #d7dcff; }
.rise { animation: rise 0.9s var(--out) 0.5s both; }

/* The product scene: one lesson being marked */
.scene { position: relative; width: 100%; max-width: 520px; margin: 0 auto; transform: rotate(-2.5deg); animation: floaty 7s ease-in-out infinite; }
.lesson { padding: 26px; border-radius: 32px; background: var(--navy); box-shadow: 0 40px 90px -30px rgba(0, 0, 40, 0.7); }
.lesson-head { display: flex; align-items: flex-end; gap: 12px; padding-bottom: 18px; }
.lesson-head small { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); }
.lesson-head b { display: block; margin-top: 4px; font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.tally { margin-left: auto; display: flex; align-items: baseline; font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 44px; color: var(--lime); }
.tally i { font-style: normal; font-size: 20px; color: var(--sky); }
.roll { display: inline-block; height: 44px; overflow: hidden; }
.roll span { display: block; animation: count 9s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.roll em { display: block; height: 44px; font-style: normal; }
.person { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.ava { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--navy); font-size: 14px; font-weight: 800; }
.who { min-width: 0; }
.who b { display: block; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st { display: inline-block; font-size: 13px; font-weight: 600; transform-origin: left center; animation: pop 9s var(--spring) infinite; }
.st.ok { color: var(--lime); }
.st.debt { color: #ff9a82; }
.st.off { color: var(--sky); }
.tick { flex: none; margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.28); color: transparent; animation: was 9s var(--spring) infinite; }
.tick.no { animation-name: wasnt; }
.p2 .st, .p2 .tick { animation-delay: 1.08s; }
.p3 .st, .p3 .tick { animation-delay: 2.16s; }
.p4 .st, .p4 .tick { animation-delay: 3.24s; }
.chipcard { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 24px 50px -22px rgba(0, 0, 40, 0.7); }
.chipcard small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.chipcard b { display: block; font-size: 18px; font-weight: 800; white-space: nowrap; }
.pass { left: -44px; top: -52px; animation: floaty2 8s ease-in-out infinite; }
.ring-fill { stroke-dasharray: 113; stroke-dashoffset: 14; animation: ring 9s var(--out) infinite; }
.pay { right: -30px; bottom: -44px; background: var(--lime); color: var(--lime-ink); animation: toast 9s var(--spring) infinite; }
.pay small { color: #3d5200; }
.pay .coin { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--lime); font-weight: 800; font-size: 20px; }

/* Running line */
.band { background: var(--lime); color: var(--navy); padding: 20px 0; overflow: hidden; white-space: nowrap; transform: rotate(-1.2deg) scale(1.03); margin: 0 0 -18px; position: relative; z-index: 2; }
.band-in { display: inline-flex; align-items: center; animation: marquee 30s linear infinite; }
.band span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -0.01em; text-transform: uppercase; }

/* Sections */
.sec { padding: 120px 0; }
.paper { background: var(--paper); }
.navy { background: var(--navy); color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 7px 14px; border-radius: 999px; background: var(--navy); color: var(--lime); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.navy .eyebrow { background: var(--lime); color: var(--lime-ink); }
.sec h2 { font-size: clamp(36px, 5.2vw, 76px); max-width: 900px; }
.sec h2 .hl { color: var(--cobalt); }
.navy h2 .hl { color: var(--lime); }
.sub { margin-top: 20px; max-width: 620px; font-size: 20px; color: var(--muted); }
.navy .sub { color: var(--sky); }

.cobalt { background: var(--cobalt); color: #fff; }
.cobalt h2 .hl { color: var(--lime); }
.cobalt .sub { color: #d7dcff; }
.cobalt .eyebrow { background: var(--lime); color: var(--lime-ink); }
.cobalt .role { background: rgba(11, 15, 59, 0.38); }
.cobalt .role:hover { background: rgba(11, 15, 59, 0.6); }
.cobalt .role p { color: #d7dcff; }
.role .tag.n { background: var(--lime); color: var(--lime-ink); font-family: var(--display); font-weight: 900; font-size: 20px; }
.kicker { margin-bottom: 18px; font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }

/* Pain and the before/after pair */
.pain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.pcard { display: flex; flex-direction: column; min-height: 270px; padding: 26px; border-radius: 28px; transition: transform 0.6s var(--spring); }
.pcard:hover { transform: translateY(-8px) rotate(-1.5deg); }
.pcard .num { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; letter-spacing: -0.04em; opacity: 0.35; }
.pcard h3 { margin-top: auto; padding-top: 24px; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.15; letter-spacing: -0.02em; }
.pcard p { margin-top: 10px; font-size: 16px; opacity: 0.86; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.vs > div { padding: 36px; border-radius: 32px; }
.vs small { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.vs h3 { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; line-height: 1.1; }
.vs ul, .pts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.vs li, .pts li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; font-weight: 500; }
.vs li svg, .pts li svg { flex: none; margin-top: 2px; padding: 4px; width: 26px; height: 26px; border-radius: 50%; }
.without { background: #fff; border: 2px dashed rgba(11, 15, 59, 0.22); color: var(--muted); }
.without small { color: var(--coral); }
.without h3 { color: var(--ink); }
.without li svg { background: #ffe3dc; color: var(--coral); }
.with { background: var(--navy); color: #fff; box-shadow: 0 30px 60px -30px rgba(11, 15, 59, 0.7); }
.with small { color: var(--lime); }
.with li svg, .pts li svg { background: var(--lime); color: var(--lime-ink); }
.pts li svg { background: var(--navy); color: var(--lime); }

/* The client's path */
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; }
.path span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 6px 18px -10px rgba(11, 15, 59, 0.4); }
.path span b { font-family: var(--display); font-size: 13px; color: var(--cobalt); }
.path span:last-child { background: var(--navy); color: #fff; }
.path span:last-child b { color: var(--lime); }
.path i { color: var(--cobalt); animation: nudge 1.4s ease-in-out infinite; }
.path + .chain { margin-top: 36px; }

/* For whom, and where the product comes from */
.aud { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.aud span { padding: 16px 26px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); letter-spacing: -0.02em; transition: transform 0.5s var(--spring); }
.aud span:hover { transform: translateY(-4px) rotate(-2deg) scale(1.04); }
.aud .a1 { background: var(--cobalt); color: #fff; } .aud .a2 { background: var(--lime); color: var(--lime-ink); } .aud .a3 { background: var(--pink); color: var(--navy); }
.aud .a4 { background: var(--navy); color: #fff; } .aud .a5 { background: var(--coral); color: #fff; }
.trust { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; margin-top: 110px; }
.founder { padding: 34px; border-radius: 32px; background: var(--navy); color: #fff; transform: rotate(1.5deg); }
.founder .fava { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); font-family: var(--display); font-weight: 900; font-size: 22px; }
.founder h3 { margin-top: 20px; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.founder small { display: block; margin-top: 4px; color: var(--lime); font-weight: 600; }
.founder p { margin-top: 14px; color: var(--sky); }
.founder a { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.call .eyebrow { position: relative; }
.call .pts { position: relative; margin-top: 22px; }
.call .callnote { margin-top: 22px; font-size: 17px; }

/* Journey tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.tab { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 700 16px var(--body); cursor: pointer; box-shadow: 0 6px 18px -10px rgba(11, 15, 59, 0.4); transition: transform 0.5s var(--spring), background 0.25s, color 0.25s; }
.tab b { font-family: var(--display); font-size: 12px; color: var(--cobalt); }
.tab:hover { transform: translateY(-3px); }
.tab.active { background: var(--cobalt); color: #fff; }
.tab.active b { color: var(--lime); }
.journey { margin-top: 20px; }
.jpanel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: 44px; border-radius: 36px; background: var(--navy); color: #fff; margin-bottom: 16px; }
.js .jpanel:not(.active) { display: none; }
.demo-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-size: 13px; font-weight: 700; }
.jcopy h3 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.05; }
.jcopy p { margin-top: 14px; font-size: 18px; color: var(--sky); }
.mock { padding: 10px; border-radius: 26px; background: #fff; color: var(--ink); transform: rotate(1.5deg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.mhead { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mrow { display: grid; grid-template-columns: 1fr auto 96px; gap: 12px; align-items: center; padding: 16px; border-radius: 18px; background: var(--paper); margin-top: 8px; font-size: 15px; color: var(--muted); }
.mrow strong { color: var(--ink); font-size: 17px; }
.mrow > span:last-child { text-align: right; font-weight: 600; }
.badge { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.b1 { background: var(--lime); color: var(--lime-ink); } .b2 { background: var(--pink); color: var(--navy); } .b3 { background: var(--cobalt); color: #fff; }
.jpanel.active .jcopy { animation: rise 0.6s var(--out) both; }
.jpanel.active .mrow { animation: rise 0.6s var(--out) both; }
.jpanel.active .mrow:nth-child(3) { animation-delay: 0.09s; } .jpanel.active .mrow:nth-child(4) { animation-delay: 0.18s; }
.jpanel.active .badge { animation: bump 3s var(--spring) infinite; }

.roles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.who-tag { display: inline-block; padding: 7px 16px; border-radius: 999px; color: var(--navy); font-weight: 800; font-size: 14px; }
.role .pts { margin-top: 18px; }
.role .pts li { font-size: 16px; }
.role .pts li svg { background: var(--lime); color: var(--lime-ink); }
.tile .num { font-family: var(--display); font-weight: 900; font-size: 15px; opacity: 0.55; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags span { padding: 6px 12px; border-radius: 999px; border: 1.5px solid currentColor; font-size: 13px; font-weight: 700; opacity: 0.85; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.tcard { padding: 28px; border-radius: 28px; background: #fff; border: 2px solid rgba(37, 54, 240, 0.14); transition: transform 0.6s var(--spring), border-color 0.3s; }
.tcard:hover { transform: translateY(-6px); border-color: var(--cobalt); }
.tcard h3 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.tcard p { margin-top: 10px; color: var(--muted); }
.aud .a6 { background: var(--sky); color: var(--navy); }
.aud + .path { margin-top: 28px; }

/* Questions */
.faqwrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faqwrap h2 { font-size: clamp(28px, 3.2vw, 44px); }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 22px; background: #fff; transition: background 0.4s var(--out), color 0.4s var(--out); }
.faq details[open] { background: var(--navy); color: #fff; }
.faq summary { display: flex; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary b { flex: none; position: relative; margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); transition: transform 0.5s var(--spring); }
.faq summary b::before, .faq summary b::after { content: ""; position: absolute; left: 10px; top: 16px; width: 14px; height: 2.5px; border-radius: 2px; background: var(--lime-ink); }
.faq summary b::after { transform: rotate(90deg); }
.faq details[open] summary b { transform: rotate(45deg); }
.faq details.closing { background: #fff; color: inherit; }
.faq details.closing summary b { transform: none; }
.faq details p { padding: 0 24px 22px; color: var(--sky); max-width: 640px; animation: faq-in 0.45s var(--out) both; }
.faq details.closing p { opacity: 0; transition: opacity 0.2s; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* The two audiences in the bar */
.aud-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.nav .aud-switch a { padding: 7px 14px; border-radius: 999px; background: none; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background 0.25s, color 0.25s; }
.nav .aud-switch a:hover { background: rgba(255, 255, 255, 0.14); }
.nav .aud-switch a.on { background: #fff; color: var(--navy); }

/* «Найти школу» */
.find-hero { padding-bottom: 150px; }
.find-hero .lead { max-width: 640px; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; margin-top: 36px; padding: 20px; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0, 0, 40, 0.7); }
.filters label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); }
.filters select, .filters input {
  width: 100%; min-height: 50px; padding: 0 14px; border: 2px solid #dcdff0; border-radius: 14px; background: #fff; color: var(--ink); font: 500 16px var(--body); transition: border-color 0.2s; }
/* The browser's own arrow sits on the very edge of a rounded field: draw one with room to its right. */
.filters select { -webkit-appearance: none; appearance: none; padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0f3b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 18px 18px; }
.filters select:focus, .filters input:focus { outline: none; border-color: var(--cobalt); }
.filters .btn { min-height: 50px; box-shadow: none; }
.find-results { margin-top: -90px; padding-top: 0; background: none; position: relative; z-index: 3; }
.find-results .wrap { padding-top: 34px; padding-bottom: 20px; border-radius: 36px; background: var(--paper); }
.demo-note { margin-bottom: 14px; padding: 10px 16px; border-radius: 14px; background: #fff1dc; color: #7a3d05; font-size: 15px; font-weight: 600; }
.found { font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: 0.01em; }
.schools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.school { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 28px; background: #fff; border: 2px solid transparent; animation: rise 0.7s var(--out) both; animation-delay: calc(var(--i, 0) * 70ms); transition: transform 0.6s var(--spring), border-color 0.3s; }
.school:hover { transform: translateY(-6px); border-color: var(--cobalt); }
.school-city { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalt); }
.school h3 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.08; text-transform: uppercase; }
.school-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.tag.t0 { background: var(--lime); color: var(--lime-ink); } .tag.t1 { background: var(--pink); color: var(--navy); } .tag.t2 { background: var(--sky); color: var(--navy); } .tag.t3 { background: #ffd9cf; color: #7a2410; }
.tag.age { background: var(--navy); color: #fff; }
.school-text { color: var(--muted); font-size: 16px; }
.school-places { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid #e3e6f5; display: grid; gap: 8px; font-size: 15px; }
.school-places b { display: block; font-weight: 700; }
.school-places span { color: var(--muted); }
.school .btn { margin-top: auto; min-height: 50px; font-size: 16px; align-self: flex-start; }
.more { display: flex; justify-content: center; margin-top: 28px; }

.school-demo { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Documents: the offer, its appendix, the privacy policy, the cookie page */
.doc-hero { padding-bottom: 150px; }
.doc-hero .wrap, .find-hero .wrap { position: relative; }
.doc-hero h1 { font-size: clamp(34px, 5vw, 72px); max-width: 980px; }
.doc-hero .lead { max-width: 760px; }
.doc-hero .actions { margin-top: 28px; }
.doc-edition { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(11, 15, 59, 0.45); font-size: 15px; font-weight: 600; }
.doc-hero .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.doc-sec { margin-top: -90px; padding-top: 0; background: none; position: relative; z-index: 3; }
.doc-sec .wrap { max-width: 980px; }
.doc-sheet { padding: clamp(22px, 5vw, 64px); border-radius: 36px; background: #fff; color: var(--ink); font-size: 17px; line-height: 1.6; box-shadow: 0 40px 90px -40px rgba(0, 0, 40, 0.5); overflow-wrap: anywhere; }
.doc-sheet > * + * { margin-top: 14px; }
.doc-sheet h2 { display: flex; align-items: baseline; gap: 14px; margin-top: 48px; padding-top: 28px; border-top: 2px solid var(--paper); font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; text-transform: uppercase; scroll-margin-top: 96px; }
.doc-sheet h2 span { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 14px; background: var(--lime); color: var(--lime-ink); font-size: 20px; }
.doc-sheet h3 { font-weight: 700; font-size: 18px; }
.doc-sheet .clause { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; scroll-margin-top: 96px; }
.doc-sheet .clause > span:first-child { font-weight: 800; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.doc-sheet ul { margin: 14px 0 0; padding: 0 0 0 68px; list-style: none; display: grid; gap: 8px; }
.doc-sheet ul li { position: relative; }
.doc-sheet ul li::before { content: ""; position: absolute; left: -22px; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--navy); }
.doc-sheet a { color: var(--cobalt); }
.doc-sheet code { padding: 2px 6px; border-radius: 6px; background: var(--paper); font-size: 0.92em; }
.doc-place { color: var(--muted); font-weight: 600; }
.doc-toc { padding: 22px 24px; border-radius: 24px; background: var(--paper); }
.doc-toc p { font-family: var(--display); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 0.02em; }
.doc-toc ol { list-style: none; margin: 12px 0 0; padding: 0; columns: 2; column-gap: 28px; }
.doc-toc li { break-inside: avoid; padding: 4px 0; }
.doc-toc a { display: inline-flex; gap: 10px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.doc-toc a:hover { color: var(--cobalt); }
.doc-toc b { min-width: 22px; color: var(--cobalt); }
.doc-table { overflow-x: auto; border: 2px solid var(--paper); border-radius: 20px; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.doc-table th, .doc-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 2px solid var(--paper); }
.doc-table tr:first-child th, .doc-table tr:first-child td { border-top: 0; }
.doc-table th { width: 34%; font-weight: 700; color: var(--muted); }
.blank { padding: 2px 8px; border-radius: 8px; background: #fff1dc; color: #7a3d05; font-weight: 600; }
.doc-sheet .notice { margin-top: 28px; padding: 20px 22px; border-radius: 20px; background: #fff1dc; color: #5c2f04; }
.doc-sheet .notice h3 { margin-bottom: 6px; }

/* The notice about cookies */
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; max-width: 760px; margin: 0 auto; padding: 16px 18px 16px 22px; border-radius: 24px; background: var(--navy); color: #fff; box-shadow: 0 24px 60px -20px rgba(0, 0, 40, 0.8); animation: rise 0.6s var(--out) both; }
.cookie-note p { flex: 1 1 320px; font-size: 15px; line-height: 1.45; color: #d7dcff; }
.cookie-note a { color: #fff; }
.cookie-note .btn { flex: none; }

/* Appear on scroll */
.js .rv { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--out), transform 0.8s var(--out); }
.js .rv.in { opacity: 1; transform: none; }
.js .d1 { transition-delay: 0.09s; } .js .d2 { transition-delay: 0.18s; } .js .d3 { transition-delay: 0.27s; } .js .d4 { transition-delay: 0.36s; } .js .d5 { transition-delay: 0.45s; }

/* Chain: one mark, three calculations */
.chain { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.step { position: relative; display: flex; flex-direction: column; min-height: 380px; padding: 30px; border-radius: 32px; transition: transform 0.6s var(--spring); }
.step:hover { transform: translateY(-8px) rotate(-1deg); }
.step .num { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 1; letter-spacing: -0.04em; opacity: 0.9; }
.step h3 { margin-top: auto; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.12; letter-spacing: -0.02em; }
.step p { margin-top: 12px; font-size: 17px; }
.step .art { position: absolute; right: 26px; top: 26px; }
.s-lime { background: var(--lime); color: var(--lime-ink); }
.s-cobalt { background: var(--cobalt); color: #fff; }
.s-navy { background: var(--navy); color: #fff; }
.step .link { position: absolute; right: -22px; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: 0 8px 20px -8px rgba(11, 15, 59, 0.5); }
.step .link svg { animation: nudge 1.4s ease-in-out infinite; }
.bigtick { stroke-dasharray: 60; stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s var(--out) 0.4s; }
.js .rv:not(.in) .bigtick { stroke-dashoffset: 60; }
.dots { display: flex; gap: 6px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--lime); transition: transform 0.5s var(--spring), background 0.3s; }
.dots i.gone { background: transparent; border: 2px solid rgba(255, 255, 255, 0.5); }
.js .rv:not(.in) .dots i { transform: scale(0); }
.dots i:nth-child(2) { transition-delay: 0.08s; } .dots i:nth-child(3) { transition-delay: 0.16s; } .dots i:nth-child(4) { transition-delay: 0.24s; }
.dots i:nth-child(5) { transition-delay: 0.32s; } .dots i:nth-child(6) { transition-delay: 0.4s; } .dots i:nth-child(7) { transition-delay: 0.48s; } .dots i:nth-child(8) { transition-delay: 0.7s; }
.plus { font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--lime); animation: bump 3s var(--spring) infinite; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.tile { position: relative; grid-column: span 2; display: flex; flex-direction: column; min-height: 340px; padding: 28px; border-radius: 32px; overflow: hidden; transition: transform 0.6s var(--spring); }
.tile:hover { transform: translateY(-6px); }
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; min-height: 0; }
.tile.full .viz { padding-top: 10px; }
.tile h3 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.tile p { margin-top: 10px; max-width: 380px; font-size: 16px; opacity: 0.86; }
.tile .viz { margin-top: auto; padding-top: 26px; }
.t-pink { background: var(--pink); color: var(--navy); }
.t-white { background: #fff; color: var(--ink); }
.t-lime { background: var(--lime); color: var(--lime-ink); }
.t-navy { background: var(--navy); color: #fff; }
.t-cobalt { background: var(--cobalt); color: #fff; }
.t-coral { background: var(--coral); color: #fff; }
.t-sky { background: var(--sky); color: var(--navy); }

.flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 52px; }
.flow span { padding: 8px 6px; border-radius: 12px; background: rgba(11, 15, 59, 0.1); font-size: 13px; font-weight: 700; text-align: center; }
.flow b { position: absolute; top: 0; left: 0; width: calc(33.33% - 6px); padding: 9px 6px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 14px; text-align: center; animation: travel 6s var(--out) infinite; }

.week { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.week i { height: 34px; border-radius: 9px; background: var(--paper); transition: transform 0.5s var(--spring), opacity 0.3s; }
.week i.a { background: var(--cobalt); } .week i.b { background: var(--lime); } .week i.c { background: var(--coral); } .week i.e { background: var(--pink); }
.js .rv:not(.in) .week i.a, .js .rv:not(.in) .week i.b, .js .rv:not(.in) .week i.c, .js .rv:not(.in) .week i.e { transform: scale(0); opacity: 0; }
.week i:nth-child(3n) { transition-delay: 0.15s; } .week i:nth-child(4n) { transition-delay: 0.3s; } .week i:nth-child(5n) { transition-delay: 0.45s; } .week i:nth-child(7n) { transition-delay: 0.6s; }

.rows { display: grid; gap: 8px; }
.rows div { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(16, 26, 0, 0.1); font-size: 15px; font-weight: 600; }
.rows em { margin-left: auto; font-style: normal; font-weight: 800; white-space: nowrap; }
.rows .warn { background: var(--navy); color: #fff; }
.rows .warn em { color: #ff9a82; }

.bars { display: flex; align-items: flex-end; gap: 12px; height: 120px; }
.bars i { flex: 1; border-radius: 12px 12px 4px 4px; background: var(--cobalt-2); transform-origin: bottom; transition: transform 0.9s var(--out); }
.bars i:nth-child(2) { transition-delay: 0.1s; } .bars i:nth-child(3) { transition-delay: 0.2s; background: var(--lime); } .bars i:nth-child(4) { transition-delay: 0.3s; } .bars i:nth-child(5) { transition-delay: 0.4s; background: var(--pink); }
.js .rv:not(.in) .bars i { transform: scaleY(0.06); }

.chart path.line { stroke-dasharray: 520; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--out) 0.3s; }
.js .rv:not(.in) .chart path.line { stroke-dashoffset: 520; }
.chart circle { animation: bump 3s var(--spring) infinite; transform-origin: 292px 22px; }

.cab { display: grid; gap: 8px; max-width: 360px; }
.cab div { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.2); font-size: 15px; font-weight: 600; }
.cab div b { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--coral); }
.cab div.next b { background: transparent; border: 2px dashed rgba(255, 255, 255, 0.7); }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.role { padding: 28px; border-radius: 28px; background: var(--navy-2); border: 1px solid rgba(255, 255, 255, 0.08); transition: transform 0.6s var(--spring), background 0.3s; }
.role:hover { transform: translateY(-8px) rotate(1deg); background: #1f2670; }
.role .tag { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; color: var(--navy); }
.role h3 { margin-top: 22px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.role p { margin-top: 10px; font-size: 16px; color: var(--sky); }

/* Honest note */
.honest { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 34px; border-radius: 32px; background: #fff; border: 2px dashed rgba(37, 54, 240, 0.35); }
.honest h3 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.honest p { margin-top: 8px; color: var(--muted); }
.honest .mark { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--cobalt); color: #fff; }

/* Final call */
.final { padding: 0 0 110px; background: var(--paper); }
.call { position: relative; overflow: hidden; padding: 84px 56px; border-radius: 44px; background: var(--lime); color: var(--lime-ink); }
.call h2 { position: relative; font-size: clamp(28px, 3.8vw, 52px); max-width: 860px; }
.call p { position: relative; margin-top: 18px; max-width: 520px; font-size: 20px; }
.call .actions { position: relative; }
.call .ring { position: absolute; right: -150px; top: -150px; width: 520px; height: 520px; border-radius: 50%; border: 70px solid #b6e51f; animation: spin 50s linear infinite reverse; }
.call .ring::after { content: ""; position: absolute; left: 22px; top: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--cobalt); }
.call .tel { white-space: nowrap; font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; }

/* Footer */
.foot { background: var(--navy); color: var(--sky); padding: 44px 0; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot .brand { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-left: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .legal { flex-basis: 100%; font-size: 13px; opacity: 0.8; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes wordin { from { opacity: 0; transform: translateY(0.6em) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: rotate(-2.5deg) translateY(0); } 50% { transform: rotate(-2.5deg) translateY(-12px); } }
@keyframes floaty2 { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(10px) rotate(3deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes bump { 0%, 80%, 100% { transform: scale(1); } 88% { transform: scale(1.25); } }
@keyframes was { 0%, 8% { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: transparent; transform: scale(1); } 12% { transform: scale(1.25); } 16%, 88% { background: #c8f53c; border-color: #c8f53c; color: #0b0f3b; transform: scale(1); } 96%, 100% { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: transparent; } }
@keyframes wasnt { 0%, 8% { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: transparent; transform: scale(1); } 12% { transform: scale(1.25); } 16%, 88% { background: #2a3080; border-color: #2a3080; color: #b9c6ff; transform: scale(1); } 96%, 100% { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: transparent; } }
@keyframes pop { 0%, 14% { opacity: 0; transform: scale(0.4); } 20% { opacity: 1; transform: scale(1.12); } 24%, 88% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(0.4); } }
@keyframes count { 0%, 12% { transform: translateY(0); } 16%, 24% { transform: translateY(-44px); } 28%, 36% { transform: translateY(-88px); } 40%, 48% { transform: translateY(-132px); } 52%, 90% { transform: translateY(-176px); } 98%, 100% { transform: translateY(0); } }
@keyframes toast { 0%, 54% { opacity: 0; transform: translateY(24px) scale(0.9); } 60% { opacity: 1; transform: translateY(-4px) scale(1.04); } 64%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(24px) scale(0.9); } }
@keyframes ring { 0%, 20% { stroke-dashoffset: 0; } 28%, 90% { stroke-dashoffset: 14; } 98%, 100% { stroke-dashoffset: 0; } }
@keyframes travel { 0%, 18% { left: 0; } 30%, 52% { left: calc(33.33% + 3px); } 64%, 90% { left: calc(66.66% + 6px); } 100% { left: 0; } }

/* Between the phone menu and a wide screen the bar keeps the switch, sign-in and the main action; the section links go. */
@media (min-width: 761px) and (max-width: 1260px) {
  .nav .sects { display: none; }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 90px; padding-bottom: 110px; }
  .chain { grid-template-columns: 1fr; }
  .step { min-height: 300px; }
  .step .link { right: 50%; top: auto; bottom: -34px; margin: 0 -22px 0 0; transform: rotate(90deg); }
  .tile, .tile.wide { grid-column: span 3; }
  .tile.full { grid-column: span 6; }
.tile.full { grid-column: span 6; min-height: 0; }
.tile.full .viz { padding-top: 10px; }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jpanel { grid-template-columns: minmax(0, 1fr); padding: 30px; }
  .roles.three, .trio, .faqwrap { grid-template-columns: 1fr; }
  .faqwrap { gap: 32px; }
  .trust { grid-template-columns: 1fr; margin-top: 80px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-toggle { display: inline-flex; }
  .capsule { flex-wrap: wrap; border-radius: 28px; padding: 8px 8px 8px 16px; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 6px; margin: 6px 0 4px; }
  .nav .sects { flex-direction: column; align-items: stretch; gap: 6px; margin: 0; }
  .nav .aud-switch + a { margin-left: 0; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 8px; font-size: 18px; }
  html:not(.js) .nav { display: flex; }
  html:not(.js) .menu-toggle { display: none; }
  .hero { padding-top: 124px; }
  .hero-ring { right: -260px; top: -300px; width: 560px; height: 560px; border-width: 70px; }
  .actions .btn { flex: 1 1 100%; }
  .scene { max-width: 420px; }
  .lesson { padding: 18px; border-radius: 26px; }
  .lesson-head b { font-size: 20px; }
  .tally { font-size: 30px; }
  .ava, .tick { width: 40px; height: 40px; }
  .who b { font-size: 15px; }
  .pass { left: -6px; top: -58px; }
  .pay { right: -6px; bottom: -50px; }
  .sec { padding: 80px 0; }
  .sub { font-size: 18px; }
  .chain, .bento, .roles { margin-top: 44px; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.full { grid-column: auto; min-height: 0; }
  .roles { grid-template-columns: 1fr; }
  .schools, .filters { grid-template-columns: 1fr; }
  .filters { padding: 16px; border-radius: 24px; }
  .find-hero { padding-bottom: 130px; }
  .find-results .wrap { border-radius: 28px; padding-top: 24px; }
  .nav .aud-switch { align-self: flex-start; margin: 4px 0; }
  .doc-sheet { border-radius: 28px; font-size: 16px; }
  .doc-sheet .clause { grid-template-columns: 1fr; gap: 2px; }
  .doc-sheet ul { padding-left: 24px; }
  .doc-toc ol { columns: 1; }
  .doc-table th, .doc-table td { display: block; width: auto; padding: 10px 14px; }
  .doc-table td { border-top: 0; padding-top: 0; }
  .doc-hero { padding-bottom: 130px; }
  .nav .aud-switch a { padding: 9px 16px; font-size: 15px; }
  .school h3 { font-size: 22px; }
  .pain, .vs { grid-template-columns: 1fr; }
  .jpanel { padding: 22px; border-radius: 28px; }
  .mrow { grid-template-columns: 1fr auto; }
  .mrow > span:last-child { display: none; }
  .tab { min-height: 46px; padding: 0 16px; font-size: 15px; }
  .faq summary { font-size: 16px; padding: 16px 18px; }
  .faq details p { padding: 0 18px 18px; }
  .pcard { min-height: 0; }
  .vs > div { padding: 26px; }
  .path i { display: none; }
  .aud span { padding: 12px 18px; }
  .honest { grid-template-columns: 1fr; padding: 26px; }
  .final { padding-bottom: 70px; }
  .call { padding: 48px 24px; border-radius: 32px; }
  .call .ring { right: -220px; top: -220px; opacity: 0.6; }
  .foot nav { margin-left: 0; }
  .btn { padding: 0 20px; font-size: 17px; }
  .step .num { font-size: 46px; }
  .dots i { width: 12px; height: 12px; }
  .plus { font-size: 20px; }
  .call .ring::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scene { transform: rotate(-2.5deg); }
  .tick { background: var(--lime); border-color: var(--lime); color: var(--navy); }
  .tick.no { background: #2a3080; border-color: #2a3080; color: var(--sky); }
  .roll span { transform: translateY(-176px); }
}

/* The hidden attribute always wins over a class that sets display (.btn, .more, ...): the scripts hide with el.hidden = true.
   landing/hidden_guard.py checks that this rule exists and is not beaten (build.py and scripts/test_landing_hidden.py). */
[hidden] { display: none !important; }

/* A finger-sized pointer: every link is a 44 px target. The height comes from padding, never from the font size. */
@media (pointer: coarse) {
  .foot a, .doc-toc a, .brand, .founder a[data-telegram] { display: inline-flex; align-items: center; min-height: 44px; }
  /* A link inside a sentence: the padding makes the box 44 px high and does not move the line (vertical padding of an inline box). */
  .cookie-note a, .callnote a { padding-block: 14px; }
}

/* The cookie notice on a phone: a few lines and the button beside them, not a quarter of the screen. */
@media (max-width: 640px) {
  .cookie-note { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding: 10px 12px 10px 14px; gap: 4px 12px; border-radius: 18px; flex-wrap: nowrap; }
  .cookie-note p { flex: 1 1 auto; font-size: 13px; line-height: 1.35; }
  .cookie-note .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
}
