/* Imdify website — design system, round 1 (2026-10-03)
   Visual system "Quiet Ink", taken from the Imdify Android app (app/ui/theme/Color.kt, docs/design/10 §1–§6).
   Layout concept: calm document-first pages; each section is a quiet band; the bilingual form row
   (English start, Arabic end) is the recurring motif. All spacing uses logical properties so the
   Arabic (RTL) page mirrors without overrides. Fonts are self-hosted (no third-party requests). */

/* ---------- Fonts (OFL, self-hosted; production: convert to WOFF2 + subset) ---------- */
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Variable.ttf") format("truetype"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("fonts/NotoSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("fonts/NotoSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Naskh Arabic"; src: url("fonts/NotoNaskhArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Naskh Arabic"; src: url("fonts/NotoNaskhArabic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Colour: the app's light tokens, unchanged */
  --bg: #FBFBFC;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --sunken: #F2F3F6;
  --sunken-2: #E9EBEF;
  --line: #E3E5EA;
  --line-soft: #EEF0F3;
  --line-strong: #CDD1D8;
  --field-border: #8A909A;
  --ink: #0F1217;
  --ink-2: #454B55;
  --ink-3: #5E6571;
  --disabled: #9AA0AA;
  --accent: #4A47E0;
  --accent-press: #3B38C4;
  --on-accent: #FFFFFF;
  --accent-text: #3A37C0;
  --accent-tint: #EFEEFD;
  --accent-tint-2: #E2E1FB;
  --accent-ring: #C9C7F7;
  --success: #137A4E;
  --success-tint: #E4F3EB;
  --warning: #E8950C;          /* dots, bars, borders only — never text */
  --warning-text: #8F5500;
  --warning-tint: #FFF2DB;
  --danger: #B42318;
  --danger-tint: #FDECEA;
  --paper: #FFFFFF;            /* PDF pages never invert */
  --paper-ink: #0F1217;
  --paper-rule: #BFC3C9;       /* printed field boxes on the sample form */
  --signature-ink: #1B2360;
  --bezel: #16191F;            /* neutral phone frame */

  /* Field states on the page (app DC-02/03/04/09) */
  --fs-fill-bg: rgba(74, 71, 224, .08);
  --fs-fill-line: rgba(74, 71, 224, .45);
  --fs-answer-bg: rgba(232, 149, 12, .14);
  --fs-filled-bg: rgba(19, 122, 78, .06);
  --fs-sign-bg: rgba(74, 71, 224, .06);

  /* Elevation: cards are hairlined, not shadowed */
  --e1: 0 0 0 1px var(--line);
  --e2: 0 8px 24px rgba(15, 18, 23, .12), 0 0 0 1px rgba(15, 18, 23, .06);
  --e-paper: 0 1px 2px rgba(15, 18, 23, .06), 0 16px 40px rgba(15, 18, 23, .08);
  --e-phone: 0 24px 48px rgba(15, 18, 23, .16), 0 2px 6px rgba(15, 18, 23, .08);
  --focus-ring: 0 0 0 2px var(--accent), 0 0 0 6px rgba(74, 71, 224, .18);

  /* Type families */
  --font-latin: "Instrument Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Instrument Sans", system-ui, sans-serif;
  --font-ui: var(--font-latin);
  --font-doc-latin: "Noto Sans", "Instrument Sans", sans-serif;
  --font-doc-arabic: "Noto Naskh Arabic", "IBM Plex Sans Arabic", serif;

  /* Web type scale (EN). Arabic overrides line heights and tracking below. */
  --t-hero: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);        /* 40 → 64 */
  --lh-hero: 1.06;
  --tr-hero: -0.025em;
  --t-hero-sub: clamp(1.25rem, 1.05rem + .8vw, 1.75rem);  /* 20 → 28 */
  --lh-hero-sub: 1.28;
  --t-h2: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);       /* 28 → 40 */
  --lh-h2: 1.15;
  --tr-h2: -0.02em;
  --t-h3: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);        /* 20 → 24 */
  --lh-h3: 1.25;
  --tr-h3: -0.01em;
  --t-body-l: clamp(1.0625rem, 1.03rem + .15vw, 1.125rem); /* 17 → 18 */
  --lh-body-l: 1.56;
  --t-body: 1rem;
  --lh-body: 1.6;
  --t-label: .9375rem;   /* 15 */
  --t-caption: .875rem;  /* 14 */
  --lh-caption: 1.45;
  --t-overline: .75rem;  /* 12 */
  --tr-overline: .06em;

  /* Spacing: app 4-point steps + web section steps */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-24: 96px; --s-32: 128px;
  --section-y: clamp(72px, 5rem + 4vw, 128px);
  --gutter: clamp(20px, 4vw, 48px);
  --page-max: 1200px;

  /* Radius: one corner at true size */
  --r-tag: 8px; --r-control: 14px; --r-card: 18px; --r-panel: 24px; --r-pill: 999px; --r-paper: 4px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-1: 150ms; --dur-2: 250ms; --dur-draw: 900ms;
}

