/* ============================================================
   3andek? — Landing page V1 — Design system
   Derived from the mobile app tokens (src/theme/*).
   Rule: ~80% neutrals/white, ~15% teal, ~5% yellow accent.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --teal: #00a896;
  --teal-dark: #087f73;
  --teal-soft: #e4f5f2;
  --teal-softer: #f0faf8;
  --accent: #ffb703;
  --accent-soft: #fff3d6;

  /* Neutrals */
  --bg: #f7f9fa;
  --surface: #ffffff;
  --surface-muted: #f1f4f5;
  --ink: #172b2d;
  --ink-2: #667475;
  --ink-3: #9aa5a6;
  --border: #eceff0;
  --border-strong: #dce1e2;

  /* Status */
  --error: #e5484d;
  --success: #2e9e6b;

  /* Radii (mobile: cards 16, buttons 22) */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 30px;
  --r-pill: 999px;

  /* Elevation — intentionally subtle */
  --sh-xs: 0 1px 2px rgba(23, 43, 45, 0.04);
  --sh-sm: 0 1px 6px rgba(23, 43, 45, 0.05);
  --sh-md: 0 8px 24px rgba(23, 43, 45, 0.07);
  --sh-lg: 0 18px 50px rgba(23, 43, 45, 0.1);
  --sh-teal: 0 18px 44px rgba(0, 168, 150, 0.22);

  /* Layout */
  --maxw: 1120px;
  --maxw-narrow: 720px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(52px, 8vw, 104px);

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  --font-arabic: "Noto Sans Arabic", "Geeza Pro", "Segoe UI", var(--font);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid rgba(0, 168, 150, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
}
.section--tight {
  padding-block: clamp(36px, 5.5vw, 68px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: 7px 14px;
  border-radius: var(--r-pill);
}
.section-head {
  max-width: 640px;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
}
h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-2);
  line-height: 1.65;
}
.muted {
  color: var(--ink-2);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--teal);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
  font-size: 0.98rem;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s var(--ease);
  will-change: transform;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-teal);
}
.btn:active {
  transform: translateY(0);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  box-shadow: var(--sh-sm);
  background: var(--surface);
}
.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--teal-dark);
}
.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Store badges (prelaunch aware) ---------- */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.store-badge[aria-disabled="true"] {
  cursor: default;
  opacity: 0.95;
}
.store-badge:not([aria-disabled="true"]):hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.store-badge svg {
  width: 21px;
  height: 21px;
  flex: none;
}
.store-badge__main {
  font-size: 0.9rem;
  font-weight: 650;
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 250, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(247, 249, 250, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__pin {
  width: 26px;
  height: 30px;
  flex: none;
}
.wordmark {
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--teal);
}
.wordmark .q {
  color: var(--accent);
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  font-weight: 550;
  color: var(--ink-2);
  transition: color 0.15s, background 0.15s;
}
.nav a:hover {
  color: var(--ink);
  background: var(--surface-muted);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-xs);
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.nav-toggle:hover {
  background: var(--surface-muted);
}
.nav-toggle:active {
  transform: scale(0.94);
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(28px, 6vw, 64px);
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      70% 60% at 82% 8%,
      var(--teal-softer) 0%,
      transparent 60%
    ),
    radial-gradient(50% 50% at 0% 100%, var(--accent-soft) 0%, transparent 55%);
  opacity: 0.9;
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.75rem);
  margin-top: 22px;
  max-width: 14ch;
}
.hero h1 .accent {
  color: var(--teal);
}
.hero .lead {
  margin-top: 20px;
  max-width: 46ch;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-stores {
  margin-top: 26px;
}

/* Brand logo (SVG wordmark master) in the header */
.brand__logo {
  height: 46px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 38px;
  width: auto;
  display: block;
}

/* ---------- Phone mockup ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 300 / 620;
  background: #0f2b2b;
  border-radius: 42px;
  padding: 11px;
  box-shadow: var(--sh-lg), 0 0 0 2px rgba(23, 43, 45, 0.06);
  z-index: 2;
}
.phone__notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 26px;
  background: #0f2b2b;
  border-radius: var(--r-pill);
  z-index: 3;
}
.phone__screen {
  height: 100%;
  border-radius: 32px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.app-top {
  padding: 30px 16px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.app-top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}
.app-loc svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}
.app-search {
  margin-top: 12px;
  height: 38px;
  border-radius: var(--r-pill);
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--ink-3);
  font-size: 0.82rem;
}
.app-search svg {
  width: 15px;
  height: 15px;
}
.app-chips {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  overflow: hidden;
}
.chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  background: var(--surface-muted);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip--on {
  background: var(--teal);
  color: #fff;
}
.app-feed {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

/* Search-request card (faithful to SearchRequestCard.tsx) */
.rcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-xs);
}
.rcard__img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d7ece9, #c2e4df);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rcard__img svg {
  width: 30px;
  height: 30px;
  color: var(--teal);
  opacity: 0.5;
}
.rcard__badge {
  position: absolute;
  top: 9px;
  left: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: #4a3200;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: var(--r-pill);
}
.rcard__badge svg {
  width: 11px;
  height: 11px;
}
.rcard__fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.rcard__body {
  padding: 11px 13px 13px;
}
.rcard__title {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}
.rcard__budget {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.rcard__budget small {
  color: var(--ink-2);
  font-size: 0.72rem;
}
.rcard__price {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.rcard__date {
  color: var(--ink-3);
  font-size: 0.72rem;
}
.rcard__foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-2);
  font-size: 0.74rem;
}
.rcard__stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rcard__stat svg {
  width: 13px;
  height: 13px;
}
.rcard__loc {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rcard__loc svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}

