/* Briefee — landing page sections.
   Desktop classes: lh*, ls*, bento*, subj*, steps, modes, tutor*, faq*, cta*
   Mobile classes:  mh*, msec*, mswipe, mdots, mtabs*, mtimeline, mmodes, mtutor*  */

/* ── Reveal on scroll (ui.js adds .is-in) ─────────────────────── */
.js [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity .8s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

section[id] { scroll-margin-top: 96px; }
.device-mobile section[id] { scroll-margin-top: 76px; }

/* Shared decorative bits */
.chev { display: block; color: var(--coral); }

.hl--scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble {
    position: absolute; left: -2%; bottom: -.06em; width: 104%; height: .26em;
    color: var(--coral); opacity: .32; overflow: visible;
}
.scribble path { stroke-dasharray: 240; stroke-dashoffset: 240; transition: stroke-dashoffset 1.1s var(--ease) .45s; }
.no-js .scribble path, .is-in .scribble path { stroke-dashoffset: 0; }

.dots-bg {
    background-image: radial-gradient(rgba(10, 17, 85, .11) 1.2px, transparent 1.2px);
    background-size: 22px 22px;
}

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

/* Floating mini-cards on the hero photo */
.fcard {
    position: absolute; z-index: 3;
    background: var(--white); border-radius: 18px; padding: 12px 14px;
    box-shadow: var(--shadow-lg);
    animation: floatY 6s ease-in-out infinite;
}
.fcard--tutor { display: flex; align-items: center; gap: 11px; padding-block: 10px; padding-inline: 10px 18px; }
.fcard--tutor img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.fcard--tutor strong { display: block; color: var(--navy); font-size: 14.5px; font-weight: 900; line-height: 1.2; }
.fcard--tutor span { font-size: 12.5px; font-weight: 700; }

.fcard--paper { width: 196px; animation-delay: -2s; }
.fcard__head { display: flex; align-items: center; gap: 7px; color: var(--navy); font-size: 13px; font-weight: 900; margin-bottom: 10px; }
.fcard__head .icon { color: var(--coral); }
.fcard__lines i { display: block; height: 7px; border-radius: 4px; background: var(--line); margin-bottom: 7px; }
.fcard__lines i.short { width: 58%; }
.fcard__done {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 4px;
    padding: 4px 9px; border-radius: 999px; background: var(--coral-soft); color: var(--coral);
    font-size: 11.5px; font-weight: 900;
}

.fcard--note { background: var(--navy); color: var(--white); animation-delay: -4s; }
.fcard__tag { display: block; color: #ff8a7e; font-size: 10.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 5px; }
.fcard--note code { background: rgba(255, 255, 255, .1); color: var(--white); font-size: 14px; padding: 4px 8px; }


/* ================================================================
   DESKTOP
   ================================================================ */

/* ── Hero ── */
.lh { position: relative; padding: calc(var(--nav-h) + 72px) 0 64px; overflow: hidden; }
.lh__bg {
    position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(rgba(10, 17, 85, .11) 1.2px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 15%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 15%, transparent 70%);
}
.lh__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.lh__copy .chip { margin-bottom: 26px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lh__title {
    font-size: clamp(54px, 6.6vw, 96px); font-weight: 900;
    letter-spacing: -.045em; line-height: .98; margin-bottom: 26px;
}
.lh__lead { max-width: 530px; font-size: 19px; line-height: 1.65; margin-bottom: 34px; }
.lh__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.lh__ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 30px 0 0; }
.lh__ticks li { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); font-size: 14.5px; font-weight: 800; }
.lh__ticks .icon {
    width: 24px; height: 24px; padding: 5px; border-radius: 50%;
    background: var(--coral-soft); color: var(--coral); stroke-width: 3;
}

.lh__visual { position: relative; width: 100%; max-width: 540px; margin-inline-start: auto; aspect-ratio: 1; }
.lh__photo {
    position: absolute; inset: 0; z-index: 1;
    border-radius: 44px; overflow: hidden;
    box-shadow: 0 34px 70px rgba(10, 17, 85, .26);
}
.lh__photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-ring {
    position: absolute; inset: 0; transform: translate(22px, 22px);
    border: 2px dashed rgba(10, 17, 85, .2); border-radius: 44px;
}
.lh__visual .fcard--tutor { inset-inline-start: -44px; bottom: 9%; }
.lh__visual .fcard--paper { inset-inline-start: -56px; top: 9%; }
.lh__visual .fcard--note  { inset-inline-end: -30px; top: 46%; }

/* ── Marquee ── */
.marquee {
    position: relative; z-index: 2; overflow: hidden;
    margin: 24px -2% 0; padding: 22px 0;
    background: var(--navy); transform: rotate(-1.6deg);
    box-shadow: 0 20px 50px rgba(10, 17, 85, .18);
}
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; will-change: transform; backface-visibility: hidden; }
.marquee__group { display: flex; flex-shrink: 0; align-items: center; }
.marquee__item { display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px; color: var(--white); font-size: 24px; font-weight: 900; letter-spacing: -.02em; white-space: nowrap; }
.marquee__item b { color: var(--coral); font-size: 18px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ── Section scaffolding ── */
.ls { padding: 120px 0; }
.ls--tint { background: var(--white); border-radius: 48px; margin: 0 16px; }
.ls__head { margin-bottom: 56px; }
.ls__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.ls__head--center { text-align: center; }
.ls__title { font-size: clamp(36px, 4.3vw, 58px); font-weight: 900; letter-spacing: -.04em; line-height: 1.02; margin: 0; }
.ls__aside { max-width: 380px; font-size: 17px; margin: 0; }
.faq .ls__aside { margin-top: 18px; }

/* ── Offer bento ── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento__card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--white); border: 1px solid var(--line); border-radius: 30px;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .8s var(--ease) var(--d, 0ms);
}
.bento__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.bento__art { position: relative; height: 230px; display: grid; place-items: center; overflow: hidden; }
.bento__card--notes .bento__art { background: var(--coral-soft); }
.bento__card--papers .bento__art { background: #E8EAF6; }
.bento__card--practical .bento__art { background: var(--navy); }
.bento__body { padding: 26px 28px 30px; }
.bento__icon {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
    border-radius: 14px; background: var(--navy); color: var(--white);
}
.bento__body h3 { font-size: 23px; font-weight: 900; margin-bottom: 8px; }
.bento__body p { font-size: 15.5px; margin: 0; }

/* Art: notes */
.art-note {
    position: relative; width: 74%; padding: 20px 20px 14px;
    background: var(--white); border-radius: 16px; box-shadow: var(--shadow);
    transform: rotate(-3deg); transition: transform .5s var(--ease);
}
.bento__card:hover .art-note { transform: rotate(-1deg) translateY(-4px); }
.art-note__tab { position: absolute; top: -6px; right: 22px; width: 18px; height: 30px; background: var(--coral); border-radius: 3px 3px 0 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.art-note b { display: block; color: var(--navy); font-size: 15px; font-weight: 900; margin-bottom: 10px; }
.art-note i { display: block; height: 7px; border-radius: 4px; background: var(--line); margin-bottom: 9px; }
.art-note i.w70 { width: 70%; } .art-note i.w50 { width: 50%; }
.art-note .hlite {
    height: auto; width: fit-content; padding: 1px 4px; border-radius: 3px;
    font-style: normal; font-size: 12px; font-weight: 800; color: var(--navy);
    background: linear-gradient(transparent 45%, rgba(242, 69, 53, .3) 45%);
}
.art-note .hlite--navy { font-family: ui-monospace, Menlo, monospace; font-size: 11px; background: rgba(10, 17, 85, .08); }

/* Art: papers */
.art-papers { position: relative; width: 62%; height: 170px; }
.art-paper { position: absolute; inset: 0; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease); }
.art-paper--back { transform: rotate(-9deg) translate(-14px, 6px); background: #F3F4FB; }
.art-paper--mid  { transform: rotate(5deg) translate(12px, 2px); background: #FAFAFD; }
.art-paper--front { padding: 18px; box-shadow: var(--shadow); }
.bento__card:hover .art-paper--back { transform: rotate(-13deg) translate(-24px, 8px); }
.bento__card:hover .art-paper--mid  { transform: rotate(9deg) translate(22px, 2px); }
.art-paper__series { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 10.5px; font-weight: 900; margin-bottom: 12px; }
.art-paper i { display: block; height: 7px; border-radius: 4px; background: var(--line); margin-bottom: 8px; }
.art-paper i.w80 { width: 80%; } .art-paper i.w60 { width: 60%; }
.art-paper__mark {
    position: absolute; right: 14px; bottom: 14px;
    display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px;
    background: var(--coral); color: var(--white); font-size: 12px; font-weight: 900;
    transform: rotate(-6deg);
}

/* Art: practical window */
.art-window {
    width: 82%; background: var(--white); border-radius: 14px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3); transform: perspective(700px) rotateX(8deg) rotateY(-8deg);
    transition: transform .5s var(--ease);
}
.bento__card:hover .art-window { transform: perspective(700px) rotateX(0) rotateY(0); }
.art-window__bar { display: flex; gap: 5px; padding: 9px 11px; background: #F2F2F5; }
.art-window__bar span { width: 8px; height: 8px; border-radius: 50%; background: #D5D5DC; }
.art-window__bar span:first-child { background: var(--coral); }
.art-window__formula { padding: 7px 11px; border-bottom: 1px solid var(--line); font: 600 11px ui-monospace, Menlo, monospace; color: var(--navy); white-space: nowrap; overflow: hidden; }
.art-window__formula em { color: var(--coral); font-style: italic; font-weight: 900; margin-right: 6px; }
.art-window__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.art-window__grid span { height: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.art-window__grid span.on { background: var(--coral-soft); box-shadow: inset 0 0 0 1.5px var(--coral); }
.art-window__code { padding: 8px 11px; background: #F7F7FA; font: 600 11px ui-monospace, Menlo, monospace; color: var(--navy); }
.art-window__code .k { color: var(--coral); font-weight: 800; }

/* ── Subjects ── */
.subjects { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.subj {
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    padding: 38px; border-radius: 34px;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .8s var(--ease) var(--d, 0ms);
}
.subj:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.subj--ict { background: var(--navy); color: rgba(255, 255, 255, .7); }
.subj--ict::before {
    content: ""; position: absolute; top: -120px; inset-inline-end: -120px; width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 69, 53, .45), transparent 65%);
}
.subj--cs { background: var(--bg); border: 1px solid var(--line); }
.subj > * { position: relative; }
.subj__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.subj__badge { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; }
.subj--ict .subj__badge { background: var(--coral); color: var(--white); }
.subj--cs .subj__badge { background: var(--navy); color: var(--white); }
.subj__level { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.subj--ict .subj__level { background: rgba(255, 255, 255, .1); color: var(--white); }
.subj--cs .subj__level { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.subj__name { font-size: 72px; font-weight: 900; letter-spacing: -.05em; line-height: .9; margin: 0 0 8px; }
.subj--ict .subj__name { color: var(--white); }
.subj__full { font-size: 15px; font-weight: 800; margin-bottom: 18px; }
.subj--ict .subj__full { color: #ff8a7e; }
.subj--cs .subj__full { color: var(--coral); }
.subj__summary { font-size: 16px; line-height: 1.65; margin-bottom: 22px; }
.subj__topics { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 30px; }
.subj__topics li { padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 800; }
.subj--ict .subj__topics li { background: rgba(255, 255, 255, .08); color: var(--white); border: 1px solid rgba(255, 255, 255, .1); }
.subj--cs .subj__topics li { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.subj__cta {
    display: inline-flex; align-items: center; gap: 8px; margin-top: auto; width: fit-content;
    font-weight: 900; font-size: 15.5px; text-decoration: none; color: var(--coral);
}
.subj--ict .subj__cta { color: var(--white); }
.subj__cta .icon { transition: transform .25s var(--ease); }
.subj__cta:hover .icon { transform: translateX(4px); }

.more-strip {
    display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 18px 22px;
    border: 1.5px dashed rgba(10, 17, 85, .2); border-radius: 22px;
    color: var(--text); font-size: 16px; text-decoration: none;
    transition: border-color .25s, background .25s;
}
.more-strip strong { color: var(--navy); font-weight: 900; }
.more-strip__plus { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--coral-soft); color: var(--coral); flex-shrink: 0; }
.more-strip__arrow { margin-inline-start: auto; color: var(--navy); transition: transform .25s var(--ease); }
.more-strip:hover { border-color: var(--coral); border-style: solid; background: #FFF8F7; }
.more-strip:hover .more-strip__arrow { transform: translateX(4px); }

/* ── How it works ── */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps::before {
    content: ""; position: absolute; top: 54px; left: 12%; right: 12%; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(10, 17, 85, .18) 0 8px, transparent 8px 16px);
}
.step {
    position: relative; padding: 26px 26px 28px; border-radius: 26px;
    background: var(--white); border: 1px solid var(--line);
}
.step__num {
    position: relative; z-index: 1; display: grid; place-items: center;
    width: 56px; height: 56px; margin-bottom: 20px; border-radius: 18px;
    background: var(--navy); color: var(--white); font-size: 18px; font-weight: 900;
    box-shadow: 0 0 0 6px var(--white);
}
.step:first-child .step__num { background: var(--coral); }
.step h3 { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.step p { font-size: 15px; margin: 0; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.mode { display: flex; align-items: center; gap: 18px; padding: 24px 28px; border-radius: 26px; background: var(--white); border: 1px solid var(--line); }
.mode__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--coral-soft); color: var(--coral); flex-shrink: 0; }
.mode h3 { font-size: 19px; font-weight: 900; margin-bottom: 2px; }
.mode p { font-size: 15px; margin: 0; }

/* ── Tutor ── */
.tutor { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.tutor__media { position: relative; max-width: 440px; }
.tutor__media::before {
    content: ""; position: absolute; inset: 0; transform: translate(-22px, 22px);
    border-radius: 40px; border: 2px dashed rgba(10, 17, 85, .2);
}
.tutor__frame { position: relative; aspect-ratio: 1; border-radius: 40px; overflow: hidden; box-shadow: var(--shadow-lg); }
.tutor__frame img { width: 100%; height: 100%; object-fit: cover; }
.tutor__sticker {
    position: absolute; top: 34px; inset-inline-end: -26px; display: grid; place-items: center;
    width: 92px; height: 92px; border-radius: 28px; background: var(--white); box-shadow: var(--shadow-lg);
    animation: floatY 6s ease-in-out infinite;
}
.tutor__sticker .chev { width: 38px; }
.tutor__copy .ls__title { margin-bottom: 20px; }
.tutor__lead { font-size: 18px; line-height: 1.7; margin-bottom: 26px; }
.tutor__points { list-style: none; padding: 0; margin: 0 0 34px; }
.tutor__points li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--navy); font-size: 16.5px; font-weight: 800; }
.tutor__points li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: var(--white); flex-shrink: 0; }
.tutor__points .icon { stroke-width: 3; }

/* ── FAQ ── */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq .ls__head { position: sticky; top: 120px; margin: 0; }
.faq__item {
    margin-bottom: 12px; border-radius: 22px; background: var(--white); border: 1px solid var(--line);
    transition: box-shadow .3s, border-color .3s;
}
.faq__item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 22px 24px; cursor: pointer; list-style: none;
    color: var(--navy); font-size: 18px; font-weight: 800;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); color: var(--navy); flex-shrink: 0; transition: transform .35s var(--ease), background .25s, color .25s; }
.faq__item[open] .faq__toggle { transform: rotate(45deg); background: var(--coral); color: var(--white); }
.faq__item p { padding: 0 24px 22px; margin: 0; font-size: 16px; line-height: 1.7; }
.faq__item[open] p { animation: faqIn .4s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── Final CTA ── */
.cta-wrap { padding: 20px 0 60px; }
.cta {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1.3fr auto; gap: 48px; align-items: center;
    padding: 72px 64px; border-radius: 42px; background: var(--navy);
}
.cta::before {
    content: ""; position: absolute; inset-inline-end: -140px; bottom: -200px; width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 69, 53, .5), transparent 62%);
}
.cta::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1.2px, transparent 1.2px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); mask-image: linear-gradient(90deg, #000, transparent 60%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: var(--white); font-size: clamp(40px, 5vw, 66px); font-weight: 900; letter-spacing: -.045em; line-height: 1; margin-bottom: 16px; }
.cta p { color: rgba(255, 255, 255, .66); font-size: 18px; margin: 0; max-width: 460px; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; }
.cta__chev { position: absolute; z-index: 1; top: 36px; inset-inline-end: 44px; width: 44px; opacity: .9; }

/* Narrower desktop windows / tablets */
@media (max-width: 1080px) {
    .lh__grid { grid-template-columns: 1fr; gap: 40px; }
    .lh__visual { max-width: 480px; margin: 0 auto; }
    .bento { grid-template-columns: 1fr 1fr; }
    .bento__card--practical { grid-column: span 2; }
    .steps { grid-template-columns: 1fr 1fr; }
    .steps::before { display: none; }
    .tutor { gap: 48px; }
    .cta { grid-template-columns: 1fr; padding: 56px 44px; }
    .cta__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
    .subjects, .modes, .faq, .tutor { grid-template-columns: 1fr; }
    .ls__head--row { flex-direction: column; align-items: flex-start; gap: 14px; }
    .faq .ls__head { position: static; }
    .tutor__media { margin: 0 auto; }
}

/* ================================================================
   MOBILE
   ================================================================ */

/* ── Hero ── */
.mh { position: relative; padding: calc(88px + var(--safe-t)) 20px 12px; overflow: hidden; }
.mh__bg {
    position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(rgba(10, 17, 85, .1) 1.2px, transparent 1.2px); background-size: 20px 20px;
    -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 62%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 50% at 50% 62%, #000 20%, transparent 75%);
}
.mh__title { font-size: clamp(38px, 11.2vw, 52px); font-weight: 900; letter-spacing: -.045em; line-height: 1; margin: 18px 0 14px; }
.mh__lead { font-size: 16.5px; line-height: 1.6; margin-bottom: 4px; }

.mh__visual { position: relative; aspect-ratio: 1; margin-block: 26px 30px; margin-inline: 0 10px; }
.mh__photo {
    position: absolute; inset: 0; z-index: 1;
    border-radius: 32px; overflow: hidden; box-shadow: 0 22px 44px rgba(10, 17, 85, .24);
}
.mh__photo img { width: 100%; height: 100%; object-fit: cover; }
.mh__visual .photo-ring { transform: translate(12px, 12px); border-radius: 32px; }
.mh__tutor { inset-inline-start: -8px; bottom: -18px; }

.mh__tutor img { width: 40px; height: 40px; }
.mh__tutor strong { font-size: 13.5px; }
.mh__tutor span { font-size: 12px; }

.mh__ctas { display: grid; gap: 10px; }

.marquee--m { margin-top: 30px; padding: 15px 0; }
.marquee--m .marquee__track { animation-duration: 45s; }
.marquee--m .marquee__item { gap: 18px; padding-inline-end: 18px; font-size: 18px; }
.marquee--m .marquee__item b { font-size: 14px; }

/* ── Section scaffolding ── */
.msec { padding: 60px 20px; }
.msec--tint { background: var(--white); border-radius: 32px; margin: 0 10px; padding: 52px 16px; }
.msec--tint .msec__head { padding: 0 4px; }
.msec__head { margin-bottom: 26px; }
.msec__title { font-size: clamp(29px, 8.4vw, 36px); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; margin: 0; }

/* ── Swipe carousel ── */
.mswipe {
    display: flex; gap: 14px; margin: 0 -20px; padding: 4px 20px 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.mswipe::-webkit-scrollbar { display: none; }
.mswipe__card { flex: 0 0 84%; scroll-snap-align: center; }
.mswipe .bento__art { height: 200px; }
.mswipe .bento__body { padding: 22px 22px 26px; }
.mswipe .bento__body h3 { font-size: 21px; }
.mswipe .bento__body p { font-size: 15px; }
.mswipe .bento__card:hover { transform: none; box-shadow: none; }

.mdots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.mdots span { width: 7px; height: 7px; border-radius: 99px; background: rgba(10, 17, 85, .18); transition: width .3s var(--ease), background .3s; }
.mdots span.is-on { width: 24px; background: var(--coral); }

/* ── Segmented tabs ── */
.mtabs__bar { position: relative; display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); padding: 5px; margin-bottom: 14px; border-radius: 999px; background: var(--bg); }
.mtabs__btn {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border: 0; background: none; border-radius: 999px;
    color: var(--navy); font: 900 15px var(--font); cursor: pointer; transition: color .3s;
    -webkit-tap-highlight-color: transparent;
}
.mtabs__btn.is-on { color: var(--white); }
.mtabs__pill {
    position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px;
    background: var(--navy); box-shadow: 0 6px 16px rgba(10, 17, 85, .25);
    transition: transform .4s var(--ease), width .4s var(--ease);
}
.mtabs__panel[hidden] { display: none; }
.mtabs__panel { padding: 26px 22px; border-radius: 28px; animation: pageIn .45s var(--ease); }
.mtabs__panel:hover { transform: none; box-shadow: none; }
.mtabs__panel .subj__name { font-size: 54px; }
.mtabs__panel .subj__top { margin-bottom: 20px; }
.mtabs__panel .subj__topics li { font-size: 13px; padding: 6px 12px; }
.msec .more-strip { font-size: 15px; padding: 16px 18px; }

/* ── Timeline ── */
.mtimeline { position: relative; list-style: none; padding: 0; margin: 0 0 26px; }
.mtimeline::before {
    content: ""; position: absolute; inset-inline-start: 21px; top: 12px; bottom: 12px; width: 2px;
    background: repeating-linear-gradient(180deg, rgba(10, 17, 85, .2) 0 7px, transparent 7px 14px);
}
.mtimeline li { position: relative; display: flex; gap: 16px; margin-bottom: 22px; }
.mtimeline li:last-child { margin-bottom: 0; }
.mtimeline__num {
    position: relative; z-index: 1; display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
    background: var(--navy); color: var(--white); font-weight: 900; box-shadow: 0 0 0 5px var(--bg);
}
.mtimeline li:first-child .mtimeline__num { background: var(--coral); }
.mtimeline h3 { font-size: 18px; font-weight: 900; margin: 8px 0 4px; }
.mtimeline p { font-size: 15px; margin: 0; }

.mmodes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mmodes .mode { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 18px; }
.mmodes .mode__icon { width: 48px; height: 48px; border-radius: 15px; }
.mmodes .mode h3 { font-size: 17px; }
.mmodes .mode p { font-size: 14px; line-height: 1.5; }

/* ── Tutor card ── */
.mtutor { overflow: hidden; border-radius: 28px; background: var(--bg); }
.mtutor__photo { position: relative; aspect-ratio: 1; }
.mtutor__photo img { width: 100%; height: 100%; object-fit: cover; }
.mtutor__label {
    position: absolute; inset-inline-start: 14px; bottom: 14px; padding: 7px 13px; border-radius: 999px;
    background: var(--coral); color: var(--white); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.mtutor__body { padding: 24px 20px 22px; }
.mtutor__body h2 { font-size: 28px; font-weight: 900; letter-spacing: -.03em; margin-bottom: 10px; }
.mtutor__body p { font-size: 15.5px; line-height: 1.65; margin-bottom: 20px; }
.mtutor .tutor__points { margin-bottom: 22px; }
.mtutor .tutor__points li { font-size: 15px; align-items: flex-start; }
.mtutor .tutor__points li span { width: 24px; height: 24px; }
.mtutor__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mtutor__btns .btn { padding: 14px 10px; font-size: 14.5px; }

/* ── FAQ (mobile sizes) ── */
.device-mobile .faq__item summary { padding: 18px 18px; font-size: 16px; }
.device-mobile .faq__item p { padding: 0 18px 18px; font-size: 15px; }
.device-mobile .faq__toggle { width: 32px; height: 32px; }

/* ── CTA ── */
.msec--cta { padding-top: 10px; padding-bottom: 28px; }
.cta--m { display: block; padding: 40px 22px 24px; border-radius: 30px; text-align: center; }
.cta--m::before { inset-inline-end: -160px; bottom: -220px; }
.cta--m h2 { font-size: clamp(34px, 10vw, 42px); }
.cta--m p { margin: 0 auto 24px; font-size: 16px; }
.cta--m .btn { margin-top: 10px; }
.cta--m .cta__chev { position: relative; top: auto; inset-inline-end: auto; width: 40px; margin: 0 auto 18px; }

/* ── Landing: Briefee Store ── */
.lstore { background: var(--navy); border-radius: 48px; margin: 16px; color: rgba(255, 255, 255, .7); position: relative; overflow: hidden; }
.lstore::before { content: ""; position: absolute; inset-inline-end: -180px; top: -180px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 69, 53, .4), transparent 62%); pointer-events: none; }
.lstore .container { position: relative; }
.lstore .ls__title { color: var(--white); }
.lstore__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.lstore__lead { font-size: 18px; margin: 18px 0 26px; max-width: 480px; }
.lstore__points { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 16px; }
.lstore__points li { display: flex; gap: 14px; }
.lstore__points strong { display: block; color: var(--white); font-size: 16.5px; font-weight: 900; margin-bottom: 2px; }
.lstore__points p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.lstore__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #ff8a7e; flex-shrink: 0; }
/* Fanned deck: featured card in front, two behind. */
.lstore__deck { position: relative; width: min(100%, 340px); margin: 30px auto 10px; }
.lstore__slot { position: absolute; inset: 0 0 auto 0; transition: transform .6s var(--ease); }
.lstore__slot--0 { position: relative; z-index: 3; }
.lstore__slot--1 { z-index: 2; transform: translate(-46%, 22px) rotate(-9deg) scale(.88); }
.lstore__slot--2 { z-index: 1; transform: translate(46%, 22px) rotate(9deg) scale(.88); }
.lstore__slot--1 .pcard, .lstore__slot--2 .pcard { filter: saturate(.85) brightness(.96); }
.lstore__deck:hover .lstore__slot--1 { transform: translate(-56%, 18px) rotate(-12deg) scale(.88); }
.lstore__deck:hover .lstore__slot--2 { transform: translate(56%, 18px) rotate(12deg) scale(.88); }
.lstore .pcard { color: var(--text); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); border-color: transparent; animation: none; }
.lstore .pcard:hover { transform: none; }
@media (max-width: 1180px) {
    .lstore__grid { grid-template-columns: 1fr; }
    .lstore__deck { margin-top: 10px; }
}
.device-mobile .lstore { margin: 10px; border-radius: 32px; padding: 52px 0; }
.device-mobile .lstore .container { padding: 0 20px; }
.device-mobile .lstore .ls__title { font-size: clamp(29px, 8.4vw, 36px); }
.device-mobile .lstore__lead { font-size: 16px; }
.device-mobile .lstore__deck { width: 100%; margin: 24px 0 0; }
.device-mobile .lstore__slot--1, .device-mobile .lstore__slot--2 { display: none; }
.device-mobile .lstore .btn { width: 100%; }

/* ── Right-to-left (Arabic) ── */
/* Marquee runs the other way and still loops: the track starts at the right edge, so slide +50%. */
[dir="rtl"] .marquee__track { animation-name: marqueeRtl; }
@keyframes marqueeRtl { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(50%, 0, 0); } }
[dir="rtl"] .marquee { transform: rotate(1.6deg); }
/* Hero dots sit behind the photo, which is now on the left. */
[dir="rtl"] .lh__bg { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 28% 45%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 28% 45%, #000 15%, transparent 70%); }
[dir="rtl"] .photo-ring { transform: translate(-22px, 22px); }
[dir="rtl"] .mh__visual .photo-ring { transform: translate(-12px, 12px); }
[dir="rtl"] .tutor__media::before { transform: translate(22px, 22px); }
[dir="rtl"] .subj__cta:hover .icon { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .more-strip:hover .more-strip__arrow { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .cta::after { -webkit-mask-image: linear-gradient(270deg, #000, transparent 60%); mask-image: linear-gradient(270deg, #000, transparent 60%); }
/* The spreadsheet/code illustration is left-to-right content. */
[dir="rtl"] .art-window { direction: ltr; transform: perspective(700px) rotateX(8deg) rotateY(8deg); }
[dir="rtl"] .bento__card:hover .art-window { transform: perspective(700px) rotateX(0) rotateY(0); }
