/* DRAW MEDIA - paid-ads landing funnel (paid-ads, thank-you, not-a-fit).
   Loaded after main.css; reuses its tokens, buttons, fields and .quiz-* styles. */

.lp {
  --lp-header-h: 64px;
}

/* ---------- slim header (no nav - ad traffic stays on the funnel) ---------- */
.lp-header {
  height: var(--lp-header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--space-gutter);
  border-bottom: 1px solid var(--line);
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lp-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* ---------- hero: must fit one screen on every device ---------- */
.lp-hero {
  height: calc(100vh - var(--lp-header-h));
  height: calc(100svh - var(--lp-header-h));
  position: relative;
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 62%, rgba(235, 5, 5, 0.13), transparent 70%);
  pointer-events: none;
}

.lp-hero-inner {
  position: relative;
  height: 100%;
  width: min(1100px, 100% - 2 * var(--space-gutter));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.7rem, 2.2vh, 1.5rem);
  padding-block: clamp(0.9rem, 3.5vh, 2.75rem) clamp(1rem, 4vh, 3rem);
  animation: lp-rise 700ms var(--ease-out) both;
}

.lp-title {
  font-size: clamp(1.65rem, min(5.4vw, 6.6vh), 4.4rem);
  line-height: 1.02;
  max-width: 15em;
  flex: none;
  text-wrap: balance;
}

.lp-title .accent {
  display: block;
}

.lp-sub {
  font-size: clamp(0.86rem, min(1.6vw, 2.15vh), 1.15rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 50em;
  flex: none;
  text-wrap: pretty;
}

/* the video takes whatever height is left, so the CTA never falls below the fold */
.lp-vsl-slot {
  flex: 1 1 0;
  min-height: 110px;
  width: 100%;
  container-type: size;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-vsl-slot .lp-video {
  width: min(100cqw, 100cqh * 16 / 9);
}

.lp-cta {
  flex: none;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  padding: 1.1rem 2.6rem;
  min-height: 58px;
  box-shadow: 0 10px 40px -12px rgba(235, 5, 5, 0.65);
}

.lp-cta svg {
  transition: transform var(--dur-fast) var(--ease-out);
}

.lp-cta:hover svg {
  transform: translateX(4px);
}

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

/* ---------- video embed / placeholder ---------- */
.lp-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
}

.lp-video iframe,
.lp-video > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.lp-video-play {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lp-video-play span:first-child {
  width: clamp(48px, 9cqw, 76px);
  height: clamp(48px, 9cqw, 76px);
  min-width: 48px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 10px rgba(235, 5, 5, 0.15);
}

.lp-video-play svg {
  width: 40%;
  height: 40%;
  margin-left: 6%;
  fill: #fff;
}

button.lp-video {
  cursor: pointer;
  padding: 0;
}

button.lp-video:hover .lp-video-play span:first-child {
  background: var(--red-hover);
}

/* ---------- questionnaire (reuses .quiz-* from main.css) ---------- */
.lp-quiz-main {
  display: flex;
  justify-content: center;
  padding: clamp(1.75rem, 7vh, 4.5rem) var(--space-gutter) clamp(2rem, 6vh, 4rem);
}

.lp-quiz-wrap {
  width: min(680px, 100%);
}

.lp-quiz-intro {
  color: var(--muted);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
  padding-bottom: clamp(1.25rem, 3vh, 1.75rem);
  border-bottom: 1px solid var(--line);
}

.lp-quiz-intro strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

#lp-quiz-root .quiz-step {
  gap: 1.5rem;
}

#lp-quiz-root .quiz-count {
  font-size: 0.95rem;
  letter-spacing: 0.15em;
}

#lp-quiz-root .quiz-q {
  font-size: clamp(1.45rem, 4vw, 2.3rem);
}

#lp-quiz-root .field {
  margin-bottom: 1.1rem;
}

