/* ============================================================
   Grua — grua.app marketing site
   Brand (official monochrome book, same as apps + admin + email):
   Ink #12110C · White · Muted #7C7C7C · Surface #F5F5F4 · Line #E7E6E4
   Font: Craft Gothic (brand, same as RN apps) · IBM Plex Sans Arabic
   ============================================================ */

@font-face {
  font-family: 'Craft Gothic';
  src: url('../assets/fonts/CraftGothic-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Craft Gothic';
  src: url('../assets/fonts/CraftGothic-DemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Craft Gothic';
  src: url('../assets/fonts/CraftGothic-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #12110C;
  --ink-soft: #2A2823;
  --muted: #7C7C7C;
  --muted-strong: #6C6B66; /* muted that passes AA (4.5:1) on white */
  --surface: #F5F5F4;
  --line: #E7E6E4;
  --bg: #EDEDEB;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 10px;
  --font-latin: 'Craft Gothic', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', Tahoma, Arial, sans-serif;
  --track-wide: 0.14em;   /* letter-spaced wordmark / eyebrows (latin only) */
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; } /* Lenis owns scrolling */

body {
  font-family: var(--font-latin);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Arabic: swap family, kill letter-spacing (disconnects Arabic glyphs) */
html[dir="rtl"] body { font-family: var(--font-ar); }
html[dir="rtl"] .hero-eyebrow,
html[dir="rtl"] .nav-wordmark,
html[dir="rtl"] .footer-tag,
html[dir="rtl"] .service-name { letter-spacing: 0 !important; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

/* ---------------- reveal initial state (JS animates in) ---------------- */
.js [data-reveal] { opacity: 0; }

/* ============================ NAV ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.nav.scrolled {
  background: rgba(18, 17, 12, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.07);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 32px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 26px; height: auto; }
.nav-wordmark {
  font-weight: 700; font-size: 15px; letter-spacing: var(--track-wide);
  color: var(--white);
}
.nav-links { display: flex; gap: 28px; margin-inline-start: auto; }
.nav-links a {
  color: rgba(255,255,255,.75); font-size: 14px; font-weight: 400;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
/* sandwich menu — hidden on desktop, shown under 980px where .nav-links collapses */
.nav-burger {
  display: none; background: none; border: 0; padding: 10px 6px; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px; background: var(--white);
  border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
}
.nav.menu-open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.menu-open .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.lang-toggle {
  background: none; border: 1px solid rgba(255,255,255,.35); color: var(--white);
  font-family: var(--font-ar); font-size: 13px; padding: 6px 14px;
  border-radius: 99px; cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
html[dir="rtl"] .lang-toggle { font-family: var(--font-latin); }
.lang-toggle:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 99px; font-weight: 600; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { transform: translateY(-1px); }

/* ============================ HERO ============================ */
.hero {
  position: relative; min-height: 100svh;
  background: var(--ink);
  color: var(--white);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 120px 24px 140px;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* faint route layer between the shader and the copy */
.hero-map {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; opacity: .9;
}
.route-dot { filter: drop-shadow(0 0 6px rgba(255,255,255,.9)); }
html[dir="rtl"] .hero-map { transform: scaleX(-1); } /* the trip reads right-to-left too */
.hero-content { position: relative; z-index: 2; max-width: 720px; }
/* masked word reveal: each word rises out of its own clip box
   (the spans are unwrapped by JS right after the reveal ends) */
.hero-title .hw {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding: 0.12em 0.06em 0.22em; margin: -0.12em -0.06em -0.22em; /* room for descenders/diacritics inside the clip */
}
.hero-title .hw i { display: inline-block; font-style: normal; will-change: transform; }
.hero-logo { margin: 0 auto 28px; width: 58px; height: auto; }
.hero-eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: var(--track-wide);
  color: var(--muted); margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(44px, 7vw, 84px); font-weight: 700; line-height: 1.05;
  letter-spacing: -0.01em; margin-bottom: 24px;
}
html[dir="rtl"] .hero-title { letter-spacing: 0; line-height: 1.25; }
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.72);
  max-width: 560px; margin: 0 auto 40px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* the anti-subscription line: Grua vs yearly-fee apps and phone-quote operators */
.hero-note { margin-top: 18px; font-size: 13.5px; color: rgba(255,255,255,.55); }

.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--white); color: var(--ink);
  padding: 11px 22px; border-radius: 12px;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
  cursor: pointer;
}
/* desktop hover lift comes from the JS magnetic effect (inline transform would
   override a CSS hover transform anyway); the shadow still deepens here */
.store-btn:hover { box-shadow: 0 10px 30px rgba(0,0,0,.35); }
/* touch devices (no magnetic JS): plain press feedback */
.store-btn:active { transform: scale(.97); }
.store-btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: start; }
.store-btn small { font-size: 10px; font-weight: 400; color: var(--muted-strong); }
.store-btn strong { font-size: 15px; font-weight: 700; }

/* animated tow truck */
.hero-road {
  position: absolute; bottom: 0; left: 0; right: 0; height: 96px;
  z-index: 2; pointer-events: none;
}
.road-line {
  position: absolute; bottom: 34px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25) 15%, rgba(255,255,255,.25) 85%, transparent);
}
.truck-rig {
  position: absolute; bottom: 8px; left: 0; /* icon carries ~26px of built-in padding below the wheels */
  transform: translateX(-160px);
  will-change: transform;
}
.truck { color: rgba(255,255,255,.85); display: block; }
/* headlight cone in front of the cab (flips with the rig in RTL) */
.truck-beam {
  position: absolute; left: 92%; bottom: 30px;
  width: 150px; height: 38px; opacity: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,0) 85%);
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 62%);
  pointer-events: none;
}
.hero-car {
  position: absolute; bottom: 27px; left: 0;
  color: rgba(255,255,255,.7);
  will-change: transform;
}
.hero-car .hz { animation: hazblink 1.1s steps(1) infinite; }
@keyframes hazblink { 50% { opacity: .15; } }

