/* ==========================================================================
   ZimSaaS — WhatsApp Automation Funnel
   Dark premium SaaS look. Mobile-first. Lightweight.
   ========================================================================== */

:root {
  /* Palette */
  --bg-dark: #0b1220;
  --bg-dark-2: #0f1828;
  --bg-light: #f5f7fb;
  --bg-light-2: #ffffff;
  --surface-dark: #111c30;
  --surface-light: #ffffff;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: rgba(12, 26, 48, 0.08);

  --text-dark: #eaf0f8;
  --text-dark-muted: #9fb0c8;
  --text-light: #0c1a30;
  --text-light-muted: #4a5a75;

  --accent: #3d6dad;
  --accent-soft: #7eb3f5;
  --accent-glow: rgba(125, 179, 245, 0.35);

  --success: #25d366; /* WhatsApp green, used sparingly */
  --danger: #e5484d;

  /* Scale */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 30px rgba(8, 18, 36, 0.08);
  --shadow-lg: 0 30px 80px rgba(8, 18, 36, 0.35);

  --container-max: 1120px;
  --container-pad: clamp(20px, 4vw, 40px);

  --section-pad-y: clamp(72px, 10vw, 128px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-light);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  position: relative;
  padding-block: var(--section-pad-y);
  overflow: hidden;
}

.section.dark {
  background: radial-gradient(
      1200px 600px at 50% -10%,
      rgba(125, 179, 245, 0.12),
      transparent 60%
    ),
    var(--bg-dark);
  color: var(--text-dark);
}

.section.light {
  background: var(--bg-light);
  color: var(--text-light);
}

.centered-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.glow-line {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(125, 179, 245, 0.5),
    transparent
  );
  opacity: 0.6;
  pointer-events: none;
}

.section.light .glow-line {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(61, 109, 173, 0.35),
    transparent
  );
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(125, 179, 245, 0.08);
  border: 1px solid rgba(125, 179, 245, 0.22);
  border-radius: 999px;
}

.eyebrow--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
}

.eyebrow-icon {
  flex-shrink: 0;
  color: var(--success);
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(37, 211, 102, 0.35));
}

.section.light .eyebrow {
  color: var(--accent);
  background: rgba(61, 109, 173, 0.08);
  border-color: rgba(61, 109, 173, 0.2);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 62ch;
  color: var(--text-dark-muted);
}

.section.light .lede {
  color: var(--text-light-muted);
}

.section-intro {
  max-width: 58ch;
  color: var(--text-light-muted);
}

.section-intro--dark {
  color: var(--text-dark-muted);
}

.support-text {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-dark-muted);
}

.hint {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--text-light-muted);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 40;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 4.25rem;
  padding-block: 0.35rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1rem;
}

.brand-mark img {
  display: block;
  height: clamp(2.75rem, 8.5vw, 3.75rem);
  width: auto;
  max-width: min(92vw, 280px);
  object-fit: contain;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}

.header-cta:hover,
.header-cta:focus-visible {
  background: rgba(125, 179, 245, 0.14);
  border-color: rgba(125, 179, 245, 0.35);
}

@media (max-width: 540px) {
  .header-cta {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 120ms var(--ease), box-shadow 200ms var(--ease),
    background 160ms var(--ease), border-color 160ms var(--ease),
    color 160ms var(--ease);
  will-change: transform;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #4e83c9, var(--accent));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(61, 109, 173, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 14px 40px rgba(61, 109, 173, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--text-light);
  background: #fff;
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.section.dark .btn-secondary {
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-dark);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(61, 109, 173, 0.45);
}

.section.dark .btn-secondary:hover,
.section.dark .btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.btn-hero {
  padding: 16px 26px;
  font-size: 1rem;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

/* ---------- Hero ---------- */
.hero-stack {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  justify-items: center;
}

.hero-copy {
  max-width: 820px;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Proof / demo shell (reserved for the real walkthrough video) */
.hero-proof {
  width: 100%;
  max-width: 880px;
}

.video-embed-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: linear-gradient(
      180deg,
      rgba(125, 179, 245, 0.08),
      rgba(125, 179, 245, 0.02)
    ),
    var(--surface-dark);
  border: 1px solid var(--border-dark);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-embed-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(125, 179, 245, 0.35),
    transparent 40%,
    rgba(125, 179, 245, 0.2) 90%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  z-index: 3;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 4px;
}

.proof-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.video-placeholder-title {
  margin: 4px 0 6px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--text-dark);
}

.video-placeholder-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dark-muted);
}

