:root {
    --action-blue: #315FD6;
    --wave-blue: #4F7CFF;
    --flow-violet: #6B5CE7;
    --evolution-aqua: #2ECAB6;
    --deep-ink: #17233F;
    --soft-mist: #F5F8FF;
    --dark-background: #0E1730;
    --dark-surface: #16213A;
    --dark-text: #F1F5FF;
    --dark-accent-blue: #7898FF;
    --dark-aqua: #56DDCA;
    --dark-violet: #9488FF;
    --white: #FFFFFF;
    --success: #198754;
    --error: #C83F49;
    --bg: var(--soft-mist);
    --surface: var(--white);
    --surface-soft: rgba(79, 124, 255, 0.08);
    --surface-mint: rgba(46, 202, 182, 0.10);
    --ink: var(--deep-ink);
    --muted: rgba(23, 35, 63, 0.74);
    --subtle: rgba(23, 35, 63, 0.62);
    --line: rgba(79, 124, 255, 0.20);
    --brand: var(--action-blue);
    --brand-dark: var(--deep-ink);
    --brand-soft: rgba(79, 124, 255, 0.12);
    --mint: var(--evolution-aqua);
    --mint-dark: var(--deep-ink);
    --button-text: var(--white);
    --error-soft: rgba(200, 63, 73, 0.10);
    --warning: var(--flow-violet);
    --shadow-sm: 0 8px 24px rgba(23, 35, 63, 0.08);
    --shadow-lg: 0 24px 72px rgba(23, 35, 63, 0.13);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --max-width: 1180px;
    --typing-size: clamp(1.35rem, 2.7vw, 2rem);
}

