/* Cohort marketing site: the palette start.mjs brand printed (the client's own colours), the brand typeface Fustat
   in place of the dealt pairing, and the page CSS the kit leaves to the page: the glass product pictures
   (docs/brand/GLASS-UI.md), the app frame, a few heights and the right-to-left fixes. Linked after the kit's sheets. */

@font-face {
  font-family: "Fustat";
  src: url("/assets/fonts/fustat-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fustat";
  src: url("/assets/fonts/fustat-arabic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* the :root block as start.mjs brand printed it; the font lines name the brand typeface (Fustat), and the display
   weight and tracking follow GLASS-UI.md (headings 700, -0.02em, display down to -0.035em) */
:root {
  --p-bg: #eef0f3; --p-surface: #ffffff; --p-ink: #171c26; --p-muted: #505561;
  --p-accent: #1f2de6; --p-accent-ink: #eef0f3; --p-action: #1f2de6; --p-action-ink: #eef0f3;
  --p-inv-bg: #171c26; --p-inv-surface: #232832; --p-inv-ink: #eef0f3; --p-inv-muted: #94989e;
  --p-inv-accent: #eef0f3; --p-inv-accent-ink: #171c26; --p-inv-action: #eef0f3; --p-inv-action-ink: #171c26;
  --font-display: "Fustat", system-ui, sans-serif;
  --font-text: "Fustat", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 700;
  --display-tracking: -0.02em;
  --display-tracking-xl: -0.035em;
  --display-stretch: 100%;
  --ly-scale: 0.96;
  /* the glass of GLASS-UI.md */
  --glass: rgb(255 255 255 / 0.62);
  --glass-chrome: rgb(255 255 255 / 0.72);
  --glass-raised: rgb(255 255 255 / 0.86);
  --glass-line: rgb(255 255 255 / 0.7);
  --glass-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8), 0 8px 24px -12px rgb(23 28 38 / 0.18);
  --cobalt: #1f2de6; --cobalt-hover: #1822c5; --sky: #4cc3ff;
  --ok: #08795e; --ok-bg: #d6f8eb; --warn: #8f5a06; --warn-bg: #ffebd6; --danger: #b4312b;
  --ui-ink: #171c26; --ui-muted: #505561; --ui-line: rgb(23 28 38 / 0.08);
}
/* the lit ground behind the product pictures: the sky deal, leaning to the brand's cobalt and sky */
/* the kit's UI fragments in the brand typeface */
:root { --ui-font: var(--font-text); }
h1, h2, .mo-lt__type { hyphens: manual; }
html[data-ground="sky"] { --ground-bg: #dce3f1; --ground-surface: #e9eef8; --ground-ink: #171c26; --ground-muted: #505561; --ground-accent: #1f2de6; }

/* Arabic: the same family, no negative tracking (GLASS-UI.md) */
html[lang="ar"] :is(h1, h2, h3, h4, h5, .close__word, .mo-lt__type, .btn, .nav__link) { letter-spacing: 0; }
html[lang="ar"] body { line-height: 1.7; }

/* ---------- nav: the brand logo and the language switch ---------- */
.nav__logo .logo { display: block; width: 124px; height: auto; }
.lang-switch { display: flex; align-items: center; }
.lang-switch > [aria-pressed="true"] { display: none; }
.lang-switch > button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.nav__menu .menu-card .panel { --p-h: 200px; }

/* ---------- the hero's art: the lit ground (grain-gradient draws over it) and the glass pieces ---------- */
.hero__art {
  background:
    radial-gradient(70% 55% at 0% 0%, rgb(31 45 230 / 0.16), transparent 70%),
    radial-gradient(70% 60% at 100% 100%, rgb(76 195 255 / 0.22), transparent 70%),
    #e4e9f3;
}
.hero__proof { margin-top: var(--s-5); font-size: var(--t-small); color: var(--ink); }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.ly-piece--main .cw-main { padding-right: var(--ly-cut-room); }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 280px; } }

/* ---------- glass UI (GLASS-UI.md): panels on the lit ground, crisp text, cobalt once or twice a view ---------- */
.cw-win, .cw-card, .cw-mini, .cw-rec {
  color: var(--ui-ink); font: 400 14px/1.4 var(--font-text); text-align: start;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
.cw-win { border-radius: 16px; overflow: hidden; background: var(--glass-chrome); }
.cw-card, .cw-mini { border-radius: 16px; padding: 18px 20px; background: var(--glass-raised); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cw-win, .cw-card, .cw-mini, .cw-rec { background: #ffffff; }
}
@media (prefers-reduced-transparency: reduce) {
  .cw-win, .cw-card, .cw-mini, .cw-rec { background: #ffffff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.cw-win__bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--ui-line); font-size: 13px; color: var(--ui-muted); }
.cw-dots { display: flex; gap: 6px; } .cw-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgb(23 28 38 / 0.14); }
.cw-crumb { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.cw-crumb img { width: 14px; height: 14px; }
.cw-crumb i { font-style: normal; opacity: .5; }
.cw-crumb b { font-weight: 600; color: var(--ui-ink); }
.cw-win__body { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 720px; }
.cw-side { display: grid; align-content: start; gap: 2px; padding: 14px 10px; border-inline-end: 1px solid var(--ui-line); font-size: 13px; color: var(--ui-muted); }
.cw-side > span { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 8px; white-space: nowrap; }
.cw-side > span > i { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: .28; flex: none; }
.cw-side > span.is-on { background: rgb(31 45 230 / 0.08); color: var(--cobalt); font-weight: 600; }
.cw-side > span.is-on > i { opacity: .9; }
.cw-side .cw-side__label { height: 26px; margin-top: 10px; color: var(--ui-muted); }
.cw-main { display: grid; align-content: start; gap: 12px; padding: 18px 20px; min-width: 0; }
.cw-main__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cw-h--lg { font-size: 17px !important; letter-spacing: -0.01em; }
.cw-btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 12px; border-radius: 12px; background: var(--cobalt); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cw-btn--ghost { background: rgb(23 28 38 / 0.06); color: var(--ui-ink); }
.cw-btn--wide { width: 100%; height: 36px; }
.cw-tabs { display: flex; gap: 4px; font-size: 13px; flex-wrap: wrap; }
.cw-tabs > span { padding: 4px 10px; border-radius: 99px; color: var(--ui-muted); white-space: nowrap; }
.cw-tabs > span.is-on { background: rgb(23 28 38 / 0.07); color: var(--ui-ink); font-weight: 600; }
.cw-rows { display: grid; border-top: 1px solid var(--ui-line); }
.cw-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--ui-line); font-size: 13px; }
.cw-row b, .cw-person b, .cw-rec__who b { display: block; font-weight: 600; color: var(--ui-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-row small, .cw-person small, .cw-rec__who small { display: block; color: var(--ui-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-av { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 12px; font-weight: 600; color: var(--ui-ink); background: #e8efff; flex: none; }
.cw-av[data-tone="2"] { background: #e0f3ff; } .cw-av[data-tone="3"] { background: #d6f8eb; }
.cw-av[data-tone="4"] { background: #ffebd6; } .cw-av[data-tone="5"] { background: #f2f3f5; }
.cw-av--lg { width: 44px; height: 44px; font-size: 14px; }
.cw-chip { justify-self: end; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgb(23 28 38 / 0.06); color: #3c414d; white-space: nowrap; }
.cw-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cw-chip--ok { background: var(--ok-bg); color: var(--ok); }
.cw-chip--warn { background: var(--warn-bg); color: var(--warn); }
.cw-h { display: block; margin: 0; font: 700 15px/1.3 var(--font-display); color: var(--ui-ink); }
.cw-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.cw-note__line { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; color: #3c414d; border-top: 1px solid var(--ui-line); }
.cw-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); font-style: normal; font-size: 12px; font-weight: 700; }
.cw-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ui-line); font-size: 13px; color: var(--ui-muted); }
.cw-line b { font-weight: 600; color: var(--ui-ink); text-align: end; }
.cw-line em { font-style: normal; color: var(--ui-muted); }
.cw-person { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--ui-line); font-size: 13px; }
.cw-signin { display: grid; justify-items: start; gap: 10px; }
.cw-signin small, .cw-dialog small { font-size: 12px; font-weight: 600; color: var(--ui-muted); }
.cw-code { display: grid; grid-template-columns: repeat(6, 40px); gap: 8px; }
.cw-code > span { display: grid; place-items: center; height: 46px; border-radius: 12px; background: #fff; border: 1px solid rgb(23 28 38 / 0.14); font: 600 18px/1 var(--font-text); color: var(--ui-ink); }
.cw-code > span.is-caret { border: 2px solid var(--cobalt); }
.cw-dialog { display: grid; gap: 10px; }
.cw-dialog p { margin: 0; font-size: 14px; color: #3c414d; }
.cw-field { height: 40px; display: flex; align-items: center; padding: 0 12px; border-radius: 12px; background: #fff; border: 2px solid var(--cobalt); letter-spacing: .2em; color: var(--ui-ink); }
.cw-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.cw-fit-340 { --fit-max: 340px; }
.cw-fit-360 { --fit-max: 360px; }
.cw-fit-400 { --fit-max: 400px; }
.cw-notify { --fit-max: 380px; }

/* ---------- the app frame (sections-library.md app-frame), drawn in the glass ---------- */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-inline-start: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-inline-start: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
#roles .app.ui { --u-bg: #fbfcfe; }
.cw-rec { border: 0; border-radius: 0; box-shadow: none; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 20px 24px; display: grid; gap: 16px; align-content: start; }
.cw-rec__head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.cw-rec__who b { font-size: 16px; }
.cw-rec__req { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: rgb(31 45 230 / 0.06); border: 1px solid rgb(31 45 230 / 0.16); }
.cw-rec__req b { font-weight: 600; font-size: 14px; } .cw-rec__req small { display: block; font-size: 13px; color: var(--ui-muted); }
.cw-rec__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cw-block { padding: 14px 16px; border-radius: 16px; background: var(--glass-raised); border: 1px solid rgb(23 28 38 / 0.08); }
.cw-block .cw-h { margin-bottom: 4px; }
.cw-num { margin: 4px 0 2px; font: 700 22px/1.2 var(--font-display); color: var(--ui-ink); letter-spacing: 0; }
.cw-tick { font-style: normal; color: var(--ok); font-weight: 700; }
.cw-file { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ui-ink); }
.cw-file img { width: 14px; height: 14px; }
@media (max-width: 639px) { .cw-rec { padding: 16px; } .cw-rec__grid { grid-template-columns: minmax(0, 1fr); } .cw-rec__req { grid-template-columns: minmax(0, 1fr) auto; } .cw-rec__req .cw-btn--ghost { display: none; } }

/* ---------- section heights (layout-v4.md: one or two screens; no inline style under the CSP) ---------- */
#journey { --h: 2; }
#security { --h: 2; }
#setup .panel { --p-h: 300px; }
#security .panel { --p-h: 300px; }
#setup .ui-checks__bar > i { --k: 0.6; }
@media (max-width: 639px) {
  #setup { --hm: 1; }
  #setup .panel, #security .panel { --p-h: 200px; }
  #roles { --hm: 1; }
}

/* ---------- the statement (liquid-type) on its dotted ground ---------- */
.statement { display: grid; gap: var(--s-6); justify-items: start; }
.statement .mo-lt__type { font-family: var(--font-display); font-weight: var(--display-weight); max-width: 15ch; }
.statement .t-lead { max-width: 52ch; color: var(--ink); }
#languages .btn-row > [aria-pressed="true"] { display: none; }

/* ---------- integrations: three plain facts and the diagram card ---------- */
.facts { list-style: none; margin: 0; padding: 0; display: grid; }
.facts > li { padding: var(--s-3) 0; border-top: 1px solid var(--line); font-size: var(--t-body); }
#integrations .frame { min-height: 460px; display: grid; place-items: stretch; }
#integrations .dg { width: 100%; height: 100%; }

/* ---------- the trial form ---------- */
.trial-box { padding: var(--s-7); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.trial-form { display: grid; gap: var(--s-5); }
.field__hint { margin: 0; font-size: var(--t-small); font-weight: 400; color: var(--muted); }
.field__hint bdi { font-weight: 600; color: var(--ink); }
.form__status--error { color: var(--danger); }
.trial-sent { display: grid; gap: var(--s-4); }
.trial-sent h3 { margin: 0; }
@media (max-width: 639px) { .trial-box { padding: var(--s-5); } #trial { --hm: 2; } }

/* ---------- right to left: the kit places a few pieces with left and right; mirror them ---------- */
[dir="rtl"] .m-arrow { transform: scaleX(-1); }
[dir="rtl"] .hero__art > .ly-piece--main { left: auto; right: var(--s-8); }
[dir="rtl"] .hero__art > .ly-piece--note { left: auto; right: var(--s-6); }
[dir="rtl"] .ly-piece--main .cw-main { padding-right: 20px; padding-left: var(--ly-cut-room); }
@media (max-width: 1279px) { [dir="rtl"] .hero__art > .ly-piece--main { right: var(--s-6); } }
@media (max-width: 1023px) { [dir="rtl"] .hero__art > .ly-piece--note { right: var(--s-4); } }
@media (max-width: 639px) { [dir="rtl"] .hero__art > .ly-piece--main { right: var(--s-4); } }
[dir="rtl"] .cw-chip, [dir="rtl"] .cw-line b { justify-self: start; }
[dir="rtl"] [data-moment="pinned-chapters"] .mo-pc__step { padding-left: 0; padding-right: var(--s-5); border-left: 0; border-right: 2px solid var(--line); }

/* the close: the brand's own wordmark set across the wrap (close-word) */
.close__word--logo { line-height: 0; }
.close__word--logo img { display: block; width: auto; max-width: 100%; height: clamp(72px, 12.5vw, 180px); }
/* the trial band: its second tone leans to the brand's sky, and the main action keeps the cobalt fill */
#trial { --tone: #cdeafc; --action: var(--p-action); --action-ink: #ffffff; }

/* a fitted fragment sits in the middle of its panel: the same inset on both sides */
.stage > .at-rise.fit { --ax: 32px; }
/* running text people read stays in the ink (7:1); muted is for labels */
#roles .stack-4 > p.muted, #faq .stack-4 > p.muted { color: var(--ink); }
@media (max-width: 639px) { .nav__logo .logo { width: 104px; } }

/* ======================= "Typed once" (docs/brand/CREATIVE-PLATFORM.md) ======================= */

/* the hero's proof: one field and five glass documents on the lit frame */
.hero__line { display: block; font-weight: 600; color: var(--ink); margin-bottom: var(--s-2); }
.demo { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding: 28px; overflow: hidden; }
.demo__field { display: grid; gap: 10px; padding: 16px 18px; }
.demo__head { display: flex; align-items: center; gap: 10px; }
.demo__head label { font: 600 14px/1.3 var(--font-text); color: var(--ui-ink); }
.demo__mark { width: 26px; height: 26px; flex: none; overflow: visible; }
/* the student steps into the open ring once, on load; the mark never mirrors in Arabic */
.demo__dot { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  html.js .demo__dot { animation: dot-in 900ms var(--m-ease-enter, cubic-bezier(.22,1,.36,1)) 500ms both; }
}
@keyframes dot-in { from { transform: translateX(160%); opacity: 0; } to { transform: none; opacity: 1; } }
#demo-name { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--cobalt); background: #fff; font: 600 18px/1 var(--font-text); color: var(--ui-ink); }
#demo-name:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.demo__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo__note { margin: 0; font-size: 13px; color: var(--ui-muted); }
.demo__switch { min-height: 44px; padding: 0 4px; border: 0; background: none; font: 600 13px/1 var(--font-text); color: var(--cobalt); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.demo__switch[aria-pressed="true"] { display: none; }
.demo__docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: min-content; gap: 12px; align-content: start; }
.doc { padding: 12px 14px; display: grid; gap: 4px; align-content: start; font-size: 13px; }
.doc .cw-line { padding: 6px 0; }
.doc--transcript { grid-column: 1 / -1; }
.doc__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.doc__head small { font-size: 12px; color: var(--ui-muted); white-space: nowrap; }
.doc__who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc__who > span:not(.cw-av) { color: var(--ui-muted); }
.doc__row { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; color: #3c414d; }
.doc__row .cw-av, .doc__who .cw-av { width: 24px; height: 24px; font-size: 10px; }
.doc__row.is-on { background: rgb(76 195 255 / 0.16); }
.doc__grade { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 0; }
.doc__letter { font-size: 15px; }
.doc__sign { margin-top: 4px; padding-top: 8px; border-top: 1px dashed rgb(23 28 38 / 0.2); font-size: 12px; color: var(--ui-muted); }
/* the typed name, the same mark on every document: the sky line under it is the thread */
.demo-name { justify-self: start; display: inline-block; font-weight: 600; color: var(--ui-ink); box-shadow: inset 0 -2px 0 var(--sky); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .demo__docs.is-typing .demo-name { background: rgb(76 195 255 / 0.22); transition: background-color 120ms; }
  .demo__docs .demo-name { transition: background-color 500ms; }
}
@media (max-width: 1279px) { .demo { padding: 20px; } .doc--class { display: none; } .doc--app { grid-column: 1 / -1; } }
@media (max-width: 1023px) { .doc--grade, .doc--fee { display: none; } }
@media (max-width: 639px) { .demo { padding: 14px; gap: 10px; } .demo__field { padding: 12px 14px; gap: 8px; } .doc--app { display: none; } .demo__note { font-size: 12px; } }

/* the chapters of one student's year: a real sequence, so the numbers are shown */
.chapter-num { display: inline-block; margin-inline-end: 0.35em; color: var(--cobalt); font-variant-numeric: tabular-nums; }
h3 .chapter-num { font-size: 0.9em; }
.cw-sub { display: block; font-size: 12px; color: var(--ui-muted); margin-bottom: 6px; }
.cw-h--sm { font-size: 13px; margin-top: 10px; }
.cw-reason { margin: 0 0 4px; font-size: 12px; color: var(--warn); }
.cw-fit-460 { --fit-max: 460px; }
.cw-sheet { width: 100%; }
.cw-grade { display: grid; grid-template-columns: minmax(0, 1fr) 48px 64px 52px; gap: 8px; align-items: center; padding: 9px 6px; border-top: 1px solid var(--ui-line); font-size: 13px; color: #3c414d; }
.cw-grade > :not(:first-child) { text-align: end; font-variant-numeric: tabular-nums; }
.cw-grade--head { font-size: 12px; font-weight: 600; color: var(--ui-muted); border-top: 0; }
.cw-grade.is-on { background: rgb(76 195 255 / 0.14); border-radius: 8px; }
.cw-line--total b { font-size: 15px; }
[data-moment="pinned-chapters"] .mo-pc__visual--ui { display: grid; place-items: center; padding: 32px; aspect-ratio: 4 / 3; background:
  radial-gradient(70% 60% at 0% 0%, rgb(31 45 230 / 0.14), transparent 70%), radial-gradient(70% 60% at 100% 100%, rgb(76 195 255 / 0.22), transparent 70%), #e4e9f3; }
[data-moment="pinned-chapters"] .mo-pc__visual--ui > .cw-sheet { max-width: 460px; }
@media (min-width: 640px) { [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual--ui { max-height: 30svh; aspect-ratio: auto; padding: 16px; overflow: hidden; } }
#journey .frame { min-height: 520px; }
#year { --h: 2; }
#journey { --h: 1; }

/* "Two directions, one school": English reads in from the left edge, Arabic from the right, on both pages */
.two-dir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); width: 100%; direction: ltr; }
.two-dir > p { margin: 0; font-size: var(--t-lead); line-height: 1.55; color: var(--ink); max-width: 30em; }
.two-dir__en { text-align: left; }
.two-dir__ar { text-align: right; justify-self: end; line-height: 1.8; }
#languages .statement { gap: var(--s-7); }
@media (max-width: 639px) { .two-dir { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } }

/* the close's two actions */
.close--word .section-head--split .btn-row { flex: none; }

/* the collage h1 holds three lines with the longer category name */
.hero--collage h1 { font-size: calc(var(--ly-h1-col) * 0.88); }
#journey .frame { min-height: 0; aspect-ratio: 5 / 4; }
#journey .stage > .at-rise { --ay: 48px; }

#graduation .frame { aspect-ratio: 4 / 3; }
/* the dark close keeps the page's one primary look: the cobalt fill */
.footer--dark { --action: var(--p-action); --action-ink: #ffffff; }
/* avatars in the drawn screens are marks, never buttons */
.cw-av { background: transparent !important; box-shadow: inset 0 0 0 1.5px rgb(23 28 38 / 0.18); }
.cw-av[data-tone="1"] { box-shadow: inset 0 0 0 1.5px var(--sky); }
@media (max-width: 639px) { .cw-rec__grid > .cw-block:nth-child(n+3) { display: none; } }
.close__word--logo img { width: 100%; height: auto; max-width: none; }
@media (max-width: 639px) { #graduation .frame { aspect-ratio: 4 / 5; } }

/* the two dealt grounds keep the section box (layout-v4.md): one screen, the h2 at the top, the system's padding */
main > section:is(#languages, #trial) {
  display: block; min-height: 0; align-content: start;
  height: calc(var(--h, 1) * 100vh); height: calc(var(--h, 1) * 100svh);
  padding: var(--padt) 0 calc(var(--padb) + var(--bar));
}
@media (min-width: 640px) and (max-width: 1023px) {
  main > section:is(#languages, #trial) { height: auto; min-height: calc(var(--h, 1) * 100svh); }
}
@media (max-width: 639px) {
  main > section:is(#languages, #trial) { height: auto; min-height: calc(var(--hm, var(--h, 1)) * 100vh); min-height: calc(var(--hm, var(--h, 1)) * 100lvh); }
  #trial { --hm: 1; }
}
/* the Arabic line reads in from the right edge of the wrap */
.two-dir__ar { justify-self: stretch; }

.trial-steps { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-4); }
.trial-steps > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-3); align-items: baseline; font-size: var(--t-body); }
@media (max-width: 639px) { main > section#year { min-height: calc(2 * 100lvh); } }
@media (min-width: 640px) and (max-width: 1279px) { #setup .panel { --p-h: 220px; } }


.two-dir--docs { align-items: start; }
.two-dir__doc { width: min(100%, 420px); }
.two-dir__doc[dir="rtl"] { justify-self: end; }
#languages .mo-lt__type { font-size: clamp(48px, 6.6vw, 104px); }
#languages .statement { gap: var(--s-6); }
.trial-photo { margin: 0; aspect-ratio: 4 / 1; border-radius: var(--r-lg); overflow: hidden; }
.trial-photo > img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .trial-photo { display: none; } }


@media (min-width: 640px) and (max-width: 1023px) { #languages .mo-lt__type { font-size: 9vw; } #languages .two-dir > p { font-size: 20px; } }

/* ======================= the real screens (docs/brand/screens, docs/brand/mockups) ======================= */
/* the thread: the composite fills what the screen leaves under the heading */
.thread { margin: var(--s-7) 0 0; border-radius: var(--r-lg); overflow: hidden; min-height: 0; background: #e6ebf3; }
.thread > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
@media (max-width: 639px) { .thread { flex: none; aspect-ratio: 16 / 10; } .thread > img { object-position: 30% 40%; } }
/* a real screen in a split frame, cut by the frame's right and bottom (the client's screenshot, at-corner) */
.stage > img.shot { --ax: 56px; --ay: 56px; width: 900px; max-width: none; height: auto; border-radius: 12px; border: 1px solid rgb(23 28 38 / 0.1); box-shadow: 0 24px 48px -24px rgb(23 28 38 / 0.35); }
@media (max-width: 1279px) { .stage > img.shot { --ax: 32px; --ay: 32px; width: 720px; } }
@media (max-width: 639px) { .stage > img.shot { width: 560px; left: 16px; top: 20px; } }
[dir="rtl"] .stage > img.shot { left: auto; right: var(--ax); }
@media (max-width: 639px) { [dir="rtl"] .stage > img.shot { right: 16px; } }
/* the real screens inside the year's chapters: the top of the screen, where the name is */
[data-moment="pinned-chapters"] .mo-pc__visual--shot { background: #e4e9f3; }
[data-moment="pinned-chapters"] .mo-pc__visual--shot > img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 0 0; }
[dir="rtl"] [data-moment="pinned-chapters"] .mo-pc__visual--shot > img { object-position: 100% 0; }
/* the portal on two phones and the laptop: whole devices on the lit frame */
.frame--phone, .frame--laptop { aspect-ratio: 4 / 3; background: #e4e9f3; border-radius: var(--r-lg); overflow: hidden; }
.frame--phone > img, .frame--laptop > img { width: 100%; height: 100%; object-fit: cover; }
.setup-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
.setup-steps > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.setup-steps b { display: block; font-size: var(--t-card); font-weight: 600; }
.setup-steps p { margin: var(--s-2) 0 0; }
.frame.thread { padding: 0; }

@media (max-width: 639px) { main #year .mo-pc__visual > img { aspect-ratio: 10 / 9 !important; max-height: none !important; } }

/* Fustat widens word spaces under tabular figures; keep figures tabular only where numbers line up. */
.ui { font-feature-settings: normal; }
.ui :is(td, .num, [data-num]) { font-variant-numeric: tabular-nums; }
/* Arabic headings need more line room than Latin. */
html[lang="ar"] :is(h1, h2) { line-height: 1.3; }
/* Trial form fields stay white on the tinted band. */
#trial .field :is(input, select, textarea) { background: #fff; }

/* chapter 02 and the languages section: the real screens across the wrap */
.shot-wide { margin: var(--s-7) 0 0; padding: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgb(23 28 38 / 0.1); box-shadow: 0 24px 48px -28px rgb(23 28 38 / 0.35); background: #f7f8fb; min-height: 0; }
.shot-wide > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
[dir="rtl"] .shot-wide > img { object-position: 100% 0; }
@media (max-width: 639px) { .shot-wide { flex: none; aspect-ratio: 4 / 3; } }
.shot-bilingual { margin: 0; padding: 0; width: 100%; aspect-ratio: 3 / 1; border-radius: var(--r-lg); overflow: hidden; background: #dfe8f6; }
.shot-bilingual > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
@media (max-width: 1023px) { .shot-bilingual { aspect-ratio: 16 / 9; } }
#languages .mo-lt__type { font-size: clamp(44px, 5.4vw, 80px); max-width: none; }

/* The closing mark fits the close's row: the box spans the wrap, the drawing scales down inside it. */
@media (min-width: 640px) {
  .closing__cta > .close__word--logo { flex: 1 1 0; min-height: 0; display: flex; align-items: flex-end; }
  .close__word--logo img { width: 100%; height: 100%; max-height: 265px; object-fit: contain; object-position: left bottom; }
  [dir="rtl"] .close__word--logo img { object-position: right bottom; }
}
