/* acteble.com — design tokens. The stylesheets of site/css/ are joined, in
   file name order, into /site.css by site/build.sh. Proportional units only:
   rem/em for sizes, %, vw/vh and clamp() for layout, em in media queries. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/fonts/space-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/fonts/space-grotesk-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary-color: #7b1c1c;
  --primary-light: #9b2c2c;
  --primary-dark: #5d1515;
  --primary-900: #3d0f0f;
  --accent-color: #fff9c4;
  --accent-dark: #fff59d;
  --accent-gold: #d4af37;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;

  --font-primary: 'Inter Variable', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk Variable', 'Space Grotesk', 'Inter Variable', sans-serif;

  --gradient-hero: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--accent-dark) 100%);
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 999rem;
  --shadow-2xl: 0 1.5625rem 3.125rem -0.75rem rgba(0, 0, 0, 0.25);
  --nav-height: 4.5rem;
  --transition-normal: 0.3s ease;
}
/* Page-wide basics: box model, typography, links, buttons, helpers */

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

html {
  scroll-padding-top: calc(var(--nav-height) + 1rem);
}

@media (max-width: 48em) {
  html {
    scroll-padding-top: 7rem;
  }
}

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

body {
  margin: 0;
  min-width: 20rem;
  font-family: var(--font-primary);
  line-height: 1.6;
  color: #fff;
  background: var(--primary-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(75rem, 100% - 2 * clamp(1rem, 4vw, 2rem));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 0.125rem solid transparent;
  transition: transform var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-0.125rem);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 0.0625rem solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(0.625rem);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-gold {
  background: var(--accent-gold);
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 0.25rem 1.125rem rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(212, 175, 55, 0.5);
}

:focus-visible {
  outline: 0.1875rem solid var(--accent-gold);
  outline-offset: 0.1875rem;
}

.sr-only,
.state {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* The fixed top bar: logo, section links, language links */

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(123, 28, 28, 0.95);
  border-bottom: 0.0625rem solid rgba(255, 249, 196, 0.2);
  backdrop-filter: blur(1.25rem);
}

.nav-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  min-height: var(--nav-height);
  width: min(75rem, 100% - 2 * clamp(1rem, 4vw, 2rem));
  margin-inline: auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
}

.nav-logo {
  width: auto;
  height: 3.125rem;
  transition: transform var(--transition-normal);
}

.nav-brand:hover .nav-logo {
  transform: scale(1.06) rotate(-4deg);
}

.nav-tagline {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-xl);
  margin-inline-start: auto;
}

.nav-links a {
  position: relative;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

/* An underline that grows from the start on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  inset: auto 0 -0.25rem;
  height: 0.125rem;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

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

.language-switch {
  display: flex;
  gap: 0.125rem;
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  border: 0.0625rem solid rgba(255, 249, 196, 0.3);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
}

.language-switch a {
  display: block;
  min-width: 2.25rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  color: var(--accent-color);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background var(--transition-normal);
}

.language-switch a:hover {
  background: rgba(255, 249, 196, 0.15);
}

.language-switch a[aria-current='page'] {
  background: var(--accent-color);
  color: var(--primary-color);
}

@media (max-width: 48em) {
  .nav-container {
    gap: 0 var(--space-md);
  }

  .nav-logo {
    height: 2.5rem;
  }

  /* Two rows, no hidden menu: brand and languages, then the four links on
     one line that scrolls sideways if it must. */
  .nav-links {
    order: 3;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    padding-bottom: var(--space-sm);
    gap: var(--space-lg);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .language-switch {
    margin-inline-start: auto;
  }

  .nav-container {
    min-height: 0;
    padding-top: var(--space-sm);
  }
}

@media (min-width: 30em) and (max-width: 48em) {
  .nav-tagline {
    display: inline;
  }
}
/* The hero: logo, tagline, store badges, and the phone frame */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
  padding: var(--space-3xl) 0;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--space-2xl), 5vw, var(--space-4xl));
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  max-width: 35rem;
  justify-self: center;
}

.hero-logo-lockup {
  width: 100%;
}

.hero-logo-image {
  display: block;
  width: min(12.5rem, 60%);
  filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.15));
}

.tagline {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
}

.tagline-highlight {
  color: var(--accent-gold);
}

.coming-soon-badge {
  margin: 0;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  border: 0.0625rem solid rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  border: 0.0625rem solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background var(--transition-normal), transform var(--transition-normal);
}

.store-badge:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-0.1875rem);
}