@font-face {
    font-family: "Manrope";
    src: url("../assets/fonts/Manrope-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("../assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

html[data-theme="dark"] {
    --bg: var(--dark-background);
    --surface: var(--dark-surface);
    --surface-soft: rgba(120, 152, 255, 0.10);
    --surface-mint: rgba(86, 221, 202, 0.10);
    --ink: var(--dark-text);
    --muted: rgba(241, 245, 255, 0.76);
    --subtle: rgba(241, 245, 255, 0.62);
    --line: rgba(120, 152, 255, 0.24);
    --brand: var(--dark-accent-blue);
    --brand-dark: var(--dark-text);
    --brand-soft: rgba(120, 152, 255, 0.14);
    --mint: var(--dark-aqua);
    --mint-dark: var(--dark-aqua);
    --button-text: var(--deep-ink);
    --error-soft: rgba(200, 63, 73, 0.18);
    --warning: var(--dark-violet);
    --shadow-sm: 0 8px 24px rgba(14, 23, 48, 0.22);
    --shadow-lg: 0 24px 72px rgba(14, 23, 48, 0.38);
    color-scheme: dark;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: "Manrope";
    font-size: 1rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.large-text { font-size: 1.125rem; --typing-size: clamp(1.55rem, 3vw, 2.25rem); }
body.high-contrast {
    --bg: var(--white);
    --surface: var(--white);
    --surface-soft: var(--soft-mist);
    --surface-mint: var(--soft-mist);
    --ink: var(--deep-ink);
    --muted: var(--deep-ink);
    --subtle: var(--deep-ink);
    --line: var(--deep-ink);
    --brand: var(--action-blue);
    --brand-dark: var(--deep-ink);
    --brand-soft: var(--soft-mist);
    --mint: var(--evolution-aqua);
    --mint-dark: var(--deep-ink);
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button { color: inherit; }
p, h1, h2, h3, h4 { margin-top: 0; }
ul, ol { margin: 0; padding: 0; }

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 999;
    padding: 10px 16px;
    color: var(--white);
    background: var(--brand-dark);
    border-radius: 8px;
    transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
    outline: 3px solid var(--evolution-aqua);
    outline-offset: 3px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid var(--brand);
    border-radius: 999px;
    color: var(--button-text);
    background: var(--brand);
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover { background: var(--wave-blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.button-small { min-height: 42px; padding: 9px 17px; font-size: 0.9rem; }
.button-secondary { color: var(--brand-dark); background: var(--surface); border-color: var(--line); }
.button-secondary:hover { color: var(--brand-dark); background: var(--brand-soft); }
.button-light { color: var(--deep-ink); background: var(--soft-mist); border-color: var(--soft-mist); }
.button-light:hover { color: var(--deep-ink); background: var(--dark-aqua); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.header-inner { height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo { width: 156px; height: auto; display: block; }
.brand-logo-dark { display: none; }
html[data-theme="dark"] .brand-logo-light { display: none; }
html[data-theme="dark"] .brand-logo-dark { display: block; }
.footer-logo { width: 168px; }
.desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.desktop-nav a, .footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 0.92rem; font-weight: 650; }
.desktop-nav a:hover, .footer-links a:hover,
.desktop-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--brand); }
.desktop-nav a[aria-current="page"] { position: relative; }
.desktop-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px; background: var(--evolution-aqua); border-radius: 2px; }
.header-cta { margin-left: 8px; }
.theme-toggle { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.theme-toggle span { width: 18px; height: 18px; display: block; border: 2px solid var(--brand); border-radius: 50%; box-shadow: inset -5px -3px 0 0 var(--surface), inset -8px -5px 0 0 var(--brand); }
.theme-toggle:hover { background: var(--brand-soft); }
html[data-theme="dark"] .theme-toggle span { border-color: var(--dark-aqua); box-shadow: none; background: var(--dark-aqua); }
.menu-button { width: 48px; height: 48px; display: none; border: 0; background: transparent; border-radius: 12px; cursor: pointer; }
.menu-button span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform 180ms ease, opacity 180ms ease; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { padding: 8px 20px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.mobile-nav a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-weight: 700; }

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(68px, 9vw, 118px) 0 clamp(76px, 10vw, 132px);
}

.hero::before { display: none; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr); gap: clamp(50px, 8vw, 100px); align-items: center; }
.eyebrow, .section-kicker { color: var(--brand-dark); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.eyebrow span { width: 18px; height: 8px; display: inline-block; background: var(--evolution-aqua); border-radius: 4px; }
.hero h1, .hero h2 { max-width: 760px; margin-bottom: 24px; font-size: clamp(2.65rem, 5.7vw, 5.25rem); line-height: 0.99; letter-spacing: -0.065em; }
.hero h1 span, .hero h2 span { color: var(--brand); }
.hero-copy > p { max-width: 650px; margin-bottom: 30px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.25rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 27px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 22px; list-style: none; color: var(--muted); font-size: 0.86rem; font-weight: 650; }
.hero-trust span { color: var(--mint); margin-right: 5px; }

.hero-insight {
    position: relative;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(1.2deg);
}

.hero-insight::after { content: ""; position: absolute; inset: 12px -12px -12px 12px; z-index: -1; border: 1px solid var(--flow-violet); border-radius: var(--radius-lg); }
.insight-topline, .card-heading, .preview-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--mint-dark); padding: 5px 10px; background: var(--surface-mint); border-radius: 999px; }
.status-chip i { width: 7px; height: 7px; background: var(--mint); border-radius: 50%; }
.insight-score { display: flex; align-items: flex-end; gap: 14px; margin: 25px 0 8px; }
.insight-score strong { font-size: 4.4rem; line-height: 0.85; letter-spacing: -0.08em; }
.insight-score span { color: var(--muted); font-size: 0.78rem; line-height: 1.25; }
.sparkline { width: 100%; height: auto; overflow: visible; }
.spark-area { fill: rgba(79, 124, 255, 0.10); }
.spark-line { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; }
.sparkline circle { fill: var(--brand); stroke: var(--surface); stroke-width: 3; }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.insight-grid div { padding: 13px 11px; background: var(--surface-soft); border-radius: 12px; }
.insight-grid span, .insight-grid strong { display: block; }
.insight-grid span { color: var(--subtle); font-size: 0.68rem; }
.insight-grid strong { margin-top: 3px; font-size: 0.92rem; }
.insight-note { margin: 17px 0 0; padding-top: 15px; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.8rem; }
.insight-note span { color: var(--mint); font-weight: 900; }

.typing-section { min-height: calc(100svh - 74px); position: relative; overflow: hidden; display: flex; align-items: center; padding: clamp(38px, 5vw, 64px) 0 clamp(56px, 7vw, 86px); background: var(--bg); border-bottom: 1px solid var(--line); }
.typing-section > .container { position: relative; z-index: 1; }
.typing-rhythm { position: absolute; inset: 0; pointer-events: none; }
.typing-rhythm span { position: absolute; width: 112px; height: 32px; right: max(18px, 4vw); border-radius: 12px; opacity: 0.16; }
.typing-rhythm span:nth-child(1) { top: 9%; background: var(--action-blue); }
.typing-rhythm span:nth-child(2) { width: 76px; top: 18%; right: max(92px, 11vw); background: var(--evolution-aqua); }
.typing-rhythm span:nth-child(3) { width: 142px; bottom: 13%; background: var(--flow-violet); }
.typing-rhythm span:nth-child(4) { width: 88px; bottom: 6%; right: max(130px, 14vw); background: var(--wave-blue); }
.section-heading { margin-bottom: 38px; }
.section-heading h2, .compact-heading h1, .schools-copy h2, .accessibility-grid h2, .faq-intro h2 { margin: 8px 0 12px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.052em; }
.section-heading > p, .compact-heading > p, .faq-intro > p { color: var(--muted); }
.compact-heading { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: end; gap: 50px; }
.compact-heading h1, .compact-heading h2 { margin-bottom: 0; }
.compact-heading h1 span { color: var(--action-blue); }
.compact-heading > p { max-width: 430px; margin: 0; }
.centered { max-width: 760px; margin-inline: auto; text-align: center; }

.typing-shell { overflow: visible; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--action-blue); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.typing-toolbar { display: flex; align-items: flex-end; gap: 12px; padding: 4px 4px 18px; border-bottom: 1px solid var(--line); }
.segmented-control { display: flex; align-items: center; gap: 4px; min-width: 0; margin: 0; padding: 4px; border: 0; background: var(--surface-soft); border-radius: 12px; }
.segmented-control legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.segment { min-height: 40px; padding: 8px 13px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 0.84rem; font-weight: 750; cursor: pointer; white-space: nowrap; }
.segment:hover { color: var(--brand-dark); }
.segment.active { color: var(--brand-dark); background: var(--surface); box-shadow: 0 3px 10px rgba(23, 35, 63, 0.09); }

.accessibility-menu { position: relative; margin-left: auto; }
.accessibility-menu summary { min-height: 48px; display: flex; align-items: center; padding: 10px 14px; color: var(--brand-dark); border: 1px solid var(--line); border-radius: 12px; font-size: 0.84rem; font-weight: 800; cursor: pointer; list-style: none; }
.accessibility-menu summary::-webkit-details-marker { display: none; }
.accessibility-menu summary::after { content: "+"; margin-left: 8px; font-size: 1.1rem; }
.accessibility-menu[open] summary::after { content: "−"; }
.accessibility-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: 238px; padding: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.preference-toggle { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; font-size: 0.86rem; font-weight: 650; cursor: pointer; text-align: left; }
.preference-toggle:hover { background: var(--surface-soft); }
.preference-toggle i { width: 34px; height: 20px; position: relative; flex: 0 0 auto; background: var(--line); border-radius: 999px; transition: background 180ms ease; }
.preference-toggle i::after { content: ""; position: absolute; width: 14px; height: 14px; top: 3px; left: 3px; background: var(--surface); border-radius: 50%; transition: transform 180ms ease; }
.preference-toggle[aria-pressed="true"] i { background: var(--brand); }
.preference-toggle[aria-pressed="true"] i::after { transform: translateX(14px); }

.live-row { min-height: 88px; display: flex; align-items: center; gap: 34px; padding: 14px 12px 8px; }
.live-row > div { display: flex; align-items: baseline; gap: 7px; }
.live-row strong { font-family: "IBM Plex Mono"; font-size: 1.15rem; font-weight: 400; }
.live-row span { color: var(--subtle); font-size: 0.78rem; font-weight: 700; }
.live-row .live-primary strong { color: var(--brand); font-size: 2.2rem; letter-spacing: -0.06em; }
.restart-button { min-width: 44px; min-height: 44px; margin-left: auto; padding: 8px 12px; color: var(--muted); border: 1px solid transparent; background: transparent; border-radius: 10px; font-weight: 700; cursor: pointer; }
.restart-button:hover { color: var(--brand); background: var(--surface-soft); }

.typing-stage { position: relative; min-height: 238px; display: flex; align-items: center; padding: 34px; background: var(--bg); border: 2px solid transparent; border-radius: var(--radius-md); cursor: text; transition: border-color 180ms ease, background 180ms ease; }
.typing-shell.focused .typing-stage { background: var(--surface); border-color: var(--wave-blue); }
.typing-input { position: absolute; width: 1px; height: 1px; left: 50%; bottom: 18px; opacity: 0.01; padding: 0; border: 0; resize: none; }
.words-viewport { width: 100%; height: calc(var(--typing-size) * 1.72 * 3); overflow: hidden; }
.words-wrapper { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0.18em 0.72em; color: var(--subtle); font-family: "IBM Plex Mono"; font-size: var(--typing-size); line-height: 1.72; letter-spacing: 0.012em; transform: translateY(0); transition: transform 180ms ease; }
.word { display: inline-flex; white-space: nowrap; border-radius: 7px; }
.letter { position: relative; }
.letter.correct { color: var(--ink); }
.letter.incorrect { color: var(--error); background: var(--error-soft); text-decoration: underline 2px; text-underline-offset: 4px; }
.letter.missed { color: var(--error); opacity: 0.55; text-decoration: underline 2px dotted; text-underline-offset: 4px; }
.letter.current::before, .word.caret-at-end::after { content: ""; position: absolute; width: 2px; height: 1.28em; top: 50%; left: -1px; background: var(--brand); border-radius: 2px; transform: translateY(-50%); animation: caret-blink 1s step-end infinite; }
.word.caret-at-end { position: relative; }
.word.caret-at-end::after { left: auto; right: -2px; }
@keyframes caret-blink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0.15; } }

