/* =====================================================================
   TONGUE — public website
   ---------------------------------------------------------------------
   The one stylesheet of the public (indexable) pages, next to fonts.css.
   It implements docs/DESIGN.md: navy foundation, pink as the single
   action, layered surfaces with fine borders and navy-tinted shadows.

   Mobile-first, logical properties throughout (inline-start / end), so
   English (LTR) and Arabic (RTL) share every rule. The product
   illustrations (.mk …) are LTR islands: the platform's interface is
   English, and they picture it as it is.

   Motion: entrances are gated behind html.js (added inline, removed if
   the script fails) and switched off by prefers-reduced-motion. Nothing
   animates a property that moves the layout.

   Contrast: text on pink is --navy-950 (5.5:1); pink text on navy uses
   --pink-300 (≥ 5.6:1); captions use --text-2 (6.1:1), never --text-3.
   ===================================================================== */

:root {
    --navy-950: #041B2D; --navy: #082A44; --navy-800: #0C3556; --navy-700: #114468;
    --navy-600: #1A557F; --navy-200: #C9D6E2; --navy-100: #E3EBF2; --navy-50: #F1F5F9;
    --pink: #F05A97; --pink-600: #DB3F80; --pink-300: #F8A5C6; --pink-100: #FDE4EE; --pink-50: #FEF3F8;
    --white: #FFFFFF; --bg: #F7F8FA;
    --ink: #0C2236; --text: #1B3044; --text-2: #51637A; --text-3: #8191A3;
    --border: #E5EAF0; --border-strong: #CFD8E2;
    --success: #17855A; --warning: #B5760F; --danger: #C8384C; --info: #2A6CB5;
    --success-bg: #E5F5EE; --warning-bg: #FDF3DC; --danger-bg: #FCECEE; --info-bg: #E6F0FB;
    --star: #E09B00;

    --font: "Tongue Sans", "Segoe UI", system-ui, -apple-system, "Noto Sans Arabic", Tahoma, sans-serif;

    --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(8,42,68,.06);
    --shadow-sm: 0 1px 2px rgba(8,42,68,.05), 0 4px 12px rgba(8,42,68,.05);
    --shadow: 0 2px 4px rgba(8,42,68,.04), 0 12px 28px rgba(8,42,68,.08);
    --shadow-lg: 0 8px 16px rgba(8,42,68,.06), 0 32px 64px rgba(8,42,68,.14);
    --ring: 0 0 0 3px rgba(240,90,151,.35);

    --ease: cubic-bezier(.2, .7, .2, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
    --t-fast: 120ms; --t: 200ms; --t-slow: 360ms; --t-reveal: 700ms;

    --gutter: 20px;
    --header-h: 68px;
    --section: clamp(72px, 9vw, 128px);
    --navy-grad: linear-gradient(150deg, #082A44, #0C3556 60%, #114468);
}
@media (min-width: 768px) { :root { --gutter: 28px; --header-h: 76px; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 92px; scroll-behavior: smooth; }
body {
    margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text);
    background: var(--bg); text-align: start; overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
.display { font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; font-weight: 750; letter-spacing: -.025em; }
h3, h4 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
a { color: var(--navy-600); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pink-600); }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
table { border-collapse: collapse; width: 100%; }
strong, b { font-weight: 700; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--pink-600); outline-offset: 2px; box-shadow: var(--ring); border-radius: 6px; }
main:focus { outline: none; box-shadow: none; }
::selection { background: var(--pink-100); color: var(--ink); }

/* Arabic (DESIGN.md): no negative tracking, no uppercase, taller lines, one weight lighter. */
html[lang="ar"] body { line-height: 1.72; }
html[lang="ar"] :is(h1, h2, h3, h4, .display, .eyebrow) { letter-spacing: 0; }
html[lang="ar"] .display { line-height: 1.2; font-weight: 700; }
html[lang="ar"] h1 { line-height: 1.24; font-weight: 700; }
html[lang="ar"] h2 { line-height: 1.3; font-weight: 650; }
html[lang="ar"] :is(h3, h4) { line-height: 1.45; font-weight: 600; }

.icon { flex: none; vertical-align: -.18em; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.small { font-size: .875rem; line-height: 1.5; color: var(--text-2); }
.plain-list { list-style: none; }
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--text-2); max-width: 62ch; }
html[lang="ar"] .lead { line-height: 1.8; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-block-end: 16px; font-size: .75rem; line-height: 1; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--pink-600); }
html[lang="ar"] .eyebrow { text-transform: none; font-size: .86rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

.skip-link { position: absolute; inset-block-start: -100px; inset-inline-start: 12px; z-index: 100; padding: 12px 18px; border-radius: var(--r-sm); background: var(--navy); color: var(--white); font-weight: 650; }
.skip-link:focus { inset-block-start: 12px; color: var(--white); }

/* -------------------------------------------------------------- layout */
.wrap { width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 820px); }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.grid { display: grid; gap: 20px; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.section { padding-block: var(--section); }
.section-compact { padding-block: clamp(56px, 7vw, 96px); }
.section-first { padding-block-start: clamp(32px, 5vw, 56px); }
.section-tint { background: var(--white); border-block: 1px solid var(--border); }
.section-navy { position: relative; overflow: hidden; background: var(--navy-grad); color: var(--navy-200); }
.section-navy::before { content: ""; position: absolute; inset-block-start: -30%; inset-inline-end: -10%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(240,90,151,.14), transparent); pointer-events: none; }
.section-navy > .wrap { position: relative; }
.section-navy :is(h2, h3) { color: var(--white); }
.section-navy :is(.eyebrow, .eyebrow a) { color: var(--pink-300); }
.section-navy .lead { color: var(--navy-200); }
.section-navy :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .cta-card :focus-visible { outline-color: var(--pink-300); box-shadow: 0 0 0 3px rgba(240,90,151,.6); }