/* ============================ SECTIONS ============================ */
.section { padding: 100px 0; }
.section-light { background: var(--white); color: var(--ink); }
.section-dark { background: var(--ink); color: var(--white); }
.section-title {
  font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 48px; text-align: center;
}
html[dir="rtl"] .section-title { letter-spacing: 0; }

/* ---------------- How it works ---------------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  align-items: stretch;
}
.step { display: flex; flex-direction: column; }
.step-media {
  position: relative;
  height: 300px; display: grid; place-items: center;
  background-color: var(--surface); border: 1px solid var(--line);
  /* faint dotted map grid fills the quiet space in every card */
  background-image: radial-gradient(rgba(18,17,12,.055) 1px, transparent 1.5px);
  background-size: 20px 20px;
  border-radius: var(--radius); margin-bottom: 16px;
  color: var(--ink); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.step:hover .step-media { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(18,17,12,.09); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-marker { position: relative; color: var(--ink); flex: none; display: grid; place-items: center; }
.step-marker i {
  position: absolute; font-style: normal; color: var(--white);
  font-size: 14px; font-weight: 700; top: 58%; left: 50%; transform: translate(-50%, -50%);
}
.step h3 { font-size: 20px; font-weight: 700; }
.step-sub { font-size: 14.5px; color: var(--muted-strong); }

.service-chips { display: flex; align-items: center; gap: 18px; padding: 0 18px; position: relative; }
/* the two services as real app-style option cards */
.service-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 30px 18px 22px; flex: 1 1 0; max-width: 170px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 22px rgba(18,17,12,.07);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, border-color .25s ease;
  cursor: default;
}
.service-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(18,17,12,.35);
  box-shadow: 0 16px 36px rgba(18,17,12,.12);
}
.service-name {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  text-align: center; min-height: 2.6em;
  display: flex; align-items: center; justify-content: center;
}
.svc-icon { color: var(--ink); }
.pin-ripple { stroke: currentColor; fill: none; }