.focus-prompt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 20px; color: var(--ink); background: rgba(245, 248, 255, 0.92); border: 0; border-radius: inherit; cursor: text; transition: opacity 150ms ease; }
html[data-theme="dark"] .focus-prompt { background: rgba(22, 33, 58, 0.94); }
.focus-prompt strong { font-size: 1rem; }
.focus-prompt span { color: var(--muted); font-size: 0.82rem; }
.typing-shell.focused .focus-prompt, .typing-shell.started .focus-prompt { opacity: 0; pointer-events: none; }
.test-footnote { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 7px 0; color: var(--subtle); font-size: 0.78rem; }
kbd { display: inline-flex; min-width: 26px; min-height: 25px; align-items: center; justify-content: center; padding: 2px 7px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; font-family: "IBM Plex Mono"; font-size: 0.75rem; font-weight: 400; }

.result-panel { padding: 32px 10px 12px; border-top: 1px solid var(--line); }
.result-panel[hidden] { display: none; }
.typing-shell.finished > .typing-toolbar,
.typing-shell.finished > .live-row,
.typing-shell.finished > .typing-stage,
.typing-shell.finished > .test-footnote { display: none; }
.typing-shell.finished .result-panel { padding-top: 18px; border-top: 0; }
.result-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.result-heading h3 { margin: 5px 0 6px; font-size: clamp(1.8rem, 3.2vw, 2.7rem); letter-spacing: -0.045em; line-height: 1.1; }
.result-heading p { margin: 0; color: var(--muted); }
.result-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.result-metric { min-height: 136px; display: flex; flex-direction: column; padding: 20px; background: var(--surface-soft); border: 1px solid transparent; border-radius: 16px; }
.result-metric.featured { background: var(--brand); color: var(--button-text); }
.result-metric > span, .result-metric small { color: var(--subtle); font-size: 0.75rem; }
.result-metric.featured > span, .result-metric.featured small { color: var(--button-text); opacity: 0.78; }
.result-metric strong { display: block; margin: auto 0 2px; font-family: "IBM Plex Mono"; font-size: 1.7rem; font-weight: 400; letter-spacing: -0.04em; }
.result-metric strong b { font-size: 2.25rem; }
.result-grid { display: grid; grid-template-columns: 1.6fr 0.8fr; gap: 12px; margin-top: 12px; }
.analysis-card, .detail-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.card-heading div { display: flex; flex-direction: column; }
.card-heading strong { color: var(--ink); font-size: 0.83rem; }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 3px; background: var(--brand); border-radius: 5px; }
#result-chart { width: 100%; margin: 10px 0 0; overflow: visible; }
.chart-grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 7; }
.result-chart-area { fill: rgba(79, 124, 255, 0.10); }
.result-chart-line { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.chart-axis { display: flex; justify-content: space-between; color: var(--subtle); font-size: 0.7rem; }
.diagnosis-card { background: var(--surface-mint); border-color: var(--evolution-aqua); }
.card-label { color: var(--mint-dark); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.diagnosis-card h4 { margin: 18px 0 8px; font-size: 1.4rem; line-height: 1.2; }
.diagnosis-card p { color: var(--muted); font-size: 0.9rem; }
.practice-box { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--evolution-aqua); }
.practice-box > span { display: block; margin-bottom: 10px; color: var(--mint-dark); font-size: 0.72rem; font-weight: 800; }
.key-list { display: flex; flex-wrap: wrap; gap: 7px; }
.key-list kbd { background: var(--surface); }
.detail-row { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 12px; margin-top: 12px; }
.detail-card > span { color: var(--subtle); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.detail-card p { margin: 12px 0 0; color: var(--muted); }
.character-stats { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 12px; }
.character-stats span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.82rem; }
.character-stats i { width: 8px; height: 8px; border-radius: 50%; }
.correct-dot { background: var(--mint); }
.error-dot { background: var(--error); }
.missed-dot { background: var(--warning); }
.extra-dot { background: var(--brand); }

.benefits-section, .steps-section, .faq-section { padding: clamp(84px, 10vw, 138px) 0; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.benefit-card { position: relative; min-height: 310px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.benefit-card.emphasized { transform: translateY(-14px); background: var(--action-blue); color: var(--white); border-color: var(--action-blue); box-shadow: var(--shadow-lg); }
.benefit-number { position: absolute; top: 22px; right: 24px; color: var(--subtle); font-family: "IBM Plex Mono"; font-size: 0.72rem; font-weight: 400; letter-spacing: 0.12em; }
.emphasized .benefit-number { color: var(--dark-text); }
.benefit-icon { width: 62px; height: 56px; display: flex; align-items: flex-end; gap: 5px; margin-bottom: 58px; padding: 12px; background: var(--brand-soft); border-radius: var(--radius-md); }
.benefit-icon i { width: 9px; display: block; border-radius: 5px; background: var(--action-blue); }
.benefit-icon i:nth-child(1) { height: 13px; }
.benefit-icon i:nth-child(2) { height: 27px; background: var(--evolution-aqua); }
.benefit-icon i:nth-child(3) { height: 20px; background: var(--flow-violet); }
.benefit-violet .benefit-icon { background: rgba(107, 92, 231, 0.12); }
.emphasized .benefit-icon { background: rgba(255, 255, 255, 0.14); }
.emphasized .benefit-icon i { background: var(--dark-text); }
.emphasized .benefit-icon i:nth-child(2) { background: var(--dark-aqua); }
.emphasized .benefit-icon i:nth-child(3) { background: var(--dark-violet); }
.benefit-card h3 { margin-bottom: 10px; font-size: 1.25rem; letter-spacing: -0.025em; }
.benefit-card p { margin-bottom: 0; color: var(--muted); font-size: 0.94rem; }
.emphasized p { color: var(--dark-text); opacity: 0.86; }

.schools-section { overflow: hidden; padding: clamp(88px, 11vw, 144px) 0; color: var(--dark-text); background: var(--dark-background); }
.schools-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(58px, 9vw, 112px); align-items: center; }
.section-kicker.light { color: var(--dark-aqua); }
.schools-copy h2 { margin-top: 12px; color: var(--dark-text); }
.schools-copy > p { color: var(--dark-text); opacity: 0.80; font-size: 1.05rem; }
.school-benefits { display: grid; gap: 20px; margin: 33px 0; list-style: none; }
.school-benefits li { display: grid; grid-template-columns: 31px 1fr; gap: 12px; }
.school-benefits li > span { width: 29px; height: 29px; display: grid; place-items: center; color: var(--deep-ink); background: var(--dark-aqua); border-radius: 50%; font-weight: 800; }
.school-benefits strong { display: block; margin-bottom: 1px; }
.school-benefits p { margin: 0; color: var(--dark-text); opacity: 0.76; font-size: 0.9rem; }

.classroom-preview { padding: 23px; color: var(--deep-ink); background: var(--soft-mist); border-radius: var(--radius-lg); box-shadow: 0 32px 80px rgba(14, 23, 48, 0.38); transform: rotate(-1deg); }
html[data-theme="dark"] .classroom-preview {
    --ink: var(--deep-ink);
    --muted: rgba(23, 35, 63, 0.74);
    --subtle: rgba(23, 35, 63, 0.62);
    --line: rgba(79, 124, 255, 0.20);
    --surface-soft: rgba(79, 124, 255, 0.08);
    --surface-mint: rgba(46, 202, 182, 0.10);
    --brand: var(--action-blue);
    --brand-soft: rgba(79, 124, 255, 0.12);
    --mint: var(--evolution-aqua);
    --mint-dark: var(--deep-ink);
}
.preview-logo-dot { display: inline-block; width: 10px; height: 10px; margin-right: 7px; background: var(--brand); border-radius: 50%; }
.preview-highlight { display: grid; grid-template-columns: 1fr auto; align-items: end; margin: 22px 0 16px; padding: 18px; background: var(--surface-soft); border-radius: 16px; }
.preview-highlight span { color: var(--muted); font-size: 0.78rem; }
.preview-highlight strong { grid-row: 1 / 3; grid-column: 2; font-family: "IBM Plex Mono"; font-size: 2.6rem; font-weight: 400; line-height: 1; letter-spacing: -0.06em; }
.preview-highlight small { color: var(--mint); font-weight: 750; }
.preview-bars { height: 135px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: end; padding: 9px 12px 0; border-bottom: 1px solid var(--line); }
.preview-bars div { height: 100%; display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; }
.preview-bars i { width: 100%; max-width: 34px; height: var(--bar); background: var(--wave-blue); border-radius: 8px 8px 2px 2px; opacity: 0.55; }
.preview-bars div:last-child i { background: var(--brand); }
.preview-bars span { color: var(--subtle); font-size: 0.65rem; }
.preview-list { display: grid; gap: 2px; margin-top: 14px; }
.preview-list > div { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 9px 7px; border-radius: 10px; }
.preview-list > div:hover { background: var(--surface-soft); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; color: var(--brand-dark); background: var(--brand-soft); border-radius: 11px; font-size: 0.7rem; font-weight: 850; }
.avatar.mint { color: var(--mint-dark); background: var(--surface-mint); }
.avatar.lilac { color: var(--flow-violet); background: rgba(107, 92, 231, 0.12); }
.preview-list p { margin: 0; }
.preview-list strong, .preview-list small { display: block; }
.preview-list strong { font-size: 0.78rem; }
.preview-list small { color: var(--subtle); font-size: 0.66rem; }
.preview-list b { font-size: 0.82rem; }
.preview-caption { margin: 12px 0 0; color: var(--subtle); font-size: 0.68rem; text-align: center; }

.steps-section { background: var(--surface); }
.steps-list { max-width: 1020px; display: grid; grid-template-columns: repeat(3, 1fr); margin: 54px auto 0; list-style: none; }
.steps-list li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 0 30px; }
.steps-list li + li { border-left: 1px solid var(--line); }
.steps-list li > span { width: 45px; height: 45px; display: grid; place-items: center; color: var(--brand-dark); background: var(--brand-soft); border-radius: 50%; font-weight: 850; }
.steps-list h3 { margin: 2px 0 8px; font-size: 1.05rem; }
.steps-list p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.accessibility-section { padding: clamp(68px, 8vw, 100px) 0; background: var(--surface-mint); border-block: 1px solid var(--evolution-aqua); }
.accessibility-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 90px; align-items: center; }
.accessibility-grid h2 { margin-bottom: 0; }
.accessibility-grid p { color: var(--muted); }
.accessibility-grid p:last-child { margin-bottom: 0; }

.faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(50px, 9vw, 112px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 4px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 50%; font-size: 1.2rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 710px; margin: -4px 46px 22px 4px; color: var(--muted); }

.page-hero { position: relative; overflow: hidden; padding: clamp(76px, 9vw, 124px) 0; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; width: 142px; height: 34px; right: max(24px, 8vw); bottom: 17%; background: var(--flow-violet); border-radius: 12px; opacity: 0.14; }
.page-hero-inner { position: relative; z-index: 1; max-width: 920px; }
.page-hero h1 { max-width: 900px; margin: 14px 0 24px; font-size: clamp(2.8rem, 6.6vw, 5.8rem); line-height: 0.98; letter-spacing: -0.068em; }
.page-hero h1 span { color: var(--brand); }
.page-hero .page-lede { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.7; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.content-section { padding: clamp(76px, 9vw, 124px) 0; }
.content-section.surface { background: var(--surface); border-block: 1px solid var(--line); }
.content-section.mint { background: var(--surface-mint); border-block: 1px solid var(--evolution-aqua); }
.content-heading { max-width: 760px; margin-bottom: 44px; }
.content-heading h2 { margin: 10px 0 14px; font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1.06; letter-spacing: -0.055em; }
.content-heading p { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }
.story-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(48px, 9vw, 112px); align-items: start; }
.story-grid h2 { margin: 10px 0 0; font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1.04; letter-spacing: -0.058em; }
.story-copy { display: grid; gap: 18px; }
.story-copy p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.story-note { padding: 22px 24px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--evolution-aqua); border-radius: var(--radius-md); }

.purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.purpose-card { min-height: 300px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.purpose-card:nth-child(2) { background: var(--action-blue); border-color: var(--action-blue); color: var(--white); }
.purpose-card:nth-child(2) p, .purpose-card:nth-child(2) .card-index { color: var(--dark-text); }
.card-index { display: block; margin-bottom: 58px; color: var(--brand); font-family: "IBM Plex Mono"; font-size: 0.78rem; letter-spacing: 0.1em; }
.purpose-card h3 { margin-bottom: 12px; font-size: 1.45rem; letter-spacing: -0.03em; }
.purpose-card p { margin: 0; color: var(--muted); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.value-card { min-height: 205px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.value-mark { width: 42px; height: 10px; display: block; margin-bottom: 38px; background: var(--wave-blue); border-radius: 5px; }
.value-card:nth-child(2) .value-mark, .value-card:nth-child(5) .value-mark { background: var(--evolution-aqua); }
.value-card:nth-child(3) .value-mark, .value-card:nth-child(6) .value-mark { background: var(--flow-violet); }
.value-card h3 { margin-bottom: 8px; font-size: 1.12rem; }
.value-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.audience-grid, .metric-explain-grid, .mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metric-explain-grid { grid-template-columns: repeat(2, 1fr); }
.audience-card, .metric-explain-card, .mode-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.audience-card h3, .metric-explain-card h3, .mode-card h3 { margin: 16px 0 9px; font-size: 1.25rem; letter-spacing: -0.025em; }
.audience-card p, .metric-explain-card p, .mode-card p { margin: 0; color: var(--muted); }
.audience-tag, .metric-code { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.metric-code { font-family: "IBM Plex Mono"; font-weight: 400; }

.flow-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; }
.flow-list li { padding: 0 30px; }
.flow-list li:first-child { padding-left: 0; }
.flow-list li + li { border-left: 1px solid var(--line); }
.flow-step { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 24px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 50%; font-family: "IBM Plex Mono"; }
.flow-list h3 { margin-bottom: 10px; font-size: 1.18rem; }
.flow-list p { margin: 0; color: var(--muted); }

.school-page-hero { color: var(--dark-text); background: var(--dark-background); border-bottom: 0; }
.school-page-hero .section-kicker { color: var(--dark-aqua); }
.school-page-hero h1 { color: var(--dark-text); }
.school-page-hero h1 span { color: var(--dark-accent-blue); }
.school-page-hero .page-lede { color: var(--dark-text); opacity: 0.8; }
.school-page-hero::after { background: var(--dark-aqua); opacity: 0.18; }
.school-plan-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(54px, 9vw, 112px); align-items: center; }
.school-plan-copy h2 { margin: 10px 0 16px; font-size: clamp(2.1rem, 4.4vw, 3.7rem); line-height: 1.06; letter-spacing: -0.055em; }
.school-plan-copy > p { color: var(--muted); }
.school-plan-copy .school-benefits p { color: var(--muted); opacity: 1; }
.development-note { margin-top: 28px; padding: 18px 20px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 0.9rem; }
.development-note strong { color: var(--ink); }

.plain-cta { padding: 68px 0; color: var(--white); background: var(--action-blue); }
.plain-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.plain-cta h2 { max-width: 760px; margin: 8px 0 0; color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.045em; }
.plain-cta .section-kicker { color: var(--dark-text); }

.final-cta { padding: 64px 0; color: var(--white); background: var(--action-blue); }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.final-cta-inner > div > span { color: var(--dark-text); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.final-cta h2 { max-width: 780px; margin: 8px 0 0; color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -0.045em; }

.site-footer { padding: 50px 0 24px; background: var(--dark-background); color: var(--dark-text); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 38px; padding-bottom: 38px; }
.footer-inner p { margin: 0; color: var(--dark-text); opacity: 0.72; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--dark-text); opacity: 0.78; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; color: var(--dark-text); opacity: 0.62; border-top: 1px solid var(--dark-surface); font-size: 0.76rem; }

@media (max-width: 980px) {
    .desktop-nav, .header-cta { display: none; }
    .theme-toggle { margin-left: auto; }
    .menu-button { display: block; margin-left: 0; }
    .hero-grid, .schools-grid { grid-template-columns: 1fr; }
    .hero-copy { max-width: 780px; }
    .hero-insight { max-width: 660px; transform: none; }
    .typing-toolbar { flex-wrap: wrap; }
    .accessibility-menu { margin-left: 0; }
    .result-metrics { grid-template-columns: repeat(2, 1fr); }
    .result-grid { grid-template-columns: 1fr; }
    .benefit-card { padding: 24px; }
    .benefit-icon { margin-bottom: 40px; }
    .accessibility-grid { gap: 50px; }
    .purpose-grid, .values-grid, .audience-grid, .metric-explain-grid, .mode-grid { grid-template-columns: repeat(2, 1fr); }
    .story-grid, .school-plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .container { width: min(calc(100% - 28px), var(--max-width)); }
    .header-inner { height: 66px; }
    html { scroll-padding-top: 76px; }
    .hero { padding-top: 52px; }
    .hero-grid { gap: 46px; }
    .hero h1, .hero h2 { font-size: clamp(2.55rem, 13vw, 4.2rem); }
    .typing-section { min-height: auto; padding: 36px 0 60px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .button { width: 100%; }
    .hero-trust { display: grid; gap: 8px; }
    .hero-insight { padding: 20px; }
    .insight-score strong { font-size: 3.6rem; }
    .insight-grid { grid-template-columns: 1fr 1fr; }
    .insight-grid div:last-child { grid-column: 1 / -1; }
    .compact-heading { grid-template-columns: 1fr; gap: 12px; }
    .typing-shell { padding: 10px; border-radius: 22px; }
    .typing-toolbar { align-items: stretch; gap: 8px; padding: 2px 2px 13px; }
    .segmented-control { flex: 1 1 auto; overflow-x: auto; }
    .segment { flex: 1; min-height: 44px; padding-inline: 10px; }
    .accessibility-menu { flex: 1 1 100%; }
    .accessibility-menu summary { justify-content: center; }
    .accessibility-panel { width: 100%; }
    .live-row { min-height: 76px; gap: 16px; padding-inline: 6px; }
    .live-row > div { display: grid; gap: 0; }
    .live-row .live-primary strong { font-size: 1.8rem; }
    .live-row strong { font-size: 1rem; }
    .restart-button span { display: none; }
    .typing-stage { min-height: 210px; padding: 24px 14px; }
    .words-viewport { height: calc(var(--typing-size) * 1.72 * 4); }
    .test-footnote { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 4px 2px; }
    .result-panel { padding-inline: 2px; }
    .result-heading { align-items: flex-start; flex-direction: column; }
    .result-heading .button { width: 100%; }
    .result-metrics { grid-template-columns: 1fr 1fr; }
    .result-metric { min-height: 125px; padding: 15px; }
    .result-metric strong { font-size: 1.35rem; }
    .result-metric strong b { font-size: 1.8rem; }
    .detail-row { grid-template-columns: 1fr; }
    .benefit-grid { grid-template-columns: 1fr; }
    .benefit-card.emphasized { transform: none; }
    .benefit-card { min-height: 265px; }
    .schools-grid { gap: 52px; }
    .classroom-preview { padding: 15px; }
    .steps-list { grid-template-columns: 1fr; gap: 28px; }
    .steps-list li { padding: 0; }
    .steps-list li + li { padding-top: 28px; border-top: 1px solid var(--line); border-left: 0; }
    .accessibility-grid, .faq-grid { grid-template-columns: 1fr; gap: 30px; }
    .final-cta-inner { flex-direction: column; align-items: flex-start; }
    .final-cta-inner .button { width: 100%; }
    .footer-inner { grid-template-columns: 1fr; gap: 18px; }
    .footer-links { flex-wrap: wrap; }
    .page-hero { padding: 62px 0 74px; }
    .page-hero h1 { font-size: clamp(2.7rem, 13vw, 4.4rem); }
    .purpose-grid, .values-grid, .audience-grid, .metric-explain-grid, .mode-grid, .flow-list { grid-template-columns: 1fr; }
    .purpose-card { min-height: 250px; }
    .flow-list { gap: 28px; }
    .flow-list li { padding: 0; }
    .flow-list li + li { padding-top: 28px; border-top: 1px solid var(--line); border-left: 0; }
    .plain-cta-inner { align-items: flex-start; flex-direction: column; }
    .plain-cta .button { width: 100%; }
}

@media (max-width: 430px) {
    .hero h1, .hero h2 { font-size: 2.72rem; }
    .typing-toolbar .segmented-control { flex-basis: 100%; }
    .result-metrics { grid-template-columns: 1fr; }
    .result-metric { min-height: 112px; }
    .character-stats { display: grid; grid-template-columns: 1fr 1fr; }
    .preview-highlight strong { font-size: 2.2rem; }
    .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (any-pointer: coarse) {
    .desktop-nav a, .footer-links a { min-height: 48px; display: inline-flex; align-items: center; }
    .segment { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
