/* ==========================================================================
   Darbuna — landing page design system ("the route sheet")
   --------------------------------------------------------------------------
   The landing page is composed like a printed route sheet / atlas plate:
   hairline neatlines, graticule ticks, sheet indices, dotted legend leaders,
   waypoint marks, and one route accent. Every ornament carries meaning.

   Design rules (deliberate, do not "improve" away):
   - NO box-shadows anywhere. Depth = hairlines, tone steps, offset frames.
   - NO colour gradients anywhere. The only gradient on the page is the logo
     mark itself (physical per brand rules, never mirrored).
   - Arabic is never letter-spaced; display tracking applies to Latin only.
   - Everything uses CSS logical properties — EXCEPT map annotations inside
     the route sheet and coverage atlas, which describe physical geography
     and must not flip with direction.
   - This file is self-contained: index.html loads fonts.css + landing.css.
     (styles.css remains the design system for privacy.html/terms.html/404.)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Emerald — anchored on the logo gradient stops. */
  --emerald-300: #5eddb0;
  --emerald-400: #34e5ad;
  --emerald-500: #10ba83;
  --emerald-600: #0e9a6c;
  --emerald-700: #0e7a5c;
  --emerald-800: #0a5b44;
  --emerald-950: #042e21;

  /* Paper & ink — warm stock, basalt ink. */
  --canvas: #f2efe7;
  --surface: #faf8f2;
  --sunken: #e8e4d8;
  --text: #16211c;
  --text-2: #46534d;
  --text-3: #5c6963;
  --rule: rgba(22, 33, 28, 0.16);
  --rule-strong: rgba(22, 33, 28, 0.38);
  --accent: var(--emerald-700);
  --accent-deep: var(--emerald-800);
  --accent-soft: #d8e9de;
  --on-accent: #faf8f2;

  /* Night band (the "من العراق" sheet + footer) — the map after dark. */
  --night: #12201a;
  --night-sunken: #0c1712;
  --night-text: #eef3ee;
  --night-text-2: #a9b8af;
  --night-rule: rgba(238, 243, 238, 0.18);
  --night-rule-strong: rgba(238, 243, 238, 0.36);
  --night-accent: var(--emerald-400);

  --focus: var(--emerald-700);
  --selection: var(--emerald-300);

  /* Type */
  --font-sans: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(2.75rem, 1.1rem + 6vw, 5.6rem);
  --fs-h2: clamp(2.05rem, 1.15rem + 3.1vw, 3.8rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.45rem);
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-micro: 0.6875rem;

  --lh-display: 1.26;
  --lh-snug: 1.45;
  --lh-body: 1.9;

  /* Space (8px rhythm) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --container: 1280px;
  --header-h: 72px;
  --radius: 3px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.22s;

  color-scheme: light;
}

/* Dark mode: explicit choice wins, otherwise follow the system. */
:root[data-theme="dark"],
:root:not([data-theme="light"]) {
  color-scheme: dark;
}

:root[data-theme="dark"] {
  --canvas: #0e1512;
  --surface: #151f1a;
  --sunken: #0a100d;
  --text: #edf1ec;
  --text-2: #a6b2ac;
  --text-3: #8b9791;
  --rule: rgba(237, 241, 236, 0.15);
  --rule-strong: rgba(237, 241, 236, 0.34);
  --accent: var(--emerald-400);
  --accent-deep: var(--emerald-300);
  --accent-soft: #123026;
  --on-accent: #06231a;

  --night: #0a100d;
  --night-sunken: #070c09;
  --night-text: #edf1ec;
  --night-text-2: #96a49d;
  --night-rule: rgba(237, 241, 236, 0.15);
  --night-rule-strong: rgba(237, 241, 236, 0.32);
  --night-accent: var(--emerald-400);

  --focus: var(--emerald-400);
  --selection: var(--emerald-400);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0e1512;
    --surface: #151f1a;
    --sunken: #0a100d;
    --text: #edf1ec;
    --text-2: #a6b2ac;
    --text-3: #8b9791;
    --rule: rgba(237, 241, 236, 0.15);
    --rule-strong: rgba(237, 241, 236, 0.34);
    --accent: var(--emerald-400);
    --accent-deep: var(--emerald-300);
    --accent-soft: #123026;
    --on-accent: #06231a;

    --night: #0a100d;
    --night-sunken: #070c09;
    --night-text: #edf1ec;
    --night-text-2: #96a49d;
    --night-rule: rgba(237, 241, 236, 0.15);
    --night-rule-strong: rgba(237, 241, 236, 0.32);
    --night-accent: var(--emerald-400);

    --focus: var(--emerald-400);
    --selection: var(--emerald-400);
  }
}