.store-badge svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: min(17.5rem, 72vw);
  aspect-ratio: 1 / 2;
  padding: 1rem;
  border: 0.1875rem solid var(--accent-color);
  border-radius: 2.5rem;
  background: var(--primary-color);
  box-shadow: var(--shadow-2xl);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 50%;
  width: 7.5rem;
  height: 0.375rem;
  border-radius: var(--radius-full);
  background: var(--accent-dark);
  transform: translateX(-50%);
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  height: 100%;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: 2rem;
  background: var(--gradient-primary);
  color: var(--accent-color);
  text-align: center;
}

.screen p {
  margin: 0;
}

.phone-logo {
  display: block;
  width: 5rem;
  height: auto;
  border-radius: 1.25rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

@media (max-width: 48em) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-logo-image {
    margin-inline: auto;
  }

  .store-badges {
    justify-content: center;
  }

  /* As before: the phone first on a phone, then logo and tagline */
  .hero-image {
    order: -1;
  }
}
/* The pillars: three phones on a 3D carousel that turns by itself.
   Every card runs the same cycle (centre, left, right), each a third of the
   cycle apart (--i). A link to #pillar-key stops the cycle on that pillar
   (:target); the radio buttons pick the theme and orientation (:checked). */

.pillars {
  --cycle: 10.8s;
  position: relative;
  padding: var(--space-4xl) 0;
  background: var(--gradient-hero);
  text-align: center;
  overflow: hidden;
}

.pillars-title {
  color: var(--accent-gold);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
}

.pillars-subtitle {
  margin: 0 auto var(--space-2xl);
  color: var(--accent-color);
}

.pillars-carousel {
  position: relative;
  height: clamp(18.75rem, 64vw, 25rem);
  margin: 0;
  padding: 0;
  list-style: none;
  perspective: 93.75rem;
}

.pillar-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  animation: pillar-turn var(--cycle) ease-in-out infinite;
  animation-delay: calc(var(--i) * var(--cycle) / -3);
}

.pillar-card a {
  display: block;
}

.screen-variant {
  display: none;
}

.screen-variant svg {
  display: block;
  width: auto;
  height: clamp(17.5rem, 60vw, 23.75rem);
  filter: drop-shadow(0 1.5rem 2rem rgba(0, 0, 0, 0.35));
}

.screen-variant.orientation-landscape svg {
  height: clamp(9.6875rem, 33vw, 13.1875rem);
}

/* Show the screen matching the chosen theme and orientation */
#theme-light:checked ~ #orientation-portrait:checked ~ .pillars-stage .theme-light.orientation-portrait,
#theme-light:checked ~ #orientation-landscape:checked ~ .pillars-stage .theme-light.orientation-landscape,
#theme-dark:checked ~ #orientation-portrait:checked ~ .pillars-stage .theme-dark.orientation-portrait,
#theme-dark:checked ~ #orientation-landscape:checked ~ .pillars-stage .theme-dark.orientation-landscape {
  display: block;
}

/* Centre, then left, then right, a third of the cycle each */
@keyframes pillar-turn {
  0%, 26%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    filter: brightness(1);
    z-index: 3;
  }
  33%, 59% {
    transform: translate(-50%, -50%) translateX(-58%) translateZ(-10rem) rotateY(32deg) scale(0.74);
    opacity: 0.55;
    filter: brightness(0.72);
    z-index: 1;
  }
  66%, 92% {
    transform: translate(-50%, -50%) translateX(58%) translateZ(-10rem) rotateY(-32deg) scale(0.74);
    opacity: 0.55;
    filter: brightness(0.72);
    z-index: 1;
  }
}

.pillars-captions {
  display: grid;
  max-width: 36rem;
  margin: var(--space-lg) auto 0;
}

.pillar-caption {
  grid-area: 1 / 1;
  opacity: 0;
  animation: pillar-caption var(--cycle) ease-in-out infinite;
  animation-delay: calc(var(--i) * var(--cycle) / -3);
}

.pillar-caption h3 {
  margin-bottom: var(--space-xs);
  color: var(--accent-color);
}

@keyframes pillar-caption {
  0%, 26%, 100% { opacity: 1; transform: translateY(0); }
  31%, 95% { opacity: 0; transform: translateY(0.5rem); }
}

.pillars-controls {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.pillars-controls label {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9rem;
}

#theme-light:checked ~ .pillars-stage .for-dark,
#theme-dark:checked ~ .pillars-stage .for-light,
#orientation-portrait:checked ~ .pillars-stage .for-landscape,
#orientation-landscape:checked ~ .pillars-stage .for-portrait {
  display: none;
}

