/*!
 * Logistic Safe (لوجستك سيف) — website styles. No framework, no build step.
 *
 * Everything the site draws is here: the type, the two colour themes, the
 * page furniture (header, menu, footer), the landing sections, the long-form
 * documents (privacy, terms, support, account deletion) and the motion.
 * Direction-neutral by construction — margins and paddings are logical
 * (inline-start/-end), so the same rules lay out the Arabic pages right to
 * left and the English pages left to right.
 *
 * Contents
 *   1. Fonts            5. Header & menu      9.  Documents
 *   2. Tokens & themes  6. Buttons & badges   10. Footer, 404
 *   3. Base             7. Landing sections   11. Motion
 *   4. Layout helpers   8. FAQ, CTA, contact  12. Print
 */

/* 1. Fonts ================================================================
 * IBM Plex Sans Arabic, the apps' own face, served from this site
 * (tools/make_fonts.py). Split by script: an English page never downloads
 * the Arabic glyphs. */

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plex-arabic-400.woff2?v=20260930') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/plex-arabic-600.woff2?v=20260930') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/plex-arabic-700.woff2?v=20260930') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plex-latin-400.woff2?v=20260930') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200B, U+2012-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/plex-latin-600.woff2?v=20260930') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200B, U+2012-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/plex-latin-700.woff2?v=20260930') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200B, U+2012-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens & themes ======================================================
 * The apps' own palette (logistic_core AppColors): Brand Blue for actions and
 * links, Navy Ink for the brand panels, Signal Amber as the driver accent
 * (never as text on white — it is a fill, with navy on top).
 * Contrast checked for every text/background pair in both themes (WCAG AA):
 * body text ≥ 13:1, muted text ≥ 5.6:1 (#5B6472 on #F6F7F9), links and
 * buttons ≥ 5.5:1 (#0A5BD3 on white; white on #0A5BD3), navy on amber 8.4:1,
 * dark theme links #7FB0FF on #0B1220 ≥ 8:1. */

:root {
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto,
    'Noto Sans Arabic', Tahoma, sans-serif;

  --brand: #0a5bd3;
  --brand-ink: #0a5bd3;
  --brand-strong: #0848a8;
  --brand-2: #3d86f0;
  --brand-soft: #e7effb;
  --brand-wash: rgba(10, 91, 211, 0.06);
  --on-brand: #ffffff;

  --navy: #0b1b3f;
  --navy-2: #102a5c;
  --amber: #f5a524;
  --on-amber: #0b1b3f;

  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #5b6472;
  --line: #e3e7ee;
  --line-strong: #cdd4df;

  --success: #12805c;
  --success-soft: #e7f3ee;
  --warm: #b45309;
  --warm-soft: #fbf0e6;
  --danger: #c62828;
  --danger-soft: #fbecec;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 30px -14px rgba(15, 23, 42, 0.2);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.05), 0 30px 64px -26px rgba(11, 27, 63, 0.35);
  --ring: 0 0 0 3px var(--bg), 0 0 0 6px var(--brand-ink);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --container: 1180px;
  --reading: 46rem;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --section-y: clamp(64px, 9vw, 116px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

:root[data-theme='dark'] {
  --brand: #2f6fde;
  --brand-ink: #7fb0ff;
  --brand-strong: #a9c8ff;
  --brand-2: #5a8ff0;
  --brand-soft: #192e55;
  --brand-wash: rgba(127, 176, 255, 0.07);
  --on-brand: #0b1220;

  --navy: #0f1d40;
  --navy-2: #13275a;

  --bg: #0b1220;
  --bg-soft: #0f1729;
  --surface: #131c2e;
  --surface-2: #1b2538;
  --ink: #e6eaf0;
  --ink-2: #c9d1dd;
  --muted: #a0aabb;
  --line: #26324a;
  --line-strong: #34425e;

  --success: #4cc38a;
  --success-soft: #1c373d;
  --warm: #f2a541;
  --warm-soft: #373231;
  --danger: #ff6b6b;
  --danger-soft: #392938;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.35), 0 30px 70px -24px rgba(0, 0, 0, 0.8);

  color-scheme: dark;
}

/* 3. Base ================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

:lang(en) body,
body:lang(en) {
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

:lang(en) :is(h1, h2, h3) {
  letter-spacing: -0.015em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.1rem, 1.35rem + 3.3vw, 3.8rem);
}

h2 {
  font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
  line-height: 1.4;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--brand-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--brand-strong);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

ul,
ol {
  padding-inline-start: 1.3em;
  margin: 0 0 1em;
}

strong {
  color: var(--ink);
  font-weight: 700;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

::selection {
  background: var(--brand-soft);
  color: var(--ink);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* Arrows and chevrons point the reading way. */
[dir='rtl'] .flip {
  transform: scaleX(-1);
}

bdi,
.ltr {
  unicode-bidi: isolate;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: var(--bg);
}

kbd,
.path {
  display: inline-block;
  padding: 0 0.45em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: 600 0.92em/1.6 var(--font);
  white-space: nowrap;
}

/* 4. Layout helpers ======================================================= */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section.is-soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-head.is-start {
  margin-inline: 0;
  text-align: start;
}

.section-head p {
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.eyebrow .icon {
  width: 1.05em;
  height: 1.05em;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--muted);
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

@media (min-width: 640px) {
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--muted);
}

@media (hover: hover) {
  .card.is-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
  }
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.icon-tile .icon {
  width: 24px;
  height: 24px;
}

.icon-tile.is-amber {
  background: var(--amber);
  color: var(--on-amber);
}

.icon-tile.is-navy {
  background: var(--navy);
  color: #ffffff;
}

:root[data-theme='dark'] .icon-tile.is-navy {
  background: #22335e;
}

.icon-tile.is-green {
  background: var(--success-soft);
  color: var(--success);
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 5. Header & menu ======================================================== */

.lang-suggest {
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9375rem;
}

.lang-suggest[hidden] {
  display: none;
}

.lang-suggest .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding-block: 10px;
}

.lang-suggest p {
  margin: 0;
}

.lang-suggest a,
.lang-suggest button {
  color: inherit;
  font: inherit;
  font-weight: 600;
}

.lang-suggest button {
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--bg) 35%, transparent);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease);
  view-transition-name: site-header;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
  margin-inline-end: auto;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 6px 14px -6px rgba(10, 91, 211, 0.6);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-links a[aria-current='page'] {
  background: var(--brand-wash);
  color: var(--brand-ink);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-btn {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 600 0.9rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.tool-btn:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--ink);
}

.tool-btn .icon {
  width: 20px;
  height: 20px;
}

/* The theme button shows the theme it switches *to*. */
.theme-toggle .when-dark,
:root[data-theme='dark'] .theme-toggle .when-light {
  display: none;
}

:root[data-theme='dark'] .theme-toggle .when-dark {
  display: block;
}

.nav-tools .nav-cta {
  display: none;
}

.menu-toggle .when-open,
.menu-toggle[aria-expanded='true'] .when-closed {
  display: none;
}

.menu-toggle[aria-expanded='true'] .when-open {
  display: block;
}

@media (min-width: 640px) {
  .nav-tools .nav-cta {
    display: inline-flex;
    min-height: 42px;
    padding-block: 8px;
  }
}

@media (min-width: 1120px) {
  .nav-links {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0; /* top follows the header; see site.js */
  z-index: 49;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu li + li {
  border-top: 1px solid var(--line);
}

.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu a:not(.btn) .icon {
  color: var(--muted);
  width: 18px;
  height: 18px;
}

.mobile-menu .menu-foot {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

body.menu-open {
  overflow: hidden;
}

/* 6. Buttons & badges ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn .icon {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--brand-ink);
  color: var(--on-brand);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--brand-ink) 80%, transparent);
}

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

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.btn-soft {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.btn-soft:hover {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--brand-soft) 70%, var(--brand) 12%);
}

.btn-block {
  width: 100%;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
  }
  .btn:hover .flip,
  .btn:hover .nudge {
    transform: translateX(3px);
  }
  [dir='rtl'] .btn:hover .flip {
    transform: scaleX(-1) translateX(3px);
  }
}

.btn .nudge,
.btn .flip {
  transition: transform 0.25s var(--ease-out);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* A store badge. Until a listing is live it is a <span aria-disabled> that
 * reads "Coming soon" — muted, not a link, not focusable. assets/js/site.js
 * turns it into a real link once STORES[app][store].live is true. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 7px 18px 7px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

[dir='rtl'] .store-badge {
  padding: 7px 14px 7px 18px;
}

.store-badge .icon {
  width: 24px;
  height: 24px;
}

.store-badge > span {
  display: grid;
  line-height: 1.15;
  text-align: start;
}

.store-badge small {
  font-size: 0.72rem;
  font-weight: 600;
}

.store-badge b {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.store-badge.is-soon {
  cursor: not-allowed;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  user-select: none;
}

.store-badge.is-soon .icon {
  opacity: 0.7;
}

a.store-badge:hover {
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.pill .icon {
  width: 14px;
  height: 14px;
}

.pill.is-brand {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.pill.is-amber {
  background: var(--amber);
  color: var(--on-amber);
}

.pill.is-navy {
  background: var(--navy);
  color: #ffffff;
}

:root[data-theme='dark'] .pill.is-navy {
  background: #22335e;
}

/* 7. Landing sections ===================================================== */

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(36px, 6vw, 88px) clamp(56px, 8vw, 104px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  z-index: -2;
  background:
    radial-gradient(40rem 26rem at 80% 16%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 70%),
    radial-gradient(30rem 22rem at 10% 10%, color-mix(in srgb, var(--amber) 12%, transparent), transparent 70%),
    radial-gradient(30rem 22rem at 30% 92%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%);
}

[dir='rtl'] .hero::before {
  transform: scaleX(-1);
}

/* A faint dot grid, fading out towards the edges. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  opacity: 0.5;
}

.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--brand-ink);
}

.hero .lead {
  max-width: 38rem;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-points .icon {
  width: 18px;
  height: 18px;
  color: var(--brand-ink);
}

/* The hero scene: a drawn map with the brand's route (origin ring →
 * destination dot) and three cards that echo the apps' own components.
 * An illustration, not a screenshot — it carries a text alternative. */
.scene {
  position: relative;
  width: min(520px, 100%);
  justify-self: center;
  padding: 18px 0 30px;
}

.scene-map {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(160deg, #0f2452, var(--navy) 60%);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.scene-map svg {
  width: 100%;
  height: 100%;
}

[dir='rtl'] .scene-map svg {
  transform: scaleX(-1);
}

.scene-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 270px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.35;
}

.scene-card b {
  display: block;
  font-size: 0.9375rem;
}

.scene-card .sub {
  display: block;
  color: var(--muted);
}

.scene-card .icon-tile {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 12px;
}

.scene-card .icon-tile .icon {
  width: 21px;
  height: 21px;
}

.scene-card.is-status {
  top: 0;
  inset-inline-start: -4%;
}

.scene-card.is-code {
  top: 44%;
  inset-inline-end: -5%;
}

.scene-card.is-proof {
  bottom: 0;
  inset-inline-start: 6%;
}

.code-digits {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  direction: ltr;
}

.code-digits span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 28px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 1rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent);
  flex: none;
}

@media (max-width: 560px) {
  .scene-card {
    max-width: 230px;
    padding: 10px 12px;
    font-size: 0.8125rem;
  }
  .scene-card.is-status {
    inset-inline-start: 0;
  }
  .scene-card.is-code {
    inset-inline-end: 0;
    top: 40%;
  }
  .scene-card.is-proof {
    inset-inline-start: 2%;
  }
}

/* Category strip */
.cats {
  display: grid;
  gap: 10px;
  margin-top: clamp(40px, 6vw, 64px);
}

@media (min-width: 540px) {
  .cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .cats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cats li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}

.cats li span span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.cats .icon {
  color: var(--brand-ink);
  width: 24px;
  height: 24px;
}

/* The three apps */
.apps-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

@media (min-width: 1000px) {
  .apps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--brand);
}

.app-card.is-driver::before {
  background: var(--amber);
}

.app-card.is-admin::before {
  background: var(--navy);
}

:root[data-theme='dark'] .app-card.is-admin::before {
  background: #4488ee;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-head img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  box-shadow: 0 10px 22px -12px rgba(11, 27, 63, 0.6);
  flex: none;
}

:root[data-theme='dark'] .app-head img {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.app-head h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.app-head .pill {
  white-space: normal;
}

.app-card > p {
  margin: 0;
  color: var(--muted);
}

.app-card .check-list {
  margin: 0;
  flex: 1;
}

.app-foot {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.app-foot .store-row {
  gap: 8px;
}

.app-foot .store-badge {
  flex: 1 1 150px;
}

.app-foot .note {
  margin: 0;
}

.muted-small {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* How it works */
.flow {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

@media (min-width: 720px) {
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.flow > li {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  counter-increment: flow;
}

.flow > li::before {
  content: counter(flow);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
}

:root[data-theme='dark'] .flow > li::before {
  background: var(--brand);
  color: #ffffff;
}

.flow > li:last-child::before {
  background: var(--amber);
  color: var(--on-amber);
}

.flow h3 {
  margin-bottom: 6px;
}

.flow p {
  margin: 0;
  color: var(--muted);
}

.flow .icon.corner {
  position: absolute;
  top: 26px;
  inset-inline-end: 24px;
  width: 26px;
  height: 26px;
  color: var(--brand-ink);
  opacity: 0.9;
}

/* Split: text beside a panel */
.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.check-list {
  margin: 0 0 1.5em;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list .icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.2em;
  padding: 3px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.check-list.is-danger .icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.check-list.is-amber .icon {
  background: var(--amber);
  color: var(--on-amber);
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  padding: 16px 20px;
  padding-inline-start: 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  inset-inline-start: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--brand-ink);
  color: var(--on-brand);
  font-weight: 700;
  font-size: 0.95rem;
}

.steps b {
  display: block;
  color: var(--ink);
}

.steps span {
  color: var(--muted);
}

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--brand-wash);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  color: var(--ink-2);
  margin: 20px 0 0;
  font-size: 0.95rem;
}

.note .icon {
  color: var(--brand-ink);
  margin-top: 0.2em;
}

.note.is-warm {
  background: var(--warm-soft);
  border-color: color-mix(in srgb, var(--warm) 30%, transparent);
}

.note.is-warm .icon {
  color: var(--warm);
}

/* Safety: navy panel */
.safety-panel {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 4vw, 52px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(36rem 22rem at 100% 0%, rgba(61, 134, 240, 0.28), transparent 70%),
    linear-gradient(150deg, var(--navy-2), var(--navy) 60%);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

[dir='rtl'] .safety-panel {
  background:
    radial-gradient(36rem 22rem at 0% 0%, rgba(61, 134, 240, 0.28), transparent 70%),
    linear-gradient(210deg, var(--navy-2), var(--navy) 60%);
}

:root[data-theme='dark'] .safety-panel {
  border: 1px solid var(--line-strong);
}

.safety-panel h2,
.safety-panel h3 {
  color: #ffffff;
}

.safety-panel .section-head p,
.safety-panel p {
  color: rgba(255, 255, 255, 0.86);
}

.safety-panel .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.safety-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .safety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .safety-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.safety-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.safety-item .icon {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--amber);
  color: var(--on-amber);
}

.safety-item h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.safety-item p {
  margin: 0;
  font-size: 0.95rem;
}

.safety-panel .btn {
  justify-self: start;
  background: #ffffff;
  color: var(--navy);
}

.safety-panel .btn:hover {
  background: #e7effb;
  color: var(--navy);
}

/* Payments row */
.pay-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .pay-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 8. FAQ, CTA, contact ==================================================== */

.faq {
  max-width: 52rem;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq details[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.45;
  border-radius: var(--radius);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--muted);
  transform: rotate(90deg);
  transition: transform 0.3s var(--ease-out);
}

.faq details[open] summary .icon {
  transform: rotate(-90deg);
}

.faq .answer {
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq .answer p:last-child,
.faq .answer ul:last-child,
.faq .answer ol:last-child {
  margin-bottom: 0;
}

.cta-band {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(36rem 20rem at 100% 0%, rgba(61, 134, 240, 0.35), transparent 70%),
    linear-gradient(140deg, var(--navy), var(--navy-2));
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

[dir='rtl'] .cta-band {
  background:
    radial-gradient(36rem 20rem at 0% 0%, rgba(61, 134, 240, 0.35), transparent 70%),
    linear-gradient(220deg, var(--navy), var(--navy-2));
}

:root[data-theme='dark'] .cta-band {
  border: 1px solid var(--line-strong);
}

.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.2px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
}

@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.cta-band h2 {
  color: #ffffff;
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.cta-band .btn-primary {
  background: #ffffff;
  color: var(--navy);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: #e7effb;
  color: var(--navy);
}

.cta-band .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.contact-card.is-primary {
  background:
    radial-gradient(26rem 14rem at 100% 0%, var(--brand-wash), transparent 70%),
    var(--surface);
  border-color: color-mix(in srgb, var(--brand) 26%, transparent);
}

.email-line {
  display: block;
  margin: 4px 0 16px;
  color: var(--ink);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  font-weight: 700;
  word-break: break-all;
  text-decoration: none;
}

.email-line:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.copy-status {
  display: block;
  min-height: 1.6em;
  margin-top: 8px;
  color: var(--brand-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

.link-list .icon {
  width: 18px;
  height: 18px;
}

/* 9. Documents (privacy, terms, support, account deletion) ================ */

.doc-hero {
  position: relative;
  padding-block: clamp(36px, 6vw, 76px) clamp(30px, 4vw, 46px);
  background:
    radial-gradient(40rem 20rem at 85% 0%, color-mix(in srgb, var(--brand-2) 13%, transparent), transparent 70%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

[dir='rtl'] .doc-hero {
  background:
    radial-gradient(40rem 20rem at 15% 0%, color-mix(in srgb, var(--brand-2) 13%, transparent), transparent 70%),
    var(--bg-soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}

.breadcrumb .icon {
  width: 14px;
  height: 14px;
}

.doc-hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
}

.doc-hero .lead {
  max-width: 46rem;
  margin-bottom: 20px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
}

.doc-meta > div {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
}

.doc-meta dt {
  color: var(--muted);
  font-weight: 400;
}

.doc-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.glance {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .glance {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.glance li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

.glance .icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--brand-ink);
  margin-top: 1px;
}

.doc-layout {
  display: grid;
  gap: 32px;
  padding-block: clamp(32px, 5vw, 64px) var(--section-y);
}

@media (min-width: 1024px) {
  .doc-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: clamp(40px, 5vw, 72px);
  }
}

/* Contents: a disclosure on a phone, a sticky sidebar on a desk. */
.toc {
  font-size: 0.95rem;
}

.toc details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-weight: 700;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary .icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transform: rotate(90deg);
  transition: transform 0.3s var(--ease-out);
}

.toc details[open] summary .icon {
  transform: rotate(-90deg);
}

.toc ol {
  margin: 0;
  padding: 4px 10px 14px;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.45;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.toc a::before {
  content: counter(toc) '.';
  flex: none;
  min-width: 1.6em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.toc a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.toc a.is-active {
  background: var(--brand-wash);
  color: var(--brand-ink);
  font-weight: 600;
}

.toc a.is-active::before {
  color: var(--brand-ink);
}

@media (min-width: 1024px) {
  .toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
  }
  .toc details {
    border: 0;
    background: none;
  }
  .toc summary {
    padding: 0 10px 12px;
    cursor: default;
    pointer-events: none;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
  }
  :lang(en) .toc summary {
    text-transform: uppercase;
  }
  .toc summary .icon {
    display: none;
  }
  .toc ol {
    padding: 0;
  }
}

.prose {
  max-width: var(--reading);
  min-width: 0;
}

.prose section {
  padding-block: 8px 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.prose section:last-of-type {
  border-bottom: 0;
}

.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  margin-bottom: 16px;
}

.prose h3 {
  font-size: 1.125rem;
  margin: 26px 0 10px;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
}

.prose ul li::marker {
  color: var(--brand);
}

.heading-anchor {
  opacity: 0;
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}

.prose h2:hover .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table caption {
  padding: 14px 16px 0;
  color: var(--muted);
  font-weight: 600;
  text-align: start;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table tr:last-child > * {
  border-bottom: 0;
}

.data-table thead th {
  color: var(--ink);
  background: var(--surface-2);
  font-size: 0.875rem;
}

.data-table tbody th {
  color: var(--ink);
}

.data-table small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.contact-panel {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
  background:
    radial-gradient(26rem 14rem at 100% 0%, var(--brand-wash), transparent 70%),
    var(--surface);
}

.contact-panel p {
  margin: 0;
}

/* Panels in a grid (support, account deletion) */
.panel-grid {
  display: grid;
  gap: 16px;
  padding-block: clamp(32px, 5vw, 64px) 24px;
}

@media (min-width: 900px) {
  .panel-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .panel-grid > .span-6 {
    grid-column: span 6;
  }
  .panel-grid > .span-4 {
    grid-column: span 4;
  }
  .panel-grid > .span-3 {
    grid-column: span 3;
  }
  .panel-grid > .span-2 {
    grid-column: span 2;
  }
}

.panel {
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.panel h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.panel h3 {
  font-size: 1.05rem;
  margin: 18px 0 8px;
}

.panel p,
.panel li {
  color: var(--ink-2);
}

.panel > :last-child {
  margin-bottom: 0;
}

.icon-bubble {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.panel.is-danger {
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
}

.panel.is-danger .icon-bubble {
  background: var(--danger-soft);
  color: var(--danger);
}

.panel.is-warm .icon-bubble {
  background: var(--warm-soft);
  color: var(--warm);
}

.panel.is-green .icon-bubble {
  background: var(--success-soft);
  color: var(--success);
}

.callout {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-wash);
}

.callout.is-danger {
  background: var(--danger-soft);
  color: var(--ink);
}

.panel .steps > li {
  padding-block: 12px;
  padding-inline-start: 56px;
  border-color: transparent;
  background: var(--surface-2);
}

.panel .steps > li::before {
  top: 12px;
  inset-inline-start: 14px;
  width: 28px;
  height: 28px;
}

.doc-foot {
  padding-bottom: var(--section-y);
}

.back-to-top {
  position: fixed;
  inset-inline-end: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-out), visibility 0.3s;
}

.back-to-top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top .icon {
  width: 22px;
  height: 22px;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* 10. Footer, 404 ========================================================= */

.site-footer {
  padding-block: clamp(48px, 7vw, 80px) 32px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  font-size: 0.975rem;
}

.footer-grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  }
}

.footer-about p {
  color: var(--muted);
  max-width: 24rem;
  margin: 16px 0 0;
}

.footer-apps {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.footer-apps img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-footer h2 {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

:lang(en) .site-footer h2 {
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.footer-links a > bdi {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}

.footer-links .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.notfound {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: grid;
  place-items: center;
  padding-block: var(--section-y);
  text-align: center;
}

.notfound-code {
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 8px;
  background: linear-gradient(120deg, var(--brand-ink), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound-langs {
  display: grid;
  gap: 32px;
  max-width: 56rem;
  margin-inline: auto;
}

@media (min-width: 800px) {
  .notfound-langs {
    grid-template-columns: 1fr 1fr;
  }
}

.notfound-langs > div {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.notfound-langs .hero-actions {
  justify-content: center;
  margin: 20px 0 0;
}

.notfound .nf-en {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.55em;
}

.notfound .muted-small {
  margin-top: 28px;
}

/* Under /en/… the English half comes first. */
.notfound-langs.en-first > [lang='en'] {
  order: -1;
}

/* 11. Motion ==============================================================
 * Everything that moves is opt-in: only for visitors who have not asked
 * their system for reduced motion, and — for the scroll reveal — only once
 * the script is running, so nothing stays hidden if it never does. */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation: 180ms var(--ease) both vt-out;
  }

  ::view-transition-new(root) {
    animation: 320ms var(--ease-out) both vt-in;
  }

  @keyframes vt-out {
    to {
      opacity: 0;
    }
  }

  @keyframes vt-in {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }

  html.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 80ms);
  }

  /* A stagger for neighbours that arrive together (a class, not an inline
   * style: the CSP allows no inline styles). */
  .d-1 {
    --d: 1;
  }

  .d-2 {
    --d: 2;
  }

  .d-3 {
    --d: 3;
  }

  html.reveal-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .scene-card {
    animation: float 7s ease-in-out infinite;
  }

  .scene-card.is-code {
    animation-delay: -2.3s;
  }

  .scene-card.is-proof {
    animation-delay: -4.6s;
  }

  @keyframes float {
    50% {
      transform: translateY(-8px);
    }
  }

  /* The route draws itself once, then the vehicle glides along it. */
  .scene-route {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.6s 0.3s var(--ease-out) forwards;
  }

  @keyframes draw {
    to {
      stroke-dashoffset: 0;
    }
  }

  .status-dot {
    animation: pulse 2.4s ease-in-out infinite;
  }

  @keyframes pulse {
    50% {
      box-shadow: 0 0 0 7px color-mix(in srgb, var(--success) 8%, transparent);
    }
  }

  .mobile-menu:not([hidden]) {
    animation: menu-in 0.28s var(--ease-out);
  }

  @keyframes menu-in {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 12. Print =============================================================== */

@media print {
  :root {
    --bg: #ffffff;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --ink: #000000;
    --ink-2: #111111;
    --muted: #333333;
  }

  .site-header,
  .site-footer,
  .lang-suggest,
  .mobile-menu,
  .back-to-top,
  .toc,
  .skip-link,
  .heading-anchor {
    display: none !important;
  }

  body {
    font-size: 11pt;
  }

  .doc-hero,
  .panel,
  .table-wrap,
  .glance li {
    background: none !important;
    box-shadow: none !important;
  }

  .doc-layout {
    display: block;
    padding: 0;
  }

  .prose {
    max-width: none;
  }

  .prose section {
    break-inside: avoid-page;
  }

  .prose a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 0.85em;
  }
}