/* step 3: real app screenshot inside a proper device mockup */
.step-media-phone { position: relative; overflow: hidden; }
.device {
  position: relative; width: 150px;
  background: var(--ink); border-radius: 26px; padding: 6px;
  box-shadow: 0 24px 54px rgba(18,17,12,.32), inset 0 0 0 1.5px rgba(255,255,255,.14);
  transform: rotate(-5deg);
  will-change: transform;
}
.device-screen { border-radius: 20px; overflow: hidden; background: var(--white); }
.device-screen img { width: 100%; height: auto; }
.device-island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 9px; border-radius: 99px; background: var(--ink);
}
/* floating live-ETA chip, overlapping the device edge */
.eta-chip {
  position: absolute; inset-inline-end: 12%; top: 24%;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--ink);
  font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 99px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(18,17,12,.18);
  white-space: nowrap; pointer-events: none;
}
.eta-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #1DAA61;
  animation: etapulse 1.6s ease-out infinite;
}
@keyframes etapulse { 0% { box-shadow: 0 0 0 0 rgba(29,170,97,.45); } 70% { box-shadow: 0 0 0 7px rgba(29,170,97,0); } 100% { box-shadow: 0 0 0 0 rgba(29,170,97,0); } }

/* ---------------- Launch intro (logo-zoom, from the app's launch animation) ---------------- */
#intro { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
#intro svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------------- Journey (pinned scroll story) ---------------- */
.journey { background: var(--ink); color: var(--white); position: relative; }
.journey-pin { min-height: 100svh; display: flex; align-items: center; padding: 60px 0; }
/* journey + Why are both ink, so their gap reads as one dark void — and it GROWS with screen
   height (the pin centers its ~684px content in 100svh, leaving (100svh-684)/2 trailing).
   The margin cancels that viewport-dependent slack; padding-top is then the whole visual gap. */
