/* 404Agent Tutor — Home_Page mockup landing */

:root {
    --landing-primary: #5B50F0;
    --landing-primary-dark: #4A3FE0;
    --landing-primary-light: #EEEDFE;
    --landing-navy: #1E293B;
    --landing-text: #1E293B;
    --landing-muted: #64748B;
    --landing-white: #FFFFFF;
    --landing-yellow: #FBBF24;
    --landing-yellow-bg: #FEF9C3;
    --landing-green: #22C55E;
    --landing-pink-blob: #E9D5FF;
    --landing-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --landing-shadow: 0 4px 24px rgba(30, 41, 59, 0.08);
    --landing-radius-pill: 999px;
    --footer-bg: #1E293B;
    --nav-height: clamp(76px, 8.5vh, 96px);
    --landing-max: min(100%, 1760px);
    --landing-gutter: clamp(24px, 2.5vw, 40px);
    --landing-radius: clamp(20px, 2vw, 28px);
    --fluid-title: clamp(2.5rem, 4.6vw + 0.8rem, 5rem);
    --fluid-subtitle: clamp(0.95rem, 1vw + 0.4rem, 1.3rem);
    --fluid-body: clamp(0.88rem, 0.5vw + 0.6rem, 1.05rem);
    --fluid-nav: clamp(0.9rem, 0.7vw + 0.65rem, 1.2rem);
    --fluid-btn: clamp(0.9rem, 0.4vw + 0.75rem, 1.2rem);
    --fluid-btn-lg: clamp(1rem, 0.6vw + 0.85rem, 1.32rem);
    --fluid-subject-h: clamp(1.75rem, 2vw + 1rem, 3rem);
    --fluid-subject-icon: clamp(2.75rem, 3.5vw + 1rem, 3.75rem);
}

html:has(body.landing-page) {
    min-height: auto !important;
    height: auto;
    background: #FFFFFF;
}

body.role-guest.landing-page {
    background: #FFFFFF;
    color: var(--landing-text);
    font-family: 'Poppins', 'Nunito', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: auto !important;
    height: auto;
    overflow-x: hidden;
}

body.role-guest.landing-page .auth-shell,
body.role-guest.landing-page .auth-shell.landing-auth-shell {
    background: #FFFFFF !important;
    background-image: none !important;
    min-height: auto !important;
    height: auto;
    padding: 0 !important;
    margin: 0;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100%;
    overflow-x: hidden;
}

body.role-guest.landing-page .auth-alert {
    max-width: 480px;
    margin: calc(var(--nav-height) + 16px) auto 0;
    width: calc(100% - 32px);
}

.landing-page-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #FFFFFF;
    min-height: auto;
}

.landing-fold {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 55%, #FFFFFF 100%);
}

.landing-container {
    width: 100%;
    max-width: var(--landing-max);
    margin: 0 auto;
    padding: 0 var(--landing-gutter);
}

/* ── Fixed nav ── */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #FFFFFF;
    box-shadow: var(--landing-shadow-sm);
    height: var(--nav-height);
    margin: 0;
    padding: 0;
    border: none;
}

.landing-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: var(--nav-height);
    gap: 16px;
    position: relative;
    width: 100%;
}

.landing-nav-wrap {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    border-bottom: none;
}

.landing-nav > a {
    color: var(--landing-muted);
    text-decoration: none;
    font-size: var(--fluid-nav);
    font-weight: 500;
    padding: clamp(10px, 1.2vh, 14px) clamp(14px, 1.5vw, 22px);
    border-radius: var(--landing-radius-pill);
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.landing-logo img {
    width: clamp(44px, 4.2vw, 56px);
    height: clamp(44px, 4.2vw, 56px);
    flex-shrink: 0;
    object-fit: contain;
}

.landing-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-agent {
    color: var(--landing-primary);
    font-weight: 800;
    font-size: clamp(0.98rem, 0.9vw + 0.75rem, 1.32rem);
    letter-spacing: 0.02em;
}

.logo-tutor {
    color: var(--landing-muted);
    font-weight: 600;
    font-size: clamp(0.62rem, 0.45vw + 0.5rem, 0.85rem);
    letter-spacing: 0.12em;
}

.landing-nav > a:hover {
    color: var(--landing-primary);
}

.landing-nav > a.active {
    background: var(--landing-primary-light);
    color: var(--landing-primary);
    font-weight: 600;
}

.landing-nav > a.active.active--underline {
    background: transparent;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--landing-primary);
    text-underline-offset: 8px;
    text-decoration-thickness: 3px;
}

.landing-nav-mobile-actions {
    display: none !important;
}

.landing-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-landing-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(9px, 1vh, 13px) clamp(18px, 2vw, 30px);
    border: 2px solid var(--landing-primary);
    border-radius: var(--landing-radius-pill);
    background: transparent;
    color: var(--landing-primary);
    font-weight: 600;
    font-size: var(--fluid-btn);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.btn-landing-outline:hover {
    background: var(--landing-primary-light);
}

.btn-landing-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(9px, 1vh, 13px) clamp(18px, 2vw, 30px);
    border: none;
    border-radius: var(--landing-radius-pill);
    background: var(--landing-primary);
    color: #fff;
    font-weight: 600;
    font-size: var(--fluid-btn);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.btn-landing-primary:hover {
    background: var(--landing-primary-dark);
}

.btn-landing-primary.btn-lg {
    padding: clamp(14px, 1.6vh, 22px) clamp(32px, 3.2vw, 48px);
    font-size: var(--fluid-btn-lg);
}

.btn-landing-video {
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 1vw, 14px);
    padding: 0;
    border: none;
    background: transparent;
    color: var(--landing-text);
    font-weight: 600;
    font-size: clamp(0.98rem, 0.75vw + 0.8rem, 1.25rem);
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: color 0.2s;
}

.btn-landing-video:hover {
    color: var(--landing-primary);
}

.btn-landing-video .play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(32px, 3.2vw, 44px);
    height: clamp(32px, 3.2vw, 44px);
    border-radius: 50%;
    background: #F1F5F9;
    font-size: clamp(11px, 1vw, 14px);
    color: var(--landing-muted);
}

.btn-landing-primary.btn-block {
    width: 100%;
}

.landing-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.landing-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--landing-primary);
    border-radius: 2px;
}

/* ── Hero ── */
.landing-hero {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + clamp(16px, 2vh, 32px)) 0 clamp(12px, 2vh, 24px);
    background: transparent;
    overflow: visible;
    width: 100%;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--landing-yellow-bg);
    color: var(--landing-navy);
    padding: clamp(8px, 1vh, 12px) clamp(14px, 1.5vw, 22px);
    border-radius: var(--landing-radius-pill);
    font-size: clamp(0.9rem, 0.5vw + 0.75rem, 1.15rem);
    font-weight: 600;
    margin-bottom: clamp(20px, 2.5vh, 32px);
    border: 1px solid #FDE68A;
}

.hero-badge .star {
    font-size: clamp(1rem, 1vw + 0.6rem, 1.35rem);
}

.hero-title {
    font-size: var(--fluid-title);
    font-weight: 800;
    line-height: 1.06;
    margin-bottom: clamp(18px, 2vh, 28px);
    color: var(--landing-navy);
    letter-spacing: -0.02em;
}

.hero-title .title-navy {
    color: var(--landing-navy);
    display: block;
}

.hero-title .title-purple {
    color: var(--landing-primary);
    display: block;
}

.hero-subtitle {
    font-size: var(--fluid-subtitle);
    color: var(--landing-muted);
    line-height: 1.65;
    margin-bottom: clamp(20px, 2.5vh, 32px);
    max-width: min(100%, 38rem);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 2vw, 32px);
    margin: 0 0 clamp(24px, 3vh, 36px);
    padding: 0;
    list-style: none;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 14px);
    font-size: var(--fluid-body);
    font-weight: 600;
    color: var(--landing-text);
}

