/* ── Reset (équivalent preflight Tailwind, requis par vivatech.css) ── */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: inherit; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
h1, h2, h3, h4, p { margin: 0; }
button, input { font: inherit; color: inherit; margin: 0; padding: 0; letter-spacing: inherit; }
button { background: none; border: none; cursor: pointer; text-transform: none; -webkit-appearance: button; }
button:disabled { cursor: default; }
img, svg, video, canvas { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: inherit; }

.vivatech-funnel {
  font-family: "Inter", -apple-system, sans-serif;
  background: #fff;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   Shared: animations
   ======================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes stepFadeOut {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes s4Reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Shared: step transitions
   ======================================== */
.step {
  display: none;
}

.step.active {
  display: block;
}

.step.fade-out {
  animation: stepFadeOut 0.35s ease-out forwards;
}

.step.fade-in {
  animation: stepFadeIn 0.4s ease-out 0.1s both;
}

/* Shared fullscreen background */
.step-1.active,
.step-2.active,
.step-2b.active,
.step-2c.active,
.step-3.active,
.step-4.active {
  display: block;
  position: fixed;
  inset: 0;
  overflow-y: auto;
  z-index: 10;
  background: #f0f3ff;
  background-image:
    radial-gradient(
      ellipse 80% 50% at 20% -10%,
      rgba(59, 93, 214, 0.25) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 60% at 80% 110%,
      rgba(99, 60, 230, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 50% 40% at 60% 30%,
      rgba(59, 130, 246, 0.12) 0%,
      transparent 50%
    );
}

.step-1.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 200px;
}

.step1-shell {
  max-width: 1520px;
  width: 100%;
}

/* ========================================
   Shared: back button
   ======================================== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #2b4acb;
  cursor: pointer;
  padding: 10px 0;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.back-btn:hover {
  color: #2240b8;
}

.back-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s;
}

.back-btn:hover svg {
  transform: translateX(-3px);
}

/* ========================================
   Step 0 — Landing
   ======================================== */
.step-0.active {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  --landing-side-pad: clamp(72px, 8vw, 160px);
  --landing-gap: clamp(40px, 5vw, 88px);
  --landing-copy-width: clamp(440px, 33vw, 560px);
  --landing-title-size: 60px;
  --landing-title-leading: 105%;
  --landing-title-tracking: -2.1px;
  --landing-subtitle-size: 24px;
  --landing-subtitle-leading: 33.6px;
  --landing-visual-width: clamp(560px, 44vw, 720px);
  --landing-visual-height: min(100dvh, 1024px);
  --vid-size: 780px;
  --vid-right: 60px;
  --vid-bottom: -0px;
  --landing-logo-gap: 16px;
  --landing-logo-height: 59px;
  --landing-logo-size: 54px;
  --landing-logo-radius: 13px;
  --landing-logo-type-size: 32px;
  --landing-logo-type-tracking: -0.64px;
  --landing-cta-pad-y: 22px;
  --landing-cta-pad-x: 96px;
  --landing-cta-radius: 16px;
  background: #f0f3ff;
  background-image:
    radial-gradient(
      ellipse 80% 50% at 20% -10%,
      rgba(59, 93, 214, 0.25) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 60% at 80% 110%,
      rgba(99, 60, 230, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 50% 40% at 60% 30%,
      rgba(59, 130, 246, 0.12) 0%,
      transparent 50%
    );
  z-index: 20;
  overflow: hidden;
}

.landing-split {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns:
    minmax(420px, var(--landing-copy-width))
    minmax(var(--landing-visual-width), 1fr);
  align-items: center;
  padding: 0 var(--landing-side-pad);
  column-gap: var(--landing-gap);
  isolation: isolate;
  position: relative;
}

.landing-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, var(--landing-copy-width));
  flex-shrink: 0;
  justify-content: center;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: var(--landing-logo-gap);
  height: var(--landing-logo-height);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.5s ease-out 0.1s both;
}

.landing-logo img {
  height: var(--landing-logo-size);
  width: var(--landing-logo-size);
  border-radius: var(--landing-logo-radius);
}

.landing-logo-text {
  font-family: "Geist", "Inter", sans-serif;
  font-size: var(--landing-logo-type-size);
  font-weight: 600;
  color: #1a1a4b;
  letter-spacing: var(--landing-logo-type-tracking);
}

.landing-title {
  font-family: "Geist", "Inter", sans-serif;
  font-size: var(--landing-title-size);
  font-weight: 600;
  letter-spacing: var(--landing-title-tracking);
  line-height: var(--landing-title-leading);
  color: #1a1a4b;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.5s ease-out 0.15s both;
}

.landing-title .accent {
  background: linear-gradient(90deg, #6badff, #000dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-subtitle {
  font-family: "Geist", "Inter", sans-serif;
  font-size: var(--landing-subtitle-size);
  font-weight: 400;
  color: rgba(26, 26, 75, 0.8);
  line-height: var(--landing-subtitle-leading);
  letter-spacing: -0.2px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.5s ease-out 0.2s both;
}

.landing-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(100deg, #1555f7 30%, #4a6aef 50%, #1555f7 70%);
  background-size: 200% 100%;
  color: #fff;
  font-family: "Geist", "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: var(--landing-cta-pad-y) var(--landing-cta-pad-x);
  border-radius: var(--landing-cta-radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(21, 85, 247, 0.25);
  transition: transform 0.1s, box-shadow 0.2s;
  opacity: 0;
  animation:
    fadeUp 0.5s ease-out 0.25s both,
    shimmer 3s ease-in-out 0.75s infinite;
}

.landing-cta-btn:hover {
  background: #2240b8;
  animation: fadeUp 0.5s ease-out 0.25s both;
  box-shadow: 0 6px 24px rgba(43, 74, 203, 0.35);
  transform: translateY(-1px);
}

.landing-cta-btn:active {
  transform: translateY(0) scale(0.98);
}

.landing-cta-btn .arrow {
  width: 20px;
  height: 20px;
}

.landing-mascot-mobile {
  display: none;
}

.landing-ellipse {
  display: none;
}

.landing-right {
  min-width: 0;
  align-self: stretch;
  margin: 0;
  padding: 0;
  overflow: visible;
  z-index: 1;
  position: relative;
}

.landing-video-wrap {
  position: absolute;
  right: var(--vid-right, 0px);
  bottom: var(--vid-bottom, 0px);
  width: var(--vid-size, 820px);
  height: auto;
  opacity: 0;
  animation: fadeUp 0.6s ease-out 0.2s both;
  pointer-events: none;
}

.landing-video-wrap video {
  /* vidéo alpha native (VP9/HEVC) : affichée directement, plus de canvas chroma-key */
  width: 100%;
  height: auto;
  display: block;
}

.landing-mascot-fallback {
  width: 100%;
  height: auto;
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}

.landing-video-wrap.video-failed video {
  display: none;
}

.landing-video-wrap.video-visible .landing-mascot-fallback {
  display: none;
}

.landing-video-wrap.video-visible canvas,
.landing-video-wrap.video-visible video {
  position: relative;
  z-index: 1;
}

.landing-video-wrap.video-failed .landing-mascot-fallback {
  display: block;
}

/* ========================================
   Step 1 — Diagnostic card
   ======================================== */
.card-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
}

.card-header-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-title {
  font-family: "Geist", "Inter", sans-serif;
  font-size: 60px;
  font-weight: 600;
  letter-spacing: -2.1px;
  line-height: 1.05;
  color: #1a1a4b;
}

.card-subtitle {
  font-family: "Geist", "Inter", sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: rgba(26, 26, 75, 0.8);
  line-height: 1.4;
  letter-spacing: -0.2px;
  max-width: 480px;
}

/* Pillars */
.pillars {
  display: flex;
  gap: 20px;
  margin-bottom: 48px;
}

.pillar {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  padding: 36px 44px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(43, 74, 203, 0.05);
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 6px rgba(43, 74, 203, 0.05),
    0 8px 20px rgba(43, 74, 203, 0.08);
}

.pillar-icon {
  width: 72px;
  height: 72px;
  position: relative;
  flex-shrink: 0;
}

.pillar-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pillar:nth-child(1) {
  animation: fadeUp 0.5s ease-out 0.1s both;
}
.pillar:nth-child(2) {
  animation: fadeUp 0.5s ease-out 0.2s both;
}
.pillar:nth-child(3) {
  animation: fadeUp 0.5s ease-out 0.3s both;
}

.pillar-label {
  font-family: "Geist", "Inter", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a4b;
  letter-spacing: -0.24px;
  margin-bottom: 10px;
}

.pillar-desc {
  font-family: "Geist", "Inter", sans-serif;
  font-size: 18px;
  color: rgba(26, 26, 75, 0.6);
  line-height: 25px;
}

.step1-separator {
  border: none;
  border-top: 1px solid #e2e3e8;
  margin-bottom: 48px;
}

/* CTA zone */
.cta-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 0;
  animation: fadeUp 0.5s ease-out 0.4s both;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(97deg, #1555f7 30%, #4a6aef 50%, #1555f7 70%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  color: #fff;
  font-family: "Geist", "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 22px 96px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 8px rgba(43, 74, 203, 0.25);
  width: 280px;
}

.cta-btn:hover {
  background: #2240b8;
  box-shadow: 0 6px 24px rgba(43, 74, 203, 0.35);
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(0) scale(0.98);
}

.cta-btn .arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.cta-btn:hover .arrow {
  transform: translateX(3px);
}

/* Reassurance */
.reassurance {
  display: flex;
  align-items: center;
  gap: 24px;
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Geist", "Inter", sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: rgba(26, 26, 75, 0.5);
}

.reassurance-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ========================================
   Step 2 — Identification
   ======================================== */
.step2-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.step2-title {
  font-family: "Geist", "Inter", sans-serif;
  font-size: 60px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #1a1a4b;
  margin-bottom: 10px;
}

.step2-subtitle {
  font-family: "Geist", "Inter", sans-serif;
  font-size: 24px;
  color: rgba(26, 26, 75, 0.8);
  font-weight: 400;
  line-height: 33.6px;
  letter-spacing: -0.2px;
  margin-bottom: 48px;
  max-width: 540px;
}

.step2-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.step2-card {
  background: #fff;
  border-radius: 20px;
  padding: 60px 44px;
  text-align: center;
  box-shadow:
    0 1px 3px rgba(43, 74, 203, 0.03),
    0 4px 12px rgba(43, 74, 203, 0.05);
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    border-color 0.2s;
  border: 2px solid transparent;
}

.step2-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 6px rgba(43, 74, 203, 0.05),
    0 8px 20px rgba(43, 74, 203, 0.08);
}

.step2-card:active {
  transform: translateY(0) scale(0.99);
}

.step2-card.selected {
  border-color: #2b4acb;
  box-shadow:
    0 0 0 3px rgba(43, 74, 203, 0.1),
    0 4px 12px rgba(43, 74, 203, 0.08);
}

.step2-card:nth-child(1) {
  animation: fadeUp 0.5s ease-out 0.1s both;
}
.step2-card:nth-child(2) {
  animation: fadeUp 0.5s ease-out 0.2s both;
}

.step2-card-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 44px;
  color: #2b4acb;
}

