.ebook-funnel-page {
  --funnel-blue: #0646f7;
  --funnel-blue-deep: #07116f;
  --funnel-cyan: #18add1;
  --funnel-navy: #071f2b;
  --funnel-ink: #091126;
  --funnel-muted: #4f586b;
  --funnel-gold: #ffcf66;
  --funnel-cream: #fff8ea;
  --funnel-white: #ffffff;
  --funnel-line: rgba(255, 255, 255, 0.22);
  --funnel-shadow: 0 34px 95px rgba(0, 8, 50, 0.32);
  overflow-x: hidden;
  background: var(--funnel-navy);
  color: var(--funnel-white);
}

.ebook-funnel-page h1,
.ebook-funnel-page h2,
.ebook-funnel-page h3,
.ebook-funnel-page p {
  margin-top: 0;
}

.ebook-funnel-page h1 {
  max-width: 650px;
  margin-bottom: 20px;
  font-size: 3.78rem;
  line-height: 1.01;
  letter-spacing: 0;
}

.ebook-funnel-page h2 {
  margin-bottom: 16px;
  font-size: 2.72rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.ebook-funnel-page h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  line-height: 1.16;
}

.ebook-funnel-page .hero {
  position: relative;
  min-height: 84svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 207, 102, 0.2), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(132deg, #07106f 0%, var(--funnel-blue) 54%, var(--funnel-cyan) 100%);
}

.ebook-funnel-page .hero::before,
.ebook-funnel-page .hero::after,
.ebook-funnel-page .hero-atmosphere {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ebook-funnel-page .hero::before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  background-size: 118px 118px, 100% 100%;
  opacity: 0.42;
}

.ebook-funnel-page .hero::after {
  background:
    linear-gradient(102deg, rgba(1, 7, 38, 0.2) 0%, transparent 42%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, transparent 0%, rgba(1, 7, 38, 0.16) 100%);
}

.ebook-funnel-page .hero-atmosphere {
  z-index: 0;
  background:
    radial-gradient(ellipse at 22% 54%, rgba(255, 255, 255, 0.16) 0 8%, transparent 34%),
    radial-gradient(ellipse at 72% 68%, rgba(7, 17, 111, 0.24) 0 12%, transparent 38%);
  opacity: 0.86;
}

.ebook-funnel-page .hero-shell,
.ebook-funnel-page .section-shell,
.ebook-funnel-page .unlock-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

.ebook-funnel-page .hero-shell {
  min-height: 84svh;
  padding: 24px 0 58px;
}

.ebook-funnel-page .brand-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--funnel-white);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ebook-funnel-page .brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.ebook-funnel-page .brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--funnel-gold);
  font-size: 0.72rem;
  font-weight: 950;
}

.ebook-funnel-page .brand-wordmark {
  color: var(--funnel-white);
  font-weight: 950;
}

.ebook-funnel-page .brand-rule {
  display: block;
  width: 42px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.ebook-funnel-page .brand-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
}

.ebook-funnel-page .hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1fr);
  gap: 74px;
  align-items: center;
  min-height: calc(84svh - 82px);
  padding-top: 16px;
}

.ebook-funnel-page .book-stage {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 480px;
}

.ebook-funnel-page .book-glow {
  position: absolute;
  width: min(490px, 100%);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 40% 60% 54% 46% / 52% 45% 55% 48%;
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 44%, transparent 68%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(24, 173, 209, 0.04));
  box-shadow: 0 34px 86px rgba(0, 8, 50, 0.2);
  transform: rotate(-8deg);
  animation: funnelGlow 8s ease-in-out infinite;
}

.ebook-funnel-page .book-stack {
  position: relative;
  z-index: 1;
  width: min(442px, 100%);
  filter: drop-shadow(0 42px 92px rgba(0, 8, 50, 0.34));
  animation: funnelFloat 7s ease-in-out infinite;
}

.ebook-funnel-page .book-stack::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 38px -30px -30px 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 34px 86px rgba(0, 8, 50, 0.18);
}

.ebook-funnel-page .book-stack img {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 26px 80px rgba(0, 8, 50, 0.28);
}

