/* ==========================================================================
   ZERO TO 524 — TWO-STEP LEAD FUNNEL STYLES
   ========================================================================== */

/* ---- Reset & Base Defaults ---- */
.funnel-body {
  margin: 0;
  padding: 0;
  background: #05070d;
  font-family: 'Manrope', system-ui, sans-serif;
  color: #e8edf6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.funnel-body * {
  box-sizing: border-box;
}

/* ---- Animations ---- */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes barfill {
  from { width: 0; }
  to { width: 50%; }
}

/* ---- Focus ring ---- */
.funnel-body input:focus {
  outline: none;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18) !important;
}

/* ==========================================================================
   COMMON COMPONENTS
   ========================================================================== */

/* Logo mark */
.funnel-logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.funnel-logo-icon {
  width: 34px;
  height: 34px;
  display: block;
}

.funnel-logo-icon--small {
  width: 30px;
  height: 30px;
}

.funnel-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.funnel-logo-text--small {
  font-size: 16px;
}

.funnel-logo-text-gradient {
  background: linear-gradient(120deg, #4d8bff, #22d3ee 60%, #10c8a0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Eyebrow badge */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #2fd6c4;
  text-transform: uppercase;
  border: 1px solid #1e3a3f;
  background: rgba(16,200,160,0.06);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Text style utilities */
.text-gradient {
  background: linear-gradient(120deg, #4d8bff, #22d3ee 55%, #10c8a0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-dim-gray {
  color: #6f7da0;
}

/* Navigation button */
.btn-nav {
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3f7df6, #2f6ef0);
  padding: 11px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px -8px rgba(63,125,246,0.7);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nav:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Input Fields */
.input-field {
  background: #0c1220;
  border: 1px solid #212a3d;
  border-radius: 12px;
  padding: 17px 18px;
  color: #e8edf6;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-field::placeholder {
  color: #586079;
}

.input-field.error {
  border-color: #f43f5e !important;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.18) !important;
}

.input-error {
  color: #f43f5e;
  font-size: 13px;
  font-weight: 500;
  margin-top: 6px;
  display: block;
}

/* Buttons */
.btn-primary {
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4181f7, #2f6ef0);
  padding: 17px 26px;
  border-radius: 12px;
  box-shadow: 0 12px 30px -10px rgba(63,125,246,0.7);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* ==========================================================================
   SCREEN 1: LANDING PAGE
   ========================================================================== */

.screen-landing {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 100% at 100% 0%, #0e1730 0%, #080b14 55%, #06080f 100%);
  min-height: 100vh;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 64px);
}

.hero-container {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding: clamp(24px, 4vw, 56px) clamp(20px, 5vw, 64px) 70px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.text-col {
  flex: 1 1 460px;
  min-width: 300px;
}

.h1-landing {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 22px 0 0;
  text-wrap: balance;
}

.desc-landing {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: #8b93a7;
  line-height: 1.6;
  margin: 22px 0 0;
  max-width: 480px;
}

.capture-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.capture-row .input-field {
  width: 100%;
}

.capture-row .btn-primary {
  flex: 0 0 auto;
}

.footnote {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6f7da0;
  margin: 14px 0 0;
}

/* PDF book mockup rendering */
.cover-col {
  flex: 1 1 360px;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.cover-wrapper {
  position: relative;
  perspective: 1500px;
}

.cover-glow {
  position: absolute;
  inset: -18% -14%;
  background: radial-gradient(56% 56% at 50% 42%, rgba(63,125,246,0.26), transparent 72%);
  filter: blur(26px);
  z-index: 0;
  pointer-events: none;
}

.cover-3d {
  position: relative;
  z-index: 1;
  transform: rotateY(15deg) rotateX(4deg);
  transform-style: preserve-3d;
  animation: floaty 8s ease-in-out infinite;
}

.page-stack {
  position: absolute;
  top: 10px;
  left: -11px;
  bottom: 10px;
  width: 18px;
  border-radius: 6px 3px 3px 6px;
  background: linear-gradient(270deg, #1a2336, #0a0f1b);
  box-shadow: -6px 0 14px -6px rgba(0,0,0,0.7);
}

.cover-face {
  position: relative;
  width: 330px;
  aspect-ratio: 1 / 1.33;
  border-radius: 13px;
  background: linear-gradient(158deg, #101a2e 0%, #0a0f1b 100%);
  border: 1px solid rgba(86,124,196,0.28);
  box-shadow: 0 50px 90px -36px rgba(0,0,0,0.85);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cover-stripe {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: linear-gradient(180deg, #10c8a0, #22d3ee 50%, #3b82f6);
}

.cover-circle {
  position: absolute;
  left: -60px;
  bottom: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,200,160,0.16), transparent 70%);
  pointer-events: none;
}

.cover-badge-free {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #0a0f1b;
  background: linear-gradient(120deg, #22d3ee, #10c8a0);
  padding: 4px 9px;
  border-radius: 999px;
}

.cover-badge-edition {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #6f7da0;
}

.cover-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 80px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -2px;
  background: linear-gradient(120deg, #4d8bff, #22d3ee 55%, #10c8a0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cover-divider {
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #10c8a0, #3b82f6);
  margin: 14px 0;
}

.cover-title {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #eef3fb;
}

.cover-author-row {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(86,124,196,0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cover-author-label {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #8b93a7;
}

.cover-author-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #e8edf6;
}

/* ==========================================================================
   SCREEN 2: THANK YOU / UPSELL PAGE
   ========================================================================== */

.screen-thanks {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: radial-gradient(110% 90% at 50% -10%, #0e1730 0%, #080b14 55%, #06080f 100%);
  min-height: 100vh;
}

/* 1. progress bar */
.progress-bar-container {
  width: 100%;
}

.progress-bar-track {
  height: 8px;
  width: 100%;
  background: #0c1220;
}

.progress-bar-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #3b82f6, #22d3ee 60%, #10c8a0);
  animation: barfill 0.9s cubic-bezier(.4,0,.2,1) both;
}

.sub-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 64px);
}

.sub-nav-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.status-done {
  color: #2fd6c4;
}

.status-pct {
  color: #8b93a7;
}

.status-bullet {
  color: #4a5570;
}

/* 2. confirmation content */
.thanks-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 64px) 70px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  animation: risein 0.6s ease both;
}

.success-checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16,200,160,0.12);
  border: 1px solid rgba(16,200,160,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #2fd6c4;
}

.h1-thanks {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  margin: 22px 0 0;
  text-wrap: balance;
}

.thanks-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #8b93a7;
  line-height: 1.6;
  margin: 14px 0 0;
}

.email-highlight {
  color: #e8edf6;
  font-weight: 700;
}

/* 3. Strategy Call Card */
.upsell-card {
  margin-top: 40px;
  width: 100%;
  background: linear-gradient(180deg, #11182a, #0d1320);
  border: 1px solid #1c2538;
  border-radius: 22px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.8);
  text-align: left;
}

.upsell-h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  margin: 18px 0 0;
  text-wrap: balance;
}

.upsell-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #8b93a7;
  line-height: 1.65;
  margin: 14px 0 0;
}

.upsell-label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #cdd5e6;
  margin: 26px 0 10px;
}

.upsell-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.upsell-row .input-field {
  width: 100%;
}

.upsell-row .btn-primary {
  flex: 1 1 260px;
}

.opt-out-container {
  text-align: center;
  margin-top: 20px;
}

.opt-out-link {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6f7da0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.opt-out-link:hover {
  color: #9fb4d6;
}

/* 4. Claimed Success Card */
.claimed-card {
  margin-top: 40px;
  width: 100%;
  background: linear-gradient(180deg, #0f1f1c, #0d1320);
  border: 1px solid rgba(16,200,160,0.3);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.8);
}

.claimed-title {
  font-family: 'Manrope', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #2fd6c4;
}

.claimed-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #8b93a7;
  line-height: 1.6;
  margin: 14px 0 0;
}

.phone-highlight {
  color: #e8edf6;
  font-weight: 700;
}

.claimed-link {
  display: inline-block;
  margin-top: 22px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #9fb4d6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav-row {
    padding: 20px 24px;
  }
  
  .hero-container {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 24px 60px;
  }
  
  .text-col {
    flex: none;
    width: 100%;
    min-width: unset;
  }
  
  .cover-col {
    flex: none;
    width: 100%;
    min-width: unset;
    margin-top: 12px;
  }
  
  .capture-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .capture-row .input-field {
    flex: none;
    width: 100%;
  }
  
  .capture-row .btn-primary {
    flex: none;
    width: 100%;
  }

  .upsell-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .upsell-row .input-field {
    flex: none;
    width: 100%;
  }
  
  .upsell-row .btn-primary {
    flex: none;
    width: 100%;
  }
}