/* --------------------------------------------------------------------------
   2. Bilingual switching — both languages live in the DOM, one is shown.
   -------------------------------------------------------------------------- */

html[data-lang="ar"] [lang="en"],
html[data-lang="en"] [lang="ar"] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--selection);
  color: var(--emerald-950);
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--sp-4);
  inset-block-start: -100px;
  z-index: 100;
  background: var(--text);
  color: var(--canvas);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: inset-block-start var(--dur) var(--ease);
}

.skip-link:focus {
  inset-block-start: var(--sp-4);
}

/* Arabic is never letter-spaced (brand rule). */
html[dir="rtl"] :is(h1, h2, h3, .kicker, .chapter, .btn, .nav-link, .micro,
  .footer-head, .notice__title, .hero__intro) {
  letter-spacing: 0;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

/* --------------------------------------------------------------------------
   4. Type primitives
   -------------------------------------------------------------------------- */

h1 {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: var(--lh-display);
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-display);
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

em {
  font-style: normal;
  color: var(--accent);
}

.micro {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Sheet chapter marker: [01] label ———————— */
.chapter {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.chapter::after {
  content: "";
  flex: 1;
  height: 0;
  border-block-start: 1px solid var(--rule);
}

.chapter__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 24px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.kicker {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker__line {
  display: inline-block;
  width: 2.25rem;
  height: 0;
  border-block-start: 1.5px solid currentColor;
}

/* Dotted leader — legend / index rows. */
.leader {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  width: 100%;
}

.leader::after {
  content: "";
  flex: 1;
  border-block-start: 1px dotted var(--rule-strong);
  transform: translateY(-0.25em);
}

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

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

.btn--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--on-accent);
  text-decoration: none;
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn .btn__arrow {
  transition: transform var(--dur) var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(-3px);
}

html[dir="ltr"] .btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* Solid ink action (hero) */
.action-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: 58px;
  padding: 1rem 1.6rem;
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: var(--radius);
  color: var(--canvas);
  font-size: 1.0625rem;
  font-weight: 700;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.action-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
}

.action-link svg {
  transition: transform var(--dur) var(--ease);
}

.action-link:hover svg {
  transform: translate(3px, -3px);
}

html[dir="rtl"] .action-link:hover svg {
  transform: translate(-3px, -3px);
}

/* Underlined text link with arrow */
.text-link,
.inline-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding-block-end: 0.35rem;
  border-block-end: 1px solid var(--rule-strong);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.text-link:hover,
.inline-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.text-link svg,
.inline-arrow svg {
  transition: transform var(--dur) var(--ease);
}

.text-link:hover svg {
  transform: translateY(3px);
}

.inline-arrow:hover svg {
  transform: translate(3px, -3px);
}

html[dir="rtl"] .inline-arrow:hover svg {
  transform: translate(-3px, -3px);
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: var(--canvas);
  border-block-end: 1px solid var(--rule);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand__mark {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  margin-inline-start: var(--sp-6);
}

.nav-link {
  position: relative;
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding-block: 0.4rem;
  transition: color var(--dur) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 100%;
  height: 0;
  border-block-end: 1.5px solid var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}

html[dir="ltr"] .nav-link::after {
  transform-origin: left;
}

.nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-inline-start: auto;
  flex: none;
}

.header-actions > * {
  flex: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--rule);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: block;
  }
}

.nav-toggle {
  display: none;
}

.icon-btn.icon-btn--text {
  width: auto;
  padding-inline: 0.9rem;
  border-color: var(--rule);
  font-size: var(--fs-xs);
}

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

