/* Page démo Ekho — charte alignée sur landing.css */
:root {
  --demo-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --demo-text: #0f172a;
  --demo-muted: #475569;
  --demo-accent: #0284c7;
  --demo-accent-soft: rgba(2, 132, 199, 0.12);
  --demo-teal: #0d9488;
  --demo-surface: #f8fafc;
  --demo-border: #e2e8f0;
  --demo-white: #fff;
  --demo-radius: 16px;
  --demo-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  /* Hauteur commune des mockups smartphone (barre d’état + contenu + home) — +10 % pour un ratio plus réaliste */
  --demo-phone-frame-h: clamp(20.625rem, 44vh, 26.4rem);
}

/* Fond page démo — déclinaison douce de la charte Ekho / landing */
.landing-body.demo-page-bg {
  background-color: #e8f4fc;
  background-image:
    radial-gradient(ellipse 120% 85% at 50% -25%, rgba(14, 165, 233, 0.2), transparent 55%),
    radial-gradient(ellipse 65% 55% at 100% 35%, rgba(13, 148, 136, 0.1), transparent),
    radial-gradient(ellipse 55% 45% at 0% 75%, rgba(2, 132, 199, 0.12), transparent),
    linear-gradient(180deg, #f0f9ff 0%, #f8fafc 45%, #eef2f7 100%);
  background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
  .landing-body.demo-page-bg {
    background-attachment: scroll;
  }
}

.demo-main {
  overflow-x: hidden;
  position: relative;
}

.demo-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left)) 3rem;
  text-align: center;
  max-width: min(56rem, calc(100% - 2rem));
  margin: 0 auto;
}

/* Hero : pastille « concept en 1 min » (Caveat), titre fort, deux accroches */
.demo-hero__stack {
  max-width: 48rem;
  margin: 0 auto;
}

.demo-hero__kicker {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.22rem 0.75rem 0.28rem;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.05rem, 2.5vw, 1.32rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #0369a1;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 2px 10px rgba(2, 132, 199, 0.1);
}

.demo-hero__title {
  margin: 0 0 clamp(0.65rem, 2vw, 1rem);
  font-size: clamp(1.5rem, 4.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--demo-text);
}

.demo-hero__lead {
  margin: 0 auto 0.5rem;
  max-width: none;
  font-size: clamp(0.95rem, 2.1vw, 1.12rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--demo-muted);
}

.demo-hero__lead:last-child {
  margin-bottom: 0;
}

.demo-track {
  padding: 0 max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left)) clamp(1.75rem, 4vw, 2.75rem);
  max-width: 920px;
  margin: 0 auto;
}

/* Bloc SEO / contexte : carte lisible entre le parcours et le CTA */
.demo-outro {
  padding: clamp(0.25rem, 2vw, 0.75rem) max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left)) clamp(2.25rem, 5vw, 3.5rem);
  margin: 0 auto;
  max-width: 920px;
}

.demo-outro__inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(1.2rem, 3.2vw, 1.65rem) clamp(1.1rem, 3vw, 1.45rem);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--demo-radius);
  box-shadow: var(--demo-shadow);
  backdrop-filter: blur(10px);
  position: relative;
}

.demo-outro__inner::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(5rem, 28%);
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, var(--demo-accent), var(--demo-teal), transparent);
  opacity: 0.65;
}

.demo-outro__title {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.08rem, 2.45vw, 1.28rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--demo-text);
}

.demo-outro__text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--demo-muted);
  text-align: left;
  max-width: 36rem;
  margin-inline: auto;
}

.demo-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

@media (min-width: 768px) {
  .demo-step {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    margin-bottom: 3.5rem;
  }

  .demo-step--flip .demo-step__visual {
    order: 2;
  }

  .demo-step--flip .demo-step__copy {
    order: 1;
  }
}

.demo-step__copy {
  padding: 0.25rem 0;
}

.demo-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--demo-accent-soft);
  color: var(--demo-accent);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.demo-step__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.demo-step__text {
  margin: 0;
  font-size: 0.98rem;
  color: var(--demo-muted);
  max-width: 30rem;
  line-height: 1.65;
}