@media (min-width: 981px) {
  .journey + .section { margin-top: min(0px, calc(342px - 50svh)); padding-top: 150px; }
}
.journey-grid {
  display: grid; grid-template-columns: minmax(300px, 5fr) 7fr;
  gap: 56px; align-items: stretch; width: 100%; /* map card runs the full height of the stage list */
}
.journey-title { text-align: start; font-size: clamp(28px, 3vw, 40px); margin-bottom: 40px; }
.journey-copy { position: relative; }
/* rail anchors to the steps wrap, not the column — a long (CMS-edited) title can't collide */
.journey-rail-wrap { position: relative; }
.journey-rail {
  position: absolute; top: 8px; bottom: 8px; inset-inline-start: 0; width: 2px;
  background: rgba(255,255,255,.12); border-radius: 2px;
}
.journey-rail i {
  position: absolute; inset: 0; background: var(--white); border-radius: 2px;
  transform: scaleY(var(--p, 0)); transform-origin: top center; display: block;
}
.journey-stages { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.stage {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px; margin-inline-start: 10px;
  border-radius: 10px;
  transition: background .35s ease, opacity .35s ease, transform .35s ease;
  opacity: .38; transform: translateX(0);
}
html[dir="rtl"] .stage { transform: translateX(0); }
.stage-ico {
  flex: none; width: 40px; height: 40px; margin-top: 2px;
  display: grid; place-items: center; border-radius: 12px;
  color: var(--white); background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  transition: background .35s ease, color .35s ease, border-color .35s ease, transform .35s ease;
}
.stage-txt { flex: 1; min-width: 0; }
.stage strong { display: block; font-size: 16.5px; font-weight: 700; margin-bottom: 3px; }
.stage-txt span { font-size: 13.5px; color: rgba(255,255,255,.6); line-height: 1.5; }
.stage.active {
  opacity: 1; background: rgba(255,255,255,.06);
  transform: translateX(6px);
}
.stage.active .stage-ico {
  background: var(--white); color: var(--ink);
  border-color: var(--white); transform: scale(1.06);
}
.stage.done { opacity: .55; }
.stage.done .stage-ico { border-color: rgba(255,255,255,.32); }
html[dir="rtl"] .stage.active { transform: translateX(-6px); }
.journey-scene {
  position: relative;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 24px;
  background:
    radial-gradient(130% 110% at 50% 0%, rgba(255,255,255,.045), transparent 55%),
    #0D0C09;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  padding: 14px;
  overflow: hidden;
  display: flex; align-items: center;
}
.journey-scene svg { width: 100%; height: 100%; display: block; }
.jr-star { fill: none; stroke: rgba(18,17,12,.35); stroke-width: 1.4; }
.jr-chip {
  position: absolute; background: var(--white); color: var(--ink);
  font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 99px;
  white-space: nowrap; opacity: 0; transform: translateY(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4); pointer-events: none;
}
.jr-chip-price   { left: 22%; top: 50%; }
.jr-chip-finding { left: 10%; top: 64%; }
.jr-chip-eta     { left: 16%; top: 48%; }
html[dir="rtl"] .jr-chip { font-family: var(--font-ar); }

/* Phones: map first and full-width, one status card that crossfades, horizontal rail.
   The whole pinned story must fit ONE phone screen. */
@media (max-width: 980px) {
  /* the pin is 100svh (padding can't grow it) — breathing room before Why Grua goes on the section */
  .journey { padding-bottom: 80px; }
  .journey-pin { padding: 84px 0 20px; align-items: stretch; }
  .journey-grid {
    display: flex; flex-direction: column; align-items: stretch;
    justify-content: space-between; gap: 0;
  }
  .journey-copy { display: contents; }    /* lets title / rail / stages reorder around the map */
  .journey-rail-wrap { display: contents; }  /* same trick — rail + stages keep their own order slots */
  .journey-title { order: 1; font-size: clamp(22px, 5.8vw, 28px); margin-bottom: 14px; }
  /* the map card GROWS to fill the phone screen; the drawing stays centered inside it */
  .journey-scene {
    order: 2; padding: 10px; border-radius: 18px;
    flex: 1 1 auto; min-height: 0;
    display: flex; align-items: center;
  }
  .journey-scene svg { width: 100%; height: 100%; }
  .journey-rail {
    order: 3; position: relative; top: auto; bottom: auto; inset-inline-start: auto;
    width: 100%; height: 2px; margin: 18px 0 12px;
  }
  .journey-rail i { transform: scaleX(var(--p, 0)); transform-origin: left center; }
  html[dir="rtl"] .journey-rail i { transform-origin: right center; }
  .journey-stages { order: 4; position: relative; min-height: 92px; display: block; }
  .stage {
    position: absolute; inset: 0; margin: 0; padding: 13px 16px;
    opacity: 0; transform: translateY(10px); pointer-events: none;
  }
  .stage-ico { width: 36px; height: 36px; border-radius: 10px; }
  .stage-txt span { display: block; }
  /* stages stack absolutely here — a semi-visible "done" card would ghost through the active one */
  .stage.done { opacity: 0; }
  .stage.active { opacity: 1; transform: translateY(0); }
  html[dir="rtl"] .stage { transform: translateY(10px); }
  html[dir="rtl"] .stage.active { transform: translateY(0); }
  /* smaller chips, moved clear of the car in the tight camera */
  .jr-chip { font-size: 10.5px; padding: 5px 10px; }
  .jr-chip-price   { left: 30%; top: 36%; }
  .jr-chip-finding { left: 31%; top: 54%; }
  .jr-chip-eta     { left: 27%; top: 34%; }
}

/* ---------------- Why Grua ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 30px 26px; background: rgba(255,255,255,.025);
  transition: transform .35s cubic-bezier(.22,1,.36,1), background .35s ease;
}
/* spotlight that follows the cursor */
.why-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255,255,255,.075), transparent 55%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
/* glowing border that follows the cursor */
.why-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255,255,255,.55), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.why-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.04); }
.why-card:hover::before, .why-card:hover::after { opacity: 1; }
/* .lit = the touch-device light sweep (JS-driven, no hover on phones) */
.why-card.lit::before, .why-card.lit::after { opacity: 1; }
/* icon in a soft chip */
.why-card svg {
  color: var(--white); margin-bottom: 20px; box-sizing: content-box;
  padding: 11px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .35s ease;
}
.why-card:hover svg { transform: translateY(-3px) scale(1.06); background: rgba(255,255,255,.09); }
.why-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: rgba(255,255,255,.62); line-height: 1.55; }

