/* Lado site: the page's own layer over the kit (system.css, layout.css, motion.css).
   Holds what the kit has no part for: Lado's brand tokens in two themes, the brand typeface,
   right-to-left, the header's language and theme controls, the waitlist field, the footer, the
   policy and not-found pages, and the landing page's sections. Spacing uses the kit's scale
   (--s-1 to --s-10); type uses the kit's sizes. */

/* Readex Pro, Lado's typeface for Latin and Arabic (SIL Open Font License, fonts/OFL.txt) */
@font-face {
  font-family: "Readex Pro"; font-style: normal; font-display: swap; font-weight: 160 700;
  src: url("fonts/readex-pro-arabic-wght-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Readex Pro"; font-style: normal; font-display: swap; font-weight: 160 700;
  src: url("fonts/readex-pro-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Readex Pro"; font-style: normal; font-display: swap; font-weight: 160 700;
  src: url("fonts/readex-pro-latin-wght-normal.woff2") format("woff2");
  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;
}

/* Lado's colours: Lado Blue on warm sand (light), Blue Night on night (dark) */
:root {
  color-scheme: light;
  --p-bg: #faf6f1; --p-surface: #f3eee8; --p-ink: #231d15; --p-muted: #666059;
  --p-accent: #3672cb; --p-accent-ink: #ffffff; --p-action: #3672cb; --p-action-ink: #ffffff;
  --p-inv-bg: #231d15; --p-inv-surface: #302921; --p-inv-ink: #faf6f1; --p-inv-muted: #a19c95;
  --p-inv-accent: #6098ed; --p-inv-accent-ink: #0b1421; --p-inv-action: #6098ed; --p-inv-action-ink: #0b1421;
  --font-display: "Readex Pro", system-ui, sans-serif;
  --font-text: "Readex Pro", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.022em;
  --display-tracking-xl: -0.03em;
  /* the app's own surfaces, for the app window */
  --app-0: #f3eee8; --app-1: #faf6f1; --app-2: #fefbf8; --app-line: #e4dfd8; --app-text-2: #524c44;
  --app-mine: #dfeafb; --app-mine-ink: #1b3a6b;
  --needs-bg: #f9e9b8; --needs-ink: #645000; --needs-solid: #f0c630;
  --done-bg: #d7f5ea; --done-ink: #006b54;
  --work-bg: #dcf0ff; --work-ink: #006191;
  --stage: #e2eeff;
  --shadow-win: 0 0 0 1px rgb(55 44 29 / .07), 0 4px 12px rgb(55 44 29 / .06), 0 24px 56px rgb(55 44 29 / .14);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --p-bg: #1b1713; --p-surface: #221d18; --p-ink: #f2edea; --p-muted: #b7afa9;
  --p-accent: #6098ed; --p-accent-ink: #0b1421; --p-action: #6098ed; --p-action-ink: #0b1421;
  --p-inv-bg: #f2edea; --p-inv-surface: #e2d9d2; --p-inv-ink: #1b1713; --p-inv-muted: #5a524c;
  --p-inv-accent: #3672cb; --p-inv-accent-ink: #ffffff; --p-inv-action: #3672cb; --p-inv-action-ink: #ffffff;
  --app-0: #1b1713; --app-1: #221d18; --app-2: #2c2621; --app-line: #38332e; --app-text-2: #c3bcb7;
  --app-mine: #2c4365; --app-mine-ink: #dbe9ff;
  --needs-bg: #4d3d00; --needs-ink: #fed75b; --needs-solid: #f0c630;
  --done-bg: #223c2b; --done-ink: #79d99d;
  --work-bg: #1e384a; --work-ink: #7ecaff;
  --stage: #27395a;
  --shadow-win: 0 0 0 1px rgb(0 0 0 / .4), 0 4px 12px rgb(0 0 0 / .3), 0 24px 56px rgb(0 0 0 / .45);
}
/* Arabic: no letter spacing, taller lines for the marks above and below the letters */
:root[lang="ar"] { --display-tracking: 0em; --display-tracking-xl: 0em; }
:root[lang="ar"] .hero h1 { line-height: 1.22; }
:root[lang="ar"] :is(h2, h3) { line-height: 1.4; }
:root[lang="ar"] .hero .hero__lead { line-height: 1.75; }
/* a phone: the Arabic headline one step smaller, so its eight words sit on three lines */
@media (max-width: 639px) { :root[lang="ar"] .hero h1 { font-size: 36px; } }
html { background: var(--p-bg); }
.ltr { direction: ltr; unicode-bidi: isolate; }


/* ---------- header: the logo in the page's language and theme, the language link, the theme button ---------- */
.nav__logo img { height: 28px; width: auto; }
.nav__logo--arabic img { height: 38px; }
.nav__logo .logo--dark, :root[data-theme="dark"] .nav__logo .logo--light { display: none; }
:root[data-theme="dark"] .nav__logo .logo--dark { display: block; }
.nav__tools { display: flex; align-items: center; gap: var(--s-1); flex: none; margin-inline-end: calc(var(--s-4) - var(--s-8)); }
.nav__lang {
  display: inline-flex; align-items: center; height: var(--btn-h); padding-inline: var(--s-3);
  font: 500 15px/1 var(--font-text); color: var(--ink); border-radius: var(--r-btn);
}
.nav__lang:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.nav__theme {
  display: grid; place-items: center; width: var(--btn-h); height: var(--btn-h); padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer;
}
.nav__theme:hover { background: color-mix(in oklab, var(--bg) 94%, var(--ink)); }
.nav__theme svg { width: 18px; height: 18px; }
.nav__theme .i-moon, :root[data-theme="dark"] .nav__theme .i-sun { display: none; }
:root[data-theme="dark"] .nav__theme .i-moon { display: block; }
@media (min-width: 1024px) and (max-width: 1279px) { .nav__tools { margin-inline-end: calc(var(--s-4) - var(--s-6)); } }
@media (max-width: 1023px) {
  /* the language link and the theme button stay in the bar, before the main button and the menu button */
  .nav__tools { margin-inline-start: auto; margin-inline-end: 0; }
  .nav:not(.is-open) .nav__actions { margin-inline: 0; }
  .nav .nav__toggle { margin-inline: 0; }
}
@media (max-width: 639px) {
  /* a phone: the bar keeps the language link, the theme button and the menu; the main button is the
     hero's own, right under the words, and the open menu holds it too */
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav__lang { padding-inline: var(--s-2); }
}

/* ---------- the waitlist field: one visible label, one field, the main button beside it ---------- */
.join { display: grid; gap: var(--s-3); width: 100%; max-width: 520px; }
.join__row { display: flex; align-items: end; gap: var(--s-3); }
.join__row .field { flex: 1 1 auto; min-width: 0; }
.join__row .field input { text-align: start; }
:root[dir="rtl"] .join__row .field input { text-align: end; }
.join__row .btn { flex: none; height: 48px; }
.join__note { margin: 0; font-size: var(--t-small); line-height: 1.5; color: var(--app-text-2); }
@media (max-width: 639px) {
  .join__row { flex-direction: column; align-items: stretch; }
  .join__row .btn { width: 100%; }
}

/* ---------- footer: the kit's footer-columns on the page ground ---------- */
.footer__brand { display: grid; gap: var(--s-4); justify-items: start; align-content: start; }
.footer__logo { display: inline-flex; align-items: center; }
.footer__logo img { height: 36px; width: auto; }
.footer__logo--arabic img { height: 50px; }
.footer__made { max-width: 34ch; font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.footer__routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-5); align-items: start; }
.footer__group, .footer__row { display: grid; justify-items: start; align-content: start; gap: var(--s-1); font-size: var(--t-small); }
.footer__group h3 { margin-bottom: var(--s-2); }
.footer__row { padding-top: calc(var(--t-small) * 1.4 + var(--s-2) + var(--s-1)); }
.closing__links .footer__routes .footer-contact { font-size: var(--t-small); }
.footer__routes a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); }
.footer__routes a:hover, .footer__lang:hover { color: var(--action); }
.footer__legal { align-items: center; }
.footer__lang { display: inline-flex; align-items: center; min-height: 36px; font-weight: 500; color: var(--ink); }
@media (max-width: 639px) {
  .footer__logo { min-height: 44px; }
  .footer__logo img { height: 30px; }
  .footer__logo--arabic img { height: 42px; }
  .footer__routes a, .footer__lang { min-height: 44px; }
  .footer__row { padding-top: 0; grid-column: 1 / -1; }
  .footer__routes { grid-template-columns: minmax(0, 1fr); }
}


