.page-home .hero-home {
    min-height: 520px;
    padding: clamp(30px, 5vw, 70px);
}
.page-home .feature-card,
.page-register_student .auth-card,
.page-register_teacher .auth-card { animation: none; }
.page-home .feature-card { content-visibility: visible; }
.page-home .hero-home::before {
    background: rgba(11, 25, 43, .86);
}
.page-home .hero-home .hero-background {
    filter: saturate(.62) contrast(1.04);
    object-position: center 42%;
}
.page-home .hero-home .hero-copy { max-width: 780px; }
.page-home .hero-home h1 {
    max-width: 700px;
    margin: 18px 0 10px;
    font-size: clamp(2.2rem, 4.2vw, 4.2rem) !important;
    line-height: 1.08;
    letter-spacing: -.045em;
}
.page-home .hero-home .hero-lead {
    max-width: 620px;
    color: #f1f5f9;
    margin-bottom: 20px;
}
.page-home .hero-campaign {
    max-width: 710px;
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
}
.hero-role-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    color: #fff;
}
.hero-role-picker legend {
    float: left;
    width: 100%;
    margin-bottom: 7px;
    font-size: .85rem;
    font-weight: 700;
}
.hero-role-picker label {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 9px;
    background: rgba(255,255,255,.10);
    color: #fff;
    cursor: pointer;
    line-height: 1.2;
}
.hero-role-picker label:has(input:checked) {
    background: #fff;
    color: #14243d;
    border-color: #fff;
}
.hero-role-picker input { margin: 0; accent-color: #2457a7; }
.hero-role-picker label:has(input:focus-visible) { outline: 3px solid #fbbf24; outline-offset: 3px; }
.page-home .hero-actions { margin: 0 0 12px; }
.page-home .hero-cta { min-width: 260px; min-height: 44px; justify-content: center; }
.page-home .hero-role-path,
.page-home .hero-access-note {
    max-width: 680px;
    margin: 0 0 8px;
    color: #e2e8f0;
    font-size: .92rem;
    line-height: 1.5;
}
.page-home .hero-access-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.home-route-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.home-route-links a,
.tariff-text-link { color: #1d4d83; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.age-route { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.age-route a {
    display: grid;
    gap: 3px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    color: #14243d;
    font-weight: 800;
    text-decoration: none;
}
.age-route a span { color: #475569; font-size: .8rem; font-weight: 500; }
.age-route a:hover { background: #e9f5f5; }
.direction-preview,
.demo-assignments { margin: 42px 0; }
.direction-preview-grid,
.demo-assignment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 20px; }
.direction-preview-grid article,
.demo-assignment {
    padding: clamp(20px,3vw,30px);
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #fff;
}
.direction-preview-grid h3,
.demo-assignment h3 { margin: 0 0 10px; color: #14243d; }
.direction-preview-grid p,
.demo-assignment p { color: #334155; line-height: 1.55; }
.direction-preview-grid a { color: #1d4d83; font-weight: 700; }
.demo-assignment-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.demo-assignment-meta span { padding: 4px 9px; border-radius: 20px; background: #eaf3f7; color: #17415a; font-size: .76rem; font-weight: 700; }
.demo-assignment details { margin: 18px 0; padding: 12px 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.demo-assignment summary { cursor: pointer; color: #17415a; font-weight: 700; }
.demo-assignment details p { white-space: pre-line; }
.demo-options { margin: 0 0 0 24px; color: #334155; }
.payment-terms { max-width: 850px; padding: 18px 24px; border-left: 3px solid #548b9a; background: #f7fafb; }
.payment-terms h3 { margin-top: 0; }
@media (max-width: 700px) {
    .page-home .hero-home { min-height: 0; padding: 28px 18px; }
    .page-home .hero-home h1 { font-size: clamp(2rem, 8vw, 2.8rem) !important; }
    .page-home .hero-home .hero-lead { margin: 12px 0 20px; }
    .page-home .hero-cta { width: 100%; }
    .age-route,.direction-preview-grid,.demo-assignment-grid { grid-template-columns: 1fr; }
}
.release-announcement { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; padding: 18px 20px; border: 1px solid #a8d6ca; border-radius: 16px; background: #edf9f5; color: #143c35; }
.release-announcement[hidden] { display: none; }
.release-announcement div { flex: 1; min-width: 0; }
.release-announcement h2 { margin: 0 0 4px; color: inherit; font-size: 1rem; line-height: 1.3; }
.release-announcement p { margin: 0; line-height: 1.5; }
.release-announcement a { flex: none; padding: 10px 14px; border-radius: 10px; background: #126b53; color: #fff; font-weight: 750; text-align: center; text-decoration: none; }
.release-announcement button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #143c35; cursor: pointer; }
.release-announcement button:hover { background: #d5eee5; }
.release-announcement :is(a,button):focus-visible { outline: 3px solid #245cc1; outline-offset: 3px; }
.workspace-network-error { display: flex; align-items: center; gap: 14px; max-width: 1000px; margin: 16px auto; padding: 14px 18px; border: 1px solid #efc38c; border-radius: 12px; background: #fff7ed; color: #63350d; }
.workspace-network-error span { flex: 1; }
.workspace-network-error button { padding: 9px 14px; border: 1px solid #a76822; border-radius: 9px; background: #fff; color: #63350d; font: inherit; font-weight: 750; cursor: pointer; }
.workspace-network-error button:focus-visible { outline: 3px solid #2f65f5; outline-offset: 2px; }
@media (max-width: 600px) { .workspace-network-error { flex-wrap: wrap; } .workspace-network-error span { flex-basis: 100%; } }
.task-answer-explanation { margin: 12px 0; }
.task-answer-explanation summary { cursor: pointer; font-weight: 750; }
.task-answer-explanation pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; font: inherit; }
@media (max-width: 700px) { .release-announcement { flex-wrap: wrap; gap: 12px; } .release-announcement div { flex-basis: calc(100% - 58px); } .release-announcement button { order: 1; } .release-announcement a { order: 2; width: 100%; } }
@media (max-width: 700px) {
    .role-teacher .workspace-topbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .role-teacher .workspace-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .role-teacher .workspace-action { width: auto; height: auto; min-height: 44px; padding: 8px; font-size: .72rem; }
    .role-teacher .workspace-action span { display: inline; }
    .role-teacher .profile-completion-notice { padding: 10px; gap: 8px; }
    .role-teacher .profile-completion-notice span { font-size: .78rem; }
}
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .85fr); max-width: 1050px; margin: 32px auto 0; overflow: hidden; border: 1px solid #dce4ee; border-radius: 24px; background: #fff; box-shadow: 0 22px 65px rgba(20,42,71,.08); }
.auth-form-slot { min-width: 0; padding: clamp(24px, 4vw, 46px); }
.auth-layout .auth-card { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; animation: none; }
.auth-mode-tabs { display: flex; gap: 6px; margin-bottom: 28px; padding: 5px; border-radius: 12px; background: #edf2f8; }
.auth-mode-tabs a { display: grid; place-items: center; flex: 1; min-height: 44px; padding: 9px 7px; border-radius: 9px; color: #40516a; font-size: .88rem; font-weight: 750; text-align: center; text-decoration: none; }
.auth-mode-tabs a[aria-current="page"] { background: #fff; color: #174a8c; box-shadow: 0 2px 8px rgba(20,42,71,.1); }
.auth-mode-tabs a:hover { color: #174a8c; }
.auth-mode-tabs a:focus-visible { outline: 3px solid #2f65f5; outline-offset: 2px; }
.auth-scene { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 32px; min-width: 0; padding: 42px; background: radial-gradient(circle at 55% 35%, #28578f, transparent 39%), linear-gradient(150deg, #142d4c, #101d33); color: #fff; text-align: center; }
.auth-scene-orbit { display: grid; place-items: center; width: min(70%, 270px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: radial-gradient(circle, rgba(65,124,200,.35), rgba(65,124,200,.06) 64%, transparent 65%); box-shadow: 0 0 0 20px rgba(255,255,255,.035), 0 0 0 45px rgba(255,255,255,.025); }
.auth-scene[data-ntoshka-state="support"] .auth-scene-orbit { border-color: rgba(255,197,111,.65); background: radial-gradient(circle, rgba(255,197,111,.22), rgba(65,124,200,.08) 64%, transparent 65%); }
.auth-scene-orbit img { width: 48%; height: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,.28)); }
.auth-scene-copy { max-width: 330px; }
.auth-scene-copy span { color: #9ae9d2; font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.auth-scene-copy h2 { margin: 12px 0; color: #fff; font-size: clamp(1.5rem, 2.5vw, 2.4rem); line-height: 1.12; letter-spacing: -.04em; }
.auth-scene-copy p { margin: 0; color: #d7e5f5; line-height: 1.55; }
.error-page { position: relative; isolation: isolate; max-width: 620px; margin: 60px auto; padding: clamp(30px, 5vw, 56px); overflow: hidden; border-radius: 22px; background-color: #fff; background-image: linear-gradient(#edf2f8 1px, transparent 1px), linear-gradient(90deg, #edf2f8 1px, transparent 1px); background-size: 28px 28px; text-align: center; box-shadow: 0 16px 44px rgba(20,42,71,.08); }
.error-page::before { content: attr(data-error-code); position: absolute; inset: 0; z-index: -1; color: #dce7f6; font-size: clamp(8rem, 30vw, 17rem); font-weight: 900; line-height: 1; opacity: .42; pointer-events: none; }
.error-page img { display: block; margin: 0 auto 10px; }
.error-page .error-code { color: #2f65f5; font-size: .9rem; font-weight: 850; letter-spacing: .12em; }
.error-page h1 { margin: 10px 0; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.error-page > p:not(.error-code) { color: #526177; }
.error-page .btn { min-height: 44px; margin: 8px 4px 0; }
.auth-layout .auth-card button[type="submit"] { min-height: 44px; }
.profile-tabs { display: flex; gap: 8px; margin-bottom: 24px; padding: 5px; border-radius: 12px; background: #edf2f8; }
.profile-tabs a { flex: 1; padding: 10px; border-radius: 9px; color: #40516a; font-weight: 750; text-align: center; text-decoration: none; }
.profile-tabs a[aria-current="page"] { background: #fff; color: #174a8c; box-shadow: 0 2px 8px rgba(20,42,71,.1); }
.profile-tabs a:focus-visible { outline: 3px solid #2f65f5; outline-offset: 2px; }
.profile-results > p { color: #526177; }
.profile-results-metrics, .profile-topic-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 24px 0; }
.profile-results-metrics div { padding: 16px; border-radius: 12px; background: #edf4ff; }
.profile-results-metrics strong { display: block; color: #174a8c; font-size: 1.8rem; }
.profile-results-metrics span { color: #40516a; font-size: .84rem; }
.profile-results-list { margin: 12px 0 28px; padding: 0; list-style: none; }
.profile-results-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #dce4ee; }
.profile-results-list a { color: #174a8c; font-weight: 750; }
.profile-results-list span { white-space: nowrap; }
.profile-assigned-list span { white-space: normal; text-align: right; }
.profile-score-history { margin: 12px 0 28px; padding-left: 22px; }
.profile-score-history li { display: grid; grid-template-columns: minmax(0,1fr) minmax(80px,2fr) auto; align-items: center; gap: 12px; margin: 10px 0; }
.profile-score-history progress { width: 100%; accent-color: #176b55; }
.profile-topic-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
.profile-topic-columns div { padding: 18px; border: 1px solid #dce4ee; border-radius: 12px; }
.profile-topic-columns h3 { margin: 0 0 12px; }
.profile-topic-columns p { margin: 0 0 8px; color: #40516a; }
@media (max-width: 600px) { .profile-results-metrics { grid-template-columns: 1fr; } .profile-topic-columns { grid-template-columns: 1fr; } .profile-results-list li { flex-direction: column; gap: 3px; } .profile-assigned-list span { text-align: left; } .profile-score-history li { grid-template-columns: minmax(0,1fr) auto; } .profile-score-history progress { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 760px) { .auth-layout { grid-template-columns: 1fr; margin-top: 12px; } .auth-scene { flex-direction: row; justify-content: flex-start; gap: 20px; padding: 22px; text-align: left; } .auth-scene-orbit { width: 70px; flex: 0 0 70px; box-shadow: none; } .auth-scene-copy h2 { font-size: 1.25rem; } .auth-scene-copy p { display: none; } }
.auth-scene[data-ntoshka-state="support"] .auth-scene-copy p { display: block; font-size: .875rem; }
@media (max-width: 420px) { .auth-form-slot { padding: 20px 16px; } .auth-mode-tabs a { font-size: .8rem; } .auth-scene { gap: 14px; } .auth-scene-orbit { width: 54px; flex-basis: 54px; } }

/* The public home is one short route through the real product. */
.page-home .hero-home {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
    min-height: 610px;
    overflow: hidden;
    background: radial-gradient(circle at 80% 15%, #24467b 0, transparent 35%), linear-gradient(130deg, #0d1a2d, #142a47 62%, #101e33);
}
.page-home .hero-home::before { background: none; }
.page-home .hero-home .hero-copy { max-width: 690px; }
.page-home .hero-home h1 { max-width: 670px; font-size: clamp(2.5rem, 4vw, 4.4rem) !important; }
.page-home .hero-home .hero-lead { max-width: 600px; }
.page-home .hero-role-picker label { border-radius: 999px; }
.page-home .hero-actions { gap: 20px; }
.hero-learn-link { color: #e9f4ff; font-weight: 700; text-decoration: none; }
.hero-learn-link:hover, .hero-learn-link:focus-visible { text-decoration: underline; }
.home-hero-visual {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 28px;
    background: linear-gradient(155deg, rgba(255,255,255,.16), rgba(255,255,255,.035));
    box-shadow: 0 36px 80px rgba(0,7,20,.28);
    color: #fff;
}
.home-visual-topline { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 24px; color: #bed5ef; font-size: .78rem; font-weight: 750; }
.home-visual-topline span:first-child { color: #fff; }
.home-visual-topline span:first-child { display: flex; align-items: center; gap: 8px; }
.ntoshka-stage { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; }
.ntoshka-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ntoshka-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ntoshka-stage.is-ready img { opacity: 0; }
.home-ntoshka-stage { height: clamp(195px, 20vw, 260px); margin: -12px auto 14px; }
.auth-ntoshka-stage img { width: 80%; height: 80%; }
.home-visual-card { padding: 26px; border-radius: 20px; background: #f9fbff; color: #14243d; }
.home-visual-kicker { display: block; margin-bottom: 8px; color: #2865b5; font-size: .8rem; font-weight: 800; }
.home-visual-card strong { display: block; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.12; }
.home-visual-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 23px 0; }
.home-visual-progress span { height: 5px; border-radius: 999px; background: #dce7f6; }
.home-visual-progress span:first-child { background: #2f65f5; }
.home-visual-card ol { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.home-visual-card li { display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 650; }
.home-visual-card li i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #eaf1ff; color: #2865b5; }
.home-visual-note { display: flex; align-items: center; gap: 12px; margin: 20px 5px 0; color: #d5e9ff; font-size: .85rem; line-height: 1.4; }
.home-visual-note i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #20ac80; color: #fff; }
.home-journey, .home-finish { scroll-margin-top: 90px; }
.home-journey { padding: clamp(68px, 8vw, 112px) 0; }
.home-eyebrow { color: #235bb5; font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.home-section-heading { max-width: 750px; }
.home-journey .home-section-heading h2 { margin: 12px 0; font-size: clamp(2rem, 3.4vw, 3.3rem); letter-spacing: -.045em; }
.home-route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 42px 0 60px; padding: 0; list-style: none; }
.home-route li { min-width: 0; padding: 22px; border: 1px solid #dce4ee; border-radius: 18px; background: #fff; }
.home-route li > span { display: block; color: #2f65f5; font-size: .75rem; font-weight: 850; }
.home-route li > i { display: grid; place-items: center; width: 43px; height: 43px; margin: 24px 0 16px; border-radius: 13px; background: #eaf1ff; color: #2f65f5; }
.home-route h3, .home-audiences h3 { margin: 0 0 8px; font-size: 1.06rem; }
.home-route p, .home-audiences p { margin: 0; color: #526177; line-height: 1.5; }
.home-audiences { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; scroll-margin-top: 90px; }
.home-audiences article { min-width: 0; padding: 24px 0 0; border-top: 3px solid #c6d7f0; }
.home-audiences i { display: block; margin-bottom: 16px; color: #2463bd; font-size: 1.25rem; }
.home-finish { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 48px; align-items: center; padding: clamp(34px, 5vw, 62px); border-radius: 25px; background: #e5edf8; }
.home-finish h2 { max-width: 650px; margin: 10px 0; font-size: clamp(2rem, 3.2vw, 3.3rem); letter-spacing: -.045em; line-height: 1.1; }
.home-finish p { max-width: 640px; margin: 0; color: #40516a; line-height: 1.6; }
.home-finish-actions { display: grid; gap: 10px; min-width: 200px; }
.home-finish-actions .btn { justify-content: center; }
.home-school-link { justify-self: center; padding: 8px; color: #174a8c; font-weight: 750; }
.home-finish .home-community { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid #bfcfe4; font-size: .88rem; }
.home-community a { color: #174a8c; font-weight: 750; }
@media (max-width: 980px) {
    .page-home .hero-home { grid-template-columns: 1fr; }
    .home-hero-visual { max-width: 520px; }
    .home-route { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
    .page-home .hero-home { gap: 30px; }
    .page-home .hero-home h1 { font-size: clamp(2.05rem, 8vw, 3rem) !important; }
    .home-hero-visual { padding: 16px; }
    .home-visual-card { padding: 18px; }
    .home-journey { padding: 64px 0; }
    .home-route { grid-template-columns: 1fr; gap: 10px; margin: 28px 0 42px; }
    .home-route li { display: grid; grid-template-columns: 36px 1fr; gap: 0 13px; padding: 18px; }
    .home-route li > span { grid-row: span 3; }
    .home-route li > i { display: none; }
    .home-audiences { grid-template-columns: 1fr; }
    .home-audiences article { padding-top: 18px; }
    .home-finish { grid-template-columns: 1fr; padding: 28px 20px; }
    .home-finish-actions { width: 100%; }
}