/* ---------------- About ---------------- */
.about-body { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 22px; text-align: center; }

/* ---------------- FAQ ---------------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03);
  transition: border-color .25s ease;
}
.faq-item:hover, .faq-item[open] { border-color: rgba(255,255,255,.5); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-size: 15.5px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: none; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-answer { padding: 0 22px 20px; overflow: hidden; }
.faq-item.closing summary svg { transform: rotate(0deg); } /* chevron turns back as soon as closing starts */
.faq-answer p { font-size: 14.5px; color: rgba(255,255,255,.68); line-height: 1.65; }

/* ---------------- CTA ---------------- */
.section-cta {
  background: var(--ink); color: var(--white);
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-truck {
  position: absolute; bottom: 7px; left: 0;
  color: rgba(255,255,255,.4);
  transform: translateX(-120px);
  pointer-events: none; will-change: transform;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-inner h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.01em; }
html[dir="rtl"] .cta-inner h2 { letter-spacing: 0; }
.cta-inner p { color: rgba(255,255,255,.65); margin-bottom: 10px; }

/* ---------------- Footer ---------------- */
.footer { background: #0C0B08; color: var(--white); padding: 54px 0 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.footer-tag { font-size: 11px; text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--muted); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,.65); transition: color .2s ease; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: var(--muted); }
/* Flaticon free-license attribution */
.footer-credit { font-size: 11px; color: rgba(255,255,255,.35); }
.footer-credit a { text-decoration: underline; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .nav-burger { display: flex; }
  /* the hidden desktop link row was what pushed the actions to the far edge —
     re-pin them so the burger sits in the outer corner of the bar */
  .nav-actions { margin-inline-start: auto; }
  /* the desktop link row becomes a dropdown sheet under the fixed bar */
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 0 14px;
    background: rgba(18, 17, 12, .97);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 18px 30px rgba(0,0,0,.35);
  }
  .nav-links a { padding: 13px 24px; font-size: 15px; }
  .nav.menu-open .nav-links { display: flex; }
  /* the sheet hangs off the bar, so the bar itself must be opaque while open */
  .nav.menu-open { background: rgba(18, 17, 12, .97); }
}
@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .journey { padding-bottom: 48px; }  /* matches the phone 68px section rhythm (pin pad 20 + 48 + 68 = 136) */
  .why-grid { grid-template-columns: 1fr; }
  .step-media { height: 210px; }
  .step-media-phone { height: 250px; }
  .device { width: 130px; }
  /* phones: chips must float inside the card, not fill it edge-to-edge */
  .service-chip svg { width: 60px; height: 60px; }
  .service-chip { padding: 20px 14px 14px; }
  .hero { padding: 110px 20px 130px; }
  /* stacked but compact — full-bleed white bars overwhelm a small screen */
  .hero-ctas { flex-direction: column; align-items: center; gap: 12px; }
  .hero-ctas .store-btn { justify-content: center; width: min(100%, 250px); padding: 10px 20px; }
  /* the roadside scene scales down with the screen */
  .truck { width: 84px; height: 84px; }
  .truck-rig { bottom: 15px; }
  .truck-beam { width: 104px; height: 28px; bottom: 23px; }
  .hero-car { width: 54px; height: 68px; bottom: 27px; }
  .nav-inner { padding: 12px 16px; gap: 12px; }
  .about-body { text-align: start; }
}

/* ============================ REDUCED MOTION ============================ */
/* .no-anim = JS put the journey in static mode (reduced motion or GSAP missing):
   the story must read as a plain list — no pin, every stage visible */
.journey.no-anim .journey-pin { min-height: 0; }
.journey.no-anim .stage { opacity: 1; }
.journey.no-anim .journey-rail { display: none; }
@media (max-width: 980px) {
  .journey.no-anim .journey-stages {
    display: flex; flex-direction: column; gap: 6px; min-height: 0;
  }
  .journey.no-anim .stage { position: static; transform: none; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; }
  .truck-rig, .hero-car, .route-dot, .cta-truck { display: none; }
  .route { stroke-dashoffset: 0; }
}

