/* ============================================================================
   ALO ALOO — Marketing site
   Design language mirrors the ALO ALOO customer app (components/ui/v2):
   black-and-white commerce UI, green #0FA958 as accent only, Inter,
   8/12/24 radii, soft low-opacity shadows, whitespace over borders.
   ========================================================================= */

/* ---------- Tokens (from apps/customer-app/constants/colors.ts) ---------- */
:root {
  /* neutrals / base */
  --white: #FFFFFF;
  --ink: #000000;         /* primary text + primary action */
  --ink-2: #6B6B6B;       /* secondary text */
  --ink-3: #9A9A9A;       /* tertiary / muted */
  --surface: #FAFAFA;     /* subtle background */
  --surface-2: #F2F2F2;   /* recessed surfaces, secondary buttons, inputs */
  --border: #E5E5E5;      /* hairlines */
  --border-2: #D1D1D1;

  /* Green system — tonal, soft mint → deep emerald (not one flat loud green) */
  --green: #0FA958;         /* bright brand accent only: dots, pills, route, highlights */
  --green-dark: #0B8A47;
  --green-text: #0A7A3E;    /* accessible small green text on light */
  --green-light: #EAF6EF;   /* soft mint surface — proof band */
  --green-pill: #E5F8EE;    /* promo pill bg */
  --green-surface: #0C6B41; /* deep emerald brand surface — navbar + download (WHITE text) */
  --green-deep: #06331F;    /* deepest green band — Pourquoi (WHITE text) */
  --green-ink: #06251A;     /* dark green text on mint/light-green surfaces */
  --green-mint: #7EE7AE;    /* mint accent / icons on deep-green surfaces */
  --star: #E5A50A;

  /* type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* radius (app R scale) */
  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-4: 16px; --r-5: 24px; --r-full: 999px;

  /* shadows (app SHADOWS — soft, low opacity) */
  --sh-sm: 0 1px 2px rgba(0,0,0,.04);
  --sh-md: 0 2px 8px rgba(0,0,0,.06);
  --sh-lg: 0 4px 16px rgba(0,0,0,.08);
  --sh-xl: 0 8px 32px rgba(0,0,0,.12);

  /* spacing (4-pt grid) */
  --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s7: 32px; --s8: 40px; --s9: 48px; --s10: 64px; --s11: 80px; --s12: 96px;

  /* layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 68px;

  /* motion (app motion tokens) */
  --dur: 220ms;
  --ease: cubic-bezier(.32,.72,0,1);

  /* fluid type scale */
  --t-eyebrow: .78rem;
  --t-h1: clamp(2.5rem, 1.3rem + 4.6vw, 4.4rem);
  --t-h2: clamp(1.85rem, 1.2rem + 2.2vw, 2.9rem);
  --t-h3: 1.2rem;
  --t-lead: clamp(1.02rem, .96rem + .3vw, 1.2rem);
  --t-body: 1rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: var(--r-2); font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* ---------- Reveal (JS-gated so content survives no-JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ============================================================================
   Buttons (app v2/Button — solid black, 8px radius, press scale)
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding-inline: var(--s6);
  border-radius: var(--r-2);
  font-weight: 600; font-size: 1rem; letter-spacing: -.01em;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--sm { height: 42px; padding-inline: var(--s5); font-size: .92rem; }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--sh-lg); }