/* Dark tokens: defined for a later round; no page uses them yet (round 1 layouts are light).
   Applied only through the explicit class .theme-dark, so no host or OS setting can switch a page into an untested theme. */
.theme-dark {
  color-scheme: dark;
  --bg: #0D0F13; --surface: #16191F; --surface-2: #1D2129; --sunken: #1D2129; --sunken-2: #1D2129;
  --line: #2A2F38; --line-soft: #2A2F38; --line-strong: #3A404B; --field-border: #6B7280;
  --ink: #F1F3F6; --ink-2: #B9BFC9; --ink-3: #9098A4; --disabled: #5C636E;
  --accent-text: #A9A7FF; --accent-tint: #23234A; --accent-tint-2: #2E2D5E; --accent-ring: #A9A7FF;
  --success: #4CC38A; --success-tint: #12291E;
  --warning-text: #F2B24C; --warning-tint: #2D2210;
  --danger: #FF8A80; --danger-tint: #2E1715;
  --paper: #F3F3F0;
  --e1: 0 0 0 1px var(--line);
  --e2: 0 8px 24px rgba(0, 0, 0, .5), 0 0 0 1px #2A2F38;
  --focus-ring: 0 0 0 2px #A9A7FF, 0 0 0 6px rgba(169, 167, 255, .22);
}

/* Arabic: same scale, taller lines, no tracking, no uppercase */
:root:lang(ar), [lang="ar"] {
  --font-ui: var(--font-arabic);
  font-family: var(--font-arabic);
  --lh-hero: 1.35; --tr-hero: 0;
  --lh-hero-sub: 1.5;
  --lh-h2: 1.4; --tr-h2: 0;
  --lh-h3: 1.5; --tr-h3: 0;
  --lh-body-l: 1.75;
  --lh-body: 1.7;
  --lh-caption: 1.65;
  --tr-overline: 0;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4, p, ol, ul, dl, figure, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.latin { font-family: var(--font-latin); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 20px; height: 20px; }
.icon--xs { width: 16px; height: 16px; stroke-width: 2; }
[dir="rtl"] .icon--dir { transform: scaleX(-1); }

.skip-link {
  position: absolute; inset-inline-start: var(--s-4); top: -100px; z-index: 100;
  background: var(--ink); color: var(--surface); padding: 12px 16px; border-radius: var(--r-control);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus-visible { top: var(--s-4); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--page-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--band { background: var(--surface); border-block: 1px solid var(--line); }
.section--tight-top { padding-block-start: calc(var(--section-y) * .5); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-overline); font-weight: 600; letter-spacing: var(--tr-overline);
  text-transform: uppercase; color: var(--ink-3);
}
:lang(ar) .eyebrow { text-transform: none; font-size: .8125rem; }
.h2 { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); }
.h3 { font-size: var(--t-h3); line-height: var(--lh-h3); letter-spacing: var(--tr-h3); }
.lede { font-size: var(--t-body-l); line-height: var(--lh-body-l); color: var(--ink-2); max-width: 36em; }
.body-2 { color: var(--ink-2); }
.caption { font-size: var(--t-caption); line-height: var(--lh-caption); color: var(--ink-3); }
.section-head { display: grid; gap: var(--s-4); max-width: 44rem; margin-block-end: var(--s-12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-6); border-radius: var(--r-control); border: 0;
  font: 600 var(--t-label)/1.3 var(--font-ui); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--accent-press); text-decoration: none; }
.btn--primary:active, .btn--primary.is-pressed { background: #312EAA; }
.btn--tonal { background: var(--accent-tint); color: var(--accent-text); }
.btn--tonal:hover, .btn--tonal.is-hover { background: var(--accent-tint-2); text-decoration: none; }
.btn--tonal:active, .btn--tonal.is-pressed { background: #D3D1F8; }
.btn--neutral { background: var(--sunken); color: var(--ink); }
.btn--neutral:hover, .btn--neutral.is-hover { background: var(--sunken-2); text-decoration: none; }
.btn--sm { min-height: 44px; padding: 0 var(--s-4); }
.btn[aria-disabled="true"], .btn.is-disabled { background: var(--sunken); color: var(--disabled); cursor: not-allowed; }
.btn.is-focus { box-shadow: var(--focus-ring); }
.btn .icon { width: 20px; height: 20px; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; color: var(--accent-text); text-decoration: none;
}
.text-link:hover, .text-link.is-hover { text-decoration: underline; text-decoration-thickness: 2px; }
.text-link .icon { width: 18px; height: 18px; stroke-width: 2; }

/* "Coming to Google Play": a plain button, never the Google badge */
.btn--play .play-note { font-weight: 500; opacity: .86; }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
/* Logo v2 (2026-10-07, design/brand-v2): mark + name as ONE picture, never mirrored in RTL. */
.wordmark__logo { display: block; height: 32px; width: auto; }
.wordmark:hover { text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-block-end: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: var(--s-6); min-height: 72px; }
.site-nav { display: flex; align-items: center; gap: var(--s-1); margin-inline-start: auto; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  color: var(--ink-2); font-weight: 500; font-size: var(--t-label); text-decoration: none; border-radius: 10px;
}
.site-nav a:hover { color: var(--ink); background: var(--sunken); }
.site-header__actions { display: flex; align-items: center; gap: var(--s-3); }
.menu-btn {
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 0; border-radius: var(--r-control); background: transparent; color: var(--ink); cursor: pointer;
}
.menu-btn:hover { background: var(--sunken); }

/* Language switch: EN | العربية — the page language is marked, the other is a link */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: var(--sunken); }
.lang-switch a, .lang-switch [aria-current] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 38px; min-width: 44px; padding: 0 10px;
  border-radius: 9px; font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--ink-2);
}
.lang-switch a:hover { color: var(--ink); background: var(--sunken-2); }
.lang-switch [aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 18, 23, .08); }
.lang-switch [lang="ar"] { font-family: var(--font-arabic); font-size: .9375rem; }
.lang-switch [lang="en"] { font-family: var(--font-latin); }

