:root {
  /* Shared brand yellow — same value as the main site, so the two read as one brand */
  --brand-yellow: #e8a743;
  --brand-green: #37ca37;
  --brand-navy: #1f2236;
  --logo-accent: var(--brand-yellow);
  --yt-red: #ff0000;
  --headlinefont: "Oswald", ui-sans-serif, system-ui, sans-serif;
  --contentfont: "Poppins", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: #171717;
  font-family: var(--contentfont);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

.page { min-height: 100vh; background: #fff; }
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 32px 12px;
}

/* ---------- header ---------- */
.site-header { display: flex; justify-content: center; margin-bottom: 16px; }
.logo { height: auto; width: auto; max-height: 48px; object-fit: contain; }

.wordmark {
  display: inline-flex;
  gap: 0.3em;
  font-family: var(--contentfont);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
}
.wordmark-1 { color: var(--brand-navy); }
.wordmark-2 { color: var(--logo-accent); }

/* ---------- hero copy ---------- */
.hero-copy { text-align: center; }
.hero-copy h1 {
  margin: 0;
  font-family: var(--headlinefont);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--brand-yellow);
}
.price {
  margin: 8px 0 0;
  font-family: var(--contentfont);
  font-size: 30px;
  font-style: italic;
  font-weight: 800;
  color: #000;
}

/* ---------- video facade ---------- */
.hero-video { position: relative; max-width: 768px; margin: 32px auto 0; }

.video-facade {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #e5e5e5;
}
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-9x16 { aspect-ratio: 9 / 16; }

.video-facade iframe,
.facade-poster,
.facade-blank {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.facade-blank { background: #e5e5e5; }

.facade-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
  transition: background-color 150ms;
}
.facade-play:hover { background: rgba(0, 0, 0, 0.35); }
.facade-play:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 2px;
}
.yt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.25rem;
  width: 4.75rem;
  border-radius: 0.55rem;
  background: var(--yt-red);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 255, 255, 0.95);
  transition: transform 150ms;
}
.facade-play:hover .yt-btn,
.facade-play:focus-visible .yt-btn { transform: scale(1.05); }
.yt-btn svg { height: 2rem; width: 2rem; margin-left: 4px; color: #fff; }

/* ---------- step line ---------- */
.step {
  margin: 24px 0 0;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #171717;
}
.step .u { text-decoration: underline; }

/* ---------- CTA ---------- */
.cta-wrap { display: flex; justify-content: center; margin-top: 16px; }
.cta {
  display: inline-block;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  background: var(--brand-green);
  color: #000;
  font-family: var(--contentfont);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  padding: 20px 40px;
  transition: transform 150ms, box-shadow 150ms, filter 150ms;
}
.cta:hover {
  transform: scale(1.02);
  animation: none;
  filter: brightness(1.05);
}
.cta:active { transform: scale(0.98); }
.cta:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 2px; }

@keyframes optin-cta-pulse {
  0%, 100% {
    box-shadow: 0 5px 10px -3px rgba(0,0,0,0.16), 0 2px 6px -3px rgba(0,0,0,0.10),
                0 0 0 1px rgba(55,202,55,0.55), 0 0 20px 1px rgba(55,202,55,0.32);
  }
  50% {
    box-shadow: 0 9px 18px -5px rgba(0,0,0,0.20), 0 4px 10px -4px rgba(0,0,0,0.12),
                0 0 0 14px rgba(55,202,55,0), 0 0 38px 6px rgba(55,202,55,0.52);
  }
}
.optin-cta-pulse { animation: optin-cta-pulse 2s ease-in-out infinite; }

/* ---------- testimonials ---------- */
.testimonial-featured { margin-top: 32px; padding: 40px 0; }
.testimonial-featured .card { max-width: 672px; margin: 0 auto; }

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 896px;
  margin: 0 auto;
  padding: 16px 0 48px;
}