.step2-card-icon img,
.step2-card-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.step2-card-label {
  font-size: 19px;
  font-weight: 600;
  color: #111218;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.step2-card-desc {
  font-size: 15px;
  color: #888;
  line-height: 1.5;
}

/* ========================================
   Step 2c — Function selection
   ======================================== */
.step2c-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.step2c-title {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #111218;
  margin-bottom: 10px;
}

.step2c-subtitle {
  font-size: 19px;
  color: #888;
  font-weight: 400;
  margin-bottom: 48px;
  max-width: 540px;
}

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

.step2c-card {
  background: #fff;
  border-radius: 20px;
  padding: 60px 44px;
  text-align: center;
  box-shadow:
    0 1px 3px rgba(43, 74, 203, 0.03),
    0 4px 12px rgba(43, 74, 203, 0.05);
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    border-color 0.2s;
  border: 2px solid transparent;
  animation: fadeUp 0.5s ease-out both;
}

.step2c-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 6px rgba(43, 74, 203, 0.05),
    0 8px 20px rgba(43, 74, 203, 0.08);
}

.step2c-card:active {
  transform: translateY(0) scale(0.99);
}

.step2c-card.selected {
  border-color: #1555f7;
  box-shadow:
    0 2px 6px rgba(43, 74, 203, 0.08),
    0 10px 24px rgba(43, 74, 203, 0.12);
}