/* ---------- WhatsApp chat mockup (card variant for outcomes section) ---------- */
.chat-mock {
  position: relative;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  background: #0d1a28;
  color: #0c1a30;
  font-family: var(--font);
}

.chat-mock--card {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(125, 179, 245, 0.08);
}

.chat-mock--card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(125, 179, 245, 0.28),
    transparent 45%,
    rgba(37, 211, 102, 0.16) 95%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  z-index: 4;
}

.chat-mock::before {
  content: "";
  position: absolute;
  inset: 44px 0 66px;
  background:
    radial-gradient(circle at 15% 20%, rgba(125, 179, 245, 0.06) 0, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(37, 211, 102, 0.05) 0, transparent 45%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.018) 0 2px,
      transparent 2px 14px
    ),
    #0e1a2a;
  pointer-events: none;
  z-index: 0;
}

.chat-mock-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(17, 28, 48, 0.94);
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-dark);
}

.chat-mock-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--success);
  color: #0b1220;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.chat-mock-avatar svg {
  fill: currentColor;
}

.chat-mock-ident {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
  text-align: left;
}

.chat-mock-ident strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-mock-ident span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--text-dark-muted);
}

.chat-mock-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  animation: chatDotPulse 2.2s var(--ease) infinite;
  flex-shrink: 0;
}

.chat-mock-wa-tag {
  margin-left: auto;
  padding: 4px 8px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--success);
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.chat-mock-body {
  position: relative;
  z-index: 1;
  padding: 14px clamp(14px, 3vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.chat-mock-daysep {
  display: flex;
  justify-content: center;
  margin: 2px 0 4px;
}

.chat-mock-daysep span {
  padding: 3px 10px;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-dark-muted);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.chat-row {
  display: flex;
  width: 100%;
  animation: chatRowIn 420ms var(--ease) both;
}

.chat-row.in {
  justify-content: flex-start;
}

.chat-row.out {
  justify-content: flex-end;
}

.chat-mock-body > *:nth-child(2) { animation-delay: 80ms; }
.chat-mock-body > *:nth-child(3) { animation-delay: 220ms; }
.chat-mock-body > *:nth-child(4) { animation-delay: 360ms; }
.chat-mock-body > *:nth-child(5) { animation-delay: 500ms; }
.chat-mock-body > *:nth-child(7) { animation-delay: 700ms; }
.chat-mock-body > *:nth-child(8) { animation-delay: 880ms; }

.chat-bubble {
  position: relative;
  max-width: 78%;
  padding: 8px 12px 6px;
  border-radius: 10px;
  background: #ffffff;
  color: #0c1a30;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: left;
}

.chat-bubble p {
  margin: 0;
  padding-right: 44px;
}

.chat-row.in .chat-bubble {
  border-top-left-radius: 4px;
  background: #ffffff;
}

.chat-row.out .chat-bubble {
  background: #daf4c8;
  border-top-right-radius: 4px;
}

.chat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 2px 7px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(61, 109, 173, 0.1);
  border: 1px solid rgba(61, 109, 173, 0.22);
  border-radius: 999px;
  line-height: 1.1;
}

.chat-meta {
  position: absolute;
  right: 10px;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(12, 26, 48, 0.55);
}

.chat-ticks {
  color: #4a8bd1;
  vertical-align: middle;
}

.chat-bubble--typing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  min-height: 30px;
}

.chat-bubble--typing p,
.chat-bubble--typing .chat-meta {
  display: none;
}

.typing-dots {
  display: inline-flex;
  gap: 3px;
}

.typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(12, 26, 48, 0.45);
  animation: typingBounce 1.2s var(--ease) infinite;
}

.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }

.chat-mock-input {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(17, 28, 48, 0.95);
  border-top: 1px solid var(--border-dark);
}

.chat-mock-input-field {
  flex: 1;
  padding: 7px 12px;
  font-size: 0.8rem;
  color: var(--text-dark-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
}

.chat-mock-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4e83c9, var(--accent));
  color: #fff;
  box-shadow: 0 6px 16px rgba(61, 109, 173, 0.4);
  flex-shrink: 0;
}