.state:focus-visible ~ .pillars-stage .pillars-controls {
  outline: 0.1875rem solid var(--accent-gold);
  outline-offset: 0.5rem;
  border-radius: var(--radius-lg);
}

.pillars-dots {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}

.pillars-dot {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
}

/* The visible dot; the link around it is a comfortable target */
.pillars-dot::before {
  content: '';
  width: 0.625rem;
  height: 0.625rem;
  border-radius: var(--radius-full);
  background: rgba(255, 249, 196, 0.45);
  animation: pillar-dot var(--cycle) ease-in-out infinite;
  animation-delay: calc(var(--i) * var(--cycle) / -3);
}

@keyframes pillar-dot {
  0%, 26%, 100% { width: 1.4rem; background: var(--accent-color); }
  33%, 92% { width: 0.625rem; background: rgba(255, 249, 196, 0.45); }
}

/* Hovering or focusing the stage holds the carousel still */
.pillars-stage:hover :is(.pillar-card, .pillar-caption),
.pillars-stage:hover .pillars-dot::before,
.pillars-stage:focus-within :is(.pillar-card, .pillar-caption),
.pillars-stage:focus-within .pillars-dot::before {
  animation-play-state: paused;
}

/* A picked pillar: the cycle stops, that pillar in the centre */
.pillar-target:target ~ .pillars-stage :is(.pillar-card, .pillar-caption),
.pillar-target:target ~ .pillars-stage .pillars-dot::before {
  animation: none;
}

.pillar-target:target ~ .pillars-stage .pillar-card {
  transform: translate(-50%, -50%) translateX(58%) translateZ(-10rem) rotateY(-32deg) scale(0.74);
  opacity: 0.55;
  filter: brightness(0.72);
  transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease;
}

#pillar-trajectoire:target ~ .pillars-stage .pillar-card[data-pillar='interact'],
#pillar-act:target ~ .pillars-stage .pillar-card[data-pillar='trajectoire'],
#pillar-interact:target ~ .pillars-stage .pillar-card[data-pillar='act'] {
  transform: translate(-50%, -50%) translateX(-58%) translateZ(-10rem) rotateY(32deg) scale(0.74);
}

#pillar-trajectoire:target ~ .pillars-stage .pillar-card[data-pillar='trajectoire'],
#pillar-act:target ~ .pillars-stage .pillar-card[data-pillar='act'],
#pillar-interact:target ~ .pillars-stage .pillar-card[data-pillar='interact'] {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: brightness(1);
  z-index: 3;
}

.pillar-target:target ~ .pillars-stage .pillar-caption {
  opacity: 0;
}

#pillar-trajectoire:target ~ .pillars-stage .pillar-caption[data-pillar='trajectoire'],
#pillar-act:target ~ .pillars-stage .pillar-caption[data-pillar='act'],
#pillar-interact:target ~ .pillars-stage .pillar-caption[data-pillar='interact'] {
  opacity: 1;
}

.pillar-target:target ~ .pillars-stage .pillars-dot::before {
  width: 0.625rem;
}

#pillar-trajectoire:target ~ .pillars-stage .pillars-dot[data-pillar='trajectoire']::before,
#pillar-act:target ~ .pillars-stage .pillars-dot[data-pillar='act']::before,
#pillar-interact:target ~ .pillars-stage .pillars-dot[data-pillar='interact']::before {
  width: 1.4rem;
  background: var(--accent-color);
}

/* The pillar target sits at the top of the section, so picking one scrolls
   to the carousel, not past it. */
.pillar-target {
  position: absolute;
  margin-top: calc(-1 * var(--space-4xl));
}

/* Live motion inside the phone screens: the map's radar ping and the
   chat's typing dots (the classes the screens carry). */
.pillar-screen .anim-radar-ping {
  transform-box: fill-box;
  transform-origin: center;
  animation: radar-ping 2.4s ease-out infinite;
}

.pillar-screen .anim-typing {
  transform-box: fill-box;
  transform-origin: center;
  animation: typing-bounce 1.3s ease-in-out infinite;
}

.pillar-screen .anim-typing.d2 {
  animation-delay: 0.18s;
}

.pillar-screen .anim-typing.d3 {
  animation-delay: 0.36s;
}