.demo-step__text p {
  margin: 0 0 0.85rem;
}

.demo-step__text p:last-child {
  margin-bottom: 0;
}

.demo-inline-link {
  color: var(--demo-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.demo-inline-link:hover {
  color: #0369a1;
}

.demo-step__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.demo-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--demo-radius);
  padding: 1.25rem;
  box-shadow: var(--demo-shadow);
  width: 100%;
  max-width: 340px;
  box-sizing: border-box;
  backdrop-filter: blur(6px);
}

/* —— Maquette flyer A5 (sans QR réel / non scannable) + présentoir type comptoir —— */
.demo-flyer-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 340px;
}

.demo-flyer-stand__acrylic {
  width: 100%;
  padding: 12px 14px 16px;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(241, 245, 249, 0.35) 45%,
    rgba(226, 232, 240, 0.45) 100%
  );
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(15, 23, 42, 0.06),
    0 14px 32px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(4px);
}

.demo-flyer-stand__base {
  width: min(220px, 72%);
  height: 9px;
  margin-top: -1px;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, #334155 0%, #0f172a 100%);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.28);
}

.demo-flyer-wrap {
  margin: 0;
  max-width: 280px;
  width: 100%;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .demo-flyer-wrap {
    max-width: 300px;
  }
}

.demo-flyer-mock {
  filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.07)) drop-shadow(0 18px 40px rgba(15, 23, 42, 0.12));
  transform: rotate(-2.5deg);
}

.demo-flyer-mock__sheet {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.15rem 1rem 1.25rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.demo-flyer-mock__brand {
  margin: 0 0 0.25rem;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.65rem, 5vw, 1.95rem);
  font-weight: 600;
  color: #db2777;
  text-align: center;
  line-height: 1.1;
}

.demo-flyer-mock__floral {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 0.5rem;
}

.demo-flyer-mock__cta {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--demo-text);
  text-align: center;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.demo-flyer-mock__perks {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--demo-muted);
  text-align: center;
  line-height: 1.35;
}

.demo-flyer-mock__qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.demo-flyer-mock__qr {
  width: min(140px, 48vw);
  height: auto;
  display: block;
  border-radius: 12px;
}

/* —— Téléphone + mockup type page signup Ekho —— */
.demo-phone {
  width: min(200px, 54vw);
  border-radius: 26px;
  border: 3px solid #1e293b;
  background: #0f172a;
  padding: 9px 7px 11px;
  box-shadow: var(--demo-shadow), 0 20px 48px rgba(15, 23, 42, 0.16);
}

.demo-phone__notch {
  width: 48px;
  height: 5px;
  background: #334155;
  border-radius: 3px;
  margin: 0 auto 10px;
}

.demo-phone__screen {
  background: #f1f5f9;
  border-radius: 17px;
  padding: 8px 7px 10px;
  box-sizing: border-box;
}

.demo-phone__screen--ekho {
  text-align: left;
}

