/* Waymark landing — built from Figma page "07 - LANDING PAGE"
   Desktop frame 235:1042 (1280 wide), iPhone frame 247:5093 (390 wide).
   Sizing: 1rem = 10 design px. Desktop scales with the viewport up to 1280,
   mobile scales from the 390 frame up to a 480px column.
   Card interiors use container units so each card scales as one object,
   exactly as the iPad and iPhone frames scale the desktop cards. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  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 {
  /* Figma variables */
  --ice-lavender: #b7c1e5;
  --grey: #808080;
  --white: #f2f2f2;
  --dark-light: #171717;
  --dark-lavender: #5b6072;
  --grey-light: #545454;
  --page: #000;

  /* Motion tokens — no bounce, no overshoot anywhere. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* UI: press, focus, messages (strong ease-out) */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);  /* page entrances: hero + scroll reveals (easeOutExpo) */
  --ease-exit: cubic-bezier(0.25, 1, 0.5, 1);      /* short exits: decisive start, no lingering tail (easeOutQuart) */
  --ease-color: cubic-bezier(0.33, 1, 0.68, 1);    /* colour changes on hover (easeOutCubic) */
  color-scheme: dark;
}

html {
  font-size: calc(min(100vw, 1280px) / 128);
  background: var(--page);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (max-width: 833px) {
  html { font-size: calc(min(100vw, 480px) / 39); }
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--white);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.6rem;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; font-weight: inherit; }
img { display: block; }
picture { display: contents; }

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

.m-only { display: none !important; }
@media (max-width: 833px) {
  .d-only { display: none !important; }
  .m-only { display: revert !important; }
  br.m-only { display: inline !important; }
}

/* ---------- Layout primitives ---------- */

.st {
  position: relative;
  width: 128rem;
  margin-inline: auto;
}
@media (max-width: 833px) { .st { width: 39rem; } }

.ab { position: absolute; }
.ctr { left: 0; right: 0; margin-inline: auto; }

/* ---------- Type ---------- */

.t-h2 {
  font-weight: 600;
  font-size: 5.2rem;
  line-height: 1.209;
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--white);
}
@media (max-width: 833px) { .t-h2 { font-size: 3.3881rem; } }

/* CSS applies letter-spacing after the last glyph too (Figma does not), which pushes
   centered lines right by half the tracking. Compensate on centered text. */
.t-h2, .hero__title, .mission__lead, .mcard__title, .mcard__text, .panel__title,
.coins__text, .join__heading, .foot__copy, .confirm__title, .confirm__text { translate: calc(var(--ox, 0rem) - 0.025em); }
.join__body-1, .join__body-2 { translate: -0.025em; }
.join__body { translate: var(--ox, 0rem); }

/* ---------- Waitlist form (Join CTA "Action principale" pair) ---------- */

.wl { margin: 0; }
.wl__row {
  position: relative;
  display: flex;
  width: 64.9rem;
  height: 5.6rem;
}
/* Focus ring for the email field: a thicker inner stroke, faded in on opacity only. */
.wl__row::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 38.9085rem; height: 100%;
  border-radius: 1.8rem 0 0 1.8rem;
  box-shadow: inset 0 0 0 0.3rem var(--dark-light);
  opacity: 0;
  pointer-events: none;
  transition: opacity 100ms var(--ease-exit);
}
.wl__row:has(.wl__input:focus-visible)::before {
  opacity: 1;
  transition: opacity 160ms var(--ease-out);
}
.wl__input {
  flex: 0 0 38.9085rem;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 1.6rem;
  border: 0.2rem solid var(--dark-light);
  border-radius: 1.8rem 0 0 1.8rem;
  background: transparent;
  color: var(--dark-light);
  font: 600 1.4rem/normal "Inter", system-ui, sans-serif;
  text-align: center;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.wl__input::placeholder { color: var(--dark-lavender); opacity: 1; transition: opacity 120ms var(--ease-out); }
/* The example address disappears as soon as the field is clicked/focused. */
.wl__input:focus::placeholder { opacity: 0; }
/* Browsers without :has() keep a static focus indicator. */
@supports not selector(:has(*)) {
  .wl__input:focus-visible { box-shadow: inset 0 0 0 0.1rem var(--dark-light); }
}
.wl__input:disabled { opacity: 1; -webkit-text-fill-color: var(--dark-light); }

.wl__btn {
  flex: 1 1 auto;
  position: relative;
  height: 100%;
  margin: 0;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 0 1.8rem 1.8rem 0;
  background: var(--dark-light);
  color: var(--white);
  font: 600 1.4rem/normal "Inter", system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  /* Rest state = the exits: release 100ms, hover-out 140ms. */
  transition: transform 100ms var(--ease-out), background-color 140ms var(--ease-color);
  -webkit-tap-highlight-color: transparent;
}
.wl__label { display: inline-block; }
.wl__btn:active {
  transform: scale(0.98);
  transition: transform 120ms var(--ease-out), background-color 140ms var(--ease-color);
}
.wl__btn:focus-visible { outline: 0.2rem solid var(--dark-light); outline-offset: 0.3rem; }
@media (hover: hover) and (pointer: fine) {
  .wl__btn:hover {
    background: #2a2a2e;
    transition: transform 100ms var(--ease-out), background-color 200ms var(--ease-color);
  }
  .wl__btn:hover:active { transition: transform 120ms var(--ease-out), background-color 200ms var(--ease-color); }
}
.wl[data-state="sending"] .wl__btn { cursor: progress; }
.wl[data-state="success"] .wl__btn { cursor: default; transform: none; }

/* iOS Safari zooms the page when a focused input is under 16px: touch devices get 16px. */
@media (pointer: coarse) {
  .wl .wl__input { font-size: 16px; }
}

.wl__status {
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--dark-light);
  text-align: center;
}
.wl__status:empty { display: none; }