@media (max-width: 1023px) {
  .site-nav, .site-header__actions .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header__actions { margin-inline-start: auto; }
  .site-header__bar { min-height: 64px; gap: var(--s-3); }
}

/* Mobile menu sheet (dialog) */
.menu-sheet[hidden] { display: none; }
.menu-sheet {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
  background: var(--surface); overflow-y: auto;
}
.menu-sheet__bar { display: flex; align-items: center; gap: var(--s-3); min-height: 64px; padding-inline: var(--gutter); border-block-end: 1px solid var(--line); }
.menu-sheet__bar .menu-btn { display: inline-flex; margin-inline-start: auto; }
.menu-sheet__nav { display: grid; padding: var(--s-4) var(--gutter); }
.menu-sheet__nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 60px;
  border-block-end: 1px solid var(--line-soft); color: var(--ink); font-size: 1.25rem; font-weight: 600; text-decoration: none;
}
.menu-sheet__nav a .icon { color: var(--ink-3); width: 20px; height: 20px; }
.menu-sheet__foot { margin-block-start: auto; display: grid; gap: var(--s-4); padding: var(--s-6) var(--gutter) var(--s-8); border-block-start: 1px solid var(--line); background: var(--bg); }
.menu-sheet__foot .btn { width: 100%; }
.menu-sheet__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 3rem + 4vw, 112px) clamp(64px, 4rem + 4vw, 128px); overflow: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero__copy { display: grid; gap: var(--s-6); justify-items: start; }
.hero__title { display: grid; gap: var(--s-4); }
.hero__display {
  display: block; font-size: var(--t-hero); line-height: var(--lh-hero); letter-spacing: var(--tr-hero); font-weight: 600; color: var(--ink);
}
.hero__sub { display: block; font-size: var(--t-hero-sub); line-height: var(--lh-hero-sub); font-weight: 500; color: var(--ink-2); letter-spacing: -0.005em; max-width: 22em; }
:lang(ar) .hero__sub { letter-spacing: 0; }
.hero__body { font-size: var(--t-body-l); line-height: var(--lh-body-l); color: var(--ink-2); max-width: 31em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); padding-block-start: var(--s-2); }
.hero__assure { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--ink-2); font-size: var(--t-caption); }
.hero__assure .icon { color: var(--success); width: 20px; height: 20px; }