.btn--primary:active { transform: scale(.96); }
.btn--ghost { background: var(--surface-2); color: var(--ink); }
.btn--ghost:hover { background: #E9E9E9; }

/* App store badges */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 18px;
  background: var(--ink); color: var(--white);
  border-radius: var(--r-3);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.store-badge:active { transform: scale(.97); }
.store-badge span { display: flex; flex-direction: column; line-height: 1.05; }
.store-badge small { font-size: .64rem; letter-spacing: .02em; opacity: .82; text-transform: uppercase; font-weight: 500; }
.store-badge strong { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.store-badge svg { flex: none; }
.store-badge--onDark { background: var(--white); color: var(--ink); }

/* ============================================================================
   Eyebrow / section scaffolding
   ========================================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.eyebrow--onDark { color: rgba(255,255,255,.72); }

.section { padding-block: clamp(64px, 8vw, 120px); }
.section--alt { background: var(--surface); }

.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head .eyebrow { margin-bottom: 16px; }
.section__title { font-size: var(--t-h2); }
.section__sub { margin-top: 16px; font-size: var(--t-lead); color: var(--ink-2); font-weight: 400; letter-spacing: 0; line-height: 1.55; }
.section__head--dark .section__title { color: var(--white); }
.section__sub--dark { color: rgba(255,255,255,.7); }

/* ============================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--green-surface);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: rgba(0,0,0,.14); box-shadow: 0 6px 22px -8px rgba(6,51,31,.5); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }

.brand__mark { display: block; height: 34px; width: auto; flex: none; }

/* Footer sits on white and the mark's left glyph is white — chip it on the brand surface to stay legible */
.footer__brand .brand__mark {
  height: 26px;
  background: var(--green-surface);
  padding: 9px 12px;
  border-radius: var(--r-3);
}

.nav { display: flex; gap: 30px; }
.nav a { font-size: .94rem; font-weight: 500; color: rgba(255,255,255,.8); transition: color var(--dur) var(--ease); }
.nav a:hover { color: #fff; }

.header__cta { display: flex; align-items: center; gap: 12px; }

/* Header CTA is a white pill on the emerald bar (mobile-menu CTA stays black) */
.header__inner .btn--primary { background: var(--white); color: var(--green-surface); }
.header__inner .btn--primary:hover { background: var(--surface-2); }

.menu-toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-2); }
.menu-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px auto; border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: flex; flex-direction: column; gap: 8px; padding: 12px var(--gutter) 22px; border-top: 1px solid var(--border); background: var(--white); }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { padding: 12px 4px; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 12px; }

/* ============================================================================
   Hero
   ========================================================================= */
.hero { padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero__copy { max-width: 560px; }
.hero__copy .eyebrow { margin-bottom: 22px; }
.hero__title { font-size: var(--t-h1); letter-spacing: -.035em; }
.hero__title .hl { background-image: linear-gradient(transparent 62%, rgba(15,169,88,.32) 0); padding-inline: .04em; }
.hero__lead { margin-top: 22px; font-size: var(--t-lead); color: var(--ink-2); font-weight: 400; max-width: 30em; }

.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__trust { margin-top: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .92rem; color: var(--ink-2); }
.hero__trust strong { color: var(--ink); font-weight: 700; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border-2); }

/* ---- Phone mockup ---- */
.hero__visual { display: flex; justify-content: center; }
.phone { position: relative; width: min(320px, 82vw); }
.js .phone { animation: floaty 6s ease-in-out infinite; }
.phone__frame {
  position: relative; aspect-ratio: 320 / 660;
  background: #0A0A0A; border-radius: 46px; padding: 11px;
  box-shadow: var(--sh-xl), 0 40px 80px -30px rgba(0,0,0,.4);
}
.phone__notch { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #0A0A0A; border-radius: 0 0 16px 16px; z-index: 3; }
.phone__screen {
  position: relative; width: 100%; height: 100%;
  background: var(--white); border-radius: 36px; overflow: hidden;
  display: flex; flex-direction: column;
}

.app__statusbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 6px; font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.app__statusicons { display: inline-flex; gap: 5px; align-items: center; }
.app__statusicons i { display: block; background: var(--ink); border-radius: 1px; }
.sb-net { width: 15px; height: 9px; clip-path: polygon(0 100%,25% 60%,25% 100%,45% 45%,45% 100%,65% 25%,65% 100%,85% 5%,85% 100%); }
.sb-wifi { width: 13px; height: 9px; border-radius: 2px; }
.sb-batt { width: 20px; height: 10px; border-radius: 2px; }

.app__topbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px 10px; flex-shrink: 0; }
.app__loc { display: flex; flex-direction: column; gap: 1px; }
.app__loc-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.app__loc-value { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; color: var(--ink); }
.app__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); flex: none; }

.app__search {
  margin: 0 16px 12px; height: 40px; border-radius: var(--r-2);
  background: var(--surface-2); display: flex; align-items: center; gap: 8px;
  padding: 0 12px; color: var(--ink-3); font-size: .78rem; flex-shrink: 0;
}
.app__chips { display: flex; gap: 7px; padding: 0 16px 12px; overflow: hidden; flex-shrink: 0; }
.chip { flex: none; height: 30px; padding: 0 13px; border-radius: var(--r-full); background: var(--surface-2); color: var(--ink); font-size: .74rem; font-weight: 600; display: inline-flex; align-items: center; }
.chip--active { background: var(--ink); color: var(--white); }