.ebook-funnel-page .book-note {
  position: absolute;
  z-index: 2;
  right: clamp(10px, 6vw, 54px);
  bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(6, 70, 247, 0.88);
  color: var(--funnel-white);
  box-shadow: 0 18px 48px rgba(0, 8, 50, 0.22);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ebook-funnel-page .hero-copy {
  max-width: 630px;
  min-width: 0;
}

.ebook-funnel-page .eyebrow {
  margin: 0 0 14px;
  color: var(--funnel-gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ebook-funnel-page .hero-lede {
  max-width: 565px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.87);
  font-size: 1rem;
  font-weight: 650;
}

.ebook-funnel-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.ebook-funnel-page .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border: 0;
  border-radius: 6px;
  padding: 16px 30px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.ebook-funnel-page .primary-btn:hover {
  transform: translateY(-2px);
}

.ebook-funnel-page .hero-cta {
  position: relative;
  gap: 14px;
  min-width: 276px;
  padding: 16px 22px 16px 32px;
  background: linear-gradient(135deg, var(--funnel-gold) 0%, #fff3a8 54%, var(--funnel-white) 100%);
  color: var(--funnel-blue-deep);
  box-shadow:
    0 22px 48px rgba(0, 8, 50, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.48) inset;
  font-size: 1rem;
}

.ebook-funnel-page .hero-cta::after,
.ebook-funnel-page .section-download-btn::after {
  content: "->";
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 12px;
  border-radius: 50%;
  background: rgba(7, 17, 111, 0.1);
  color: currentColor;
  font-weight: 950;
  line-height: 1;
}

.ebook-funnel-page .mobile-book-cta {
  display: none;
}

.ebook-funnel-page .signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ebook-funnel-page .signal-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 11px 17px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--funnel-white);
  box-shadow: 0 14px 32px rgba(0, 8, 50, 0.18);
  font-size: 0.92rem;
  font-weight: 900;
}

.ebook-funnel-page .signal-row span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--funnel-gold);
  box-shadow: 0 0 0 4px rgba(255, 207, 102, 0.16);
}

.ebook-funnel-page .unlock-section {
  position: relative;
  z-index: 2;
  margin-top: -46px;
  padding: 0 0 86px;
}

.ebook-funnel-page .unlock-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(380px, 0.9fr);
  gap: 70px;
  align-items: center;
  padding: 62px 72px;
  background: var(--funnel-white);
  color: var(--funnel-ink);
  box-shadow: var(--funnel-shadow);
}

.ebook-funnel-page .unlock-copy .eyebrow,
.ebook-funnel-page .shift-section .eyebrow,
.ebook-funnel-page .modal-panel .eyebrow {
  color: var(--funnel-blue);
}

.ebook-funnel-page .unlock-copy h2 {
  max-width: 510px;
  font-size: 2.46rem;
}

.ebook-funnel-page .unlock-copy p {
  max-width: 500px;
  color: var(--funnel-muted);
  font-size: 1.06rem;
  font-weight: 650;
}

.ebook-funnel-page .lead-form {
  display: grid;
  gap: 14px;
}

.ebook-funnel-page .field {
  display: grid;
  gap: 6px;
}

.ebook-funnel-page .lead-form label {
  color: var(--funnel-ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.ebook-funnel-page .lead-form input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(10, 16, 38, 0.22);
  border-radius: 3px;
  padding: 13px 14px;
  background: var(--funnel-white);
  color: var(--funnel-ink);
  outline: none;
}

.ebook-funnel-page .lead-form input:focus {
  border-color: var(--funnel-blue);
  box-shadow: 0 0 0 4px rgba(6, 70, 247, 0.12);
}

.ebook-funnel-page .form-btn {
  width: 100%;
  background: var(--funnel-blue);
  color: var(--funnel-white);
  box-shadow: 0 18px 42px rgba(6, 70, 247, 0.24);
}

.ebook-funnel-page .hidden-field {
  display: none;
}

.ebook-funnel-page .section {
  padding: 86px 0;
}

.ebook-funnel-page .shift-section {
  background: var(--funnel-cream);
  color: var(--funnel-ink);
}

.ebook-funnel-page .section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.ebook-funnel-page .shift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ebook-funnel-page .shift-grid article {
  min-height: 250px;
  padding: 26px;
  background: var(--funnel-white);
  box-shadow: 0 18px 46px rgba(7, 31, 43, 0.08);
}

.ebook-funnel-page .shift-grid span {
  display: block;
  margin-bottom: 30px;
  color: var(--funnel-blue);
  font-weight: 950;
}

.ebook-funnel-page .shift-grid p {
  color: #555d68;
}

.ebook-funnel-page .section-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 36px;
}

