/*
 * Tutela website: the whole design system.
 * Built on the app's own palette and typeface (TutelaParent/src/shared/theme): IBM Plex Sans Arabic / IBM Plex Sans,
 * ink #10142F, violet #5236E8. White pages split by hairlines, one tinted band, one dark band. Real app screens only,
 * never more than two per section, never on a coloured slab.
 * Flat colour: no gradients, no glow, no hover lift.
 */

/* ---------------------------------------------------------------- Tokens */
:root {
  color-scheme: light;
  --paper:   #FFFFFF;
  --sand:    #F4F5FA;
  --tint:    #F4F5FA;
  --sheet:   #FFFFFF;
  --ink:     #10142F;
  --ink-2:   #3F4766;
  --ink-3:   #5A6280;
  --rule:    #E2E5EF;
  --rule-2:  #10142F;
  --brand:   #5236E8;
  --brand-hover: #4329D1;
  --brand-ink: #3B23C2;
  --stage:   #5236E8;
  --night:   #10142F;
  --night-2: #1B2042;
  --device:  #0E1022;
  --ph-bg:   #FFF1B8;
  --ph-line: #B58A00;
  --field:   #C9CEDD;
  --error:   #B3261E;
  --ink-hover:  #262B4A;
  --ink-active: #0A0D22;

  --f-display: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-text-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-text-en: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-text: var(--f-text-ar);

  /* Type scale: Arabic values; English overrides below */
  --fs-hero: clamp(42px, 5.8vw, 82px);  --lh-hero: 1.28;
  --fs-h2: clamp(29px, 3vw, 42px);       --lh-h2: 1.4;
  --fs-h3: 24px;   --lh-h3: 1.45;
  --fs-lead: 20px; --lh-lead: 1.8;
  --fs-body: 17.5px; --lh-body: 1.85;
  --fs-term: 19px; --lh-term: 1.5;
  --fw-display: 700;
  --fs-cap: 14.5px; --lh-cap: 1.75;
  --fs-label: 14px;
  --fs-nav: 15.5px;
  --fs-summary: 19px;
  --ls-display: 0;
  --measure: 34em;
  --measure-lead: 30em;
  --measure-doc: 36em;
  --measure-pagelead: 34em;

  --gutter: 40px;
  --gap: 24px;
}

[lang="en"] {
  --f-text: var(--f-text-en);
  --f-display: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --fs-hero: clamp(42px, 5.8vw, 80px);  --lh-hero: 1.02;
  --fs-h2: clamp(29px, 3vw, 42px);      --lh-h2: 1.14;
  --fs-h3: 23px;   --lh-h3: 1.25;
  --fs-lead: 19.5px; --lh-lead: 1.55;
  --fs-body: 17px; --lh-body: 1.6;
  --fs-term: 18.5px; --lh-term: 1.35;
  --fw-display: 600;
  --fs-cap: 14px;  --lh-cap: 1.5;
  --fs-label: 13px;
  --fs-nav: 15px;
  --fs-summary: 18px;
  --ls-display: -0.022em;
  --measure: 68ch;
  --measure-lead: 56ch;
  --measure-doc: 68ch;
  --measure-pagelead: 60ch;
}
[lang="ar"] { --f-text: var(--f-text-ar); }
:where([lang="en"]) { font-family: var(--f-text-en); }
:where([lang="ar"]) { font-family: var(--f-text-ar); }

@media (max-width: 1099px) { :root { --gutter: 28px; --gap: 20px; } }
@media (max-width: 719px)  { :root { --gutter: 16px; --gap: 16px; } }

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
figure { margin: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: var(--fw-display, 700); color: var(--ink); text-wrap: balance; }
b, strong { font-weight: 600; }
a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .12s, background-color .12s, text-decoration-color .12s;
}
input, textarea, select, button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(82, 54, 232, .16); color: var(--ink); }