.chat-mock-send svg {
  transform: rotate(-8deg) translateX(-1px);
  fill: currentColor;
}

.chat-mock-caption {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 8px 14px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--text-dark-muted);
  background: rgba(11, 18, 32, 0.85);
  border-top: 1px solid var(--border-dark);
}

@media (max-width: 640px) {
  .hero .lede { display: none; }
}

@media (max-width: 560px) {
  .chat-mock-wa-tag { display: none; }
  .chat-mock-ident strong { font-size: 0.76rem; }
  .chat-mock-ident span { font-size: 0.62rem; }
  .chat-bubble { font-size: 0.8rem; max-width: 86%; padding: 7px 10px 6px; }
  .chat-bubble p { padding-right: 38px; }
  .chat-tag { font-size: 0.52rem; padding: 1px 6px; }
  .chat-meta { font-size: 0.56rem; right: 8px; }
  .chat-mock-body { gap: 6px; padding: 12px; }
  .chat-mock-caption { font-size: 0.66rem; padding: 7px 10px 9px; }
}

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

@keyframes chatDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
}

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.55; }
  40%           { transform: translateY(-3px); opacity: 1; }
}

/* ---------- Qualification / Wizard ---------- */
.qualification-prompt {
  margin-bottom: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#qualification-wizard {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3.5vw, 32px);
  box-shadow: var(--shadow-md);
  text-align: left;
}

#lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light-muted);
  letter-spacing: 0.02em;
}

.progress-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(12, 26, 48, 0.08);
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 11%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: inherit;
  transition: width 320ms var(--ease);
}

.wizard-steps {
  position: relative;
}

.step {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
  animation: stepIn 260ms var(--ease);
}

.step.active {
  display: block;
}

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

.step legend {
  display: block;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--text-light);
}

/* Options (radio / checkbox as tappable cards) */
.option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 620px) {
  .option-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.option-grid label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  font-weight: 500;
  font-size: 0.98rem;
  cursor: pointer;
  transition: border-color 160ms var(--ease), background 160ms var(--ease),
    box-shadow 160ms var(--ease), transform 120ms var(--ease);
  user-select: none;
}

.option-grid label:hover {
  border-color: rgba(61, 109, 173, 0.4);
  background: rgba(125, 179, 245, 0.04);
}

.option-grid input[type="radio"],
.option-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  margin: 0;
}

.option-grid label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(125, 179, 245, 0.1);
  box-shadow: 0 0 0 3px rgba(125, 179, 245, 0.18);
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 620px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid .contact-grid-full {
    grid-column: 1 / -1;
  }
}

.contact-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light-muted);
  letter-spacing: 0.02em;
}

.contact-grid input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text-light);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.contact-grid input:focus,
.contact-grid input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 179, 245, 0.22);
}

.error-message {
  margin: 10px 0 0;
  min-height: 1em;
  font-size: 0.85rem;
  color: var(--danger);
}

.error-message:empty {
  display: none;
}

/* Wizard controls */
.wizard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

#prev-step {
  min-width: 92px;
}

#next-step,
#submit-lead {
  margin-left: auto;
  min-width: 140px;
}

#prev-step[disabled],
#prev-step[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.status-message {
  margin: 4px 0 0;
  min-height: 1em;
  font-size: 0.9rem;
  color: var(--text-light-muted);
}

.status-message[data-state="error"] {
  color: var(--danger);
}

.status-message[data-state="success"] {
  color: var(--accent);
}

/* ---------- Thank-you (inline) ---------- */
.thank-you--inline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
  background: linear-gradient(
      180deg,
      rgba(125, 179, 245, 0.1),
      rgba(125, 179, 245, 0.02)
    ),
    var(--surface-light);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.thank-you-bg {
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    closest-side,
    rgba(125, 179, 245, 0.18),
    transparent 70%
  );
  pointer-events: none;
}

.thank-you-inner {
  position: relative;
  display: flex;
  justify-content: center;
}

.thank-you-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 520px;
}

.thank-you-figure {
  position: relative;
  margin: 0 0 4px;
}

.thank-you-mark {
  filter: drop-shadow(0 20px 30px rgba(61, 109, 173, 0.25));
}