.ebook-funnel-page .section-download-btn {
  min-width: 238px;
  min-height: 66px;
  padding: 18px 34px;
  background: var(--funnel-blue);
  color: var(--funnel-white);
  box-shadow: 0 18px 42px rgba(6, 70, 247, 0.24);
  font-size: 1.04rem;
}

.ebook-funnel-page .manifesto-section {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 207, 102, 0.16), transparent 30%),
    linear-gradient(135deg, var(--funnel-navy) 0%, #082d42 100%);
}

.ebook-funnel-page .manifesto-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 42px;
  align-items: stretch;
}

.ebook-funnel-page .manifesto-copy {
  display: grid;
  align-content: center;
}

.ebook-funnel-page .manifesto-card {
  border-left: 4px solid rgba(255, 207, 102, 0.78);
  padding: 28px 0 28px 30px;
}

.ebook-funnel-page .manifesto-card p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  font-weight: 600;
}

.ebook-funnel-page .manifesto-card .section-download-btn {
  background: var(--funnel-white);
  color: var(--funnel-blue-deep);
}

.ebook-funnel-page.modal-open {
  overflow: hidden;
}

.ebook-funnel-page .optin-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.ebook-funnel-page .optin-modal[hidden] {
  display: none;
}

.ebook-funnel-page .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 7, 38, 0.72);
  backdrop-filter: blur(8px);
}

.ebook-funnel-page .modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100svh - 48px);
  overflow: auto;
  padding: 34px;
  background: var(--funnel-white);
  color: var(--funnel-ink);
  box-shadow: var(--funnel-shadow);
}

.ebook-funnel-page .modal-panel h2 {
  margin-bottom: 10px;
  font-size: 2.25rem;
}

.ebook-funnel-page .modal-panel > p {
  color: var(--funnel-muted);
  font-weight: 650;
}

.ebook-funnel-page .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: var(--funnel-blue);
  color: var(--funnel-white);
  font-weight: 900;
  cursor: pointer;
}

.ebook-funnel-page .modal-form {
  margin-top: 20px;
}

@keyframes funnelFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes funnelGlow {
  0%,
  100% {
    transform: rotate(-8deg) scale(1);
  }

  50% {
    transform: rotate(-5deg) scale(1.025);
  }
}

@media (min-width: 720px) and (max-height: 760px) {
  .ebook-funnel-page h1 {
    font-size: 3.34rem;
  }

  .ebook-funnel-page .hero-grid {
    gap: 52px;
    min-height: calc(84svh - 76px);
  }

  .ebook-funnel-page .book-stage {
    min-height: 430px;
  }

  .ebook-funnel-page .book-stack {
    width: min(392px, 100%);
  }

  .ebook-funnel-page .hero-lede {
    margin-bottom: 20px;
    font-size: 0.98rem;
  }
}

@media (max-width: 1020px) {
  .ebook-funnel-page h1 {
    font-size: 4rem;
  }

  .ebook-funnel-page .hero-grid,
  .ebook-funnel-page .unlock-shell,
  .ebook-funnel-page .manifesto-panel {
    grid-template-columns: 1fr;
  }

  .ebook-funnel-page .hero-grid {
    gap: 34px;
  }

  .ebook-funnel-page .book-stage {
    min-height: auto;
  }

  .ebook-funnel-page .book-stack {
    width: min(370px, 100%);
  }

  .ebook-funnel-page .book-note {
    position: static;
    width: max-content;
    margin: 14px auto 0;
  }
}

