/* AI Ecom Ads Prompts — lead magnet funnel
   Values mirror the "Prompt Pack Funnel" Claude Design handoff. */

/* Theme. Every shade is derived from the primary color (#00674F); funnel.js
   recomputes these from public/config.js, so edit the color there, not here. */
:root {
  --p: #00674F;
  --p-top: #00765B;
  --p-bot: #005542;
  --p-deep: #004434;
  --p-deeper: #002920;
  --p-tint: #E6F0ED;
  --p-glow: rgba(0, 103, 79, .8);
  --p-ring: rgba(0, 103, 79, .16);
  --bg: #FFFFFF;
  --panel: #F0F6F4;
  /* Dark "screening room" sections (video reel, thank-you page). */
  --p-night: #00130E;
  --p-bright: #54DEBE;
  --p-haze: rgba(0, 103, 79, .5);
  /* Fixed gold accent, from the "Free" tag on the cover. */
  --gold-top: #F2D079;
  --gold-bot: #C9912A;
  --gold-ink: #2E2206;
  --gold-glow: rgba(201, 145, 42, .75);
}

html, body { margin: 0; background: #FFFFFF; }
*, *::before, *::after { box-sizing: border-box; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: #00674F; }
a:hover { color: #004434; }
::selection { background: #00674F; color: #FFFFFF; }
input::placeholder { color: #9AA39F; }
[hidden] { display: none !important; }

.page {
  min-height: 100vh;
  background: var(--bg);
  color: #131816;
  font-family: 'Barlow', system-ui, sans-serif;
  overflow-x: hidden;
}

.accent { color: var(--p); }

/* Primary call to action (hero + "what's inside") */
.cta {
  width: 100%;
  max-width: 470px;
  border: none;
  cursor: pointer;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(21px, 2.8vw, 26px);
  line-height: 1.1;
  color: #FFFFFF;
  background: linear-gradient(180deg, var(--p-top), var(--p-bot));
  padding: 21px 28px;
  border-radius: 11px;
  box-shadow: 0 16px 34px -14px var(--p-glow);
}
.cta--gold {
  color: var(--gold-ink);
  background: linear-gradient(180deg, var(--gold-top), var(--gold-bot));
  box-shadow: 0 16px 34px -14px var(--gold-glow);
}

/* ---------------------------------------------------------------- Hero */

.hero { padding: clamp(44px, 7vw, 76px) 22px clamp(52px, 7vw, 72px); }

.hero__inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--p-tint);
  color: var(--p-deep);
  border-radius: 100px;
  padding: 8px 18px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--p);
}

.hero__title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: .005em;
  font-size: clamp(34px, 6.4vw, 58px);
  color: #131816;
  margin: 22px 0 0;
  text-wrap: balance;
}

.hero__sub {
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
  color: #4B5550;
  max-width: 40ch;
  margin: 22px 0 0;
  text-wrap: pretty;
}

/* The ebook (an image with a transparent background) and six looping ads that
   fan out from behind it. The ads are decoration: no controls, and pointer
   events pass straight through them. */
.showcase {
  --stage-h: 400px;
  position: relative;
  width: 100%;
  height: var(--stage-h);
  margin-top: 14px;
  display: grid;
  place-items: center;
}
.cover {
  position: relative;
  z-index: 10;
  display: block;
  width: 172px;
  height: auto;
}

.fan {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.fan__card {
  --cw: 84px;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--cw);
  z-index: var(--z);
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
}
.fan__phone {
  padding: 4px;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(19, 24, 22, .07), 0 22px 38px -20px rgba(8, 16, 13, .55), 0 3px 8px rgba(8, 16, 13, .1);
}
.fan__phone video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  object-fit: cover;
  background: #0C1110;
}

/* x/y from the ebook's centre, r = tilt, z = stacking (inner cards on top), o = pop order */
.fan__card--l1 { --x: -60px;  --y: -120px; --r: -8deg;  --z: 3; --o: 0; }
.fan__card--r1 { --x: 60px;   --y: -120px; --r: 8deg;   --z: 3; --o: 1; }
.fan__card--l2 { --x: -118px; --y: -8px;   --r: -13deg; --z: 2; --o: 2; }
.fan__card--r2 { --x: 118px;  --y: -8px;   --r: 13deg;  --z: 2; --o: 3; }
.fan__card--l3 { --x: -102px; --y: 106px;  --r: -19deg; --z: 1; --o: 4; }
.fan__card--r3 { --x: 102px;  --y: 106px;  --r: 19deg;  --z: 1; --o: 5; }

@media (min-width: 640px) {
  .showcase { --stage-h: 380px; margin-top: 0; }
  .cover { width: 200px; }
  .fan__card { --cw: 112px; }
  .fan__phone { border-radius: 20px; padding: 5px; }
  .fan__phone video { border-radius: 15px; }
  .fan__card--l1 { --x: -128px; --y: -44px; --r: -7deg; }
  .fan__card--r1 { --x: 128px;  --y: -44px; --r: 7deg; }
  .fan__card--l2 { --x: -236px; --y: 4px;   --r: -12deg; }
  .fan__card--r2 { --x: 236px;  --y: 4px;   --r: 12deg; }
  .fan__card--l3 { --x: -334px; --y: 76px;  --r: -17deg; }
  .fan__card--r3 { --x: 334px;  --y: 76px;  --r: 17deg; }
}