.step2c-card.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.step2c-card-label {
  font-size: 19px;
  font-weight: 600;
  color: #111218;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.step2c-check {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border-radius: 999px;
  border: 2px solid #d9deea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s ease;
}

.step2c-check.checked {
  border-color: #1555f7;
  background: #1555f7;
  color: #fff;
}

.step2c-check svg {
  width: 16px;
  height: 16px;
}

.step2c-sticky-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.step2c-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 320px;
  min-height: 58px;
  padding: 0 24px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(100deg, #2b4acb 30%, #4a6aef 50%, #2b4acb 70%);
  background-size: 200% 100%;
  box-shadow: 0 10px 26px rgba(43, 74, 203, 0.18);
  color: #fff;
  font-family: "Geist", "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  animation: shimmer 3s ease-in-out infinite;
}

@media (min-width: 1024px) {
  .step2c-container {
    max-width: 980px;
    padding-top: 72px;
    padding-bottom: 88px;
  }

  .step2c-title {
    font-size: 42px;
  }

  .step2c-cards-wrapper {
    position: relative;
    max-width: 968px;
  }

  .step2c-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 968px;
    max-height: 340px;
    overflow-y: auto;
    padding-bottom: 48px;
    scrollbar-width: none;
  }

  .step2c-cards::-webkit-scrollbar {
    display: none;
  }

  .step2c-cards-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(241, 244, 255, 0) 0%, rgba(241, 244, 255, 0.25) 50%, rgba(241, 244, 255, 0.45) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    border-radius: 0 0 16px 16px;
    z-index: 2;
  }

  .step2c-card {
    position: relative;
    min-height: 92px;
    padding: 12px 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .step2c-card-label {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.2;
    max-width: 134px;
  }

  .step2c-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    margin: 0;
    border-radius: 3px;
    border-width: 1.5px;
  }

  .step2c-check svg {
    width: 13px;
    height: 13px;
  }

  .step2c-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 0;
    padding: 36px 24px 64px;
    z-index: 30;
    pointer-events: none;
  }

  .step2c-sticky-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(241, 244, 255, 0) 0%, rgba(241, 244, 255, 0.52) 38%, rgba(241, 244, 255, 0.84) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .step2c-continue {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    min-width: 280px;
    padding: 18px 44px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(43, 74, 203, 0.18);
    font-size: 16px;
  }

  .step2c-continue .arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