@media (max-width: 833px) {
  .wl__row {
    flex-direction: column;
    gap: 1.1rem;
    width: 26.1rem;
    height: auto;
  }
  .wl__input, .wl__btn {
    flex: 0 0 6.5rem;
    height: 6.5rem;
    border-radius: 2rem;
    font-size: 1.3rem;
  }
  .wl__input { border-width: 0.2309rem; }
  .wl__row::before {
    width: 100%; height: 6.5rem;
    border-radius: 2rem;
    box-shadow: inset 0 0 0 0.3309rem var(--dark-light);
  }
}

/* ---------- 1. Header / hero (235:1058, 247:5487) ---------- */

.hero {
  position: relative;
  z-index: 2; /* above the page while the opening sequence covers the screen */
  height: 71.1rem;
  color: var(--dark-light);
}
.hero > .st { height: 100%; }
/* The lavender card is its own layer: the opening sequence contracts it (scaleY) from full screen,
   while .hero__bg-st counter-scales so the glass inside is never stretched. */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ice-lavender);
  border-radius: 0 0 7rem 7rem;
  transform-origin: 50% 0;
}
.hero__bg-st { height: 100%; transform-origin: 50% 0; }

.hero__glass {
  left: 70.5rem; top: -9.9rem;
  width: 90rem; height: 90.9rem;
  overflow: hidden;
  pointer-events: none;
}
.hero__glass img {
  position: absolute;
  left: -26.44%; top: -11.5%;
  width: 164.22%; height: 122.66%;
  max-width: none;
}
.hero__logo { top: 2.8rem; width: 20rem; height: 4.4rem; }
.hero__logo img { width: 100%; height: 100%; }

.hero__title {
  top: 12.1rem;
  width: 94.2676rem;
  height: 34rem;
  padding-top: 2.5rem;
  font-weight: 600;
  font-size: 15.1237rem;
  line-height: 0.87;
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--dark-light);
}
.hero__form { top: 48.2rem; width: 64.9rem; }
/* FR title "L'ultime repère / de tes cryptos": its first line (97.5rem) is wider than the EN text box,
   so the FR box is widened on desktop. Same size, same centre, same forced break. */
@media (min-width: 834px) { html[lang="fr"] .hero__title { width: 100rem; } }
.hero__form .wl__status { position: absolute; top: 100%; left: 0; right: 0; margin-top: 1.4rem; }

@media (max-width: 833px) {
  .hero { height: 79.1rem; }
  .hero__bg { border-radius: 0 0 4.5609rem 4.5609rem; }
  .hero__glass { left: 11.4rem; top: -0.7rem; width: 89.3rem; height: 90.2rem; }
  .hero__logo { top: 5.8rem; width: 18.8rem; height: 4.1rem; }
  .hero__title { top: 14.5rem; width: 35.8rem; height: 37rem; padding-top: 1.75rem; font-size: 9.6rem; }
  .hero__form { top: 54.6rem; width: 26.1rem; }
}

/* ---------- 2. Mission (239:15, 247:5466) ---------- */

.mission { height: 86.7rem; }
.mission__title { top: 8.5rem; width: 73rem; }
.mission__lead {
  top: 23.4rem;
  width: 73rem;
  font-size: 3.6rem;
  line-height: 1.209;
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--grey);
}
.mcard { top: 40.2rem; width: 31.4rem; aspect-ratio: 314 / 384; container-type: inline-size; }
.mcard--1 { left: 12.8rem; }
.mcard--2 { left: 48.3rem; }
.mcard--3 { left: 83.8rem; }

@media (max-width: 833px) {
  .mission { height: 159rem; margin-top: 4rem; }
  .mission__title { top: 1.9rem; width: 29.2rem; font-size: 3.3881rem; --ox: 0.25rem; }
  .mission__lead { top: 20.2rem; width: 29.2rem; font-size: 2.3456rem; --ox: 0.25rem; }
  .mcard { left: 3.2rem; width: 32.5rem; }
  .mcard--1 { top: 34.9rem; }
  .mcard--2 { top: 76.2rem; }
  .mcard--3 { top: 117.5rem; left: 3.3rem; }
}