/* Travelled route — the page's distance, drawn under the header. */
.header__progress {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.header__progress-fill {
  height: 100%;
  width: calc(var(--scroll, 0) * 100%);
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   7. Route spine — a dashed route down the page margin, one waypoint
      per sheet. Decorative; hidden when the margin is too narrow.
   -------------------------------------------------------------------------- */

.sheet {
  position: relative;
}

.sheet::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: max(
    10px,
    calc((100vw - min(100vw - 2 * var(--gutter), var(--container))) / 2 - 30px)
  );
  width: 0;
  border-inline-start: 1px dashed var(--rule-strong);
  pointer-events: none;
}

.sheet::after {
  content: "";
  position: absolute;
  inset-block-start: clamp(2.75rem, 7vw, 5.5rem);
  inset-inline-start: max(
    10px,
    calc((100vw - min(100vw - 2 * var(--gutter), var(--container))) / 2 - 33.5px)
  );
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1.5px solid var(--accent);
  pointer-events: none;
}

@media (max-width: 1180px) {
  .sheet::before,
  .sheet::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   8. Hero — the route sheet
   -------------------------------------------------------------------------- */

.hero {
  padding-block-start: clamp(2.5rem, 6vw, 5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero h1 {
  margin-block: clamp(1.75rem, 3vw, 2.75rem) 1.6rem;
}

.hero__intro {
  max-width: 44ch;
  font-size: var(--fs-lead);
  line-height: 1.85;
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-5) var(--sp-6);
  margin-block-start: var(--sp-7);
}

.hero__foot {
  width: 100%;
  margin-block-start: clamp(2.5rem, 5vw, 4.5rem);
  padding-block-start: var(--sp-4);
  border-block-start: 1px solid var(--rule);
  font-size: var(--fs-sm);
  color: var(--text-3);
}

/* --- the sheet itself ---------------------------------------------------- */

.route-sheet {
  position: relative;
  isolation: isolate;
  padding: clamp(0.75rem, 1.5vw, 1.125rem);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}

/* Offset registration frame — print depth, no shadow. */
.route-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--rule);
  transform: translate(10px, 10px);
  border-radius: var(--radius);
}

/* Corner crop marks (physical — never flip). */
.route-sheet::after {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline-end: -1px;
  width: 16px;
  height: 16px;
  border-block-start: 2px solid var(--text);
  border-inline-end: 2px solid var(--text);
}

.route-sheet__plate {
  position: relative;
  aspect-ratio: 650 / 680;
  background: var(--sunken);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.route-sheet__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sheet-graticule {
  stroke: var(--rule-strong);
  stroke-opacity: 0.55;
  stroke-width: 1;
}

/* --- the map scene: a faithful port of the app's onboarding painter
   (MapPalette day/night, MapIcons pins, _ScenePainter geometry). ------- */

.route-sheet__plate {
  --map-bg: #f3f4f1;
  --map-bldg: #e6e7e2;
  --map-park: #cdebc4;
  --map-water: #a9d5f0;
  --map-minor-fill: #ffffff;
  --map-minor-casing: #dee1da;
  --map-secondary-fill: #ffffff;
  --map-secondary-casing: #d2d6ce;
  --map-primary-fill: #fff3d1;
  --map-primary-casing: #e5cb8e;
  --map-route-fill: #10ba83;
  --map-route-casing: #0a6347;
  --map-alt-fill: #b7c7c0;
  --map-alt-casing: #8ea39a;
  --map-pin-stroke: #0f1a16;
  --map-pin-crash: #fceded;
  --map-pin-excavation: #f6efe6;
  --map-pin-camera: #eaf7fd;
}

:root[data-theme="dark"] .route-sheet__plate {
  --map-bg: #0d1311;
  --map-bldg: #18201d;
  --map-park: #0f2419;
  --map-water: #0a2033;
  --map-minor-fill: #1f2925;
  --map-minor-casing: #0d1311;
  --map-secondary-fill: #27332e;
  --map-secondary-casing: #101714;
  --map-primary-fill: #36413c;
  --map-primary-casing: #131a17;
  --map-route-fill: #34e5ad;
  --map-route-casing: #04241a;
  --map-alt-fill: #3a4a44;
  --map-alt-casing: #1c2622;
  --map-pin-stroke: #3f4945;
  --map-pin-crash: #432c2b;
  --map-pin-excavation: #36301e;
  --map-pin-camera: #223f47;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .route-sheet__plate {
    --map-bg: #0d1311;
    --map-bldg: #18201d;
    --map-park: #0f2419;
    --map-water: #0a2033;
    --map-minor-fill: #1f2925;
    --map-minor-casing: #0d1311;
    --map-secondary-fill: #27332e;
    --map-secondary-casing: #101714;
    --map-primary-fill: #36413c;
    --map-primary-casing: #131a17;
    --map-route-fill: #34e5ad;
    --map-route-casing: #04241a;
    --map-alt-fill: #3a4a44;
    --map-alt-casing: #1c2622;
    --map-pin-stroke: #3f4945;
    --map-pin-crash: #432c2b;
    --map-pin-excavation: #36301e;
    --map-pin-camera: #223f47;
  }
}

.map-bg {
  fill: var(--map-bg);
}

.map-bldg,
.map-bldg-fill {
  fill: var(--map-bldg);
}

.map-park {
  fill: var(--map-park);
}

.map-water {
  stroke: var(--map-water);
  stroke-width: 78;
  stroke-linecap: round;
  fill: none;
}

.map-road {
  fill: none;
  stroke-linecap: butt;
  stroke-linejoin: round;
}

.map-road--minor-casing {
  stroke: var(--map-minor-casing);
}

.map-road--minor-fill {
  stroke: var(--map-minor-fill);
}

.map-road--secondary-casing {
  stroke: var(--map-secondary-casing);
}

.map-road--secondary-fill {
  stroke: var(--map-secondary-fill);
}

.map-road--primary-casing {
  stroke: var(--map-primary-casing);
}

.map-road--primary-fill {
  stroke: var(--map-primary-fill);
}

/* Traffic: heavy red / moderate amber (DarbPalette.traffic*). */
.map-jam {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-jam--heavy {
  stroke: #e5484d;
}

.map-jam--moderate {
  stroke: #f5a524;
}

.map-alt-casing {
  fill: none;
  stroke: var(--map-alt-casing);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-alt-fill {
  fill: none;
  stroke: var(--map-alt-fill);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-route-casing {
  fill: none;
  stroke: var(--map-route-casing);
  stroke-width: 10.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 660;
  stroke-dashoffset: 0;
}

.map-route-fill {
  fill: none;
  stroke: var(--map-route-fill);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 660;
  stroke-dashoffset: 0;
}

.map-slow {
  fill: none;
  stroke: #f5a524;
  stroke-width: 7;
  stroke-linecap: round;
}

/* Flowing dashes — the traffic "flow" (_ScenePainter._flow). */
.map-flow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 9;
  animation-name: flow;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.map-origin-ring {
  fill: #0e9a6c;
}

.map-origin-core {
  fill: #ffffff;
}

.map-dest-rim {
  fill: #ffffff;
}

.map-dest-body {
  fill: #f0443a;
}

.map-dest-core {
  fill: #ffffff;
}

/* Side-callout alert pins (MapIcons._sideCallout): warm-white rounded
   square + the report illustration, tail tip on the road. */
.map-alert__balloon {
  stroke: none;
}

.map-alert__balloon.alert--crash {
  fill: var(--map-pin-crash);
}

.map-alert__balloon.alert--excavation {
  fill: var(--map-pin-excavation);
}

.map-alert__balloon.alert--camera {
  fill: var(--map-pin-camera);
}

.map-alert__stroke {
  fill: none;
  stroke: var(--map-pin-stroke);
  stroke-width: 1.9;
  stroke-linejoin: round;
}

.map-alert__icon {
  pointer-events: none;
}

.map-alert__pop {
  transform-origin: 0 0;
  animation-name: pop-in, bump;
  animation-duration: 0.55s, 9s;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1), linear;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: both, none;
}

.alert--crash {
  animation-delay: 0s, -0.025s;
}

.alert--excavation {
  animation-delay: 0.3s, 3.143s;
}

.alert--camera {
  animation-delay: 0.6s, 6.644s;
}

/* Driving arrow (MapIcons._puckNav): logo chevron, brand-gradient fill,
   white rim. The brand gradient is physical — same stops as the mark. */
.car-arrow {
  fill: #0f1a16;
}

.car-arrow-rim {
  fill: none;
  stroke: #ffffff;
  stroke-width: 6;
  stroke-linejoin: round;
}

.car-arrow-fill {
  fill: url(#hero-brand);
}

.car--still {
  display: none;
}

.map-pulse {
  fill: #10ba83;
  opacity: 0;
}

/* --- the caption strip under the hero ------------------------------------ */

.hero__under {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
  padding-block: var(--sp-4);
  border-block: 1px solid var(--rule);
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.hero__under svg {
  flex: none;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   9. Sheets (sections) shared layout
   -------------------------------------------------------------------------- */

.sheet-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.sheet-head {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.sheet-lede {
  max-width: 42ch;
  font-size: var(--fs-lead);
  line-height: 1.85;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   10. On the road — the road notice
   -------------------------------------------------------------------------- */

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

.story__grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.notice {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-block-start: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}

.notice__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding-block-end: var(--sp-4);
  border-block-end: 1px solid var(--rule);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.notice__top svg {
  color: var(--accent);
}

.notice__title {
  margin-block: clamp(1.75rem, 3vw, 2.5rem) var(--sp-2);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.notice__item {
  display: flex;
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  border-block-end: 1px solid var(--rule);
}

.notice__glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  color: var(--accent);
}

.notice__item strong {
  display: block;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text);
}

.notice__item p {
  margin-block-start: var(--sp-2);
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--text-2);
  max-width: 48ch;
}

.notice__note {
  margin-block-start: var(--sp-4);
  padding-block-start: var(--sp-4);
  border-block-start: 1px dotted var(--rule-strong);
  font-size: var(--fs-xs);
  line-height: 1.8;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   11. All of Iraq — the coverage atlas
   -------------------------------------------------------------------------- */

.country {
  padding-block: var(--section-y);
  background: var(--sunken);
}

.country__grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
}

.country__aside {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-block-start: var(--sp-6);
  padding-block-start: var(--sp-5);
  border-block-start: 1px solid var(--rule);
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.country__aside strong {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

/* --- the atlas plate ----------------------------------------------------- */

.coverage-map {
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: clamp(0.875rem, 2vw, 1.375rem);
}

.coverage-map__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  padding-block-end: var(--sp-3);
  border-block-end: 1px solid var(--rule);
}

.coverage-map__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
}

.coverage-map__hint {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.coverage-map__stage {
  background: var(--canvas);
  border: 1px solid var(--rule);
  border-block: 0;
}

#governorate-map {
  width: 100%;
  height: auto;
  display: block;
}

.governorate-shape {
  fill: var(--surface);
  stroke: var(--rule-strong);
  stroke-width: 1;
  cursor: pointer;
  transition: fill var(--dur) var(--ease), stroke var(--dur) var(--ease);
}

.governorate-shape:hover {
  fill: var(--accent-soft);
  stroke: var(--text-3);
}

.governorate-shape.is-selected {
  fill: var(--accent);
  stroke: var(--accent-deep);
}

.governorate-shape:focus-visible {
  outline: none;
  stroke: var(--focus);
  stroke-width: 2.5;
}

.coverage-map__city {
  font-family: var(--font-sans);
  font-weight: 600;
  fill: var(--text);
  stroke: var(--canvas);
  stroke-width: 3;
  paint-order: stroke;
  pointer-events: none;
}

.coverage-map__leader {
  stroke: var(--text-3);
  stroke-opacity: 0.6;
  stroke-width: 1;
  pointer-events: none;
}

.coverage-map__selection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding-block-start: var(--sp-4);
  border-block-start: 1px solid var(--rule);
}

.coverage-map__label {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.coverage-map__selection strong {
  display: block;
  margin-block-start: 0.2rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.coverage-map__offline {
  display: block;
  margin-block-start: var(--sp-2);
  padding-block-start: var(--sp-2);
  border-block-start: 1px dotted var(--rule-strong);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.coverage-map__number {
  flex: none;
  direction: ltr;
  unicode-bidi: isolate;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.coverage-map__fallback {
  margin-block-start: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   12. Made for Iraq — the night sheet
   -------------------------------------------------------------------------- */

.night-band {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
  background: var(--night);
  color: var(--night-text);
}

.night-band::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: max(
    10px,
    calc((100vw - min(100vw - 2 * var(--gutter), var(--container))) / 2 - 30px)
  );
  width: 0;
  border-inline-start: 1px dashed var(--night-rule-strong);
  pointer-events: none;
}

.night-band::after {
  content: "";
  position: absolute;
  inset-block-start: clamp(2.75rem, 7vw, 5.5rem);
  inset-inline-start: max(
    10px,
    calc((100vw - min(100vw - 2 * var(--gutter), var(--container))) / 2 - 33.5px)
  );
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--night);
  border: 1.5px solid var(--night-accent);
  pointer-events: none;
}

@media (max-width: 1180px) {
  .night-band::before,
  .night-band::after {
    display: none;
  }
}

.night-band__contours {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  height: 100%;
  width: auto;
  opacity: 0.55;
  pointer-events: none;
}

.night-band__contours circle {
  fill: none;
  stroke: var(--night-rule);
  stroke-width: 1.5;
}

.night-band .chapter {
  color: var(--night-accent);
}

.night-band .chapter::after {
  border-color: var(--night-rule);
}

.night-band .chapter__num {
  border-color: var(--night-rule-strong);
  color: var(--night-text-2);
}

.night-band h2 {
  color: var(--night-text);
}

.night-band em {
  color: var(--night-accent);
}

.iraqi-story__grid {
  position: relative;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}

.iraqi-story__detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block-start: clamp(0.5rem, 2vw, 1.5rem);
}

.iraqi-story__detail > p:first-child {
  font-size: var(--fs-lead);
  line-height: 1.9;
  color: var(--night-text);
  max-width: 46ch;
}

.iraqi-story__data {
  margin-block: var(--sp-6) var(--sp-6);
  padding-block-start: var(--sp-5);
  border-block-start: 1px solid var(--night-rule);
  font-size: var(--fs-sm);
  line-height: 1.9;
  color: var(--night-text-2);
  max-width: 52ch;
}

.night-band .inline-arrow {
  color: var(--night-text);
  border-color: var(--night-rule-strong);
}

.night-band .inline-arrow:hover {
  color: var(--night-accent);
  border-color: var(--night-accent);
}

/* --------------------------------------------------------------------------
   13. In the car — the head unit
   -------------------------------------------------------------------------- */

.car-story {
  padding-block: var(--section-y);
}

.car-story__grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
}

.car-story__platforms {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  margin-block-start: var(--sp-6);
  padding-block-start: var(--sp-5);
  border-block-start: 1px solid var(--rule);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  direction: ltr;
  justify-content: flex-start;
  color: var(--text);
}

html[dir="rtl"] .car-story__platforms {
  letter-spacing: 0;
}

.car-story__platforms span {
  color: var(--accent);
}

.dashboard {
  padding: clamp(0.5rem, 2vw, 1.5rem) 0;
}

.dashboard__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.65;
  background: var(--night-sunken);
  border: 1px solid var(--rule-strong);
  border-radius: clamp(14px, 2.5vw, 28px);
  padding: clamp(6px, 1.1vw, 12px);
}

/* Hardware bezel: two tone steps, no shadow. */
.dashboard__frame::before {
  content: "";
  position: absolute;
  inset: clamp(6px, 1.1vw, 12px);
  border: 1px solid var(--night-rule);
  border-radius: clamp(9px, 1.8vw, 20px);
  pointer-events: none;
  z-index: 3;
}

.dashboard__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: clamp(9px, 1.8vw, 20px);
  background: var(--night-sunken);
}

.dashboard__map {
  position: absolute;
  inset: 0;
}

.dashboard__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard__bar {
  position: absolute;
  z-index: 2;
  inset-inline: 0.9rem;
  top: 0.65rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  /* The map art is a light asset in both themes — always dark text. */
  color: var(--night);
}

.dashboard__turn {
  position: absolute;
  z-index: 2;
  inset-block-start: 17%;
  inset-inline-start: 3.5%;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  max-width: 74%;
  padding: 0.75rem 0.95rem;
  background: var(--night);
  border: 1px solid var(--night-rule-strong);
  border-radius: var(--radius);
  color: var(--night-text);
  line-height: 1.45;
}

.dashboard__turn strong {
  display: block;
  font-size: clamp(0.75rem, 1.15vw, 1.05rem);
  font-weight: 700;
}

.dashboard__turn small {
  display: block;
  font-size: clamp(0.65rem, 0.95vw, 0.8125rem);
  color: var(--night-text-2);
}

.dashboard__arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(28px, 3.4vw, 44px);
  height: clamp(28px, 3.4vw, 44px);
  border: 1.5px solid var(--night-accent);
  border-radius: 50%;
  color: var(--night-accent);
}

.dashboard__arrow svg {
  width: 62%;
  height: 62%;
}

.dashboard__destination {
  position: absolute;
  z-index: 2;
  inset-inline: 3.5%;
  bottom: 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: 0.65rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: clamp(0.75rem, 1.1vw, 0.9375rem);
  font-weight: 700;
}

.dashboard__destination svg {
  color: var(--accent);
  flex: none;
}

/* --------------------------------------------------------------------------
   14. Closing — arrival
   -------------------------------------------------------------------------- */

.closing {
  padding-block: var(--section-y);
  border-block-start: 1px solid var(--rule);
  background: var(--surface);
  text-align: center;
}

.closing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
}

/* The destination target — the route ends here. */
.closing__mark::before,
.closing__mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
}

.closing__mark::before {
  inset: 0;
}

.closing__mark::after {
  inset: 12px;
  border-style: dashed;
  border-color: var(--accent);
}

.closing__mark img {
  width: 46px;
  height: 46px;
}

.closing h2 {
  margin-block: var(--sp-6) var(--sp-4);
}

.closing p {
  font-size: var(--fs-lead);
  color: var(--text-2);
}

/* Store badges — official artwork, links open the real listings. */
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  margin-block-start: clamp(1.75rem, 3vw, 2.5rem);
}

