/* Budger — site vitrine (version démo). Aucune dépendance externe, aucun témoin, aucun suivi. */

@font-face {
  font-family: 'Inter var';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --lime: #b8ff36;
  --lime-soft: #e9ffc4;
  --ink: #0a0a0a;
  --black: #000000;
  --ink-2: #1c1c1e;
  --ink-3: #2c2c2e;
  --paper: #ffffff;
  --mist: #f3f5ef;
  --mist-2: #e8ece2;
  --muted: #5b6157;
  --muted-on-ink: #a1a1a6;
  --line: rgba(16, 19, 13, 0.08);
  --line-on-ink: rgba(255, 255, 255, 0.1);
  --radius-l: 36px;
  --radius-m: 24px;
  --radius-s: 16px;
  --shadow-soft: 0 1px 2px rgba(16, 19, 13, 0.04), 0 12px 40px -12px rgba(16, 19, 13, 0.18);
  --shadow-float: 0 2px 6px rgba(16, 19, 13, 0.06), 0 30px 60px -24px rgba(16, 19, 13, 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter var', 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 10px;
}

.on-ink :focus-visible {
  outline-color: var(--lime);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---------- Bandeau démo ---------- */

.demo-ribbon {
  background: var(--black);
  color: #e8ecdf;
  font-size: 13.5px;
  text-align: center;
  padding: 9px var(--gutter);
  letter-spacing: 0.01em;
}

.demo-ribbon strong {
  color: var(--lime);
  font-weight: 650;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--lime);
  display: grid;
  place-items: center;
  flex: none;
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-3);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a.btn {
  color: #fff;
  opacity: 1;
}

/* ---------- Boutons ---------- */

.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.2s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(16, 19, 13, 0.6);
}

.btn-dark:hover {
  background: var(--ink-3);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 12px 30px -14px rgba(146, 214, 20, 0.9);
}

.btn-lime:hover {
  background: #c6ff5a;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(16, 19, 13, 0.16);
}

.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px rgba(16, 19, 13, 0.4);
}

.on-ink .btn-ghost {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25);
}

