/* =========================================================================
   DESIGN SYSTEM — CLONE 100% FIEL AO CSS ORIGINAL DO INLEAD
   ========================================================================= */
:root {
  --theme-accent-color: #5B9F18;
  --theme-accent-hover: #6BA92F;
  --theme-accent-contrast-1: #529211;
  --theme-background-color: #ffffff;
  --theme-background-contrast-1: #ededed;
  --theme-background-contrast-2: #dbdbdb;
  --theme-border-color-xs: #E6E6E6;
  --theme-heading-color: #000000;
  --theme-text-color: #6b7280;
  --heading-deep: #052e16;
  --sub-green: #14532d;
  --alert-red: #dc2626;
  --container-max: 28rem; /* 448px */
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--theme-background-color);
  color: var(--theme-heading-color);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* Main Shell */
.main-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 95svh;
  padding: 12px;
  gap: 16px;
}

@media (min-width: 768px) {
  .main-content {
    padding: 20px;
    gap: 24px;
  }
}

/* Back Button fixed top-left (exact Inlead position) */
.back-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 50;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.back-btn.is-invisible {
  display: none;
}

/* Header & Progress */
.quiz-header {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-header.is-hidden {
  display: none;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrap.is-hidden {
  display: none;
}

.brand-logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .brand-logo {
    width: 112px;
    height: 112px;
  }
}

.progress-track {
  width: 100%;
  height: 5px;
  border-radius: 9999px;
  background: rgba(91, 159, 24, 0.1);
  overflow: hidden;
}

.progress-track.is-hidden {
  display: none;
}

.progress-fill {
  height: 100%;
  width: 4.54545%;
  background: var(--theme-accent-color);
  border-radius: 9999px;
  transition: width 0.7s ease;
}

/* Stage */
.step-stage {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: stepFadeIn 0.22s ease;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Typography — Exact Inlead computed sizes */
.step-h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.12;
  color: #000000;
  text-align: center;
  padding: 6px 0 2px;
}

.step-h2 {
  font-size: 25.6px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--heading-deep);
  text-align: center;
  padding: 4px 0 2px;
}

.step-h2.pure-black {
  color: #000000;
}

.step-h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.22;
  color: #000000;
  text-align: center;
}

.step-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--sub-green);
  text-align: center;
  white-space: pre-line;
}

.step-sub.gray {
  color: var(--theme-text-color);
}

.accent-text {
  color: var(--theme-accent-color);
}

/* Step 4 Red Highlight H1 */
.sabias-h1 {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  padding: 4px 0;
}

.sabias-h1 strong {
  background-color: rgb(220, 38, 38);
  color: rgb(255, 255, 255);
  padding: 1px 4px;
}

/* Rounded-2xl Image Containers */
.img-rounded-2xl {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.img-rounded-2xl img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Exact .al Shimmer Callout Card from Inlead <style> tag */
.al {
  --vd: #14713d;
  --vm: #1a8a4a;
  --txt: #1a1a1a;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  padding: 22px 20px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(120deg, #eaf6ee, #dff0e6 55%, #e4f3ea);
  border: 2px solid var(--vm);
  box-shadow: 0 14px 34px -20px rgba(20, 113, 61, 0.45);
}

.al::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: sw 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sw {
  0% {
    left: -40%;
  }
  55%, 100% {
    left: 130%;
  }
}

.al h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 800;
  color: var(--txt);
}

.al h2 .verde,
.al .verde {
  color: var(--vm);
  font-weight: 700;
}

.al p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--txt);
  font-weight: 400;
}

.al b {
  font-weight: 700;
  color: var(--txt);
}

/* Option Grids & Buttons — Exact Inlead DOM classes */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.options-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.option-btn {
  width: 100%;
  min-height: 56px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #dbdbdb;
  background: #ffffff;
  color: #000000;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.28;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.option-btn:hover {
  border-color: var(--theme-accent-color);
}

.option-btn.is-selected {
  background: var(--theme-accent-color);
  border-color: var(--theme-accent-color);
  color: #ffffff;
}

.option-btn.centered {
  justify-content: center;
  text-align: center;
}

.option-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-emoji {
  width: 44px;
  font-size: 28px;
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
}

.chevron-circle {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  border: 1px solid #dbdbdb;
  background: #ffffff;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.option-btn:hover .chevron-circle,
.option-btn.is-selected .chevron-circle {
  border-color: var(--theme-accent-color);
  color: var(--theme-accent-color);
}

/* Step 2 — 2x2 Image Option Cards */
.image-option-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid #dbdbdb;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s ease;
}

.image-option-card:hover,
.image-option-card.is-selected {
  border-color: var(--theme-accent-color);
}

.image-option-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.image-option-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  width: 100%;
}

.radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  border: 1px solid #bfbfbf;
  flex-shrink: 0;
}

.image-option-card:hover .radio-circle,
.image-option-card.is-selected .radio-circle {
  border-color: var(--theme-accent-color);
}

.image-option-card.is-selected .radio-circle {
  background: var(--theme-accent-color);
  box-shadow: inset 0 0 0 3.5px #ffffff;
}