.app__card { margin: 0 16px 14px; }
.app__card-media { position: relative; border-radius: var(--r-3); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.app__card-media img { width: 100%; height: 100%; object-fit: cover; }
.app__promo {
  position: absolute; top: 8px; left: 8px;
  background: var(--green-light); color: var(--green-dark);
  font-size: .66rem; font-weight: 700; padding: 3px 8px; border-radius: var(--r-full);
}
.app__card-body { padding: 8px 2px 0; }
.app__card-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.app__card-row strong { font-size: .82rem; font-weight: 700; }
.app__rating { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 700; }
.app__card-meta { font-size: .68rem; color: var(--ink-2); }
.app__card--mini .app__card-media { aspect-ratio: 21 / 9; }

/* live tracking pill floating over the phone */
.track-pill {
  position: absolute; left: -8%; bottom: 15%;
  display: flex; align-items: center; gap: 11px;
  background: var(--ink); color: var(--white);
  padding: 10px 14px; border-radius: var(--r-4);
  box-shadow: var(--sh-xl); z-index: 4; width: max-content; max-width: 88%;
}
.js .track-pill { animation: floaty 6s ease-in-out infinite reverse; }
.track-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 0 rgba(15,169,88,.5); }
.js .track-pill__dot { animation: pulse 2.2s ease-out infinite; }
.track-pill__text { display: flex; flex-direction: column; line-height: 1.15; }
.track-pill__text b { font-size: .8rem; font-weight: 700; }
.track-pill__text small { font-size: .68rem; color: rgba(255,255,255,.7); }
.track-pill__ic { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }

/* ============================================================================
   Proof bar
   ========================================================================= */
.proof { background: var(--green-light); border-block: 1px solid rgba(12,107,65,.14); }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof__item { display: flex; flex-direction: column; gap: 6px; padding: clamp(28px, 4vw, 44px) 8px; text-align: left; }
.proof__item + .proof__item { border-left: 1px solid rgba(12,107,65,.16); padding-left: clamp(20px, 3vw, 40px); }
.proof__num { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.1rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--green-surface); }
.proof__num i { font-style: normal; font-size: .42em; font-weight: 700; color: rgba(6,37,26,.5); margin-left: 2px; }
.proof__lbl { font-size: .84rem; color: rgba(6,37,26,.7); line-height: 1.35; }

/* ============================================================================
   Categories
   ========================================================================= */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 22px); }
.cat { display: flex; flex-direction: column; transition: transform var(--dur) var(--ease); }
.cat:hover { transform: translateY(-4px); }
.cat__media { border-radius: var(--r-3); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); box-shadow: var(--sh-md); }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat:hover .cat__media img { transform: scale(1.05); }
.cat__body { padding: 16px 4px 0; }
.cat__body h3 { font-size: 1.16rem; }
.cat__body p { margin-top: 6px; font-size: .92rem; color: var(--ink-2); }

/* "more incoming" teaser card */
.cat__media--soon { position: relative; background: var(--green-surface); display: grid; place-items: center; }
.cat__soon-ic { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.cat--soon:hover .cat__soon-ic { background: rgba(255,255,255,.24); }
.cat__soon-badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--green-surface); font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-full); }

/* ============================================================================
   Steps
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px); }
.step { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-4); padding: 30px 28px 32px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.step__num { position: absolute; top: 22px; right: 26px; font-size: .82rem; font-weight: 800; color: var(--green); letter-spacing: .04em; }
.step__ic { width: 54px; height: 54px; border-radius: var(--r-3); background: var(--green-light); display: grid; place-items: center; margin-bottom: 20px; }
.step__ic svg { stroke: var(--green-dark); }
.step h3 { font-size: 1.24rem; }
.step p { margin-top: 10px; font-size: .95rem; color: var(--ink-2); }

/* ============================================================================
   Pourquoi (dark band)
   ========================================================================= */
.why { background: var(--green-deep); color: var(--white); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.feat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-4); padding: 28px 24px 30px; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.feat:hover { transform: translateY(-4px); border-color: rgba(126,231,174,.55); background: rgba(255,255,255,.08); }
.feat__ic { width: 50px; height: 50px; border-radius: var(--r-3); background: rgba(126,231,174,.16); display: grid; place-items: center; margin-bottom: 20px; }
.feat__ic svg { stroke: var(--green-mint); }
.feat h3 { font-size: 1.16rem; color: var(--white); }
.feat p { margin-top: 10px; font-size: .92rem; color: rgba(255,255,255,.72); }

/* ============================================================================
   Zone
   ========================================================================= */
