/* Shared by the Channel landing page and the parent cabinet. Every token is rewritten by paint() in channel.js; these are the 6-year-old values. */
:root {
    --age: 6;
    --bg: #FFCE3A; --on-bg: #1E1A3C;
    --acc: #FF5B4A; --on-acc: #1E1A3C;
    --s1: #FF5B4A; --s2: #2F6BEF; --s3: #FFFFFF;
    --page: #E8F3FF; --ink: #1E1A3C; --card: #FFFFFF; --line: rgba(30, 26, 60, .14); --soft: rgba(30, 26, 60, .66);
    --rb-body: #6EC3FF; --rb-accent: #FF5B4A; --rb-screen: #1E1A3C; --rb-glow: #DDF6FF; --rb-joint: #FF8FB1;
    --rad: 28px; --casl: 1; --wd: 900; --slnt: -9; --tilt: -2deg; --bob: 12px; --m: 0;
    --focus: #2F6BEF;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --gut: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0; background: var(--page); color: var(--ink);
    font-family: 'Recursive', 'Segoe UI', system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6;
    font-variation-settings: "CASL" calc(var(--casl) * .45), "slnt" 0, "MONO" 0;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--acc); color: var(--on-acc); }
html { scrollbar-color: color-mix(in oklch, var(--ink) 35%, transparent) var(--page); }
input, select, textarea { caret-color: var(--acc); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; background: var(--ink); color: var(--page); border-radius: 8px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-weight: var(--wd); font-variation-settings: "CASL" var(--casl), "slnt" var(--slnt), "MONO" 0; letter-spacing: -.025em; text-wrap: balance; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: color-mix(in oklch, var(--ink) 9%, transparent); color: var(--soft); font-size: .8rem; font-weight: 600; vertical-align: middle; }

/* Type, habit chips, screen ratings, meters and form fields: used on both pages */
section { padding: clamp(64px, 9vw, 120px) 0; }
h2 { margin: 0 0 14px; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.04; max-width: 17em; }
.lede { margin: 0; max-width: 40em; font-size: 1.15rem; color: var(--soft); }
.habit { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.habit i { font-style: normal; padding: 2px 9px; border-radius: 999px; background: color-mix(in oklch, var(--acc) 22%, var(--card)); font-size: .82rem; font-weight: 700; }
.rating { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; line-height: 1.2; }
.rating b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid currentColor; border-radius: calc(var(--rad) * .2 + 2px); font-size: .85rem; font-weight: 800; }
.rating[data-r="U"] b { background: var(--ink); color: var(--page); border-color: var(--ink); }
.pips { display: flex; gap: 6px; }
.pips i { width: 16px; height: 16px; border-radius: calc(var(--rad) * .25 + 1px); border: 2px solid var(--ink); }
.pips i.on { background: var(--acc); border-color: var(--acc); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select { width: 100%; min-height: 50px; padding: 0 14px; border: 2px solid color-mix(in oklch, var(--ink) 25%, transparent); border-radius: calc(var(--rad) * .35 + 4px); background: var(--page); color: var(--ink); font: inherit; }
.field input:focus, .field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in oklch, var(--focus) 30%, transparent); }
.field .err { min-height: 1.2em; margin: 0; color: #C2262E; font-size: .9rem; font-weight: 600; }
.field.bad input, .field.bad select { border-color: #C2262E; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* Buttons: one label per intent, "Book a free lesson" everywhere */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
    border: 0; border-radius: calc(var(--rad) * .7 + 4px); background: var(--ink); color: var(--page);
    font: inherit; font-weight: 700; font-variation-settings: "CASL" var(--casl), "slnt" 0; white-space: nowrap; text-decoration: none; cursor: pointer;
    box-shadow: 0 6px 16px -8px color-mix(in oklch, var(--ink) 60%, transparent);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -10px color-mix(in oklch, var(--ink) 60%, transparent); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--bg) 92%, transparent); color: var(--on-bg); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid color-mix(in oklch, var(--on-bg) 12%, transparent); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-variation-settings: "CASL" var(--casl), "slnt" var(--slnt); font-size: 1.15rem; letter-spacing: -.02em; white-space: nowrap; }
.logo__bot { width: 34px; height: 34px; }
.logo b { font-weight: 500; }
.nav__links { display: flex; gap: 22px; margin: 0 0 0 auto; padding: 0; list-style: none; font-size: .95rem; font-weight: 600; }
.nav__links a { text-decoration: none; opacity: .82; white-space: nowrap; }
.nav__links a:hover { opacity: 1; text-decoration: underline; }
.nav__act { display: flex; align-items: center; gap: 10px; }
.nav .btn { min-height: 44px; padding: 0 18px; background: var(--on-bg); color: var(--bg); }
.nav .btn--ghost { background: transparent; color: var(--on-bg); box-shadow: inset 0 0 0 2px color-mix(in oklch, var(--on-bg) 38%, transparent); }
.nav .btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--on-bg); }
.nav__act { margin-left: auto; }
.nav__links:not([hidden]) + .nav__act { margin-left: 0; }
@media (max-width: 1400px) { .nav__links { display: none; } .nav__links:not([hidden]) + .nav__act { margin-left: auto; } }
@media (max-width: 560px) { .nav .btn--ghost { width: 44px; padding: 0; } .nav .btn--ghost .btn__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (max-width: 420px) { .logo__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .row2 { grid-template-columns: 1fr; } }
@media (max-width: 360px) { .nav .btn { padding: 0 12px; font-size: .88rem; } .nav .btn--ghost { padding: 0; width: 40px; } .nav__in { gap: 8px; } .nav__act { gap: 6px; } }

/* End card */
.end { background: var(--bg); color: var(--on-bg); padding: clamp(48px, 7vw, 88px) 0 36px; }
.end__in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.end h2 { margin: 0; max-width: 14em; }
.end .btn { background: var(--on-bg); color: var(--bg); }
.end__small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 18px; border-top: 1px solid color-mix(in oklch, var(--on-bg) 20%, transparent); font-size: .9rem; opacity: .85; }

.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal:not(.is-seen) { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal:not(.is-seen) { opacity: 1; transform: none; }
}
