/* =============================================================================
   N-GEEZ — public website
   One stylesheet, no build step, no CDN. Logical properties only, so the
   Arabic (RTL) and English (LTR) trees share every rule.
   Palette and type follow apps/dashboard (tokens.g.css + docs/DASHBOARD-DESIGN.md).
   ========================================================================== */

/* --- 1. Fonts -------------------------------------------------------------
   Self-hosted woff2, font-display: swap. Inter is listed first in the stack and
   carries no Arabic glyphs, so Arabic falls through to IBM Plex Sans Arabic —
   which is additionally fenced by unicode-range. One stack serves both trees. */

@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FBB2-FBC1; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FBB2-FBC1; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FBB2-FBC1; }

@font-face { font-family: "Inter"; src: url("fonts/Inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* --- 2. Tokens ----------------------------------------------------------- */

:root {
  --bg:            #f6f8f6;
  --surface:       #ffffff;
  --surface2:      #f1f4f2;
  --surface3:      #e9edea;
  --border:        #e1e7e3;
  --border-strong: #c9d2cc;
  --ink:           #0b1410;
  --ink-muted:     #5d6b63;
  --ink-subtle:    #8d9891;
  --primary:       #12c463;
  --primary-hover: #0fb259;
  --primary-ink:   #0a7f40;   /* green that is legible as text on light ground */
  --on-primary:    #05221a;
  --primary-tint:  #e2f9ec;
  --deep:          #05221a;   /* the dark brand ground */
  --deep-2:        #0a3327;
  --on-deep:       #f2f7f3;
  --on-deep-muted: #aec2b7;
  --on-deep-line:  #1b4436;

  --font: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, Segoe UI, sans-serif;

  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgb(11 20 16 / .06);
  --shadow-md: 0 4px 12px rgb(11 20 16 / .08);
  --shadow-lg: 0 12px 32px rgb(11 20 16 / .10);

  --gutter: clamp(16px, 5vw, 40px);
  --wrap: 1120px;
  --section-y: clamp(56px, 8vw, 104px);

  --fast: 120ms;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

/* --- 3. Reset ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Arabic sets tighter than Latin at the same size; give it a little more air. */
html[lang="ar"] body { line-height: 1.85; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
html[lang="ar"] h1, html[lang="ar"] h2,
html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.35; }
p, ul, ol { margin: 0; }
img, svg { max-width: 100%; }
svg { display: block; }
a { color: var(--primary-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* One global focus ring. */
:focus-visible {
  outline: 2px solid var(--primary-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Latin figures everywhere, even inside Arabic sentences. */
.num, time, .fare { font-family: "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { inset-block-start: 12px; }

.wrap {
  inline-size: 100%;
  max-inline-size: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- 4. Header ----------------------------------------------------------- */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  background: rgb(246 248 246 / .88);
  backdrop-filter: saturate(1.6) blur(10px);
  border-block-end: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  block-size: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  flex: none;
}
.brand svg { inline-size: 28px; block-size: 28px; color: var(--primary); }
.brand__name { font-family: "Inter", system-ui, sans-serif; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: var(--r-xs);
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.site-nav a:hover { color: var(--ink); background: var(--surface2); }
.site-nav__links { display: none; }
@media (min-width: 880px) { .site-nav__links { display: contents; } }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  margin-inline-start: 4px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--fast) var(--ease);
}
.lang-switch:hover { border-color: var(--ink-subtle); color: var(--ink); }
.lang-switch svg { inline-size: 15px; block-size: 15px; color: var(--ink-subtle); }

/* --- 5. Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 48px;
  padding-inline: 24px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease),
              color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { inline-size: 18px; block-size: 18px; }

.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }

.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn--outline:hover { border-color: var(--ink-subtle); color: var(--ink); }

.btn--on-deep { background: var(--surface); color: var(--deep); }
.btn--on-deep:hover { background: #e8efe9; color: var(--deep); }

.btn--ghost-deep { background: transparent; color: var(--on-deep); border-color: var(--on-deep-line); }
.btn--ghost-deep:hover { background: rgb(255 255 255 / .06); color: var(--on-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- 6. Sections --------------------------------------------------------- */

section { scroll-margin-block-start: 80px; }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface); border-block: 1px solid var(--border); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-ink);
  margin-block-end: 14px;
}
.eyebrow::before {
  content: "";
  inline-size: 20px;
  block-size: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.section__head { max-inline-size: 60ch; margin-block-end: clamp(28px, 4vw, 48px); }
.section__head h2 { font-size: clamp(25px, 3.4vw, 36px); }
.section__head p {
  margin-block-start: 14px;
  color: var(--ink-muted);
  font-size: clamp(15px, 1.6vw, 17px);
}

/* --- 7. Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, var(--primary-tint) 0%, transparent 60%),
    var(--bg);
  border-block-end: 1px solid var(--border);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
  padding-block: clamp(48px, 8vw, 96px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}
.hero__copy { max-inline-size: 36ch; }
.hero h1 {
  font-size: clamp(31px, 6.2vw, 56px);
  margin-block-end: 20px;
}
.hero h1 .accent { color: var(--primary-ink); }
.hero__lead {
  color: var(--ink-muted);
  font-size: clamp(16px, 2vw, 19px);
  max-inline-size: 42ch;
  margin-block-end: 28px;
}
.hero .btn-row { margin-block-end: 24px; }
.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-subtle);
}
.hero__note svg { inline-size: 16px; block-size: 16px; flex: none; color: var(--primary-ink); }

/* The quote card: an inline-SVG-free illustration built from real elements, so
   it inherits the type and mirrors correctly in RTL. */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(18px, 3vw, 26px);
  max-inline-size: 420px;
  inline-size: 100%;
  margin-inline: auto;
}
.quote-card__map {
  position: relative;
  block-size: 168px;
  border-radius: var(--r-md);
  background: #eef1ee;
  overflow: hidden;
  margin-block-end: 18px;
}
.quote-card__map svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.quote-card__chip {
  position: absolute;
  inset-block-end: 10px;
  inset-inline-start: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  box-shadow: var(--shadow-sm);
}
.quote-card__chip i {
  inline-size: 6px; block-size: 6px; border-radius: 50%;
  background: var(--primary); flex: none;
}
.leg { display: flex; align-items: flex-start; gap: 12px; padding-block: 9px; }
.leg__pin { display: grid; place-items: center; inline-size: 20px; flex: none; padding-block-start: 4px; }
.leg__pin i { inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--primary); display: block; }
.leg--to .leg__pin i { border-radius: 2px; background: var(--ink); }
.leg__text { min-inline-size: 0; }
.leg__label { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-subtle); }
.leg__value { display: block; font-size: 14.5px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.leg-rule { block-size: 1px; background: var(--border); margin-inline-start: 32px; }

.quote-card__fare {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--deep);
  color: var(--on-deep);
}
.quote-card__fare .label { display: block; font-size: 12.5px; color: var(--on-deep-muted); }
.quote-card__fare .fare { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; }
.quote-card__fare .tag {
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgb(18 196 99 / .16);
  color: #6ee7a2;
  font-weight: 500;
  white-space: nowrap;
}

/* --- 8. Trust strip ------------------------------------------------------ */

.strip {
  background: var(--surface);
  border-block-end: 1px solid var(--border);
}
.strip__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(16px, 3vw, 32px);
  padding-block: 28px;
}
.strip__item { display: flex; align-items: flex-start; gap: 10px; }
.strip__item svg { inline-size: 20px; block-size: 20px; flex: none; color: var(--primary-ink); margin-block-start: 2px; }
.strip__item b { display: block; font-size: 14.5px; font-weight: 500; }
.strip__item span { font-size: 13px; color: var(--ink-muted); }

/* --- 9. Steps ------------------------------------------------------------ */

.steps {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding-block-start: 22px;
  border-block-start: 2px solid var(--border);
}
.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary-ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin-block-end: 12px;
}
.step h3 { font-size: 18px; margin-block-end: 8px; }
.step p { color: var(--ink-muted); font-size: 15px; }