/* The three words, each in its state on the page: Fill = field to fill, Sign = signature stroke, Done = check */
.state-word { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.state-word--fill { padding-inline: .12em; margin-inline: -.12em; }
.state-word--fill::before {
  content: ""; position: absolute; inset: .14em 0 .06em; z-index: -1; border-radius: 6px;
  background: var(--fs-fill-bg); box-shadow: inset 0 0 0 1.5px var(--fs-fill-line);
}
:lang(ar) .state-word--fill::before { inset: .22em 0 .14em; }
.state-word--sign .sig-under {
  position: absolute; inset-inline: -4%; bottom: -.18em; width: 108%; height: .42em; overflow: visible;
  color: var(--signature-ink); pointer-events: none;
}
.state-word--sign .sig-under path { stroke-dasharray: 260; stroke-dashoffset: 0; animation: sig-draw var(--dur-draw) var(--ease) .35s both; }
:lang(ar) .state-word--sign .sig-under { bottom: -.05em; }
.state-word--done .done-badge {
  position: absolute; top: .02em; inset-inline-end: -.42em; width: .36em; height: .36em; border-radius: 50%;
  background: var(--success); color: #fff; display: grid; place-items: center;
  animation: badge-in var(--dur-2) var(--ease) 1.15s both;
}
.state-word--done .done-badge svg { width: 62%; height: 62%; stroke-width: 3.2; }
:lang(ar) .state-word--done .done-badge { top: .16em; }
@keyframes sig-draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes badge-in { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .state-word--sign .sig-under path, .state-word--done .done-badge { animation: none; }
}

.hero__visual { position: relative; display: grid; justify-items: end; padding-block-end: 140px; }
.hero__visual .paper { width: min(100%, 452px); }
.hero__visual .phone { position: absolute; inset-inline-start: 0; bottom: 0; width: clamp(170px, 15vw, 212px); }
/* RTL: the PDF page keeps its own layout; the phone overlaps the page on its English (left) side */
[dir="rtl"] .hero__visual { justify-items: start; }
[dir="rtl"] .hero__visual .phone { inset-inline-start: auto; inset-inline-end: 0; }
.visual-caption { margin-block-start: var(--s-3); font-size: var(--t-caption); color: var(--ink-3); display: inline-flex; align-items: center; gap: var(--s-2); }

/* ---------- Paper: the sample PDF form, real text ---------- */
.paper {
  background: var(--paper); color: var(--paper-ink); border-radius: var(--r-paper); box-shadow: var(--e-paper);
  padding: clamp(18px, 2.4vw, 32px); direction: ltr; /* a PDF page never mirrors */
  font-family: var(--font-doc-latin); font-size: 12px; line-height: 1.35;
}
.paper [lang="ar"], .paper .ar { font-family: var(--font-doc-arabic); direction: rtl; }
.paper__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-block-end: 10px; border-block-end: 1.5px solid #2B2F36; }
.paper__title { font-size: 17px; font-weight: 700; letter-spacing: -.005em; }
.paper__title.ar { font-size: 18px; }
.paper__note { font-size: 10px; color: #5A606A; margin-block-start: 2px; }
.paper__section { display: flex; justify-content: space-between; margin-block: 14px 10px; padding: 5px 8px; background: #EEF0F2; font-size: 11px; font-weight: 700; }
.paper__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.pf { display: grid; gap: 4px; min-width: 0; }
.pf--wide { grid-column: 1 / -1; }
.pf__labels { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: #22262C; }
.pf__labels .ar { font-size: 11.5px; }
.pf__box {
  position: relative; min-height: 26px; border-radius: 3px; display: flex; align-items: center;
  padding-inline: 8px; font-size: 12.5px; box-shadow: inset 0 0 0 1px var(--paper-rule); color: var(--paper-ink);
}
.pf__box.ar { justify-content: flex-start; }
.pf__box--fill { background: var(--fs-fill-bg); box-shadow: inset 0 0 0 1px var(--fs-fill-line); }
.pf__box--filled { background: var(--fs-filled-bg); }
.pf__box--filled::after {
  content: ""; position: absolute; top: -6px; right: -6px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 8px no-repeat;
}
.pf__box--filled.ar::after { right: auto; left: -6px; }
.pf__box--answer { background: var(--fs-answer-bg); box-shadow: inset 0 0 0 1.5px var(--warning); justify-content: flex-end; }
.pf__tag {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px;
  background: var(--warning-tint); color: var(--warning-text); font: 600 11px/1 var(--font-latin);
}
.pf__tag svg { width: 12px; height: 12px; stroke-width: 2.4; }
.pf__box--sign { min-height: 54px; box-shadow: none; background: var(--fs-sign-bg); border: 1.5px dashed var(--accent); }
.pf__box--signed { min-height: 54px; border: 1px dashed #A7ACB4; box-shadow: none; }
.pf__box--signed svg { height: 40px; width: auto; color: var(--signature-ink); }
.pf__comb { display: grid; grid-template-columns: repeat(15, 1fr); min-height: 26px; box-shadow: inset 0 0 0 1px var(--paper-rule); border-radius: 3px; background: var(--fs-filled-bg); font-size: 12px; }
.pf__comb span { display: grid; place-items: center; border-inline-end: 1px solid var(--paper-rule); }
.pf__comb span:last-child { border: 0; }

/* ---------- Phone frame (generic, unbranded) ---------- */
.phone { position: relative; margin: 0; padding: 4%; border-radius: 14% / 7.6%; background: var(--bezel); box-shadow: var(--e-phone); }
.phone__screen { --screen-bg: #FBFBFC; position: relative; overflow: hidden; border-radius: 10.5% / 5.9%; aspect-ratio: 720 / 1280; background: var(--screen-bg); }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__screen::after { /* one neutral status-bar strip on every capture (some captures show the emulator status bar, some do not) */
  content: ""; position: absolute; inset: 0 0 auto; height: 3.75%; background: var(--screen-bg); z-index: 1;
}
.phone__screen::before { /* camera punch-hole */
  content: ""; position: absolute; top: 1.1%; left: 50%; width: 3.2%; aspect-ratio: 1; border-radius: 50%;
  translate: -50% 0; background: #07080A; z-index: 2;
}
.phone--dark .phone__screen { --screen-bg: #0D0F13; }

/* ---------- Cards ---------- */
.benefits, .example-sheet__rows { list-style: none; padding: 0; }
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--e1); padding: var(--s-6); display: grid; gap: var(--s-3); align-content: start; }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent-text); margin-block-end: var(--s-2);
}
.card__title { font-size: 1.125rem; line-height: 1.35; font-weight: 600; letter-spacing: -.005em; }
:lang(ar) .card__title { line-height: 1.55; letter-spacing: 0; }
.card__body { color: var(--ink-2); font-size: var(--t-body); }

/* ---------- How it works: stepper + example sheet ---------- */
.how { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.steps { list-style: none; padding: 0; display: grid; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-5); padding-block: var(--s-5); }
.step + .step { border-block-start: 1px solid var(--line); }
.step__num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font: 600 1rem/1 var(--font-latin); color: var(--ink); font-variant-numeric: tabular-nums;
}
.step--focus .step__num { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.step__title { font-size: 1.25rem; line-height: 1.3; font-weight: 600; margin-block-end: 4px; }
:lang(ar) .step__title { line-height: 1.55; }
.step__body { color: var(--ink-2); }
.how__aside { display: grid; gap: var(--s-4); }

/* Example sheet: mirrors the app's "18 fields found" sheet, as live text */
.example-sheet { background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--e2); padding: var(--s-6); display: grid; gap: var(--s-4); }
.example-sheet__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.example-sheet__title { font-size: 1.375rem; font-weight: 600; letter-spacing: -.01em; }
:lang(ar) .example-sheet__title { letter-spacing: 0; }
.example-sheet__note { color: var(--ink-3); font-size: var(--t-caption); margin-block-start: -8px; }
.example-sheet__rows { display: grid; }
.ex-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); min-height: 56px; }
.ex-row + .ex-row { border-block-start: 1px solid var(--line-soft); }
.ex-row__n { font: 500 1.125rem/1 var(--font-latin); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ex-row--details .icon { color: var(--accent-text); }
.ex-row--answer .icon { color: var(--warning-text); }
.ex-row--sign .icon { color: var(--ink-2); }

/* Tags (app meaning colours: colour + icon + word) */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-tag); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.tag .icon { width: 14px; height: 14px; stroke-width: 2.25; }
.tag--example { background: var(--sunken); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tag--done { background: var(--success-tint); color: var(--success); }
.tag--answer { background: var(--warning-tint); color: var(--warning-text); }
.tag--next { background: var(--accent-tint); color: var(--accent-text); }

/* Notices */
.notice { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-control); background: var(--sunken); color: var(--ink-2); font-size: var(--t-caption); line-height: var(--lh-caption); }
.notice .icon { width: 20px; height: 20px; margin-block-start: 1px; color: var(--ink-2); }
.notice--safe { background: var(--surface); box-shadow: var(--e1); }
.notice--safe .icon { color: var(--success); }
.notice--pending { background: transparent; border: 1.5px dashed var(--line-strong); font-family: var(--font-latin); color: var(--ink-3); }
.notice--pending .icon { color: var(--ink-3); }
.notice strong { color: var(--ink); font-weight: 600; }