@media (max-width: 719px) {
  .ebook-funnel-page .hero-shell,
  .ebook-funnel-page .section-shell,
  .ebook-funnel-page .unlock-shell {
    width: min(100% - 24px, 1180px);
  }

  .ebook-funnel-page .hero {
    min-height: auto;
    background:
      radial-gradient(circle at 14% 24%, rgba(255, 207, 102, 0.18), transparent 26%),
      linear-gradient(132deg, #07106f 0%, var(--funnel-blue) 58%, var(--funnel-cyan) 100%);
  }

  .ebook-funnel-page .hero::before {
    background-size: 86px 86px, 100% 100%;
    opacity: 0.34;
  }

  .ebook-funnel-page .hero-shell {
    min-height: auto;
    padding: 18px 0 52px;
  }

  .ebook-funnel-page .brand-line {
    width: 100%;
    gap: 9px;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
  }

  .ebook-funnel-page .brand-mark {
    display: none;
  }

  .ebook-funnel-page .brand-rule {
    flex: 0 0 34px;
  }

  .ebook-funnel-page .brand-kicker {
    font-size: 0.62rem;
  }

  .ebook-funnel-page .hero-grid {
    gap: 24px;
    min-height: auto;
    padding-top: 18px;
  }

  .ebook-funnel-page h1 {
    max-width: 342px;
    margin-bottom: 16px;
    font-size: 2.18rem;
    line-height: 1.05;
  }

  .ebook-funnel-page h2 {
    font-size: 2.1rem;
  }

  .ebook-funnel-page .hero-copy {
    order: 2;
    width: 100%;
    max-width: calc(100vw - 24px);
  }

  .ebook-funnel-page .hero-lede {
    max-width: 342px;
    margin-bottom: 0;
    font-size: 0.96rem;
    overflow-wrap: anywhere;
  }

  .ebook-funnel-page .hero-actions {
    display: none;
  }

  .ebook-funnel-page .primary-btn {
    width: 100%;
  }

  .ebook-funnel-page .signal-row {
    gap: 8px;
    margin-top: 22px;
  }

  .ebook-funnel-page .signal-row span {
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  .ebook-funnel-page .book-stage {
    order: 1;
    display: grid;
    justify-items: center;
    min-height: auto;
  }

  .ebook-funnel-page .book-glow {
    width: min(338px, calc(100vw - 32px));
  }

  .ebook-funnel-page .book-stack {
    width: min(322px, calc(100vw - 48px));
    filter: drop-shadow(0 24px 62px rgba(0, 8, 50, 0.34));
  }

  .ebook-funnel-page .book-stack::before {
    inset: 20px -14px -16px 16px;
  }

  .ebook-funnel-page .book-note {
    position: absolute;
    right: max(20px, calc((100vw - 322px) / 2 + 8px));
    bottom: 76px;
    width: max-content;
    margin: 0;
    padding: 9px 13px;
    font-size: 0.72rem;
  }

  .ebook-funnel-page .book-stage .mobile-book-cta {
    display: inline-flex;
    width: min(322px, calc(100vw - 48px));
    min-height: 58px;
    margin-top: 18px;
    background: linear-gradient(135deg, var(--funnel-gold) 0%, #fff3a8 54%, var(--funnel-white) 100%);
    color: var(--funnel-blue-deep);
    font-size: 1rem;
    box-shadow: 0 18px 42px rgba(0, 8, 50, 0.24);
  }

  .ebook-funnel-page .unlock-section {
    margin-top: 0;
    padding: 0 0 56px;
    background: var(--funnel-navy);
  }

  .ebook-funnel-page .unlock-shell {
    gap: 22px;
    padding: 28px 22px;
  }

  .ebook-funnel-page .unlock-copy h2 {
    font-size: 2rem;
  }

  .ebook-funnel-page .lead-form input {
    min-height: 54px;
  }

  .ebook-funnel-page .section {
    padding: 58px 0;
  }

  .ebook-funnel-page .shift-grid,
  .ebook-funnel-page .manifesto-panel {
    grid-template-columns: 1fr;
  }

  .ebook-funnel-page .shift-grid article {
    min-height: auto;
  }

  .ebook-funnel-page .manifesto-card {
    border-left: 0;
    border-top: 3px solid rgba(255, 207, 102, 0.78);
    padding: 22px 0 0;
  }

  .ebook-funnel-page .modal-panel {
    padding: 30px 22px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebook-funnel-page .book-glow,
  .ebook-funnel-page .book-stack {
    animation: none;
  }
}