@keyframes radar-ping {
  0% { transform: scale(0.28); opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes typing-bounce {
  0%, 70%, 100% { transform: translateY(0); opacity: 0.5; }
  35% { transform: translateY(-0.1875rem); opacity: 1; }
}
/* The features: a band of cards scrolling by itself. The track holds the
   cards twice, so sliding it by half its width loops without a seam. */

.features {
  padding: var(--space-4xl) 0;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary-color) 55%, #a5763a 100%);
  text-align: center;
}

.features-title {
  color: var(--accent-gold);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: var(--space-2xl);
}

.features-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.features-track {
  display: flex;
  gap: var(--space-xl);
  width: max-content;
  margin: 0;
  padding: var(--space-md) var(--space-xl);
  list-style: none;
  animation: features-scroll 80s linear infinite;
}

[dir='rtl'] .features-track {
  animation-name: features-scroll-rtl;
}

.features-viewport:hover .features-track,
.features-viewport:focus-within .features-track {
  animation-play-state: paused;
}

@keyframes features-scroll {
  to { transform: translateX(calc(-50% - var(--space-xl) / 2)); }
}

@keyframes features-scroll-rtl {
  to { transform: translateX(calc(50% + var(--space-xl) / 2)); }
}

.feature-card {
  width: min(20rem, 80vw);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 0.0625rem solid rgba(255, 249, 196, 0.25);
  text-align: start;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.375rem 2.75rem -0.875rem rgba(0, 0, 0, 0.35), 0 0 1.375rem rgba(212, 175, 55, 0.22);
}

.feature-card__icon svg {
  width: 3.5rem;
  height: 3.5rem;
}

.feature-card__title {
  margin: var(--space-md) 0 var(--space-sm);
  font-size: 1.15rem;
}

.feature-card__desc {
  margin: 0 0 var(--space-md);
  color: var(--accent-color);
  font-size: 0.95rem;
}

.feature-card__list {
  margin: 0;
  padding-inline-start: 1.1rem;
  font-size: 0.875rem;
}

.feature-card__list li::marker {
  color: var(--accent-gold);
}
/* Newsletter and contact. A radio pair switches the form (:checked); the
   functions redirect back to #…-sent or #…-error, shown by :target. */

.newsletter-section {
  position: relative;
  padding: var(--space-4xl) 0;
  background: var(--gradient-hero);
}

.newsletter-form {
  max-width: 34rem;
  margin-inline: auto;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  border: 0.0625rem solid rgba(255, 249, 196, 0.3);
  box-shadow: var(--shadow-2xl);
  text-align: center;
}

.reg-form__toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.15);
  border: 0.0625rem solid rgba(255, 249, 196, 0.2);
}

.reg-form__toggle-btn {
  padding: var(--space-sm);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255, 249, 196, 0.75);
  cursor: pointer;
  transition: background var(--transition-normal), color var(--transition-normal);
}

#mode-newsletter:checked ~ .reg-form__toggle .for-newsletter,
#mode-contact:checked ~ .reg-form__toggle .for-contact {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

#mode-newsletter:focus-visible ~ .reg-form__toggle .for-newsletter,
#mode-contact:focus-visible ~ .reg-form__toggle .for-contact {
  outline: 0.1875rem solid var(--accent-color);
  outline-offset: 0.125rem;
}

#mode-newsletter:checked ~ .reg-form--contact,
#mode-contact:checked ~ .reg-form--newsletter {
  display: none;
}

.reg-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  text-align: start;
}

.reg-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.reg-form__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.reg-form__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 0.0625rem solid rgba(255, 249, 196, 0.3);
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  font: inherit;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.reg-form__input::placeholder {
  color: rgba(255, 249, 196, 0.55);
}

.reg-form__input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 0.1875rem rgba(212, 175, 55, 0.3);
}

.reg-form__textarea {
  resize: vertical;
  min-height: 6rem;
}

.reg-form__submit {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
}

.outcome-target {
  position: absolute;
  top: 0;
}

.outcome {
  display: none;
  margin: 0 0 var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  font-weight: 600;
}

#newsletter-sent:target ~ .container .outcome-newsletter-sent,
#contact-sent:target ~ .container .outcome-contact-sent {
  display: block;
  background: rgba(46, 125, 50, 0.45);
  animation: outcome-in 0.5s ease-out;
}

#newsletter-error:target ~ .container .outcome-newsletter-error,
#contact-error:target ~ .container .outcome-contact-error {
  display: block;
  background: rgba(198, 40, 40, 0.45);
  animation: outcome-in 0.5s ease-out;
}

@keyframes outcome-in {
  from { opacity: 0; transform: translateY(-0.5rem) scale(0.97); }
}
/* Text pages: legal documents, support, not found, sign-in return */

.legal-document,
.auth-callback {
  min-height: calc(100vh - var(--nav-height));
  padding: var(--space-2xl) 0 var(--space-4xl);
  background: var(--gradient-hero);
}