/* ---------- Arabic + English specimen ---------- */
.bi { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.specimen { background: var(--paper); border-radius: var(--r-paper); box-shadow: var(--e-paper); padding: clamp(20px, 3vw, 40px); direction: ltr; display: grid; gap: clamp(20px, 2.4vw, 28px); }
.sp-row { display: grid; gap: 8px; }
.sp-labels { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-family: var(--font-doc-latin); font-size: clamp(13px, 1.1vw, 15px); color: #22262C; }
.sp-labels [lang="ar"] { font-family: var(--font-doc-arabic); font-size: clamp(14px, 1.2vw, 16.5px); direction: rtl; }
.sp-box {
  position: relative; display: flex; align-items: center; min-height: clamp(44px, 4vw, 56px); padding-inline: 14px;
  border-radius: 4px; background: var(--fs-filled-bg); box-shadow: inset 0 0 0 1px var(--paper-rule);
  font-family: var(--font-doc-latin); font-size: clamp(16px, 1.5vw, 21px); color: var(--paper-ink);
}
.sp-box[lang="ar"] { font-family: var(--font-doc-arabic); direction: rtl; font-size: clamp(18px, 1.7vw, 23px); }
.sp-dir {
  position: absolute; top: -11px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong);
  font: 600 11.5px/1 var(--font-ui); color: var(--ink-2); white-space: nowrap;
}
.sp-dir svg { width: 13px; height: 13px; stroke-width: 2.2; }
.sp-dir--start { left: 12px; }
.sp-dir--end { right: 12px; }
.bi__side { display: grid; gap: var(--s-8); justify-items: center; }
.bi__side .phone { width: min(100%, 250px); }
.proof { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-block-start: var(--s-12); }
.proof li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); padding-block-start: var(--s-4); border-block-start: 1.5px solid var(--ink); }
.proof .icon { width: 22px; height: 22px; color: var(--ink); }
.proof strong { display: block; font-weight: 600; line-height: 1.4; }
.proof span { color: var(--ink-2); font-size: var(--t-caption); line-height: var(--lh-caption); }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-block-start: var(--section-y); }
.feature--flip .feature__copy { order: 2; }
.feature__copy { display: grid; gap: var(--s-5); justify-items: start; }
.feature__visual { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 2.5vw, 32px); min-width: 0; }
.feature__visual .phone { width: clamp(170px, 19vw, 252px); flex: none; }
.feature__visual .phone:nth-child(2) { margin-block-end: clamp(24px, 3.5vw, 48px); }
.feature__panel {
  width: 100%; border-radius: var(--r-panel); background: var(--sunken); padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px) 0;
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 2.5vw, 32px); overflow: hidden;
}
.feature__panel .phone { margin-block-end: -40px; }