/* ============================ SUBPAGES (terms / privacy / contact) ============================
   Static-chrome pages: solid nav, ink title band, white document body.
   The CMS legal docs carry their own scoped .gcms styles; we only pull
   their font back to the brand stack (Craft Gothic / IBM Plex per lang). */
.nav-solid { background: rgba(18, 17, 12, .96); }

.page-hero { background: var(--ink); color: var(--white); padding: 148px 0 62px; }
.page-eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: var(--track-wide);
  color: var(--muted); margin-bottom: 14px;
}
html[dir="rtl"] .page-eyebrow { letter-spacing: 0; }
.page-title { font-size: clamp(34px, 5vw, 52px); font-weight: 700; line-height: 1.1; }

.page-body { background: var(--white); padding: 54px 0 90px; min-height: 42vh; }
.doc-state { color: var(--muted-strong); font-size: 15px; padding: 26px 0; }
.doc-state a { text-decoration: underline; }
.doc-content .gcms { max-width: 100%; padding: 0 0 12px; }
.doc-content .gcms, .doc-content .gcms * { font-family: inherit; }

/* ---- contact form ---- */
.contact-intro { color: var(--muted-strong); font-size: 16px; max-width: 560px; margin-bottom: 34px; }
.contact-grid { display: grid; gap: 20px; max-width: 620px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; font-size: 15px;
  color: var(--ink); background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 17, 12, .08);
}
.field textarea { min-height: 150px; resize: vertical; }
/* honeypot: invisible to people, present for bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; opacity: 0; }
.btn-dark { background: var(--ink); color: var(--white); padding: 13px 30px; font-size: 15px; border: 0; }
.btn-dark:hover:not(:disabled) { transform: translateY(-1px); }
.btn-dark:disabled { opacity: .55; cursor: default; }
.form-note { font-size: 14.5px; margin-top: 4px; display: none; }
.form-note.ok { display: block; color: var(--ink); }
.form-note.err { display: block; color: #B3261E; }
.contact-alt { margin-top: 40px; font-size: 14.5px; color: var(--muted-strong); }
.contact-alt a { text-decoration: underline; }
/* the CMS doc repeats its own big title; the ink band already shows it */
.doc-content .gcms > h1:first-child { display: none; }
/* combined bilingual docs: section h1s duplicate the band title too */
.doc-content section > h1:first-child { display: none; }

/* ---- embedded mode (?isMobile=true — app webviews) ----
   Only the document: no site chrome, and the doc's own titles come back. */
html.embedded .nav,
html.embedded .page-hero,
html.embedded .footer,
html.embedded .contact-alt { display: none; }
html.embedded .page-body { padding: 18px 0 40px; min-height: 0; }
html.embedded .doc-content .gcms > h1:first-child,
html.embedded .doc-content section > h1:first-child { display: block; }
/* homepage About teaser -> full /about/ page */
.about-more {
  display: inline-block; margin-top: 22px; font-weight: 600; font-size: 15.5px;
  color: var(--ink); border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
  transition: opacity .2s ease;
}
.about-more:hover { opacity: .65; }
.about-more::after { content: ' \2192'; }
html[dir="rtl"] .about-more::after { content: ' \2190'; }