/* =====================================================================================================
   THE LANDING PAGE (src/pages/home.mjs). The kit has no dark theme and no right-to-left, so both are
   handled here: colours come from the tokens at the top of this file, sides are logical, and what
   the kit sets on one physical side is turned for Arabic.
   ===================================================================================================== */

/* Lado's lit ground is its own blue tint (--stage, per theme); a panel is flat */
:root { --ground-bg: var(--stage); --ground-surface: var(--p-bg); --ground-ink: var(--p-ink); --ground-muted: var(--p-muted); --ground-accent: var(--p-accent); }
/* the app's own grounds, measured on the screens in assets/app: the side rail, the chat, the tab */
:root { --rail: #faf6f3; --chat: #fffdfc; --tab: #fefaf6; --presence: #2f9e57; }
:root[data-theme="dark"] { --rail: #211d1a; --chat: #352e2a; --tab: #2b2622; --presence: #4cc27a; }

/* a picture with a light and a dark file: the theme shows one */
.logo--dark, .shot--dark, :root[data-theme="dark"] :is(.logo--light, .shot--light) { display: none; }
:root[data-theme="dark"] :is(.logo--dark, .shot--dark) { display: block; }
.shot { width: 100%; height: auto; }

/* each employee's own colour (the app's) */
.who--maya { --c: #4b86dc; }
.who--adam { --c: #00999f; }
.who--lina { --c: #c86921; }
.who--sami { --c: #ae7c00; }
.who--nora { --c: #449c4b; }
.who--zain { --c: #c95c86; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }

/* a face the app draws, at the size its box gives it (the engine's fixed size is taken off) */
.fig { position: relative; display: block; flex: none; aspect-ratio: 1; }
.fig .ccj-wrap, .fig .ccj-svg { display: block; width: 100%; height: 100%; }

/* Arabic letters join: no letter spacing; taller lines for the marks above and below the letters */
:root[lang="ar"] main * { letter-spacing: 0; }
:root[lang="ar"] .t-lead, :root[lang="ar"] main > .section :is(p, li, dd) { line-height: 1.8; }
/* the kit's text link ends on an arrow that points right: in Arabic it points left, and moves left */
:root[dir="rtl"] .link::after { content: "\2190"; }
@media (hover: hover) and (pointer: fine) { :root[dir="rtl"] .link:hover::after { transform: translateX(-3px); } }
.section-head .t-lead { max-width: 60ch; }

/* ---------- the hero's picture: Maya and Adam, the first request between them ---------- */
.hero--split .hero__media { background: var(--stage); }
.duo { position: absolute; inset: 0; --duo-face: clamp(104px, 16svh, 150px); }
.duo__frame {
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%;
  padding: var(--s-5); row-gap: 0;
}
.duo__who { position: relative; z-index: 2; display: flex; align-items: center; gap: var(--s-1); margin: 0; }
/* the two faces stand over the chat's corners, so the request is between them and the panel is theirs */
.duo__who--maya { margin-bottom: calc(var(--duo-face) * -.2); padding-inline-start: var(--s-2); }
.duo__who--adam { justify-self: end; flex-direction: row-reverse; margin-top: calc(var(--duo-face) * -.2); padding-inline-end: var(--s-2); }
/* each name right beside its face, on the face's middle: the drawing keeps about a sixth of its box free
   at each side, so Maya's label steps into it; Adam's sits just outside his lit ring */
.duo__who--maya .duo__plate { margin-inline-start: calc(var(--duo-face) * -.12); }
.duo__who .fig { width: var(--duo-face); z-index: 1; }
/* the contact shadow under a face: it stands on the panel */
.duo__who .fig::after, .join-close__maya .fig::after {
  content: ""; position: absolute; z-index: -1; inset-inline: 22%; bottom: 3%; height: 7%;
  border-radius: 50%; background: rgb(24 38 70 / .2); filter: blur(4px);
}
/* on the hero's blue panel the shadow is a shade of black, so it reads on the panel in both themes */
.duo__who .fig::after { background: rgb(0 0 0 / .3); }
.duo__plate { max-width: 16ch; font: 500 var(--t-small)/1.35 var(--font-text); color: var(--ink); }
.duo__who--adam .duo__plate { text-align: end; }
.duo__chat {
  position: relative; z-index: 1; align-self: center; display: grid; gap: var(--s-2); padding: calc(var(--duo-face) * .2 + var(--s-3)) var(--s-4);
  border-radius: var(--r-lg); background: var(--chat); box-shadow: var(--shadow-win);
}
.duo__ask { justify-self: end; width: 92%; }
.duo__chip { width: 96%; }
.duo__reply { width: 100%; }
.duo__chat img { display: block; }
.duo__chat :is(img.shot--light, img.shot--dark) { display: none; }
:root:not([data-theme="dark"]) .duo__chat img.shot--light, :root[data-theme="dark"] .duo__chat img.shot--dark { display: block; }
/* Adam lit as the task reaches him: a ring in his colour and the app's presence dot */
.duo__lit {
  position: absolute; z-index: 0; inset-inline-end: calc(var(--s-2) + var(--duo-face) * .04); top: 50%;
  width: calc(var(--duo-face) * .92); aspect-ratio: 1; margin-top: calc(var(--duo-face) * -.46); border-radius: 50%;
  background: color-mix(in oklab, var(--c) 22%, var(--stage)); box-shadow: 0 0 0 2px color-mix(in oklab, var(--c) 60%, transparent);
}
.duo__lit::after {
  content: ""; position: absolute; inset-inline-end: 9%; bottom: 9%; width: 12%; aspect-ratio: 1; border-radius: 50%;
  background: var(--presence); box-shadow: 0 0 0 3px var(--stage); z-index: 2;
}
.duo :is(.duo__ask, .duo__chip, .duo__reply, .duo__lit) { transition: opacity var(--m-sheet) var(--m-ease); }
.duo__frame[data-reset] * { transition: none !important; }
.duo .loop-pause { font: 500 13px/1 var(--font-text); z-index: 3; }
:root[dir="rtl"] .duo .loop-pause { right: auto; left: 12px; }
@media (max-width: 1023px) {
  /* a tablet or a phone: the picture takes what the first screen leaves under the form (the kit's split
     hero): the two faces with their names side by side on one row, the chat under them, its top edge
     under the faces' feet */
  .duo { --duo-face: clamp(48px, 7.4vw, 76px); }
  .duo__frame {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; align-content: center;
    column-gap: var(--s-3); padding: var(--s-3);
  }
  .duo__who { margin: 0; padding: 0; grid-row: 1; }
  .duo__who--maya { grid-column: 1; justify-self: start; }
  .duo__who--adam { grid-column: 2; justify-self: end; }
  .duo__lit { inset-inline-end: calc(var(--duo-face) * .04); }
  .duo__plate { max-width: 13ch; font-size: var(--t-label); line-height: 1.3; }
  /* the names stand level with the faces' eyes, so a two-line name ends above the chat's edge */
  .duo__who .duo__plate { align-self: start; margin-top: calc(var(--duo-face) * .14); }
  .duo__chat {
    grid-row: 2; grid-column: 1 / -1; justify-self: center; width: min(100%, 520px); align-self: start;
    margin-top: calc(var(--duo-face) * -.18); padding: calc(var(--duo-face) * .18 + var(--s-2)) var(--s-3) var(--s-3); gap: var(--s-2);
  }
  .duo__ask { width: 76%; }
  .duo__chip { width: 92%; }
  .duo__reply { width: 84%; }
}
/* a phone: the words close up a step and the picture keeps at least 200px under the form, so the hero
   (words, form and picture) is still one screen at 390x844 in both languages */
@media (max-width: 639px) {
  .hero--split .hero__text > :is(.hero__lead, .join) { margin-top: var(--s-4); }
  .hero--split .hero__media { min-height: 200px; margin-top: var(--s-4); }
  .duo__chat { width: 80%; }
}

/* ---------- team: Maya first and large, then the five in the app's order ---------- */
.team__head { margin-bottom: var(--head-gap); }
.team__grid { align-items: start; row-gap: var(--s-6); }
.team__lead {
  display: grid; justify-items: start; gap: var(--s-3); padding: clamp(var(--s-5), 2.4vw, var(--s-7));
  border-radius: var(--r-lg); background: color-mix(in oklab, var(--c) 11%, var(--p-bg));
}
.team__lead .fig { width: clamp(150px, 15vw, 210px); margin-block: var(--s-2) var(--s-3); }
.team__first {
  display: inline-flex; align-items: center; min-height: 28px; padding-inline: var(--s-3); border-radius: 999px;
  font: 500 var(--t-label)/1.3 var(--font-text); color: var(--ink); background: color-mix(in oklab, var(--c) 18%, var(--p-bg));
}
.team h3 { font: 500 var(--t-h3)/1.3 var(--font-text); letter-spacing: 0; }
.team__job { margin-top: -2px; font: 400 var(--t-small)/1.4 var(--font-text); letter-spacing: 0; color: var(--muted); }
.team__lead { gap: var(--s-2); }
.team__line { max-width: 52ch; color: var(--ink); }
.team__lead .team__line { font-size: var(--t-lead); line-height: 1.55; }
.team__list { display: grid; }
.team__m { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-5); align-items: center; padding-block: var(--s-4); border-top: 1px solid var(--line); }
.team__m:first-child { border-top: 0; padding-top: 0; }
.team__m .fig { width: 76px; }
.team__words { display: grid; gap: var(--s-1); justify-items: start; }
.team__doing {
  display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-1); padding: 3px var(--s-3);
  border-radius: 999px; font-size: var(--t-small); line-height: 1.4; color: var(--work-ink); background: var(--work-bg);
}
.team__doing .dot { background: var(--presence); }
@media (max-width: 1023px) {
  .team__lead, .team__list { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .team__m { column-gap: var(--s-4); }
  .team__m .fig { width: 60px; }
  .team__lead .fig { width: 132px; }
}

/* ---------- how, the signature: the route You, Maya, Adam, then the three chapters ---------- */
.how__top { display: grid; gap: var(--s-7); padding-bottom: var(--s-4); }
[data-moment="pinned-chapters"].how.is-live .how__top { grid-column: 1 / -1; }
.how__head { margin-bottom: 0; }
.route { position: relative; --rf: clamp(64px, 7vw, 104px); }
.route__stops { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.route__stop { display: grid; align-content: start; justify-items: start; gap: 2px; text-align: start; }
.route__stop--maya { justify-items: center; text-align: center; }
.route__stop--adam { justify-items: end; text-align: end; }
.route__face { width: var(--rf); height: var(--rf); margin-bottom: var(--s-3); }
.route__face.fig .ccj-wrap { width: 80%; height: 80%; margin: 10%; }
/* "You" is the company, as the app draws it at the top of the rail: its initial on a blue tile */
.route__tile {
  display: grid; place-items: center; box-sizing: border-box; border: calc(var(--rf) * .2) solid transparent; border-radius: 34%;
  background: var(--p-accent); color: var(--p-accent-ink); font: 500 calc(var(--rf) * .26)/1 var(--font-text); background-clip: padding-box;
}
.route__name { font: 500 var(--t-h3)/1.3 var(--font-text); }
.route__words { max-width: 24ch; font-size: var(--t-small); line-height: 1.45; color: var(--muted); }
/* the track: from the first face's centre to the last one's; --p (motion.js) follows the scroll, --f is
   how far the request has come, the line fills to it and a face lights as it is reached */
.route__track {
  position: absolute; z-index: 0; top: 0; left: calc(var(--rf) / 2); right: calc(var(--rf) / 2); height: var(--rf);
  pointer-events: none; --f: clamp(0, calc((var(--p, 1) - .22) / .46), 1);
}
.route__base, .route__fill { position: absolute; left: 0; right: 0; top: 50%; }
.route__base { height: 2px; margin-top: -.5px; border-radius: 1px; background: var(--line-strong); }
.route__fill { height: 2px; margin-top: -.5px; border-radius: 1px; background: var(--p-accent); transform: scaleX(var(--f)); transform-origin: 0 50%; }
:root[dir="rtl"] .route__fill { transform-origin: 100% 50%; }
.route__halo {
  position: absolute; top: 50%; width: var(--rf); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: color-mix(in oklab, var(--c, var(--p-accent)) 22%, var(--p-bg));
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--c, var(--p-accent)) 70%, transparent);
}
.route__halo--you { left: 0; }
.route__halo--maya { left: 50%; opacity: clamp(0, calc((var(--f) - .44) * 12), 1); }
.route__halo--adam { left: 100%; opacity: clamp(0, calc((var(--f) - .93) * 15), 1); }
:root[dir="rtl"] .route__halo--you { left: 100%; }
:root[dir="rtl"] .route__halo--adam { left: 0; }
/* the chapters: the kit's pinned-chapters; each chapter's picture is a piece of the real chat on the chat's own ground */
.how .mo-pc__steps { counter-reset: none; }
.how .mo-pc__step h3 { display: flex; align-items: baseline; gap: var(--s-3); font-size: var(--t-h3); }
.how__n {
  display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; transform: translateY(-2px);
  border: 1px solid var(--line-strong); font: 500 var(--t-label)/1 var(--font-text); color: var(--ink);
}
.how .mo-pc__step p { max-width: 50ch; }
[data-moment="pinned-chapters"].how .how__shot {
  display: grid; place-items: center; overflow: hidden;
  border-radius: var(--r-lg); background: var(--chat); box-shadow: var(--shadow-win), 0 0 0 1px var(--line);
}
[data-moment="pinned-chapters"].how .how__shot > img { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; }
/* the first two pieces start under the chat's head, as the messages do in the app: they stand at the top */
[data-moment="pinned-chapters"].how :is(.how__shot--chat-ask, .how__shot--chat-near) > img { object-position: 50% 0; }
[data-moment="pinned-chapters"].how .how__shot > img.shot--dark, :root[data-theme="dark"] [data-moment="pinned-chapters"].how .how__shot > img.shot--light { display: none; }
:root[data-theme="dark"] [data-moment="pinned-chapters"].how .how__shot > img.shot--dark { display: block; }
.how .how__frame { padding: 0; border: 0; background: none; overflow: visible; }
/* a desktop: five columns of words, the frame on seven and sticking while the chapters pass */
[data-moment="pinned-chapters"].how.is-live .mo-pc__text { grid-column: 1 / span 5; }
[data-moment="pinned-chapters"].how.is-live .mo-pc__visuals { grid-column: 6 / -1; }
/* the chapters close up: each as tall as its words and the moment's own step air, so the three read as
   one view beside the frame */
[data-moment="pinned-chapters"].how.is-live .mo-pc__steps { gap: var(--s-3); }
[data-moment="pinned-chapters"].how.is-live .mo-pc__step { padding-block: var(--s-5); }
[data-moment="pinned-chapters"].how.is-live .mo-pc__visuals img { max-height: none; }
/* each frame takes its own piece's shape, so the piece fills it edge to edge and nothing of the frame is
   empty: the request alone (1296 x 300), the handoff and the reply (1010 x 440), the chat with the tab
   (2272 x 1433) */
[data-moment="pinned-chapters"].how.is-live .how__shot--chat-ask { aspect-ratio: 1296 / 300; }
[data-moment="pinned-chapters"].how.is-live .how__shot--chat-near { aspect-ratio: 1010 / 440; }
[data-moment="pinned-chapters"].how.is-live .how__shot--chat-pane { aspect-ratio: 2272 / 1433; }
[data-moment="pinned-chapters"].how.is-live .how__shot > img { object-fit: cover; }
@media (min-width: 640px) {
  [data-moment="pinned-chapters"].how:not(.is-live) .mo-pc__visual > img { max-height: none; }
}
@media (max-width: 639px) {
  .route__name { font-size: var(--t-body); }
  .route__words { font-size: var(--t-label); }
  [data-moment="pinned-chapters"].how:not(.is-live) .mo-pc__visual > img { aspect-ratio: auto; max-height: none; }
}

/* ---------- charge: the four kinds of step that stop lead, beside the real Decisions screen ---------- */
.charge__grid { align-items: center; row-gap: var(--s-7); }
.charge__say { display: grid; gap: var(--s-4); justify-items: start; }
.charge__label { margin-top: var(--s-3); font: 500 var(--t-label)/1.4 var(--font-text); color: var(--muted); }
.charge__stops { display: grid; width: 100%; }
.charge__stops li {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: baseline; padding-block: var(--s-3);
  border-top: 1px solid var(--line); font: var(--display-weight) clamp(20px, 1.8vw, 26px)/1.3 var(--font-display); letter-spacing: var(--display-tracking);
}
.charge__stops li:last-child { border-bottom: 1px solid var(--line); }
.charge__n { font: 500 var(--t-small)/1 var(--font-text); color: var(--p-accent); letter-spacing: 0; }
.charge__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-3); }
.charge__facts dt { font: 500 var(--t-small)/1.4 var(--font-text); }
.charge__facts dd { margin: var(--s-1) 0 0; font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.charge__shot { margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--rail); box-shadow: var(--shadow-win); }
.charge__shot img { display: block; }
@media (max-width: 1023px) { .charge__say, .charge__shot { grid-column: 1 / -1; } }
@media (max-width: 639px) { .charge__facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- apps: what works today beside the spring page in its tab, then what comes next ---------- */
.apps__today { align-items: center; row-gap: var(--s-7); }
.apps__label { display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); font: 500 var(--t-label)/1.4 var(--font-text); color: var(--muted); }
.apps__label .dot { background: var(--presence); }
.apps__items { display: grid; }
.apps__items li { display: grid; gap: var(--s-1); padding-block: var(--s-4); border-top: 1px solid var(--line); }
.apps__items li:last-child { border-bottom: 1px solid var(--line); }
.apps h3 { font: 500 var(--t-h3)/1.3 var(--font-text); letter-spacing: 0; }
.apps__items p, .apps__app p, .apps__also p { color: var(--muted); }
.apps__tab { margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--tab); box-shadow: var(--shadow-win); }
.apps__tab img { display: block; }
.apps__soon { margin-top: var(--s-9); }
.apps__label--soon { width: 100%; }
.apps__apps { row-gap: var(--s-6); }
.apps__app { grid-column: auto / span 4; display: grid; gap: var(--s-2); justify-items: start; align-content: start; }
.apps__app img { height: 40px; width: auto; margin-bottom: var(--s-2); }
.apps__more { margin-top: var(--s-8); }
.apps__foot { margin-top: var(--s-7); align-items: start; row-gap: var(--s-6); }
.apps__more-label { margin-bottom: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.apps__logos { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.apps__logos li { display: grid; place-items: center; height: 64px; border-radius: var(--r-md); background: #ffffff; border: 1px solid var(--line); }
.apps__logos img { max-width: 26px; max-height: 26px; width: auto; height: auto; }
.apps__logos .logo--dark { display: none; }
.apps__also { display: grid; gap: var(--s-2); justify-items: start; }
@media (max-width: 1023px) {
  .apps__col, .apps__tab, .apps__also { grid-column: 1 / -1; }
  .apps__logos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .apps__app { grid-column: auto / span 6; }
}
@media (max-width: 639px) { .apps__app { grid-column: 1 / -1; } .apps__soon { margin-top: var(--s-8); } .apps__logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } .apps__logos li { height: 56px; } }

/* ---------- assistant: the turn, the kit's statement: the heading as its label, the sentence set large ---------- */
/* the heading reads as the label of the sentence: the h2's size, in the muted ink; the sentence in the ink */
.assistant .assistant__head { color: var(--muted); }
.assistant .statement__text { color: var(--ink); }
:root[lang="ar"] main > section.statement > .wrap > .statement__text { line-height: 1.45; }

/* ---------- own: the words, then the two account icons and the three facts ---------- */
.account__grid { align-items: start; row-gap: var(--s-6); }
.account__say { display: grid; gap: var(--s-4); justify-items: start; }
.account__facts { display: grid; }
.account__fact { display: grid; gap: var(--s-1); padding-block: var(--s-5); border-top: 1px solid var(--line); }
.account__fact:first-child { border-top: 0; padding-top: 0; }
.account__fact h3 { font: 500 var(--t-h3)/1.3 var(--font-text); letter-spacing: 0; }
.account__fact p { color: var(--muted); }
.account__marks { display: flex; gap: var(--s-3); margin-bottom: var(--s-3); }
.account__marks img {
  width: 56px; height: 56px; padding: 10px; box-sizing: border-box; border-radius: var(--r-md);
  background: #ffffff; border: 1px solid var(--line);
}
@media (max-width: 1023px) { .account__say, .account__facts { grid-column: 1 / -1; } }

/* ---------- faq: every answer open, the kit's two columns on the page grid ---------- */
.questions .faq__item { align-content: start; }
.questions .faq__item > h3 { font-size: var(--t-h3); }

/* ---------- the close: form-photo, the words and the form beside Maya on the fluted-glass field ---------- */
/* the button is the page's own action, drawn as everywhere else on the page (it stands on the page's ground) */
.join-close { --gradient-action: var(--p-action); --gradient-action-ink: var(--p-action-ink); }
.join-close__grid { align-items: stretch; row-gap: var(--s-6); }
.join-close__say { display: grid; gap: var(--s-4); justify-items: start; align-content: start; align-self: center; }
.join-close__say .join { margin-top: var(--s-3); }
/* the field is a soft pastel of Lado's blues with a warm sand tint; its pale ground is the shader's own box
   (its colour until the field draws, and with no WebGL). A dark page sees it at 18% over a deep Lado blue,
   clearly lighter than the page's night */
.show-field.join-close__band {
  aspect-ratio: auto; min-height: 0; border-radius: var(--r-lg);
  display: grid; padding: 0; background: #1e2b48;
}
.join-close__band > [data-show-field] { border-radius: inherit; overflow: hidden; background: #e9f0fb; }
:root[data-theme="dark"] .join-close__band > [data-show-field] { opacity: .22; }
:root[dir="rtl"] .join-close [data-show-field] { transform: scaleX(-1); }
.join-close__maya { position: relative; display: grid; place-items: center; place-self: stretch; margin: 0; padding: var(--s-4); }
/* as tall as the words beside her allow: the band takes the words' height */
.join-close__maya .fig { width: clamp(232px, 20vw, 288px); }
/* a soft contact shadow under her feet, in the band's own blue */
.join-close__maya .fig::after { inset-inline: 24%; bottom: 4%; height: 6%; background: rgb(39 57 90 / .22); filter: blur(7px); }
:root[data-theme="dark"] .join-close__maya .fig::after { background: rgb(0 0 0 / .4); }
@media (max-width: 1023px) {
  .join-close__say, .join-close__band { grid-column: 1 / -1; }
  .show-field.join-close__band { min-height: 280px; }
  .join-close__maya .fig { width: 232px; }
}
@media (max-width: 639px) { .show-field.join-close__band { min-height: 240px; } .join-close__maya .fig { width: 200px; } }

/* ---------- the policy page: one article to read, a list of its sections beside it ---------- */
.doc { padding-block: calc(var(--nav) + var(--s-8)) var(--s-9); }
.doc__head { display: grid; gap: var(--s-5); justify-items: start; padding-bottom: var(--s-7); margin-bottom: var(--s-7); border-bottom: 1px solid var(--line); }
.doc__head h1 { font-size: var(--t-h2); line-height: 1.1; }
:root[lang="ar"] .doc__head h1 { line-height: 1.4; }
.doc__intro { max-width: 34em; font-size: var(--t-lead); line-height: 1.55; }
:root[lang="ar"] .doc__intro { line-height: 1.85; }
.doc__updated { font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.doc__grid { row-gap: var(--s-7); }
.doc__toc, .doc__body { grid-column: 1 / -1; min-width: 0; }

/* the list of sections: a plain list above the text, a column that stays beside it from 1024 up */
.doc__toc-title { margin-bottom: var(--s-2); font: 500 var(--t-label)/1.4 var(--font-text); color: var(--muted); }
.doc__toc ol { font-size: var(--t-small); line-height: 1.5; }
.doc__toc li { break-inside: avoid; }
.doc__toc a { display: flex; align-items: center; min-height: 44px; color: var(--ink); }
.doc__toc a:hover { color: var(--action); }
@media (min-width: 640px) and (max-width: 1023px) { .doc__toc ol { columns: 2; column-gap: var(--gutter); } }
@media (min-width: 1024px) {
  /* the text starts on the kit's split line (column 6), the line the landing page's splits use */
  .doc__toc {
    grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--nav) + var(--s-6));
    max-height: calc(100svh - var(--nav) - var(--s-8)); overflow-y: auto;
  }
  .doc__body { grid-column: 6 / -1; }
  .doc__toc-title { margin-bottom: var(--s-3); }
  .doc__toc a { min-height: 0; padding-block: 6px; color: var(--muted); }
  .doc__toc a:hover { color: var(--ink); }
}

/* the text */
.doc__body { font-size: var(--t-body); line-height: 1.7; overflow-wrap: break-word; }
:root[lang="ar"] .doc__body { line-height: 1.95; }
.doc__body > section { scroll-margin-top: calc(var(--nav) + var(--s-5)); }
.doc__body > section + section { margin-top: var(--s-8); }
.doc__body h2 { margin-bottom: var(--s-4); font-size: var(--t-h3); line-height: 1.25; }
:root[lang="ar"] .doc__body h2 { line-height: 1.5; }
.doc__body :is(p, ul) { max-width: 34em; }
.doc__body :is(p, ul, .doc__tablebox) + :is(p, ul) { margin-top: var(--s-4); }
.doc__body ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
/* the dot hangs in the margin, so a list's words start on the same line as the paragraphs around it */
.doc__body li { position: relative; }
.doc__body li::before {
  content: ""; position: absolute; inset-inline-start: calc(0px - var(--s-4)); top: .62em; top: calc(.5lh - 3px);
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.doc__body strong { font-weight: 500; }
/* a link in the text: the words stay in the text colour, the line under them is Lado's blue */
.doc__body :is(p, li, td) a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--action); }
.doc__body :is(p, li, td) a:hover { color: var(--action); }
.doc__body code { font: 400 var(--t-label)/1.5 var(--font-mono); overflow-wrap: anywhere; unicode-bidi: isolate; }
/* the short version comes first and a line closes it: no box, its words sit on the same edge as the rest */
.doc__short { padding-bottom: var(--s-8); border-bottom: 1px solid var(--line); }

/* the permissions table: a table where it has the room, one block per permission where it has not */
.doc__tablebox { container-type: inline-size; margin-block: var(--s-6); }
.doc__table { width: 100%; border-collapse: collapse; table-layout: fixed; line-height: 1.55; }
:root[lang="ar"] .doc__table { line-height: 1.8; }
.doc__table caption { caption-side: top; padding-bottom: var(--s-3); text-align: start; font-size: var(--t-small); font-weight: 500; line-height: 1.5; }
.doc__table th { padding-block: var(--s-3); padding-inline: 0 var(--s-5); border-bottom: 1px solid var(--line-strong); text-align: start; vertical-align: bottom; font: 500 var(--t-label)/1.4 var(--font-text); color: var(--muted); }
.doc__table td { padding-block: var(--s-4); padding-inline: 0 var(--s-5); border-bottom: 1px solid var(--line); vertical-align: top; }
.doc__table :is(th, td):last-child { padding-inline-end: 0; }
.doc__table th:nth-child(1) { width: 18%; }
.doc__table th:nth-child(2) { width: 42%; }
.doc__table td:first-child { font-weight: 500; }
@container (max-width: 599px) {
  .doc__table, .doc__table caption, .doc__table tbody, .doc__table tr, .doc__table td { display: block; }
  .doc__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .doc__table tr { padding-block: var(--s-4); border-top: 1px solid var(--line); }
  .doc__table tr:last-child { border-bottom: 1px solid var(--line); }
  .doc__table td { padding: 0; border: 0; }
  .doc__table td + td { margin-top: var(--s-3); }
  .doc__table td:not(:first-child)::before { content: attr(data-label); display: block; font: 500 var(--t-label)/1.4 var(--font-text); color: var(--muted); }
}
@media (max-width: 639px) {
  .doc { padding-block: calc(var(--nav) + var(--s-7)) var(--s-8); }
  .doc__head { padding-bottom: var(--s-6); margin-bottom: var(--s-6); }
  .doc__body > section + section { margin-top: var(--s-7); }
  .doc__short { padding-bottom: var(--s-7); }
}

/* ---------- the not-found page: what happened in one line, and the two ways out ---------- */
.lost { display: grid; align-items: center; min-height: 72svh; padding-block: calc(var(--nav) + var(--s-8)) var(--s-9); }
.lost > .wrap { display: grid; gap: var(--s-5); justify-items: start; }
.lost h1 { font-size: var(--t-h2); line-height: 1.1; }
:root[lang="ar"] .lost h1 { line-height: 1.4; }
.lost__line { max-width: 34em; font-size: var(--t-lead); line-height: 1.55; }
:root[lang="ar"] .lost__line { line-height: 1.85; }
.lost__ways { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-3); }
/* the second way out is a link in the text's own colour, with Lado's blue line under it (as in the policy) */
.lost__link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--action); }
.lost__link:hover { color: var(--action); }