.step2c-continue:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ========================================
   Step 2b — Manual input
   ======================================== */
.step2b-container {
  width: 100%;
  max-width: 1046px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding-bottom: 100px;
}

.step2b-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 24px;
}

.step2b-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step2b-title {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #111218;
  margin-bottom: 10px;
}

.step2b-subtitle {
  font-size: 19px;
  color: #888;
  font-weight: 400;
  margin-bottom: 48px;
}

/* Chat bar */
.chat-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e8eaef;
  border-radius: 999px;
  padding: 10px 12px 10px 32px;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(43, 74, 203, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-bar:focus-within {
  border-color: #c0c6d8;
  box-shadow: 0 2px 12px rgba(43, 74, 203, 0.06);
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  color: #111218;
  background: transparent;
  padding: 14px 0;
}

.chat-input::placeholder {
  color: #b0b6c8;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chat-mic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.chat-mic svg {
  width: 22px;
  height: 22px;
}

.chat-mic:hover {
  color: #2b4acb;
  background: rgba(43, 74, 203, 0.06);
}

.chat-send {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #d0d4e0;
  color: #fff;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}

.chat-send svg {
  width: 22px;
  height: 22px;
}

.chat-send:not(:disabled) {
  background: linear-gradient(110deg, #2b4acb 30%, #4a6aef 50%, #2b4acb 70%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(43, 74, 203, 0.25);
}

.chat-send:not(:disabled):hover {
  background: #2240b8;
  animation: none;
  box-shadow: 0 6px 18px rgba(43, 74, 203, 0.35);
}

.chat-send:not(:disabled):active {
  transform: scale(0.92);
}

/* ========================================
   Step 2s — Camera Scan
   ======================================== */
.step-2s.active {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scan-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

.scan-back {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.scan-back svg {
  width: 20px;
  height: 20px;
}

.scan-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scan-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-viewfinder {
  position: absolute;
  top: 30%;
  left: 20%;
  width: 60%;
  height: 40%;
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s;
}

.scan-viewfinder.detected {
  border-color: #22c55e;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(34, 197, 94, 0.4);
}

.scan-viewfinder::before,
.scan-viewfinder::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: #fff;
  border-style: solid;
}

.scan-viewfinder::before {
  top: -3px;
  left: -3px;
  border-width: 4px 0 0 4px;
  border-radius: 20px 0 0 0;
}

.scan-viewfinder::after {
  bottom: -3px;
  right: -3px;
  border-width: 0 4px 4px 0;
  border-radius: 0 0 20px 0;
}

.scan-status {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
}

.scan-status-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 999px;
}

.scan-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.scan-status-text.found {
  background: rgba(34, 197, 94, 0.85);
}

.scan-status-text.found .scan-spinner {
  display: none;
}

.scan-confirm {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
}

.scan-confirm.visible {
  display: flex;
}

.scan-confirm-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 48px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: fadeUp 0.3s ease-out;
}

.scan-confirm-label {
  font-size: 14px;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.scan-confirm-brand {
  font-size: 32px;
  font-weight: 700;
  color: #111218;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.scan-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scan-confirm-yes {
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: #1555f7;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.scan-confirm-yes:hover {
  background: #1040d0;
}

.scan-confirm-no {
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #888;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.scan-confirm-no:hover {
  color: #111218;
}

/* ========================================
   Step 3 — Branch Loading
   ======================================== */
.step3-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  flex-direction: column;
}

.branch-text {
  text-align: center;
  max-width: 520px;
  margin-bottom: 56px;
}

.branch-text p {
  font-size: 36px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.branch-scene {
  width: 960px;
  height: 360px;
}

.branch-svg {
  width: 960px;
  height: 440px;
}

.branch-line {
  fill: none;
  stroke: #dce3f5;
  stroke-width: 44;
  stroke-linecap: square;
}

.branch-tip {
  fill: none;
  stroke: #2b4acb;
  stroke-width: 5;
  stroke-linecap: square;
}

/* ========================================
   Step 4 — Results
   ======================================== */
.step4-page {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

/* Nav */
.r-nav {
  background: #fff;
  border-bottom: 1px solid #ecedf2;
  padding: 0 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.r-nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.r-nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.r-nav-items {
  display: flex;
  align-items: center;
  gap: 32px;
}

.r-nav-item {
  font-size: 14px;
  font-weight: 500;
  color: #888;
  text-decoration: none;
  padding: 20px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s;
}

.r-nav-item.active {
  color: #111218;
  border-bottom-color: #2b4acb;
}

/* Page content */
.r-page {
  width: 100%;
  padding: 56px 90px 100px;
}

/* Title */
.r-header {
  margin-bottom: 24px;
  opacity: 0;
}

.step-4.active .r-header {
  animation: s4Reveal 0.5s ease-out 0.1s both;
}

.r-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111218;
  line-height: 1.2;
  margin-bottom: 4px;
}

/* Context bar */
.r-context {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e5e7ed;
  margin-bottom: 48px;
  opacity: 0;
}

.step-4.active .r-context {
  animation: s4Reveal 0.4s ease-out 0.2s both;
}

.r-context-item {
  font-size: 14px;
  color: #777;
}

.r-context-item strong {
  color: #111218;
  font-weight: 600;
}

.r-context-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ccc;
}

.r-context-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #111218;
}

.r-context-check svg {
  width: 18px;
  height: 18px;
  color: #2b4acb;
}

/* NPS donut */
.r-nps {
  display: flex;
  align-items: center;
  gap: 48px;
  background: #fff;
  border: 1px solid #ecedf2;
  border-radius: 20px;
  padding: 40px 48px;
  margin-bottom: 56px;
  opacity: 0;
}

.step-4.active .r-nps {
  animation: s4Reveal 0.5s ease-out 0.75s both;
}

.r-nps-chart {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.r-nps-chart svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.r-nps-chart .donut-bg {
  fill: none;
  stroke: #f0f1f5;
  stroke-width: 10;
}

.r-nps-chart .donut-value {
  fill: none;
  stroke: #2b4acb;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.34, 1, 0.64, 1);
}

.step-4.active .r-nps-chart .donut-value {
  stroke-dashoffset: 100;
}

.r-nps-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: #111218;
  letter-spacing: -0.03em;
}

.r-nps-info {
  flex: 1;
}

.r-nps-title {
  font-size: 32px;
  font-weight: 700;
  color: #111218;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.r-nps-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.5;
}

/* Pattern rows */
.r-patterns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 56px;
  opacity: 0;
}

.step-4.active .r-patterns {
  animation: s4Reveal 0.5s ease-out 0.7s both;
}

.r-pattern {
  background: #fff;
  border: 1px solid #ecedf2;
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.r-pattern-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.r-pattern-body {
  flex: 1;
  min-width: 0;
}

.r-pattern-name {
  font-size: 16px;
  font-weight: 600;
  color: #111218;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.r-pattern-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.4;
}

.r-pattern-metric {
  flex-shrink: 0;
  text-align: right;
}

.r-pattern-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 2px;
}

.r-pattern-value.positive {
  color: #1a7f37;
}

.r-pattern-value.negative {
  color: #cf222e;
}

.r-pattern-value.neutral {
  color: #111218;
}

.r-pattern-label {
  font-size: 11px;
  color: #999;
  font-weight: 500;
}

/* Section title */
.r-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #111218;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* Competitors */
.r-competitors-section {
  margin-bottom: 56px;
  opacity: 0;
}

.step-4.active .r-competitors-section {
  animation: s4Reveal 0.5s ease-out 0.35s both;
}

.r-competitors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.r-competitor {
  background: #fff;
  border: 1px solid #ecedf2;
  border-radius: 16px;
  padding: 28px 28px;
}

.r-competitor-name {
  font-size: 17px;
  font-weight: 700;
  color: #111218;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.r-competitor-sub {
  font-size: 13px;
  color: #999;
}

/* Comparison table */
.r-table {
  background: #fff;
  border: 1px solid #ecedf2;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 56px;
  opacity: 0;
}

.step-4.active .r-table {
  animation: s4Reveal 0.5s ease-out 0.85s both;
}

.r-table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid #ecedf2;
  background: #fafbfd;
}

