/* wasilday.com. Day's palette and type (src/app/globals.css): Daylight blue,
   the warm child ground, gold for "done", the subject tints (every fill and ink
   above 6.8:1). Fraunces for headings, Hanken Grotesk for everything else,
   both served from this site (SIL Open Font Licence). */

@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/hanken-grotesk.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  --accent: #1D5BD6;
  --accent-ink: #164AB0;
  --accent-deep: #0F3A8C;
  --accent-soft: #E6EEFC;
  --bg: #FFFFFF;
  --warm: #FBF8F4;
  --c-bg: #F6F5F1;
  --line: #E6E1E8;
  --ink: #1F1A24;
  --ink-soft: #3D3A37;
  --muted: #5F5A66;
  --gold: #C49A3C;
  --gold-edge: #7A5A14;
  --gold-soft: #F6EDD8;
  --gold-ink: #6B4E0C;
  --ok-fill: #E3F2E9; --ok-ink: #134F32;
  --idle-fill: #F1EFEA;
  --danger-fill: #FDF4F2; --danger-line: #EBC9C1; --danger-ink: #B3402F;
  --tint-blue: #E6EEFC;   --tint-blue-ink: #164AB0;
  --tint-pink: #FBE6EC;   --tint-pink-ink: #8E1F45;
  --tint-green: #E3F2E9;  --tint-green-ink: #17613D;
  --tint-purple: #EFE7F7; --tint-purple-ink: #5A2E8C;
  --tint-gold: #F6EDD8;   --tint-gold-ink: #6B4E0C;
  --tint-orange: #FDEDE0; --tint-orange-ink: #843808;
  --tint-grey: #EDEAE4;   --tint-grey-ink: #3D3A37;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(31, 26, 36, .06), 0 12px 32px -8px rgba(31, 26, 36, .16);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; }
h1, h2 { font-family: var(--display); letter-spacing: -0.01em; }
a { color: var(--accent-ink); }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); color: #fff; }
.small { font-size: 15px; }
.muted { color: var(--muted); }