.btn-sm {
  --h: 38px;
  padding: 0 16px;
  font-size: 14.5px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Typographie ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.on-ink .eyebrow {
  color: var(--muted-on-ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), 0 6px 18px -10px rgba(16, 19, 13, 0.25);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(184, 255, 54, 0.3);
}

.display {
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.h2 {
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.lead {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.on-ink .lead {
  color: var(--muted-on-ink);
}

.mark {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}

.mark::after {
  content: '';
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.06em;
  height: 0.34em;
  background: var(--lime);
  border-radius: 0.12em;
  z-index: -1;
  transform-origin: left center;
  transform: scaleX(0);
  animation: draw 1.1s 0.5s var(--ease-out) forwards;
}

@keyframes draw {
  to {
    transform: scaleX(1);
  }
}

.lime-text {
  color: var(--lime);
}

.section {
  padding: clamp(84px, 12vw, 150px) 0;
  position: relative;
}

.section-head {
  max-width: 760px;
  display: grid;
  gap: 18px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-items: center;
}

.on-ink {
  background: var(--black);
  color: #fff;
}

.on-mist {
  background: var(--mist);
}

/* ---------- Apparition au défilement ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Les animations continues s'arrêtent hors de l'écran (fluidité, batterie). */
.paused,
.paused * {
  animation-play-state: paused !important;
}

/* ---------- Accueil (héros) ---------- */

.hero {
  background: radial-gradient(1200px 600px at 75% 30%, #ffffff 0%, rgba(255, 255, 255, 0) 60%), var(--mist);
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-copy {
  display: grid;
  gap: 26px;
  justify-items: start;
}

.hero-copy .lead {
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust svg {
  width: 18px;
  height: 18px;
  color: var(--ink);
}

.hero-visual {
  position: relative;
  height: clamp(560px, 62vw, 700px);
}

.glow {
  position: absolute;
  inset: 12% 8% 18% 14%;
  background: radial-gradient(closest-side, rgba(184, 255, 54, 0.75), rgba(184, 255, 54, 0) 72%);
  filter: blur(40px);
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    transform: scale(1.08);
    opacity: 0.8;
  }
}

/* Téléphone */

.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  aspect-ratio: 393 / 852;
  border-radius: calc(var(--w) * 0.17);
  background: linear-gradient(145deg, #3a3a3c, #0a0a0a 40%, #1c1c1e);
  padding: calc(var(--w) * 0.032);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), 0 2px 4px rgba(16, 19, 13, 0.1), 0 50px 90px -40px rgba(16, 19, 13, 0.6);
  flex: none;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--w) * 0.14);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.phone-screen::before {
  /* île dynamique */
  content: '';
  position: absolute;
  top: calc(var(--w) * 0.03);
  left: 50%;
  width: calc(var(--w) * 0.3);
  height: calc(var(--w) * 0.085);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 3;
}

.statusbar {
  flex: none;
  height: calc(var(--w) * 0.135);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(var(--w) * 0.085) 0 calc(var(--w) * 0.1);
  font-size: calc(var(--w) * 0.046);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: #fff;
}

.statusbar .icons {
  display: flex;
  gap: calc(var(--w) * 0.016);
  align-items: center;
}

.statusbar svg {
  height: calc(var(--w) * 0.038);
  width: auto;
}

.phone-screen img.shot {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
}

.hero .phone {
  --w: clamp(250px, 26vw, 312px);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-18%, -50%) rotate(-2deg);
  z-index: 2;
  animation: phoneIn 1.2s 0.15s var(--ease-out) both;
}

@keyframes phoneIn {
  from {
    opacity: 0;
    transform: translate(-18%, -42%) rotate(-6deg);
  }
}

/* Poche + pièces qui tombent */

.pouch-scene {
  position: absolute;
  left: -4%;
  bottom: 2%;
  width: clamp(200px, 20vw, 270px);
  aspect-ratio: 1;
  z-index: 3;
  animation: pouchIn 1.2s 0.35s var(--ease-out) both;
}

@keyframes pouchIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
  }
}

.pouch-float {
  position: absolute;
  inset: 0;
  animation: float 6s ease-in-out infinite;
}

.pouch-float img.pouch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 30px rgba(16, 19, 13, 0.18));
}

/* Couloir des pièces : rogné juste au bord de la poche, les pièces « entrent » dedans. */
.coin-lane {
  position: absolute;
  left: 24%;
  right: 30%;
  bottom: 70%;
  height: 110%;
  overflow: hidden;
  pointer-events: none;
}

.coin {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44%;
  aspect-ratio: 1;
  margin-left: -22%;
  opacity: 0;
  animation: drop 4.5s cubic-bezier(0.55, 0, 0.75, 0.25) infinite;
  animation-delay: var(--delay, 0s);
}

.coin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(16, 19, 13, 0.15));
}

@keyframes drop {
  0% {
    opacity: 0;
    transform: translate(var(--x, 0), -260%) rotate(-30deg);
  }
  12% {
    opacity: 1;
  }
  62% {
    opacity: 1;
    transform: translate(0, 20%) rotate(12deg);
  }
  63%,
  100% {
    opacity: 0;
    transform: translate(0, 120%) rotate(12deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(-1.5deg);
  }
}

/* Cartes flottantes */

.chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), var(--shadow-float);
  font-size: 13.5px;
  line-height: 1.25;
  white-space: nowrap;
  animation: float 7s ease-in-out infinite, chipIn 1s var(--ease-out) both;
}

.chip .ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--lime);
}

.chip .ico.dark {
  background: var(--ink);
  color: var(--lime);
}

.chip .ico svg {
  width: 20px;
  height: 20px;
}