/* ---------------------------------------------------------------- Utilities */
.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
@media (max-width: 1099px) {
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .grid > *, .rules__main > *, .rules__sticky > *, .reports__body > * { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-cap); line-height: var(--lh-cap); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.mt-0 { margin-top: 0 !important; }
.mt-lg { margin-top: 40px !important; }
.placeholder {
  background: var(--ph-bg);
  border: 1px dashed var(--ph-line);
  border-radius: 2px;
  padding: 0 4px;
  color: var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px;
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- Type helpers */
.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--ink-2);
  max-width: var(--measure-lead);
}
.h2, .sec h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-display);
  font-weight: 500;
}
:where([lang="ar"]) .h2, :where([lang="ar"]) .sec h2 { letter-spacing: 0; }
.fine { font-size: var(--fs-cap); line-height: var(--lh-cap); color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px;
  border: 0; border-radius: 10px;
  background: var(--brand); color: #fff;
  font-family: var(--f-text); font-size: 16px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .12s, color .12s;
}
.btn:hover { background: var(--brand-hover); color: #fff; }
.btn:active { background: var(--brand-ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: default; }

.more {
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(82, 54, 232, .35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.more:hover { color: var(--brand-hover); text-decoration-color: currentColor; }

/* Store badges: the only inline SVGs left are the stores' own marks */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 18px 0 14px;
  border-radius: 10px;
  background: #000; color: #fff;
  text-decoration: none; direction: ltr;
  transition: background-color .12s;
}
.store-badge:hover { background: #26262B; color: #fff; }
.store-badge svg { width: 22px; height: 22px; flex: none; }
.sb-text { display: flex; flex-direction: column; font-family: var(--f-text-en); line-height: 1.1; text-align: left; }
.sb-small { font-size: 10.5px; letter-spacing: .02em; opacity: .85; }
.sb-big { font-size: 17px; font-weight: 500; }

.toast {
  position: fixed; z-index: 60; inset-inline: 16px; bottom: 16px;
  margin-inline: auto; width: fit-content; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 6px;
  background: var(--ink); color: var(--paper);
  font-size: var(--fs-cap); line-height: 1.5;
  visibility: hidden;
}
.toast.is-shown { visibility: visible; }

/* ---------------------------------------------------------------- Header */
.site-header { position: relative; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: auto; height: 26px; }
.brand-name { font-family: var(--f-text-ar); font-weight: 700; font-size: 23px; line-height: 1; padding-bottom: 3px; }
:where([lang="en"]) .brand-name {
  font-family: var(--f-text-en); font-size: 15px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding-bottom: 0;
}
.main-nav { margin-inline-start: auto; display: flex; align-items: center; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
  display: inline-block; padding-block: 6px;
  color: var(--ink); font-size: var(--fs-nav); font-weight: 500; line-height: 1.4;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.main-nav ul a:hover { color: var(--brand-ink); }
.main-nav ul a[aria-current="page"], .main-nav ul a.is-active { color: var(--brand-ink); text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.main-nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.lang-switch {
  color: var(--ink); font-size: var(--fs-nav); font-weight: 500;
  text-decoration: none;
}
.lang-switch:hover { color: var(--brand-ink); }
.nav-toggle { display: none; }

@media (max-width: 1099px) {
  .header-inner { height: 64px; gap: 20px; }
  .header-actions { margin-inline-start: auto; gap: 18px; }
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
    background: transparent; border: 1px solid var(--field); border-radius: 10px;
    color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer;
  }
  .nav-toggle[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .main-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    margin: 0; padding: 4px var(--gutter) 28px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--rule); }
  .main-nav ul a { display: block; padding: 14px 0; font-size: 20px; }
  .main-nav .nav-cta { display: inline-flex; margin-top: 24px; }
}

/* ---------------------------------------------------------------- Real screens */
.phone { container-type: inline-size; }
.phone__glass { background: var(--device); padding: 2.4cqw; border-radius: 15.5cqw; }
.phone__glass img { width: 100%; height: auto; border-radius: 13.2cqw; }
.crop { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: #fff; }
.crop img { width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; object-position: 50% var(--y); }
.shot figcaption, .crop-fig figcaption {
  margin-top: 14px;
  font-size: var(--fs-cap); line-height: var(--lh-cap); color: var(--ink-3);
  text-align: start;
}
figcaption b { font-weight: inherit; color: inherit; }

/* ---------------------------------------------------------------- Home sections */
.sec { padding-block: var(--pt, 120px) var(--pb, 128px); }
.sec--tint { background: var(--tint); }
.sec--dark { background: var(--night); color: #fff; }
.sec--dark h2, .sec--dark h3 { color: #fff; }
/* Two white sections in a row are split by a container-wide hairline, not by a new band colour */
.sec--rule { padding-top: 0; }
.sec--rule > .container { border-top: 1px solid var(--rule); padding-top: var(--pt, 120px); }
@media (max-width: 1099px) { .sec { --pt: 88px; --pb: 96px; } }
@media (max-width: 719px)  { .sec { --pt: 64px; --pb: 72px; } }

/* Hero: the headline, and one phone standing on the hero's floor line */
.hero { border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero > .container { padding-top: 72px; align-items: end; }
.hero h1 {
  font-size: var(--fs-hero); line-height: var(--lh-hero); letter-spacing: var(--ls-display);
  max-width: 9em;
}
:where([lang="ar"]) .hero h1 { letter-spacing: 0; }
.hero__text { align-self: center; padding-bottom: 96px; }
.hero .lead { margin-top: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 40px; }
.hero .fine { margin-top: 18px; }
.hero__shot { height: 600px; overflow: hidden; }
.hero__shot .phone { width: 330px; margin-inline: auto; }
@media (min-width: 1100px) {
  .hero__text { grid-column: 1 / 8; }
  .hero__shot { grid-column: 8 / 13; }
}
@media (max-width: 1099px) {
  .hero > .container { padding-top: 48px; }
  .hero__text { max-width: 640px; padding-bottom: 0; }
  .hero__shot { margin-top: 56px; height: 500px; }
  .hero__shot .phone { width: 300px; }
}
@media (max-width: 719px) {
  .hero > .container { padding-top: 32px; }
  .hero__actions { margin-top: 28px; }
  .hero__shot { margin-top: 44px; height: 400px; }
  .hero__shot .phone { width: min(76vw, 270px); }
}

/* How it works: the two apps side by side, the child's set lower */
.how__prose p { max-width: var(--measure); color: var(--ink-2); }
.how__prose p + p { margin-top: 1em; }
.pair { display: flex; align-items: flex-start; gap: 32px; }
.pair .shot { width: 250px; flex: none; }
.pair__low { margin-top: 112px; }
@media (min-width: 1100px) {
  .how__pair { grid-column: 1 / 7; grid-row: 1 / 3; }
  .how__title { grid-column: 7 / 13; grid-row: 1; align-self: end; }
  .how__prose { grid-column: 8 / 13; grid-row: 2; align-self: start; margin-top: 28px; }
}
@media (max-width: 1099px) {
  .how__prose { margin-top: 24px; }
  .how__pair { margin-top: 48px; }
}
@media (max-width: 719px) {
  .pair { gap: 16px; }
  .pair .shot { width: calc(50% - 8px); }
  .pair__low { margin-top: 56px; }
}

/* Rules */
.rules .lead { margin-top: 20px; }
.spec { margin: 44px 0 0; }
.spec > div {
  display: grid; grid-template-columns: 28% minmax(0, 1fr); column-gap: 24px;
  padding-block: 18px; border-top: 1px solid var(--rule);
}
.spec > div:last-child { border-bottom: 1px solid var(--rule); }
.spec dt { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-term); line-height: var(--lh-term); }
.spec dd { margin: 0; color: var(--ink-2); }
.note {
  margin-top: 32px; padding-top: 16px; border-top: 2px solid var(--ink);
  font-size: var(--fs-cap); line-height: var(--lh-cap); color: var(--ink-2);
}
.rules .shot { width: 260px; }
@media (min-width: 1100px) {
  .rules__main { grid-column: 1 / 8; grid-row: 1; }
  .rules__side { grid-column: 9 / 13; grid-row: 1; }
  .rules__sticky { position: sticky; top: 32px; }
}
@media (max-width: 1099px) {
  .rules__main, .rules__side, .rules__sticky { display: contents; }
  .rules h2 { order: 1; }
  .rules .lead { order: 2; }
  .rules .shot { order: 3; width: min(60vw, 260px); margin-top: 40px; }
  .rules .spec { order: 4; }
  .rules .note { order: 5; }
  .rules .spec > div:last-child { border-bottom: 0; }
}
@media (max-width: 719px) {
  .spec > div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
}

/* Requests: the child's words as the headline, two screens set off from each other */
.sec .ask__title { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.3; text-indent: -0.4em; }  /* hang the opening quote mark */
:where([lang="en"]) .sec .ask__title { line-height: 1.08; }
.ask__stand { margin-top: 24px; color: var(--ink-2); max-width: var(--measure); }
.frames { list-style: none; margin: 0; padding: 0; }
.frame__label { margin: 0 0 14px; font-size: var(--fs-cap); font-weight: 600; line-height: 20px; color: var(--ink); }
@media (min-width: 1100px) {
  .ask__text { grid-column: 1 / 6; grid-row: 1; align-self: start; position: sticky; top: 40px; }
  .frames { grid-column: 7 / 13; grid-row: 1; display: flex; gap: 40px; }
  .frame { width: 250px; flex: none; }
  .frame + .frame { margin-top: 140px; }
}
@media (max-width: 1099px) {
  .frames { margin-top: 32px; border-top: 1px solid var(--rule); }
  .frame { padding-block: 24px; border-bottom: 1px solid var(--rule); }
  .frame figure {
    display: grid; grid-template-columns: min(38vw, 220px) minmax(0, 1fr); column-gap: 20px;
    grid-template-rows: auto 1fr; grid-template-areas: "phone label" "phone cap";
  }
  .frame .phone { grid-area: phone; }
  .frame__label { grid-area: label; }
  .frame figcaption { grid-area: cap; margin-top: 0; }
}

/* Reports */
.reports__text { margin-top: 24px; max-width: var(--measure); color: var(--ink-2); }
.reports .rows { margin-top: 32px; }
@media (min-width: 1100px) {
  .reports__crop { grid-column: 1 / 6; grid-row: 1; }
  .reports__body { grid-column: 7 / 13; grid-row: 1; }
}
@media (max-width: 1099px) {
  .reports__body { display: contents; }
  .reports h2 { order: 1; }
  .reports__text { order: 2; }
  .reports__crop { order: 3; margin-top: 32px; max-width: 520px; }
  .reports .rows { order: 4; }
}

/* Hairline rows */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { padding: 14px 0; border-top: 1px solid var(--rule); }
.rows > li:last-child { border-bottom: 1px solid var(--rule); }

/* Location and SOS, on the dark panel */
.essay { display: flow-root; }
.essay h3 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-display); margin-bottom: 18px; max-width: 16em; }
:where([lang="ar"]) .essay h3 { letter-spacing: 0; }
.essay p { max-width: var(--measure); color: #C9CDE3; }
.essay + .essay { margin-top: 56px; padding-top: 56px; border-top: 1px solid rgba(255, 255, 255, .14); }
.essay__crop { float: right; width: 220px; margin: 6px 0 16px 36px; }
[dir="rtl"] .essay__crop { float: left; margin: 6px 36px 16px 0; }
.sec--dark .crop { border-color: transparent; }
.sec--dark figcaption { color: #A9AFCB; }
.loc__phone { width: 280px; }
@media (min-width: 1100px) {
  .loc__essays { grid-column: 1 / 8; grid-row: 1; }
  .loc__phone { grid-column: 9 / 13; grid-row: 1; justify-self: end; }
}
@media (max-width: 1099px) {
  .loc__phone { width: min(64vw, 280px); margin-top: 56px; }
  .essay { display: flex; flex-direction: column; }
  .essay h3 { order: 1; }
  .essay p { order: 2; }
  .essay__crop, [dir="rtl"] .essay__crop { order: 3; float: none; width: 100%; max-width: 420px; margin: 24px 0 0; }
}

/* Privacy */
.sec .priv__title { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.3; max-width: 13em; }
:where([lang="en"]) .sec .priv__title { line-height: 1.08; }
.priv .lead { margin-top: 24px; }
.ledger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; }
.ledger h3 {
  font-weight: 600; font-size: var(--fs-term); line-height: var(--lh-term);
  padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.ledger > div + div h3 { border-bottom-color: #BE123C; }
.ledger .rows > li:first-child { border-top: 0; }
.priv__note { margin-top: 20px; max-width: 46em; }
.commit { list-style: none; margin: 0; padding: 0; }
.commit > li { padding-block: 16px; border-top: 1px solid var(--rule); }
.commit > li:last-child { border-bottom: 1px solid var(--rule); }
.commit__title { font-size: var(--fs-term); line-height: var(--lh-term); font-weight: 600; }
.priv__links { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 40px; }
@media (min-width: 1100px) {
  .priv__title { grid-column: 1 / 11; grid-row: 1; }
  .priv .lead { grid-column: 1 / 8; grid-row: 2; }
  .ledger { grid-column: 1 / 13; grid-row: 3; margin-top: 64px; }
  .priv__note { grid-column: 1 / 10; grid-row: 4; }
  .commit__title { grid-column: 1 / 4; grid-row: 5; margin-top: 80px; padding-top: 14px; }
  .commit { grid-column: 4 / 10; grid-row: 5; margin-top: 80px; }
  .priv__links { grid-column: 4 / 13; grid-row: 6; }
}
@media (max-width: 1099px) {
  .ledger { margin-top: 40px; }
  .commit__title { margin-top: 56px; margin-bottom: 12px; }
}
@media (max-width: 719px) {
  .ledger { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
}

/* Plans and download */
.plans__text p { margin-top: 20px; color: var(--ink-2); max-width: var(--measure); }
.plans__text .more { display: inline-block; margin-top: 20px; }
.plan-table { margin: 0; }
.plan-table > div {
  display: grid; grid-template-columns: 32% minmax(0, 1fr); column-gap: 20px;
  padding: 24px 0; border-top: 1px solid var(--rule);
}
.plan-table > div:last-child { border-bottom: 1px solid var(--rule); }
.plan-table dt { font-weight: 700; font-size: var(--fs-h3); line-height: var(--lh-h3); }
.plan-table dd { margin: 0; color: var(--ink-2); }
.download {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start;
  padding-top: 32px; border-top: 2px solid var(--ink);
}
.download h2 { grid-column: 1 / 7; font-size: var(--fs-h3); line-height: var(--lh-h3); }
.download__get { grid-column: 7 / 13; }
.download__get .fine { margin-top: 14px; }
@media (min-width: 1100px) {
  .plans__text { grid-column: 1 / 7; grid-row: 1; }
  .plan-table { grid-column: 8 / 13; grid-row: 1; margin-top: 10px; }
  .download { grid-column: 1 / 13; grid-row: 2; margin-top: 96px; }
}
@media (max-width: 1099px) {
  .plan-table { margin-top: 40px; }
  .download { margin-top: 64px; grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .download h2, .download__get { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 719px) {
  .plan-table > div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
}

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--night); color: #fff; padding: 80px 0 40px; font-size: var(--fs-cap); line-height: var(--lh-cap); }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .store-badge { background: #fff; color: #000; }
.site-footer .store-badge:hover { background: #E6E7EE; color: #000; }
.site-footer .placeholder { color: var(--ink); }
.site-footer a:focus-visible { outline-color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--gap); }
.footer-brand p { margin: 16px 0 0; color: #A9AFCB; max-width: 24em; }
.footer-title { margin: 0 0 14px; font-family: var(--f-text); font-size: var(--fs-label); font-weight: 500; line-height: 1.4; color: #8E94B4; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding-block: 3px; }
.footer-col a { color: #fff; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.footer-col a:hover, .footer-col a[aria-current="page"] { text-decoration-color: currentColor; }
.company-list li { color: #C9CDE3; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px;
  margin-top: 64px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); color: #A9AFCB;
}
.footer-bottom a { color: #fff; }
@media (max-width: 1099px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px)  { .site-footer { padding-top: 56px; } .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Document pages: head */
.page-hero { background: var(--paper); }
.page-hero > .container { padding-block: 56px 48px; border-bottom: 1px solid var(--rule); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: var(--fs-cap); line-height: var(--lh-cap); color: var(--ink-3); }
.breadcrumb a { color: var(--ink-3); text-decoration-color: var(--rule); }
.breadcrumb a:hover { color: var(--ink); text-decoration-color: currentColor; }
.page-title { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-display); max-width: 16em; }
:where([lang="ar"]) .page-title { letter-spacing: 0; }
.page-lead { margin-top: 16px; font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-2); max-width: var(--measure-pagelead); }
.page-meta { margin-top: 16px; font-size: var(--fs-cap); line-height: var(--lh-cap); color: var(--ink-3); }
.page-meta a { color: var(--brand); }
@media (max-width: 719px) { .page-hero > .container { padding-block: 36px 32px; } }

/* ---------------------------------------------------------------- Document pages: layout and TOC */
.legal-layout, .doc-layout, .contact-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding-block: 56px 112px;
}
.legal-toc, .doc-side { grid-column: 1 / 4; align-self: start; position: sticky; top: 24px; }
.legal-toc { max-height: calc(100vh - 48px); overflow-y: auto; }
.legal-layout > .prose, .doc-main { grid-column: 5 / 12; min-width: 0; max-width: var(--measure-doc); }
.legal-toc h2 {
  margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--rule);
  font-family: var(--f-text); font-size: var(--fs-label); font-weight: 600; line-height: 1.4; color: var(--ink);
}
.legal-toc ol, .toc-mobile ol { list-style: none; margin: 0; padding: 0; }
.legal-toc a, .toc-mobile a {
  display: block; padding-block: 6px; padding-inline-start: 10px;
  border-inline-start: 2px solid transparent;
  font-size: var(--fs-cap); line-height: 1.5; color: var(--ink-2); text-decoration: none;
}
.legal-toc a:hover, .toc-mobile a:hover { color: var(--brand-ink); }
.legal-toc a.is-active { color: var(--brand-ink); font-weight: 500; border-inline-start-color: var(--brand); }
.toc-mobile { display: none; }
.doc-side { font-size: var(--fs-cap); line-height: var(--lh-cap); color: var(--ink-3); }
.doc-side p + p { margin-top: 6px; }
.doc-side .more { font-size: var(--fs-cap); }
@media (max-width: 1099px) {
  .legal-layout, .doc-layout, .contact-grid { display: block; padding-block: 32px 88px; }
  .legal-toc { display: none; }
  .legal-layout > .prose, .doc-main { max-width: var(--measure-doc); }
  .toc-mobile { display: block; border-bottom: 1px solid var(--rule); }
  .toc-mobile summary {
    display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; cursor: pointer; list-style: none;
    font-size: var(--fs-label); font-weight: 500; color: var(--ink);
  }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary::after { content: "+"; color: var(--ink-3); }
  .toc-mobile[open] summary::after { content: "\2212"; }
  .toc-mobile ol { padding-bottom: 12px; }
  .doc-side { position: static; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
}

/* ---------------------------------------------------------------- Prose (legal) */
.prose { font-size: var(--fs-body); line-height: var(--lh-body); }
.prose p { margin: 0 0 1em; }
.prose h2 {
  margin: 56px 0 12px; scroll-margin-top: 24px;
  font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h3); line-height: var(--lh-h3);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 8px; font-family: var(--f-text); font-size: 18px; font-weight: 600; line-height: 1.5; }
.prose ul, .prose ol { margin: 0 0 1em; padding-inline-start: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--ink-3); }
.prose .steps-list li strong { display: block; }
.prose .steps-list li p { margin: 2px 0 0; }
.prose .btn { margin-top: 4px; }

.table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.6; }
:where([lang="en"]) .table { font-size: 15px; }
.table th, .table td { padding-block: 12px; padding-inline: 0 16px; text-align: start; vertical-align: top; }
.table th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.table td { border-bottom: 1px solid var(--rule); }

.callout { margin: 0 0 1.5em; padding: 20px 22px; background: var(--tint); border-radius: 12px; }
.callout strong:first-child { display: block; margin-bottom: 4px; }
.callout p { margin: 0; }
.callout p + p { margin-top: .6em; }

/* ---------------------------------------------------------------- Support FAQ */
.section-title {
  margin: 56px 0 14px; scroll-margin-top: 24px;
  font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h3); line-height: var(--lh-h3);
}
.doc-main > .section-title:first-child { margin-top: 0; }
.faq { border-bottom: 1px solid var(--rule); }
.faq-item { border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding-block: 18px; cursor: pointer; list-style: none;
  font-size: var(--fs-summary); font-weight: 500; line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; color: var(--ink-3); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-body { padding-bottom: 20px; color: var(--ink-2); max-width: var(--measure); }
.faq-body p { margin: 0 0 .8em; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ol, .faq-body ul { margin: 0 0 .8em; padding-inline-start: 1.3em; }
.faq-body li::marker { color: var(--ink-3); }
.doc-main .callout { margin-top: 48px; }
.doc-main .callout .btn { margin-top: 14px; }

/* ---------------------------------------------------------------- Contact */
.contact-details { grid-column: 1 / 5; }
.form-sheet { grid-column: 6 / 13; background: var(--tint); border-radius: 12px; padding: 36px; }
.contact-list { margin: 0; }
.contact-list > div { padding-block: 16px; border-top: 1px solid var(--rule); }
.contact-list > div:last-child { border-bottom: 1px solid var(--rule); }
.contact-list dt { margin-bottom: 4px; font-size: var(--fs-label); font-weight: 500; line-height: 1.4; color: var(--ink-3); }
.contact-list dd { margin: 0; }
.contact-list dd p + p { margin-top: 4px; }
.contact-details .callout { margin-top: 32px; }
.form-sheet h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.form-note { margin-top: 8px; font-size: var(--fs-cap); line-height: var(--lh-cap); color: var(--ink-3); }
.form { margin-top: 28px; }
.field { margin-bottom: 22px; }
.field > label:not(.field-check) { display: block; margin-bottom: 8px; font-size: var(--fs-label); font-weight: 500; line-height: 1.4; color: var(--ink); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }
.input {
  display: block; width: 100%; height: 48px; padding: 0 14px;
  background: #fff; border: 1px solid var(--field); border-radius: 10px;
  font-size: var(--fs-body); line-height: 1.5; color: var(--ink);
  transition: border-color .12s;
}
textarea.input { height: 180px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
select.input { padding-inline-end: 8px; }
.input:focus { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 1px; }
.input[aria-invalid="true"] { border-color: var(--error); }
.field-hint { margin-top: 6px; font-size: var(--fs-cap); line-height: 1.5; color: var(--ink-3); }
#message-counter { direction: ltr; text-align: end; }
[dir="rtl"] #message-counter { text-align: left; }
.field-hint.is-error, .form-status.is-error { color: var(--error); font-size: 14px; }
.field .field-check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-cap); line-height: var(--lh-cap); color: var(--ink-2); cursor: pointer; }
.field-check input[type="checkbox"] { width: 20px; height: 20px; flex: none; margin: 3px 0 0; accent-color: var(--brand); cursor: pointer; }
.field-check a { color: var(--brand); }
.form-status { margin-top: 16px; font-size: var(--fs-cap); line-height: var(--lh-cap); }
.form-status:empty { display: none; }
.form-status.is-success { padding: 14px 18px; background: #E7F6EF; border-radius: 10px; color: #04573F; }
.form [type="submit"] { margin-top: 4px; }
@media (max-width: 1099px) {
  .form-sheet { margin-top: 48px; }
}
@media (max-width: 719px) {
  .form-sheet { padding: 20px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .form [type="submit"] { width: 100%; }
}

/* ---------------------------------------------------------------- 404 */
.notfound { padding-block: 64px 112px; }
.notfound__code { font-family: var(--f-text-en); font-size: var(--fs-hero); line-height: 1; font-weight: 700; color: var(--brand); }
.notfound__pair { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); column-gap: 40px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
.notfound__pair::before { content: ""; grid-column: 2; grid-row: 1; background: var(--rule); }
.notfound__pair > [lang="ar"] { grid-column: 1; grid-row: 1; }
.notfound__pair > [lang="en"] { grid-column: 3; grid-row: 1; }
.notfound h1, .notfound h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.notfound p { margin-top: 10px; color: var(--ink-2); }
.notfound .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; }
@media (max-width: 719px) {
  .notfound__pair { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .notfound__pair::before { display: none; }
  .notfound__pair > [lang="en"] { grid-column: 1; grid-row: 2; padding-top: 28px; border-top: 1px solid var(--rule); }
}

/* ---------------------------------------------------------------- Print */
@media print {
  .site-header, .site-footer, .legal-toc, .toc-mobile, .skip-link, .nav-toggle, .store-badges, .doc-side { display: none !important; }
  body { background: #fff; }
  .legal-layout, .doc-layout { display: block; padding: 0; }
  .prose, .doc-main { max-width: none; }
}