/* Floating context chips around phone */
.float {
  position: absolute;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 600;
}
.float svg {
  width: 17px;
  height: 17px;
}
.float--a {
  top: 12%;
  left: -4%;
}
.float--b {
  bottom: 16%;
  right: -6%;
}
.float__dot {
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  flex: none;
}
.float__dot--teal {
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.float__dot--amber {
  background: var(--accent-soft);
  color: #8a6400;
}
.float small {
  display: block;
  font-weight: 500;
  color: var(--ink-3);
  font-size: 0.68rem;
}

/* ---------- Concept (reversed marketplace) — flat comparison, not two SaaS cards ---------- */
.concept-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
}
.concept-col {
  padding: clamp(4px, 1vw, 8px) clamp(6px, 1.5vw, 16px);
}
.concept-col--hl {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--sh-teal);
}
.concept-col h3 {
  font-size: 1.15rem;
}
.concept-col__tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.concept-col--hl .concept-col__tag {
  color: rgba(255, 255, 255, 0.75);
}
.concept-flow {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.concept-col--hl .flow-step {
  color: rgba(255, 255, 255, 0.92);
}
.flow-step svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--teal);
}
.concept-col--hl .flow-step svg {
  color: var(--accent);
}
.concept-arrow {
  display: grid;
  place-items: center;
  color: var(--ink-3);
}
.concept-arrow svg {
  width: 30px;
  height: 30px;
}

/* ---------- Split feature (seller / map) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split--reverse .split__media {
  order: -1;
}
.feature-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature-item__ic {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  flex: none;
}
.feature-item__ic svg {
  width: 19px;
  height: 19px;
}
.feature-item h4 {
  font-size: 1rem;
  font-weight: 700;
}
.feature-item p {
  color: var(--ink-2);
  font-size: 0.92rem;
  margin-top: 2px;
}

/* Media surface for feature mocks */
.media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-md);
  padding: 18px;
  overflow: hidden;
}
.media-card--map {
  background: linear-gradient(160deg, #eef6f4 0%, #e0f0ec 100%);
  position: relative;
  min-height: 320px;
  padding: 0;
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 168, 150, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 150, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-pin {
  position: absolute;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -100%);
  color: var(--teal);
  filter: drop-shadow(0 6px 10px rgba(0, 168, 150, 0.28));
}
.map-pin--amber {
  color: var(--accent);
}
.map-pin span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  padding-bottom: 6px;
}
.map-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 9px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-badge svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

/* mini discover feed inside media-card */
.mini-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ---------- Trust ---------- */
.trust {
  background: linear-gradient(165deg, #0d3d38 0%, #072220 100%);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: clamp(28px, 4.5vw, 52px);
}
.trust h2 {
  color: #fff;
  max-width: 20ch;
}
.trust .lead {
  color: rgba(255, 255, 255, 0.72);
}
.trust-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
}
.trust-item__ic {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: rgba(0, 168, 150, 0.22);
  color: #4fd6c6;
  display: grid;
  place-items: center;
  flex: none;
}
.trust-item__ic svg {
  width: 18px;
  height: 18px;
}
.trust-item h4 {
  font-size: 0.94rem;
  font-weight: 700;
}
.trust-item p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  margin-top: 3px;
}

