/* =============================================================
   WERUGO — landing page (vanilla CSS)
   Phase 1 : foundations + nav + hero + ticker
============================================================== */


/* -------------------------------------------------------------
   1. Design tokens
------------------------------------------------------------- */
:root {
  --bg:           #0E0A15;
  --surface:      #22173C;
  --elevated:     #2F1F51;
  --border:       rgba(255,255,255,0.12);
  --text:         #FFFFFF;
  --text-muted:   rgba(255,255,255,0.62);
  --text-dim:     rgba(255,255,255,0.42);
  --accent:       #A855F7;
  --success:      #34D399;
  --warning:      #FBBF24;
  --error:        #F87171;
  --info:         #60A5FA;
  --gradient:     linear-gradient(135deg, #C084FC 0%, #A855F7 45%, #7C2BC9 100%);
  --gradient-hover: linear-gradient(135deg, #D8B4FE 0%, #A855F7 45%, #581C87 100%);
  --radial-hero:  radial-gradient(120% 100% at 0% 0%, #22173C 0%, #0E0A15 70%);
  --shadow-glow:  0 0 120px rgba(168,85,247,0.35);
  --radius-card:  20px;
  --radius-btn:   999px;
  --radius-phone: 48px;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);

  /* Single font family — matches the Flutter app (assets/fonts/LexendDeca-*).
     "Mono" feel and "serif accent" are achieved via weight + letter-spacing
     + color, not by switching families. */
  --font:        'Lexend Deca', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans:   var(--font);
  --font-mono:   var(--font);
  --font-serif:  var(--font);
}


/* -------------------------------------------------------------
   2. Reset
------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

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

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


/* -------------------------------------------------------------
   3. Layout primitives
------------------------------------------------------------- */
.section {
  padding: 160px 0;
  position: relative;
}

.section-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-inner--narrow {
  max-width: 720px;
}

.placeholder-note {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
  padding: 80px 0;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
}

@media (max-width: 768px) {
  .section { padding: 96px 0; }
  .section-inner { padding: 0 20px; }
}


/* -------------------------------------------------------------
   4. Typography roles
------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(168, 85, 247, 0.7);
  margin-bottom: 24px;
}


/* -------------------------------------------------------------
   5. Store badges (composant réutilisable)
------------------------------------------------------------- */
.store-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
  transition: transform 200ms var(--ease), filter 200ms var(--ease);
  cursor: pointer;
}

.store-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 24px rgba(168, 85, 247, 0.45));
}

.store-badge img {
  display: block;
  height: 54px;
  width: auto;
}

/* Variante hero : tailles par défaut (54px) */
/* Variante CTA final : .store-badges[data-context="final"] .store-badge img { height: 64px; } — phase 2 */

@media (max-width: 480px) {
  .store-badges { width: 100%; }
  .store-badge { width: 100%; }
  .store-badge img { height: 48px; width: 100%; max-width: 280px; }
}


/* -------------------------------------------------------------
   6. NAV
------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 240ms var(--ease), backdrop-filter 240ms var(--ease), border-color 240ms var(--ease);
  border-bottom: 1px solid transparent;
}

.nav[data-scrolled="true"] {
  background: rgba(14, 10, 21, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  line-height: 1;
}
.nav-logo img {
  height: 26px;
  width: auto;
  display: block;
}
.nav-logo-wordmark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 180ms var(--ease);
}
.nav-link:hover { color: var(--text); }

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--radius-btn);
  background: var(--gradient);
  color: #fff;
  transition: background 240ms var(--ease), transform 200ms var(--ease), box-shadow 240ms var(--ease);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
}

/* Language switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
}
.lang-switcher button {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 180ms var(--ease), background 180ms var(--ease);
  line-height: 1;
}
.lang-switcher button:hover { color: var(--text); }
.lang-switcher button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

@media (max-width: 768px) {
  .nav-link { display: none; }
}

@media (max-width: 600px) {
  .nav-inner { padding: 12px 20px; gap: 10px; }
  .nav-right { gap: 10px; }
  .nav-cta { display: none; }            /* hero badges sit right below, so this is redundant */
  .nav-logo img { height: 22px; }
  .nav-logo-wordmark { font-size: 19px; }
  .lang-switcher button { padding: 4px 7px; font-size: 10px; }
}