.hero-dot {
    width: clamp(10px, 1vw, 14px);
    height: clamp(10px, 1vw, 14px);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-dot--green { background: #22C55E; }
.hero-dot--red { background: #EF4444; }
.hero-dot--blue { background: #3B82F6; }

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    margin-bottom: 36px;
}

.hero-social {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.avatar-stack {
    display: flex;
}

.avatar-stack .avatar-circle {
    width: clamp(36px, 3.2vw, 52px);
    height: clamp(36px, 3.2vw, 52px);
    border-radius: 50%;
    border: clamp(3px, 0.3vw, 5px) solid #fff;
    margin-left: clamp(-12px, -1.2vw, -18px);
    flex-shrink: 0;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.avatar-stack .avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-stack .avatar-circle__initials {
    font-size: clamp(0.65rem, 0.4vw + 0.5rem, 0.8rem);
    font-weight: 700;
    color: var(--landing-navy);
    line-height: 1;
}

.avatar-stack .avatar-circle:first-child {
    margin-left: 0;
}

.hero-social-text {
    font-size: clamp(1rem, 0.7vw + 0.8rem, 1.3rem);
    font-weight: 700;
    color: var(--landing-text);
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.9rem, 0.5vw + 0.7rem, 1.15rem);
    color: var(--landing-muted);
}

.hero-rating .stars {
    color: var(--landing-yellow);
    letter-spacing: 1px;
}

/* Hero visual stage — fluid, no clipping */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
    overflow: visible;
    padding: clamp(8px, 1vw, 16px) 0;
}

.hero-stage {
    position: relative;
    width: min(100%, clamp(480px, 46vw, 860px));
    height: clamp(440px, 50vh, 700px);
    margin: 0 auto;
    overflow: visible;
}

.hero-blob {
    position: absolute;
    width: 74%;
    aspect-ratio: 1;
    max-width: 600px;
    background: var(--landing-pink-blob);
    border-radius: 50%;
    z-index: 0;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

.hero-child {
    position: absolute;
    bottom: 2%;
    left: 44%;
    transform: translateX(-50%);
    z-index: 6;
    height: 74%;
    max-height: 600px;
    width: auto;
    max-width: 74%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 12px 28px rgba(30, 41, 59, 0.12));
}

.hero-prop {
    position: absolute;
    z-index: 5;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(30, 41, 59, 0.1));
    pointer-events: none;
}

.hero-prop-books {
    bottom: 1%;
    left: 0;
    width: clamp(140px, 18%, 185px);
    height: auto;
    z-index: 8;
    transform: translateX(-22%);
}

.hero-prop-owl {
    bottom: 12%;
    left: 0;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1;
    z-index: 9;
    filter: drop-shadow(0 6px 16px rgba(30, 41, 59, 0.12));
    transform: translateX(-24%);
}

.hero-prop-plant {
    bottom: 1%;
    right: 5%;
    width: clamp(130px, 17%, 175px);
    height: auto;
    z-index: 8;
}

.hero-float-card {
    position: absolute;
    background: #FFFFFF;
    border-radius: clamp(14px, 1.5vw, 20px);
    box-shadow: var(--landing-shadow);
    z-index: 10;
    border: 1px solid rgba(30, 41, 59, 0.06);
}

.hero-float-card.class-card {
    top: 2%;
    left: 0;
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 14px);
    padding: clamp(10px, 1.3vh, 16px) clamp(12px, 1.6vw, 20px);
    width: clamp(200px, 44%, 340px);
    animation: landingFloatCard 4s ease-in-out infinite;
}

.class-card-avatar {
    width: clamp(36px, 4vw, 52px);
    height: clamp(36px, 4vw, 52px);
    border-radius: 50%;
    background: var(--landing-primary-light);
    flex-shrink: 0;
    overflow: hidden;
}

.class-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.class-card-text {
    font-size: clamp(0.95rem, 0.6vw + 0.75rem, 1.2rem);
    color: var(--landing-text);
    line-height: 1.3;
}

.class-card-text strong {
    font-weight: 700;
}

.hero-deco.speech {
    position: absolute;
    top: 2%;
    right: 0;
    background: var(--landing-primary);
    color: #fff;
    padding: clamp(10px, 1.2vh, 14px) clamp(14px, 1.8vw, 22px);
    border-radius: 24px;
    font-size: clamp(0.9rem, 0.5vw + 0.75rem, 1.15rem);
    font-weight: 700;
    z-index: 11;
    box-shadow: var(--landing-shadow);
    white-space: nowrap;
    animation: landingFloatCard 3s ease-in-out infinite 0.5s;
}

.hero-chat-bubble {
    position: absolute;
    top: 32%;
    right: 0;
    left: auto;
    bottom: auto;
    width: clamp(170px, 28%, 260px);
    background: #FFFFFF;
    border-radius: clamp(14px, 1.4vw, 20px);
    box-shadow: var(--landing-shadow);
    padding: clamp(10px, 1.3vh, 16px);
    z-index: 10;
    border: 1px solid rgba(30, 41, 59, 0.06);
    animation: landingFloatCard 4s ease-in-out infinite 1s;
}

@keyframes landingFloatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.chat-online {
    width: clamp(8px, 0.8vw, 12px);
    height: clamp(8px, 0.8vw, 12px);
    background: var(--landing-green);
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-bubble-header {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 12px);
    margin-bottom: clamp(8px, 1vh, 12px);
}

.chat-bubble-header strong {
    font-size: clamp(0.95rem, 0.6vw + 0.75rem, 1.2rem);
    flex: 1;
}

.online-label {
    font-size: clamp(0.8rem, 0.4vw + 0.65rem, 1rem);
    color: var(--landing-green);
    font-weight: 600;
}

.chat-bubble-body {
    font-size: clamp(0.9rem, 0.5vw + 0.7rem, 1.15rem);
    color: var(--landing-muted);
    line-height: 1.5;
}

/* Cloud divider */
.cloud-divider {
    position: relative;
    height: 64px;
    margin: 0;
    margin-top: -4px;
    background: transparent;
    flex-shrink: 0;
    width: 100%;
    line-height: 0;
}

.cloud-divider svg {
    display: block;
    width: 100%;
    height: 64px;
}

/* ── Subjects ── */
.landing-subjects {
    flex-shrink: 0;
    padding: 0 0 24px;
    background: #FFFFFF;
    width: 100%;
}

.subjects-heading {
    text-align: center;
    font-size: var(--fluid-subject-h);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: clamp(24px, 3vh, 40px);
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: clamp(14px, 1.8vw, 26px);
    width: 100%;
}

.subject-card {
    border-radius: var(--landing-radius);
    padding: clamp(24px, 3vh, 40px) clamp(12px, 1.5vw, 18px) clamp(20px, 2.5vh, 32px);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    min-width: 0;
    min-height: clamp(160px, 18vh, 240px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.subject-card-icon {
    font-size: var(--fluid-subject-icon);
    line-height: 1;
    margin-bottom: clamp(12px, 1.5vh, 18px);
}

.subject-card h3 {
    font-size: clamp(1.1rem, 0.8vw + 0.85rem, 1.5rem);
    font-weight: 800;
    margin-bottom: clamp(6px, 0.8vh, 10px);
    color: var(--landing-text);
}

.subject-card p {
    font-size: clamp(0.85rem, 0.4vw + 0.7rem, 1.05rem);
    color: var(--landing-muted);
    line-height: 1.4;
}

.subject-card--standard {
    background: #FFFFFF;
    border: 1px solid rgba(91, 80, 240, 0.06);
    box-shadow: var(--landing-shadow);
}

.subject-card--standard .subject-icon--hero {
    margin-bottom: clamp(12px, 1.5vh, 18px);
}

.subject-card--yellow { background: #FEF9C3; }
.subject-card--green { background: #D1FAE5; }
.subject-card--blue { background: #DBEAFE; }
.subject-card--tan { background: #FEF3C7; }
.subject-card--pink { background: #FCE7F3; }
.subject-card--purple { background: #EDE9FE; }
.subject-card--view-all {
    background: #F8FAFC;
    border: 2px dashed #CBD5E1;
}

.subject-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow);
}

/* ── Footer ── */
.landing-footer {
    background: var(--footer-bg);
    color: #94A3B8;
    padding: 40px 0 0;
    width: 100%;
    margin: 0;
    flex-shrink: 0;
}

.landing-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    width: 100%;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 16px;
    max-width: 260px;
}

.footer-logo .logo-agent { color: #FFFFFF; }
.footer-logo .logo-tutor { color: #94A3B8; }

.footer-col h4 {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-col a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #FFFFFF;
}

.landing-footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 16px 0;
    text-align: center;
    margin: 0;
}

.landing-footer-bottom p {
    font-size: 13px;
    color: #64748B;
    margin: 0;
}

/* ── Auth pages ── */
.landing-auth-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 24px) var(--landing-gutter) 32px;
    min-height: auto;
}

.landing-auth-card {
    background: var(--landing-white);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--landing-shadow);
    border: 1px solid rgba(91, 80, 240, 0.08);
}

.landing-auth-card.wide {
    max-width: 640px;
}

.landing-auth-card .auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.landing-auth-card .auth-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--landing-primary);
    margin-bottom: 8px;
}

.landing-auth-card .auth-header p {
    color: var(--landing-muted);
    font-size: 15px;
}

.landing-auth-card .form-group label {
    color: var(--landing-text);
    font-weight: 600;
    font-size: 13px;
}

.landing-auth-card .form-group input,
.landing-auth-card .form-group select,
.landing-auth-card .form-group textarea {
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    color: var(--landing-text);
    border-radius: 12px;
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
}

.landing-auth-card .form-group input:focus,
.landing-auth-card .form-group select:focus,
.landing-auth-card .form-group textarea:focus {
    border-color: var(--landing-primary);
    box-shadow: 0 0 0 3px rgba(91, 80, 240, 0.15);
    outline: none;
}

.landing-auth-card .form-group {
    margin-bottom: 16px;
}

.landing-auth-card .auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 18px;
    color: var(--landing-muted);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.landing-auth-card .auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--landing-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.landing-auth-card .auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--landing-muted);
    font-size: 14px;
}