/* --- 10. Services -------------------------------------------------------- */

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.card__icon {
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: var(--r-sm);
  background: var(--primary-tint);
  color: var(--deep);
  margin-block-end: 14px;
}
.card__icon svg { inline-size: 21px; block-size: 21px; }
.card h3 { font-size: 17px; margin-block-end: 6px; }
.card p { font-size: 14.5px; color: var(--ink-muted); }
.card__meta {
  margin-block-start: 12px;
  padding-block-start: 12px;
  border-block-start: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-subtle);
}
.section--tint .card { background: var(--bg); }

/* Five services. A plain auto-fit grid leaves one orphan card on its own row at
   desktop; a six-column track with each card spanning two gives 3 + 2 centred. */
@media (min-width: 900px) {
  .cards--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cards--5 > * { grid-column: span 2; }
  .cards--5 > :nth-child(4) { grid-column: 2 / span 2; }
}

/* --- 11. Captains (dark) ------------------------------------------------- */

.deep {
  background:
    radial-gradient(90% 120% at 100% 0%, var(--deep-2) 0%, transparent 65%),
    var(--deep);
  color: var(--on-deep);
}
.deep h2, .deep h3 { color: var(--on-deep); }
.deep .section__head p, .deep p { color: var(--on-deep-muted); }
.deep .eyebrow { color: #6ee7a2; }
.deep .eyebrow::before { background: #6ee7a2; }
.deep__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
@media (min-width: 900px) {
  .deep__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
}
.perks { display: grid; gap: 2px; }
.perk {
  display: flex;
  gap: 16px;
  padding-block: 20px;
  border-block-end: 1px solid var(--on-deep-line);
}
.perk:first-child { border-block-start: 1px solid var(--on-deep-line); }
.perk__icon {
  display: grid; place-items: center;
  inline-size: 38px; block-size: 38px; flex: none;
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / .06);
  color: #6ee7a2;
}
.perk__icon svg { inline-size: 19px; block-size: 19px; }
.perk h3 { font-size: 16.5px; margin-block-end: 5px; }
.perk p { font-size: 14.5px; }

/* --- 12. Safety ---------------------------------------------------------- */

.safety-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.safety-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.section--tint .safety-item { background: var(--bg); }
.safety-item svg { inline-size: 22px; block-size: 22px; flex: none; color: var(--primary-ink); margin-block-start: 2px; }
.safety-item h3 { font-size: 16px; margin-block-end: 5px; }
.safety-item p { font-size: 14.5px; color: var(--ink-muted); }

/* --- 13. Apps / download ------------------------------------------------- */

.apps__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
@media (min-width: 880px) {
  .apps__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
}
.app-card__top { display: flex; align-items: center; gap: 14px; margin-block-end: 14px; }
.app-card__mark {
  display: grid; place-items: center;
  inline-size: 48px; block-size: 48px; flex: none;
  border-radius: var(--r-md);
  background: var(--primary);
  color: var(--on-primary);
}
.app-card--captain .app-card__mark { background: var(--deep); color: var(--primary); }
.app-card__mark svg { inline-size: 27px; block-size: 27px; }
.app-card h3 { font-size: 19px; }
.app-card__top span { display: block; font-size: 13px; color: var(--ink-subtle); font-weight: 400; }
.app-card > p { color: var(--ink-muted); font-size: 15px; margin-block-end: 20px; }

.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  min-block-size: 52px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface2);
  color: var(--ink-subtle);
  cursor: not-allowed;
  text-align: start;
}
.store-badge svg { inline-size: 22px; block-size: 22px; flex: none; }
.store-badge small { display: block; font-size: 10.5px; line-height: 1.3; text-transform: uppercase; letter-spacing: .04em; }
.store-badge b { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--ink-muted); }
html[lang="ar"] .store-badge small { text-transform: none; letter-spacing: 0; }