.zone__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.zone__copy { max-width: 440px; }
.zone__copy .eyebrow { margin-bottom: 16px; }
.zone__list { margin-top: 26px; display: grid; grid-template-columns: repeat(3, auto); gap: 10px 14px; justify-content: start; }
.zone__list li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--border); border-radius: var(--r-full); padding: 7px 15px; }
.zone__list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.zone__soon { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--green-text); background: var(--green-light); border: 1px solid rgba(12,107,65,.18); border-radius: var(--r-full); padding: 9px 16px; }
.zone__soon-ic { color: var(--green-dark); display: inline-flex; flex: none; }

.zone__map { position: relative; border-radius: var(--r-5); overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--border); background: #E7EAE3; }
.zmap { width: 100%; height: auto; display: block; }
.zmap__block { fill: #FFFFFF; }
.zmap__num { fill: #C7CDBF; font-family: var(--font); font-weight: 800; font-size: 30px; }
.zmap__cov { fill: rgba(15,169,88,.10); }
.zmap__ring { fill: none; stroke: var(--green); stroke-width: 2; stroke-dasharray: 7 8; stroke-opacity: .6; }
.js .zmap__ring { animation: zdash 26s linear infinite; }

.zmap__route-bg { fill: none; stroke: rgba(15,169,88,.22); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.zmap__route { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.js .zmap__route { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .zmap__route.is-in { animation: zdraw 5s cubic-bezier(.5,0,.2,1) infinite; }

.zmap__origin circle { fill: var(--ink); }
.zmap__origin path { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }

.zmap__dest-pin { fill: var(--green); }
.zmap__dest-pulse { fill: var(--green); opacity: .2; transform-box: fill-box; transform-origin: center; }
.js .zmap__dest-pulse { animation: zpulse 2.6s ease-out infinite; }

.zmap__acc { fill: var(--green); opacity: .16; transform-box: fill-box; transform-origin: center; }
.js .zmap__acc { animation: zpulse 2.4s ease-out infinite; }
.zmap__dot { fill: var(--green); stroke: #fff; stroke-width: 3; }
.js .zmap__courier { offset-path: path("M159 258 V135 Q159 117 177 117 H321"); offset-rotate: 0deg; animation: zride 5s cubic-bezier(.5,0,.2,1) infinite; }

.zone__badge {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: var(--r-full);
  padding: 8px 14px; font-size: .8rem; font-weight: 600; box-shadow: var(--sh-md);
}
.zone__badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.js .zone__badge-dot { animation: pulse 2.2s ease-out infinite; }

/* ============================================================================
   Download
   ========================================================================= */
.download { background: var(--green-surface); color: var(--white); overflow: hidden; }
.download__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.download__title { font-size: var(--t-h2); color: var(--white); }
.download__sub { margin-top: 18px; font-size: var(--t-lead); color: rgba(255,255,255,.75); max-width: 30em; }
.download .hero__actions { margin-top: 30px; }
.download__visual { display: flex; justify-content: center; }
.phone--sm { width: min(260px, 70vw); }
.phone__screen--confirm { align-items: center; justify-content: center; gap: 12px; padding: 32px 26px; text-align: center; }
.confirm__check { width: 76px; height: 76px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgba(15,169,88,.6); }
.js .confirm__check { animation: pop .5s var(--ease) both; }
.confirm__title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.confirm__sub { font-size: .88rem; color: var(--ink-2); margin-top: -4px; }
.confirm__bar { width: 100%; height: 6px; border-radius: var(--r-full); background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.confirm__bar span { display: block; height: 100%; width: 66%; border-radius: inherit; background: var(--green); }
.js .confirm__bar span { width: 0; animation: fill 2.6s var(--ease) forwards; }
.confirm__eta { font-size: .78rem; color: var(--ink-3); font-weight: 600; }

/* ============================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--white); border-top: 1px solid var(--border); padding-block: clamp(48px, 6vw, 76px) 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 48px); }
.footer__brand { max-width: 300px; }
.brand--footer { margin-bottom: 16px; }
.footer__brand p { font-size: .9rem; color: var(--ink-2); }
.footer__col h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; margin-bottom: 16px; }
.footer__col a, .footer__muted { display: block; font-size: .92rem; color: var(--ink-2); padding: 5px 0; transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--ink); }
.footer__muted { color: var(--ink-3); }
.footer__bottom { margin-top: clamp(32px, 4vw, 52px); padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: var(--ink-3); }

/* ============================================================================
   Keyframes
   ========================================================================= */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15,169,88,.5); } 70% { box-shadow: 0 0 0 9px rgba(15,169,88,0); } 100% { box-shadow: 0 0 0 0 rgba(15,169,88,0); } }
@keyframes draw { 0% { stroke-dashoffset: 1; } 55%,100% { stroke-dashoffset: 0; } }
@keyframes ride { 0% { offset-distance: 0%; } 55%,100% { offset-distance: 100%; } }
@keyframes dashmove { to { stroke-dashoffset: -120; } }
@keyframes pinpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes fill { to { width: 66%; } }
@keyframes zdash { to { stroke-dashoffset: -120; } }
@keyframes zdraw { 0% { stroke-dashoffset: 1; } 62%,100% { stroke-dashoffset: 0; } }
@keyframes zride { 0% { offset-distance: 0%; } 62%,100% { offset-distance: 100%; } }
@keyframes zpulse { 0% { transform: scale(.45); opacity: .32; } 70% { transform: scale(1.35); opacity: 0; } 100% { transform: scale(1.35); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .js .phone, .js .track-pill, .js .track-pill__dot,
  .js .zmap__ring, .js .zmap__route, .js .zmap__courier,
  .js .zmap__dest-pulse, .js .zmap__acc,
  .js .zone__badge-dot, .js .confirm__check, .js .confirm__bar span { animation: none !important; }
  .js .zmap__route { stroke-dashoffset: 0; }
  .js .zmap__courier { offset-distance: 88%; }
  .js .confirm__bar span { width: 66%; }
  .cat:hover, .step:hover, .feat:hover, .cat:hover .cat__media img { transform: none; }
}

/* ============================================================================
   Responsive
   ========================================================================= */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__copy { max-width: 620px; }
  .hero__visual { order: -1; }
  .zone__grid, .download__grid { grid-template-columns: 1fr; }
  .download__visual { order: -1; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 620px) {
  :root { --header-h: 60px; }
  .header__cta .btn--primary { display: none; }
  .steps { grid-template-columns: 1fr; }
  .proof__grid { grid-template-columns: repeat(2, 1fr); }
  .proof__item:nth-child(3) { border-left: 0; }
  .proof__item:nth-child(odd) { padding-left: 8px; }
  .proof__item:nth-child(even) { border-left: 1px solid var(--border); }
  .proof__item:nth-child(3), .proof__item:nth-child(4) { border-top: 1px solid var(--border); }
  .hero__actions { gap: 10px; }
  .store-badge { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 400px) {
  .cats { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .zone__list { grid-template-columns: repeat(2, 1fr); }
  /* Phone mockup content is fixed-height chrome + two cards; below ~336px viewport
     width the frame (which scales with width via aspect-ratio) runs out of room and
     flex-shrink starts crushing rows. Dropping the second (decorative, aria-hidden) card
     keeps the mockup legible instead of squeezed. */
  .app__card--mini { display: none; }
}

/* ============================================================================
   Legal pages
   ========================================================================= */
.legal-hero { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--border); }
.legal-back { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 20px; transition: color var(--dur) var(--ease); }
.legal-back:hover { color: var(--ink); }
.legal-hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
.legal-hero p { margin-top: 12px; color: var(--ink-2); font-size: .95rem; }

.legal { max-width: 760px; margin-inline: auto; padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.legal-note { background: var(--green-light); border: 1px solid rgba(15,169,88,.25); border-radius: var(--r-3); padding: 18px 20px; font-size: .92rem; color: #0A5A34; margin-bottom: 40px; }
.legal-note strong { color: var(--green-dark); }

.legal-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-4); padding: 22px 26px; margin-bottom: 44px; }
.legal-toc h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 14px; }
.legal-toc ol { list-style: decimal; padding-left: 20px; display: grid; gap: 8px; }
.legal-toc a { font-size: .94rem; color: var(--ink-2); }
.legal-toc a:hover { color: var(--green-text); text-decoration: underline; }

.legal h2 { font-size: 1.35rem; margin-top: 44px; margin-bottom: 14px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal p { color: #333; margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; display: grid; gap: 8px; color: #333; }
.legal a:not(.legal-back) { color: var(--green-text); text-decoration: underline; text-underline-offset: 2px; }
.legal code { background: var(--surface-2); padding: 1px 7px; border-radius: var(--r-1); font-size: .86em; }
.legal strong { color: var(--ink); }