.landing-auth-card .auth-footer a {
    color: var(--landing-primary);
    font-weight: 600;
    text-decoration: none;
}

.landing-auth-card .subject-chip span {
    border-color: #E2E8F0;
    color: var(--landing-text);
}

.landing-auth-card .subject-chip input:checked + span {
    background: var(--landing-primary);
    border-color: var(--landing-primary);
    color: #fff;
}

.landing-auth-card .alert-success {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.landing-auth-card .alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.landing-auth-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.landing-auth-card .subject-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.landing-auth-card .subject-chip {
    cursor: pointer;
}

.landing-auth-card .subject-chip input {
    display: none;
}

.landing-auth-card .subject-chip span {
    display: block;
    padding: 8px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
}

@media (max-width: 640px) {
    .landing-auth-card .form-row {
        grid-template-columns: 1fr;
    }
}

/* ── Responsive ── */
@media (max-width: 1700px) and (min-width: 1401px) {
    :root {
        --fluid-nav: clamp(0.8rem, 0.35vw + 0.7rem, 0.95rem);
        --fluid-btn: clamp(0.8rem, 0.3vw + 0.7rem, 0.95rem);
    }

    .landing-header-inner {
        gap: 10px;
    }

    .landing-logo {
        position: relative;
        z-index: 2;
    }

    .landing-logo img {
        width: clamp(44px, 3.5vw, 54px);
        height: clamp(44px, 3.5vw, 54px);
    }

    .logo-agent {
        font-size: clamp(0.95rem, 0.6vw + 0.7rem, 1.15rem);
    }

    .logo-tutor {
        font-size: clamp(0.62rem, 0.35vw + 0.5rem, 0.8rem);
    }

    .landing-nav-wrap {
        min-width: 0;
    }

    .landing-nav {
        gap: 2px;
    }

    .landing-nav > a {
        padding: 6px 9px;
        font-size: var(--fluid-nav);
    }

    .landing-header-actions {
        position: relative;
        z-index: 2;
        gap: 8px;
        flex-shrink: 0;
    }

    .btn-landing-outline,
    .btn-landing-primary {
        padding: 8px 14px;
        font-size: var(--fluid-btn);
    }
}

@media (max-width: 1400px) {
    .landing-nav {
        gap: 4px;
    }

    .landing-nav > a {
        padding: 8px 12px;
    }

    .landing-header-actions {
        gap: 8px;
    }

    .btn-landing-outline,
    .btn-landing-primary {
        padding: 10px 20px;
    }

    .landing-nav {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        width: 100%;
        background: #FFFFFF;
        flex-direction: column;
        padding: 16px 24px 20px;
        box-shadow: var(--landing-shadow);
        align-items: stretch;
        z-index: 100;
    }

    .landing-nav.open {
        display: flex;
    }

    .landing-nav > a {
        padding: 12px 14px;
        border-bottom: 1px solid #F1F5F9;
        border-radius: 8px;
        text-align: left;
    }

    .landing-nav-mobile-actions {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 16px;
        padding-top: 16px;
    }

    .landing-menu-toggle {
        display: flex;
    }

    .landing-header-actions .btn-landing-outline,
    .landing-header-actions .btn-landing-primary {
        display: none;
    }

    .landing-header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .landing-nav-wrap {
        position: absolute;
        width: 0;
        height: 0;
        overflow: visible;
        padding: 0;
        margin: 0;
        pointer-events: none;
    }

    .landing-nav,
    .landing-nav.open {
        pointer-events: auto;
    }
}

@media (max-width: 1200px) {
    :root {
        --fluid-title: clamp(2.5rem, 4.5vw + 1rem, 4.5rem);
        --fluid-nav: clamp(0.95rem, 0.7vw + 0.7rem, 1.1rem);
    }
}

@media (max-width: 1100px) {
    .subjects-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .landing-footer-grid {
        display: grid;
        grid-template-columns: max-content max-content;
        justify-content: center;
        justify-items: start;
        column-gap: clamp(48px, 12vw, 96px);
        row-gap: 28px;
        grid-template-areas:
            "brand brand"
            "quick company"
            "contact contact";
    }

    .footer-brand {
        grid-area: brand;
        grid-column: 1 / -1;
        justify-self: center;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .landing-logo.footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-col:nth-child(2) {
        grid-area: quick;
    }

    .footer-col:nth-child(3) {
        grid-area: company;
    }

    .footer-col:nth-child(4) {
        grid-area: contact;
        grid-column: 1 / -1;
        justify-self: center;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .landing-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-stage {
        width: min(100%, 520px);
        height: clamp(360px, 50vh, 480px);
        margin: 0 auto;
    }

    .hero-child {
        left: 50%;
        max-width: 80%;
    }

    .hero-chat-bubble {
        top: auto;
        bottom: 24%;
        right: 0;
        left: auto;
        width: min(72%, 220px);
    }

    .hero-float-card.class-card {
        width: min(85%, 280px);
        left: 5%;
    }

    .hero-prop-books {
        transform: none;
        left: 4%;
        bottom: 0;
        width: clamp(80px, 18%, 110px);
    }

    .hero-prop-owl {
        transform: none;
        left: 10%;
        bottom: 8%;
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .hero-prop-plant {
        right: 4%;
        bottom: 0;
        width: clamp(75px, 16%, 105px);
    }

    .hero-deco.speech {
        right: 2%;
        font-size: 0.85rem;
    }

    .subjects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .subjects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --fluid-title: clamp(2rem, 8vw + 0.5rem, 2.75rem);
    }

    .landing-fold {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .subject-card {
        min-height: 110px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
    }

    .hero-cta .btn-landing-primary,
    .hero-cta .btn-landing-video {
        justify-content: center;
    }

    .hero-features {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .hero-stage {
        width: min(100%, 400px);
        height: clamp(320px, 48vh, 420px);
    }

    .hero-chat-bubble {
        bottom: 20%;
        width: min(68%, 200px);
        padding: 10px 12px;
    }

    .chat-bubble-header strong,
    .chat-bubble-body {
        font-size: 0.85rem;
    }

    .hero-prop-books {
        width: clamp(70px, 20%, 95px);
        left: 3%;
        transform: none;
    }

    .hero-prop-owl {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        left: 8%;
        bottom: 7%;
        transform: none;
    }

    .hero-prop-plant {
        width: clamp(65px, 18%, 90px);
        right: 3%;
    }

    .hero-float-card.class-card {
        width: min(90%, 260px);
        left: 5%;
    }

    .hero-deco.speech {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    :root {
        --fluid-title: clamp(1.85rem, 9vw + 0.4rem, 2.25rem);
    }
}

/* ── How It Works page ── */
.hiw-page {
    background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 28%, #FFFFFF 100%);
}

.hiw-intro {
    padding: calc(var(--nav-height) + clamp(32px, 4vh, 56px)) 0 clamp(40px, 5vh, 72px);
}

.hiw-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 24px);
    font-size: clamp(2rem, 3.5vw + 0.5rem, 3.25rem);
    font-weight: 800;
    color: var(--landing-primary);
    text-align: center;
    margin-bottom: clamp(12px, 2vh, 20px);
}

.hiw-title-dash {
    display: inline-block;
    width: clamp(28px, 4vw, 48px);
    height: 3px;
    background: #F9A8D4;
    border-radius: 2px;
    flex-shrink: 0;
}

.hiw-subtitle {
    text-align: center;
    color: var(--landing-muted);
    font-size: clamp(1rem, 1vw + 0.8rem, 1.25rem);
    max-width: 36rem;
    margin: 0 auto clamp(36px, 5vh, 56px);
    line-height: 1.6;
}

.hiw-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(8px, 1.2vw, 16px);
    flex-wrap: wrap;
}

.hiw-step-arrow {
    display: flex;
    align-items: center;
    color: var(--landing-primary);
    opacity: 0.55;
    flex-shrink: 0;
    padding-top: clamp(60px, 8vw, 90px);
}

.hiw-step-card {
    flex: 1 1 200px;
    max-width: 280px;
    background: #FFFFFF;
    border-radius: var(--landing-radius);
    box-shadow: var(--landing-shadow);
    border: 1px solid rgba(91, 80, 240, 0.06);
    padding: clamp(20px, 2.5vw, 28px) clamp(16px, 2vw, 22px) clamp(24px, 3vw, 32px);
    text-align: center;
}

.hiw-step-visual {
    position: relative;
    width: clamp(120px, 14vw, 160px);
    height: clamp(120px, 14vw, 160px);
    margin: 0 auto clamp(16px, 2vh, 24px);
    border-radius: 50%;
    background: var(--hiw-icon-bg, #DBEAFE);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiw-step-num {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(32px, 4vw, 40px);
    height: clamp(32px, 4vw, 40px);
    border-radius: 50%;
    background: #3B82F6;
    color: #FFFFFF;
    font-weight: 800;
    font-size: clamp(0.95rem, 1vw + 0.7rem, 1.15rem);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.hiw-step-icon {
    font-size: clamp(2.75rem, 5vw, 3.5rem);
    line-height: 1;
}

.hiw-step-title {
    font-size: clamp(1.05rem, 1vw + 0.85rem, 1.35rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: 10px;
}

.hiw-step-text {
    font-size: clamp(0.88rem, 0.5vw + 0.75rem, 1rem);
    color: var(--landing-muted);
    line-height: 1.55;
    margin: 0;
}

.hiw-why {
    padding: 0 0 clamp(48px, 6vh, 80px);
}

.hiw-why-panel {
    background: linear-gradient(180deg, #F5F3FF 0%, #FAFAFF 100%);
    border: 1px solid rgba(91, 80, 240, 0.08);
    border-radius: clamp(24px, 3vw, 36px);
    padding: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px);
}

.hiw-why-title {
    text-align: center;
    font-size: clamp(1.5rem, 2vw + 0.75rem, 2.25rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: clamp(28px, 4vh, 44px);
}

.hiw-features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(16px, 2.5vw, 28px);
}

.hiw-feature {
    text-align: center;
    min-width: 0;
}

.hiw-feature-icon {
    width: clamp(52px, 6vw, 64px);
    height: clamp(52px, 6vw, 64px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    margin: 0 auto 14px;
}

.hiw-feature h3 {
    font-size: clamp(0.95rem, 0.8vw + 0.7rem, 1.1rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: 8px;
}

.hiw-feature p {
    font-size: clamp(0.82rem, 0.4vw + 0.7rem, 0.95rem);
    color: var(--landing-muted);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1200px) {
    .hiw-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .hiw-step-arrow {
        display: none;
    }

    .hiw-steps {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        max-width: 640px;
        margin: 0 auto;
    }

    .hiw-step-card {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .hiw-features {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .hiw-steps {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
}

/* ── Subjects page ── */
.subjects-page {
    background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 22%, #FFFFFF 100%);
}

.subjects-intro {
    padding: calc(var(--nav-height) + clamp(32px, 4vh, 56px)) 0 clamp(32px, 4vh, 48px);
}

.subjects-intro-inner {
    position: relative;
    margin-bottom: clamp(32px, 4vh, 48px);
}

.subjects-page-title {
    color: var(--landing-navy);
}

.subjects-page-subtitle {
    margin-bottom: 0;
}

.subjects-deco {
    position: absolute;
    pointer-events: none;
    user-select: none;
}

.subjects-deco--star {
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    line-height: 1;
}

.subjects-deco--1 {
    top: 8%;
    left: 8%;
    color: #FBBF24;
}

.subjects-deco--2 {
    top: 18%;
    right: 10%;
    color: #F472B6;
}

.subjects-deco--3 {
    bottom: 0;
    left: 18%;
    color: #60A5FA;
}

.subjects-deco--plane {
    top: 4%;
    right: 16%;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    transform: rotate(-12deg);
}

.subjects-page-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.subjects-page-card {
    background: #FFFFFF;
    border-radius: var(--landing-radius);
    box-shadow: var(--landing-shadow);
    border: 1px solid rgba(91, 80, 240, 0.06);
    padding: clamp(22px, 2.5vw, 30px) clamp(14px, 1.8vw, 20px) clamp(24px, 2.8vw, 32px);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subjects-page-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.12);
}

.subjects-page-card .subject-icon--hero {
    margin: 0 auto clamp(14px, 2vh, 20px);
}

.subjects-page-card h2 {
    font-size: clamp(1rem, 0.9vw + 0.8rem, 1.2rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: 8px;
}

.subjects-page-card p {
    font-size: clamp(0.82rem, 0.4vw + 0.72rem, 0.95rem);
    color: var(--landing-muted);
    line-height: 1.5;
    margin: 0;
}

.subjects-cta {
    padding: 0 0 clamp(48px, 6vh, 72px);
}

.subjects-cta-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3vw, 32px);
    background: linear-gradient(135deg, #F5F3FF 0%, #EEEDFE 55%, #F5F3FF 100%);
    border: 1px solid rgba(91, 80, 240, 0.1);
    border-radius: clamp(24px, 3vw, 36px);
    padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
    overflow: hidden;
    min-height: clamp(200px, 24vw, 280px);
}

.subjects-cta-visual {
    flex: 0 0 auto;
    position: relative;
    display: none;
}

.subjects-cta-content {
    text-align: center;
    max-width: 420px;
    z-index: 1;
}

.subjects-cta-content h2 {
    font-size: clamp(1.35rem, 2vw + 0.6rem, 2rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: 10px;
}

.subjects-cta-content p {
    font-size: clamp(0.95rem, 0.8vw + 0.7rem, 1.1rem);
    color: var(--landing-muted);
    margin-bottom: clamp(18px, 2.5vh, 24px);
    line-height: 1.5;
}

.btn-landing-primary--arrow {
    gap: 10px;
}

.btn-landing-primary--arrow .btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

.btn-landing-primary--arrow:hover .btn-arrow {
    transform: translateX(3px);
}

.subjects-cta-child {
    width: clamp(120px, 14vw, 180px);
    height: auto;
    object-fit: contain;
}

.subjects-cta-books {
    width: clamp(100px, 12vw, 140px);
    height: auto;
    object-fit: contain;
}

.subjects-cta-plant {
    position: absolute;
    bottom: -10px;
    right: -8px;
    width: clamp(56px, 7vw, 80px);
    height: auto;
    object-fit: contain;
}

.subjects-cta-heart {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.5rem;
}

@media (min-width: 900px) {
    .subjects-cta-visual {
        display: block;
        width: clamp(140px, 16vw, 200px);
    }

    .subjects-cta-visual--right {
        width: clamp(120px, 14vw, 180px);
    }
}

@media (max-width: 1200px) {
    .subjects-page-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .subjects-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subjects-deco--plane {
        right: 4%;
    }
}

@media (max-width: 480px) {
    .subjects-page-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* ── Our Tutors page ── */
.tutors-page {
    background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 22%, #FFFFFF 100%);
}

.tutors-intro {
    padding: calc(var(--nav-height) + clamp(32px, 4vh, 56px)) 0 clamp(24px, 3vh, 40px);
}

.tutors-value-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(16px, 3vw, 40px);
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--landing-radius-pill);
    padding: clamp(14px, 2vh, 18px) clamp(20px, 3vw, 32px);
    margin-bottom: clamp(28px, 4vh, 40px);
}

.tutors-value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.88rem, 0.5vw + 0.75rem, 1rem);
    font-weight: 600;
    color: var(--landing-navy);
}

.tutors-value-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.tutors-value-icon--purple { background: #EDE9FE; }
.tutors-value-icon--green { background: #D1FAE5; }
.tutors-value-icon--yellow { background: #FEF9C3; }
.tutors-value-icon--blue { background: #DBEAFE; }

.tutors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.tutor-card {
    position: relative;
    background: #FFFFFF;
    border-radius: var(--landing-radius);
    box-shadow: var(--landing-shadow);
    border: 1px solid rgba(91, 80, 240, 0.06);
    padding: clamp(22px, 2.5vw, 28px) clamp(16px, 2vw, 20px) clamp(18px, 2.2vw, 22px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
}

.tutor-status {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--landing-radius-pill);
}

.tutor-status--online {
    background: #DCFCE7;
    color: #166534;
}

.tutor-status--offline {
    background: #F1F5F9;
    color: #64748B;
}

.tutor-avatar {
    width: clamp(72px, 9vw, 88px);
    height: clamp(72px, 9vw, 88px);
    border-radius: 50%;
    background: linear-gradient(135deg, #EEEDFE 0%, #E9D5FF 100%);
    color: var(--landing-primary);
    font-weight: 800;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 16px rgba(91, 80, 240, 0.15);
}

.tutor-name {
    font-size: clamp(1rem, 0.9vw + 0.8rem, 1.15rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: 4px;
}

.tutor-title {
    font-size: clamp(0.82rem, 0.4vw + 0.72rem, 0.92rem);
    color: var(--landing-muted);
    margin-bottom: 10px;
}

.tutor-bio {
    font-size: clamp(0.8rem, 0.35vw + 0.72rem, 0.9rem);
    color: var(--landing-muted);
    line-height: 1.5;
    margin: 0 0 14px;
    flex: 1;
}

.tutor-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--landing-radius-pill);
    margin-bottom: 16px;
}

.tutor-tag--purple { background: #EDE9FE; color: #5B21B6; }
.tutor-tag--pink { background: #FCE7F3; color: #9D174D; }
.tutor-tag--green { background: #D1FAE5; color: #166534; }
.tutor-tag--blue { background: #DBEAFE; color: #1D4ED8; }
.tutor-tag--tan { background: #FEF3C7; color: #92400E; }

.tutor-meta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #E2E8F0;
    font-size: 0.78rem;
    color: var(--landing-muted);
}

.tutor-rating {
    color: var(--landing-navy);
    font-weight: 600;
}

.tutor-rating--new {
    color: var(--landing-muted);
}

.tutor-exp {
    font-weight: 500;
    text-align: right;
}

.tutors-view-all-wrap {
    display: flex;
    justify-content: center;
    margin-top: clamp(28px, 4vh, 40px);
}

.btn-landing-outline--arrow {
    gap: 10px;
}

.btn-landing-outline--arrow .btn-arrow {
    transition: transform 0.2s ease;
}

.btn-landing-outline--arrow:hover .btn-arrow {
    transform: translateX(3px);
}

.tutors-empty {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #FFFFFF;
    border-radius: var(--landing-radius);
    box-shadow: var(--landing-shadow);
}

.tutors-empty p {
    color: var(--landing-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tutors-stats {
    padding: 0 0 clamp(48px, 6vh, 72px);
}

.tutors-stats-panel {
    background: linear-gradient(180deg, #F5F3FF 0%, #FAFAFF 100%);
    border: 1px solid rgba(91, 80, 240, 0.08);
    border-radius: clamp(24px, 3vw, 36px);
    padding: clamp(28px, 4vw, 48px);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(20px, 3vw, 32px);
    align-items: center;
}

.tutors-stats-mascot {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1;
    grid-row: span 2;
}

.tutors-stats-copy h2 {
    font-size: clamp(1.25rem, 1.8vw + 0.6rem, 1.75rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: 8px;
}

.tutors-stats-copy p {
    font-size: clamp(0.9rem, 0.5vw + 0.75rem, 1rem);
    color: var(--landing-muted);
    line-height: 1.55;
    margin: 0;
    max-width: 36rem;
}

.tutors-stats-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2.5vw, 24px);
    margin-top: 8px;
}

.tutors-stat {
    text-align: center;
}

.tutors-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 10px;
}

.tutors-stat strong {
    display: block;
    font-size: clamp(1.35rem, 2vw + 0.5rem, 1.75rem);
    font-weight: 800;
    color: var(--landing-primary);
    margin-bottom: 4px;
}

.tutors-stat span {
    font-size: clamp(0.78rem, 0.4vw + 0.68rem, 0.88rem);
    color: var(--landing-muted);
}

@media (max-width: 900px) {
    .tutors-stats-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tutors-stats-mascot {
        grid-row: auto;
        margin: 0 auto;
    }

    .tutors-stats-copy p {
        margin: 0 auto;
    }

    .tutors-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tutors-value-bar {
        flex-direction: column;
        align-items: flex-start;
        border-radius: var(--landing-radius);
    }

    .tutors-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }

    .tutors-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Pricing page ── */
.pricing-page {
    background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 24%, #FFFFFF 100%);
}

.pricing-intro {
    padding: calc(var(--nav-height) + clamp(32px, 4vh, 56px)) 0 clamp(32px, 4vh, 48px);
}

.pricing-intro-inner {
    position: relative;
    margin-bottom: clamp(32px, 4vh, 48px);
}

.pricing-title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 24px);
    font-size: clamp(2rem, 3.5vw + 0.5rem, 3.25rem);
    font-weight: 800;
    color: var(--landing-navy);
    text-align: center;
    margin-bottom: clamp(12px, 2vh, 20px);
}

.pricing-title-accent {
    color: var(--landing-primary);
}

.pricing-subtitle {
    margin-bottom: 0;
}

.pricing-deco--1 { top: 10%; left: 10%; color: #C4B5FD; }
.pricing-deco--2 { top: 20%; right: 12%; color: #FBBF24; }
.pricing-deco--dot { bottom: 8%; left: 20%; color: #22C55E; font-size: 0.65rem; }
.pricing-deco--plane { top: 6%; right: 18%; }

.pricing-card-wrap {
    display: flex;
    justify-content: center;
}

.pricing-card {
    width: 100%;
    max-width: 420px;
    background: #FFFFFF;
    border-radius: clamp(24px, 3vw, 32px);
    box-shadow: 0 8px 40px rgba(30, 41, 59, 0.1);
    border: 1px solid rgba(91, 80, 240, 0.08);
    padding: clamp(32px, 4vw, 44px) clamp(28px, 3.5vw, 40px);
    text-align: center;
}

.pricing-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EEEDFE 0%, #E9D5FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.pricing-card-label {
    font-size: clamp(1.1rem, 1vw + 0.85rem, 1.35rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: 12px;
}

.pricing-card-amount {
    font-size: clamp(3rem, 6vw + 0.5rem, 4.5rem);
    font-weight: 800;
    color: var(--landing-primary);
    line-height: 1;
    margin: 0 0 12px;
}

.pricing-currency {
    font-size: 0.72em;
    vertical-align: super;
    margin-right: 2px;
}

.pricing-card-unit {
    display: inline-block;
    background: var(--landing-primary-light);
    color: var(--landing-primary);
    font-size: clamp(0.85rem, 0.5vw + 0.75rem, 0.95rem);
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--landing-radius-pill);
    margin-bottom: 24px;
}

.pricing-card-divider {
    border: none;
    border-top: 1px solid #E2E8F0;
    margin: 0 0 24px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(0.92rem, 0.5vw + 0.8rem, 1.05rem);
    font-weight: 600;
    color: var(--landing-navy);
    margin-bottom: 14px;
}

.pricing-features li:last-child {
    margin-bottom: 0;
}

.pricing-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--landing-primary);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pricing-card-cta {
    width: 100%;
    justify-content: center;
}

.pricing-trust {
    padding: 0 0 clamp(48px, 6vh, 72px);
}

.pricing-trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2.5vw, 24px);
    background: linear-gradient(180deg, #F5F3FF 0%, #FAFAFF 100%);
    border: 1px solid rgba(91, 80, 240, 0.08);
    border-radius: clamp(20px, 2.5vw, 28px);
    padding: clamp(24px, 3vw, 36px);
}

.pricing-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.pricing-trust-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.pricing-trust-copy h3 {
    font-size: clamp(0.88rem, 0.5vw + 0.75rem, 1rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: 4px;
    line-height: 1.3;
}

.pricing-trust-copy p {
    font-size: clamp(0.78rem, 0.35vw + 0.68rem, 0.88rem);
    color: var(--landing-muted);
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 1024px) {
    .pricing-trust-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pricing-trust-bar {
        grid-template-columns: 1fr;
    }

    .pricing-title {
        font-size: clamp(1.75rem, 7vw + 0.4rem, 2.25rem);
    }
}

/* ── For Parents page ── */
.parents-page {
    background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 18%, #FFFFFF 100%);
}

.parents-hero {
    padding: calc(var(--nav-height) + clamp(32px, 4vh, 56px)) 0 clamp(24px, 3vh, 36px);
}

.parents-hero-inner {
    position: relative;
    text-align: center;
}

.parents-hero-subtitle {
    margin-bottom: 0;
    max-width: 40rem;
}

.parents-deco--1 { top: 8%; left: 8%; color: #F9A8D4; }
.parents-deco--2 { top: 18%; right: 10%; color: #FBBF24; }
.parents-deco--plus { bottom: 10%; left: 14%; color: #A78BFA; font-size: 1.25rem; font-weight: 700; }

.parents-deco-shield {
    position: absolute;
    top: 6%;
    right: 14%;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    filter: drop-shadow(0 4px 12px rgba(91, 80, 240, 0.2));
}

.parents-features {
    padding: clamp(24px, 4vh, 48px) 0;
}

.parents-section-title {
    text-align: center;
    font-size: clamp(1.5rem, 2.2vw + 0.6rem, 2.25rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: clamp(28px, 4vh, 40px);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.parents-features-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
}

.parents-feature-card {
    background: #FFFFFF;
    border-radius: var(--landing-radius);
    box-shadow: var(--landing-shadow);
    border: 1px solid rgba(91, 80, 240, 0.06);
    padding: clamp(20px, 2.5vw, 28px) clamp(14px, 1.8vw, 18px);
    text-align: center;
}

.parents-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin: 0 auto 14px;
}

.parents-feature-card h3 {
    font-size: clamp(0.95rem, 0.7vw + 0.75rem, 1.1rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: 8px;
}

.parents-feature-card p {
    font-size: clamp(0.78rem, 0.35vw + 0.68rem, 0.88rem);
    color: var(--landing-muted);
    line-height: 1.5;
    margin: 0;
}

.parents-partners {
    background: #F8FAFC;
    padding: clamp(40px, 5vh, 64px) 0;
}

.parents-partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}

.parents-partners-copy h2 {
    font-size: clamp(1.5rem, 2vw + 0.75rem, 2.1rem);
    font-weight: 800;
    color: var(--landing-navy);
    line-height: 1.2;
    margin-bottom: 14px;
}

.parents-accent {
    color: var(--landing-primary);
}

.parents-partners-copy > p {
    font-size: clamp(0.95rem, 0.6vw + 0.75rem, 1.1rem);
    color: var(--landing-muted);
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 28rem;
}

.parents-partners-photo {
    margin-top: 28px;
    border-radius: clamp(20px, 2.5vw, 28px);
    overflow: hidden;
    box-shadow: var(--landing-shadow);
    background: linear-gradient(135deg, #EEEDFE 0%, #F5F3FF 100%);
    max-width: 420px;
}

.parents-partners-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.parents-process h3 {
    font-size: clamp(1.15rem, 1.2vw + 0.8rem, 1.45rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: clamp(20px, 3vh, 28px);
}

.parents-steps {
    display: flex;
    align-items: flex-start;
    gap: clamp(6px, 1vw, 10px);
}

.parents-step-arrow {
    display: flex;
    align-items: center;
    color: var(--landing-primary);
    opacity: 0.5;
    padding-top: 42px;
    flex-shrink: 0;
}

.parents-step {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.parents-step-visual {
    position: relative;
    width: clamp(72px, 8vw, 88px);
    height: clamp(72px, 8vw, 88px);
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--step-icon-bg, #EDE9FE);
    display: flex;
    align-items: center;
    justify-content: center;
}

.parents-step-num {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--landing-primary);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(91, 80, 240, 0.35);
}

.parents-step-icon {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    line-height: 1;
}

.parents-step h4 {
    font-size: clamp(0.82rem, 0.5vw + 0.7rem, 0.95rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: 6px;
    line-height: 1.25;
}

.parents-step p {
    font-size: clamp(0.72rem, 0.3vw + 0.65rem, 0.82rem);
    color: var(--landing-muted);
    line-height: 1.45;
    margin: 0;
}

.parents-trust {
    padding: 0 0 clamp(40px, 5vh, 56px);
}

.parents-trust-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 20px);
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--landing-radius-pill);
    padding: clamp(14px, 2vh, 18px) clamp(16px, 2.5vw, 28px);
}

.parents-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.78rem, 0.4vw + 0.68rem, 0.9rem);
    font-weight: 600;
    color: var(--landing-navy);
    white-space: nowrap;
}

.parents-trust-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.parents-trust-divider {
    width: 1px;
    height: 20px;
    background: #CBD5E1;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .parents-features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .parents-partners-grid {
        grid-template-columns: 1fr;
    }

    .parents-steps {
        flex-wrap: wrap;
        justify-content: center;
    }

    .parents-step-arrow {
        display: none;
    }

    .parents-step {
        flex: 1 1 calc(50% - 12px);
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    .parents-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .parents-trust-bar {
        flex-direction: column;
        border-radius: var(--landing-radius);
        white-space: normal;
    }

    .parents-trust-divider {
        display: none;
    }

    .parents-trust-item {
        white-space: normal;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .parents-features-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .parents-step {
        flex: 1 1 100%;
        max-width: none;
    }
}

/* ── Contact page ── */
.contact-page {
    background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 16%, #FFFFFF 100%);
}

.contact-hero {
    padding: calc(var(--nav-height) + clamp(28px, 4vh, 48px)) 0 clamp(20px, 3vh, 32px);
}

.contact-hero-inner {
    position: relative;
    text-align: center;
}

.contact-title {
    font-size: clamp(2rem, 3.5vw + 0.5rem, 3.25rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: clamp(12px, 2vh, 18px);
    line-height: 1.15;
}

.contact-title-accent {
    color: var(--landing-primary);
}

.contact-subtitle {
    margin-bottom: 0;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}

.contact-deco--1 { top: 10%; left: 10%; color: #F9A8D4; }
.contact-deco--2 { top: 22%; right: 12%; color: #FBBF24; }
.contact-deco--dot { bottom: 6%; left: 18%; color: #22C55E; font-size: 0.65rem; }
.contact-deco--plane { top: 8%; right: 16%; }

.contact-main {
    background: #F8FAFC;
    padding: clamp(28px, 4vh, 48px) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(20px, 3vw, 28px);
    align-items: start;
}

.contact-card {
    background: #FFFFFF;
    border-radius: clamp(20px, 2.5vw, 28px);
    box-shadow: var(--landing-shadow);
    border: 1px solid rgba(91, 80, 240, 0.06);
    padding: clamp(24px, 3vw, 32px);
}

.contact-card h2 {
    font-size: clamp(1.2rem, 1.2vw + 0.85rem, 1.5rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: clamp(20px, 2.5vh, 24px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--landing-navy);
    margin-bottom: 8px;
}

.contact-optional {
    font-weight: 500;
    color: var(--landing-muted);
}

.contact-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 14px;
    padding: 0 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input-wrap:focus-within {
    border-color: var(--landing-primary);
    box-shadow: 0 0 0 3px rgba(91, 80, 240, 0.12);
}

.contact-input-wrap--textarea {
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
}

.contact-input-icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.85;
}

.contact-input-wrap input,
.contact-input-wrap select,
.contact-input-wrap textarea {
    flex: 1;
    width: 100%;
    border: none;
    background: transparent;
    color: var(--landing-navy);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 12px 0;
    outline: none;
}

.contact-input-wrap textarea {
    resize: vertical;
    min-height: 120px;
    padding: 0;
}

.contact-input-wrap select {
    cursor: pointer;
}

.contact-submit {
    width: 100%;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.contact-form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--landing-muted);
    margin: 0;
}

.contact-side {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.5vw, 20px);
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-info-list li {
    display: flex;
    gap: 14px;
    align-items: center;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 42px;
    font-size: 1.15rem;
    padding: 0;
    overflow: hidden;
    /* Emoji glyphs sit slightly above their baseline; nudge to visual center. */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.contact-info-icon--purple { background: #EDE9FE; }
.contact-info-icon--green { background: #D1FAE5; }
.contact-info-icon--yellow { background: #FEF9C3; }

.contact-info-list strong {
    display: block;
    font-size: 0.92rem;
    color: var(--landing-navy);
    margin-bottom: 4px;
}

.contact-info-list a,
.contact-info-list span {
    display: block;
    font-size: 0.88rem;
    color: var(--landing-muted);
    line-height: 1.5;
    text-decoration: none;
}

.contact-info-list a:hover {
    color: var(--landing-primary);
}

.contact-cta {
    padding: clamp(32px, 4vh, 48px) 0 clamp(48px, 6vh, 64px);
}

.contact-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2.5vw, 24px);
}

.contact-cta-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(180deg, #F5F3FF 0%, #FAFAFF 100%);
    border: 1px solid rgba(91, 80, 240, 0.1);
    border-radius: clamp(20px, 2.5vw, 28px);
    padding: clamp(22px, 3vw, 28px);
}

.contact-cta-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--landing-shadow-sm);
}

.contact-cta-copy h3 {
    font-size: clamp(1rem, 0.9vw + 0.8rem, 1.15rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: 6px;
}

.contact-cta-copy p {
    font-size: clamp(0.85rem, 0.4vw + 0.75rem, 0.95rem);
    color: var(--landing-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-cta-grid {
        grid-template-columns: 1fr;
    }

    .contact-cta-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.tutor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* ── Legal pages (Terms & Conditions) ── */
.legal-page {
    background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 14%, #FFFFFF 100%);
}

.legal-hero {
    padding: calc(var(--nav-height) + clamp(28px, 4vh, 48px)) 0 clamp(20px, 3vh, 28px);
}

.legal-hero-inner {
    max-width: 52rem;
    margin: 0 auto;
}

.legal-title {
    font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: 12px;
    line-height: 1.15;
}

.legal-title-accent {
    color: var(--landing-primary);
}

.legal-meta {
    color: #64748B;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.legal-intro {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.legal-body {
    padding: 0 0 clamp(48px, 6vh, 72px);
}

.legal-card {
    max-width: 52rem;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid rgba(91, 80, 240, 0.08);
    border-radius: clamp(20px, 2.5vw, 28px);
    box-shadow: var(--landing-shadow);
    padding: clamp(28px, 4vw, 40px);
}

.legal-section + .legal-section {
    margin-top: clamp(28px, 3vh, 36px);
    padding-top: clamp(24px, 3vh, 32px);
    border-top: 1px solid #E2E8F0;
}

.legal-section h2 {
    font-size: clamp(1.2rem, 1vw + 0.9rem, 1.45rem);
    font-weight: 800;
    color: var(--landing-navy);
    margin-bottom: 14px;
}

.legal-section h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #1E293B;
    margin: 18px 0 10px;
}

.legal-section p,
.legal-section li {
    color: #334155;
    line-height: 1.75;
    font-size: 0.98rem;
}

.legal-section p {
    margin: 0 0 12px;
}

.legal-section ul,
.legal-section ol {
    margin: 0 0 14px 1.25rem;
    padding: 0;
}

.legal-section li + li {
    margin-top: 8px;
}

.legal-section a {
    color: var(--landing-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-ack {
    margin-top: clamp(28px, 3vh, 36px);
    padding: 18px 20px;
    border-radius: 16px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}

.legal-ack p {
    margin: 0;
    color: #1E293B;
    font-weight: 600;
    line-height: 1.6;
}

.form-group--checkbox {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #334155;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--landing-primary);
    font-weight: 600;
}

/* ── Terms modal popup ── */
.terms-modal {
    border: none;
    padding: 0;
    margin: auto;
    max-width: min(920px, calc(100vw - 32px));
    width: 100%;
    max-height: calc(100vh - 32px);
    background: transparent;
}

.terms-modal::backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.terms-modal__panel {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px);
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    border: 1px solid rgba(91, 80, 240, 0.12);
}

.terms-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #E2E8F0;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.terms-modal__title {
    margin: 0 0 4px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--landing-navy);
}

.terms-modal__meta {
    margin: 0;
    color: #64748B;
    font-size: 0.9rem;
}

.terms-modal__close {
    border: none;
    background: #F1F5F9;
    color: #334155;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-modal__close:hover {
    background: #E2E8F0;
}

.terms-modal__body {
    overflow-y: auto;
    padding: 20px 24px;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
}

.legal-card--modal .legal-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.terms-modal__foot {
    padding: 16px 24px 20px;
    border-top: 1px solid #E2E8F0;
    background: #F8FAFC;
    display: flex;
    justify-content: flex-end;
}

.terms-modal__foot .btn-landing-primary {
    min-width: 160px;
}

/* ── Mobile Footer Fix (< 768px) ── */
@media (max-width: 768px) {
    .landing-footer {
        padding: 24px 0 0;
    }

    .landing-footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 16px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .footer-brand {
        text-align: center;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    }

    .footer-brand p {
        font-size: 0.82rem;
        margin: 12px auto 0;
        max-width: 100%;
    }

    .footer-col {
        text-align: left;
        min-width: 0;
    }

    .footer-col h4 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .footer-col ul {
        flex-direction: column;
        gap: 6px;
    }

    .footer-col ul li {
        font-size: 0.8rem;
        white-space: normal;
        word-wrap: break-word;
    }

    .footer-col ul li a {
        word-break: break-word;
    }

    .landing-footer-bottom {
        padding: 12px 16px;
        font-size: 0.75rem;
    }

    .landing-footer-bottom p {
        font-size: 0.75rem;
    }
}

/* =============================================================================
   ── 2026 Redesign refresh layer ──
   Token-driven polish applied on top of the base landing styles.
   ========================================================================== */

/* Glassy fixed nav */
.landing-header {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.landing-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 30px rgba(30, 41, 59, 0.08);
    border-bottom-color: transparent;
}

.landing-nav > a {
    position: relative;
    transition: color 0.2s, background 0.2s, transform 0.15s;
}

.landing-nav > a:hover {
    background: var(--zt-primary-soft);
}

/* Buttons: depth + press feedback */
.btn-landing-primary {
    background: linear-gradient(135deg, var(--zt-primary) 0%, var(--zt-primary-dark) 100%);
    box-shadow: 0 6px 18px rgba(91, 80, 240, 0.30);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-landing-primary:hover {
    background: linear-gradient(135deg, var(--zt-primary) 0%, var(--zt-primary-dark) 100%);
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(91, 80, 240, 0.38);
}

.btn-landing-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(91, 80, 240, 0.28);
}

.btn-landing-outline {
    transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.18s ease;
}

.btn-landing-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(91, 80, 240, 0.18);
}

.btn-landing-video .play-icon {
    background: var(--zt-primary-light);
    color: var(--zt-primary);
    box-shadow: 0 4px 12px rgba(91, 80, 240, 0.18);
    transition: transform 0.2s ease;
}

.btn-landing-video:hover .play-icon {
    transform: scale(1.1);
}

/* Hero: layered soft-color background */
.landing-hero {
    background:
        radial-gradient(560px 320px at 12% 18%, rgba(91, 80, 240, 0.07), transparent 65%),
        radial-gradient(480px 300px at 88% 12%, rgba(251, 191, 36, 0.10), transparent 60%),
        radial-gradient(520px 340px at 78% 85%, rgba(45, 212, 191, 0.08), transparent 65%);
}

.hero-badge {
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.25);
}

/* Gentle idle float for hero props */
@keyframes zt-float-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-prop-owl { animation: zt-float-soft 3.6s ease-in-out infinite; display: inline-block; }
.hero-prop-books { animation: zt-float-soft 4.4s ease-in-out 0.6s infinite; }

/* Subject cards: playful lift */
.subject-card {
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}

.subject-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 16px 34px rgba(30, 41, 59, 0.14);
}

.subject-card:nth-child(even):hover {
    transform: translateY(-8px) rotate(1deg);
}

.subject-card-icon {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.subject-card:hover .subject-card-icon {
    transform: scale(1.18) rotate(6deg);
}

.subject-card--view-all:hover {
    border-color: var(--zt-primary);
    background: var(--zt-primary-soft);
}

/* Footer: richer navy gradient + rounded shoulder */
.landing-footer {
    background: linear-gradient(180deg, #232F46 0%, #1E293B 45%, #17202F 100%);
    border-radius: 28px 28px 0 0;
    margin-top: 8px;
}

.footer-col a {
    transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
    padding-left: 4px;
}

/* Scroll-reveal (class added by landing.js; no-JS users see content normally) */
.zt-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.zt-reveal.zt-in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .zt-reveal { opacity: 1; transform: none; transition: none; }
    .hero-prop-owl, .hero-prop-books { animation: none; }
}

/* ── Refresh layer: auth pages ── */
.landing-auth-wrap {
    background:
        radial-gradient(480px 300px at 8% 20%, rgba(91, 80, 240, 0.08), transparent 60%),
        radial-gradient(420px 280px at 92% 30%, rgba(251, 191, 36, 0.10), transparent 60%),
        radial-gradient(460px 320px at 50% 100%, rgba(45, 212, 191, 0.07), transparent 65%);
}

.landing-auth-card {
    border-radius: var(--zt-radius-lg);
    box-shadow: var(--zt-shadow-lg);
    border: 1px solid rgba(91, 80, 240, 0.10);
}

.landing-auth-card .auth-header h2 {
    background: linear-gradient(120deg, var(--zt-primary), #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--zt-primary); /* fallback */
}

.landing-auth-card .form-group input,
.landing-auth-card .form-group select,
.landing-auth-card .form-group textarea {
    padding: 13px 16px;
    border-radius: var(--zt-radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.landing-auth-card .form-group input:focus,
.landing-auth-card .form-group select:focus,
.landing-auth-card .form-group textarea:focus {
    background: #FFFFFF;
}

.landing-auth-card .form-group label {
    font-size: 13.5px;
    display: inline-block;
    margin-bottom: 6px;
}

.landing-auth-card .auth-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.landing-auth-card .subject-chip span {
    border-radius: var(--zt-radius-pill);
    border-width: 2px;
    font-weight: 600;
    transition: all 0.18s ease;
}

.landing-auth-card .subject-chip:hover span {
    border-color: var(--zt-primary);
    color: var(--zt-primary);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .landing-auth-card {
        padding: 28px 20px;
    }
}

/* ── Refresh layer: pricing durations list (real rates) ── */
.pricing-durations {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    width: 100%;
}

.pricing-durations li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--zt-border);
    border-radius: var(--zt-radius-sm);
    background: var(--zt-surface-2);
    font-size: 0.95rem;
}

.pricing-duration-label {
    color: var(--zt-muted);
    font-weight: 600;
}

.pricing-duration-price {
    color: var(--zt-text);
    font-weight: 800;
}

/* ── Pricing tiers (one card per session length) ── */
.pricing-tier-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 24px);
    margin: clamp(28px, 4vh, 44px) auto 0;
    max-width: 1120px;
    padding: 0 var(--landing-gutter, 24px);
    width: 100%;
}

.pricing-tier {
    position: relative;
    background: var(--zt-surface);
    border: 1px solid var(--zt-border);
    border-radius: var(--zt-radius-lg);
    padding: clamp(24px, 3vw, 36px) clamp(18px, 2vw, 26px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--zt-shadow);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.pricing-tier:hover {
    transform: translateY(-6px);
    box-shadow: var(--zt-shadow-lg);
    border-color: var(--zt-primary-light);
}

.pricing-tier--popular {
    border: 2px solid var(--zt-primary);
    background: linear-gradient(180deg, var(--zt-primary-soft) 0%, var(--zt-surface) 40%);
    box-shadow: var(--zt-shadow-primary);
    transform: translateY(-4px);
}

.pricing-tier--popular:hover {
    transform: translateY(-10px);
}

.pricing-tier-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--zt-primary) 0%, var(--zt-primary-dark) 100%);
    color: var(--zt-primary-contrast);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--zt-radius-pill);
    box-shadow: 0 6px 16px rgba(91, 80, 240, 0.35);
    white-space: nowrap;
}

.pricing-tier-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--zt-primary-light);
    font-size: 1.9rem;
    margin-bottom: 14px;
}

.pricing-tier--popular .pricing-tier-icon {
    background: var(--zt-surface);
    box-shadow: 0 4px 12px rgba(91, 80, 240, 0.22);
}

.pricing-tier-label {
    font-size: clamp(1rem, 1vw + 0.6rem, 1.15rem);
    font-weight: 700;
    color: var(--zt-muted);
    margin: 0 0 8px;
    letter-spacing: 0.02em;
}

.pricing-tier-amount {
    font-size: clamp(2rem, 2.5vw + 0.8rem, 2.9rem);
    font-weight: 800;
    color: var(--zt-primary);
    line-height: 1;
    margin: 4px 0 6px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.pricing-tier-amount .pricing-currency {
    font-size: 0.55em;
    font-weight: 700;
}

.pricing-tier-unit {
    display: inline-block;
    background: var(--zt-primary-light);
    color: var(--zt-primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 5px 14px;
    border-radius: var(--zt-radius-pill);
    margin-bottom: 20px;
}

.pricing-tier-cta {
    width: 100%;
    margin-top: auto;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
}

.pricing-features-panel {
    max-width: 720px;
    margin: clamp(36px, 5vh, 56px) auto 0;
    padding: clamp(24px, 3vw, 36px);
    background: var(--zt-surface);
    border: 1px solid var(--zt-border);
    border-radius: var(--zt-radius);
    box-shadow: var(--zt-shadow-sm);
}

.pricing-features-heading {
    text-align: center;
    font-size: clamp(1.15rem, 1vw + 0.85rem, 1.4rem);
    font-weight: 700;
    color: var(--zt-text);
    margin: 0 0 20px;
}

.pricing-features-panel .pricing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 1024px) {
    .pricing-tier-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 640px;
    }
    .pricing-tier--popular { transform: none; }
    .pricing-tier--popular:hover { transform: translateY(-6px); }
}

@media (max-width: 560px) {
    .pricing-tier-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
}

/* =====================================================================
   PUBLIC-PAGES TYPOGRAPHY SCALE-DOWN (2026-07-28, revised)
   Reduce only font sizes — layout / padding / nav-height / hero padding
   left untouched so nothing overlaps. Previous version broke the header
   flow by overriding nav-height and .landing-hero padding.
   ===================================================================== */
:root {
    /* Trim the upper bounds — mobile lower bounds unchanged.
       nav-height, subject-icon, and other layout tokens left as-is
       so the header + hero geometry keeps working. */
    --fluid-title:        clamp(2rem,   3vw + 0.8rem, 3.5rem);
    --fluid-subtitle:     clamp(0.9rem, 0.5vw + 0.6rem, 1.08rem);
    --fluid-body:         clamp(0.85rem, 0.3vw + 0.7rem, 0.98rem);
    --fluid-btn:          clamp(0.85rem, 0.25vw + 0.75rem, 0.95rem);
    --fluid-btn-lg:       clamp(0.9rem,  0.3vw + 0.8rem, 1.05rem);
    --fluid-subject-h:    clamp(1.5rem,  1.5vw + 0.8rem, 2.25rem);
}

/* Headline weight + tracking feel more balanced at the smaller size. */
.hero-title {
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
}
.hero-subtitle { line-height: 1.55 !important; }

/* Public section headings — was up to 3rem, now 2.25rem cap. */
.section-title, .landing-section-title,
h2.landing-section-title, .landing-page-content h2 {
    font-weight: 700 !important;
    letter-spacing: -0.015em !important;
}