.lp-form-error {
  color: var(--red-hover);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ---------- thank-you / not-a-fit pages ---------- */
.lp-narrow {
  width: min(880px, 100% - 2 * var(--space-gutter));
  margin-inline: auto;
}

.lp-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.lp-page-title {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  max-width: 18em;
}

.lp-h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
}

.lp-section {
  padding-block: clamp(3rem, 9vh, 6rem);
}

.lp-section + .lp-section {
  padding-top: 0;
}

/* thank-you page: tighter rhythm so less scrolling */
.lp-ty .lp-section {
  padding-block: clamp(1.75rem, 5vh, 3rem);
}

.lp-ty .lp-section:first-child {
  padding-bottom: clamp(1.5rem, 4vh, 2.25rem);
}

.lp-ty .lp-section + .lp-section {
  padding-top: 0;
}

.lp-ty .lp-center {
  gap: 1rem;
}

.lp-ty .lp-h2 {
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.lp-h2-soft {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.lp-ty .lp-faq summary {
  padding: 1.1rem 0;
}

/* animated tick: circle pops in, ring pulses, then the check draws itself */
.lp-ty .success-badge {
  position: relative;
  width: 76px;
  height: 76px;
  animation: lp-badge-pop 550ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.lp-ty .success-badge::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid var(--red);
  animation: lp-badge-ring 1.1s 450ms var(--ease-out) both;
}

.lp-ty .success-badge path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: lp-tick-draw 450ms 380ms var(--ease-out) forwards;
}

@keyframes lp-badge-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lp-badge-ring {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes lp-tick-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* reviews */
.lp-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}

.lp-review {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lp-stars {
  display: flex;
  gap: 0.2rem;
}

.lp-stars svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: var(--red);
}

.lp-review blockquote {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
}

.lp-review figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lp-review figcaption strong {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.lp-review figcaption span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* FAQs */
.lp-faq {
  border-top: 1px solid var(--line);
}

.lp-faq details {
  border-bottom: 1px solid var(--line);
}

.lp-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.4rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: color var(--dur-fast) ease-in-out;
}

.lp-faq summary::-webkit-details-marker {
  display: none;
}

.lp-faq summary:hover {
  color: var(--red-hover);
}

.lp-faq summary::after {
  content: "";
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  transition: transform var(--dur-med) var(--ease-out), background-color var(--dur-fast) ease-in-out;
}

.lp-faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--red);
  border-color: var(--red);
}

.lp-faq-answer {
  color: var(--muted);
  padding: 0 3.5rem 1.6rem 0;
  max-width: 46em;
}

.lp-faq details[open] .lp-faq-answer {
  animation: lp-rise 400ms var(--ease-out);
}

.lp-footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--space-gutter);
  text-align: center;
  color: var(--muted-2);
  font-size: 0.85rem;
}

.lp-footer a:hover {
  color: var(--text);
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .lp {
    --lp-header-h: 56px;
  }

  .lp-brand img {
    width: 32px;
    height: 32px;
  }

  .lp-title {
    font-size: clamp(1.55rem, min(7.6vw, 5.2vh), 2.4rem);
  }

  .lp-sub {
    font-size: clamp(0.82rem, min(3.6vw, 2.05vh), 0.98rem);
    line-height: 1.45;
  }

  .lp-cta {
    width: 100%;
    max-width: 440px;
    padding-inline: 1.25rem;
  }

  .lp-faq-answer {
    padding-right: 0;
  }
}

/* phones held landscape are too short for everything on one screen -
   let the hero scroll rather than squash the video or clip the button */
@media (max-height: 500px) {
  .lp-hero {
    height: auto;
  }

  .lp-vsl-slot {
    flex: none;
    container-type: normal;
  }

  .lp-vsl-slot .lp-video {
    width: min(100%, 560px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-inner,
  .lp-faq details[open] .lp-faq-answer,
  .lp-ty .success-badge,
  .lp-ty .success-badge::after {
    animation: none;
  }

  .lp-ty .success-badge::after {
    opacity: 0;
  }

  .lp-ty .success-badge path {
    animation: none;
    stroke-dashoffset: 0;
  }
}