@media (max-width: 380px) {
  .nav-logo-wordmark { display: none; }
}


/* -------------------------------------------------------------
   7. HERO
------------------------------------------------------------- */
.hero {
  position: relative;
  /* top padding = nav height (~62px) + breathing; bottom = section rhythm */
  padding: 92px 0 88px;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--radial-hero);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(168, 85, 247, 0.22), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text { max-width: 620px; }

.hero-h1 {
  font-weight: 700;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-accent {
  display: inline-block;
  color: var(--accent);
  /* Keep the accent line ("in two taps." / "en deux clics." / etc.) on
     ONE line at every viewport — wrapping it would break the visual rhythm. */
  white-space: nowrap;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero .store-badges { margin-bottom: 14px; }

.hero-micro {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* Phone frame — floats in 3D space.
   .hero-phone : perspective + position + Y float animation
   .phone-body : the rotated rigid body (frame + buttons share this transform)
   .phone-frame: the visible screen + bezel
   .phone-btn  : 4 hardware buttons (action / vol+ / vol- / power) on the bezel */
.hero-phone {
  position: relative;
  justify-self: end;
  perspective: 1600px;
  perspective-origin: 50% 50%;
  transform: translateX(6%);
  /* Entry animation runs first (fade + lift + scale), then the float loop
     picks up smoothly from translateY(0). */
  animation:
    hero-phone-enter 1100ms var(--ease) 280ms both,
    float 5s var(--ease) 1400ms infinite;
}

@keyframes hero-phone-enter {
  0%   { opacity: 0; transform: translateX(6%) translateY(28px) scale(0.94); }
  100% { opacity: 1; transform: translateX(6%) translateY(0)    scale(1);    }
}

/* Float starts and ends at Y=0 so the handoff from the entry animation
   is seamless. The midpoint values do the ±10px wave. */
@keyframes float {
  0%, 100% { transform: translateX(6%) translateY(0); }
  25%      { transform: translateX(6%) translateY(-10px); }
  75%      { transform: translateX(6%) translateY(10px); }
}

.phone-body {
  position: relative;
  width: clamp(240px, 28vw, 340px);
  aspect-ratio: 1206 / 2622;
  transform: rotateY(-14deg) rotateX(7deg) rotateZ(-3deg);
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
  transition: transform 600ms var(--ease);
}

/* Metallic side rail — sits behind the screen and carries the drop shadows.
   The 115deg directional gradient simulates light catching brushed aluminum;
   the band peeks out around the phone-frame so the device reads as having
   physical thickness instead of being a flat rectangle. */
.phone-body::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-phone) + 4px);
  background: linear-gradient(115deg,
    #7a7a7a 0%,    /* highlight catch (upper-left) */
    #3a3a3a 14%,
    #0e0e0e 38%,
    #0e0e0e 58%,
    #3f3f3f 80%,   /* second highlight (lower-right curve) */
    #1a1a1a 95%,
    #050505 100%);
  transform: translateZ(-1px);
  box-shadow:
    /* Main directional drop — phone leans back on right, shadow casts that way */
    28px 44px 70px -12px rgba(0, 0, 0, 0.7),
    /* Far ambient under-shadow */
    0 80px 120px -30px rgba(0, 0, 0, 0.55),
    /* Brand purple glow */
    0 0 110px rgba(168, 85, 247, 0.32),
    /* Outer rim hairline so the metal edge reads even on dark bg */
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    /* Inner shadow under the bezel — visually separates rail from screen */
    inset 0 0 0 2px rgba(0, 0, 0, 0.6);
}

.phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-phone);
  border: 8px solid #0a0a0a;
  background: #0a0a0a;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.06);
}

/* Glass reflection overlay on the screen */
.phone-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0) 22%,
    rgba(255, 255, 255, 0) 78%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 3;
  mix-blend-mode: screen;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Hardware buttons (iPhone 15 Pro Max layout) ---------------
   Positions are real % of the phone height from the top:
     · Action button (left)  : ~16% top, ~4% tall
     · Volume Up (left)      : ~22% top, ~9% tall
     · Volume Down (left)    : ~34% top, ~9% tall
     · Side / Power (right)  : ~16% top, ~16% tall                   */