/* Signature card (illustration, live text) */
.sig-card { width: min(100%, 460px); background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--e2); padding: var(--s-5); display: grid; gap: var(--s-4); margin-block-end: clamp(28px, 4vw, 56px); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: var(--r-control); background: var(--sunken); }
.seg span { display: grid; place-items: center; min-height: 40px; border-radius: 10px; font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.seg span[aria-current] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 18, 23, .08); }
.sig-pad { position: relative; height: 170px; border-radius: var(--r-control); background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.sig-pad svg { width: 72%; height: auto; color: var(--signature-ink); }
.sig-pad::after { content: ""; position: absolute; inset-inline: 28px; bottom: 40px; border-block-end: 1.5px dashed var(--line-strong); }
.sig-pad__hint { position: absolute; bottom: 12px; inset-inline: 0; text-align: center; font-size: .8125rem; color: var(--ink-3); }
.sig-card__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.sig-chips { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* ---------- Privacy ---------- */
.privacy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.facts { list-style: none; padding: 0; display: grid; }
.fact { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-5); padding-block: var(--s-5); border-block-end: 1px solid var(--line); }
.fact:first-child { padding-block-start: 0; }
.fact__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sunken); color: var(--ink); }
.fact strong { display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; margin-block-end: 2px; }
.fact p { color: var(--ink-2); }

/* ---------- Android CTA ---------- */
.cta {
  position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-8);
  border-radius: 28px; background: var(--accent-tint); overflow: hidden; padding: clamp(32px, 5vw, 72px); padding-block-end: 0;
}
.cta__copy { display: grid; gap: var(--s-5); align-content: center; justify-items: start; padding-block-end: clamp(32px, 5vw, 72px); }
.cta__mark { width: 64px; height: 64px; }
.cta__phones { display: flex; justify-content: center; align-items: flex-end; gap: var(--s-5); align-self: end; }
.cta__phones .phone { width: clamp(150px, 17vw, 236px); margin-block-end: -72px; }
.cta__phones .phone:nth-child(2) { margin-block-end: -128px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { display: grid; border-block-start: 1px solid var(--line); }
.faq__list details { border-block-end: 1px solid var(--line); }
.faq__list summary {
  list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: center; gap: var(--s-4);
  min-height: 64px; padding-block: var(--s-4); cursor: pointer; font-weight: 600; font-size: 1.0625rem; line-height: 1.45;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .icon { color: var(--ink-2); transition: transform var(--dur-2) var(--ease); }
.faq__list details[open] summary .icon { transform: rotate(180deg); }
.faq__list summary:focus-visible { border-radius: 8px; }
.faq__list details > div { padding-block-end: var(--s-5); color: var(--ink-2); max-width: 40em; }
@media (prefers-reduced-motion: reduce) { .faq__list summary .icon { transition: none; } }

/* ---------- Footer ---------- */
.site-footer { border-block-start: 1px solid var(--line); background: var(--surface); padding-block: var(--s-16) var(--s-10); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--s-8); }
.footer__brand { display: grid; gap: var(--s-3); align-content: start; justify-items: start; }
.footer__tagline { color: var(--ink-2); }
.footer__col h2 { font-size: .8125rem; font-weight: 600; letter-spacing: var(--tr-overline); text-transform: uppercase; color: var(--ink-3); margin-block-end: var(--s-3); }
:lang(ar) .footer__col h2 { text-transform: none; font-size: .875rem; }
.footer__col ul { list-style: none; padding: 0; display: grid; }
.footer__col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); text-decoration: none; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }
.footer__mail { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; color: var(--ink); font-weight: 500; text-decoration: none; }
.footer__mail .icon { width: 20px; height: 20px; color: var(--ink-3); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-block-start: var(--s-12); padding-block-start: var(--s-6); border-block-start: 1px solid var(--line); color: var(--ink-3); font-size: var(--t-caption); }
.footer__legal { display: grid; gap: 2px; }
.placeholder { font-family: var(--font-latin); background: var(--sunken); border-radius: 4px; padding: 0 4px; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { justify-items: center; max-width: 640px; margin-inline: auto; width: 100%; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how, .privacy, .faq { grid-template-columns: minmax(0, 1fr); }
  .bi { grid-template-columns: minmax(0, 1fr); }
  .bi__side { grid-template-columns: auto; }
  .feature, .feature--flip { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature__copy { order: 0; }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  /* A PDF page scales, it never reflows: the sample page keeps its desktop layout and is zoomed to fit. */
  .hero__visual { padding-block-end: 150px; }
  .hero__visual .paper { width: 452px; max-width: none; zoom: .9; }
  .hero__visual .phone { width: 40%; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .proof { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .benefits .card { grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-1); padding: var(--s-5); }
  .benefits .card__icon { grid-row: 1 / span 2; margin: 0; }
  .benefits .card__title, .benefits .card__body { grid-column: 2; }
  .bi__side .phone { width: min(62%, 250px); }
  .cta__phones .phone { margin-block-end: -56px; }
  .cta__phones .phone:nth-child(2) { margin-block-end: -96px; }
  .feature__visual .phone { width: 46%; }
  .feature__panel .phone { width: 46%; }
  .cta__phones .phone { width: 44%; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header .lang-switch a, .site-header .lang-switch [aria-current] { min-width: 40px; padding: 0 8px; }
}
@media (max-width: 480px) { .hero__visual .paper { zoom: .74; } }
@media (max-width: 400px) {
  .hero__visual .paper { zoom: .68; }
  .site-header .wordmark__logo { height: 28px; }
}
@media (max-width: 359px) { .hero__visual .paper { zoom: .6; } }

/* =====================================================================
   Round 2 components (2026-10-03). Additions only; round 1 rules above are unchanged.
   ===================================================================== */

/* Current page in navigation */
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--sunken); }
.menu-sheet__nav a[aria-current="page"] { color: var(--accent-text); }
.footer__col a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Inner page head */
.page-head { padding-block: clamp(40px, 2.5rem + 3vw, 96px) clamp(40px, 2.5rem + 2vw, 72px); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.page-head__grid--solo { grid-template-columns: minmax(0, 1fr); }
.page-head__copy { display: grid; gap: var(--s-5); justify-items: start; max-width: 44rem; }
.page-head__title { font-size: clamp(2.25rem, 1.55rem + 2.6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.022em; font-weight: 600; }
:lang(ar) .page-head__title { line-height: 1.35; letter-spacing: 0; }
.page-head__figure { margin: 0; display: grid; justify-items: center; gap: var(--s-3); min-width: 0; }
.page-head__visual { display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 2.5vw, 28px); }
.page-head__visual .phone { width: clamp(160px, 17vw, 232px); flex: none; }
.page-head__visual .phone:nth-child(2) { margin-block-end: clamp(24px, 3.5vw, 48px); }

/* Feature grid: icon + title + text, hairline above (no cards) */
.feature-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--s-6); }
.feature-grid li { display: grid; gap: var(--s-2); align-content: start; padding-block-start: var(--s-5); border-block-start: 1px solid var(--line-strong); }
.feature-grid .icon { color: var(--accent-text); margin-block-end: var(--s-1); }
.feature-grid strong { font-weight: 600; font-size: 1.0625rem; line-height: 1.4; color: var(--ink); }
.feature-grid p { color: var(--ink-2); font-size: .9375rem; }
.feature__list { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.feature__list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s-3); color: var(--ink-2); }
.feature__list .icon { width: 20px; height: 20px; margin-block-start: 3px; color: var(--success); }
.feature__list strong { color: var(--ink); font-weight: 600; }