.section-head { margin-block-end: clamp(32px, 5vw, 56px); max-width: 46rem; }
.section-head h2 + .lead { margin-block-start: 16px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head-split { max-width: none; display: grid; gap: 16px 48px; align-items: end; }
.section-head-split .lead + .text-link { margin-block-start: 4px; }
@media (min-width: 900px) { .section-head-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.section-more { margin-block-start: 32px; }
.section-more.center { text-align: center; }
.block-title { margin-block-end: 20px; font-size: 1.4rem; }

/* ------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: 12px;
    font: inherit; font-size: .94rem; font-weight: 650; line-height: 1.15; text-align: center; text-decoration: none;
    cursor: pointer; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t), border-color var(--t), color var(--t);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 54px; padding: 12px 26px; font-size: 1rem; border-radius: var(--r); }
.btn-block { display: flex; width: 100%; }
.btn-accent { background: var(--pink); color: var(--navy-950); box-shadow: 0 6px 18px rgba(240,90,151,.3); }
.btn-accent:hover { background: #F4739F; color: var(--navy-950); box-shadow: 0 12px 28px rgba(240,90,151,.36); }
.btn-primary, .btn-nav { background: var(--navy); color: var(--white); }
.btn-primary:hover, .btn-nav:hover { background: var(--navy-700); color: var(--white); box-shadow: var(--shadow); }
.btn-outline { background: var(--white); border-color: var(--border-strong); color: var(--navy); box-shadow: var(--shadow-xs); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-glass { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); color: var(--white); }
.btn-glass:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); color: var(--white); }
.btn .icon, .text-link .icon, .program-more .icon { transition: transform var(--t) var(--ease); }
:is(.btn, .text-link, .stretch):hover .icon.flip-rtl, .program:hover .program-more .icon, .level-row:hover .program-more .icon { transform: translateX(3px); }
[dir="rtl"] :is(.btn, .text-link):hover .icon.flip-rtl, [dir="rtl"] :is(.program, .level-row):hover .program-more .icon { transform: scaleX(-1) translateX(3px); }

.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 650; font-size: .96rem; color: var(--navy-600); text-decoration: none; }
.text-link:hover { color: var(--pink-600); }
.section-navy .text-link { color: var(--white); }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* -------------------------------------------------------------- header */
.site-header {
    position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 60; height: var(--header-h);
    display: flex; align-items: center; color: var(--ink);
    background: rgba(255,255,255,.84); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
    border-block-end: 1px solid var(--border);
    transition: height var(--t-slow) var(--ease), background-color var(--t-slow), border-color var(--t-slow), box-shadow var(--t-slow), color var(--t);
}
.site-header.is-scrolled { height: 60px; box-shadow: var(--shadow-sm); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-logo { display: block; flex: none; width: auto; height: 30px; max-width: none; }
.site-footer .brand-logo { height: 34px; }
.app-brand .brand-logo { height: 18px; }
.brand-logos .brand-logo + .brand-logo { display: none; }
.brand-light, .brand-light:hover { color: var(--white); }

.nav-desktop, .header-actions .lang-switch, .nav-signin, .header-actions .btn-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.nav-links { list-style: none; display: flex; gap: 2px; }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: inherit; opacity: .78; font-size: .93rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: opacity var(--t); }
.nav-links a::after { content: ""; position: absolute; inset-inline: 12px; inset-block-end: 6px; height: 2px; border-radius: 2px; background: var(--pink); transform: scaleX(0); transform-origin: center; transition: transform var(--t-slow) var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: inherit; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.lang-switch { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); color: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; transition: background-color var(--t); }
.lang-switch:hover { color: inherit; background: rgba(8,42,68,.06); }
.nav-signin { align-items: center; min-height: 44px; padding: 0 12px; color: inherit; font-size: .93rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.nav-signin:hover { color: var(--pink-600); }
.btn-nav { white-space: nowrap; }
.nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-inline-end: -8px; border-radius: 12px; color: inherit; }
.nav-toggle:hover { color: inherit; background: rgba(8,42,68,.06); }

/* Over the home hero: transparent until the page scrolls. Only with JavaScript — without it the bar stays solid. */
.js .site-header.is-over:not(.is-scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; color: var(--white); }
.js .is-over:not(.is-scrolled) .brand-logos .brand-logo { display: none; }
.js .is-over:not(.is-scrolled) .brand-logos .brand-logo + .brand-logo { display: block; }
.js .is-over:not(.is-scrolled) .btn-nav { background: var(--white); color: var(--navy); }
.js .is-over:not(.is-scrolled) :is(.lang-switch, .nav-toggle):hover { background: rgba(255,255,255,.12); }
.js .is-over:not(.is-scrolled) .nav-signin:hover { color: var(--pink-300); }

@media (min-width: 720px) { .header-actions .btn-nav { display: inline-flex; } .header-actions { gap: 10px; } }
@media (min-width: 1180px) {
    .nav-desktop { display: block; }
    .header-actions .lang-switch, .nav-signin { display: inline-flex; }
    .nav-toggle, .drawer { display: none !important; }
}

/* -------------------------------------------------------------- drawer */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s linear var(--t-slow); }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(4,27,45,.55); opacity: 0; transition: opacity var(--t-slow); cursor: default; }
.drawer-panel {
    position: absolute; inset-block: 0; inset-inline-end: 0; width: min(88vw, 380px);
    display: flex; flex-direction: column; background: var(--white); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform var(--t-slow) var(--ease-out);
    padding-block-end: env(safe-area-inset-bottom);
}
[dir="rtl"] .drawer-panel { transform: translateX(-100%); }
.drawer:target, .drawer.is-open { visibility: visible; transition-delay: 0s; }
.drawer:target .drawer-backdrop, .drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer:target .drawer-panel, .drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-block-end: 1px solid var(--border); color: var(--ink); }
.drawer-close { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-inline-end: -10px; border-radius: 12px; color: var(--ink); }
.drawer-close:hover { background: var(--navy-50); color: var(--ink); }
.drawer-nav { flex: 1; overflow-y: auto; padding: 12px; }
.drawer-nav ul { list-style: none; }
.drawer-nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 12px; border-radius: 12px; color: var(--ink); font-size: 1.08rem; font-weight: 650; text-decoration: none; }
.drawer-nav a .icon { color: var(--text-3); }
.drawer-nav a:hover { background: var(--navy-50); color: var(--ink); }
.drawer-nav a[aria-current="page"] { background: var(--pink-50); box-shadow: inset 3px 0 0 var(--pink); }
[dir="rtl"] .drawer-nav a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--pink); }
.drawer-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 20px; border-block-start: 1px solid var(--border); color: var(--ink); }
.drawer-meta .nav-signin { display: inline-flex; }
.drawer-meta .lang-switch { margin-inline-start: -12px; }
.drawer-foot { padding: 12px 20px 20px; }
.drawer-open { overflow: hidden; }

/* --------------------------------------------- inner pages: top of page */
.is-inner main { padding-block-start: var(--header-h); }
.flash { padding-block-start: 16px; }
.crumbs-bar { background: var(--white); }
.crumbs { padding-block-start: 10px; font-size: .875rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); }
.crumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--border-strong); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--pink-600); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.page-head { position: relative; overflow: hidden; padding-block: clamp(20px, 3vw, 36px) clamp(36px, 5vw, 64px); background: radial-gradient(70% 140% at 100% 0, rgba(240,90,151,.07), transparent 60%), radial-gradient(60% 120% at 0 100%, rgba(26,85,127,.07), transparent 60%), linear-gradient(var(--white), var(--bg)); border-block-end: 1px solid var(--border); }
[dir="rtl"] .page-head { background: radial-gradient(70% 140% at 0 0, rgba(240,90,151,.07), transparent 60%), radial-gradient(60% 120% at 100% 100%, rgba(26,85,127,.07), transparent 60%), linear-gradient(var(--white), var(--bg)); }
.page-head > .wrap { position: relative; }
.page-head h1 { max-width: 20em; }
.page-head .lead { margin-block-start: 16px; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }
.page-head-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 20px; }
.page-head-split { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.page-head-code { display: none; flex: none; font-size: clamp(6rem, 13vw, 10.5rem); line-height: .9; font-weight: 800; letter-spacing: -.05em; color: rgba(8,42,68,.07); user-select: none; }
.page-head-404 .page-head-code { position: absolute; inset-inline-end: 0; inset-block-start: 50%; translate: 0 -50%; }
@media (min-width: 860px) { .page-head-code { display: block; } }
.head-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-block-start: 26px; }
.head-facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
html[lang="ar"] .head-facts dt { letter-spacing: 0; font-size: .84rem; }
.head-facts dd { margin-block-start: 2px; font-size: 1.1rem; font-weight: 700; color: var(--ink); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: var(--navy-grad); color: var(--white); padding-block: calc(var(--header-h) + clamp(32px, 6vw, 84px)) clamp(64px, 8vw, 116px); }
.hero-bg, .hero-bg i { position: absolute; pointer-events: none; }
.hero-bg { inset: 0; }
.glow { border-radius: 50%; }
.glow-a { inset-block-start: -18%; inset-inline-end: -12%; width: min(760px, 80vw); aspect-ratio: 1; background: radial-gradient(closest-side, rgba(240,90,151,.14), transparent); animation: float-a 22s ease-in-out infinite alternate; }
.glow-b { inset-block-end: -40%; inset-inline-start: -16%; width: min(900px, 110vw); aspect-ratio: 1; background: radial-gradient(closest-side, rgba(53,130,186,.34), transparent); animation: float-a 28s ease-in-out infinite alternate-reverse; }
.hero-lines { inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent); mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent); }
.hero-inner { position: relative; display: grid; gap: clamp(44px, 6vw, 72px); align-items: center; }
.hero-copy { max-width: 40rem; }
.hero .display { color: var(--white); }
.mark { background: linear-gradient(to top, rgba(240,90,151,.62) 0 .2em, transparent .2em) no-repeat 0 92% / 100% 100%; border-radius: 2px; }
.eyebrow-badge { padding: 9px 14px; margin-block-end: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-pill); background: rgba(255,255,255,.07); color: var(--navy-100); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(240,90,151,.22); }
.hero-text { margin-block-start: 22px; max-width: 34rem; font-size: 1.125rem; line-height: 1.65; color: var(--navy-200); }
html[lang="ar"] .hero-text { line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-block-start: 30px; font-size: .875rem; color: rgba(255,255,255,.8); }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts .icon { color: var(--pink-300); }