/* --- 14. Contact --------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.contact-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.section--tint .contact-card { background: var(--bg); }
.contact-card svg { inline-size: 22px; block-size: 22px; color: var(--primary-ink); margin-block-end: 12px; }
.contact-card h3 { font-size: 16.5px; margin-block-end: 6px; }
.contact-card p { font-size: 14.5px; color: var(--ink-muted); margin-block-end: 10px; }
.contact-card a { font-weight: 500; }

/* --- 15. Footer ---------------------------------------------------------- */

.site-footer {
  background: var(--deep);
  color: var(--on-deep-muted);
  padding-block: clamp(40px, 6vw, 64px) 28px;
  font-size: 14px;
}
.site-footer a { color: var(--on-deep-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-deep); text-decoration: underline; }
.footer__grid {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-block-end: 32px;
  border-block-end: 1px solid var(--on-deep-line);
}
.footer__brand .brand { color: var(--on-deep); }
.footer__brand p { margin-block-start: 12px; font-size: 13.5px; max-inline-size: 34ch; }
.footer h4 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--on-deep);
  margin-block-end: 12px;
}
html[lang="ar"] .footer h4 { text-transform: none; letter-spacing: 0; font-size: 13px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  padding-block-start: 22px;
  font-size: 13px;
  color: var(--on-deep-muted);
}