/* Spec list (definition list with hairlines) */
.spec-list { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); margin: 0; border-block-start: 1px solid var(--line); }
.spec-list dt, .spec-list dd { margin: 0; padding-block: var(--s-4); border-block-end: 1px solid var(--line); }
.spec-list dt { color: var(--ink-3); font-size: var(--t-caption); padding-inline-end: var(--s-4); }
.spec-list dd { color: var(--ink); font-weight: 500; }

/* Status card (Download) */
.status-card { background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--e1); padding: clamp(24px, 3vw, 40px); display: grid; gap: var(--s-5); align-content: start; }
.status-card__row { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.status-card .cta__mark { width: 56px; height: 56px; }
.tag--soon { background: var(--sunken); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Support card */
.support-card { background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--e1); padding: clamp(24px, 3.5vw, 48px); display: grid; gap: var(--s-5); justify-items: start; align-content: start; }
.support-card__label { font-size: var(--t-caption); color: var(--ink-3); }
.support-card__address { font: 600 clamp(1.375rem, 1.1rem + 1.2vw, 2rem)/1.2 var(--font-latin); letter-spacing: -0.015em; color: var(--ink); direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.support-card__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.copy-status { min-height: 1.5em; font-size: var(--t-caption); color: var(--success); }
.steps-plain { list-style: none; padding: 0; display: grid; gap: var(--s-4); counter-reset: n; }
.steps-plain li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-3); color: var(--ink-2); }
.steps-plain li::before { counter-increment: n; content: counter(n); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); color: var(--ink); font: 600 .875rem/1 var(--font-latin); }
.steps-plain strong { color: var(--ink); font-weight: 600; }

/* Help: category chips + grouped FAQ */
.help-cats { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.help-cats a {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-pill);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500;
}
.help-cats a:hover { background: var(--sunken); }
.help-cats .icon { width: 18px; height: 18px; color: var(--ink-2); }
.faq-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; padding-block: var(--s-12); border-block-start: 1px solid var(--line); scroll-margin-block-start: 88px; }
.faq-group:first-of-type { border-block-start: 0; }
.faq-group__head { display: grid; gap: var(--s-3); justify-items: start; }
.faq-group__head .card__icon { margin: 0; }
.faq-group__head .h3 { font-size: 1.5rem; }

