/* ==========================================================================
   MyTutor — Universe Cooperation
   Design system: navy + red (brand), teal (tutor-facing accent),
   verified-green (semantic only). Display type styled like a results board,
   body in a warm humanist sans, data in tabular mono.
   ========================================================================== */

:root {
    /* ---- Brand constants (do not change with theme) ---- */
    --navy: #06192e;
    --navy-ink: #0d2b4a;
    --navy-ink-2: #14395e;
    --red: #ba112e;
    --red-bright: #d93a52;
    --teal: #12746b;
    --teal-dark: #0b554f;
    --teal-bright: #1c9c90;
    --verified: #2e9b6b;
    --sand: #f3eee4;
    --on-navy: #f3eee4;
    --on-navy-muted: #aebccb;

    /* ---- Theme-dependent neutrals (mid-page "paper" sections) ---- */
    --bg: #f3eee4;
    --bg-alt: #eae2d0;
    --surface: #ffffff;
    --surface-2: #fbf8f2;
    --text: #0c2438;
    --text-muted: #55677c;
    --border: #e2d8c2;
    --header-bg: rgba(243, 238, 228, 0.86);

    --shadow-sm: 0 2px 10px rgba(6, 25, 46, 0.08);
    --shadow-md: 0 12px 32px rgba(6, 25, 46, 0.12);
    --shadow-lg: 0 24px 60px rgba(6, 25, 46, 0.18);

    --radius-card: 14px;
    --radius-doc: 6px;
    --radius-pill: 999px;

    --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;

    --ease: cubic-bezier(0.16, 0.84, 0.32, 1);
    --max-width: 1240px;
}

[data-theme="dark"] {
    --bg: #0a1a2c;
    --bg-alt: #081525;
    --surface: #102943;
    --surface-2: #15304c;
    --text: #ece7da;
    --text-muted: #9fb0c2;
    --border: #1e3a57;
    --header-bg: rgba(6, 18, 31, 0.86);

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.38);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.48);

    --red: #d93a52;
    --teal: #1c9c90;
}

/* ---- Reset & base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
    text-wrap: balance;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
em { font-style: italic; }

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
    border-radius: 4px;
}

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

.section { padding: clamp(4rem, 8vw, 7rem) 0; }

section[id] { scroll-margin-top: 84px; }

.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    background: var(--red);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-doc);
    z-index: 10000;
    transition: top 0.2s ease;
    font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---- Language toggle: FR shown by default, EN on body[lang="en"] ---- */
[data-lang] { display: inline; }
[data-lang="en"] { display: none; }
body[lang="en"] [data-lang="fr"] { display: none; }
body[lang="en"] [data-lang="en"] { display: inline; }

/* ---- Reveal-on-scroll ---- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 2rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn-icon { font-size: 0.95em; }

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); background: var(--red-bright); }

.btn-outline {
    background: transparent;
    border-color: rgba(243, 238, 228, 0.5);
    color: var(--on-navy);
}
.btn-outline:hover { border-color: var(--on-navy); background: rgba(243, 238, 228, 0.08); transform: translateY(-3px); }

.btn-teal {
    background: var(--teal);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn-teal:hover { transform: translateY(-3px); background: var(--teal-bright); box-shadow: var(--shadow-lg); }

.btn-large { padding: 1.15rem 2.5rem; font-size: 1.1rem; }

/* ==========================================================================
   Header
   ========================================================================== */
header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.75rem;
}

.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.5px;
}
.logo-highlight { color: var(--red); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--red);
    transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: 0.5rem; }

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.4rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    cursor: pointer;
}
.lang-switch .lang-option { padding: 0.1rem 0.2rem; border-radius: 4px; transition: color 0.2s ease, background 0.2s ease; }
.lang-switch .lang-option[data-active="true"] { color: var(--red); }
.lang-sep { opacity: 0.4; }

.theme-toggle {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.3s var(--ease), background 0.2s ease;
}
.theme-toggle:hover { transform: rotate(20deg); }