/* Mission card interior — 314 design px wide (1 px = 100cqw / 314) */
.mcard__bg {
  position: absolute;
  left: calc(1cqw / 3.14); top: calc(54cqw / 3.14);
  width: calc(313cqw / 3.14); height: calc(330cqw / 3.14);
  background: var(--dark-light);
  border: 1px solid var(--grey-light);
  border-radius: calc(38cqw / 3.14);
}
.mcard__illu {
  position: absolute;
  left: calc(60cqw / 3.14); top: calc(11cqw / 3.14);
  width: calc(194cqw / 3.14); height: calc(194cqw / 3.14);
  overflow: hidden;
}
.mcard__illu-box { position: absolute; display: flex; align-items: center; justify-content: center; }
.mcard__illu-box img { flex: none; object-fit: cover; max-width: none; }
.mcard--1 .mcard__illu-box { left: calc(1.99cqw / 3.14); top: calc(-16.61cqw / 3.14); width: calc(199.02cqw / 3.14); height: calc(238.228cqw / 3.14); }
.mcard--1 .mcard__illu-box img { width: calc(147cqw / 3.14); height: calc(205cqw / 3.14); transform: rotate(16.44deg); }
.mcard--2 .mcard__illu-box { left: calc(-41cqw / 3.14); top: calc(-40cqw / 3.14); width: calc(284.272cqw / 3.14); height: calc(284.272cqw / 3.14); }
.mcard--2 .mcard__illu-box img { width: calc(233.799cqw / 3.14); height: calc(233.799cqw / 3.14); transform: rotate(14.29deg); }
.mcard--3 .mcard__illu-box { left: calc(4cqw / 3.14); top: calc(-21cqw / 3.14); width: calc(188cqw / 3.14); height: calc(228cqw / 3.14); }
.mcard--3 .mcard__illu-box img { width: calc(188cqw / 3.14); height: calc(228cqw / 3.14); transform: scaleY(-1) rotate(180deg); }

.mcard__title {
  position: absolute;
  left: 0; right: 0; top: calc(228cqw / 3.14);
  font-weight: 600;
  font-size: calc(28cqw / 3.14);
  line-height: 1.209;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  color: var(--white);
}
.mcard__text {
  position: absolute;
  left: 0; right: 0; margin-inline: auto;
  top: calc(273cqw / 3.14);
  font-weight: 300;
  font-size: calc(20cqw / 3.14);
  line-height: 1.209;
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--grey);
}
.mcard--1 .mcard__text { width: calc(203cqw / 3.14); }
.mcard--2 .mcard__text { width: calc(229cqw / 3.14); }
.mcard--3 .mcard__text { width: calc(220cqw / 3.14); }

/* ---------- 3. Scene (239:55, 247:5462) ---------- */