/* Long-form documents (Privacy, Terms) */
.doc { display: grid; grid-template-columns: 240px minmax(0, 46rem); gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: var(--s-4) var(--section-y); }
.toc { position: sticky; top: 96px; display: grid; gap: var(--s-2); font-size: .875rem; }
.toc__title { font-size: var(--t-overline); font-weight: 600; letter-spacing: var(--tr-overline); text-transform: uppercase; color: var(--ink-3); padding-inline: 10px; }
:lang(ar) .toc__title { text-transform: none; font-size: .8125rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; }
.toc a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc a:hover { background: var(--sunken); color: var(--ink); }
.toc-mobile { display: none; }
.doc__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8); min-width: 0; }
/* Long URLs printed as link text (privacy policy) may break anywhere on narrow screens instead of widening the column. */
.prose a[href^="http"] { overflow-wrap: anywhere; }
.doc-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); color: var(--ink-3); font-size: var(--t-caption); }
.doc-meta strong { color: var(--ink-2); font-weight: 600; }
.summary-box { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--e1); padding: var(--s-6); display: grid; gap: var(--s-4); }
.summary-box h2 { font-size: 1.125rem; font-weight: 600; }
.summary-box ul { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.summary-box li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s-3); color: var(--ink-2); }
.summary-box li .icon { width: 20px; height: 20px; color: var(--success); margin-block-start: 3px; }

.prose { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
:lang(ar) .prose { line-height: 1.85; }
.prose > * + * { margin-block-start: 1em; }
.prose h2 { color: var(--ink); font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.01em; margin-block-start: 2.4em; scroll-margin-block-start: 96px; }
:lang(ar) .prose h2 { line-height: 1.5; letter-spacing: 0; }
.prose h3 { color: var(--ink); font-size: 1.125rem; line-height: 1.4; margin-block-start: 1.8em; scroll-margin-block-start: 96px; }
.prose > h2:first-child, .prose > h3:first-child { margin-block-start: 0; }
.prose ul, .prose ol { padding-inline-start: 1.3em; display: grid; gap: .45em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .tbl-wrap { overflow-x: auto; border-radius: 14px; box-shadow: var(--e1); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.55; }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 12px 14px; border-block-end: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; background: var(--sunken); }
.prose tr:last-child td { border-block-end: 0; }
.fill-in { font-family: var(--font-latin); background: var(--warning-tint); color: var(--warning-text); border-radius: 4px; padding: 0 5px; direction: ltr; unicode-bidi: isolate; font-size: .92em; font-weight: 600; }
.legal-block { border: 1.5px dashed var(--line-strong); border-radius: var(--r-control); padding: var(--s-4) var(--s-5); font-family: var(--font-latin); font-size: .9375rem; color: var(--ink-3); }
.legal-block strong { color: var(--ink-2); }

/* Review aid: open any page with #claims to outline statements that must be re-checked against the release build.
   Remove before deployment (see website/legal-evidence/claims-register.md). */
.show-claims [data-claim] { outline: 2px dashed var(--warning); outline-offset: 3px; border-radius: 4px; }
.show-claims [data-claim]::before { content: attr(data-claim); display: inline-block; margin-inline-end: 6px; padding: 0 6px; border-radius: 4px; background: var(--warning-tint); color: var(--warning-text); font: 600 11px/18px var(--font-latin); vertical-align: middle; direction: ltr; }

@media (max-width: 1023px) {
  .page-head__grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-group { grid-template-columns: minmax(0, 1fr); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc > .toc { display: none; }
  .toc-mobile { display: block; background: var(--surface); border-radius: var(--r-control); box-shadow: var(--e1); }
  .toc-mobile summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 var(--s-4); font-weight: 600; cursor: pointer; }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile[open] summary .icon { transform: rotate(180deg); }
  .toc-mobile .toc { position: static; padding: 0 var(--s-2) var(--s-3); }
}
@media (max-width: 767px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head__visual .phone { width: 44%; }
  .spec-list { grid-template-columns: minmax(0, 1fr); }
  .spec-list dt { border-block-end: 0; padding-block-end: 0; }
  .spec-list dd { padding-block-start: 4px; }
  .support-card__actions .btn { flex: 1 1 100%; }
  /* Tables stack into one card per row on phones */
  .tbl-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl-stack, .tbl-stack tbody, .tbl-stack tr, .tbl-stack td { display: block; }
  .tbl-stack tr { padding: 14px 16px; border-block-end: 1px solid var(--line); }
  .tbl-stack tr:last-child { border-block-end: 0; }
  .tbl-stack td { padding: 2px 0; border: 0; }
  .tbl-stack td:first-child { color: var(--ink); font-weight: 600; }
  .tbl-stack td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); }
}