/* —— Mockup smartphone « réaliste » (étapes 2, 4, 5) —— */
.demo-phone--real {
  position: relative;
  width: min(232px, 62vw);
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.demo-phone--real .demo-phone__chassis {
  position: relative;
  border-radius: 2.45rem;
  padding: 0.55rem 0.5rem 0.6rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
    linear-gradient(160deg, #5a6478 0%, #3d4556 18%, #2a3142 45%, #151821 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 8px rgba(0, 0, 0, 0.35),
    0 2px 4px rgba(255, 255, 255, 0.06) inset,
    0 36px 72px rgba(15, 23, 42, 0.4),
    0 14px 28px rgba(15, 23, 42, 0.2);
}

.demo-phone__hw--silent,
.demo-phone__hw--volume {
  position: absolute;
  left: 0;
  width: 3px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, #6b7280, #3f4654);
  box-shadow: inset -1px 0 1px rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}

.demo-phone__hw--silent {
  top: 22%;
  height: 1.35rem;
  transform: translateX(-2px);
}

.demo-phone__hw--volume {
  top: 31%;
  height: 2.65rem;
  transform: translateX(-2px);
}

.demo-phone--real .demo-phone__screen-outer {
  display: flex;
  flex-direction: column;
  height: var(--demo-phone-frame-h);
  border-radius: 1.85rem;
  overflow: hidden;
  background: #0a0a0c;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.demo-phone__status {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  min-height: 1.95rem;
  padding: 0.45rem 0.75rem 0.32rem;
  background: #e8eaef;
  box-sizing: border-box;
}

.demo-phone__time {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #0f172a;
  line-height: 1;
  padding-top: 1px;
}

.demo-phone__island {
  position: absolute;
  left: 50%;
  top: 0.38rem;
  transform: translateX(-50%);
  width: 3.35rem;
  height: 1.05rem;
  background: linear-gradient(180deg, #1a1b1f 0%, #0a0a0c 100%);
  border-radius: 999px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.demo-phone__status-icons {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.demo-phone__cell {
  width: 1rem;
  height: 0.45rem;
  background:
    linear-gradient(#0f172a, #0f172a) 0 100% / 2px 35% no-repeat,
    linear-gradient(#0f172a, #0f172a) 4px 100% / 2px 55% no-repeat,
    linear-gradient(#0f172a, #0f172a) 8px 100% / 2px 75% no-repeat,
    linear-gradient(#0f172a, #0f172a) 12px 100% / 2px 100% no-repeat;
  opacity: 0.88;
}

.demo-phone__battery {
  position: relative;
  width: 1.15rem;
  height: 0.45rem;
  border-radius: 2px;
  border: 1.5px solid #0f172a;
  box-sizing: border-box;
}

.demo-phone__battery::before {
  content: '';
  position: absolute;
  inset: 2px 3px 2px 2px;
  border-radius: 1px;
  background: #0f172a;
  opacity: 0.92;
}

.demo-phone__battery::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 5px;
  background: #0f172a;
  border-radius: 0 1px 1px 0;
}

.demo-phone--real .demo-phone__screen {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.38rem 0.42rem 0.42rem;
  background: linear-gradient(180deg, #e8ecf1 0%, #e2e8f0 38%, #dde3ea 100%);
  text-align: left;
  border-radius: 0;
}

/* Zone de contenu : occupe le vide sous le bloc principal de façon homogène */
.demo-phone__plate {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.demo-phone__plate--fill {
  gap: 0.35rem;
}

.demo-phone__plate--fill .demo-ekho-merchant {
  margin-bottom: 0;
}

/* En-tête commerce au-dessus du tableau de bord (étape 5) */
.demo-ekho-merchant--dash {
  text-align: center;
  padding-bottom: 0.15rem;
}

.demo-ekho-merchant--dash .demo-ekho-merchant__logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  margin-bottom: 2px;
}

.demo-ekho-merchant--dash .demo-ekho-merchant__name {
  font-size: 0.68rem;
}

.demo-phone__plate--fill > * {
  flex-shrink: 0;
}

.demo-phone__plate--fill::after {
  content: '';
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, transparent 0%, rgba(226, 232, 240, 0.35) 100%);
  pointer-events: none;
}

.demo-phone__plate:not(.demo-phone__plate--fill) > .demo-loyalty--in-phone {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.demo-phone__home {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.72rem;
  padding-bottom: 0.15rem;
  background: #e8eaef;
}

.demo-phone__home::after {
  content: '';
  display: block;
  width: 32%;
  max-width: 5.5rem;
  height: 4px;
  border-radius: 100px;
  background: #64748b;
  opacity: 0.55;
}

.demo-ekho-merchant {
  text-align: center;
  margin-bottom: 8px;
}

.demo-ekho-merchant__logo {
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, #fce7f3, #fbcfe8);
  border: 1px solid #f9a8d4;
  margin-bottom: 3px;
  vertical-align: middle;
}

.demo-ekho-merchant__name {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--demo-text);
}

.demo-ekho-card {
  background: var(--demo-white);
  border-radius: 10px;
  border: 1px solid var(--demo-border);
  padding: 8px 8px 9px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.demo-ekho-card__gift {
  margin: 0 0 6px;
  padding: 6px 8px;
  font-size: 0.6rem;
  font-weight: 600;
  color: #0f766e;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid rgba(13, 148, 136, 0.28);
  border-radius: 7px;
  line-height: 1.3;
}

.demo-ekho-card__title {
  margin: 0 0 3px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--demo-text);
  line-height: 1.2;
}

.demo-ekho-card__intro {
  margin: 0 0 7px;
  font-size: 0.6rem;
  color: var(--demo-muted);
  line-height: 1.35;
}

.demo-ekho-field {
  margin-bottom: 6px;
}

.demo-ekho-field__label {
  display: block;
  font-size: 0.54rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 2px;
}

.demo-ekho-field__line {
  display: block;
  height: 22px;
  border-radius: 5px;
  border: 1px solid var(--demo-border);
  background: #f8fafc;
}

.demo-ekho-loyalty-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}

.demo-ekho-loyalty-row__cb {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid #94a3b8;
  background: #fff;
}

.demo-ekho-loyalty-row__txt {
  font-size: 0.54rem;
  font-weight: 500;
  color: #475569;
  line-height: 1.2;
}

.demo-ekho-submit {
  font-size: 0.56rem;
  font-weight: 700;
  text-align: center;
  padding: 7px 6px;
  border-radius: 7px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35);
  line-height: 1.15;
}

/* —— Bloc automates (e-mail + pastilles) —— */
.demo-automates-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.demo-automates-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 320px;
}

.demo-automates-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--demo-text);
  padding: 0.4rem 0.65rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--demo-border);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.demo-automates-chips__emoji {
  font-size: 1rem;
  line-height: 1;
}

/* —— Email + enveloppe animée —— */
.demo-mail-card {
  max-width: 320px;
  padding: 1.35rem;
}

.demo-mail-envelope {
  position: relative;
  width: 76px;
  margin: 0 auto 1rem;
  animation: demo-mail-bob 2.4s ease-in-out infinite;
  transform-origin: 50% 70%;
}

.demo-mail-envelope__svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.1));
}