.card {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}
.card .video-facade { border-radius: 0; }
.card-body { padding: 16px; }
.quote { margin: 0; font-size: 14px; font-weight: 700; color: #262626; }
.stars { margin: 8px 0 0; color: var(--brand-yellow); }
.name { margin: 4px 0 0; font-weight: 700; color: #000; }

/* ---------- footer ---------- */
.site-footer {
  padding: 32px 0;
  text-align: center;
  font-size: 14px;
  color: #737373;
}

/* ---------- opt-in modal ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
}
.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: 100%;
  max-width: 512px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  /* visible so the close button can sit on the corner without being clipped;
     horizontal step clipping is handled by .survey-viewport */
  overflow: visible;
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  width: 38px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #404040;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.modal-close svg { height: 20px; width: 20px; }
.modal-close:hover { color: #000; }

.modal-heading { margin: 0 0 8px; padding-top: 4px; text-align: center; }
.modal-heading-top {
  display: block;
  font-family: var(--headlinefont);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--brand-yellow);
}
.modal-heading-price {
  display: block;
  margin-top: 6px;
  font-family: var(--contentfont);
  font-size: 22px;
  font-style: italic;
  font-weight: 800;
  color: #000;
}

/* progress bar */
.progress {
  position: relative;
  height: 20px;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e5e5;
}
.progress-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 50%;
  border-radius: 999px;
  background: var(--brand-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  transition: width 300ms ease;
}
.progress-stripes {
  background-image: linear-gradient(
    45deg,
    rgba(255,255,255,0.28) 25%, transparent 25%,
    transparent 50%, rgba(255,255,255,0.28) 50%,
    rgba(255,255,255,0.28) 75%, transparent 75%, transparent
  );
  background-size: 1rem 1rem;
  animation: progress-stripes-right 1s linear infinite;
}
@keyframes progress-stripes-right {
  0% { background-position: 0 0; }
  100% { background-position: 1rem 0; }
}

/* step carousel */
.survey {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  margin-top: 16px;
  overflow-y: auto;
}
.survey-viewport { overflow: hidden; }
.survey-track {
  display: flex;
  width: 900%;
  transition: transform 250ms ease;
}
.survey-step {
  display: flex;
  width: calc(100% / 9);
  flex: 0 0 calc(100% / 9);
  flex-direction: column;
  justify-content: center;
  padding: 0 4px;
}
.survey-step h3 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #171717;
}

.choices { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.choice {
  box-sizing: border-box;
  display: flex;
  min-height: 48px;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  padding: 12px 16px;
  text-align: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #171717;
  cursor: pointer;
  transition: color 200ms, background-color 200ms, border-color 200ms, box-shadow 200ms;
}
.choice:hover {
  border-color: #d4d4d4;
  background: #fafafa;
  box-shadow: inset 1px 0 0 #ffc107, 0 2px 8px rgba(0, 0, 0, 0.08);
}
.choice:active { background: #f5f5f5; }
.choice.is-selected {
  border-color: #ffc107;
  background: #ffc107;
  color: #000;
  box-shadow: none;
}
.choice:focus-visible { outline: 2px solid var(--brand-yellow); outline-offset: 2px; }

.field {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px;
  color: #171717;
  background: #fff;
}
.field::placeholder { color: #a3a3a3; }
.field:focus { outline: none; border-color: var(--brand-yellow); box-shadow: 0 0 0 2px rgba(251, 186, 47, 0.5); }
.field.is-invalid { border-color: #ef4444; }

.field-error { margin: 8px 0 0; text-align: center; font-size: 14px; color: #dc2626; }

.continue {
  margin-top: 16px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #fcb92e;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #010101;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: filter 150ms;
}
.continue:hover { filter: brightness(1.05); }
.continue:disabled { opacity: 0.6; cursor: default; }
.continue:focus-visible { outline: 2px solid #fcb92e; outline-offset: 2px; }

/* success state */
.survey-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 8px;
  text-align: center;
}
.survey-done .check {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  width: 64px;
  border-radius: 999px;
  background: rgba(252, 185, 46, 0.2);
  font-size: 34px;
}
.survey-done h3 { margin: 0; font-size: 20px; font-weight: 700; color: #171717; }
.survey-done p { margin: 0; font-size: 14px; line-height: 1.6; color: #525252; }

body.modal-open { overflow: hidden; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .container { padding: 40px 24px; }
  .site-header { margin-bottom: 24px; }
  .hero-copy h1 { font-size: 50px; }
  .price { font-size: 50px; }
  .step { font-size: 23px; }
  .wordmark { font-size: 34px; }
  .cta { padding: 24px 48px; font-size: 30px; }
  .yt-btn { height: 3.5rem; width: 5.25rem; border-radius: 0.65rem; }
  .yt-btn svg { height: 2.25rem; width: 2.25rem; }
  .testimonial-featured { padding: 48px 0; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }

  .modal { padding: 32px; }
  .modal-heading-top { font-size: 36px; }
  .modal-heading-price { font-size: 36px; }
  .survey-step h3 { margin-bottom: 12px; font-size: 18px; }
  .choices { gap: 10px; }
  .choice { min-height: 3.25rem; padding: 14px 20px; font-size: 16px; }
  .field { padding: 14px 16px; font-size: 18px; }
  .continue { padding: 14px 16px; font-size: 18px; }
  .survey-done h3 { font-size: 24px; }
  .survey-done p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .optin-cta-pulse { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