.phone-btn {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    1px 0 2px rgba(0, 0, 0, 0.5);
}

.phone-btn--action,
.phone-btn--volup,
.phone-btn--voldown {
  left: -6px;
  width: 5px;
  border-radius: 2.5px 0 0 2.5px;
  background: linear-gradient(to right,
    #1a1a1a 0%,
    #4a4a4a 35%,
    #7a7a7a 55%,
    #3a3a3a 90%,
    #050505 100%);
}

.phone-btn--power {
  right: -6px;
  width: 5px;
  border-radius: 0 2.5px 2.5px 0;
  background: linear-gradient(to left,
    #1a1a1a 0%,
    #4a4a4a 35%,
    #7a7a7a 55%,
    #3a3a3a 90%,
    #050505 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    -1px 0 2px rgba(0, 0, 0, 0.5);
}

.phone-btn--action  { top: 16%;   height: 4%;  }
.phone-btn--volup   { top: 22%;   height: 9%;  }
.phone-btn--voldown { top: 34%;   height: 9%;  }
.phone-btn--power   { top: 16%;   height: 16%; }


/* --- Hero entry cascade —————————————————————————————————————————
   Each text element rises + fades in on page load, staggered. */
@keyframes hero-rise {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0);    }
}

.hero-text .eyebrow,
.hero-text .hero-h1 > span,
.hero-text .hero-sub,
.hero-text .store-badges,
.hero-text .hero-micro {
  animation: hero-rise 800ms var(--ease) both;
}

/* H1 spans need to be inline-block so they can animate individually.
   The <br> still forces the line break between them. */
.hero-h1 > span { display: inline-block; }

.hero-text .eyebrow                       { animation-delay: 120ms; }
.hero-text .hero-h1 > span:first-child    { animation-delay: 240ms; }
.hero-text .hero-h1 > span.hero-accent    { animation-delay: 380ms; }
.hero-text .hero-sub                      { animation-delay: 520ms; }
.hero-text .store-badges                  { animation-delay: 660ms; }
.hero-text .hero-micro                    { animation-delay: 800ms; }