.thank-you-ring {
  fill: none;
  stroke: rgba(125, 179, 245, 0.35);
  stroke-width: 1.5;
  transform-origin: center;
  animation: ringPulse 4s var(--ease) infinite;
}

.thank-you-ring--inner {
  stroke: rgba(125, 179, 245, 0.55);
  animation-delay: 1s;
}

.thank-you-disc {
  fill: rgba(125, 179, 245, 0.12);
}

.thank-you-check {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: checkDraw 900ms var(--ease) 200ms forwards;
}

.thank-you-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0;
  animation: sparkle 3s var(--ease) infinite;
}

.thank-you-spark--1 {
  top: 12%;
  left: 8%;
}
.thank-you-spark--2 {
  top: 20%;
  right: 10%;
  animation-delay: 0.8s;
}
.thank-you-spark--3 {
  bottom: 14%;
  right: 22%;
  animation-delay: 1.6s;
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.5;
  }
}

@keyframes checkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.thank-you-badge {
  margin: 6px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.thank-you-lede {
  color: var(--text-light-muted);
  max-width: 48ch;
}

.thank-you-footnote {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  max-width: 52ch;
}

.thank-you-cta {
  margin-top: 6px;
}

/* ---------- Outcomes ---------- */
.outcomes-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  justify-items: center;
  width: 100%;
  margin-top: clamp(28px, 4vw, 40px);
  text-align: left;
}

@media (min-width: 880px) {
  .outcomes-preview {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    justify-items: stretch;
  }
}

.outcomes-callouts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 520px;
  width: 100%;
}

@media (min-width: 560px) {
  .outcomes-callouts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .outcomes-callouts {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

.outcomes-callouts li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 2px;
  align-items: start;
  padding: 14px 16px;
  background: linear-gradient(
      180deg,
      rgba(125, 179, 245, 0.05),
      rgba(125, 179, 245, 0)
    ),
    rgba(17, 28, 48, 0.55);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  color: var(--text-dark);
}

.outcomes-callouts li strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  grid-column: 2;
}

.outcomes-callouts li span:last-child {
  font-size: 0.86rem;
  color: var(--text-dark-muted);
  grid-column: 2;
  line-height: 1.45;
}

.callout-swatch {
  grid-row: span 2;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  box-shadow: 0 0 0 3px rgba(125, 179, 245, 0.14);
}

.outcomes-callouts li:nth-child(2) .callout-swatch {
  background: linear-gradient(180deg, #9cdcff, #4e83c9);
}
.outcomes-callouts li:nth-child(3) .callout-swatch {
  background: linear-gradient(180deg, #ffd88a, #e09a3f);
  box-shadow: 0 0 0 3px rgba(224, 154, 63, 0.18);
}
.outcomes-callouts li:nth-child(4) .callout-swatch {
  background: linear-gradient(180deg, #7ce0a6, #25a055);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  margin-top: clamp(32px, 5vw, 52px);
}

@media (min-width: 720px) {
  .card-grid.compact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: left;
}

.card-dark {
  position: relative;
  background: linear-gradient(
      180deg,
      rgba(125, 179, 245, 0.06),
      rgba(125, 179, 245, 0)
    ),
    var(--surface-dark);
  border: 1px solid var(--border-dark);
  color: var(--text-dark);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease),
    box-shadow 240ms var(--ease);
}

.card-dark:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 179, 245, 0.25);
  box-shadow: 0 20px 40px rgba(8, 18, 36, 0.35);
}

.card-dark h3 {
  color: var(--text-dark);
  margin-bottom: 8px;
}

.card-dark p {
  margin: 0;
  color: var(--text-dark-muted);
  font-size: 0.95rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 12px;
  color: var(--accent-soft);
  background: linear-gradient(
      180deg,
      rgba(125, 179, 245, 0.15),
      rgba(125, 179, 245, 0.04)
    );
  border: 1px solid rgba(125, 179, 245, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

/* ---------- Integrations strip ---------- */
.integrations {
  width: 100%;
  margin-top: clamp(44px, 6vw, 64px);
  padding: clamp(20px, 3vw, 28px) clamp(16px, 3vw, 28px);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(
      180deg,
      rgba(125, 179, 245, 0.04),
      rgba(125, 179, 245, 0)
    ),
    rgba(17, 28, 48, 0.55);
}

.integrations-label {
  margin: 0 0 clamp(16px, 2vw, 22px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  text-align: center;
}

.integrations-track {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 1.5vw, 14px);
}

@media (max-width: 720px) {
  .integrations-track {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }
}

.integ-node,
.integ-hub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dark);
}