.mobile-menu-btn {
    display: none;
    position: relative;
    z-index: 1001; /* stay above the sliding .nav-links panel so it's still clickable to close */
    background: none; border: none;
    font-size: 1.4rem; color: var(--text);
    cursor: pointer; padding: 0.4rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    background: var(--navy);
    color: var(--on-navy);
    padding: clamp(7.5rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 6rem);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: -20% -10% auto auto;
    width: 60%; height: 140%;
    background: radial-gradient(circle at 70% 30%, rgba(186, 17, 46, 0.16), transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--red-bright);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.5rem, 4.6vw, 4rem);
    color: #fff;
    margin-bottom: 1.5rem;
}
.hero-title em { color: var(--red-bright); font-style: normal; }

.hero-description {
    font-size: 1.15rem;
    color: var(--on-navy-muted);
    max-width: 46ch;
    margin-bottom: 2.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75rem; }

.hero-note {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--on-navy-muted);
}
.hero-note i { color: var(--verified); }

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.radar-frame {
    width: min(360px, 80vw);
    background: linear-gradient(180deg, var(--navy-ink) 0%, var(--navy-ink-2) 100%);
    border: 1px solid rgba(243, 238, 228, 0.14);
    border-radius: 32px;
    padding: 1.75rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.radar-notch {
    width: 56px; height: 5px;
    background: rgba(243, 238, 228, 0.18);
    border-radius: var(--radius-pill);
    margin: 0 auto 1.25rem;
}
#radarCanvas { width: 100%; height: auto; display: block; }
.radar-caption {
    text-align: center;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--on-navy-muted);
    min-height: 1.4em;
}
.radar-legend {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--on-navy-muted);
    letter-spacing: 0.3px;
}

/* ==========================================================================
   Section headers / kickers
   ========================================================================== */
.kicker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.9rem;
}
.kicker-teal { color: var(--teal); }

.section-header { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-title {
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    color: var(--text);
    margin-bottom: 1rem;
}
.section-title-left {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    color: var(--text);
    margin-bottom: 1.25rem;
    max-width: 20ch;
}
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); }

/* ==========================================================================
   Promise / Fiche
   ========================================================================== */
.promise-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.promise-text { color: var(--text-muted); font-size: 1.08rem; max-width: 52ch; }

.fiche {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-doc);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.fiche-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--navy);
    color: var(--on-navy);
}
.fiche-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--red);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}
.fiche-id { font-family: var(--font-mono); font-size: 0.75rem; color: var(--on-navy-muted); }

.fiche-rows { display: flex; flex-direction: column; }
.fiche-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border-top: 1px dashed var(--border);
}
.fiche-row:first-child { border-top: none; }
.fiche-row dt {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding-top: 0.15rem;
}
.fiche-row dd { color: var(--text); font-size: 0.98rem; }

/* ==========================================================================
   Stepper
   ========================================================================== */
.steps { background: var(--bg-alt); }
.stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    counter-reset: step;
    position: relative;
}
.stepper::before {
    content: '';
    position: absolute;
    top: 22px; left: 5%; right: 5%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
    z-index: 0;
}
.step { position: relative; z-index: 1; }
.step-index {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: var(--surface);
    border: 2px solid var(--red);
    color: var(--red);
    font-family: var(--font-mono);
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1.1rem;
}
.step h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.step p { color: var(--text-muted); font-size: 0.96rem; max-width: 32ch; }

/* ==========================================================================
   Trust
   ========================================================================== */
.trust-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

.trust-mechanisms { display: flex; flex-direction: column; gap: 1.5rem; }
.trust-mechanisms li { display: flex; gap: 1rem; align-items: flex-start; }
.trust-mechanisms i {
    flex-shrink: 0;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--red);
    font-size: 1.05rem;
}
.trust-mechanisms h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--text); }
.trust-mechanisms p { color: var(--text-muted); font-size: 0.93rem; }

.evidence-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.evidence-strip {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.5rem 0.5rem 1.25rem;
    scroll-snap-type: x proximity;
}
.evidence-strip::-webkit-scrollbar { height: 8px; }
.evidence-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-pill); }

