/* ==========================================================================
   Dear MathoMath Academy — Homepage 2 (online classes)
   Mobile-first. Palette: deep ink · electric violet · sunny amber.
   Type: Bricolage Grotesque (headings) + Instrument Sans (text). No serifs.
   ========================================================================== */

:root {
    --ink: #120F2A;
    --ink-2: #1E1A40;
    --text: #2B2847;
    --muted: #5E5A7D;
    --line: #E6E3F2;
    --bg: #FFFFFF;
    --soft: #F6F5FC;

    --violet: #5B3DF5;
    --violet-700: #4527D9;
    --violet-100: #E9E4FF;
    --violet-50: #F4F1FF;
    --amber: #FFB21E;
    --amber-100: #FFF4DB;
    --mint: #12B886;
    --red: #F0445A;
    --wa: #128C4A;

    --f-head: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --f-text: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

    --gutter: 20px;
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(18, 15, 42, .06), 0 4px 14px -6px rgba(18, 15, 42, .1);
    --shadow-lg: 0 24px 60px -24px rgba(36, 22, 120, .35);
    --sec: clamp(64px, 8vw + 24px, 120px);
    --ease: cubic-bezier(.22, .8, .24, 1);
    --hdr: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); overflow-x: hidden; }
@supports (overflow-x: clip) { html { overflow-x: clip; } }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--f-text); font-size: 1rem; line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-head); color: var(--ink); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--violet); color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform .3s; }
.skip:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 20px;
    border: 1.5px solid transparent; border-radius: var(--r-sm);
    font-family: var(--f-text); font-size: .97rem; font-weight: 700; line-height: 1.2;
    text-decoration: none; text-align: center; cursor: pointer;
    transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn i { font-size: 1.15em; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .9rem; }