.demo-mail-envelope__badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
  animation: demo-mail-badge 1.6s ease-in-out infinite;
}

@keyframes demo-mail-bob {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50% { transform: translateY(-6px) rotate(0.5deg); }
}

@keyframes demo-mail-badge {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-mail-envelope,
  .demo-mail-envelope__badge {
    animation: none;
  }
}

.demo-mail-card__subj {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.demo-mail-card__preview {
  font-size: 0.8rem;
  color: var(--demo-muted);
  line-height: 1.45;
}

/* —— Carte fidélité —— */
.demo-loyalty {
  width: 100%;
  max-width: 300px;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  border-radius: var(--demo-radius);
  padding: 1.25rem;
  box-shadow: var(--demo-shadow);
}

.demo-loyalty__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.demo-loyalty__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 0 0 4px;
}

.demo-loyalty__name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #f1f5f9;
}

.demo-loyalty__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* Carte fidélité affichée dans le mockup téléphone (étape 4) */
.demo-loyalty--in-phone {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.45rem 0.55rem;
  border-radius: 12px;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.22);
  flex-shrink: 0;
}

.demo-loyalty--in-phone .demo-loyalty__head {
  margin-bottom: 0.45rem;
}

.demo-loyalty--in-phone .demo-loyalty__title {
  font-size: 0.5rem;
  margin: 0 0 2px;
  letter-spacing: 0.05em;
}

.demo-loyalty--in-phone .demo-loyalty__name {
  font-size: 0.7rem;
}

.demo-loyalty--in-phone .demo-loyalty__grid {
  gap: 5px;
}

.demo-loyalty--in-phone .demo-stamp {
  font-size: 0.45rem;
  border-width: 1.5px;
}

.demo-stamp {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.04);
}

.demo-stamp--filled {
  border-style: solid;
  border-color: var(--demo-teal);
  background: rgba(13, 148, 136, 0.25);
  color: #5eead4;
  font-weight: 800;
  animation: demo-stamp-pop 0.5s ease backwards;
}