.evidence-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transform: rotate(var(--tilt, 0deg));
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.evidence-card:nth-child(1) { --tilt: -1.5deg; }
.evidence-card:nth-child(2) { --tilt: 1deg; }
.evidence-card:nth-child(3) { --tilt: -0.8deg; }
.evidence-card:hover { transform: rotate(0deg) translateY(-6px); box-shadow: var(--shadow-md); }
.evidence-card img { width: 100%; height: 240px; object-fit: cover; object-position: top; }
.evidence-card figcaption { padding: 0.9rem 1rem 1.1rem; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ---- Behind the app: team strip + on-demand video ---- */
.behind-app {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px dashed var(--border);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
}
.behind-app-people { display: flex; align-items: center; gap: 1.1rem; }
.behind-app-photos { display: flex; flex-shrink: 0; }
.behind-app-photos img {
    width: 46px; height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg);
    box-shadow: var(--shadow-sm);
}
.behind-app-photos img + img { margin-left: -14px; }
.behind-app-people p { font-size: 0.9rem; color: var(--text-muted); max-width: 46ch; }

.behind-app-video {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 0.75rem 1.25rem 0.75rem 0.75rem;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    white-space: nowrap;
}
.behind-app-video:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.video-play {
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    font-size: 0.85rem;
}
.video-label { display: flex; flex-direction: column; }
.video-label strong { font-size: 0.92rem; color: var(--text); }
.video-label small { font-size: 0.76rem; color: var(--text-muted); }

.video-slot { margin-top: 1.5rem; }
.video-slot video {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    display: block;
}

@media (max-width: 640px) {
    .behind-app { grid-template-columns: minmax(0, 1fr); }
    .behind-app-video { white-space: normal; }
}

/* ==========================================================================
   Dual rails (Francophone / Anglophone)
   ========================================================================== */
.dual { background: var(--bg); }
.rails {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}
.rail-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    text-align: center;
}
.rail-stops { position: relative; padding-left: 1.75rem; }
.rail-stops::before {
    content: '';
    position: absolute; left: 6px; top: 8px; bottom: 8px;
    width: 2px;
}
.rail-fr .rail-stops::before { background: linear-gradient(var(--red), transparent); }
.rail-en .rail-stops::before { background: linear-gradient(var(--teal), transparent); }
.rail-stops li { position: relative; padding: 0.6rem 0; font-weight: 600; color: var(--text); }
.rail-stops li::before {
    content: '';
    position: absolute; left: -1.75rem; top: 50%;
    width: 14px; height: 14px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--red);
}
.rail-en .rail-stops li::before { border-color: var(--teal); }
.rail-stops li:last-child { font-family: var(--font-display); font-size: 1.15rem; }

.rail-node {
    width: 84px; height: 84px;
    border-radius: 50%;
    background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    padding: 14px;
    justify-self: center;
}
.rail-node img { width: 100%; height: 100%; object-fit: contain; }

/* ==========================================================================
   For tutors
   ========================================================================== */
.for-tutors {
    background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: #fff;
}
.for-tutors .kicker-teal { color: rgba(255, 255, 255, 0.85); }
.for-tutors-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.for-tutors .section-title-left { color: #fff; max-width: 18ch; }
.for-tutors .promise-text { color: rgba(255, 255, 255, 0.82); }
.for-tutors-note { margin-top: 1.25rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); max-width: 42ch; }
.for-tutors .btn-teal { background: #fff; color: var(--teal-dark); }
.for-tutors .btn-teal:hover { background: var(--sand); }

.tier-ladder {
    background: rgba(6, 25, 46, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    backdrop-filter: blur(4px);
}
.tier {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.tier:last-of-type { border-bottom: none; }
.tier-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.tier-bar {
    position: relative;
    height: 8px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
}
.tier-bar::before {
    content: '';
    position: absolute; inset: 0;
    width: var(--w);
    background: #fff;
    border-radius: var(--radius-pill);
}
.tier-value { font-family: var(--font-mono); font-weight: 700; text-align: right; }
.tier-req {
    grid-column: 1 / -1;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: -0.35rem;
    padding-bottom: 0.4rem;
}
.tier-max .tier-name, .tier-max .tier-value { color: var(--sand); }
.tier-footnote {
    margin-top: 1.1rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--bg-alt); }
.faq-container { max-width: 780px; }
.faq-list { display: flex; flex-direction: column; gap: 0.9rem; }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-doc);
    overflow: hidden;
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex-shrink: 0; color: var(--red); transition: transform 0.25s var(--ease); }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--red); }
.faq-item p {
    padding: 0 1.4rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.96rem;
    max-width: 65ch;
}