.btn--lg { min-height: 54px; padding: 0 24px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--violet); color: #fff; box-shadow: 0 10px 24px -10px rgba(91, 61, 245, .7); }
.btn--primary:hover { background: var(--violet-700); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost i { color: var(--violet); }
.btn--ghost:hover { border-color: var(--violet); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #0E7A40; }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #FFC14D; }
.btn--line { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--line:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ---------- Section heads ---------- */
.sec { padding-block: var(--sec); }
.sec--soft { background: var(--soft); }
.sec--dark { background: var(--ink); color: rgba(255, 255, 255, .78); }
.sec__head { max-width: 680px; margin-bottom: 36px; }
.sec__head h2 { font-size: clamp(1.85rem, 1.25rem + 2.4vw, 2.9rem); font-weight: 750; line-height: 1.12; }
.sec__head p:not(.eyebrow) { margin-top: 14px; font-size: 1.05rem; color: var(--muted); }
.sec__head a { color: var(--violet); font-weight: 700; }
.sec__head--light h2 { color: #fff; }
.sec__head--light p:not(.eyebrow) { color: rgba(255, 255, 255, .72); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--amber); }
.sec--dark .eyebrow, .eyebrow--light { color: #B9A8FF; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.hdr {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.hdr.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(18, 15, 42, .35); }
.hdr__in { display: flex; align-items: center; gap: 16px; height: var(--hdr); }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.logo img { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.logo__txt { display: flex; flex-direction: column; font-family: var(--f-head); font-size: 1.08rem; font-weight: 750; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.logo__txt small { margin-top: 3px; font-family: var(--f-text); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.logo--light { color: #fff; }
.logo--light .logo__txt small { color: var(--amber); }

.hdr__nav { display: none; }
.hdr__cta { display: none; }
.burger {
    display: grid; place-items: center; flex: none; margin-left: auto;
    width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
    background: #fff; cursor: pointer;
}
.burger__lines { display: grid; gap: 4px; width: 18px; }
.burger__lines i { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] .burger__lines i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__lines i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer {
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 8px var(--gutter) 20px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -20px rgba(18, 15, 42, .25);
    opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease);
}
.drawer.is-open { opacity: 1; transform: none; }
.drawer__nav a {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 54px; border-bottom: 1px solid var(--line);
    font-family: var(--f-head); font-size: 1.15rem; font-weight: 650; color: var(--ink); text-decoration: none;
}
.drawer__nav a i { color: var(--violet); }
.drawer__cta { display: grid; gap: 10px; margin-top: 18px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative; overflow: hidden;
    padding: 20px 0 56px;
    background:
        radial-gradient(60% 50% at 100% 0%, rgba(91, 61, 245, .14), transparent 70%),
        radial-gradient(50% 40% at 0% 100%, rgba(255, 178, 30, .14), transparent 70%),
        linear-gradient(180deg, var(--violet-50), #fff 80%);
}
.hero__deco span {
    position: absolute; left: var(--x); top: var(--y);
    font-family: var(--f-head); font-size: clamp(1.6rem, 1rem + 2vw, 2.8rem); font-weight: 700;
    color: var(--violet); opacity: .08; pointer-events: none; user-select: none;
}
.hero__grid { position: relative; display: grid; gap: 36px; }

/* Video-call mock-up (the only place the teacher's photo appears) */
.hero__visual { position: relative; width: 100%; max-width: 520px; margin-inline: auto; }
.call {
    position: relative;
    padding: 10px; border-radius: var(--r-lg);
    background: #1B1838; color: #fff;
    box-shadow: var(--shadow-lg);
}
.call__bar { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; font-size: .76rem; }
.call__live {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    padding: 3px 9px; border-radius: 999px; background: var(--red);
    font-weight: 700; letter-spacing: .08em;
}
.call__live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.call__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, .85); font-weight: 600; }
.call__time { flex: none; font-family: var(--f-mono); color: rgba(255, 255, 255, .6); }

.call__main { position: relative; margin: 0; aspect-ratio: 4 / 4.3; border-radius: 14px; overflow: hidden; background: #CBCBD0; }
.call__main img { width: 100%; height: 100%; object-fit: cover; }
.call__name {
    position: absolute; left: 10px; bottom: 10px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 8px;
    background: rgba(18, 15, 42, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-size: .8rem; font-weight: 600;
}
.call__name i { color: var(--mint); }
.call__people { position: absolute; top: 56px; right: 18px; display: grid; gap: 6px; }
.call__people span {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
    background: var(--c, #3B3670); color: var(--ink);
    font-size: .72rem; font-weight: 800; box-shadow: 0 0 0 2px #1B1838;
}
.call__people .more { background: rgba(18, 15, 42, .8); color: #fff; }
.call__controls { display: flex; justify-content: center; gap: 8px; padding: 10px 0 2px; }
.call__controls span {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    background: #2D2955; font-size: 1.05rem;
}
.call__controls .on { background: var(--violet); }
.call__controls .end { width: 50px; border-radius: 999px; background: var(--red); }

.chip-card {
    position: absolute; z-index: 2;
    display: flex; gap: 10px;
    padding: 12px 14px; border-radius: 14px;
    background: #fff; color: var(--ink);
    box-shadow: 0 18px 40px -16px rgba(18, 15, 42, .4);
    font-size: .8rem; line-height: 1.35;
}
.chip-card--topic { right: 10px; bottom: 116px; flex-direction: column; gap: 2px; }
.chip-card__label { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chip-card__math { font-family: var(--f-mono); font-size: .95rem; color: var(--violet); }
.chip-card__ans { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--mint); }
.chip-card--hand { display: none; }
.chip-card__emoji { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--amber-100); color: #D98A00; font-size: 1.15rem; }
.chip-card--hand b { display: block; font-size: .85rem; }

.tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    font-size: .8rem; font-weight: 700; color: var(--ink);
}
.tag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(18, 184, 134, .18); }
.hero__title { margin-top: 16px; font-size: clamp(2.05rem, 1.35rem + 3.3vw, 3.85rem); font-weight: 780; line-height: 1.07; letter-spacing: -.03em; }
.mark { background: linear-gradient(transparent 60%, rgba(255, 178, 30, .55) 60%, rgba(255, 178, 30, .55) 92%, transparent 92%); padding: 0 .06em; }
.hero__lead { margin-top: 16px; font-size: 1.06rem; color: var(--muted); max-width: 36rem; }
.hero__lead strong { color: var(--ink); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__cta .btn { flex: 1 1 100%; }

.proof { list-style: none; margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.proof li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.proof li + li { padding-left: 12px; border-left: 1px solid var(--line); }
.proof b { font-family: var(--f-head); font-size: 1.6rem; font-weight: 780; line-height: 1; color: var(--violet); }
.proof b i { font-size: 1.6rem; color: var(--amber); }
.proof span { font-size: .78rem; line-height: 1.35; color: var(--muted); font-weight: 600; }

/* ==========================================================================
   PLATFORM STRIP
   ========================================================================== */
.strip { border-block: 1px solid var(--line); background: #fff; padding: 20px 0; }
.strip__lead { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.strip__list li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .9rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.pf { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--violet-50); color: var(--violet); font-size: 1.2rem; }
.pf--meet { background: #E5F6EC; color: #0F9D58; }
.pf--zoom { background: #E7F0FF; color: #2D8CFF; }

/* ==========================================================================
   CLASSES / TRACKS
   ========================================================================== */
.tracks { display: grid; gap: 20px; }
.track {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s;
}
.track:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.track--school { border: 2px solid var(--violet); }
.track__img { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--violet-50); }
.track__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.track:hover .track__img img { transform: scale(1.04); }
.track__badge {
    position: absolute; left: 14px; top: 14px;
    padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--ink);
    font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.track--school .track__badge { background: var(--violet); color: #fff; }
.track__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.track__body h3 { font-size: 1.4rem; font-weight: 750; line-height: 1.2; }
.track__for { margin-top: 6px; font-size: .92rem; font-weight: 600; color: var(--violet); }
.boards { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.boards li { padding: 4px 12px; border-radius: 999px; background: var(--violet-50); color: var(--violet-700); font-size: .8rem; font-weight: 700; }
.ticks { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; line-height: 1.45; }
.ticks i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #E2F7EF; color: var(--mint); font-size: .8rem; }
.track__body .btn { margin-top: auto; }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how { display: grid; gap: 40px; }
.how__media { position: relative; }
.how__media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; object-position: 22% 50%; border-radius: var(--r-lg); }
.how__note {
    position: absolute; left: 14px; right: 14px; bottom: 14px;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg);
    font-size: .85rem; color: var(--muted); line-height: 1.35;
}
.how__note > i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--violet); color: #fff; font-size: 1.2rem; }
.how__note b { display: block; color: var(--ink); font-size: .92rem; }
.how__copy .sec__head { margin-bottom: 20px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 22px; top: 66px; bottom: -14px; width: 2px; background: var(--violet-100); }
.steps__n {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
    background: #fff; border: 2px solid var(--violet-100); color: var(--violet);
    font-family: var(--f-head); font-size: 1.2rem; font-weight: 800;
}
.steps li:last-child .steps__n { background: var(--violet); border-color: var(--violet); color: #fff; }
.steps h3 { font-size: 1.12rem; font-weight: 700; margin-top: 2px; }
.steps p { margin-top: 4px; color: var(--muted); font-size: .96rem; }

/* ==========================================================================
   WHY US — bento grid
   ========================================================================== */
.bento { display: grid; gap: 14px; }
.feat {
    display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-content: start;
    padding: 20px; border-radius: var(--r-md);
    background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08);
}
.feat > :not(.feat__ic) { grid-column: 2; }
.feat__ic { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(124, 99, 255, .2); color: #C4B6FF; font-size: 1.5rem; }
.feat h3 { color: #fff; font-size: 1.12rem; font-weight: 700; }
.feat p { margin-top: 6px; font-size: .95rem; color: rgba(255, 255, 255, .7); }
.feat em { color: var(--amber); font-style: normal; font-weight: 700; }
.feat--accent { background: var(--amber); border-color: var(--amber); display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.feat--accent h3, .feat--accent p { color: var(--ink); }
.feat--accent p { opacity: .8; font-weight: 600; }
.feat__big { font-family: var(--f-head); font-size: 3.6rem; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -.04em; margin-bottom: 8px; }
.bento__photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-md); aspect-ratio: 4 / 3; background: var(--ink-2); }
.bento__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento__photo figcaption {
    position: absolute; left: 12px; right: 12px; bottom: 12px;
    display: flex; align-items: center; gap: 8px; width: fit-content; max-width: calc(100% - 24px);
    padding: 8px 14px; border-radius: 999px;
    background: rgba(18, 15, 42, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #fff; font-size: .84rem; font-weight: 600; line-height: 1.3;
}
.bento__photo figcaption i { color: var(--amber); }
.live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(240, 68, 90, .3); animation: blink 1.4s infinite; }

/* ==========================================================================
   TOPICS
   ========================================================================== */
.topics { display: grid; gap: 36px; }
.topic-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chips li {
    padding: 8px 14px; border-radius: 999px;
    background: var(--violet-50); color: var(--violet-700);
    font-size: .88rem; font-weight: 700; line-height: 1.2;
    transition: background-color .2s, color .2s;
}
.topic-chips li:hover { background: var(--violet); color: #fff; }
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mosaic figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-md); background: var(--soft); aspect-ratio: 1; }
.mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic__a, .mosaic__d { grid-column: 1 / -1; }
.mosaic .mosaic__a { aspect-ratio: 16 / 9; }
.mosaic .mosaic__d { aspect-ratio: 2 / 1; }
.mosaic figcaption {
    position: absolute; left: 10px; bottom: 10px;
    padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--ink);
    font-size: .78rem; font-weight: 800;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { display: grid; gap: 32px; }
.about__quote {
    position: relative; overflow: hidden;
    padding: 32px 26px; border-radius: var(--r-lg);
    background: linear-gradient(150deg, var(--violet) 0%, #3A22C9 100%); color: #fff;
}
.about__quote::after { /* faint math watermark */
    content: "π"; position: absolute; right: 18px; bottom: -12px;
    font-family: var(--f-head); font-size: 9rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .08);
}
.about__mark { display: block; height: 52px; font-family: var(--f-head); font-size: 6rem; font-weight: 800; line-height: 1; color: var(--amber); }
.about__quote blockquote { position: relative; margin: 0; }
.about__quote blockquote p { font-family: var(--f-head); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 750; line-height: 1.12; letter-spacing: -.02em; }
.about__quote blockquote span { color: var(--amber); }
.about__sig { position: relative; margin-top: 20px; font-weight: 600; opacity: .85; }
.about__copy .sec__head { margin-bottom: 16px; }
.about__text { color: var(--muted); font-size: 1.04rem; }
.creds { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.creds li { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.creds li > i { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--violet-50); color: var(--violet); font-size: 1.3rem; }
.creds span { font-size: .84rem; color: var(--muted); line-height: 1.35; }
.creds b { display: block; color: var(--ink); font-size: .96rem; }
.vm { display: grid; gap: 12px; margin-top: 12px; }
.vm > div { padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--amber); }
.vm h3 { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; font-weight: 750; color: var(--violet); }
.vm p { margin-top: 6px; font-size: .95rem; color: var(--muted); }

/* ==========================================================================
   REVIEWS — swipe on mobile, grid on desktop
   ========================================================================== */
.reviews {
    display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px;
    scrollbar-width: thin;
}
.review {
    scroll-snap-align: start;
    display: flex; flex-direction: column; margin: 0; padding: 22px;
    border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.review__flag { align-self: flex-start; margin-bottom: 12px; padding: 4px 8px; border-radius: 6px; border: 1px dashed #D99A12; background: var(--amber-100); color: #8A5A00; font-family: var(--f-mono); font-size: .66rem; }
.review__stars { display: flex; gap: 2px; color: var(--amber); font-size: 1rem; }
.review blockquote { margin: 12px 0 20px; flex: 1; }
.review blockquote p { color: var(--text); font-size: .98rem; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.review figcaption b { display: block; color: var(--ink); font-size: .95rem; }
.review__avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--violet-100); color: var(--violet); font-family: var(--f-head); font-weight: 800; }

/* ==========================================================================
   JOIN
   ========================================================================== */
.join { display: grid; gap: 20px; }
.join__side {
    display: flex; flex-direction: column; overflow: hidden;
    padding: 28px 24px; border-radius: var(--r-lg); background: var(--ink); color: rgba(255, 255, 255, .78);
}
.join__side h2 { color: #fff; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 750; line-height: 1.12; }
.join__side > p:not(.eyebrow) { margin-top: 12px; }
.join__next { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.join__next li { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; font-size: .95rem; }
.join__next i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--amber); font-size: 1.1rem; }
.join__img { margin: 24px 0 0; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; }
.join__img img { width: 100%; height: 100%; object-fit: cover; }

.form { padding: 22px 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form__alert { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 10px 12px; border-radius: 10px; background: #FFF0F2; color: #B4233A; font-size: .9rem; font-weight: 600; }
.field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { display: block; margin-bottom: 7px; padding: 0; font-size: .86rem; font-weight: 700; color: var(--ink); }
.field > label > span, .field > legend > span { color: var(--red); }
.field input[type="text"], .field input[type="tel"], .field select {
    width: 100%; height: 50px; padding: 0 14px;
    border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #FBFAFF;
    font-size: 1rem; /* 16px avoids iOS zoom */
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select {
    -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
    background: #FBFAFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235B3DF5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--violet); background-color: #fff; box-shadow: 0 0 0 4px rgba(91, 61, 245, .14); }
.field input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(240, 68, 90, .12); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg--stack { grid-template-columns: 1fr; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
    display: flex; align-items: center; justify-content: center; min-height: 50px; height: 100%;
    padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #FBFAFF;
    font-size: .88rem; font-weight: 700; line-height: 1.25; text-align: center; color: var(--text);
    transition: border-color .2s, background-color .2s, color .2s;
}
.seg--stack span { justify-content: flex-start; text-align: left; padding: 8px 16px; }
.seg input:checked + span { border-color: var(--violet); background: var(--violet-50); color: var(--violet-700); box-shadow: inset 0 0 0 1px var(--violet); }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.field-row { display: grid; gap: 0; }
.field-row[hidden] { display: none; }
.form .btn { margin-top: 6px; }
.form__note { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin-top: 12px; font-size: .8rem; color: var(--muted); text-align: center; line-height: 1.4; }
.form__note i { margin-top: 2px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: 8px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 0; list-style: none; cursor: pointer;
    font-family: var(--f-head); font-size: 1.08rem; font-weight: 700; color: var(--ink); line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__ic { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--violet-50); transition: background-color .25s, transform .3s var(--ease); }
.qa__ic::before, .qa__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--violet); }
.qa__ic::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.qa[open] .qa__ic { background: var(--violet); transform: rotate(180deg); }
.qa[open] .qa__ic::before, .qa[open] .qa__ic::after { background: #fff; }
.qa[open] .qa__ic::after { transform: rotate(0); }
.qa p { padding: 0 44px 18px 0; color: var(--muted); }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final { padding-bottom: var(--sec); }
.final__card { display: grid; overflow: hidden; border-radius: 28px; background: linear-gradient(140deg, var(--violet) 0%, #3A22C9 100%); color: rgba(255, 255, 255, .85); }
.final__img { position: relative; aspect-ratio: 16 / 10; }
.final__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final__copy { padding: 28px 22px 30px; }
.final__copy h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.75rem); font-weight: 780; line-height: 1.1; }
.final__copy p { margin-top: 12px; font-size: 1.05rem; }
.final__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.final__cta .btn { flex: 1 1 100%; }

/* ==========================================================================
   FOOTER + floating actions
   ========================================================================== */
.foot { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 56px 0 0; font-size: .95rem; }
.foot__grid { display: grid; gap: 32px 20px; padding-bottom: 40px; }
@media (max-width: 759px) {
    .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot__brand, .foot__grid > div:last-child { grid-column: 1 / -1; }
}
.foot__brand p { margin-top: 16px; max-width: 26rem; }
.foot h2 { margin-bottom: 14px; font-family: var(--f-text); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; transition: color .2s; }
.foot ul a:hover { color: var(--amber); }
.foot__social a { display: inline-flex; align-items: center; gap: 8px; }
.foot__social i { font-size: 1.15rem; color: var(--amber); }
.foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 20px 0 100px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

.wa-fab {
    position: fixed; right: 24px; bottom: 24px; z-index: 40;
    display: none; place-items: center; width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #fff; font-size: 1.9rem; text-decoration: none;
    box-shadow: 0 14px 30px -10px rgba(18, 140, 74, .7);
    transition: transform .3s var(--ease), opacity .3s;
}
.wa-fab:hover { transform: scale(1.08); }

.mbar {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
    display: flex; gap: 10px; padding: 8px; border-radius: 18px;
    background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid var(--line); box-shadow: 0 18px 40px -12px rgba(18, 15, 42, .35);
    transform: translateY(150%); transition: transform .4s var(--ease);
}
.mbar.is-visible { transform: none; }
.mbar__wa { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 13px; background: #25D366; color: #fff; font-size: 1.6rem; text-decoration: none; }
.mbar__join { flex: 1; min-height: 50px; }
body.drawer-open .mbar { transform: translateY(150%); }

/* Single-column grids must be allowed to shrink below their content width */
.hero__grid, .tracks, .how, .bento, .topics, .about, .join, .faq, .final__card, .foot__grid { grid-template-columns: minmax(0, 1fr); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   ≥ 520px — large phones / small tablets
   ========================================================================== */
@media (min-width: 520px) {
    .hero__cta .btn, .final__cta .btn { flex: 0 0 auto; }
    .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .mosaic {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(2, clamp(130px, 17vw, 200px));
        grid-template-areas: "a a b" "c d b";
    }
    .mosaic figure, .mosaic .mosaic__a, .mosaic .mosaic__d { aspect-ratio: auto; }
    .mosaic__a { grid-area: a; } .mosaic__b { grid-area: b; } .mosaic__c { grid-area: c; } .mosaic__d { grid-area: d; }
    .chip-card--hand { display: flex; left: 10px; top: 34%; }
}

/* ==========================================================================
   ≥ 760px — tablets
   ========================================================================== */
@media (min-width: 760px) {
    :root { --gutter: 32px; }
    .sec__head:not(.sec__head--left) { text-align: center; margin-inline: auto; }
    .sec__head:not(.sec__head--left) .eyebrow { justify-content: center; }
    .strip__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    .strip__lead { margin: 0; }
    .strip__list { display: flex; gap: 28px; }
    .tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .track--school { grid-column: 1 / -1; flex-direction: row; }
    .track--school .track__img { flex: 0 0 48%; aspect-ratio: auto; min-height: 340px; }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento__photo--a { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
    .feat { display: block; padding: 24px; }
    .feat__ic { margin-bottom: 16px; }
    .reviews { grid-auto-columns: 46%; }
    .vm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .join__side, .form { padding: 36px; }
    .final__copy { padding: 40px; }
    .foot__grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); }
    .foot__bar { padding-bottom: 24px; }
    .mbar { display: none; }
    .wa-fab { display: grid; }
}

/* ==========================================================================
   ≥ 1000px — desktop
   ========================================================================== */
@media (min-width: 1000px) {
    .hdr__nav { display: flex; gap: 28px; margin-left: auto; }
    .hdr__nav a { position: relative; padding: 6px 0; font-size: .93rem; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s; }
    .hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--violet); transform: scaleX(0); transition: transform .3s var(--ease); }
    .hdr__nav a:hover, .hdr__nav a.is-active { color: var(--ink); }
    .hdr__nav a.is-active::after, .hdr__nav a:hover::after { transform: scaleX(1); }
    .hdr__cta { display: inline-flex; }
    .burger, .drawer { display: none !important; }

    .hero { padding: 56px 0 96px; }
    .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
    .hero__visual { order: 2; }
    .call__main { aspect-ratio: 4 / 4.5; }
    .chip-card--topic { right: -28px; bottom: 96px; }
    .chip-card--hand { left: -40px; top: 58%; }

    .tracks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .track--school { grid-column: auto; flex-direction: column; }
    .track--school .track__img { flex: none; aspect-ratio: 16 / 10; min-height: 0; }

    .how { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
    .how__media img { aspect-ratio: 4 / 4.4; }
    .how__note { left: 24px; right: auto; bottom: 24px; max-width: 320px; }

    .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bento__photo--a { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 420px; }
    .bento__photo--b { grid-column: span 2; aspect-ratio: auto; min-height: 240px; }
    .feat--accent { grid-column: span 2; }

    .topics { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }

    .about { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
    .about__quote { padding: 48px 40px; }

    .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding: 0; }

    .join { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: stretch; }
    .join__img { margin-top: auto; }
    .join__next { margin-bottom: 28px; }
    .seg--stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .seg--stack span { justify-content: center; text-align: center; padding: 8px 10px; }

    .faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
    .faq .sec__head { position: sticky; top: calc(var(--hdr) + 24px); }

    .final__card { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    .final__img { aspect-ratio: auto; min-height: 380px; }
    .final__copy { display: flex; flex-direction: column; justify-content: center; padding: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}