.hero-visual { position: relative; min-width: 0; }
.hero-visual figcaption { margin-block-start: 22px; font-size: .78rem; color: rgba(255,255,255,.62); text-align: center; }
.hero-stack { position: relative; padding: 40px 0 42px; --px: 0; --py: 0; --sy: 0; }
.hero-stack > * { transform: translate3d(calc(var(--px) * var(--depth, 0) * 1px), calc((var(--py) * var(--depth, 0) - var(--sy) * var(--depth, 0) * 2) * 1px), 0); transition: transform 500ms var(--ease-out); will-change: transform; }
.float { position: absolute; z-index: 2; }
.glass { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.8); border-radius: 16px; background: rgba(255,255,255,.84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px rgba(2,16,28,.3); color: var(--ink); font-size: .8rem; line-height: 1.3; white-space: nowrap; }
.glass small { display: block; font-size: .7rem; font-weight: 600; color: var(--text-2); }
.glass b { display: block; font-weight: 700; }
.glass-chip { padding: 8px 14px 8px 8px; border-radius: var(--r-pill); }
.glass-chip i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--success); color: var(--white); }
.float-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--white); }
.float-next { inset-block-start: -22px; left: 2%; }
.float-task { inset-block-start: 30%; right: -1%; }
.float-level { inset-block-end: 22%; right: 2%; }
.float-chat { inset-block-end: 0; left: 5%; }
.mini-ring, .road-ring { position: relative; display: grid; place-items: center; flex: none; }
.mini-ring b, .road-ring b { position: absolute; font-size: .68rem; font-weight: 800; color: var(--ink); }
.mini-ring svg, .road-ring svg { display: block; transform: rotate(-90deg); }
.mini-ring circle, .road-ring circle { fill: none; stroke: var(--navy-100); stroke-width: 6; }
.ring-fill { stroke: var(--pink) !important; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset 1.3s var(--ease-out) .25s; }
.drift { animation: drift 7s ease-in-out infinite alternate; }
.drift-b { animation-duration: 8.5s; animation-direction: alternate-reverse; }
.drift-c { animation-duration: 6.2s; animation-delay: -2s; }
@keyframes drift { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
@keyframes float-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-4%, 5%, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes pulse-dot { 50% { opacity: .35; } }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
.hero-in { animation: rise var(--t-reveal) var(--ease-out) backwards; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }

@media (max-width: 559px) {
    .float-level, .float-chat { display: none; }
    .float-next { left: -2px; }
    .float-task { inset-block-start: auto; inset-block-end: 2px; right: -2px; }
    .hero-actions .btn { flex: 1 1 100%; }
}
@media (min-width: 1040px) {
    .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); }
    .hero-visual figcaption { text-align: end; }
}
@media (min-width: 1240px) {
    .float-next { left: -6%; } .float-task { right: -7%; } .float-level { right: -5%; } .float-chat { left: -3%; }
}

/* ---------------------------------------------------- scroll reveals */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in { opacity: 1; animation: rise var(--t-reveal) var(--ease-out) backwards; animation-delay: calc(var(--d, 0) * 70ms); }
.js :is(.journey, .ladder)[data-reveal] { opacity: 1; animation: none; }

/* --------------------------------------------- editorial two-column */
.editorial { display: grid; gap: 40px 72px; align-items: start; }
.editorial-head .lead { margin-block-start: 18px; }
.editorial-head .text-link { margin-block-start: 14px; }
.editorial-body { display: grid; gap: 18px; max-width: 62ch; }
.prose-lead { font-size: 1.25rem; line-height: 1.6; color: var(--ink); font-weight: 500; }
html[lang="ar"] .prose-lead { line-height: 1.8; }
@media (min-width: 960px) {
    .editorial { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .editorial-head { position: sticky; inset-block-start: 108px; }
}
.editorial > :is(.grid-cards, .review-grid) > :only-child { grid-column: 1 / -1; }
.editorial-head > div + div { margin-block-start: 18px; }
.values { display: grid; }
.values li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 22px; align-items: start; padding-block: 28px; border-block-start: 1px solid var(--border); }
.values li:last-child { border-block-end: 1px solid var(--border); }
.values-n { font-size: .8rem; font-weight: 700; color: var(--pink-600); padding-block-start: .38em; font-variant-numeric: tabular-nums; }
.values h3 { font-size: 1.3rem; }
.values p { margin-block-start: 8px; color: var(--text-2); max-width: 52ch; }
.values-icon { display: none; place-items: center; width: 48px; height: 48px; border-radius: var(--r); background: var(--navy-50); color: var(--navy); transition: background-color var(--t), color var(--t), transform var(--t) var(--ease); }
.values li:hover .values-icon { background: var(--navy); color: var(--white); transform: translateY(-2px); }
@media (min-width: 600px) { .values-icon { display: grid; } }