@media (prefers-reduced-motion: reduce) {
  .hero-text .eyebrow,
  .hero-text .hero-h1 > span,
  .hero-text .hero-sub,
  .hero-text .store-badges,
  .hero-text .hero-micro {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* --- Tablet : stack vertically, phone smaller, lighter 3D pose --- */
@media (max-width: 960px) {
  .hero { padding: 88px 0 64px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 24px;
  }
  .hero-phone {
    justify-self: center;
    transform: translateX(0);
    animation:
      hero-phone-enter-tablet 1100ms var(--ease) 280ms both,
      float-mobile 5s var(--ease) 1400ms infinite;
  }
  @keyframes hero-phone-enter-tablet {
    0%   { opacity: 0; transform: translateY(28px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0)    scale(1);    }
  }
  @keyframes float-mobile {
    0%, 100% { transform: translateY(0); }
    25%      { transform: translateY(-6px); }
    75%      { transform: translateY(6px); }
  }
  .phone-body {
    width: 260px;
    transform: rotateY(-8deg) rotateX(4deg) rotateZ(-2deg);
  }
  .phone-frame {
    border-radius: 42px;
    border-width: 7px;
  }
  .phone-btn { width: 4px; }
  .phone-btn--action,
  .phone-btn--volup,
  .phone-btn--voldown { left: -5px; }
  .phone-btn--power { right: -5px; }
  .phone-body::before { inset: -3px; border-radius: calc(42px + 3px); }
}

/* --- Phone (mobile) : flat iPhone mockup, centered, behind the text.
   No 3D, no float, no buttons, no metallic rail — just a clean
   illustration of an iPhone, faded out so the hero text reads first. */
@media (max-width: 768px) {
  .hero-inner { gap: 0; }

  .hero-text {
    position: relative;
    z-index: 2;
  }

  .hero-phone {
    position: absolute;
    top: -40px;
    left: 50%;
    width: 200px;
    height: auto;
    justify-self: unset;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    transform: translateX(-50%);            /* horizontally centered */
    animation: mobile-phone-fade-in 900ms var(--ease) 150ms both;
    -webkit-mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 1)   0%,
      rgba(0, 0, 0, 0.9) 32%,
      rgba(0, 0, 0, 0.4) 65%,
      rgba(0, 0, 0, 0)   100%);
            mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 1)   0%,
      rgba(0, 0, 0, 0.9) 32%,
      rgba(0, 0, 0, 0.4) 65%,
      rgba(0, 0, 0, 0)   100%);
  }

  /* Kill the 3D pose + transition — flat mockup */
  .phone-body {
    width: 100%;
    transform: none;
    transition: none;
  }

  /* Drop hardware buttons and metallic side rail on mobile */
  .phone-btn,
  .phone-body::before { display: none; }

  /* Drop the glass reflection too — it reads best in 3D, on a flat
     mockup it just dims the screenshot. */
  .phone-frame::after { display: none; }

  /* Simpler frame: thinner bezel, gentle drop shadow, no glow */
  .phone-frame {
    border-width: 6px;
    border-radius: 38px;
    box-shadow:
      0 18px 36px rgba(0, 0, 0, 0.45),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

@keyframes mobile-phone-fade-in {
  0%   { opacity: 0; }
  100% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-phone { animation: none; transform: translateX(6%); }
  .phone-body { transition: none; }
}

/* --- Mobile : flat phone mockup centered at top; text pushed well
       below the mockup so the H1 doesn't compete with it --- */
@media (max-width: 600px) {
  .hero {
    padding: 220px 0 64px;
    min-height: auto;
  }
  .hero-inner {
    padding: 0 56px;
  }
  .eyebrow {
    font-size: 11px;
    margin-bottom: 28px;
  }
  .hero-h1 {
    /* Tightened so the longest accent line ("en deux clics." / "en dos toques.")
       fits without wrapping at iPhone-SE width (375px). */
    font-size: clamp(36px, 10vw, 52px);
    margin-bottom: 28px;
  }
  .hero-sub {
    font-size: 16.5px;
    line-height: 1.6;
    margin-bottom: 36px;
  }
  .hero .store-badges { margin-bottom: 22px; }
  .hero-micro { font-size: 12px; }
}

@media (max-width: 380px) {
  .hero { padding: 300px 0 56px; }
  .hero-h1 { font-size: 36px; margin-bottom: 24px; }
}

/* --- TEST: justify body text on phone -------------------------- */
@media (max-width: 600px) {
  .hero-sub,
  .prose,
  .how-desc,
  .faq-answer,
  .faq-answer p,
  .cagnotte-text .prose {
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    hanging-punctuation: first last;
  }
}


/* -------------------------------------------------------------
   8. TICKER VILLES
------------------------------------------------------------- */
.cities {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 22px 0;
  overflow: hidden;
}

.cities-track {
  display: flex;
  width: max-content;
  animation: scroll-x 40s linear infinite;
  will-change: transform;
}

.cities-row {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  white-space: nowrap;
  padding-right: 32px;
  flex-shrink: 0;
}

@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .cities-track { animation: none; }
  .hero-phone { animation: none; }
}


/* -------------------------------------------------------------
   9. Reveal-on-scroll
------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}


/* =============================================================
   10. SHARED SECTION TOKENS
============================================================== */
.section-h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 36px;
  max-width: 18ch;
}

.prose {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 20px;
}
.prose:last-child { margin-bottom: 0; }

.prose--meta {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-top: 28px;
}

/* Ghost button (used by Pros CTA, FAQ in dark) */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease);
}
.btn-ghost::after {
  content: "→";
  transition: transform 200ms var(--ease);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.08);
}
.btn-ghost:hover::after { transform: translateX(4px); }


/* =============================================================
   11. PROBLEM
============================================================== */
.problem-fragment {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 28px 0 40px;
}
#problem .prose { font-size: 19px; }


/* =============================================================
   12. HOW IT WORKS
============================================================== */
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  border-left: 1px solid var(--border);
  padding-left: 40px;
  margin-left: 8px;
}
.how-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
}
.how-step::before {
  content: "";
  position: absolute;
  left: -47px;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: border-color 400ms var(--ease), background 400ms var(--ease);
}
.how-step.is-visible::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(168, 85, 247, 0.18);
}
.how-num {
  font-size: clamp(72px, 9vw, 160px);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  opacity: 0.12;
  letter-spacing: -0.02em;
  min-width: 1.4em;
}
.how-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.how-desc {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
}