/* ==========================================================================
   Download CTA
   ========================================================================== */
.download { background: var(--navy); color: var(--on-navy); text-align: center; }
.download-container { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; max-width: 640px; margin: 0 auto; }
.cta-title { font-size: clamp(2rem, 4vw, 2.75rem); color: #fff; }
.cta-description { color: var(--on-navy-muted); font-size: 1.08rem; }

.store-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 0.5rem; }
.store-badge {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(243, 238, 228, 0.2);
    border-radius: var(--radius-doc);
    color: var(--on-navy-muted);
}
.store-badge i { font-size: 1.5rem; color: var(--on-navy); }
.store-badge-text { display: flex; flex-direction: column; font-size: 0.75rem; text-align: left; line-height: 1.3; }
.store-badge-text strong { font-size: 0.95rem; color: var(--on-navy); }

/* ==========================================================================
   Footer
   ========================================================================== */
footer { background: var(--navy); color: var(--on-navy-muted); padding: 4.5rem 0 2rem; }
.footer-container {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer-logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 1.1rem; display: inline-block; }
.footer-highlight { color: var(--red-bright); }
.footer-description { font-size: 0.92rem; line-height: 1.6; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-link {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(243, 238, 228, 0.08);
    border-radius: 50%;
    color: #fff;
    transition: background 0.25s ease, transform 0.25s ease;
}
.social-link:hover { background: var(--red); transform: translateY(-3px); }
.footer-heading { font-family: var(--font-body); font-size: 1rem; color: #fff; margin-bottom: 1.1rem; font-weight: 700; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.92rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--red-bright); }
.footer-contact p { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; font-size: 0.92rem; }
.footer-contact i { width: 16px; color: var(--red-bright); }
.footer-contact a:hover { color: #fff; }
.copyright { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(243, 238, 228, 0.12); font-size: 0.85rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .hero-container { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-note { justify-content: center; }
    .hero-visual { margin-top: 1rem; }

    .promise-container, .for-tutors-container, .trust-grid { grid-template-columns: minmax(0, 1fr); }
    .section-title-left { max-width: none; margin-left: auto; margin-right: auto; text-align: center; }
    .promise-copy { text-align: center; }
    .promise-text { margin-left: auto; margin-right: auto; }

    .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stepper::before { display: none; }

    .rails { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
    .rail-stops { display: inline-block; text-align: left; }
    .rail-node { order: -1; margin-bottom: 0.5rem; }

    .footer-container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 1080px) {
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform 0.35s var(--ease);
        gap: 1.5rem;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-actions { flex-direction: row; margin-top: 1.5rem; margin-left: 0; }
    .mobile-menu-btn { display: block; }
    .for-tutors-copy { text-align: center; }
    .for-tutors .section-title-left { margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
    .stepper { grid-template-columns: minmax(0, 1fr); }
    .footer-container { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .footer-social { justify-content: center; }
    .footer-contact p { justify-content: center; }
    .evidence-card { flex-basis: 200px; }
    .tier { grid-template-columns: 74px minmax(0, 1fr) 44px; }
    .btn { width: 100%; }
    .hero-actions { flex-direction: column; }
    .store-badges { flex-direction: column; align-items: stretch; }
}

/* Tabular numerals wherever digits line up */
.tier-value, .fiche-id, .radar-legend, .rail-stops li:last-child {
    font-variant-numeric: tabular-nums;
}