.chip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.chip b {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

@keyframes chipIn {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}

.chip-spend {
  right: -6%;
  top: 7%;
  animation-delay: -1s, 0.6s;
}

.chip-bill {
  right: -3%;
  bottom: 12%;
  animation-delay: -3s, 0.85s;
}

.chip-keep {
  left: -2%;
  top: 38%;
  animation-delay: -5s, 1.05s;
}

/* « Facture » qui passe de « En route » à « Payée » */
.swap {
  display: grid;
}

.swap > * {
  grid-area: 1 / 1;
  animation: swapA 6s infinite;
}

.swap > :last-child {
  animation-name: swapB;
}

@keyframes swapA {
  0%,
  42% {
    opacity: 1;
    transform: none;
  }
  50%,
  92% {
    opacity: 0;
    transform: translateY(-6px);
  }
  100% {
    opacity: 1;
  }
}

@keyframes swapB {
  0%,
  42% {
    opacity: 0;
    transform: translateY(6px);
  }
  50%,
  92% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

.swap-ico > * {
  grid-area: 1 / 1;
}

/* ---------- Le chiffre qui compte ---------- */

.equation {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.eq-row {
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr minmax(120px, 170px);
  align-items: center;
  gap: 20px;
}

.eq-label {
  font-size: 16px;
  color: var(--muted-on-ink);
}

.eq-label b {
  display: block;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eq-bar {
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.eq-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 16px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.in .eq-bar i {
  transform: scaleX(1);
}

.eq-bar .all {
  background: linear-gradient(90deg, #3a3a3c, #48484a);
}

.eq-bar .kept {
  background: repeating-linear-gradient(-45deg, #2c2c2e 0 10px, #3a3a3c 10px 20px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}

.eq-bar .spend {
  background: var(--lime);
}

.eq-num {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.eq-row.result .eq-num {
  color: var(--lime);
}

.eq-sep {
  height: 1px;
  background: var(--line-on-ink);
  margin: 8px 0;
}

.eq-note {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 720px;
  color: var(--muted-on-ink);
  font-size: 16px;
}

.eq-note .tag {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}

/* ---------- Comment ça marche ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--paper);
  border-radius: var(--radius-l);
  padding: 30px 30px 34px;
  display: grid;
  gap: 14px;
  align-content: start;
  box-shadow: inset 0 0 0 1px var(--line);
  position: relative;
  overflow: hidden;
}

.step .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  font-weight: 750;
  font-size: 15px;
}

.step .art {
  height: 230px;
  margin: -6px -10px 6px;
  display: grid;
  place-items: center;
}

.step .art img {
  height: 230px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  animation: float 6.5s ease-in-out infinite;
  animation-delay: var(--fd, 0s);
  filter: drop-shadow(0 22px 22px rgba(16, 19, 13, 0.14));
}

.step p {
  color: var(--muted);
}

/* ---------- Fonctionnalités (bento) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.tile {
  position: relative;
  border-radius: var(--radius-l);
  background: var(--mist);
  padding: clamp(26px, 3vw, 38px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
}

.tile p {
  color: var(--muted);
  max-width: 440px;
}

.tile.dark {
  background: var(--black);
  color: #fff;
}

.tile.dark p {
  color: var(--muted-on-ink);
}

.tile.lime {
  background: var(--lime);
}

.tile.lime p {
  color: #2c3a12;
}

.span-4 {
  grid-column: span 4;
}

.span-3 {
  grid-column: span 3;
}

.span-2 {
  grid-column: span 2;
}

.tile .art-3d {
  width: min(42%, 300px);
  flex: none;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 26px 26px rgba(16, 19, 13, 0.18));
}

.tile .art-3d.wide {
  width: min(78%, 420px);
  margin: 6px auto 0;
}

.stage.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.stage.split .checks {
  flex: 1;
}

.tile .stage {
  margin-top: auto;
  position: relative;
}

/* Paiement de facture : mini parcours animé */

.paycard {
  width: min(100%, 360px);
  background: var(--paper);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
}

.paycard .row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.paycard .logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--mist);
  display: grid;
  place-items: center;
  flex: none;
}

.paycard .logo svg {
  width: 22px;
  height: 22px;
}

.paycard .who {
  flex: 1;
  font-weight: 650;
  font-size: 15.5px;
  line-height: 1.25;
}

.paycard .who small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
}

.paycard .amt {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.progress {
  height: 8px;
  border-radius: 99px;
  background: var(--mist-2);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 99px;
  background: var(--ink);
  transform-origin: left;
  animation: pay 6s var(--ease-out) infinite;
}

@keyframes pay {
  0% {
    transform: scaleX(0.05);
  }
  42% {
    transform: scaleX(0.62);
  }
  50%,
  92% {
    transform: scaleX(1);
    background: #7bc300;
  }
  100% {
    transform: scaleX(0.05);
  }
}

.status {
  font-size: 13.5px;
  font-weight: 650;
}

.status .ok {
  color: #3d7a00;
}

/* Plan : anneau animé */

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.donut {
  width: 190px;
  height: 190px;
  flex: none;
  position: relative;
}

.donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut circle {
  fill: none;
  stroke-width: 22;
  stroke-linecap: butt;
}

.donut .seg {
  stroke-dasharray: 0 999;
  transition: stroke-dasharray 1.6s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.in .donut .seg {
  stroke-dasharray: var(--len) 999;
}

.donut .center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.donut .center b {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.donut .center small {
  font-size: 12px;
  color: var(--muted-on-ink);
}

.legend {
  display: grid;
  gap: 10px;
  font-size: 15px;
  min-width: 180px;
}

.legend div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}

.legend span {
  flex: 1;
}

.legend b {
  font-variant-numeric: tabular-nums;
}

/* Dépenses : barres */

.bars {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 96px 1fr 62px;
  gap: 12px;
  align-items: center;
  font-size: 14.5px;
}

.bar-row .track {
  height: 12px;
  border-radius: 99px;
  background: rgba(16, 19, 13, 0.08);
  overflow: hidden;
}

.bar-row .track i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 99px;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.3s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.in .bar-row .track i {
  transform: scaleX(1);
}

.bar-row b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Aide : bulles */

.chat {
  display: grid;
  gap: 10px;
  max-width: 380px;
}

.bubble {
  padding: 12px 16px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.in .bubble {
  opacity: 1;
  transform: none;
}

.bubble.me {
  justify-self: end;
  background: var(--lime);
  color: var(--ink);
  border-bottom-right-radius: 6px;
}

.bubble.bot {
  justify-self: start;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-bottom-left-radius: 6px;
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  justify-self: start;
}

.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1d1d6;
  animation: blink 1.2s infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}

.fineprint {
  font-size: 13px;
  color: var(--muted);
}

.tile.dark .fineprint {
  color: var(--muted-on-ink);
}

.checks {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
}

.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checks svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}

/* ---------- Écrans ---------- */

.screens {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 40px;
  margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none;
}

.screens::-webkit-scrollbar {
  display: none;
}

.screen-item {
  scroll-snap-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
  flex: none;
}

.screen-item .phone {
  --w: clamp(230px, 22vw, 270px);
  transition: transform 0.6s var(--ease-out);
}

.screen-item:hover .phone {
  transform: translateY(-8px);
}

.screen-item figcaption {
  text-align: center;
  max-width: 250px;
  font-size: 15px;
  color: var(--muted);
}

.screen-item figcaption b {
  display: block;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.screens-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.round-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--mist);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.round-btn:hover {
  background: var(--mist-2);
}

.round-btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- Démo ---------- */

.demo-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}

.demo-steps {
  display: grid;
  gap: 16px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
  counter-reset: s;
}

.demo-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 17px;
}

.demo-steps li::before {
  counter-increment: s;
  content: counter(s);
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--ink);
  font-weight: 750;
  font-size: 14px;
}

.demo-grid .hero-cta {
  justify-content: flex-start;
}

.demo-steps code {
  font-family: inherit;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.08em;
}

.demo-phone {
  --w: 340px;
}

.demo-phone .phone-screen {
  background: #fff;
}

.demo-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 393px;
  height: 852px;
  border: 0;
  transform-origin: top left;
}

.demo-cover {
  position: absolute;
  inset: 0;
  color: var(--ink);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
  padding: 30px;
  background: radial-gradient(500px 360px at 50% 40%, #f7ffe8, #ffffff 70%);
  z-index: 2;
}

.demo-cover .brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
}

.demo-cover .brand-mark svg {
  width: 44px;
  height: 44px;
}

.demo-cover p {
  color: var(--muted);
  font-size: 15px;
  max-width: 240px;
}

/* ---------- Confiance ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.trust-card {
  border-radius: var(--radius-m);
  padding: 30px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  gap: 10px;
  align-content: start;
}

.trust-card .ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--lime);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.trust-card .ico svg {
  width: 24px;
  height: 24px;
}

.trust-card p {
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: 22px;
  background: var(--mist);
  padding: 4px 26px;
  transition: background 0.2s;
}

.faq details[open] {
  background: #eef1e8;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.35s var(--ease-out);
}

.faq details[open] .plus {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 0 22px;
  color: var(--muted);
  max-width: 720px;
}

/* ---------- Appel final ---------- */

.final {
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--lime);
  padding: clamp(44px, 7vw, 90px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  position: relative;
}

.final p {
  color: #2c3a12;
  max-width: 520px;
  margin-top: 16px;
}

.final .hero-cta {
  margin-top: 30px;
}

.final img {
  width: 100%;
  max-width: 380px;
  justify-self: center;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 30px rgba(16, 19, 13, 0.25));
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(16, 19, 13, 0.08);
  font-weight: 650;
}

/* ---------- Pied de page ---------- */

.footer {
  padding: 56px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer nav a {
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--ink);
}

.footer .legal {
  padding-top: 24px;
  display: grid;
  gap: 8px;
  max-width: 860px;
  font-size: 13px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    justify-items: center;
    text-align: center;
  }

  .hero-cta,
  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    height: 600px;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .bento .span-4,
  .bento .span-3,
  .bento .span-2 {
    grid-column: span 6;
  }

  .demo-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .demo-grid > div:first-child {
    width: 100%;
  }

  .final {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .final .hero-cta {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav-links .hide-sm {
    display: none;
  }

  .nav-links {
    gap: 16px;
  }

  .hero-visual {
    height: 540px;
  }

  .hero .phone {
    --w: 236px;
    transform: translate(-42%, -50%) rotate(-2deg);
  }

  .pouch-scene {
    width: 190px;
    left: -4%;
    bottom: 2%;
  }

  .chip {
    padding: 9px 12px 9px 9px;
    border-radius: 16px;
    font-size: 12px;
  }

  .chip .ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .chip b {
    font-size: 14px;
  }

  .chip-spend {
    right: -2%;
    top: 10%;
  }

  .chip-keep {
    left: -2%;
    top: 2%;
  }

  .chip-bill {
    right: -2%;
    bottom: 10%;
  }

  .eq-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'label num' 'bar bar';
    gap: 10px 14px;
  }

  .eq-label {
    grid-area: label;
  }

  .eq-bar {
    grid-area: bar;
    height: 40px;
  }

  .eq-num {
    grid-area: num;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 0;
  }

  .stage.split {
    flex-direction: column;
    align-items: stretch;
  }

  .tile .art-3d,
  .tile .art-3d.wide {
    width: 58%;
    margin: 0 auto;
  }

  .chip-keep {
    top: 12%;
  }

  .chip-spend {
    top: 34%;
  }

  .demo-phone {
    --w: min(320px, 82vw);
  }

  .faq details {
    padding: 2px 20px;
  }

  .faq summary {
    font-size: 16.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .coin {
    display: none;
  }
}