/* Buttons: 48px tall at least. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-lg { min-height: 56px; padding: 12px 28px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--accent-ink); border-color: var(--accent-ink); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-quiet { color: var(--accent-ink); }
.btn-quiet:hover { background: var(--accent-soft); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; flex-shrink: 0; border-radius: 8px; }
.brand img { width: 128px; display: block; }
.top-nav { margin-left: auto; }
.top-nav + .top-actions { margin-left: 0; }
.top-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink-soft); font-size: 16px; font-weight: 600; text-decoration: none; }
.top-nav a:hover { background: var(--c-bg); color: var(--ink); }
.top-actions { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 960px) { .top-nav { display: none; } .top-actions { margin-left: auto; } }
@media (max-width: 440px) { .brand img { width: 104px; } .top-actions .btn { padding: 10px 14px; font-size: 15px; } .top-row { gap: 8px; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 10%, var(--accent-soft), transparent 60%), radial-gradient(800px 500px at 0% 100%, var(--gold-soft), transparent 60%), var(--warm); padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-words { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
h1 { font-size: clamp(40px, 5.6vw, 68px); }
.hl { color: var(--accent); }
.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.pill-gold { background: var(--gold-soft); color: var(--gold-ink); border: 1px solid #E9D7AE; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(196, 154, 60, .25); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-art { position: relative; padding: 24px 0 40px; }
.float { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 14px; }
.float-voice { left: -24px; bottom: 0; }
.float-push { right: -12px; top: 0; }
.play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; }
.play .ic { fill: currentColor; }
.wave { display: flex; align-items: center; gap: 3px; height: 20px; margin-top: 4px; }
.wave i { display: block; width: 3px; border-radius: 2px; background: var(--accent); height: 40%; }
.wave i:nth-child(3n) { height: 90%; } .wave i:nth-child(3n+1) { height: 60%; } .wave i:nth-child(4n) { height: 30%; }
@media (max-width: 600px) { .float-voice { left: 0; bottom: -8px; } .float-push { right: 0; top: -8px; } .float { font-size: 13px; padding: 10px 12px; } }

/* Device frames */
.tablet { background: #1F1A24; border-radius: 34px; padding: 14px; box-shadow: 0 30px 60px -20px rgba(15, 58, 140, .35), var(--shadow); }
.tablet-screen { border-radius: 22px; overflow: hidden; min-height: 400px; }
.browser { background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F3F1F4; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D8D3DB; }
.browser-bar span { margin-left: 10px; background: #fff; border-radius: 6px; padding: 3px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone { width: min(280px, 100%); margin: 0 auto; background: #1F1A24; border-radius: 40px; padding: 12px; box-shadow: var(--shadow); }
.phone-screen { background: var(--c-bg); border-radius: 30px; padding: 28px 16px 24px; display: flex; flex-direction: column; gap: 10px; min-height: 420px; }

/* Mockup type: sized to the frame, never read by screen readers (each frame has a label). */
.m-title { font-family: var(--display); font-size: clamp(15px, 1.9vw, 22px); font-weight: 600; }
.m-big { font-size: clamp(13px, 1.5vw, 18px); font-weight: 800; line-height: 1.2; }
.m-strong { font-weight: 700; font-size: 13px; line-height: 1.3; }
.m-sub { color: var(--muted); font-size: 12px; line-height: 1.35; }
.m-kicker { font-size: 11px; font-weight: 800; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .04em; }
.m-label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.m-row { display: flex; gap: 6px; align-items: center; }
.wrap-row { flex-wrap: wrap; }
.center { text-align: center; justify-content: center; }
.m-chip { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1.5px solid #E4E1DA; border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.m-tag { background: var(--accent-soft); color: var(--accent-ink); border-radius: 8px; padding: 3px 8px; font-size: 11px; font-weight: 700; }
.m-btn { display: inline-flex; align-self: flex-start; background: var(--accent); color: #fff; border-radius: 12px; padding: 7px 14px; font-size: 12px; font-weight: 800; }
.m-btn-ok { background: var(--ok-ink); }
.m-btn-quiet { background: #fff; color: var(--ink); border: 1.5px solid #D2CEC6; }
.m-done { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; background: var(--gold); border: 1.5px solid var(--gold-edge); color: var(--ink); border-radius: 10px; padding: 4px 10px; font-size: 11px; font-weight: 800; }
.m-card { background: #fff; border: 1.5px solid #E4E1DA; border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.m-list { display: flex; flex-direction: column; gap: 6px; }
.m-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid #E4E1DA; border-radius: 14px; padding: 8px 10px; }
.sq { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0; font-size: 11px; font-weight: 800; }
.sq .ic { width: 17px; height: 17px; }
.tint-blue { background: var(--tint-blue); color: var(--tint-blue-ink); }
.tint-pink { background: var(--tint-pink); color: var(--tint-pink-ink); }
.tint-green { background: var(--tint-green); color: var(--tint-green-ink); }
.tint-purple { background: var(--tint-purple); color: var(--tint-purple-ink); }
.tint-gold { background: var(--tint-gold); color: var(--tint-gold-ink); }
.tint-orange { background: var(--tint-orange); color: var(--tint-orange-ink); }
.tint-grey { background: var(--tint-grey); color: var(--tint-grey-ink); }

/* The child's Today screen (docs/mockups/Main) */
.child { display: flex; background: var(--c-bg); min-height: 100%; }
.rail { width: 15%; min-width: 56px; background: #fff; border-right: 1.5px solid #E4E1DA; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; }
.rail-logo { display: flex; flex-direction: column; align-items: center; color: var(--accent); font-weight: 800; font-size: 12px; margin-bottom: 6px; }
.rail-logo .ic { width: 22px; height: 22px; }
.rail-item { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 88%; padding: 6px 2px; border-radius: 12px; font-size: 10px; font-weight: 700; color: var(--ink-soft); }
.rail-item .ic { width: 18px; height: 18px; }
.rail-item.on { background: var(--accent); color: #fff; }
.avatar { margin-top: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); font-size: 11px; font-weight: 800; }
.today { flex: 1; min-width: 0; padding: 3% 3.2%; display: flex; flex-direction: column; gap: 10px; }
.today-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.today-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; }
.today-main, .today-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.now-card { background: #fff; border: 2px solid var(--accent); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.now-top { display: flex; gap: 10px; align-items: flex-start; }
.now-top .sq { width: 40px; height: 40px; }
.week { display: flex; gap: 4px; }
.week .d { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #D2CEC6; font-size: 10px; font-weight: 800; color: var(--muted); }
.week .d.done { background: var(--gold); border-color: var(--gold-edge); color: var(--ink); }
.week .d.now { border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 600px) {
  .today-cols { grid-template-columns: 1fr; }
  .today-side, .today-head .m-row, .m-list .m-item:nth-child(n+3) { display: none; }
}

/* Strip */
.strip { background: var(--accent-deep); color: #fff; }
.strip-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; list-style: none; margin: 0 auto; padding-block: 20px; }
.strip li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-warm { background: var(--warm); }
.section-blue { background: var(--accent); color: #fff; }
.eyebrow { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin-bottom: 10px; }
.eyebrow-light { color: #fff; opacity: .9; }
h2 { font-size: clamp(32px, 4vw, 48px); max-width: 18em; }
h3 { font-size: 22px; }
.section-lede { font-size: 20px; color: var(--ink-soft); max-width: 38em; margin-top: 14px; }
.section-blue .section-lede { color: #fff; }

/* Tabs */
.tabs { margin-top: 40px; }
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; background: var(--c-bg); border-radius: 999px; width: fit-content; max-width: 100%; }
.tab-list button { min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: transparent; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.tab-list button:hover { background: #fff; }
.tab-list button[aria-selected="true"] { background: var(--accent); color: #fff; }
.tab-panel { margin-top: 32px; border-radius: var(--radius); }
@media (max-width: 520px) { .tab-list { border-radius: 20px; } .tab-list button { flex: 1 1 40%; padding: 0 12px; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split h3 { font-family: var(--display); font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 14px; }
.split p { color: var(--ink-soft); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--ok-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23134F32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 16px no-repeat; }

.art { border-radius: var(--radius); padding: clamp(20px, 4vw, 48px); display: grid; place-items: center; min-height: 360px; }
.art-gold { background: linear-gradient(135deg, var(--gold-soft), #FBF3E2); }
.art-blue { background: linear-gradient(135deg, var(--accent-soft), #F1F5FE); }
.art-green { background: linear-gradient(135deg, var(--tint-green), #F0F8F3); }
.art-pink { background: linear-gradient(135deg, var(--tint-pink), #FDF2F5); }

/* Flashcards */
.card-stack { position: relative; width: min(340px, 100%); aspect-ratio: 5 / 4; }
.flash { position: absolute; inset: 0; background: #fff; border-radius: 24px; border: 2px solid #E4E1DA; }
.flash.back2 { transform: rotate(-6deg) translate(-10px, 8px); background: var(--tint-blue); }
.flash.back1 { transform: rotate(3deg) translate(8px, 4px); background: var(--tint-purple); }
.flash.front { display: flex; flex-direction: column; gap: 10px; padding: 22px; box-shadow: var(--shadow); }
.flash-q { font-size: 18px; font-weight: 700; line-height: 1.3; }
.flash-a { font-family: var(--display); font-size: 40px; color: var(--accent-ink); text-align: center; margin: auto 0 0; }

/* Staff library */
.art-blue .browser { width: 100%; }
.staff { display: flex; min-height: 300px; }
.staff-side { width: 26%; min-width: 0; background: var(--accent); color: #fff; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.staff-side img { width: 72px; margin: 0 0 10px 6px; }
.staff-side span { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; }
.staff-side span.on { background: rgba(255, 255, 255, .18); }
.staff-side .ic { width: 15px; height: 15px; }
.staff-main { flex: 1; min-width: 0; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--warm); }
.staff-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.s-title { font-family: var(--display); font-size: 20px; font-weight: 600; }
.s-btn { background: var(--accent); color: #fff; border-radius: 8px; padding: 5px 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.s-filter { border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; background: #fff; }
.s-filter.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.s-rows { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.s-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 10px; border-top: 1px solid #F0ECF1; }
.s-row:first-child { border-top: 0; }
.chip { border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 800; }
.ok, .idle { font-size: 10px; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
.ok { background: var(--ok-fill); color: var(--ok-ink); }
.idle { background: var(--idle-fill); color: var(--ink-soft); }
.s-push { border: 1.5px solid var(--accent-ink); color: var(--accent-ink); border-radius: 8px; padding: 3px 9px; font-size: 11px; font-weight: 700; }
.tag-set { background: var(--tint-purple); color: var(--tint-purple-ink); border-radius: 6px; padding: 1px 6px; font-size: 10px; font-weight: 800; margin-left: 4px; white-space: nowrap; }
@media (max-width: 560px) { .staff-side { display: none; } .s-row { grid-template-columns: auto minmax(0, 1fr) auto; } .s-row .ok, .s-row .idle { display: none; } }

/* Leaders */
.panel-mock { width: min(420px, 100%); background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.panel-mock > div { display: flex; flex-direction: column; gap: 10px; }
.bar { height: 12px; border-radius: 999px; background: var(--idle-fill); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 86%; background: var(--ok-ink); border-radius: 999px; }
.ink { color: var(--ink); }
.note { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

/* Features */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.feature-flip .feature-words { order: 2; }
.feature-words h3 { font-family: var(--display); font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 14px; }
.feature-words p { color: var(--ink-soft); }
.feature-art { display: grid; place-items: center; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature-flip .feature-words { order: 0; } }

.builder { width: min(440px, 100%); background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.builder > div { display: flex; flex-direction: column; gap: 10px; }
.b-item { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 14px; padding: 9px 12px; }
.b-item .m-sub { font-weight: 500; }
.b-add { align-self: flex-start; border: 2px dashed #8A857E; border-radius: 12px; padding: 6px 14px; font-weight: 800; font-size: 13px; color: var(--accent-ink); }

.quiz { width: min(420px, 100%); background: var(--c-bg); border: 12px solid #1F1A24; border-radius: 34px; padding: 26px; box-shadow: var(--shadow); }
.quiz > div { display: flex; flex-direction: column; gap: 14px; }
.quiz-q { font-family: var(--display); font-size: 28px; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { display: grid; place-items: center; min-height: 72px; background: #fff; border: 2px solid #D2CEC6; border-radius: 18px; font-size: 26px; font-weight: 800; }
.opt.chosen { border: 3px solid var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.quiz .m-btn { align-self: stretch; justify-content: center; font-size: 15px; padding: 12px; border-radius: 14px; }

.board { width: 100%; max-width: 520px; background: #111; border-radius: 14px; padding: 10px; box-shadow: var(--shadow); }
.board > div { display: flex; flex-direction: column; gap: 8px; }
.slide { aspect-ratio: 16 / 9; background: #fff; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.slide-t { font-family: var(--display); font-size: clamp(20px, 3vw, 30px); }
.tenths { display: grid; grid-template-columns: repeat(10, 1fr); width: 76%; border: 2px solid var(--ink); }
.tenths i { aspect-ratio: 1 / 2; border-left: 2px solid var(--ink); }
.tenths i:first-child { border-left: 0; }
.tenths i.f { background: var(--accent); }
.board-bar { display: grid; grid-template-columns: 1fr auto 1fr; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 6px 4px; }
.board-bar .m-row { gap: 12px; }
.board-bar b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .16); }

.cards { list-style: none; padding: 0; margin: clamp(48px, 7vw, 88px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card .sq { width: 48px; height: 48px; border-radius: 14px; }
.card .sq .ic { width: 24px; height: 24px; }
.card h3 { font-size: 20px; }
.card p { color: var(--ink-soft); font-size: 17px; }

/* Promises */
.promises { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.promises li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.promises .ic { width: 34px; height: 34px; }
.promises h3 { font-size: 20px; }

/* Suite */
.suite { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; align-items: center; }
.suite-centre { display: grid; place-items: center; aspect-ratio: 1; max-width: 340px; width: 100%; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle, #fff 45%, var(--accent-soft) 46%, var(--accent-soft) 64%, #F3F6FD 65%); }
.suite-centre img { width: 52%; }
.suite-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.suite-item { border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 16px; padding: 18px 20px; }
.suite-item p { color: var(--ink-soft); font-size: 17px; }
.suite-item .suite-name { color: var(--ink); font-weight: 800; font-size: 18px; margin-bottom: 4px; }
@media (max-width: 860px) { .suite { grid-template-columns: 1fr; } .suite-centre { max-width: 220px; } }

/* Beta */
.beta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.beta-words { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.beta-words > p { color: var(--ink-soft); }
@media (max-width: 860px) { .beta { grid-template-columns: 1fr; } }
.beta-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
label { font-weight: 700; font-size: 16px; }
.opt-word { font-weight: 500; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 2px solid #8C8590; border-radius: 12px; min-height: 52px; padding: 10px 14px; width: 100%; }
textarea { resize: vertical; min-height: 96px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--danger-ink); }
.form-error { background: var(--danger-fill); border: 1px solid var(--danger-line); color: var(--danger-ink); border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done-box { text-align: left; display: flex; flex-direction: column; gap: 10px; }
.done-box h3 { font-family: var(--display); font-size: 28px; }

/* Footer */
.foot { background: var(--ink); color: #fff; padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot-logo { width: 140px; display: block; }
.foot-note { margin-top: 12px; color: #D9D5DC; font-size: 16px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; }
.foot-links a:hover { color: #C9D8F8; }
.foot-small { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); color: #BDB7C2; font-size: 14px; }

/* Plain pages: thanks and not found */
.plain { min-height: calc(100vh - 73px); display: grid; place-items: center; padding-block: 64px; background: var(--warm); }
.plain-box { max-width: 560px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

/* Privacy and terms */
.legal { background: var(--warm); padding-block: clamp(40px, 6vw, 72px); }
.legal-wrap { max-width: 780px; display: flex; flex-direction: column; gap: 28px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); }
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 12px; }
.legal h3 { font-size: 19px; margin: 18px 0 6px; }
.legal section p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 24px; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.legal-meta { color: var(--muted); }
.legal-toc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.legal-toc ol { margin: 0; gap: 2px; }
.legal-toc a { display: inline-block; padding: 4px 0; }
.todo { background: #FFF1B8; color: var(--ink); border-radius: 4px; padding: 0 4px; outline: 1px dashed var(--gold-edge); }

/* Sign in: a pupil or staff choice */
.choose { max-width: 880px; display: flex; flex-direction: column; gap: 28px; }
.choose h1 { font-size: clamp(36px, 5vw, 52px); }
.choose-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.choose-card { display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 32px; border-radius: var(--radius); border: 3px solid transparent; text-decoration: none; box-shadow: var(--shadow); }
.choose-card:hover { transform: translateY(-2px); }
.choose-child { background: var(--gold-soft); color: var(--gold-ink); border-color: #E9D7AE; }
.choose-child:hover { border-color: var(--gold-edge); color: var(--gold-ink); }
.choose-staff { background: var(--accent-soft); color: var(--accent-ink); border-color: #C9D8F8; }
.choose-staff:hover { border-color: var(--accent); color: var(--accent-ink); }
.choose-ic { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.choose-title { font-family: var(--display); font-size: 34px; font-weight: 600; color: var(--ink); }
.choose-sub { font-size: 18px; color: var(--ink-soft); }
.choose-tip { color: var(--muted); font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .choose-card:hover { transform: none; } }
.choose-tip strong { white-space: nowrap; }