.scene { height: 104.8rem; overflow: hidden; }
.scene__title { top: 4.5rem; width: 73rem; }
.scene__panel {
  left: 12.9rem; top: 44.1rem;
  width: 102.3rem; height: 60.7rem;
  border-radius: 7rem;
  background-image: linear-gradient(-56.085767987922054deg, #b7c1e5 1.6453%, #6c73ab 44.18%, #161626 98.867%);
}
.scene__phone { left: 35.1rem; top: 23.6rem; width: 60.5rem; height: 93.9rem; overflow: hidden; container-type: inline-size; }
.phone__frame { position: relative; width: 100%; height: 100%; }
/* Flat 390 x 844 screen mapped onto the mockup's screen by a planar homography, measured on the
   583 x 905 frame image (u = one frame-image pixel). perspective() + translate3d() + a unitless
   matrix3d keep the projection exact at every size. The frame image has the screen cut out
   (the Dynamic Island stays in the frame, above the screen). */
.phone__plane {
  --u: calc(100cqw / 583);
  position: absolute;
  left: 0; top: 0;
  width: calc(390 * var(--u));
  height: calc(844 * var(--u));
  transform-origin: 0 0;
  transform:
    perspective(calc(1000 * var(--u)))
    translate3d(calc(79.67 * var(--u)), calc(36.75 * var(--u)), 0)
    matrix3d(1.067895, 0.219902, -0.114841, 0,  0.029758, 1.053020, 0.158090, 0,  0, 0, 1, 0,  0, 0, 0, 1);
}
.phone__screen {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0;
  border-radius: calc(60 * var(--u));
  background: #000;
  box-shadow: 0 0 0 calc(3 * var(--u)) #000; /* continues the black bezel under the cut-out edge */
}

@media (max-width: 833px) {
  .scene { height: 63.2rem; }
  .scene__title { top: 6.7rem; width: 27.2rem; font-size: 3.3881rem; }
  .scene__panel {
    left: 3.2rem; top: 33.2rem; width: 32.5rem; height: 30rem;
    border-radius: 4.5609rem;
    background-image: linear-gradient(-66.6272169450528deg, #b7c1e5 1.6453%, #6c73ab 44.18%, #161626 98.867%);
  }
  .scene__phone { left: 7.1rem; top: 26.8rem; width: 24.7rem; height: 38.3rem; }
}

/* ---------- 4. Cartes (240:61, 247:5334) ---------- */

.cards { height: 300.6rem; }

.panel {
  background: var(--dark-light);
  border: 1px solid var(--grey-light);
  overflow: hidden;
}
.panel__title {
  position: absolute;
  font-weight: 600;
  line-height: 1.209;
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--ice-lavender);
}

/* Carte 1 — chart */
.gcard { left: 12.9rem; top: 5.8rem; width: 102.3rem; height: 60.7rem; border-radius: 7rem; }
.gcard .panel__title { top: 5.9rem; left: 0; right: 0; margin-inline: auto; width: 34.8rem; font-size: 2.8rem; --ox: -0.05rem; }
.gcard__chart { position: absolute; left: -1.3rem; top: 17.2rem; width: 104.3rem; height: 40.4rem; max-width: none; overflow: visible; }
.g-mark, .g-bar__dia { transform-box: fill-box; transform-origin: 50% 50%; }

/* Small cards — 480 design px wide (1 px = 100cqw / 480) */
.card {
  width: 48rem;
  aspect-ratio: 480 / 486;
  border-radius: 7rem;
  container-type: inline-size;
}
.card--streak  { left: 12.9rem; top: 71.8rem; }
.card--goal    { left: 67.2rem; top: 71.8rem; }
.card--disc    { left: 12.9rem; top: 125.7rem; }
.card--perf    { left: 67.2rem; top: 125.7rem; }
.card--crypt   { left: 12.9rem; top: 179.6rem; }
.card--notif   { left: 67.2rem; top: 179.6rem; }

.card .panel__title {
  top: calc(56cqw / 4.8);
  left: 0; right: 0; margin-inline: auto;
  width: calc(318cqw / 4.8);
  font-size: calc(28cqw / 4.8);
}

.k { position: absolute; }
.k > img, .k-fill { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.k-num {
  position: absolute;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  color: var(--ice-lavender);
}
.k-lbl {
  position: absolute;
  font-weight: 300;
  line-height: normal;
  white-space: nowrap;
  color: var(--grey);
}

/* Carte 2 — streak */
.streak { left: calc(151cqw / 4.8); top: calc(160cqw / 4.8); width: calc(176cqw / 4.8); height: calc(111.862cqw / 4.8); overflow: hidden; }
.streak__drop { position: absolute; width: 13.91%; }
.streak__drop--r1 { top: 15.92%; bottom: 54.3%; }
.streak__drop--r2 { top: 70.23%; bottom: -0.01%; }
.streak__drop img { width: 100%; height: 100%; }
/* Unlit flame (the design's AUG flame), shown under each lit one while it lights up. */
.streak__drop--on { background: url("/assets/svg/streak-drop-3.svg") center / 100% 100% no-repeat; }
.streak__drop--on img { transform-origin: 50% 85%; }
.c0 { left: 0; } .c1 { left: 28.7%; } .c2 { left: 57.39%; } .c3 { left: 86.09%; }
.streak .k-lbl { font-size: calc(9.266cqw / 4.8); }
.streak__lbl--r1 { top: -1.13%; }
.streak__lbl--r2 { top: 53.17%; }
.l0 { left: 0.94%; } .l1 { left: 30.34%; } .l2 { left: 58.47%; } .l3 { left: 87.74%; }
.streak-n { left: calc(113cqw / 4.8); top: calc(298cqw / 4.8); width: calc(252.109cqw / 4.8); height: calc(117cqw / 4.8); overflow: hidden; }
/* Counters are anchored on their designed centre (measured on the rendered design value), so any
   value shown while counting stays centred where the final one sits. */
.streak-n .k-num { left: 66.226%; translate: -50% 0; top: 15.22%; font-size: calc(61.229cqw / 4.8); }
.streak-n__flame { position: absolute; left: 25.25%; top: 12.94%; right: 50.61%; bottom: 16.26%; }
.streak-n__flame img { width: 100%; height: 100%; transform-origin: 50% 85%; }

/* Carte 3 — goal tracker */
.goal { left: calc(92cqw / 4.8); top: calc(142cqw / 4.8); width: calc(295cqw / 4.8); height: calc(275.099cqw / 4.8); overflow: hidden; }
.goal__part { position: absolute; }
.goal__part img { width: 100%; height: 100%; }
.goal__back  { inset: 0 12.34% 24.77% 12.34%; }
.goal__mid   { inset: 8.23% 7.7% 7.26% 7.7%; }
.goal__front { inset: 18.64% 0 0 0; }
.goal__track { inset: 48.26% 9.27% 45.43% 9.27%; }
.goal__fill  { inset: 48.26% 9.27% 45.43% 9.27%; overflow: hidden; border-radius: 99rem; }
.goal__bar   { position: absolute; left: 0; top: 0; width: 64.919%; height: 100%; } /* 156.019 / 240.326 */
.goal .k-num { left: 49.997%; translate: -50% 0; top: 58.96%; font-size: calc(69.77cqw / 4.8); }
/* Labels anchored on their designed centre so a translated label stays centred. */
.goal .k-lbl { left: 50.375%; translate: -50% 0; top: 30.78%; font-size: calc(21.226cqw / 4.8); }

/* Carte 5 — discipline */
.disc { left: calc(109cqw / 4.8); top: calc(157cqw / 4.8); width: calc(260cqw / 4.8); height: calc(259.723cqw / 4.8); overflow: hidden; }
.disc .k-num { left: 50.051%; translate: -50% 0; top: 30.85%; font-size: calc(68.21cqw / 4.8); }
.disc__orbit { position: absolute; inset: 0; transform-origin: 50.053% 50%; } /* ring centre 130.136, 129.862 */
.disc__knob { position: absolute; inset: 33.47% 87.55% 55.38% 1.31%; }
.disc__knob img { width: 100%; height: 100%; }

/* Carte 4 — performance */
.perf { left: calc(-1cqw / 4.8); top: calc(165cqw / 4.8); width: 100cqw; height: calc(253cqw / 4.8); overflow: hidden; }
.perf__grid { position: absolute; inset: 0.13% 0.37% 0.13% -1.67%; }
.perf__grid svg { position: absolute; inset: -0.2% -0.1%; width: 100.2%; height: 100.4%; overflow: visible; }
.perf__bars { position: absolute; inset: 0.02% 17.86% 0.19% 17.71%; }
.perf__bars svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.perf__bar { transform-box: fill-box; transform-origin: 50% 100%; }

/* Carte 7 — encrypted */
.crypt { left: calc(58cqw / 4.8); top: calc(159cqw / 4.8); width: calc(362.383cqw / 4.8); height: calc(234cqw / 4.8); overflow: hidden; }
.crypt .k-num { left: 49.567%; translate: -50% 0; top: 51.4%; font-size: calc(69.365cqw / 4.8); }
/* While digits scramble, each character sits in the exact cell of its final asterisk (one asterisk
   advance, 0.5203em): nothing shifts when a digit freezes into "*". */
.k-ch { display: inline-block; width: 0.5203em; text-align: center; font-variant-numeric: tabular-nums; }
.crypt .k-lbl { left: 50.396%; translate: -50% 0; top: 40.2%; font-size: calc(21.103cqw / 4.8); }

/* Carte 6 — no price alert */
.notif { left: calc(-10cqw / 4.8); top: calc(205cqw / 4.8); width: calc(324.726cqw / 4.8); height: calc(293cqw / 4.8); overflow: hidden; }
.notif__phone { position: absolute; inset: 6.14% 7.71% -12.39% -23.4%; }
.notif__badge { position: absolute; inset: 0 0 53.68% 58.21%; }
.notif__phone img, .notif__badge img { width: 100%; height: 100%; }
.notif__badge { transform-origin: 50% 50%; }
.notif .k-num { left: 50.09%; translate: -50% 0; top: 13.32%; font-size: calc(75.534cqw / 4.8); color: #292b2d; }

/* Carte 1 bis — coins ("Every goal leaves a mark.") */
.coins { left: 12.9rem; top: 233.5rem; width: 102.3rem; height: 60.7rem; border-radius: 7rem; }
.coins .panel__title { top: 7rem; left: 0; right: 0; margin-inline: auto; width: 34.8rem; font-size: 2.8rem; --ox: -0.05rem; }
.coins__text {
  position: absolute;
  top: 12.4rem; left: 0; right: 0; margin-inline: auto;
  width: 47.3rem;
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.209;
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--grey);
}
.coin { position: absolute; }
.coin img { width: 100%; height: 100%; object-fit: cover; }
.coin--1 { left: 8.5rem;    top: 26rem;     width: 23.3rem;     height: 23.5rem; }
.coin--2 { left: 17.943rem; top: 25.783rem; width: 24.0565rem;  height: 24.0564rem; }
.coin--3 { left: 27.926rem; top: 25.783rem; width: 24.0565rem;  height: 24.0564rem; }
.coin--4 { left: 38.631rem; top: 25.783rem; width: 24.0565rem;  height: 24.0564rem; }
.coin--5 { left: 48.855rem; top: 25.903rem; width: 23.6956rem;  height: 23.6956rem; }
.coin--6 { left: 58.478rem; top: 25.783rem; width: 24.0565rem;  height: 24.0564rem; }
.coin--7 { left: 67.259rem; top: 24.7rem;   width: 26.823rem;   height: 26.8229rem; }

@media (max-width: 833px) {
  .cards { height: 321.7rem; margin-top: 0.6rem; }
  .gcard { left: 3.2rem; top: 3.2rem; width: 32.5rem; height: 45.6rem; border-radius: 4.5609rem; border-width: 0.652px; }
  .gcard .panel__title { top: 3.535rem; width: 22.6744rem; font-size: 1.8244rem; --ox: 0.087rem; }
  .gcard__chart { left: -25.265rem; top: 12.835rem; width: 69.5217rem; height: 26.9095rem; }

  .card { left: 3.2rem; width: 32.5rem; border-radius: 4.7095rem; border-width: 0.673px; }
  .card--streak { top: 52.8rem; }
  .card--goal   { top: 89.5rem; }
  .card--perf   { top: 126.1rem; }
  .card--disc   { top: 162.8rem; }
  .card--notif  { top: 199.4rem; }
  .card--crypt  { top: 236.1rem; }

  .coins { left: 3.2rem; top: 272.8rem; width: 32.5rem; height: 45.6rem; border-radius: 4.5609rem; border-width: 0.652px; }
  .coins .panel__title { top: 3.535rem; width: 22.7rem; font-size: 1.8244rem; --ox: 0.1rem; }
  .coins__text { top: 7.135rem; width: 27.7rem; font-size: 1.6rem; }
  .coin--1 { left: calc(50% - 10.95rem + 0.5rem); top: 18.6rem; width: 21.9rem; height: 21.9rem; }
}

/* ---------- 5. Join CTA (243:317, 247:5321) ---------- */

.join { height: 87.5rem; }
.join__title { top: 4.5rem; width: 73rem; }
.join__box {
  left: 13.3rem; top: 26rem;
  width: 101.9rem; height: 51.1rem;
  border-radius: 7rem;
  background: var(--ice-lavender);
  color: var(--dark-light);
  overflow: hidden;
}
.join__heading {
  top: 5.8rem; width: 73rem;
  font-weight: 600;
  font-size: 5.2rem;
  line-height: 1.209;
  letter-spacing: -0.05em;
  text-align: center;
  --ox: -0.25rem;
}
.join__body {
  top: 13.9rem; width: 75.8rem;
  text-align: center;
  letter-spacing: -0.05em;
  --ox: 1.35rem;
}
.join__body-1 { font-weight: 400; font-size: 2.4rem; line-height: 4.9rem; letter-spacing: -0.05em; }
.join__body-2 { font-weight: 600; font-size: 3.6rem; line-height: 4.9rem; letter-spacing: -0.05em; }
.join__form { top: 32rem; left: 19.9rem; }
.join__meta {
  top: 38.2rem; left: 38.2rem;
  height: 4.9rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  line-height: 4.9rem;
  white-space: nowrap;
  /* Counter and status message share one slot: crossfade, never a hard swap. */
  transition: opacity 240ms var(--ease-out) 60ms, visibility 0s var(--ease-out) 0s;
}
.join__count { width: 6rem; text-align: right; font-weight: 700; font-size: 3.6rem; letter-spacing: -0.18rem; }
.join__spots { width: 21.1rem; font-weight: 400; font-size: 2.4rem; letter-spacing: -0.12rem; }
/* Status messages take the counter's slot so nothing overlaps */
.join__form .wl__status {
  position: absolute;
  top: 6.2rem; left: -19.9rem;
  width: 101.9rem;
  line-height: 4.9rem;
  font-size: 1.8rem;
  translate: 1.35rem;
}
.join__box:has(.wl__status:not(:empty)) .join__meta {
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms var(--ease-exit), visibility 0s var(--ease-exit) 120ms;
}

@media (max-width: 833px) {
  .join { height: 75.5rem; }
  .join__title { top: 2.932rem; width: 39rem; font-size: 3.3881rem; }
  .join__box { left: 3.2rem; top: 16.7rem; width: 32.5rem; height: 54.8rem; border-radius: 4.5609rem; }
  .join__heading { top: 3.8rem; width: 24.8rem; font-size: 3.3881rem; --ox: -0.75rem; }
  .join__body { top: 14.4rem; width: 26.4rem; --ox: 0.05rem; }
  .join__body-1 { font-size: 1.5638rem; line-height: 2.3rem; }
  .join__body-2 { font-size: 2.3456rem; line-height: 3.1927rem; }
  .join__form { top: 31.6rem; left: 3.2rem; }
  .join__meta { top: 47.38rem; left: 7.1rem; height: 3.1927rem; line-height: 3.1927rem; gap: 0.717rem; }
  .join__count { width: 3.9094rem; font-size: 2.3456rem; letter-spacing: -0.11728rem; }
  .join__spots { width: 13.748rem; font-size: 1.5638rem; letter-spacing: -0.07819rem; }
  .join__form .wl__status {
    top: 15rem; left: -3.2rem; width: 32.5rem;
    padding-inline: 2rem;
    line-height: 1.35; font-size: 1.4rem;
    translate: none;
  }
}

/* ---------- 6. Footer (244:748, 247:5302) ---------- */

.foot { height: 15rem; }
.foot__badge { left: 17.5rem; top: 3.5rem; width: 14.1rem; height: 4.7rem; }
.foot__badge img, .foot__logo img { width: 100%; height: 100%; object-fit: cover; }
.foot__logo { top: 3.8rem; width: 20rem; height: 4.4rem; }
.foot__social { left: 94.6rem; top: 5.4rem; display: flex; align-items: center; gap: 1.7rem; margin: 0; padding: 0; list-style: none; }
.foot__social li, .foot__social img, .foot__social a { width: 2.4rem; height: 2.4rem; }
.foot__social a {
  display: block;
  border-radius: 0.4rem;
  transition: opacity 160ms var(--ease-color);
  -webkit-tap-highlight-color: transparent;
}
.foot__social a:focus-visible { outline: 0.2rem solid var(--ice-lavender); outline-offset: 0.4rem; }
@media (hover: hover) and (pointer: fine) {
  .foot__social a:hover { opacity: 0.7; transition: opacity 200ms var(--ease-color); }
}
.foot__copy {
  top: 11.5rem; width: 34.2rem;
  font-weight: 300; font-size: 1.4rem; line-height: 1.209; letter-spacing: -0.05em;
  text-align: center; color: var(--grey);
  --ox: -0.2rem;
}

@media (max-width: 833px) {
  .foot { height: 24.4rem; }
  .foot__logo { top: 1.2rem; width: 20.4rem; height: 4.4rem; }
  .foot__badge { left: 0; right: 0; margin-inline: auto; top: 8.4rem; width: 11.4rem; height: 3.8rem; }
  .foot__social { left: 0; right: 0; margin-inline: auto; width: max-content; top: 15.7rem; gap: 2.4151rem; }
  .foot__social li, .foot__social img, .foot__social a { width: 3.2822rem; height: 3.2822rem; }
  .foot__copy { top: 21.4rem; width: 22.2834rem; font-size: 0.9122rem; --ox: 0rem; }
}

/* Copyright and legal links on one line, separated by "|". */
.foot__copy { width: max-content; white-space: nowrap; }
.foot__sep { margin-inline: 0.5em; }
.foot__copy a {
  color: inherit; text-decoration: none;
  border-radius: 0.2rem;
  transition: color 160ms var(--ease-color);
  -webkit-tap-highlight-color: transparent;
}
.foot__copy a:focus-visible { outline: 0.2rem solid var(--ice-lavender); outline-offset: 0.3rem; }
@media (hover: hover) and (pointer: fine) {
  .foot__copy a:hover { color: var(--white); transition: color 200ms var(--ease-color); }
}
@media (max-width: 833px) {
  /* Small line: the links get a taller hit area without changing the line. */
  .foot__copy a { display: inline-block; padding-block: 0.8rem; margin-block: -0.8rem; }
}

/* Language switch: top right corner of the page, outside the content column, above the hero.
   The active language is plain text at full opacity, the other one is a link. */
.lang-switch {
  position: absolute; z-index: 3;
  top: 4.25rem; right: 3.2rem;
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 500; font-size: 1.3rem; line-height: 1.6rem; letter-spacing: 0.02em;
  color: var(--dark-light);
}
.lang-switch a {
  color: inherit; text-decoration: none; opacity: 0.5;
  padding: 0.6rem 0.2rem; margin: -0.6rem -0.2rem;
  border-radius: 0.3rem;
  transition: opacity 160ms var(--ease-color);
  -webkit-tap-highlight-color: transparent;
}
.lang-switch__sep { opacity: 0.35; }
.lang-switch a:focus-visible { outline: 0.2rem solid var(--dark-light); outline-offset: 0.2rem; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .lang-switch a:hover { opacity: 1; transition: opacity 200ms var(--ease-color); }
}
@media (max-width: 833px) {
  .lang-switch { top: 1.8rem; right: 1.8rem; font-size: 1.2rem; }
}
/* Hidden during the opening sequence; main.js fades it in at the end with the form. */
html.intro .lang-switch { opacity: 0; }

/* ---------- /auth/confirme ---------- */

.confirm { height: 71.1rem; }
.confirm__title { top: 30rem; width: 94rem; font-weight: 600; font-size: 9.6rem; line-height: 0.95; letter-spacing: -0.05em; text-align: center; }
.confirm__text { top: 44rem; width: 73rem; font-weight: 400; font-size: 3.6rem; line-height: 1.209; letter-spacing: -0.05em; text-align: center; color: var(--dark-light); }
.confirm-pad { height: 10.4rem; }
@media (max-width: 833px) {
  .confirm { height: 79.1rem; }
  .confirm__title { top: 22rem; width: 35.8rem; font-size: 6rem; }
  .confirm__text { top: 40rem; width: 30rem; font-size: 2.3456rem; }
  .confirm-pad { height: 4rem; }
}

/* ---------- Legal pages (/confidentialite, /privacy, /conditions, /terms) ---------- */

.doc-head { height: 44rem; }
.doc-head .hero__logo { display: block; }
.doc-head__text { top: 17rem; width: 94rem; text-align: center; color: var(--dark-light); }
.doc-head__title { font-weight: 600; font-size: 7.6rem; line-height: 0.98; letter-spacing: -0.05em; }
.doc-head__date { margin-top: 2.4rem; font-weight: 400; font-size: 2rem; letter-spacing: -0.03em; color: var(--dark-lavender); }

.doc { width: 73rem; padding-top: 8.4rem; }
.doc h2 {
  margin: 5.6rem 0 1.6rem;
  font-weight: 600; font-size: 2.8rem; line-height: 1.209; letter-spacing: -0.04em;
  color: var(--ice-lavender);
}
.doc section:first-child h2 { margin-top: 0; }
.doc p { margin: 0 0 1.6rem; font-weight: 300; font-size: 2rem; line-height: 1.6; letter-spacing: -0.01em; color: #b4b4b4; }
.doc a { color: var(--ice-lavender); text-underline-offset: 0.3em; }
.doc a:focus-visible { outline: 0.2rem solid var(--ice-lavender); outline-offset: 0.2rem; border-radius: 0.2rem; }

@media (max-width: 833px) {
  .doc-head { height: 42rem; }
  .doc-head__text { top: 15rem; width: 33.6rem; }
  .doc-head__title { font-size: 4.8rem; }
  .doc-head__date { margin-top: 1.8rem; font-size: 1.6rem; }
  .doc { width: 33.6rem; padding-top: 5.6rem; }
  .doc h2 { margin-top: 4.4rem; font-size: 2.2rem; }
  .doc p { font-size: 1.6rem; line-height: 1.55; }
}

/* ---------- 404 (bilingual) ---------- */

.nf { height: 71.1rem; }
.nf .hero__logo { display: block; }
.nf__body { top: 19rem; width: 104rem; display: flex; justify-content: center; gap: 8rem; color: var(--dark-light); }
.nf__col { width: 44rem; text-align: center; }
.nf__title { font-weight: 600; font-size: 6.4rem; line-height: 1; letter-spacing: -0.05em; }
.nf__text { margin-top: 2rem; font-weight: 400; font-size: 2.2rem; line-height: 1.3; letter-spacing: -0.03em; }
.nf__btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 3.6rem; height: 5.6rem; padding: 0 3.2rem;
  border-radius: 1.8rem; background: var(--dark-light); color: var(--white);
  font-weight: 600; font-size: 1.4rem; text-decoration: none; white-space: nowrap;
  transition: transform 100ms var(--ease-out), background-color 140ms var(--ease-color);
  -webkit-tap-highlight-color: transparent;
}
.nf__btn:active { transform: scale(0.98); transition: transform 120ms var(--ease-out); }
.nf__btn:focus-visible { outline: 0.2rem solid var(--dark-light); outline-offset: 0.3rem; }
@media (hover: hover) and (pointer: fine) {
  .nf__btn:hover { background: #2a2a2e; transition: background-color 200ms var(--ease-color); }
}
@media (max-width: 833px) {
  .nf { height: 79.1rem; }
  .nf__body { top: 16rem; width: 33rem; flex-direction: column; gap: 5.6rem; }
  .nf__col { width: auto; }
  .nf__title { font-size: 4.8rem; }
  .nf__text { margin-top: 1.4rem; font-size: 1.8rem; }
  .nf__btn { margin-top: 2.4rem; height: 6.5rem; padding: 0 2.8rem; border-radius: 2rem; font-size: 1.3rem; }
}

/* Simple entrance fade for the legal pages and the 404 (CSS only: nothing is ever left hidden). */
@keyframes page-in { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .doc-head__text, .doc, .nf__body { animation: page-in 1100ms cubic-bezier(0.33, 1, 0.68, 1) 120ms both; }
}

/* ---------- Motion ----------
   Hidden start states only exist when JS has confirmed motion is allowed (html.motion, set by
   motion-gate.js before first paint). Without JS, or with prefers-reduced-motion, everything is
   in its designed final state at once. Only transform and opacity animate (plus SVG stroke
   offsets for the drawn lines). Timelines and curves live in main.js. */

/* Opening sequence — first paint: full-screen lavender, logo centred (html.intro).
   main.js takes over with a single timeline and removes the class. */
html.intro .hero__bg { transform: scaleY(var(--intro-s, 1)); }
html.intro .hero__bg-st { transform: scaleY(calc(1 / var(--intro-s, 1))); }
html.intro .hero__logo { transform: translateY(var(--intro-logo-y, 0px)) scale(1.3); opacity: 0; }
html.intro .hero__title,
html.intro .hero__form,
html.intro .hero__glass { opacity: 0; }

/* Scroll reveals: hidden until main.js plays them, once. */
html.motion [data-reveal]:not(.is-in),
html.motion .scene__phone:not(.is-in) { opacity: 0; }

/* Line reveal: each real line sits in its own mask (built by main.js, removed afterwards). */
/* Each mask is padded by --lp above and below so ascenders/descenders are not cut, and pulled back
   with margins so every line sits exactly where the unsplit text puts it. Adjacent vertical margins
   collapse (two -lp margins would merge into one), so the whole -2lp goes on the top margin of
   each following line, -lp on the first top and the last bottom: line i starts at i x line-height. */
.ln { --lp: 0.14em; display: block; overflow: hidden; padding-block: var(--lp); margin: calc(-2 * var(--lp)) 0 0; }
.ln:first-child { margin-top: calc(-1 * var(--lp)); }
.ln:last-child { margin-bottom: calc(-1 * var(--lp)); }
.ln__i { display: block; white-space: nowrap; }
/* Keep those margins inside the text block (two consecutive paragraphs must not merge them). */
[data-lines], [data-reveal="lines"] { display: flow-root; }
.hero__title .ln { --lp: 0.24em; }

/* Streak: the lit flames wait unlit until main.js lights them one by one. */
html.motion .card--streak .streak__drop--on:not(.is-lit) img,
html.motion .card--streak .streak-n__flame:not(.is-lit) img { opacity: 0; }

/* Idle float of the glass objects: slow, ease-in-out, alternate. The three mission illustrations
   each have their own amplitude, period and phase (periods share no simple ratio: never in sync). */
@keyframes float { from { translate: 0 calc(-1 * var(--amp, 0.5rem)); } to { translate: 0 var(--amp, 0.5rem); } }
html.motion .mcard__illu { --amp: 0.8rem; animation: float 6.1s ease-in-out -1s infinite alternate both; }
html.motion .mcard--2 .mcard__illu { --amp: 0.7rem; animation-duration: 7.3s; animation-delay: -3.4s; }
html.motion .mcard--3 .mcard__illu { --amp: 0.9rem; animation-duration: 5.3s; animation-delay: -4.7s; }
html.motion .hero__glass img { animation: float 7s ease-in-out infinite alternate both; }

/* Chart scrub (fine pointers only, enabled by main.js once the chart has played). */
.gcard.is-scrub .gcard__chart { cursor: ew-resize; }

@media (prefers-reduced-motion: reduce) {
  html.motion [data-reveal],
  html.motion .scene__phone { opacity: 1; }
  html.motion .mcard__illu,
  html.motion .hero__glass img { animation: none; }
  html.motion .card--streak .streak__drop--on img,
  html.motion .card--streak .streak-n__flame img { opacity: 1; }
  .wl__input::placeholder { transition: none; }
  .foot__social a, .foot__social a:hover { transition: none; }
  .wl__btn,
  .wl__btn:active,
  .wl__btn:hover,
  .wl__btn:hover:active { transition: background-color 200ms var(--ease-color); }
  .wl__btn:active { transform: none; }
  /* Separate rules: one :has() in a selector list would void the whole list in older browsers. */
  .wl__row::before { transition: none; }
  .wl__row:has(.wl__input:focus-visible)::before { transition: none; }
  .join__meta { transition: none; }
  .join__box:has(.wl__status:not(:empty)) .join__meta { transition: none; }
}

@media print {
  html.motion [data-reveal], html.motion .scene__phone { opacity: 1 !important; transform: none !important; }
}