.r-table-header-cell {
  padding: 16px 24px;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.r-table-header-cell:not(:first-child) {
  text-align: center;
}

.r-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid #f2f3f7;
  align-items: center;
}

.r-table-row:last-child {
  border-bottom: none;
}

.r-table-cell {
  padding: 24px 24px;
  font-size: 14px;
  color: #111218;
}

.r-table-cell:not(:first-child) {
  text-align: center;
  font-weight: 600;
}

.r-table-cell-label {
  font-weight: 600;
  color: #111218;
  margin-bottom: 2px;
}

.r-table-cell-sub {
  font-size: 12px;
  color: #999;
  font-weight: 400;
}

/* Networks */
.r-networks-section {
  margin-bottom: 56px;
  opacity: 0;
}

.step-4.active .r-networks-section {
  animation: s4Reveal 0.5s ease-out 0.9s both;
}

.r-networks-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.r-network-card {
  background: #fff;
  border: 1px solid #ecedf2;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.r-network-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.r-network-card-info {
  flex: 1;
}

.r-network-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #111218;
  margin-bottom: 2px;
}

.r-network-card-detail {
  font-size: 13px;
  color: #999;
}

.r-networks-others {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.r-network-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #ecedf2;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
}

.r-network-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* CTA */
.r-cta-section {
  display: flex;
  justify-content: center;
  opacity: 0;
}

.step-4.active .r-cta-section {
  animation: s4Reveal 0.5s ease-out 1.05s both;
}

.r-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2b4acb;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(43, 74, 203, 0.2);
}

.r-cta:hover {
  background: #2240b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(43, 74, 203, 0.25);
}