/* ---------------------------------------------------------- journey */
/* Final state is the default; html.js hides it until the list scrolls in, then the line draws and the steps light up in order. */
.journey { display: grid; max-width: 560px; margin-inline: auto; }
.journey li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 18px; padding-block-end: 26px; }
.journey li::before, .journey li::after { content: ""; position: absolute; inset-inline-start: 23px; inset-block: 52px 4px; width: 2px; border-radius: 2px; }
.journey li::after { background: var(--border-strong); }
.journey li::before { z-index: 1; background: var(--navy); transform-origin: top; transition: transform 520ms var(--ease) calc(var(--i) * 130ms + 260ms); }
.journey li:last-child { padding-block-end: 0; }
.journey li:last-child::before, .journey li:last-child::after { display: none; }
.journey-node { position: relative; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--white); box-shadow: 0 0 0 5px var(--white), 0 6px 14px rgba(8,42,68,.18); transition: background-color 420ms var(--ease) calc(var(--i) * 130ms), color 420ms var(--ease) calc(var(--i) * 130ms), box-shadow 420ms var(--ease) calc(var(--i) * 130ms); }
.journey li:last-child .journey-node { background: var(--pink); color: var(--navy-950); }
.journey-body { padding-block-start: 2px; }
.journey-n { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--pink-600); font-variant-numeric: tabular-nums; }
.journey h3 { font-size: 1.05rem; }
.journey p { margin-block-start: 2px; font-size: .9rem; line-height: 1.5; color: var(--text-2); }
.js .journey:not(.is-in) li::before { transform: scaleY(0); }
.js .journey:not(.is-in) .journey-node, .js .journey:not(.is-in) li:last-child .journey-node { background: var(--white); color: var(--text-3); box-shadow: 0 0 0 5px var(--white), inset 0 0 0 1.5px var(--border-strong); }
@media (min-width: 1040px) {
    .journey { max-width: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 44px 0; }
    .journey li { display: block; padding: 0; padding-inline-end: 20px; }
    .journey li::before, .journey li::after { inset-block: 23px auto; inset-inline: 52px 4px; width: auto; height: 2px; }
    .journey li::before { transform-origin: left; }
    [dir="rtl"] .journey li::before { transform-origin: right; }
    .journey li:nth-child(5n)::after { background: linear-gradient(90deg, var(--border-strong), transparent); }
    [dir="rtl"] .journey li:nth-child(5n)::after { background: linear-gradient(270deg, var(--border-strong), transparent); }
    .journey li:nth-child(5n)::before { -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent); }
    [dir="rtl"] .journey li:nth-child(5n)::before { -webkit-mask-image: linear-gradient(270deg, #000, transparent); mask-image: linear-gradient(270deg, #000, transparent); }
    .journey-body { padding-block-start: 18px; }
    .js .journey:not(.is-in) li::before { transform: scaleX(0); }
}

/* -------------------------------------------------- programs / levels */
.ladder { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; align-items: end; margin-block-end: 44px; border-block-end: 2px solid var(--navy); }
.ladder a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: calc(58px + var(--i) * 16px); padding: 10px 12px; border-radius: 12px 12px 0 0; background: rgba(8, 42, 68, calc(.05 + var(--i) * .045)); color: var(--ink); text-decoration: none; transform-origin: bottom; transition: transform 600ms var(--ease-out) calc(var(--i) * 80ms), opacity 400ms calc(var(--i) * 80ms), background-color var(--t), color var(--t); }
.ladder a:hover { background: var(--navy); color: var(--white); }
.ladder b { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.ladder span { display: none; font-size: .8rem; line-height: 1.25; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.js .ladder:not(.is-in) a { transform: scaleY(.25); opacity: 0; }
@media (min-width: 760px) { .ladder { gap: 10px; } .ladder a { height: calc(74px + var(--i) * 22px); padding: 12px 16px; } .ladder span { display: block; } .ladder b { font-size: 1.25rem; } }

.program-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.program, .card { position: relative; min-width: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.program, .group-card, .person-card, .type-card, .level-row { transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); }
:is(.program, .group-card, .person-card, .type-card, .level-row):hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.program { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.program-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.program-code { font-size: 2.9rem; line-height: .9; font-weight: 800; letter-spacing: -.05em; color: var(--navy); }
.program-code::after { content: ""; display: inline-block; width: .16em; height: .16em; margin-inline-start: .06em; border-radius: 50%; background: var(--pink); }
.program h3 a, .level-row h2 a { color: var(--ink); text-decoration: none; }
.program-text { color: var(--text-2); font-size: .96rem; }
.program-meta { margin-block-start: auto; padding-block-start: 16px; border-block-start: 1px solid var(--border); }
.program-meta dt { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
html[lang="ar"] .program-meta dt { letter-spacing: 0; font-size: .82rem; }
.program-meta dd { margin-block-start: 2px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.program-more { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 650; color: var(--navy-600); }

.tag, .seats-chip { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: var(--r-pill); background: var(--navy-50); color: var(--text-2); font-size: .8rem; font-weight: 650; line-height: 1.3; }
.tag-ok { background: var(--success-bg); color: #0F5F40; }
.tag-accent, .seats-chip { background: var(--pink-100); color: #8A1F4E; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }

.level-rows { display: grid; gap: 16px; }
.level-row { display: grid; gap: 16px 32px; padding: 28px; }
.level-row-code { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.level-row-step { font-size: .8rem; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.level-row-body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.level-row-body h2 { font-size: 1.45rem; }
.level-row-body p { color: var(--text-2); max-width: 60ch; }
.level-row-lead { font-weight: 600; color: var(--ink) !important; }
.level-row-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.level-row-side .program-meta { margin: 0; padding: 0; border: 0; }
@media (min-width: 900px) {
    .level-row { grid-template-columns: 130px minmax(0, 1fr) 250px; padding: 32px; }
    .level-row-code { flex-direction: column; justify-content: flex-start; }
    .level-row-side { padding-inline-start: 28px; border-inline-start: 1px solid var(--border); }
}

/* --------------------------------------------- feature rows + points */
.feature { display: grid; gap: 40px 64px; align-items: center; }
.feature-copy .lead { margin-block-start: 18px; }
@media (min-width: 1040px) {
    .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .feature-flip .feature-copy { order: 2; }
    .feature-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
    .feature:has(.feature-visual-narrow) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.feature-visual-narrow { max-width: 520px; margin-inline: auto; width: 100%; }
.ticks { display: grid; gap: 12px; margin-block-start: 26px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-weight: 500; }
.ticks .icon { margin-block-start: .2em; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--success-bg); color: var(--success); }
.ticks-lg li { font-size: 1.06rem; padding-block: 14px; border-block-end: 1px solid rgba(255,255,255,.12); color: var(--white); }
.ticks-lg { gap: 0; margin: 0; }
.ticks-lg .icon { background: rgba(255,255,255,.12); color: var(--pink-300); }
.mini-points { display: grid; gap: 20px; margin-block-start: 30px; }
.mini-points li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding-block-start: 20px; border-block-start: 1px solid var(--border); }
.mini-points span { font-size: .8rem; font-weight: 700; color: var(--pink-600); padding-block-start: .3em; }
.mini-points h3 { font-size: 1.05rem; }
.mini-points p { margin-block-start: 4px; color: var(--text-2); font-size: .96rem; }

.points, .principles { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.points { margin-block-start: clamp(36px, 5vw, 56px); }
.points li, .principles li { padding-block-start: 22px; border-block-start: 1px solid rgba(255,255,255,.16); }
.points-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-block-end: 16px; border-radius: 12px; background: rgba(255,255,255,.09); color: var(--pink-300); }
.points h3, .principles h3 { font-size: 1.08rem; }
.points p, .principles p { margin-block-start: 8px; font-size: .95rem; color: var(--navy-200); }
.type-strip { display: grid; gap: 14px; margin-block-start: clamp(36px, 5vw, 56px); padding: 22px 24px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); background: rgba(255,255,255,.05); }
.type-strip p { font-size: .9rem; font-weight: 600; color: var(--white); }
.type-strip ul { display: flex; flex-wrap: wrap; gap: 8px; }
.type-strip li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: var(--r-pill); background: rgba(255,255,255,.09); color: var(--white); font-size: .875rem; font-weight: 600; }
.type-strip i { width: 10px; height: 10px; border-radius: 3px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.7); }

.bento { display: grid; gap: 20px; }
.bento-cell { display: flex; flex-direction: column; gap: 28px; min-width: 0; padding: clamp(22px, 3.4vw, 40px); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg); }
.bento-copy h2 { font-size: clamp(1.4rem, 2.1vw, 1.75rem); }
.bento-copy p:not(.eyebrow) { margin-block-start: 12px; color: var(--text-2); max-width: 58ch; }
.bento-cell .mock-figure { margin-block-start: auto; }
@media (min-width: 1040px) { .bento { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

.sub-block { margin-block-start: clamp(56px, 7vw, 88px); padding-block-start: clamp(36px, 5vw, 56px); border-block-start: 1px solid var(--border); }
.sub-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-block-end: 28px; }
.sub-head h3 { font-size: 1.5rem; }
.sub-head p { margin-block-start: 6px; color: var(--text-2); }

/* ------------------------------------------- product illustrations */
.mock-figure { min-width: 0; }
.mock-figure figcaption { margin-block-start: 14px; font-size: .8rem; line-height: 1.5; color: var(--text-2); text-align: center; }
.section-navy .mock-figure figcaption { color: rgba(255,255,255,.66); }
.mock-figure-wide { max-width: 1060px; margin-inline: auto; }

.mk { font-size: 13px; line-height: 1.35; letter-spacing: 0; text-align: left; border-radius: 18px; overflow: hidden; user-select: none; cursor: default; color: var(--text); }
.mk p { margin: 0; }
.mk .icon { vertical-align: -.2em; }
.face { display: inline-grid; place-items: center; flex: none; width: 28px; aspect-ratio: 1; border-radius: 50%; background: var(--face, var(--navy-600)); color: var(--white); font-size: 10px; font-weight: 700; line-height: 1; }
.face-group { background: var(--navy-100); color: var(--navy-600); }
.mk-card { min-width: 0; background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.mk-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-block-end: 1px solid var(--border); }
.mk-card-head b { color: var(--ink); }
.mk-card-head u { text-decoration: none; color: var(--navy-600); font-size: .84em; font-weight: 600; white-space: nowrap; }
.mk-card-head em, .app-nav em, .chat em { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: var(--white); font-style: normal; font-size: 10px; font-weight: 700; }
.mk-card-body { display: grid; gap: 9px; padding: 11px 12px; }
.mk-split { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mk-split b { color: var(--ink); }
.mk-muted { color: var(--text-2); font-size: .86em; }
.mk-level { display: inline-grid; place-items: center; min-width: 28px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--navy); color: var(--white); font-style: normal; font-weight: 700; font-size: 10.5px; }
.mk-badge { display: inline-flex; padding: 2px 8px; border-radius: var(--r-pill); background: #EEF1F4; color: var(--text-2); font-size: 10.5px; font-weight: 650; font-style: normal; white-space: nowrap; }
.mk .is-ok { background: var(--success-bg); color: #0F5F40; }
.mk .is-info { background: var(--info-bg); color: var(--info); }
.mk .is-warn, .mk .is-late { background: var(--warning-bg); color: #8A5A12; }
.mk .is-accent { background: var(--pink-100); color: var(--pink-600); }
.mk-progress { display: flex; align-items: center; gap: 8px; }
.mk-progress i { position: relative; flex: 1; height: 8px; border-radius: 99px; background: var(--navy-100); overflow: hidden; }
.mk-progress i::after { content: ""; position: absolute; inset-block: 0; left: 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--pink), #F58BB5); transition: width 1.2s var(--ease-out) .25s; }
.mk-progress b { min-width: 30px; font-size: .86em; color: var(--ink); text-align: right; }
.js [data-progress]:not(.is-in) i::after { width: 0; }
.js [data-progress]:not(.is-in) .ring-fill { stroke-dashoffset: 100; }
.mk-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--white); color: var(--navy); font-size: .86em; font-weight: 650; white-space: nowrap; }
.mk-btn-accent { background: var(--pink); border-color: var(--pink); color: var(--white); }
.mk-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-block-start: 1px solid var(--border); }
.mk-card-head + .mk-row { border-block-start: 0; }
.mk-row > span:first-child { min-width: 0; font-weight: 600; color: var(--ink); font-size: .93em; }
.mk-row small { display: block; font-weight: 400; color: var(--text-2); font-size: .88em; }
.mk-row .face { width: 20px; font-size: 8px; margin-right: 6px; vertical-align: middle; }
.mk-dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 3px; background: var(--c); }
.mk-check { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-block-start: 1px solid var(--border); font-weight: 600; font-size: .93em; color: var(--ink); }
.mk-check i { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border: 2px solid var(--border-strong); border-radius: 6px; color: var(--white); transition: background-color 300ms calc(var(--i, 0) * 240ms + 500ms), border-color 300ms calc(var(--i, 0) * 240ms + 500ms); }
.mk-check.is-done { background: none; color: var(--text-2); }
.mk-check.is-done i { background: var(--success); border-color: var(--success); }
.js [data-reveal]:not(.is-in) .road .mk-check.is-done i { background: var(--white); border-color: var(--border-strong); }

/* the live classroom (classroom.css palette) */
.room { display: flex; flex-direction: column; background: #051C2E; color: #EEF3F7; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 70px rgba(2,14,24,.5); }
.room-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #082A44; border-block-end: 1px solid rgba(255,255,255,.1); }
.room-title strong { display: block; color: var(--white); }
.room-title small { color: rgba(238,243,247,.68); font-size: .82em; }
.room-meta { display: flex; gap: 6px; }
.room-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.room-live { background: rgba(240,90,151,.18); color: #FFD0E2; letter-spacing: .03em; }
.room-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); animation: pulse-dot 1.8s ease-in-out infinite; }
.room-conn { align-items: flex-end; gap: 2px; padding-block-end: 6px; }
.room-conn u { width: 3px; height: 5px; border-radius: 1px; background: #5DD39E; }
.room-conn u:nth-child(2) { height: 8px; } .room-conn u:nth-child(3) { height: 11px; }
.room-body { display: flex; min-height: 0; }
.room-stage { flex: 1; min-width: 0; display: flex; gap: 8px; padding: 8px; }
.room-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.room-tile { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 12px; background: radial-gradient(120% 120% at 30% 15%, #1A557F, #0D3555 70%); }
.room-tile .face { width: 34%; max-width: 62px; font-size: clamp(10px, 1.5vw, 15px); box-shadow: 0 6px 16px rgba(2,14,24,.35); }
.room-tile.is-speaking { box-shadow: inset 0 0 0 3px var(--pink), 0 0 0 4px rgba(240,90,151,.16); }
.room-name { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 7px; background: rgba(5,28,46,.76); font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.room-name .icon { color: #FF9DA0; }
.room-bar { display: flex; justify-content: center; gap: 2px; padding: 8px 8px 10px; background: #082A44; border-block-start: 1px solid rgba(255,255,255,.1); }
.room-ctl { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 54px; font-size: 10px; }
.room-ctl i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #0D3555; }
.room-ctl b { font-weight: 600; }
.room-ctl.is-on i { background: var(--pink); }
.room-ctl.is-leave i { background: #E5484D; }
.room-focus { position: relative; flex: 1; min-width: 0; display: grid; place-items: center; padding: clamp(30px, 3.4vw, 44px) clamp(12px, 3vw, 40px) clamp(12px, 2.4vw, 28px); border-radius: 12px; background: #020D16; }
.room-banner { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill); background: rgba(13,53,85,.92); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.room-slide { width: 100%; max-width: 560px; aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: center; gap: .55em; padding: clamp(14px, 3vw, 36px); border-radius: 8px; background: var(--white); color: var(--ink); font-size: clamp(11px, 1.45vw, 17px); }
.room-slide strong { font-size: 1.7em; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
.slide-kicker { font-size: .72em; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--pink-600); }
.room-slide mark { padding: 0 .2em; border-radius: 4px; background: var(--pink-100); color: inherit; }
.slide-q { color: var(--text-2); }
.room-strip { display: flex; flex-direction: column; gap: 8px; width: 24%; max-width: 176px; }
.room-panel { display: none; flex: none; width: 232px; flex-direction: column; background: #082A44; border-inline-start: 1px solid rgba(255,255,255,.1); }
.room-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-block-end: 1px solid rgba(255,255,255,.1); color: var(--white); }
.room-chat { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.room-msg small { display: block; font-size: 10px; color: rgba(238,243,247,.68); }
.room-msg em { font-style: normal; padding: 1px 6px; border-radius: 5px; background: rgba(240,90,151,.2); color: #FFC2DA; font-weight: 700; }
.room-msg span { display: inline-block; margin-top: 3px; padding: 6px 10px; border-radius: 4px 12px 12px 12px; background: rgba(255,255,255,.09); font-size: .9em; }
.room-msg.is-me span { background: rgba(240,90,151,.24); }
.room-form { display: flex; align-items: center; gap: 8px; margin: 0 10px 10px; padding: 5px 5px 5px 12px; border-radius: 10px; background: #0D3555; color: rgba(238,243,247,.6); font-size: .86em; }
.room-form span { flex: 1; }
.room-form i, .chat-compose i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--pink); color: var(--white); }
@media (max-width: 639px) {
    .room-full .room-stage { flex-direction: column; }
    .room-strip { flex-direction: row; width: 100%; max-width: none; }
    .room-strip .room-tile { flex: 1; aspect-ratio: 4 / 3; }
    .room-strip .room-tile:last-child, .room-ctl-opt, .room-conn { display: none; }
    .room-ctl { min-width: 46px; }
    .room-banner { font-size: 9.5px; }
}
@media (max-width: 400px) { .room-ctl b { display: none; } .room-ctl i { width: 36px; height: 36px; } }
@media (min-width: 900px) { .room-panel { display: flex; } }

/* the student dashboard / the instructor dashboard (tongue.css components) */
.app, .inst { background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.app { display: flex; }
.app-side { display: none; flex: none; width: 148px; flex-direction: column; gap: 2px; padding: 12px 8px; background: var(--navy); color: var(--white); }
.app-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 12px; font-weight: 800; font-size: 1.1em; }
.app-nav { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; color: rgba(255,255,255,.74); font-size: .92em; font-weight: 500; }
.app-nav.is-active { background: rgba(240,90,151,.18); color: var(--white); }
.app-nav.is-active .icon { color: var(--pink); }
.app-nav em { margin-left: auto; }
.app-main { flex: 1; min-width: 0; }
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; background: var(--white); border-block-end: 1px solid var(--border); }
.app-top strong { color: var(--ink); font-size: 1.08em; }
.app-top span { display: flex; align-items: center; gap: 10px; color: var(--text-3); }
.app-top .face { width: 24px; font-size: 8px; }
.app-body { display: grid; gap: 10px; padding: 12px; }
.app-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #082A44, #114468); color: var(--white); }
.app-hero small { display: block; margin-bottom: 4px; color: var(--pink-300); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.app-hero strong { font-size: 1.18em; }
.app-hero p { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; color: rgba(255,255,255,.8); font-size: .86em; }
.app-grid, .inst-grid { display: grid; gap: 10px; }
.inst-grid { padding: 12px; }
.app-opt { display: none; }
.app-people { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: .86em; }
.app-people .face + .face { margin-left: -12px; box-shadow: 0 0 0 2px var(--white); }
.app-dots { display: flex; gap: 5px; }
.app-dots i { flex: 1; height: 22px; border-radius: 6px; background: #9AD9BC !important; }
.app-dots .is-late { background: #F2D08B !important; }
.inst-group { display: grid; gap: 6px; padding: 9px 12px; border-block-start: 1px solid var(--border); }
.mk-card-head + .inst-group { border-block-start: 0; }
.inst-group span { font-weight: 600; color: var(--ink); font-size: .93em; }
.inst-att { display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 12px 12px; }
.inst-att span { padding: 3px 9px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 10.5px; font-weight: 600; color: var(--text-2); }
.inst-att .is-ok, .inst-att .is-late { border-color: transparent; }
@media (min-width: 560px) { .app-grid, .inst-grid { grid-template-columns: 1fr 1fr; } .app-opt { display: block; } }
@media (min-width: 720px) { .app-side { display: flex; } }

/* the roadmap */
.road { padding: clamp(16px, 3vw, 24px); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 14px; }
.road-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.road-head small { color: var(--text-2); font-weight: 600; font-size: .82em; }
.road-head strong { display: block; color: var(--ink); font-size: 1.25em; }
.road-ring b { font-size: .86em; }
.road-bar { margin-top: 14px; }
.road-note { margin-top: 6px !important; color: var(--text-2); font-size: .84em; }
.road-stages { list-style: none; margin: 18px 0 0; padding: 0; }
.road-stages li { position: relative; padding: 0 0 16px 38px; }
.road-stages li:last-child { padding-bottom: 0; }
.road-stages li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--border); }
.road-stages li:last-child::before { display: none; }
.road-stages li.is-done::before { background: var(--success); }
.road-node { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--border-strong); border-radius: 50%; background: var(--white); color: var(--text-3); }
.is-done > .road-node { background: var(--success); border-color: var(--success); color: var(--white); }
.is-current > .road-node { border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-100); }
.is-current > .road-node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.road-stage { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.road-stage b { color: var(--ink); }
.road-items { margin-top: 10px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.road-items .mk-check:first-child { border-block-start: 0; }

/* a reviewed task */
.task { display: grid; gap: 8px; padding: 16px; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); }
.task > strong { color: var(--ink); font-size: 1.2em; }
.mk-type { display: inline-flex; align-items: center; font-weight: 600; font-size: .9em; }
.bubble-file { display: flex; align-items: center; gap: 9px; padding: 7px 9px; margin: 2px 0 6px; border-radius: 10px; background: rgba(8,42,68,.06); }
.bubble-file i { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--pink-100); color: var(--pink-600); font-size: 8.5px; font-weight: 800; font-style: normal; }
.bubble-file strong { display: block; font-size: .92em; font-weight: 600; color: var(--ink); }
.bubble-file small { font-size: .8em; color: var(--text-2); }
.task-note { display: flex; gap: 9px; padding: 11px; border: 1px solid var(--pink-100); border-radius: 12px; background: var(--pink-50); }
.task-note { align-items: flex-start; }
.task-note b { display: block; color: var(--ink); font-size: .9em; }
.task { font-size: 14px; }
.task-next { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-start: 6px; padding-block-start: 12px; border-block-start: 1px solid var(--border); }
.task-next small { display: block; color: var(--text-2); font-size: .8em; }
.task-next b { color: var(--ink); font-weight: 600; }
.task-track { display: flex; gap: 6px; margin-block: 4px; }
.task-track span { flex: 1; display: flex; align-items: center; gap: 5px; padding-block-start: 8px; border-block-start: 3px solid var(--success); color: var(--text-2); font-size: 11px; font-weight: 600; }
.task-track .icon { color: var(--success); }
.task-note p { margin-top: 2px; font-size: .93em; line-height: 1.45; }

/* messages (messages.css palette) */
.chat { display: flex; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); }
.chat-side { display: none; flex: none; width: 38%; max-width: 236px; flex-direction: column; gap: 6px; padding: 10px 8px; border-inline-end: 1px solid var(--border); }
.chat-side-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px; color: var(--text-3); }
.chat-side-head strong { color: var(--ink); font-size: 1.15em; }
.chat-search { display: flex; align-items: center; gap: 6px; margin: 0 4px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--text-3); font-size: .88em; }
.chat-chips { display: flex; gap: 5px; padding: 2px 4px; }
.chat-chips span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border: 1px solid var(--border); border-radius: var(--r-pill); color: var(--text-2); font-size: 10.5px; font-weight: 600; }
.chat-chips .is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chat-item { position: relative; display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; }
.chat-item.is-active { background: var(--navy-50); }
.chat-item.is-active::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--pink); }
.chat-item > div { flex: 1; min-width: 0; }
.chat-item p { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: .86em; white-space: nowrap; overflow: hidden; }
.chat-item p b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--navy); font-size: 1.08em; font-weight: 600; }
.chat-item time { font-size: .86em; color: var(--text-3); }
.chat-item p em { margin-left: auto; }
.chat .is-typing { color: var(--pink-600); font-weight: 600; }
.chat-item.is-unread p + p { color: var(--text); font-weight: 600; }
.chat-av { position: relative; display: grid; }
.chat-av i { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border: 2px solid var(--white); border-radius: 50%; background: var(--success); }
.chat .face { width: 34px; }
.chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--white); border-block-end: 1px solid var(--border); }
.chat-head > div { flex: 1; min-width: 0; }
.chat-head b { display: block; color: var(--navy); }
.chat-head small { color: var(--pink-600); font-weight: 600; font-size: .82em; }
.chat-tools { display: flex; gap: 10px; color: var(--text-3); }
.chat-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.chat-day { align-self: center; padding: 2px 10px; border-radius: var(--r-pill); background: #E9EDF1; color: var(--text-2); font-size: 10.5px; font-weight: 600; }
.chat-row { display: flex; align-items: flex-start; gap: 7px; }
.chat-row .face { width: 26px; font-size: 9px; }
.chat-row.is-out { justify-content: flex-end; }
.bubble { max-width: 80%; padding: 7px 11px 6px; border: 1px solid var(--border); border-radius: 6px 16px 16px 16px; background: var(--white); box-shadow: var(--shadow-xs); font-size: .94em; line-height: 1.42; }
.bubble > b { display: block; margin-bottom: 2px; color: var(--navy-600); font-size: .86em; }
.bubble time { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 2px; font-size: 10px; color: var(--text-3); }
.is-out .bubble { border-color: var(--navy); border-radius: 16px 6px 16px 16px; background: var(--navy); color: var(--white); }
.is-out .bubble time { color: rgba(255,255,255,.66); }
.is-out .bubble time .icon { color: var(--pink); }
.chat-reacts { display: flex; gap: 4px; margin-top: -3px; padding-left: 33px; }
.chat-reacts span { padding: 1px 8px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--white); color: var(--text-2); font-size: .84em; }
.chat-reacts .is-mine { border-color: var(--pink); background: var(--pink-50); color: var(--pink-600); font-weight: 700; }
.bubble-typing { display: flex; gap: 4px; padding: 11px 12px; }
.bubble-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: typing 1.4s ease-in-out infinite; }
.bubble-typing i:nth-child(2) { animation-delay: .18s; } .bubble-typing i:nth-child(3) { animation-delay: .36s; }
.chat-compose { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--white); border-block-start: 1px solid var(--border); color: var(--text-3); }
.chat-compose span { flex: 1; padding: 7px 13px; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--bg); font-size: .9em; }
.chat-compose i { border-radius: 50%; }
@media (min-width: 600px) { .chat-side { display: flex; } }

