/* ==========================================================================
   Caasi — landing produit
   Tokens repris de src/shared/theme/global.css (:root / .dark:root) et des
   dégradés de src/shared/theme/tokens.ts. Miroir figé, comme marketing/video.
   ========================================================================== */

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/quicksand-latin.woff2') format('woff2');
  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 {
  color-scheme: light;

  /* clair */
  --surface: hsl(40 33% 95%);
  --card: hsl(0 0% 100%);
  --ink: hsl(277 14% 22%);
  --line: hsl(36 20% 87%);
  --muted: hsl(285 12% 61%);
  --faint: hsl(274 18% 79%);
  --primary: hsl(250 49% 44%);
  --milk: hsl(41 100% 35%);
  --sleep: hsl(250 49% 44%);
  --diaper: hsl(158 73% 40%);
  --milk-soft: hsl(40 79% 91%);
  --sleep-soft: hsl(253 60% 94%);
  --diaper-soft: hsl(153 43% 92%);
  --warn: hsl(23 64% 46%);
  --warn-soft: hsl(27 62% 91%);

  /* sombre — utilisé par la bande « sans jugement » */
  --night-surface: hsl(30 6% 8%);
  --night-card: hsl(258 15% 17%);
  --night-ink: hsl(40 20% 92%);
  --night-muted: hsl(260 8% 62%);
  --night-sleep: hsl(247 69% 74%);

  --star: #e8b54d;
  --gradient-marketing: linear-gradient(
    155deg,
    #d8ccef 0%,
    #ece0ef 26%,
    #f7ebdd 62%,
    #f2e3cf 100%
  );

  --wrap: 1120px;
  --radius-card: 22px;
  --shadow-card: 0 1px 2px hsl(277 14% 22% / 0.04),
    0 12px 28px -18px hsl(277 14% 22% / 0.22);
  --shadow-device: 0 40px 70px -30px hsl(277 14% 22% / 0.5),
    0 0 0 1px hsl(277 14% 22% / 0.06);
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5.4vw, 3.65rem);
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(68px, 9vw, 118px) 0;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: color-mix(in srgb, var(--ink) 74%, transparent);
  max-width: 46ch;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

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

/* --------------------------------------------------------------- en-tête -- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.header--pinned {
  background: hsl(40 33% 95% / 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 hsl(277 14% 22% / 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.98rem;
  font-weight: 600;
}

.nav a {
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  text-decoration: none;
}

.nav a:hover {
  color: var(--primary);
}

.header .btn {
  height: 44px;
  padding: 0 20px;
  font-size: 0.98rem;
}

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

  .header .btn {
    margin-left: auto;
  }
}

/* --------------------------------------------------------------- boutons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 26px -12px hsl(250 49% 44% / 0.65);
}

.btn--ghost {
  background: hsl(0 0% 100% / 0.72);
  color: var(--ink);
  border-color: hsl(277 14% 22% / 0.12);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  flex: none;
}

/* Boutons de magasin « en relief » : ombre franche de 4 px qui s'écrase au
   survol, comme un bouton qu'on enfonce. Le glyphe Apple vient du badge
   officiel (assets/apple-logo-white.svg), il n'est pas redessiné. */
.btn-chunky {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  height: 58px;
  /* largeur du plus large des deux (Google Play : 216 px mesurés) pour que la
     paire soit strictement de la même taille */
  min-width: 218px;
  padding: 0 18px;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-chunky:hover {
  transform: translateY(3px);
}

.btn-chunky img,
.btn-chunky svg {
  flex: none;
}

.btn-chunky__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-chunky__label small {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  opacity: 0.85;
}

.btn-chunky__label strong {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.btn-chunky__soon {
  background: hsl(0 0% 100% / 0.22);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* disponible : l'encre du thème, presque noire */
.btn-chunky--store {
  background: var(--ink);
  box-shadow: 0 4px 0 hsl(277 14% 12%),
    0 16px 26px -14px hsl(277 14% 22% / 0.55);
}

.btn-chunky--store:hover {
  box-shadow: 0 1px 0 hsl(277 14% 12%),
    0 10px 18px -14px hsl(277 14% 22% / 0.45);
}

/* à venir : le violet primaire */
.btn-chunky--play {
  background: var(--primary);
  box-shadow: 0 4px 0 hsl(250 49% 33%),
    0 16px 26px -14px hsl(250 49% 44% / 0.6);
}

.btn-chunky--play:hover {
  box-shadow: 0 1px 0 hsl(250 49% 33%),
    0 10px 18px -14px hsl(250 49% 44% / 0.5);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative;
  background: var(--gradient-marketing);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 90px;
  background: linear-gradient(hsl(40 33% 95% / 0), var(--surface));
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 5vw, 64px) 0 clamp(80px, 9vw, 120px);
}

.hero h1 span {
  color: var(--primary);
}

.hero .lead {
  margin-top: 20px;
  max-width: 44ch;
}

.proof {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.97rem;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}

.proof li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.proof svg {
  flex: none;
  color: var(--diaper);
}

.hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 72px;
  }

  .hero .lead,
  .hero .proof {
    margin-inline: auto;
  }

  .proof li {
    justify-content: center;
  }

  .cta-row {
    justify-content: center;
  }
}

/* décor : étoiles et halos, purement décoratif */

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.55;
}

.glow--violet {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -100px;
  background: hsl(250 49% 60% / 0.35);
}

.glow--amber {
  width: 380px;
  height: 380px;
  bottom: -140px;
  right: -80px;
  background: hsl(41 90% 62% / 0.28);
}

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkles svg {
  position: absolute;
  color: var(--star);
}

/* ---------------------------------------------------------------- device -- */