.legal-back-nav {
  width: min(56rem, 100% - 2 * clamp(1rem, 4vw, 2rem));
  margin: 0 auto var(--space-lg);
}

.legal-document article {
  width: min(56rem, 100% - 2 * clamp(1rem, 4vw, 2rem));
  padding: clamp(var(--space-lg), 4vw, var(--space-2xl));
  border-radius: var(--radius-xl);
  background: rgba(61, 15, 15, 0.55);
  border: 0.0625rem solid rgba(255, 249, 196, 0.2);
}

.legal-document h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.legal-document h2 {
  margin-top: 1.6em;
  color: var(--accent-gold);
  font-size: 1.3rem;
}

.legal-document h3 {
  margin-top: 1.2em;
  color: var(--accent-color);
  font-size: 1.05rem;
}

.last-updated {
  color: var(--accent-color);
  font-style: italic;
}

.legal-document li + li {
  margin-top: var(--space-xs);
}

.auth-callback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* The footer */

.footer {
  padding: var(--space-4xl) 0 var(--space-2xl);
  background: linear-gradient(135deg, var(--primary-900) 0%, #4a1c1c 100%);
  border-top: 0.1875rem solid;
  border-image: linear-gradient(90deg, var(--primary-color), var(--accent-gold), var(--accent-dark)) 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-2xl);
}

.footer-logo {
  width: auto;
  height: 3.125rem;
}

.footer .tagline {
  margin: var(--space-md) 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-300);
}

.trademark-notice,
.accessibility-notice {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.footer-links-column h3 {
  font-size: 1.05rem;
  color: #fff;
}

.footer-links-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links-column li + li {
  margin-top: var(--space-sm);
}

.footer a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.footer a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.12);
  color: var(--gray-400);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  transition: transform var(--transition-normal);
}

.social-link:hover svg {
  transform: translateY(-0.125rem) scale(1.15);
}

@media (max-width: 48em) {
  .footer-top,
  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
  }
}
/* Motion: the site moves, in CSS only. Entrance of the hero, a floating
   phone, a pulsing badge, sections revealed as they scroll into view
   (scroll-driven animations where the browser has them). Everything here,
   and the carousels, rests under prefers-reduced-motion. */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(1.5rem); }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(3rem) rotate(4deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-0.875rem) rotate(-1.5deg); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 249, 196, 0.45); }
  50% { box-shadow: 0 0 0 0.6rem rgba(255, 249, 196, 0); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(2.5rem) scale(0.98); }
}

/* Hero: each piece rises in turn, the phone slides in, then floats */
.hero-content > * {
  animation: rise-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-content > :nth-child(2) { animation-delay: 0.12s; }
.hero-content > :nth-child(3) { animation-delay: 0.24s; }
.hero-content > :nth-child(4) { animation-delay: 0.36s; }

.store-badges li {
  animation: rise-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(0.45s + var(--n, 0) * 0.06s);
}

.store-badges li:nth-child(2) { --n: 1; }
.store-badges li:nth-child(3) { --n: 2; }
.store-badges li:nth-child(4) { --n: 3; }
.store-badges li:nth-child(5) { --n: 4; }
.store-badges li:nth-child(6) { --n: 5; }
.store-badges li:nth-child(7) { --n: 6; }

.hero-image {
  animation: slide-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}

.phone-mockup {
  animation: float 6s ease-in-out 1.2s infinite;
}

.coming-soon-badge {
  animation: rise-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.24s both, pulse 2.4s ease-in-out 1.2s infinite;
}

.screen-variant svg {
  animation: float 4.5s ease-in-out infinite;
}

/* Sections rise into place as they scroll into view */
@supports (animation-timeline: view()) {
  :is(.pillars-title, .pillars-subtitle, .features-title, .newsletter-form, .legal-document section, .footer-top) {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  /* The carousels hold still: the first pillar in front, the features as
     a band scrolled by hand (its second copy is not needed). */
  .pillar-card {
    transform: translate(-50%, -50%) translateX(58%) translateZ(-10rem) rotateY(-32deg) scale(0.74);
    opacity: 0.55;
  }

  .pillar-card[data-pillar='trajectoire'] {
    transform: translate(-50%, -50%);
    opacity: 1;
    z-index: 3;
  }

  .pillar-card[data-pillar='interact'] {
    transform: translate(-50%, -50%) translateX(-58%) translateZ(-10rem) rotateY(32deg) scale(0.74);
  }

  .pillar-caption[data-pillar='trajectoire'] {
    opacity: 1;
  }

  .features-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .feature-card {
    scroll-snap-align: center;
  }

  .feature-card[aria-hidden='true'] {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