/* --------------------------------------------------------------- cards */
.pad { padding: clamp(20px, 3vw, 30px); }
.pad > h2, .side-card > h2 { font-size: 1.3rem; margin-block-end: 14px; letter-spacing: -.02em; }
.pad > h3 { margin-block: 22px 6px; font-size: 1.05rem; }
.pad > p + p, .pad > .table-scroll + p { margin-block-start: 10px; }
.card-title { font-size: 1.25rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--pink-600); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-block-start: 18px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .875rem; color: var(--text-2); }

.group-card { display: flex; flex-direction: column; gap: 16px; padding: 26px; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.level-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 30px; padding: 4px 11px; border-radius: 9px; background: var(--navy); color: var(--white); font-weight: 750; font-size: .88rem; text-decoration: none; transition: background-color var(--t); }
a.level-chip { position: relative; }
a.level-chip::before { content: ""; position: absolute; inset: -7px 0; }
a.level-chip:hover { background: var(--navy-700); color: var(--white); }
.group-facts { display: grid; gap: 10px; padding-block: 16px; border-block: 1px solid var(--border); }
.group-facts > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px 16px; }
.group-facts dt { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .9rem; }
.group-facts dt .icon { color: var(--text-3); }
.group-facts dd { font-weight: 650; font-size: .93rem; color: var(--ink); text-align: end; }
.seat-meter { display: block; width: 100%; min-width: 96px; height: 5px; margin-block-start: 6px; border-radius: 99px; background: var(--navy-100); overflow: hidden; }
.seat-meter i { display: block; height: 100%; border-radius: inherit; background: var(--navy-600); }
.group-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-block-start: auto; }
.group-price span { display: block; font-size: .78rem; font-weight: 600; color: var(--text-2); }
.group-price strong { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }

.person-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; scroll-margin-top: 100px; }
.person-head { display: flex; align-items: center; gap: 16px; }
.person-head > div { min-width: 0; }
.person-photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--navy-50); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--border); }
.person-initials { display: inline-flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1.25rem; }
.person-headline { margin-block-start: 2px; color: var(--text-2); font-size: .92rem; }
.person-role { display: flex; flex-wrap: wrap; gap: 6px; }
.person-bio { color: var(--text); font-size: .97rem; }

.type-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.type-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.type-card::before { content: ""; width: 36px; height: 6px; margin-block-end: 8px; border-radius: 99px; background: var(--c); }
.type-card h3 { font-size: 1.12rem; }
.type-label { font-weight: 600; color: var(--ink); }
.type-card p { color: var(--text-2); font-size: .95rem; }
.type-card .meta { margin-block-start: auto; padding-block-start: 10px; }

.facts { display: grid; }
.facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding-block: 13px; border-block-start: 1px solid var(--border); }
.facts > div:first-child { border-block-start: 0; padding-block-start: 0; }
.facts dt { color: var(--text-2); font-size: .93rem; }
.facts dd { font-weight: 650; color: var(--ink); text-align: end; }
.facts dd a { font-weight: 500; }

/* -------------------------------------------- prose, long steps, aside */
.prose-grid { display: grid; gap: 32px; align-items: start; }
.prose-grid > * { min-width: 0; }
.prose { max-width: 62ch; }
.prose h2 { margin-block: 44px 14px; font-size: 1.5rem; }
.prose > h2:first-child, .prose > .prose-section:first-child h2 { margin-block-start: 0; }
.prose p + p { margin-block-start: 14px; }
.prose ul:not(.plain-list), .prose ol { padding-inline-start: 1.3em; margin-block: 12px; display: grid; gap: 8px; }
.prose-legal { max-width: none; }
.prose-legal .prose-section { padding-block: 28px; border-block-start: 1px solid var(--border); }
.prose-legal .prose-section:first-child { border: 0; padding-block-start: 0; }
.prose-legal h2 { margin-block: 0 10px; font-size: 1.3rem; }
.prose-legal p { color: var(--text); max-width: 68ch; }
.prose-section { scroll-margin-top: 100px; }
.route-list { display: grid; gap: 12px; margin-block-end: 14px; }
.route-list li { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-xs); }
.route-icon, .callout-icon, .contact-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-50); color: var(--navy); }