.device {
  position: relative;
  padding: 9px;
  background: linear-gradient(160deg, #fff, #fbf6ee);
  border-radius: 44px;
  box-shadow: var(--shadow-device);
  width: min(316px, 74vw);
  flex: none;
}

.device > img,
.device > video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
  background: var(--surface);
}

.device--float {
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(-6px);
  }

  50% {
    transform: translateY(6px);
  }
}

/* ---------------------------------------------------------------- vidéo -- */

.video {
  background: var(--surface);
}

.video__head {
  text-align: center;
  max-width: 54ch;
  margin: 0 auto 40px;
}

.video__head .lead {
  margin: 14px auto 0;
}

.player {
  position: relative;
  margin: 0 auto;
  width: min(340px, 80vw);
}

/* Les vidéos portent déjà leur propre mise en scène (mockups compris) :
   un cadre de téléphone autour ferait un téléphone dans un téléphone. */
.player__frame {
  border-radius: 34px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-device);
}

.player__frame video {
  display: block;
  width: 100%;
  height: auto;
}

.player__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 34px;
}

.player__play span {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: hsl(250 49% 44% / 0.94);
  color: #fff;
  box-shadow: 0 18px 40px -12px hsl(250 49% 30% / 0.7);
  transition: transform 0.2s ease;
}

.player__play:hover span {
  transform: scale(1.07);
}

.player--playing .player__play {
  display: none;
}

.video__caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 18px;
}

/* --------------------------------------------------------------- split -- */

.split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.split--reverse .split__visual {
  order: -1;
}

.split__visual {
  display: flex;
  justify-content: center;
}

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

  .split--reverse .split__visual {
    order: 0;
  }
}

/* Bande teintée qui naît et se résout dans le fond : pas d'arête franche
   au raccord avec la section suivante. */
.section--milk {
  background: linear-gradient(
    180deg,
    var(--surface) 0%,
    color-mix(in srgb, var(--milk-soft) 60%, var(--surface)) 52%,
    var(--surface) 100%
  );
}

.points {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
  max-width: 48ch;
}

.points h3 {
  margin-bottom: 4px;
}

.points p {
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  font-size: 1rem;
}

.points li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
}

.chip-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
}

.chip-icon--milk {
  background: var(--milk-soft);
  color: var(--milk);
}

.chip-icon--sleep {
  background: var(--sleep-soft);
  color: var(--sleep);
}

.chip-icon--diaper {
  background: var(--diaper-soft);
  color: var(--diaper);
}

/* -------------------------------------------------------------- features -- */

.features__head {
  max-width: 46ch;
  margin-bottom: 44px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin: 18px 0 6px;
}

.card p {
  color: color-mix(in srgb, var(--ink) 68%, transparent);
  font-size: 0.98rem;
}

/* ----------------------------------------------------------------- nuit -- */

.night {
  background: var(--night-surface);
  color: var(--night-ink);
}

.night .eyebrow {
  color: var(--night-sleep);
}

.night .lead {
  color: color-mix(in srgb, var(--night-ink) 76%, transparent);
  max-width: 54ch;
}

.night__head {
  max-width: 46ch;
}

.night__chips {
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.night__chips li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--night-card);
  border: 1px solid hsl(40 20% 92% / 0.1);
  font-size: 0.95rem;
  font-weight: 600;
}

.night__chips svg {
  color: var(--night-sleep);
  flex: none;
}



/* -------------------------------------------------------------- android -- */

.android {
  background: linear-gradient(
    180deg,
    var(--surface) 0%,
    color-mix(in srgb, var(--sleep-soft) 75%, var(--surface)) 52%,
    var(--surface) 100%
  );
}

.android__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: clamp(30px, 4vw, 48px);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.android__soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.android__card .lead {
  margin: 16px auto 0;
  max-width: 48ch;
}

.waitlist {
  display: flex;
  gap: 10px;
  margin: 30px auto 0;
  max-width: 480px;
}

.waitlist input[type='email'] {
  flex: 1;
  height: 58px;
  padding: 0 20px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.waitlist input::placeholder {
  color: var(--faint);
}

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

@media (max-width: 560px) {
  .waitlist {
    flex-direction: column;
  }

  .waitlist .btn {
    width: 100%;
  }
}

.waitlist__note {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 16px;
}

.waitlist__status {
  margin-top: 18px;
  font-weight: 600;
  min-height: 1.6em;
}

.waitlist__status[data-state='ok'] {
  color: var(--diaper);
}

.waitlist__status[data-state='error'] {
  color: var(--warn);
}

/* ------------------------------------------------------------------ faq -- */

.faq__head {
  text-align: center;
  margin-bottom: 40px;
}

.faq__list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 24px;
  box-shadow: var(--shadow-card);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 700;
  font-size: 1.06rem;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary svg {
  flex: none;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq__item[open] summary svg {
  transform: rotate(180deg);
}

.faq__item p {
  padding: 0 0 22px;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  max-width: 62ch;
}

/* ------------------------------------------------------------- cta final -- */

.final {
  position: relative;
  background: var(--gradient-marketing);
  overflow: hidden;
  text-align: center;
}

.final img.mascot {
  width: 108px;
  height: 108px;
  margin-bottom: 22px;
}

.final .cta-row {
  justify-content: center;
}

.final__sub {
  margin-top: 16px;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  font-size: 1.1rem;
}

/* ---------------------------------------------------------------- footer -- */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.footer nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.footer__legal {
  flex-basis: 100%;
  max-width: 78ch;
  font-size: 0.78rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--muted) 82%, transparent);
}

.footer__legal a {
  color: inherit;
  text-decoration: underline;
}

/* ------------------------------------------------------------ animations -- */

/* Réservé aux navigateurs avec JS : sans lui, tout reste visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal--in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .device--float {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .btn-chunky:hover {
    transform: none;
  }
}