@media (min-width: 1024px) {
  .showcase { --stage-h: 400px; }
  .cover { width: 220px; }
  .fan__card { --cw: 140px; }
  .fan__phone { border-radius: 22px; }
  .fan__phone video { border-radius: 17px; }
  .fan__card--l1 { --x: -162px; --y: -20px; --r: -6deg; }
  .fan__card--r1 { --x: 162px;  --y: -20px; --r: 6deg; }
  .fan__card--l2 { --x: -306px; --y: 14px;  --r: -11deg; }
  .fan__card--r2 { --x: 306px;  --y: 14px;  --r: 11deg; }
  .fan__card--l3 { --x: -448px; --y: 74px;  --r: -16deg; }
  .fan__card--r3 { --x: 448px;  --y: 74px;  --r: 16deg; }
}

/* The pop: each card starts tucked behind the ebook and springs out, inner pair first. */
@media (prefers-reduced-motion: no-preference) {
  .fan__card {
    animation: fan-pop .9s cubic-bezier(.3, 1.45, .55, 1) both;
    animation-delay: calc(.35s + var(--o) * .09s);
  }
  .fan__phone {
    animation: fan-float calc(2.6s + var(--o) * .35s) ease-in-out calc(1.3s + var(--o) * .09s) infinite alternate;
  }
}
@keyframes fan-pop {
  from { transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(.5); }
}
@keyframes fan-float {
  to { transform: translateY(-7px); }
}

.hero__cta {
  margin-top: 48px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.privacy {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #69736E;
}

/* ------------------------------------------------------- What's inside */

.inside {
  background: var(--panel);
  border-top: 1px solid rgba(19, 24, 22, .07);
  padding: clamp(56px, 8vw, 88px) 22px clamp(64px, 8vw, 92px);
}

.inside__inner {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inside__title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: .005em;
  font-size: clamp(28px, 4.6vw, 42px);
  color: #131816;
  text-align: center;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: #FFFFFF;
  border: 1px solid rgba(19, 24, 22, .09);
  border-radius: 14px;
  padding: 18px 22px 18px 18px;
  box-shadow: 0 14px 30px -26px rgba(19, 24, 22, .55);
}
.benefit__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--p-top), var(--p-bot));
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit__icon::after {
  content: '';
  width: 7px;
  height: 12px;
  border-right: 2.5px solid #FFFFFF;
  border-bottom: 2.5px solid #FFFFFF;
  transform: translateY(-1px) rotate(45deg);
}
.benefit__text {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  color: #2A312E;
  padding-top: 1px;
  text-wrap: pretty;
}

.inside__cta {
  margin-top: 44px;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ------------------------------------------------------------ Video reel */

.reel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #FFFFFF;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, var(--p-haze), transparent 70%),
    var(--p-night);
  padding: clamp(56px, 8vw, 92px) 0 clamp(64px, 8vw, 96px);
}

.reel__head {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 22px;
  text-align: center;
}
.reel__kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--p-bright);
}
.reel__title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: .005em;
  font-size: clamp(28px, 4.6vw, 42px);
  color: #FFFFFF;
  margin: 12px auto 0;
  max-width: 20ch;
  text-wrap: balance;
}
.reel__accent { color: var(--p-bright); }
.reel__sub {
  margin: 14px auto 0;
  max-width: 40ch;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .7);
  text-wrap: pretty;
}

/* A full-bleed row that snaps card by card; the next card peeks in to invite a swipe. */
.reel__track {
  --card: clamp(210px, 66vw, 270px);
  --gutter: max(22px, calc((100vw - 1080px) / 2));
  list-style: none;
  margin: 40px 0 0;
  padding: 6px var(--gutter) 18px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.reel__track::-webkit-scrollbar { display: none; }
.reel__item {
  flex: 0 0 var(--card);
  scroll-snap-align: start;
}
/* All cards fit: centre them, no arrows needed */
.reel.is-static .reel__track { justify-content: center; }
.reel.is-static .reel__nav,
.reel.is-static .reel__swipe { display: none; }

.reel__card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0C1110;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 50px -30px rgba(0, 0, 0, .85);
}
.reel__card:focus-visible { outline: 3px solid var(--p-bright); outline-offset: 3px; }
.reel__card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
/* Scrim under the caption */
.reel__card::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
  pointer-events: none;
}
.reel__caption {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
}
.reel__tag {
  padding: 4px 9px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
/* Play badge, shown while a video is paused */
.reel__play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.reel__play::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: 3px;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent var(--p);
}
.reel__card.is-paused .reel__play { opacity: 1; transform: none; }