.r-cta:active {
  transform: translateY(0) scale(0.98);
}

.r-cta svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   Cinema Desktop — 1920px and above
   ======================================== */
@media (min-width: 1920px) {
  .step-0.active {
    --landing-side-pad: 160px;
    --landing-gap: 100px;
    --landing-copy-width: 680px;
    --landing-title-size: 75px;
    --landing-title-leading: 82.5px;
    --landing-title-tracking: -1.5px;
    --landing-subtitle-size: 24px;
    --landing-subtitle-leading: 33.6px;
    --landing-visual-width: 820px;
    --landing-visual-height: min(100dvh, 1120px);
    --vid-size: 1100px;
    --vid-right: -160px;
    --vid-bottom: -200px;
  }

  .landing-logo {
    margin-bottom: 60px;
  }

  .pillar {
    height: 427px;
    padding: 48px;
  }

  .pillar-icon {
    width: 96px;
    height: 96px;
  }

  .pillar-label {
    font-size: 28px;
    letter-spacing: -0.5px;
    line-height: 34px;
  }

  .pillar-desc {
    font-size: 24px;
    color: rgba(26, 26, 75, 0.7);
    line-height: 33.6px;
    letter-spacing: -0.2px;
  }
}

/* ========================================
   Desktop Stop — 1440px and below
   ======================================== */
@media (max-width: 1440px) {
  .step-0.active {
    --landing-side-pad: clamp(56px, 7vw, 96px);
    --landing-gap: clamp(28px, 3vw, 48px);
    --landing-copy-width: clamp(420px, 34vw, 460px);
    --landing-title-size: 64px;
    --landing-title-leading: 70px;
    --landing-title-tracking: -1.28px;
    --landing-subtitle-size: 22px;
    --landing-subtitle-leading: 31px;
    --landing-visual-width: clamp(480px, 42vw, 600px);
    --landing-visual-height: min(92dvh, 900px);
    --landing-cta-pad-x: 72px;
    --vid-size: 920px;
    --vid-right: -200px;
    --vid-bottom: -140px;
  }

  .landing-left {
    width: min(100%, var(--landing-copy-width));
  }
}

/* ========================================
   iPad Stop — 1194px and below
   ======================================== */
@media (max-width: 1194px) {
  .step-0.active {
    --landing-side-pad: 104px;
    --landing-gap: 40px;
    --landing-copy-width: 440px;
    --landing-title-size: 52px;
    --landing-title-leading: 57px;
    --landing-title-tracking: -1.04px;
    --landing-subtitle-size: 19px;
    --landing-subtitle-leading: 27px;
    --landing-visual-width: 594px;
    --landing-visual-height: min(78dvh, 740px);
    --landing-logo-gap: 12px;
    --landing-logo-height: 44px;
    --landing-logo-size: 40px;
    --landing-logo-radius: 10px;
    --landing-logo-type-size: 24px;
    --landing-logo-type-tracking: -0.48px;
    --landing-cta-pad-y: 18px;
    --landing-cta-pad-x: 44px;
    --landing-cta-radius: 12px;
    --vid-size: 780px;
    --vid-right: -160px;
    --vid-bottom: -80px;
  }

  .landing-split {
    grid-template-columns:
      minmax(360px, var(--landing-copy-width))
      minmax(var(--landing-visual-width), 1fr);
  }
}

/* ========================================
   iPad Tight Stop — 1180px and below
   ======================================== */
@media (max-width: 1180px) {
  .step-0.active {
    --landing-side-pad: 120px;
    --landing-gap: 28px;
    --landing-copy-width: 400px;
    --landing-title-size: 46px;
    --landing-title-leading: 50px;
    --landing-title-tracking: -0.92px;
    --landing-subtitle-size: 18px;
    --landing-subtitle-leading: 25px;
    --landing-visual-width: 542px;
    --landing-visual-height: min(74dvh, 680px);
    --landing-cta-pad-x: 36px;
    --vid-size: 750px;
    --vid-right: -135px;
    --vid-bottom: -70px;
  }

  .landing-split {
    grid-template-columns:
      minmax(320px, var(--landing-copy-width))
      minmax(var(--landing-visual-width), 1fr);
  }

  .landing-subtitle br {
    display: none;
  }
}

/* ========================================
   Tablet — 641px to 1024px
   ======================================== */