.steps-long { display: grid; }
.step-long { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 20px; padding-block-end: 44px; scroll-margin-top: 100px; }
.step-long::before { content: ""; position: absolute; inset-inline-start: 21px; inset-block: 50px 6px; width: 2px; border-radius: 2px; background: var(--border); }
.step-long:last-child { padding-block-end: 0; }
.step-long:last-child::before { display: none; }
.step-long-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: .86rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.step-long h2 { font-size: 1.5rem; padding-block-start: 6px; }
.step-long p { margin-block-start: 12px; color: var(--text); max-width: 62ch; }
@media (min-width: 640px) { .step-long { grid-template-columns: 44px minmax(0, 1fr); gap: 0 28px; } }

.side-card { display: grid; gap: 12px; padding: 26px; }
.side-card > p { color: var(--text-2); }
.toc { display: grid; }
.toc a { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; min-height: 44px; border-block-start: 1px solid var(--border); color: var(--text); font-size: .93rem; font-weight: 500; line-height: 1.4; text-decoration: none; }
.toc li:first-child a { border-block-start: 0; }
.toc a span { font-size: .76rem; font-weight: 700; color: var(--pink-600); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--pink-600); }
.side-levels { display: grid; gap: 6px; margin-block-end: 4px; }
.side-levels a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px; border: 1px solid transparent; border-radius: 12px; color: var(--text-2); font-size: .86rem; text-decoration: none; transition: background-color var(--t), border-color var(--t); }
.side-levels b { display: grid; place-items: center; min-width: 40px; height: 30px; border-radius: 8px; background: var(--navy-50); color: var(--navy); font-size: .88rem; }
.side-levels a:hover { background: var(--navy-50); }
.side-levels .is-current a { border-color: var(--border-strong); background: var(--white); box-shadow: var(--shadow-xs); color: var(--ink); font-weight: 600; }
.side-levels .is-current b { background: var(--navy); color: var(--white); }
@media (min-width: 980px) {
    .prose-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
    .side-card { position: sticky; inset-block-start: 96px; }
}

/* ----------------------------------------------------------------- FAQ */
.editorial-faq .editorial-head h2 + .text-link { margin-block-start: 16px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-xs); transition: border-color var(--t), box-shadow var(--t); }
.faq-item:hover, .faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 22px; cursor: pointer; list-style: none; border-radius: var(--r); font-size: 1.05rem; font-weight: 650; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h2 { font-size: inherit; font-weight: inherit; letter-spacing: 0; line-height: 1.4; }
.faq-item summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-50); transition: background-color var(--t), transform var(--t-slow) var(--ease-out); }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--navy); transition: transform var(--t-slow) var(--ease-out), background-color var(--t); }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i { background: var(--pink); }
.faq-item[open] summary i::before, .faq-item[open] summary i::after { background: var(--navy-950); }
.faq-item[open] summary i::after { transform: none; }
.faq-answer { padding: 0 22px 22px; color: var(--text-2); max-width: 68ch; }
.faq-item[open] .faq-answer { animation: rise var(--t-slow) var(--ease-out) backwards; }

/* ------------------------------------------------ tables and notices */
.table-scroll { overflow-x: auto; margin-block: 14px; border: 1px solid var(--border); border-radius: var(--r); }
.table th, .table td { padding: 13px 16px; text-align: start; border-block-end: 1px solid var(--border); vertical-align: top; }
.table thead th { background: var(--navy-50); color: var(--text-2); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
html[lang="ar"] .table thead th { letter-spacing: 0; font-size: .86rem; }
.table tbody tr:last-child :is(th, td) { border-block-end: 0; }
.table tbody th { font-weight: 650; color: var(--ink); }
/* Narrow screens: each row becomes a small block (day on its own line, the rest beside each other). */
@media (max-width: 559px) {
    .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .table-stack, .table-stack tbody { display: block; }
    .table-stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 12px 16px; border-block-end: 1px solid var(--border); }
    .table-stack tbody tr:last-child { border-block-end: 0; }
    .table-stack tbody :is(th, td) { display: block; padding: 0; border: 0; }
    .table-stack tbody th { flex-basis: 100%; }
}