@media (max-width: 600px) {
  .how-steps { padding-left: 28px; gap: 36px; }
  .how-step  { grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
  .how-step::before { left: -35px; }
  .how-num   { font-size: 56px; }
  .how-title { font-size: 20px; }
  .how-desc  { font-size: 16px; }
}


/* =============================================================
   13. CAGNOTTE  —  signature section
============================================================== */
.section--cagnotte { background: var(--bg); }
.cagnotte-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Mockup card */
.cagnotte-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.cagnotte-mock-header { margin-bottom: 24px; }
.cagnotte-mock-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.cagnotte-mock-date {
  font-size: 13px;
  color: var(--text-muted);
}
.cagnotte-mock-amount {
  font-size: clamp(44px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.cagnotte-mock-progress-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.cagnotte-progress {
  width: 100%;
  height: 8px;
  background: var(--elevated);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 28px;
}
.cagnotte-progress-fill {
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 4px;
  transition: width 1200ms var(--ease);
}
.cagnotte-avatars {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.ca-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ca-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid var(--surface);
}
.ca-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border: 2px solid var(--surface);
  color: #0E0A15;
  font-weight: 700;
}
.ca-badge--ok   { background: var(--success); }
.ca-badge--wait { background: var(--warning); font-size: 8px; }
.ca-name {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.cagnotte-nudge-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  transition: border-color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease);
  cursor: pointer;
}
.cagnotte-nudge-btn:hover {
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.08);
  transform: scale(1.02);
}