.store {
  display: inline-block;
  border-radius: 9px;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.store:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.store img {
  display: block;
  height: 48px;
  width: auto;
  border-radius: 9px;
}

/* The badges are black artwork — define their edge on the dark paper. */
:root[data-theme="dark"] .store img {
  outline: 1px solid rgba(237, 241, 236, 0.26);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .store img {
    outline: 1px solid rgba(237, 241, 236, 0.26);
  }
}

/* Screens — the app's own captures, framed like the sheet's map plates. */
.screens-wrap {
  margin-block-start: clamp(3rem, 6vw, 4.5rem);
}

.screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
  max-width: 1080px;
  margin-inline: auto;
  padding: 0;
  list-style: none;
}

.screen {
  padding: clamp(5px, 0.7vw, 9px);
  background: var(--sunken);
  border: 1px solid var(--rule-strong);
  border-radius: clamp(20px, 3vw, 30px);
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(15px, 2.4vw, 22px);
  border: 1px solid var(--rule);
}

/* --------------------------------------------------------------------------
   15. Footer — the gazetteer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--night);
  color: var(--night-text);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) var(--sp-6);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-block-end: clamp(2.5rem, 5vw, 4rem);
}

.footer__about .brand {
  color: var(--night-text);
}

.footer__about p {
  margin-block-start: var(--sp-4);
  max-width: 34ch;
  font-size: var(--fs-sm);
  line-height: 1.9;
  color: var(--night-text-2);
}

.footer-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--night-accent);
  padding-block-end: var(--sp-3);
  border-block-end: 1px solid var(--night-rule);
}

.footer__list {
  margin-block-start: var(--sp-2);
}

.footer__list li {
  border-block-end: 1px solid var(--night-rule);
}

.footer__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: 0.85rem;
  font-size: var(--fs-sm);
  color: var(--night-text-2);
  transition: color var(--dur) var(--ease);
}

.footer__list a::after {
  content: "←";
  font-size: var(--fs-xs);
  opacity: 0;
  transform: translateX(4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

html[dir="ltr"] .footer__list a::after {
  content: "→";
  transform: translateX(-4px);
}

.footer__list a:hover {
  color: var(--night-text);
  text-decoration: none;
}

.footer__list a:hover::after {
  opacity: 1;
  transform: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3) var(--sp-5);
  padding-block-start: var(--sp-5);
  border-block-start: 1px solid var(--night-rule);
  font-size: var(--fs-xs);
  color: var(--night-text-2);
}

.attribution {
  direction: ltr;
  unicode-bidi: isolate;
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  color: var(--night-text-2);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   16. Motion — only where it means something
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero__copy {
    animation: rise 0.8s both;
  }

  .route-sheet {
    animation: rise 0.9s 0.12s both;
  }

  .map-route-casing,
  .map-route-fill {
    animation: trace 1.9s 0.35s cubic-bezier(0.65, 0, 0.35, 1) both;
  }

  .map-alt {
    animation: fade-alt 0.9s 0.35s both;
  }

  .map-traffic,
  .map-slow {
    animation: fade-in 0.9s 0.75s both;
  }

  .map-pulse {
    animation: pulse 1.8s 1s ease-out infinite;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes trace {
    from {
      stroke-dashoffset: 660;
    }

    to {
      stroke-dashoffset: 0;
    }
  }

  @keyframes fade-alt {
    from {
      opacity: 0;
    }

    to {
      opacity: 0.95;
    }
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes flow {
    to {
      stroke-dashoffset: -14;
    }
  }

  @keyframes pop-in {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  /* The heads-up bounce as the car closes in (the app's alert bump). */
  @keyframes bump {
    0%,
    2% {
      transform: scale(1);
    }

    5% {
      transform: scale(1.14);
    }

    8%,
    100% {
      transform: scale(1);
    }
  }

  @keyframes pulse {
    from {
      r: 11px;
      opacity: 0.32;
    }

    to {
      r: 33px;
      opacity: 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* The scene clock freezes: car parked mid-route, no flow, no pulse. */
  .car {
    display: none;
  }

  .car--still {
    display: block;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero__grid {
    gap: var(--sp-6);
  }

  .story__grid,
  .country__grid,
  .iraqi-story__grid,
  .car-story__grid {
    gap: var(--sp-7);
  }
}

@media (max-width: 900px) {
  .hero__grid,
  .story__grid,
  .country__grid,
  .iraqi-story__grid,
  .car-story__grid {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    padding-block-end: var(--sp-4);
  }

  .route-sheet {
    max-width: 560px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__about {
    grid-column: 1 / -1;
  }

  /* Screens: a swipeable strip that bleeds to the screen edges. */
  .screens-wrap {
    width: 100%;
  }

  .screens {
    display: flex;
    gap: 0.75rem;
    max-width: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-inline: var(--gutter);
    padding-block-end: 0.5rem;
    scrollbar-width: none;
  }

  .screens::-webkit-scrollbar {
    display: none;
  }

  .screens:focus-visible {
    outline-offset: -3px;
  }

  .screen {
    flex: 0 0 min(64vw, 280px);
    scroll-snap-align: start;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 62px;
  }

  .nav {
    position: fixed;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: var(--sp-3) var(--gutter) var(--sp-6);
    background: var(--canvas);
    border-block-end: 1px solid var(--rule-strong);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding-inline: var(--sp-2);
    border-block-end: 1px solid var(--rule);
    font-size: var(--fs-body);
  }

  .nav-link::after {
    display: none;
  }

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

  .nav-cta-mobile {
    display: inline-flex;
    margin-block-start: var(--sp-5);
  }

  .nav-toggle {
    display: grid;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 400px) {
  .header__inner {
    gap: var(--sp-3);
  }

  .header-actions {
    gap: var(--sp-1);
  }

  .icon-btn.icon-btn--text {
    padding-inline: 0.65rem;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(2.65rem, 12vw, 3.5rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-4);
    margin-block-start: var(--sp-6);
  }

  .action-link,
  .hero__actions .text-link {
    justify-content: space-between;
    width: 100%;
  }

  .route-sheet::before {
    display: none;
  }

  .hero__under {
    align-items: flex-start;
    flex-direction: row;
  }

  .notice__item {
    gap: var(--sp-4);
  }

  .notice__glyph {
    width: 38px;
    height: 38px;
  }

  .coverage-map__selection strong {
    font-size: 1.25rem;
  }

  .coverage-map__number {
    font-size: 1.15rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