/* --- 16. Legal / long-form pages ----------------------------------------- */

.page-head {
  background: var(--surface);
  border-block-end: 1px solid var(--border);
  padding-block: clamp(36px, 6vw, 64px);
}
.page-head h1 { font-size: clamp(27px, 4.6vw, 42px); max-inline-size: 22ch; }
.page-head .kicker {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-ink);
  margin-block-end: 12px;
}
.page-head .meta {
  margin-block-start: 16px;
  font-size: 14px;
  color: var(--ink-muted);
}
.page-head .meta strong { color: var(--ink); font-weight: 500; }

.doc {
  display: grid;
  /* minmax(0,…) not `auto`: an auto track is sized from min-content, and the wide
     tables inside .table-wrap would drag the whole column past a 390 px viewport. */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(36px, 5vw, 64px);
  align-items: start;
}
@media (min-width: 960px) {
  .doc { grid-template-columns: 240px minmax(0, 1fr); }
}
.toc, .prose { min-inline-size: 0; }
.toc { font-size: 14px; }
@media (min-width: 960px) {
  .toc { position: sticky; inset-block-start: 88px; }
}
.toc h2 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-subtle);
  margin-block-end: 12px;
}
html[lang="ar"] .toc h2 { text-transform: none; letter-spacing: 0; font-size: 13px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  color: var(--ink-muted);
  text-decoration: none;
  border-inline-start: 2px solid var(--border);
}
.toc a:hover { color: var(--ink); background: var(--surface2); border-inline-start-color: var(--primary); }

.prose { max-inline-size: 100%; }
/* 72ch is the reading measure for prose. Tables are reference material and use
   the full column, so their cells do not shred into one word per line. */
.prose > section > p,
.prose > section > ul,
.prose > section > ol,
.prose h2, .prose h3,
.callout { max-inline-size: 72ch; }
.prose section + section { margin-block-start: 40px; }
.prose h2 {
  font-size: clamp(19px, 2.4vw, 23px);
  margin-block-end: 12px;
  padding-block-end: 10px;
  border-block-end: 1px solid var(--border);
}
.prose h3 { font-size: 16.5px; margin-block: 22px 8px; }
.prose p { color: var(--ink-muted); margin-block-end: 14px; }
.prose p strong, .prose li strong { color: var(--ink); font-weight: 500; }
.prose ul, .prose ol { color: var(--ink-muted); padding-inline-start: 22px; margin-block-end: 16px; display: grid; gap: 8px; }
.prose li::marker { color: var(--ink-subtle); }
.prose a { font-weight: 500; }

.callout {
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--primary);
  margin-block: 20px;
}
.callout p:last-child { margin-block-end: 0; }
.callout--warn { border-inline-start-color: #e8960c; background: #fff9ec; }

.table-wrap { max-inline-size: 100%; overflow-x: auto; margin-block: 18px; border: 1px solid var(--border); border-radius: var(--r-md); }
table { inline-size: 100%; min-inline-size: 30rem; border-collapse: collapse; font-size: 14px; background: var(--surface); }
th, td { padding: 11px 14px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--border); }
th { background: var(--surface2); font-weight: 500; color: var(--ink); inline-size: 22%; }
td { color: var(--ink-muted); }
tr:last-child th, tr:last-child td { border-block-end: 0; }

/* Numbered steps inside the delete-account page. */
.how { list-style: none; padding: 0; margin-block: 20px; display: grid; gap: 0; counter-reset: how; }
.how li {
  position: relative;
  counter-increment: how;
  padding: 16px 0 16px 0;
  padding-inline-start: 46px;
  border-block-end: 1px solid var(--border);
  color: var(--ink-muted);
}
.how li:first-child { border-block-start: 1px solid var(--border); }
.how li::before {
  content: counter(how);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 16px;
  inline-size: 28px;
  block-size: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary-ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.how b { color: var(--ink); font-weight: 500; }
kbd {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  padding: 2px 7px;
  border: 1px solid var(--border-strong);
  border-block-end-width: 2px;
  border-radius: var(--r-xs);
  background: var(--surface);
  color: var(--ink);
  white-space: nowrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block-start: 32px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.back-link svg { inline-size: 15px; block-size: 15px; }
html[dir="rtl"] .back-link svg { transform: scaleX(-1); }

/* --- 17. Motion ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