@media (max-width: 960px) {
  .cagnotte-split { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 480px) {
  .cagnotte-mockup { padding: 22px; }
  .cagnotte-avatars { gap: 6px; }
  .ca-avatar { width: 38px; height: 38px; font-size: 14px; }
  .ca-name { font-size: 10px; }
}


/* =============================================================
   14. CATEGORIES  —  irregular CSS grid
============================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 16px;
}
.cat-card {
  position: relative;
  display: block;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.cat-card:hover { transform: translateY(-4px); }

.cat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 500ms var(--ease), filter 240ms var(--ease);
  filter: saturate(1.05) brightness(0.82);
}
.cat-card:hover .cat-img {
  transform: scale(1.04);
  filter: saturate(1.1) brightness(0.9);
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 10, 21, 0.15) 0%, rgba(14, 10, 21, 0.55) 55%, rgba(14, 10, 21, 0.94) 100%);
  z-index: 1;
}

/* Arrow — vertically centered right side, slides in on hover.
   Same horizontal padding as the text (22px) so left + right + bottom feel uniform. */
.cat-arrow {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translate(-8px, -50%);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  opacity: 0;
  line-height: 1;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
  z-index: 3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.cat-card:hover .cat-arrow {
  opacity: 1;
  transform: translate(0, -50%);
}

/* Text content — absolutely positioned bottom-left with identical
   left + bottom values + tight line-heights so the visual gap from
   the glyphs to the card edges is the same on both axes. */
.cat-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}
.cat-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.cat-desc {
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* Per-category border colors — matches the app's category colors
   (home_screen_config_provider colorHex / CategoryColors.*Text). */
.cat--restaurants { border-color: rgba(255, 98, 0, 0.55); }
.cat--restaurants:hover { border-color: rgba(255, 98, 0, 1);  box-shadow: 0 14px 40px rgba(255, 98, 0, 0.28); }

.cat--nightlife   { border-color: rgba(106, 27, 154, 0.6); }
.cat--nightlife:hover   { border-color: rgba(106, 27, 154, 1); box-shadow: 0 14px 40px rgba(106, 27, 154, 0.32); }

.cat--activities  { border-color: rgba(0, 140, 180, 0.55); }
.cat--activities:hover  { border-color: rgba(0, 140, 180, 1);  box-shadow: 0 14px 40px rgba(0, 140, 180, 0.28); }

.cat--transport   { border-color: rgba(156, 39, 176, 0.55); }
.cat--transport:hover   { border-color: rgba(156, 39, 176, 1); box-shadow: 0 14px 40px rgba(156, 39, 176, 0.28); }

.cat--sports      { border-color: rgba(255, 193, 7, 0.55); }
.cat--sports:hover      { border-color: rgba(255, 193, 7, 1);  box-shadow: 0 14px 40px rgba(255, 193, 7, 0.28); }

.cat--deals       { border-color: rgba(254, 170, 46, 0.55); }
.cat--deals:hover       { border-color: rgba(254, 170, 46, 1); box-shadow: 0 14px 40px rgba(254, 170, 46, 0.28); }

.cat--health      { border-color: rgba(76, 175, 80, 0.55); }
.cat--health:hover      { border-color: rgba(76, 175, 80, 1);  box-shadow: 0 14px 40px rgba(76, 175, 80, 0.28); }

/* Span pattern — 4 cols × 3 rows = 12 cells.
   Order: Restaurants 2×2 · Nightlife 2×1 · Activities 1×2 · Transport · Sports · Deals · Health
        = 4 + 2 + 2 + 1 + 1 + 1 + 1 = 12.
   Visual layout:
     [R R N N]
     [R R A T]
     [S D A H] */
.cat--restaurants { grid-column: span 2; grid-row: span 2; }
.cat--nightlife   { grid-column: span 2; }
.cat--activities  { grid-row: span 2; }

@media (max-width: 768px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 12px; }
  .cat-content { left: 18px; right: 18px; bottom: 18px; }
  .cat-arrow   { right: 18px; font-size: 20px; }
  .cat-title   { font-size: 18px; margin-bottom: 6px; }
  .cat-desc    { font-size: 12px; }
  /* On mobile every card is 1×1 except Restaurants (still 2×1 hero). */
  .cat--restaurants,
  .cat--nightlife,
  .cat--activities { grid-column: auto; grid-row: auto; }
  .cat--restaurants { grid-column: span 2; }
}


/* =============================================================
   15. PROS
============================================================== */
.section--pros { background: var(--surface); }
.pros-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.pros-split .section-h2 { margin-bottom: 0; }

@media (max-width: 960px) {
  .pros-split { grid-template-columns: 1fr; gap: 24px; }
}


/* =============================================================
   17. FAQ
============================================================== */
.faq-list { margin-top: 12px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-icon {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform 240ms var(--ease);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 0 28px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 62ch;
}

@media (max-width: 600px) {
  .faq-item > summary { font-size: 16px; padding: 22px 0; gap: 16px; }
  .faq-answer { font-size: 15px; padding-bottom: 22px; }
}


/* =============================================================
   18. FINAL CTA
============================================================== */
.final-cta {
  position: relative;
  padding: 140px 0;
  text-align: center;
  isolation: isolate;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--radial-hero);
  z-index: -1;
}
.finalcta-h2 {
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 40px;
  max-width: none;
}
.final-cta .store-badges { justify-content: center; margin-bottom: 24px; }
.final-cta .store-badge img { height: 64px; }
.finalcta-micro {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .final-cta { padding: 96px 0; }
  .final-cta .store-badge img { height: 56px; }
}
@media (max-width: 480px) {
  .final-cta .store-badge img { height: 50px; }
}


/* =============================================================
   19. FOOTER
============================================================== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 64px 0 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 180ms var(--ease);
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.footer-logo img { display: block; }
.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-inner { padding: 0 20px; }
}
@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
}


/* =============================================================
   20. COOKIE BANNER
============================================================== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  max-height: 60px;
  background: rgba(34, 23, 60, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
}
.cookie-banner[hidden] { display: none; }
.cookie-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
  margin: 0;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-learn {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: underline;
}
.cookie-learn:hover { color: var(--text); }
.cookie-btn {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.cookie-btn--ghost { background: transparent; color: var(--text); }
.cookie-btn--ghost:hover { border-color: var(--text); }
.cookie-btn--accept { background: var(--gradient); color: #fff; border-color: transparent; }
.cookie-btn--accept:hover { background: var(--gradient-hover); }

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    max-height: none;
    padding: 14px 16px;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .cookie-text { font-size: 12px; }
  .cookie-actions { width: 100%; justify-content: space-between; }
}