.image-option-label {
  font-size: 15px;
  font-weight: 400;
  color: #000000;
  line-height: 1.25;
}

/* Primary CTA Button — Exact Inlead 3D Button (#5B9F18 / 8px shadow #529211) */
.cta-btn {
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border-radius: 16px;
  border: none;
  background: var(--theme-accent-color);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 0 0 var(--theme-accent-contrast-1);
  margin-top: 4px;
  margin-bottom: 8px;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.cta-btn:hover {
  background: var(--theme-accent-hover);
}

.cta-btn:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 0 var(--theme-accent-contrast-1);
}

.delayed-slot {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, max-height 0.5s ease;
}

.delayed-slot.is-visible {
  opacity: 1;
  max-height: 1600px;
  pointer-events: auto;
  overflow: visible;
}

/* Vertical 9:16 SmartPlayer Container (Steps 12 & 21 — No VTurb/Panda needed) */
.video-9-16-wrap {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #000000;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.video-9-16-wrap iframe,
.video-9-16-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* Loading Spinner Overlay while video buffers */
.sp-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.38);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

.sp-loader.is-active {
  display: flex;
}

.sp-spinner {
  width: 42px;
  height: 42px;
  border: 3.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spSpin 0.75s linear infinite;
}

@keyframes spSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Center Tap-to-Play / Unmute Overlay */
.sp-center-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.2s ease;
}

.sp-center-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.sp-big-play-box {
  background: rgba(20, 24, 31, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 18px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  animation: spPulse 1.9s ease-in-out infinite;
}

@keyframes spPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.sp-big-play-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #4676fb;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(70, 118, 251, 0.28);
}

.sp-big-play-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.sp-big-play-sub {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 500;
}

/* Bottom-Left Play/Pause Icon (Exact Match to Screenshot) */
.sp-bottom-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  padding: 28px 14px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.48));
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sp-play-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.65));
  padding: 0;
}

/* Smart Fake Progress Bar at Very Bottom Edge (Exact Screenshot Look) */
.sp-progress-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  background: rgba(255, 255, 255, 0.16);
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
}

.sp-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--sp-bar-color, #4676fb);
  transition: width 0.22s linear;
}

/* Step 18 Bio Text */
.bio-text {
  font-size: 16px;
  line-height: 1.45;
  color: #111827;
  text-align: center;
}

/* Step 19 Original 9:16 Swiper Carousel */
.carousel-mask {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.carousel-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 16px 6px;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  height: 4px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: #dbdbdb;
  border-radius: 99px;
}

.swiper-proof-slide {
  flex: 0 0 90%;
  scroll-snap-align: center;
  border: 1px solid #dbdbdb;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.swiper-proof-img-wrap {
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}

.swiper-proof-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-proof-caption {
  padding: 16px 12px;
  text-align: center;
  font-size: 15px;
  color: #6b7280;
}

/* Step 20 Loading Analysis Screen */
.loading-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 8px 0 12px;
}

.loading-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 6px;
}

.loading-track {
  width: 100%;
  height: 10px;
  border-radius: 9999px;
  background: #ededed;
  overflow: hidden;
}

.loading-fill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: var(--theme-accent-color);
  transition: width 0.12s linear;
}

.testimonials-heading {
  font-size: 15.5px;
  font-weight: 800;
  color: #000000;
  text-align: center;
  margin-top: 6px;
  line-height: 1.4;
}

.testimonials-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.testimonials-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.review-card {
  width: 310px;
  border: 1px solid var(--theme-border-color-xs);
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.review-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-stars {
  color: #facc15;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
}

.review-name {
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  margin-top: 2px;
}

.review-handle {
  font-size: 12.5px;
  color: #6b7280;
}

.review-text {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
  padding-left: 54px;
}

/* Step 21 Offer Box */
.offer-box {
  margin-top: 10px;
  border: 2px solid var(--theme-accent-color);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fdf3 0%, #ffffff 42%);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 32px rgba(91, 159, 24, 0.14);
}

.offer-badge {
  align-self: center;
  background: var(--alert-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}

.offer-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--heading-deep);
  text-align: center;
}

.offer-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}

.offer-bullets .chk {
  color: var(--theme-accent-color);
  font-weight: 900;
}

.offer-pricing {
  text-align: center;
  padding: 10px 0 4px;
  border-top: 1px dashed #dbdbdb;
}

.offer-old {
  font-size: 15px;
  color: #6b7280;
  text-decoration: line-through;
  font-weight: 600;
}

.offer-price {
  font-size: 40px;
  font-weight: 800;
  color: #14713d;
  line-height: 1.1;
  margin: 2px 0 6px;
}

.offer-note {
  font-size: 12.5px;
  color: #6b7280;
}

.offer-trust {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  font-size: 13px;
  color: var(--sub-green);
  font-weight: 600;
}

.offer-guarantee {
  background: #f2f9ec;
  border: 1px solid #cce6b5;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--heading-deep);
  font-weight: 600;
}

/* Footer */
.quiz-footer {
  width: 100%;
  max-width: var(--container-max);
  margin: 24px auto 0;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
}