@media (max-width: 1024px) {
  .step-0.active {
    --landing-side-pad: 120px;
    --landing-gap: 20px;
    --landing-copy-width: 360px;
    --landing-title-size: 40px;
    --landing-title-leading: 44px;
    --landing-title-tracking: -0.72px;
    --landing-subtitle-size: 17px;
    --landing-subtitle-leading: 24px;
    --landing-visual-width: 465px;
    --landing-visual-height: min(68dvh, 560px);
    --landing-cta-pad-x: 28px;
    --vid-size: 700px;
    --vid-right: -135px;
    --vid-bottom: -60px;
  }

  .landing-split {
    grid-template-columns:
      minmax(300px, var(--landing-copy-width))
      minmax(var(--landing-visual-width), 1fr);
  }

  .step-1.active {
    padding: 48px;
  }

  .card-title {
    font-size: 44px;
  }

  .card-subtitle {
    font-size: 18px;
  }

  .pillar {
    padding: 40px 28px;
  }

  .pillar-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 32px;
  }

  .step2-container {
    padding: 48px;
  }

  .step2-title {
    font-size: 40px;
  }

  .step2-card {
    padding: 40px 28px;
  }

  .step2-card-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 32px;
  }

  .step2c-container {
    padding: 48px;
  }

  .step2c-title {
    font-size: 40px;
  }

  .step2c-card {
    padding: 40px 28px;
  }

  .step2b-container {
    width: 100%;
    max-width: 860px;
    padding: 0 32px;
    padding-bottom: 80px;
  }

  .step2b-title {
    font-size: 40px;
  }

  .r-nav {
    padding: 0 32px;
  }

  .r-page {
    padding: 40px 32px 80px;
  }

  .r-nps {
    padding: 32px;
    gap: 32px;
  }

  .r-nps-title {
    font-size: 26px;
  }

  .r-competitors {
    grid-template-columns: repeat(2, 1fr);
  }

  .r-networks-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .branch-svg {
    width: 100%;
    max-width: 720px;
    height: auto;
  }

  .branch-text p {
    font-size: 28px;
  }
}

/* ========================================
   Mobile — 640px and below
   ======================================== */