/* ---- launch-notify form (Get the App section) ---- */
.notify-form { margin-top: 34px; width: 100%; max-width: 460px; }
/* hero variant: compact capture right under the store buttons until the apps launch */
.hero .notify-form { margin: 28px auto 0; max-width: 420px; }
.hero .notify-lead { font-size: 13.5px; margin-bottom: 10px; }
.notify-lead { font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 14px; }
.notify-row { display: flex; gap: 10px; }
.notify-input {
  flex: 1; min-width: 0; padding: 12px 16px; font: inherit; font-size: 14.5px;
  color: var(--white); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  transition: border-color .2s ease, background .2s ease;
}
.notify-input::placeholder { color: rgba(255,255,255,.4); }
.notify-input:focus { outline: none; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.09); }
/* the button must sit exactly as tall as the input — btn-sm alone reads undersized next to it */
.notify-input { height: 50px; padding-top: 0; padding-bottom: 0; }
.notify-row .btn { height: 50px; padding: 0 26px; font-size: 14.5px; display: inline-grid; place-items: center; }
.notify-form .form-note { margin-top: 12px; }
.notify-form .form-note.ok { color: rgba(255,255,255,.85); }
.notify-form .form-note.err { color: #FF9C93; }
@media (max-width: 620px) {
  .notify-row { flex-direction: column; }
  /* stacked column: flex:1 would act on HEIGHT and squash the input flat */
  .notify-input { flex: none; }
}

/* ---- floating Call / WhatsApp (numbers set in the admin panel) ---- */
.float-cta {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: 50%; color: var(--white); background: var(--ink);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.float-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.34); }
.float-wa { background: #1DAA61; border-color: transparent; } /* WhatsApp brand green — instantly recognized */
@media (max-width: 620px) {
  .float-cta { bottom: 16px; inset-inline-end: 16px; gap: 10px; }
  .float-btn { width: 48px; height: 48px; }
  /* room to scroll the footer links clear of the floating buttons */
  .footer { padding-bottom: 140px; }
}
[hidden] { display: none !important; }
html.embedded .float-cta { display: none; } /* app webviews: the app has its own support paths */

/* ============================ SEO LANDING PAGES (/towing/, /spare-tire/, /areas/…, /ar/… twins) ============================
   Pre-rendered per language; white document body between the ink band and the
   dark FAQ/CTA sections (which reuse the homepage styles wholesale). */
a.lang-toggle { display: inline-block; }
.page-sub { margin-top: 16px; font-size: 16px; color: rgba(255,255,255,.68); max-width: 640px; }
/* .about-more is ink-on-white on the homepage; on the dark CTA band it must be white */
.section-cta .about-more { color: var(--white); font-size: 14px; }

.land-intro { color: var(--ink-soft); font-size: 16.5px; line-height: 1.75; max-width: 760px; margin-bottom: 18px; }
.land-h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.01em; margin: 56px 0 26px; }
html[dir="rtl"] .land-h2 { letter-spacing: 0; }
.page-body .land-h2:first-child { margin-top: 0; }

.land-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 760px; }
.land-card {
  display: block; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform .3s ease, box-shadow .3s ease;
}
a.land-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(18,17,12,.09); }
.land-card svg { color: var(--ink); margin-bottom: 14px; }
.land-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.land-card p { font-size: 14.5px; color: var(--muted-strong); line-height: 1.6; }
.land-card .land-more {
  display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14px;
  border-bottom: 1.5px solid currentColor; padding-bottom: 1px;
}

.land-steps { list-style: none; display: grid; gap: 16px; counter-reset: land; max-width: 720px; }
.land-steps li {
  display: flex; gap: 14px; align-items: flex-start; counter-increment: land;
  font-size: 15.5px; color: var(--ink-soft); line-height: 1.65;
}
.land-steps li::before {
  content: counter(land); flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--white); font-size: 13px; font-weight: 700;
  display: grid; place-items: center; margin-top: 2px;
}
.land-steps li strong { display: block; }

.land-checks { list-style: none; display: grid; gap: 12px; max-width: 720px; }
.land-checks li { position: relative; padding-inline-start: 32px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
.land-checks li svg { position: absolute; inset-inline-start: 0; top: 3px; color: var(--ink); }

.area-links { display: flex; flex-wrap: wrap; gap: 10px; max-width: 860px; }
.area-links a {
  border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px;
  font-size: 13.5px; color: var(--ink-soft);
  transition: border-color .2s ease, background .2s ease;
}
.area-links a:hover { border-color: var(--ink); background: var(--surface); }
.area-links a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

@media (max-width: 720px) { .land-grid { grid-template-columns: 1fr; } }