.demo-stamp--filled:nth-child(1) { animation-delay: 0.1s; }
.demo-stamp--filled:nth-child(2) { animation-delay: 0.35s; }
.demo-stamp--filled:nth-child(3) { animation-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .demo-stamp--filled {
    animation: none;
  }
}

@keyframes demo-stamp-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* —— Aperçu espace commerçant (version compacte, sans données réelles) —— */
.demo-dash {
  width: 100%;
  max-width: 260px;
  background: #fff;
  border: 1px solid var(--demo-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--demo-shadow);
  text-align: left;
  font-family: var(--demo-font);
}

.demo-dash__bar {
  height: 4px;
  background: linear-gradient(90deg, var(--demo-accent), var(--demo-teal));
  opacity: 0.92;
}

.demo-dash__inner {
  padding: 0.45rem 0.5rem 0.5rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.demo-dash__block {
  padding-bottom: 0.4rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid #e2e8f0;
}

.demo-dash__block--last {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.demo-dash__lbl {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--demo-text);
}

.demo-dash__loyalty-cta {
  display: flex;
  justify-content: center;
}

.demo-dash__pill-btn {
  display: inline-block;
  padding: 5px 10px;
  text-align: center;
  font-size: 0.47rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 6px;
  background: #fff;
  color: var(--demo-accent);
  border: 1px solid rgba(2, 132, 199, 0.45);
  max-width: 100%;
  box-sizing: border-box;
}

.demo-dash__pill-btn--on {
  background: var(--demo-accent);
  color: #fff;
  border-color: var(--demo-accent);
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3);
}

.demo-dash__search {
  height: 14px;
  margin-bottom: 5px;
  border-radius: 5px;
  background: #f1f5f9;
  border: 1px solid var(--demo-border);
}

.demo-dash__rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-dash__rows span {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #e2e8f0;
}

.demo-dash__rows span:last-child {
  width: 88%;
  opacity: 0.9;
}

.demo-dash__dots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.demo-dash__dot {
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.demo-dash__dot--g {
  background: linear-gradient(180deg, #ecfdf5, #d1fae5);
  border-color: rgba(13, 148, 136, 0.18);
}

.demo-dash__dot--b {
  background: linear-gradient(180deg, #f0f9ff, #e0f2fe);
  border-color: rgba(2, 132, 199, 0.16);
}

/* Tableau de bord dans le mockup téléphone (étape 5) */
.demo-dash--in-phone {
  max-width: none;
  width: 100%;
  margin: 0;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
}

.demo-dash--in-phone .demo-dash__inner {
  padding: 0.38rem 0.42rem 0.45rem;
}

.demo-dash--in-phone .demo-dash__lbl {
  font-size: 0.54rem;
  margin-bottom: 0.28rem;
}

.demo-dash--in-phone .demo-dash__block {
  padding-bottom: 0.35rem;
  margin-bottom: 0.35rem;
}

.demo-dash--in-phone .demo-dash__pill-btn {
  padding: 4px 8px;
  font-size: 0.44rem;
}

.demo-dash--in-phone .demo-dash__search {
  height: 12px;
  margin-bottom: 4px;
}

.demo-dash--in-phone .demo-dash__dots {
  gap: 4px;
}

.demo-dash--in-phone .demo-dash__dot {
  height: 19px;
  border-radius: 6px;
}

/* —— CTA bas de page —— */
.demo-footer-cta {
  text-align: center;
  padding: 3.25rem max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left)) 4.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(240, 249, 255, 0.95) 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(8px);
}

.demo-footer-cta__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.demo-footer-cta__text {
  margin: 0 auto 1.5rem;
  max-width: 460px;
  color: var(--demo-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.demo-footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.demo-btn--primary {
  background: var(--demo-accent);
  color: var(--demo-white);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.demo-btn--primary:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.demo-btn--ghost {
  background: var(--demo-white);
  color: var(--demo-text);
  border: 1px solid var(--demo-border);
}

.demo-btn--ghost:hover {
  background: var(--demo-surface);
}