@media (max-width: 640px) {
  .landing-split {
    display: flex;
    flex-direction: column;
    padding: 32px;
    gap: 0;
    justify-content: flex-end;
  }

  .landing-left {
    width: 100%;
    flex: 1;
    align-items: flex-start;
    text-align: left;
  }

  .landing-logo {
    gap: 12px;
    height: 44px;
    margin-bottom: auto;
  }

  .landing-logo img {
    height: 40px;
    width: 40px;
    border-radius: 10px;
  }

  .landing-logo-text {
    font-size: 24px;
    letter-spacing: -0.48px;
  }

  .landing-title {
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -0.72px;
    font-weight: 700;
    margin-bottom: 32px;
  }

  .landing-subtitle {
    font-size: 18px;
    line-height: 25px;
    margin-bottom: 32px;
  }

  .landing-subtitle br {
    display: none;
  }

  .landing-cta-btn {
    padding: 18px 40px;
    font-size: 16px;
    width: 100%;
    max-width: 360px;
    height: 65px;
    border-radius: 8px;
  }

  .landing-mascot-mobile {
    display: block;
    position: absolute;
    top: -40px;
    right: -50px;
    width: 380px;
    height: auto;
    z-index: 0;
    pointer-events: none;
  }

  .landing-logo,
  .landing-title,
  .landing-subtitle,
  .landing-cta-btn {
    position: relative;
    z-index: 1;
  }

  .landing-right {
    display: none;
  }

  .step-1.active,
  .step-2.active,
  .step-3.active {
    overflow: hidden;
  }

  .step-2b.active {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .step-1.active {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
  }

  .card-header {
    margin-bottom: 32px;
  }

  .card-title {
    font-size: 30px;
  }

  .card-subtitle {
    font-size: 16px;
    line-height: 1.4;
  }

  .step1-shell {
    display: flex;
    flex-direction: column;
    min-height: 130%;
    padding: 32px 24px 0;
  }

  .pillars {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
  }

  .pillar {
    flex: none;
    height: auto;
    padding: 32px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    text-align: left;
  }

  .pillar-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }

  .pillar-label {
    font-size: 19px;
    margin-bottom: 4px;
    letter-spacing: -0.19px;
  }

  .pillar-desc {
    font-size: 14px;
    line-height: 1.45;
  }

  .step1-separator {
    display: none;
  }

  .cta-zone {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-top: auto;
    margin-left: -24px;
    margin-right: -24px;
  }

  .cta-btn {
    justify-content: center;
    padding: 18px 32px;
    font-size: 16px;
    width: 100%;
    border-radius: 0;
    height: 65px;
  }

  .reassurance {
    display: none;
  }

  .step2-container {
    padding: 24px;
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
    justify-content: flex-start;
    min-height: 0;
    height: 100%;
  }

  .step2-title {
    font-size: 28px;
  }

  .step2-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .step2-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step2-card {
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 4px;
    text-align: left;
    align-items: center;
  }

  .step2-card-icon {
    width: 52px;
    height: 52px;
    margin: 0;
    grid-row: 1 / -1;
    flex-shrink: 0;
  }

  .step2-card-label {
    font-size: 17px;
    margin-bottom: 0;
    align-self: end;
  }

  .step2-card-desc {
    align-self: start;
  }

  .step-2c.active {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .step2c-container {
    padding: 24px;
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
    padding-bottom: 100px;
    justify-content: flex-start;
    min-height: 0;
    height: auto;
  }

  .step2c-title {
    font-size: 28px;
  }

  .step2c-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .step2c-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .step2c-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }

  .step2c-group-title {
    font-family: "Geist", "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 4px;
    margin-bottom: 2px;
  }

  .step2c-card {
    padding: 18px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 16px;
    border-radius: 16px;
    border: 2px solid transparent;
  }

  .step2c-card.selected {
    border-color: #2b4acb;
  }

  .step2c-card.disabled {
    opacity: 0.35;
    pointer-events: none;
    animation: none;
  }

  .step2c-card-label {
    font-size: 16px;
    flex: 1;
    margin-bottom: 0;
  }

  .step2c-check {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid #d0d4e0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
  }

  .step2c-check.checked {
    background: #2b4acb;
    border-color: #2b4acb;
  }

  .step2c-check svg {
    width: 16px;
    height: 16px;
    color: #fff;
  }

  .step2c-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
    z-index: 20;
  }

  .step2c-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 18px 40px calc(18px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(100deg, #2b4acb 30%, #4a6aef 50%, #2b4acb 70%);
    background-size: 200% 100%;
    color: #fff;
    font-family: "Geist", "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 -2px 12px rgba(43, 74, 203, 0.15);
    min-height: 56px;
    animation: shimmer 3s ease-in-out infinite;
  }

  .step2c-continue:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .step2c-continue .arrow {
    width: 20px;
    height: 20px;
  }

  .step2b-container {
    width: 100%;
    padding: 24px;
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
    padding-bottom: 40px;
    min-height: auto;
    height: auto;
    justify-content: flex-start;
  }

  .step2b-title {
    font-size: 28px;
  }

  .step2b-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .chat-bar {
    padding: 8px 8px 8px 20px;
  }

  .chat-input {
    font-size: 16px;
    padding: 12px 0;
  }

  .branch-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .branch-text {
    margin-bottom: 32px;
    padding: 0 20px;
  }

  .branch-text p {
    font-size: 22px;
  }

  .r-nav {
    padding: 0 20px;
    height: 64px;
  }

  .r-nav-logo {
    width: 36px;
    height: 36px;
  }

  .r-page {
    padding: 28px 20px 60px;
  }

  .r-title {
    font-size: 24px;
  }

  .r-context {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-bottom: 24px;
    margin-bottom: 32px;
  }

  .r-context-dot {
    display: none;
  }

  .r-context-item {
    font-size: 13px;
  }

  .r-section-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .r-nps {
    flex-direction: column;
    gap: 24px;
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 40px;
  }

  .r-nps-chart {
    width: 100px;
    height: 100px;
  }

  .r-nps-number {
    font-size: 28px;
  }

  .r-nps-title {
    font-size: 24px;
  }

  .r-patterns {
    margin-bottom: 40px;
  }

  .r-pattern {
    padding: 18px 20px;
    gap: 14px;
  }

  .r-pattern-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 16px;
  }

  .r-pattern-name {
    font-size: 14px;
  }

  .r-pattern-desc {
    font-size: 12px;
  }

  .r-pattern-value {
    font-size: 20px;
  }

  .r-competitors {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .r-competitor {
    padding: 20px;
  }

  .r-competitors-section {
    margin-bottom: 40px;
  }

  .r-table {
    margin-bottom: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .r-table-header,
  .r-table-row {
    min-width: 520px;
  }

  .r-table-header-cell,
  .r-table-cell {
    padding: 14px 16px;
    font-size: 13px;
  }

  .r-networks-main {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .r-networks-section {
    margin-bottom: 40px;
  }

  .r-cta {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }

  .back-btn {
    font-size: 17px;
    font-weight: 700;
    padding: 16px 0;
    margin-bottom: 8px;
    min-height: 44px;
  }
}

/* ========================================
   Mobile Stop — 390px and below
   ======================================== */
@media (max-width: 390px) {
  .landing-split {
    padding: 24px;
  }

  .landing-title {
    font-size: 36px;
    line-height: 39px;
    margin-bottom: 24px;
  }

  .landing-subtitle {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 24px;
  }

  .landing-cta-btn {
    height: 60px;
    padding: 16px 24px;
  }

  .landing-mascot-mobile {
    top: -50px;
    right: -40px;
    width: 340px;
  }
}

/* ========================================
   Reduced motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .pillar-icon img {
    animation: none !important;
  }

  .pillar,
  .cta-zone,
  .reassurance {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .pillar:hover {
    transform: none;
  }

  .cta-btn:hover {
    transform: none;
  }
}

/* Reduced motion must reveal entrance content even when its animation is disabled. */
@media (prefers-reduced-motion: reduce) {
  .landing-logo,
  .landing-title,
  .landing-subtitle,
  .landing-cta-btn,
  .landing-video-wrap,
  .step-4.active .r-header,
  .step-4.active .r-context,
  .step-4.active .r-nps,
  .step-4.active .r-patterns,
  .step-4.active .r-competitors-section,
  .step-4.active .r-table,
  .step-4.active .r-networks-section,
  .step-4.active .r-cta-section {
    opacity: 1;
    transform: none;
  }
}