/* Relation flow strip (Recherche → proposition → choisie → contact) */
.trust-flow {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.85);
}
.trust-flow__step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.trust-flow__step svg {
  width: 15px;
  height: 15px;
  color: #4fd6c6;
}
.trust-flow__arrow {
  color: rgba(255, 255, 255, 0.35);
}
.trust-flow__contact {
  margin-left: auto;
  display: inline-flex;
  gap: 8px;
}
.trust-flow__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
}
.trust-flow__pill svg {
  width: 13px;
  height: 13px;
}

/* ---------- Search rail ("On cherche de tout sur 3andek?") ---------- */
.rail-wrap {
  margin-top: 32px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.rail {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: rail-scroll 42s linear infinite;
}
.rail-wrap:hover .rail {
  animation-play-state: paused;
}
@keyframes rail-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    /* exact width of one repeating unit: 6 cards (190px) + 6 gaps (14px) = 1224px */
    transform: translate3d(-1224px, 0, 0);
  }
}
.rail-card {
  flex: none;
  width: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--sh-sm);
}
.rail-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
}
.rail-card h4 {
  margin-top: 7px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
}
.rail-card__meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-2);
}
.rail-card__price {
  font-weight: 800;
  color: var(--ink);
}
.rail-card__loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rail-card__loc svg {
  width: 12px;
  height: 12px;
  color: var(--teal);
}
@media (max-width: 768px) {
  .rail-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .rail-wrap::-webkit-scrollbar {
    display: none;
  }
  .rail {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    padding-right: 40px;
    animation: none;
    transform: none;
  }
  .rail-card {
    scroll-snap-align: start;
    width: 200px;
  }
  /* duplicate track only serves the desktop seamless loop */
  .rail-card[aria-hidden="true"] {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rail-wrap {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .rail {
    animation: none;
    transform: none;
  }
  .rail-card[aria-hidden="true"] {
    display: none;
  }
}

/* ---------- Final CTA ---------- */
.cta {
  position: relative;
  text-align: center;
  background: linear-gradient(165deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: clamp(36px, 5.5vw, 64px) clamp(24px, 5vw, 64px);
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  top: -100px;
  background: radial-gradient(
    circle,
    rgba(255, 183, 3, 0.22) 0%,
    transparent 70%
  );
}
.cta h2 {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  position: relative;
}
.cta h2 .q {
  color: var(--accent);
}
.cta p {
  margin: 12px auto 0;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
}
.cta .stores {
  margin-top: 24px;
  justify-content: center;
  position: relative;
}
.cta .store-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.cta .store-badge__top {
  color: rgba(255, 255, 255, 0.62);
}
.cta .store-badge__soon {
  color: var(--accent);
}

/* ---------- Real screenshot map moment (bigger device) ---------- */
.device.device--map {
  width: min(340px, 84vw);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: clamp(44px, 6vw, 72px) 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.footer-brand p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.92rem;
  max-width: 30ch;
}
.footer-col h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a,
.footer-col span {
  color: var(--ink-2);
  font-size: 0.92rem;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--teal-dark);
}
.footer-pending {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-3);
  font-size: 0.86rem;
}

/* ============================================================
   App screens — faithful reproductions of the real Android UI
   (Discover, Request Detail, Create Request, Map). No parasitic
   debug button, no PII. Real device exports can replace these.
   ============================================================ */

/* Bottom tab bar (Découvrir / Carte / Je cherche / Filtres / Moi) */
.app-tabs {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 7px 4px 9px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.56rem;
  font-weight: 600;
  color: var(--ink-3);
}
.app-tab svg {
  width: 18px;
  height: 18px;
}
.app-tab--on {
  color: var(--teal);
}
.app-tab__plus {
  width: 42px;
  height: 42px;
  border-radius: var(--r-pill);
  background: var(--teal);
  display: grid;
  place-items: center;
  margin-top: -20px;
  box-shadow: 0 8px 18px rgba(0, 168, 150, 0.35);
}
.app-tab__plus svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.app-tab--cta {
  color: var(--teal);
}

/* Generic full-height app screen inside .phone__screen */
.app-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.app-scroll {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* --- Request Detail --- */
.det-photo {
  position: relative;
  aspect-ratio: 1 / 0.82;
  background: linear-gradient(150deg, #d9c6a6, #bfa47e);
  flex: none;
}
.det-photo__ctrl {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-sm);
}
.det-photo__ctrl svg {
  width: 17px;
  height: 17px;
  color: var(--ink);
}
.det-photo__ctrl--back {
  top: 12px;
  left: 12px;
}
.det-photo__ctrl--share {
  top: 12px;
  right: 54px;
}
.det-photo__ctrl--fav {
  top: 12px;
  right: 12px;
}
.det-photo__ctrl--fav svg {
  color: var(--error);
}
.det-photo__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(23, 43, 45, 0.62);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-pill);
}
.det-body {
  padding: 14px 15px 10px;
  background: var(--surface);
  flex: 1;
}
.det-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.det-budget-label {
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--ink-2);
}
.det-budget {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.02em;
}
.det-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  color: var(--ink-2);
}
.det-meta svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}
.det-stats {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.73rem;
  color: var(--ink-2);
}
.det-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.det-stats svg {
  width: 13px;
  height: 13px;
}
.det-desc {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.det-desc h6 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.det-desc p {
  font-size: 0.74rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.det-cta {
  padding: 10px 14px 14px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.det-cta__btn {
  width: 100%;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.det-cta__btn .q {
  color: var(--accent);
}

/* --- Create Request --- */
.crt {
  padding: 16px 15px;
  background: var(--surface);
  flex: 1;
  overflow: hidden;
}
.crt__h {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.crt__hint {
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--ink-3);
  line-height: 1.45;
}
.crt__photos {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}
.crt__photo {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--ink-3);
}
.crt__photo svg {
  width: 18px;
  height: 18px;
}
.crt__label {
  margin-top: 14px;
  font-size: 0.76rem;
  font-weight: 700;
}
.crt__field {
  margin-top: 7px;
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.76rem;
  color: var(--ink-3);
  justify-content: space-between;
}
.crt__field svg {
  width: 15px;
  height: 15px;
}
.crt__field--budget {
  padding: 0;
  overflow: hidden;
}
.crt__field--budget span:first-child {
  padding: 0 12px;
}
.crt__budget-dt {
  margin-left: auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-left: 1px solid var(--border-strong);
  color: var(--ink);
  font-weight: 700;
}
.crt__cta {
  margin-top: 16px;
  height: 46px;
  border-radius: var(--r-pill);
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.crt__cta svg {
  width: 17px;
  height: 17px;
}

/* --- Product Showcase gallery --- */
.showcase {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
.showcase__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.showcase__item .phone {
  width: min(258px, 80vw);
}
.showcase__item .device {
  width: min(258px, 80vw);
}
.showcase__cap {
  margin-top: 22px;
  max-width: 30ch;
}
.showcase__cap h3 {
  font-size: 1.08rem;
}
.showcase__cap p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.92rem;
}
.showcase__step {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: 3px 11px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}

/* Faithful map markers (teal circle + yellow ?) */
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--teal);
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 168, 150, 0.3);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
}
.map-marker--cluster {
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 0.88rem;
}
.map-pill {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  padding: 9px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.map-pill svg {
  width: 15px;
  height: 15px;
}
.map-card {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.map-card__thumb {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #dfe7ea, #cdd8dc);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--ink-3);
}
.map-card__thumb svg {
  width: 22px;
  height: 22px;
}
.map-card__body {
  flex: 1;
  min-width: 0;
}
.map-card__title {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-card__meta {
  font-size: 0.72rem;
  color: var(--ink-2);
  margin-top: 2px;
}
.map-card__meta b {
  color: var(--teal);
}

/* Staggered reveal delays */
.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

/* ============================================================
   Device frame for REAL app screenshots (minimal premium bezel,
   no notch — the captures already contain their own UI).
   ============================================================ */
.device {
  position: relative;
  width: min(300px, 78vw);
  margin-inline: auto;
  border-radius: 40px;
  background: #0f2b2b;
  padding: 10px;
  box-shadow: var(--sh-lg), 0 0 0 2px rgba(23, 43, 45, 0.06);
  z-index: 2;
}
.device__screen {
  display: block;
  border-radius: 31px;
  overflow: hidden;
  background: #fff;
}
.device__screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.float {
  animation: floaty 6s ease-in-out infinite;
}
.float--b {
  animation-delay: -3s;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .float {
    animation: none;
  }
}

/* ============================================================
   Legal pages
   ============================================================ */
.legal-main {
  padding-block: clamp(36px, 6vw, 72px);
}
.legal-shell {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 90px;
  font-size: 0.86rem;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.legal-toc__title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 12px;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.legal-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  border-left: 2px solid transparent;
}
.legal-toc a:hover {
  background: var(--surface);
  color: var(--ink);
}
.legal-article {
  max-width: var(--maxw-narrow);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: clamp(24px, 4vw, 52px);
}
.legal-article h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.legal-updated {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.9rem;
}
.legal-note {
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--accent-soft);
  border-radius: var(--r-md);
  font-size: 0.88rem;
  color: #6b4e00;
  border: 1px solid #f4e2b0;
}
.legal-article h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin-top: 38px;
  scroll-margin-top: 90px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.legal-article h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
.legal-article p {
  margin-top: 12px;
  color: var(--ink);
  line-height: 1.7;
}
.legal-article ul {
  margin-top: 12px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ink);
}
.legal-article a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-placeholder {
  background: var(--accent-soft);
  color: #6b4e00;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.9em;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
  font-weight: 600;
  color: var(--ink-2);
}
.legal-back svg {
  width: 17px;
  height: 17px;
}
.legal-back:hover {
  color: var(--teal-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero h1 {
    margin-inline: auto;
  }
  .hero .lead {
    margin-inline: auto;
  }
  .hero-actions,
  .hero-stores .stores {
    justify-content: center;
  }
  .showcase {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-inline: auto;
    gap: 48px;
  }
  .hero-visual {
    margin-top: 24px;
  }
  .concept-grid {
    grid-template-columns: 1fr;
  }
  .concept-arrow {
    transform: rotate(90deg);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__media {
    order: 0;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .legal-shell {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
    max-height: none;
    order: -1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px;
  }
}
@media (max-width: 720px) {
  .nav,
  .header-cta .btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .brand__logo {
    height: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "produit legal"
      "contact contact";
    row-gap: 30px;
    column-gap: 18px;
  }
  .footer-brand {
    grid-area: brand;
    text-align: center;
  }
  .footer-brand p {
    margin-inline: auto;
    max-width: 34ch;
  }
  .footer-grid > div:nth-child(2) {
    grid-area: produit;
  }
  .footer-grid > div:nth-child(3) {
    grid-area: legal;
  }
  .footer-grid > div:nth-child(4) {
    grid-area: contact;
    text-align: center;
  }
  .footer-grid > div:nth-child(4) ul {
    align-items: center;
  }
  .footer-col a {
    display: inline-block;
    padding-block: 6px;
  }
  .footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .float--a {
    left: 0;
  }
  .float--b {
    right: 0;
  }
  .trust-flow {
    justify-content: center;
  }
  .trust-flow__contact {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 460px) {
  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "produit"
      "legal"
      "contact";
    row-gap: 26px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col ul {
    align-items: center;
  }
  .float {
    display: none;
  }
}

/* Mobile nav drawer */
body.nav-open {
  overflow: hidden;
}
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(7, 34, 32, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease);
}
@supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .mobile-nav {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: linear-gradient(180deg, var(--teal-softer) 0, var(--surface) 200px);
  border-radius: 22px 0 0 22px;
  box-shadow: var(--sh-lg), 0 0 0 1px var(--border);
  padding: max(22px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform 0.34s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav.is-open .mobile-nav__panel {
  transform: none;
}
.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mobile-nav__logo {
  height: 34px;
  width: auto;
  display: block;
}
.mobile-nav__links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding-inline: 10px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--ink);
  font-weight: 650;
  font-size: 1rem;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
  background: var(--teal-softer);
  color: var(--teal-dark);
}
.mobile-nav__index {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-3);
  width: 20px;
  flex: none;
}
.mobile-nav__label {
  flex: 1;
  min-width: 0;
}
.mobile-nav__chevron {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--ink-3);
  transition: transform 0.18s var(--ease), color 0.18s var(--ease);
}
.mobile-nav__link:hover .mobile-nav__chevron,
.mobile-nav__link:focus-visible .mobile-nav__chevron {
  color: var(--teal-dark);
  transform: translateX(2px);
}
.mobile-nav__cta {
  margin-top: 20px;
  width: 100%;
  height: 52px;
}
.mobile-nav__foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.mobile-nav__foot-sig {
  font-family: var(--font-arabic);
  color: var(--ink-2);
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav__panel {
    transition: none;
  }
}
.nav-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.nav-close:hover {
  background: var(--surface-muted);
}
.nav-close:active {
  transform: scale(0.94);
}
.nav-close svg {
  width: 20px;
  height: 20px;
}
