/* Tunnel « En avant-première » — mise en page éditoriale, style visuel Beback. */

html.funnel-page {
  overflow-x: hidden;
  overscroll-behavior-x: none;
  width: 100%;
}

body.funnel {
  max-width: 100%;
  width: 100%;
}

.funnel .reveal,
.funnel .reveal.visible {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

.funnel img,
.funnel h1,
.funnel h2,
.funnel h3,
.funnel p,
.funnel span,
.funnel a,
.funnel li,
.funnel label {
  filter: none;
}

.funnel main {
  overflow-x: hidden;
}

.funnel .site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(1.4);
  transform: translateZ(0);
}

.funnel .nav-inner {
  width: 92%;
  max-width: 1120px;
  box-sizing: border-box;
  gap: 0.75rem;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.funnel .nav-cta {
  flex-shrink: 0;
  margin-inline-end: 0;
}

.funnel .hero {
  min-height: auto;
  padding: calc(var(--nav-height) + 4%) 0 8%;
  text-align: center;
  overflow: hidden;
}

.funnel .hero-grid {
  display: block;
  max-width: 720px;
  margin-inline: auto;
}

.funnel .hero-copy {
  width: 92%;
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.funnel .hero-eyebrow {
  margin-bottom: 4.5%;
}

.funnel .hero h1 {
  font-size: clamp(2.35rem, 7.2vw, 3.5rem);
  line-height: 1.22;
  padding: 0.18em 0.2em;
  margin: 0 auto 4.5%;
}

.funnel .hero-lead {
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  font-weight: 400;
  color: var(--text-body);
  margin-bottom: 1.75rem;
}

.funnel .hero-cta-row {
  display: flex;
  justify-content: center;
}

.funnel .hero-cta-row .store-badge,
.funnel .hero-copy .store-badge {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

.funnel .section {
  padding: 2.5rem 0;
}

.funnel .section-label {
  margin-bottom: 1.45rem;
}

.funnel .section-title {
  max-width: 16em;
}

.funnel .eko-answer .section-title,
.funnel .phases-block .section-title,
.funnel .moments-block .section-title,
.funnel .signup-copy .section-title,
.funnel .demo-title {
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

/* Démo app : juste après le pitch, comme l’exemple de phrase miroir. */
.demo-band {
  position: relative;
  padding: 6% 0 6%;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 12% 4%, rgba(168, 213, 162, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 50% at 92% 12%, rgba(155, 127, 224, 0.22), transparent 58%),
    linear-gradient(180deg, transparent, #eafaf0 18%, var(--cream) 100%);
}

.demo-title {
  margin-bottom: 1.5rem;
}

.demo-band .hero-phone-wrap {
  width: 72%;
  max-width: 20rem;
  margin-inline: auto;
}

.demo-ask {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--forest);
}

.section-intro {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 640px;
  text-wrap: pretty;
}

.section-intro--center {
  margin-inline: auto;
  text-align: center;
}

.moments-block {
  text-align: center;
}

.moments-block .section-intro {
  margin-inline: auto;
  text-align: center;
}

.moments-out {
  font-weight: 700;
  color: var(--forest);
}

.moment-list {
  display: grid;
  gap: 0.85rem;
  margin: 2rem auto 0;
  width: 100%;
  max-width: 45rem;
  text-align: left;
}

.moment-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.05rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(45, 90, 61, 0.08);
  box-shadow: 0 10px 28px rgba(45, 90, 61, 0.05);
}

.moment-item::before {
  content: '';
  width: 8px;
  height: 8px;
  margin-top: 0.55rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 5px rgba(18, 179, 163, 0.14);
}

.moment-item p {
  margin: 0;
  color: var(--text-body);
  line-height: 1.5;
}

.eko-answer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.eko-portrait {
  width: min(220px, 58%);
  margin: 0 auto 2rem;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}

.eko-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.eko-copy {
  max-width: 640px;
}

.eko-copy .section-text {
  margin-inline: auto;
}

.eko-moment {
  margin: 1.85rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.35;
  background: var(--grad-hero-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eko-named {
  margin: 1.5rem 0 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--forest);
  font-weight: 700;
}

.eko-try {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.85rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid var(--teal);
  background: rgba(255, 255, 255, 0.55);
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s;
}

.eko-try:hover {
  transform: translateY(-2px);
  color: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 10px 22px rgba(18, 179, 163, 0.18);
}

.phases-block {
  text-align: center;
}

.phases-block .section-intro {
  margin-inline: auto;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
  align-items: stretch;
}

.phase-card {
  height: 100%;
  padding: 1.35rem 1.3rem 1.4rem;
  border-radius: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(45, 90, 61, 0.08);
  box-shadow: 0 12px 32px rgba(45, 90, 61, 0.06);
}

.phase-card .phase-num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  margin: 0 auto 0.85rem;
}

.phase-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.4rem;
}

.phase-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.signup {
  padding: 2.5rem 0 4rem;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(155, 127, 224, 0.16), transparent 55%),
    linear-gradient(180deg, #eafaf0, var(--cream));
}

.signup-copy {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.signup-copy .section-title {
  max-width: none;
}

.signup-copy p {
  color: var(--text-body);
  line-height: 1.7;
  text-wrap: pretty;
  margin: 0 0 1rem;
}

.signup-copy p:last-of-type {
  margin-bottom: 0;
}

.signup-copy p.signup-dev {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.22em;
  color: var(--forest);
}

.signup-card {
  width: min(560px, 100%);
  margin: 2rem auto 0;
  padding: 2rem 1.6rem 1.8rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 90, 61, 0.1);
  box-shadow: var(--shadow-soft);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-weight: 600;
  color: var(--forest);
  font-size: 0.92rem;
}

.field input {
  appearance: none;
  border: 1.5px solid rgba(45, 90, 61, 0.16);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--text-body);
  background: #fff;
}

.field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(18, 179, 163, 0.16);
}

.privacy-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0.2rem 0 1.4rem;
  text-align: center;
}

.form-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
  justify-content: center;
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.form-status {
  min-height: 1.4rem;
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--moss);
  text-align: center;
}

.form-status.is-error {
  color: #b42318;
}

.signup-thanks {
  display: none;
  text-align: center;
  padding: 1.2rem 0.4rem 0.4rem;
}

.signup-thanks h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.signup-card.is-done .signup-form {
  display: none;
}

.signup-card.is-done .signup-thanks {
  display: block;
}

.funnel .site-footer {
  padding: 1.75rem 0;
}

.funnel .footer-bottom {
  border: 0;
  padding: 0;
  justify-content: center;
  text-align: center;
}

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

@media (max-width: 700px) {
  html.funnel-page {
    font-size: 4.267vw;
  }

  .funnel .container,
  .funnel .nav-inner {
    width: 90%;
  }

  .funnel .hero-copy,
  .funnel .eko-copy,
  .funnel .signup-copy {
    width: 100%;
    max-width: none;
  }

  .funnel .nav-cta {
    padding: 0.55em 0.95em;
  }

  .funnel .phone-mockup {
    width: 100%;
  }

  .demo-band .hero-phone-wrap {
    width: 68%;
  }

  .phase-card .phase-num {
    width: 2.6em;
    height: 2.6em;
  }
}
