:root {
  --bg: #121631;
  --card: #131734;
  --card-border: #252a4d;
  --track: #2d3253;
  --green: #1cca5b;
  --green-dark: #16a34a;
  --red: #dc2828;
  --pink: #ec4899;
  --gold: #d4af6a;
  --text: #ffffff;
  --muted: #9ba0c4;
  --muted-2: #b9bcd6;
  --container: 640px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* #quiz-app and #results are the outer full-bleed shells. The progress bar
   always sits in its own 640px column; the actual content below it sits in
   its own column that varies by screen (640px on the intro, 576px on every
   question screen and on the results page) - exactly like the reference
   site, where these are independent siblings, not nested. */
#quiz-app.wrap, #results.wrap { max-width: none; }

/* question screens (1-8) + the whole results page content */
.step-narrow { max-width: 576px; margin-left: auto; margin-right: auto; }

/* the intro screen's heading/subtitle/pill group */
.step-wide { max-width: 640px; margin-left: auto; margin-right: auto; }

/* elements that should stay capped at 448px and centered even inside the wide
   640px column (used only by the intro screen's card + button) */
.narrow-448 { max-width: 448px; margin-left: auto; margin-right: auto; }

/* Logo */
.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.logo img { height: 96px; width: 96px; object-fit: contain; }

/* Progress bar - always 640px, independent of the content column width */
.progress-track {
  height: 8px;
  background: var(--track);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 34px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  border-radius: 999px;
  transition: width .4s ease;
}
.progress-solid {
  height: 8px;
  background: var(--green);
  max-width: 640px;
  margin: 0 auto 20px;
  border-radius: 999px;
}

/* Headings */
h1, h2, h3 { margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 1.7rem; font-weight: 800; text-align: center; }
h2 { font-size: 1.5rem; font-weight: 800; text-align: center; }

/* Quiz typography, matched 1:1 to the reference app's computed styles.
   The reference uses Tailwind's "text-2xl md:text-3xl": 24px below the
   768px breakpoint, 30px from 768px up. */
#quiz-app h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
#quiz-app h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}
@media (min-width: 768px) {
  #quiz-app h1, #quiz-app h2 { font-size: 30px; }
}
#quiz-app .subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #a3adc2;
  margin-bottom: 32px;
}
#quiz-app .subtitle.subtitle-intro {
  font-size: 18px;
  margin-bottom: 24px;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.amber { color: #fbbf24; font-weight: 700; }
.green-text { color: var(--green); }
.pink-text { color: var(--pink); }

.center { text-align: center; }

/* Red pill */
.pill-red {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 24px;
  border-radius: 999px;
  margin: 0 auto 32px;
}
.pill-row { text-align: center; margin-bottom: 0; }

/* Result badge */
.badge-green {
  display: inline-block;
  border: 1.5px solid var(--green);
  color: var(--green);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
}
.badge-green b { font-weight: 800; }
.badge-row { text-align: center; margin-bottom: 20px; }

/* Options list */
.options { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgb(19, 23, 52);
  border: 1px solid rgba(39, 44, 73, 0.6);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  font-weight: 400;
  font-size: 16px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.option:hover { border-color: #3a4070; }
.option.selected {
  background: rgba(28, 202, 91, 0.08);
  border-color: rgba(28, 202, 91, 0.6);
  box-shadow: 0 0 0 1px rgba(28, 202, 91, .15), 0 4px 12px -2px rgba(28, 202, 91, .15), 0 8px 24px -4px rgba(0, 0, 0, .2);
}
.option .indicator {
  width: 24px;
  height: 24px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  margin-left: 14px;
  position: relative;
}
.option.selected .indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  transform: translate(-50%, -50%);
}

/* grid options (apps de lectura) */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.options-grid .option {
  flex-direction: column;
  text-align: center;
  gap: 10px;
  padding: 20px 12px;
}
.options-grid .option.full { grid-column: 1 / -1; flex-direction: row; text-align: left; }
.options-grid .option .indicator { margin: 0; }

/* Continue button */
.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: #ffffff;
}
.btn-primary:disabled {
  background: #888a98;
  color: #ffffff;
  cursor: not-allowed;
}
.btn-primary:not(:disabled):hover { background: var(--green-dark); }

/* App preview card */
.app-preview {
  border: 1px solid rgb(50, 56, 93);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}
.app-preview img { width: 100%; }

/* screens */
.screen { display: none; }
.screen.active { display: block; }

/* Loading screen */
.loading-wrap { text-align: center; padding-top: 20px; }
.loading-bar-track {
  position: relative;
  width: 100%;
  height: 36px;
  background: var(--track);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 32px;
}
.loading-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  transition: width .3s ease-out;
}
.loading-bar-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
#quiz-app .loading-wrap h2 { margin-bottom: 32px; }
.loading-wrap p { color: #fff; }

/* Results page */
.checklist { list-style: none; margin: 0 0 28px; padding: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.check-sq {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #06180e;
  font-weight: 900;
}
.check-circle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.italic-muted {
  text-align: center;
  font-style: italic;
  color: var(--muted-2);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.section-intro { text-align: center; margin-bottom: 20px; color: var(--muted-2); font-size: 0.95rem; }

/* video */
.video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
  cursor: pointer;
}
.video-box img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; opacity: .8; }
.video-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}
.video-play {
  position: absolute;
  z-index: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.video-play::after {
  content: "";
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}
.video-bar { height: 4px; background: #3b82f6; margin-bottom: 24px; border-radius: 2px; }

.big-quote { text-align: center; color: var(--muted-2); margin-bottom: 6px; }
.tagline { text-align: center; color: #fbbf24; font-weight: 700; margin-bottom: 26px; }

/* comparison table */
.compare-img {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
}
.compare-img img { width: 100%; display: block; }

/* themes list */
.theme-list { list-style: none; padding: 0; margin: 0 0 28px; }
.theme-list li {
  padding: 10px 0 10px 18px;
  position: relative;
  border-bottom: 1px solid #1f2447;
  font-size: 0.92rem;
  color: #e5e7f5;
}
.theme-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 5px; height: 5px;
  background: var(--muted);
  border-radius: 50%;
}

/* carousel (coverflow: prev/next slides peek from behind the center card) */
.carousel { position: relative; margin: 0 auto 20px; max-width: 320px; overflow: visible; }
.carousel-stage { position: relative; width: 100%; aspect-ratio: 3/4; }
.carousel-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .45s ease, box-shadow .45s ease;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-slide.is-current {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 3;
  box-shadow: 0 25px 50px rgba(0,0,0,.65);
}
.carousel-slide.is-prev {
  transform: translateX(calc(-50% - 78%)) scale(.82);
  opacity: .5;
  z-index: 2;
}
.carousel-slide.is-next {
  transform: translateX(calc(-50% + 78%)) scale(.82);
  opacity: .5;
  z-index: 2;
}
.carousel-slide.is-hidden {
  transform: translateX(-50%) scale(.7);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(22, 27, 60, .9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255, 255, 255, .35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5), 0 0 0 4px rgba(19, 23, 52, .35);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.carousel-arrow:hover {
  background: rgba(28, 202, 91, .25);
  border-color: var(--green);
  transform: translateY(-50%) scale(1.08);
}
.carousel-arrow svg { display: block; }
.carousel-arrow.prev { left: -2px; }
.carousel-arrow.next { right: -2px; }
.carousel-dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 30px; flex-wrap: wrap; }
.carousel-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--track);
  cursor: pointer;
}
.carousel-dots span.active { background: #fff; }

/* testimonials */
.testimonial {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}
.testimonial-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.testimonial-head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial-head b { display: block; font-size: 0.95rem; }
.testimonial-head span { display: block; font-size: 0.8rem; color: var(--muted); }
.testimonial p { margin: 0 0 10px; font-size: 0.9rem; color: #e5e7f5; }
.stars { color: #fbbf24; letter-spacing: 2px; }

/* device feature row */
.device-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 28px 0;
}
.device-row .checklist { margin: 0; flex: 1; }
.device-row .checklist li { font-size: 0.85rem; }
.phone-frame {
  width: 150px;
  flex-shrink: 0;
}
.phone-frame img { width: 100%; }

/* countdown */
.countdown-box {
  background: #fce7f3;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: #1f2430;
  margin-bottom: 26px;
}
.countdown-box .cd-label { font-weight: 700; font-size: 0.95rem; }
.countdown-box .cd-time { color: var(--red); font-weight: 800; }
.countdown-box .cd-sub { font-size: 0.8rem; color: #6b7280; margin-top: 4px; }

/* pricing card */
.price-card {
  background: #fff;
  border: 2px solid var(--green);
  border-radius: 16px;
  padding: 26px 20px;
  text-align: center;
  color: #1f2430;
  margin-bottom: 20px;
}
.price-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.price-card .discount-line { font-weight: 800; color: #16a34a; }
.price-card .old-price { text-decoration: line-through; color: #dc2626; margin: 14px 0 4px; font-size: 1.1rem; }
.price-card .new-price { color: #16a34a; font-weight: 900; font-size: 1.8rem; }

.pay-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 14px 0 24px; }

.seal-wrap { text-align: center; margin-bottom: 14px; }
.seal-wrap img { width: 150px; margin: 0 auto 12px; }
.seal-wrap p { color: var(--muted-2); font-size: 0.85rem; text-align: center; max-width: 520px; margin: 0 auto 28px; }

.buy-row {
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1f2430;
  margin-bottom: 14px;
}
.buy-row .bl { font-weight: 800; font-size: 0.9rem; }
.buy-row .bl span { display: block; font-weight: 600; font-size: 0.78rem; color: #16a34a; }
.buy-row .br { text-align: right; font-size: 0.78rem; color: #6b7280; }
.buy-row .br b { display: block; font-size: 1.2rem; color: #1f2430; }

/* faq */
.faq-title { text-align: center; font-weight: 800; letter-spacing: .5px; margin: 10px 0 18px; }
.faq-item { border-bottom: 1px solid #262b52; padding: 14px 0; }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  gap: 10px;
}
.faq-q .diamond { color: #3b82f6; flex-shrink: 0; }
.faq-q .chev { transition: transform .2s ease; color: var(--muted); flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 0.87rem;
  transition: max-height .25s ease;
}
.faq-item.open .faq-a { max-height: 240px; margin-top: 10px; }

.footer-space { height: 20px; }

@media (max-width: 420px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.25rem; }
}