.reel__nav {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.reel__arrow {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #FFFFFF;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s, opacity .15s;
}
.reel__arrow::before {
  content: '';
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(-2px) rotate(45deg);
}
.reel__arrow--prev::before { transform: translateX(2px) rotate(-135deg); }
.reel__arrow:disabled { opacity: .35; cursor: default; }
.reel__arrow:focus-visible { outline: 3px solid var(--p-bright); outline-offset: 2px; }

.reel__cta {
  margin-top: 44px;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.privacy--light { color: rgba(255, 255, 255, .55); }

@media (prefers-reduced-motion: no-preference) {
  .reel__track { scroll-behavior: smooth; }
}

/* ----------------------------------------------------------- Lead modal */

/* The <dialog> itself is the full-screen dimmed layer; .lm-dialog is the card. */
.lm {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  color: inherit;
  background: rgba(8, 14, 12, .72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lm[open] { display: flex; }
.lm:not([open]) { display: none; }
.lm:focus { outline: none; }
.lm::backdrop { background: transparent; }

.lm-dialog {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: auto;
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
  color: #131816;
  font-family: 'Barlow', system-ui, sans-serif;
  text-align: left;
}

.lm-close {
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(19, 24, 22, .07);
  color: #56605B;
  font-family: 'Barlow', sans-serif;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lm-progress { height: 6px; background: var(--p-tint); }
.lm-progress__bar {
  height: 100%;
  width: 66%;
  background: linear-gradient(90deg, var(--p-top), var(--p-bot));
}

.lm-body { padding: 34px clamp(22px, 5vw, 40px) 30px; }

.lm-head {
  text-align: center;
  margin-bottom: 26px;
  padding: 0 24px;
}

.lm-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--p);
}

.lm-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: .96;
  letter-spacing: .005em;
  font-size: clamp(30px, 5.4vw, 42px);
  margin: 10px 0 0;
}

.lm-lede {
  color: #4B5550;
  font-size: 15.5px;
  line-height: 1.45;
  margin: 10px auto 0;
  max-width: 38ch;
  text-wrap: pretty;
}

.lm-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lm-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--p-deep);
  margin-bottom: 7px;
}

/* Text inputs */
.lm-control {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  color: #131816;
  background: #FFFFFF;
  border-radius: 10px;
  border-width: 1.5px;
  border-style: solid;
  border-color: rgba(19, 24, 22, .18);
  box-shadow: none;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lm-control:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 4px var(--p-ring);
}
.lm-control[aria-invalid="true"] { border-color: #B42318; }
.lm-control[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }

.lm-input { width: 100%; padding: 13px 15px; }
.lm-input--ig { padding: 13px 15px 13px 34px; }

.lm-ig { position: relative; }
.lm-ig__at {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 16px;
  font-weight: 600;
  color: #69736E;
  pointer-events: none;
}

.lm-error {
  color: #B42318;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.lm-submit-error {
  color: #B42318;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.lm-submit {
  margin-top: 6px;
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 22px;
  line-height: 1.1;
  color: #FFFFFF;
  background: linear-gradient(180deg, var(--p-top), var(--p-bot));
  padding: 18px;
  border-radius: 11px;
  box-shadow: 0 16px 34px -12px var(--p-glow);
  opacity: 1;
}
.lm-submit:disabled { opacity: .7; }

.lm-privacy {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #69736E;
}

/* Thank-you view */
.lm-thanks-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--p-top), var(--p-bot));
}

.lm-thanks {
  padding: 52px clamp(22px, 5vw, 40px) 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lm-check {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--p-top), var(--p-bot));
  box-shadow: 0 16px 34px -12px var(--p-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lm-check::after {
  content: '';
  width: 20px;
  height: 36px;
  border-right: 6px solid #FFFFFF;
  border-bottom: 6px solid #FFFFFF;
  border-radius: 0 0 2px 0;
  transform: translateY(-4px) rotate(45deg);
}

.lm-thanks__eyebrow { margin-top: 26px; }

.lm-thanks__title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: .96;
  letter-spacing: .005em;
  font-size: clamp(34px, 6vw, 48px);
  margin: 10px 0 0;
}
.lm-thanks__title:focus { outline: none; }

.lm-thanks__text {
  color: #4B5550;
  font-size: 16px;
  line-height: 1.5;
  margin: 14px auto 0;
  max-width: 38ch;
  text-wrap: pretty;
}
.lm-thanks__text strong { color: #131816; font-weight: 700; }

.lm-done {
  margin-top: 30px;
  border: 2px solid #131816;
  background: transparent;
  color: #131816;
  cursor: pointer;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 18px;
  padding: 13px 40px;
  border-radius: 10px;
}

/* Hover states (skipped on touch screens so taps don't leave them stuck on) */
@media (hover: hover) {
  .cta:hover,
  .lm-submit:hover { filter: brightness(1.08); }
  .lm-close:hover { background: rgba(19, 24, 22, .13); }
  .lm-done:hover { background: #131816; color: #FFFFFF; }
  .reel__arrow:not(:disabled):hover { background: rgba(255, 255, 255, .14); }
}