.notice { margin-block: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--warning-bg); color: #5C3D08; border-inline-start: 4px solid var(--warning); }
.notice-admin { background: var(--navy-50); color: var(--navy); border-inline-start-color: var(--navy); }
.notice-success { background: var(--success-bg); color: #0F4D36; border-inline-start-color: var(--success); }
.notice-danger { background: var(--danger-bg); color: #7A1726; border-inline-start-color: var(--danger); }
.notice ul { margin-block-start: 6px; padding-inline-start: 1.2em; display: grid; gap: 4px; }
.notice a { color: inherit; }
.callout { display: flex; align-items: flex-start; gap: 18px; margin-block-start: 40px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-xs); }
.contact-side .callout { margin-block-start: 0; }
.callout h2 { font-size: 1.2rem; letter-spacing: -.015em; }
.callout p { margin-block-start: 6px; color: var(--text-2); }
.callout-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.callout-icon { background: var(--pink-100); color: #8A1F4E; }
.empty { display: grid; gap: 8px; justify-items: start; padding: 36px 28px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--white); }
.empty :is(h2, h3) { font-size: 1.25rem; }
.empty p { color: var(--text-2); max-width: 44rem; }
.link-list, .social-list { display: flex; flex-wrap: wrap; gap: 10px; }

/* -------------------------------------------------- contact + its form */
.contact-grid { display: grid; gap: 24px; align-items: start; }
.contact-grid > * { min-width: 0; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; } .contact-form { order: 2; } }
.contact-list { display: grid; gap: 12px; }
.contact-row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.contact-row h3 { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
html[lang="ar"] .contact-row h3 { letter-spacing: 0; font-size: .86rem; }
.contact-row > div { min-width: 0; }
.contact-row a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; font-size: 1.05rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-row a:hover { color: var(--pink-600); }
.contact-form { scroll-margin-top: 100px; }
.contact-form > h2 + p { color: var(--text-2); }
.contact-form > .notice { margin-block: 18px 0; }
.form { display: grid; gap: 20px; margin-block-start: 20px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field label, .fieldset legend { font-size: .92rem; font-weight: 650; color: var(--ink); }
.fieldset { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.fieldset legend { padding: 0; }
.req { color: var(--pink-600); font-weight: 700; }
.input, .select, .textarea { display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; background-color: var(--white); color: var(--text); font: inherit; line-height: 1.5; transition: border-color var(--t), box-shadow var(--t); }
.textarea { min-height: 170px; resize: vertical; }
:is(.input, .select, .textarea):hover { border-color: var(--navy-600); }
:is(.input, .select, .textarea):focus-visible { outline: none; border-color: var(--pink-600); box-shadow: var(--ring); border-radius: 12px; }
:is(.input, .select, .textarea)[aria-invalid="true"] { border-color: var(--danger); }
.field-hint { font-size: .875rem; color: var(--text-2); }
.field-error { font-size: .9rem; font-weight: 650; color: var(--danger); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-actions .field-hint { flex: 1 1 16rem; }
/* Honeypot: out of sight and out of the tab order, but still a real field for a bot. */
.form-trap { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------- reviews */
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--border-strong); line-height: 1; }
.stars .icon { vertical-align: 0; }
.stars .is-on { color: var(--star); fill: currentColor; }
.review-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-block-start: 12px; font-weight: 600; color: var(--ink); }
.review-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.review-card { display: flex; padding: 28px; }
.review-card::before { content: "“"; position: absolute; inset-block-start: 6px; inset-inline-end: 24px; font-size: 5rem; line-height: 1; font-weight: 800; color: var(--pink-100); pointer-events: none; }
.review-card figure { position: relative; display: flex; flex-direction: column; gap: 16px; flex: 1; min-width: 0; }
.review-card blockquote { margin: 0; }
/* Line breaks are kept; a very long review is cut after ten lines. */
.review-text { white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 10; line-clamp: 10; overflow: hidden; font-size: 1.05rem; line-height: 1.6; color: var(--ink); }
.review-card figcaption { display: flex; align-items: center; gap: 12px; margin-block-start: auto; padding-block-start: 18px; border-block-start: 1px solid var(--border); }
.review-avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; }
.review-who { display: grid; min-width: 0; }
.review-name { font-weight: 700; color: var(--ink); }
.review-meta { font-size: .875rem; color: var(--text-2); }

/* ------------------------------------------------------- closing CTA */
.cta { padding-block: 0 var(--section); }
.section-navy + .cta, .section-tint + .cta { padding-block-start: var(--section); }
.cta-card { position: relative; overflow: hidden; display: grid; gap: 28px; align-items: center; padding: clamp(32px, 6vw, 72px); border-radius: var(--r-xl); background: var(--navy-grad); color: var(--navy-200); box-shadow: var(--shadow-lg); }
.cta-card::before { content: ""; position: absolute; inset-block-end: -60%; inset-inline-end: -10%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(240,90,151,.14), transparent); pointer-events: none; }
.cta-card > * { position: relative; }
.cta-card h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.cta-copy p { margin-block-start: 14px; max-width: 34rem; font-size: 1.125rem; }
.cta-actions { display: grid; gap: 12px; justify-items: start; }
.cta-alt { font-size: .92rem; color: var(--navy-200); }
.cta-alt a { color: var(--white); font-weight: 650; }
@media (min-width: 900px) { .cta-card { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } .cta-actions { justify-items: end; text-align: end; } }

/* -------------------------------------------------------------- footer */
.site-footer { position: relative; overflow: hidden; padding-block-start: clamp(56px, 7vw, 92px); background: linear-gradient(160deg, #041B2D, #082A44 65%, #0C3556); color: var(--navy-200); }
.site-footer::before { content: ""; position: absolute; inset-block-start: -40%; inset-inline-start: -10%; width: min(700px, 90vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(240,90,151,.1), transparent); pointer-events: none; }
.site-footer > .wrap { position: relative; }
.footer-top { display: grid; gap: 44px; }
.footer-brand { display: grid; gap: 16px; align-content: start; justify-items: start; max-width: 24rem; }
.footer-tagline { font-size: 1.05rem; color: var(--white); }
.footer-contact, .footer-social { list-style: none; display: grid; gap: 2px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-contact :is(a, .footer-address) { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.footer-nav { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-col h2 { margin-block-end: 8px; font-size: .75rem; line-height: 1.4; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.62); }
html[lang="ar"] .footer-col h2 { letter-spacing: 0; text-transform: none; font-size: .86rem; }
.footer-col ul { list-style: none; }
.site-footer :is(.footer-col, .footer-contact, .footer-social) a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy-200); font-size: .95rem; text-decoration: none; transition: color var(--t); }
.site-footer :is(.footer-col, .footer-contact, .footer-social) a:hover { color: var(--white); }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-block-start: clamp(44px, 6vw, 72px); padding-block: 18px 26px; border-block-start: 1px solid rgba(255,255,255,.12); font-size: .875rem; }
.lang-switch-light { margin-inline-end: -12px; color: var(--white); }
.lang-switch-light:hover { color: var(--white); background: rgba(255,255,255,.1); }
@media (min-width: 640px) { .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) {
    .footer-top { grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: 64px; }
    .footer-nav { grid-template-columns: repeat(5, auto); justify-content: space-between; }
}

/* -------------------------------------------- reduced motion and print */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal] { opacity: 1 !important; }
    .btn:hover, .btn:active, :is(.program, .group-card, .person-card, .type-card, .level-row):hover, .values li:hover .values-icon { transform: none; }
    .hero-stack > * { transform: none !important; }
    .js .journey:not(.is-in) li::before, .js .ladder:not(.is-in) a { transform: none; opacity: 1; }
    .js .journey:not(.is-in) .journey-node { background: var(--navy); color: var(--white); }
    .js .journey:not(.is-in) li:last-child .journey-node { background: var(--pink); color: var(--navy-950); }
    .js [data-progress]:not(.is-in) i::after { width: var(--p); }
    .js [data-progress]:not(.is-in) .ring-fill { stroke-dashoffset: calc(100 - var(--p)); }
    .js [data-reveal]:not(.is-in) .road .mk-check.is-done i { background: var(--success); border-color: var(--success); }
}
@media print {
    .site-header, .site-footer, .cta, .skip-link, .drawer, .mock-figure, .hero-visual { display: none !important; }
    .is-inner main { padding: 0; }
    .js [data-reveal] { opacity: 1 !important; }
}

/* ---------------------------------------------------------------------
   LABELS — sentence case, quiet, marked with the tongue from the logo.
   No pills, no glowing dots, no letter-spaced capitals (see docs/DESIGN.md).
   --------------------------------------------------------------------- */

.eyebrow { gap: 10px; margin-block-end: 14px; font-size: .95rem; line-height: 1.3; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-2); }
html[lang="ar"] .eyebrow { font-size: 1rem; }
.eyebrow::before { content: ""; flex: none; width: 5px; height: 15px; border-radius: 2px 2px 5px 5px; background: var(--pink); }
.section-navy :is(.eyebrow, .eyebrow a) { color: rgba(255, 255, 255, .78); }
.eyebrow-badge { padding: 0; margin-block-end: 20px; border: 0; border-radius: 0; background: none; color: rgba(255, 255, 255, .84); font-size: 1.02rem; }
.eyebrow-badge .pulse { display: none; }
.bento-copy .eyebrow { margin-block-end: 10px; }
:is(.head-facts dt, .program-meta dt, .table thead th, .contact-row h3, .footer-col h2) { font-size: .84rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.mk :is(.slide-kicker, .app-hero small) { letter-spacing: 0; text-transform: none; font-weight: 600; }
.mk .slide-kicker { font-size: .8em; }

/* ---------------------------------------------------------------------
   PLAIN — nothing decorative. Flat colour instead of glows and gradients,
   no glass, no floating props, no icon tiles, no lift-and-glow on buttons.
   What is left on a page is content, structure and state (docs/DESIGN.md).
   --------------------------------------------------------------------- */
:root { --navy-grad: #082A44; }
.section-navy::before, .cta-card::before, .site-footer::before { content: none; }
.site-footer { background: #041B2D; }
.page-head, [dir="rtl"] .page-head { background: var(--white); }
.cta-card { box-shadow: none; }
.btn:hover { transform: none; }
.btn-accent, .btn-accent:hover { box-shadow: none; }
.btn-accent:hover { background: #E84C8B; }
.btn-primary:hover, .btn-nav:hover { box-shadow: none; }
.hero-stack { padding: 0; }
.hero-stack > * { transform: none; transition: none; will-change: auto; }
.hero-facts { display: block; margin-block-start: 26px; font-size: .95rem; line-height: 1.7; color: rgba(255, 255, 255, .64); }
.hero-facts li { display: inline; }
.hero-facts li + li::before { content: "\00a0\00b7\00a0"; }
.values li { grid-template-columns: auto minmax(0, 1fr); }
.journey-node { font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 5px var(--white); }
.room-tile { background: #0F3B5C; }
:is(.program, .group-card, .person-card, .type-card, .level-row):hover { transform: none; }