.integ-node--wa {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
  color: var(--success);
}

.integ-node--wa svg {
  fill: currentColor;
}

.integ-hub {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  background: linear-gradient(180deg, rgba(125, 179, 245, 0.18), rgba(125, 179, 245, 0.04));
  border-color: rgba(125, 179, 245, 0.35);
  box-shadow: 0 10px 24px rgba(61, 109, 173, 0.25);
}

.integ-hub span {
  font-size: 0.88rem;
}

.integ-line {
  height: 1px;
  width: 100%;
  min-width: 24px;
  background: linear-gradient(
    90deg,
    rgba(125, 179, 245, 0.05),
    rgba(125, 179, 245, 0.55),
    rgba(125, 179, 245, 0.05)
  );
}

@media (max-width: 720px) {
  .integ-line {
    width: 2px;
    height: 22px;
    background: linear-gradient(
      180deg,
      rgba(125, 179, 245, 0.05),
      rgba(125, 179, 245, 0.55),
      rgba(125, 179, 245, 0.05)
    );
  }
}

.integ-stack {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

@media (max-width: 720px) {
  .integ-stack {
    justify-content: center;
  }
}

.integ-stack li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 160ms var(--ease), background 160ms var(--ease),
    transform 160ms var(--ease);
}

.integ-stack li:hover {
  border-color: rgba(125, 179, 245, 0.35);
  background: rgba(125, 179, 245, 0.08);
  transform: translateY(-1px);
}

.integ-stack li svg {
  color: var(--accent-soft);
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */
.faq-list {
  width: 100%;
  max-width: 760px;
  margin: clamp(20px, 3vw, 28px) auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.faq-item.open {
  border-color: rgba(61, 109, 173, 0.3);
  box-shadow: 0 8px 24px rgba(8, 18, 36, 0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-light);
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 200ms var(--ease);
  line-height: 1;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms var(--ease);
}

.faq-answer p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--text-light-muted);
  font-size: 0.96rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  isolation: isolate;
}

.final-cta-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cta-bubble {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px 14px 14px 4px;
  background: linear-gradient(180deg, rgba(125, 179, 245, 0.14), rgba(125, 179, 245, 0.04));
  border: 1px solid rgba(125, 179, 245, 0.28);
  color: var(--accent-soft);
  box-shadow: 0 10px 30px rgba(8, 18, 36, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: ctaBubbleFloat 7s var(--ease) infinite;
}

.cta-bubble svg {
  fill: currentColor;
}

.cta-bubble--1 {
  top: 18%;
  left: 8%;
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.15), rgba(37, 211, 102, 0.04));
  border-color: rgba(37, 211, 102, 0.35);
  color: var(--success);
  animation-delay: 0s;
}

.cta-bubble--2 {
  top: 28%;
  right: 10%;
  border-radius: 14px 14px 4px 14px;
  animation-delay: 1.4s;
}

.cta-bubble--3 {
  bottom: 22%;
  left: 14%;
  animation-delay: 2.8s;
}

.cta-bubble--4 {
  bottom: 18%;
  right: 12%;
  border-radius: 14px 14px 4px 14px;
  color: #ffd88a;
  border-color: rgba(255, 216, 138, 0.3);
  background: linear-gradient(180deg, rgba(255, 216, 138, 0.14), rgba(255, 216, 138, 0.04));
  animation-delay: 4.2s;
}

@media (max-width: 720px) {
  .cta-bubble { width: 34px; height: 34px; }
  .cta-bubble--1 { top: 10%; left: 6%; }
  .cta-bubble--2 { top: 14%; right: 6%; }
  .cta-bubble--3 { bottom: 10%; left: 8%; }
  .cta-bubble--4 { bottom: 12%; right: 6%; }
}

@keyframes ctaBubbleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.9; }
  50%      { transform: translateY(-8px) rotate(-2deg); opacity: 1; }
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  gap: 14px;
}

.final-cta .btn {
  margin-top: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-dark-muted);
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  padding-block: 28px;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Utility ---------- */
::selection {
  background: rgba(125, 179, 245, 0.35);
  color: #fff;
}
