/* =================================================================
   QUIZ — Por Que Você Não Aprende Inglês
   ================================================================= */

:root {
  --navy: #0D1B2A;
  --navy-2: #142435;
  --electric: #007AFF;
  --electric-soft: rgba(0, 122, 255, 0.08);
  --orange: #FF6B2B;
  --orange-hover: #f25a17;
  --off-white: #F5F5F0;
  --text: #0D1B2A;
  --text-muted: #4b5a6b;
  --border: #d8d8d0;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06);
  --shadow-md: 0 6px 24px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 27, 42, 0.16);

  --maxw: 480px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--off-white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.35s ease, color 0.35s ease;
  padding-bottom: env(safe-area-inset-bottom);
}

body[data-screen="transition"],
body[data-screen="loading"] {
  background: var(--navy);
  color: var(--off-white);
}

/* ---------- Progress bar ---------- */
.progress-bar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--off-white);
  border-bottom: 1px solid rgba(13, 27, 42, 0.06);
}
.progress-bar.visible {
  display: flex;
}
body[data-screen="transition"] .progress-bar {
  background: var(--navy);
  border-bottom-color: rgba(245, 245, 240, 0.08);
}
.progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.08);
  overflow: hidden;
}
body[data-screen="transition"] .progress-track {
  background: rgba(245, 245, 240, 0.12);
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--orange);
  border-radius: inherit;
  transition: width 0.4s cubic-bezier(.2,.7,.2,1);
}
.progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: right;
}

/* ---------- Screen container ---------- */
.screen {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 24px 20px 48px;
  animation: fadeIn 0.35s ease;
}
.screen-inner {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin: 0;
  color: inherit;
  letter-spacing: -0.01em;
}
p { margin: 0; }

.display {
  font-size: clamp(26px, 6.5vw, 34px);
  line-height: 1.18;
  font-weight: 800;
}
.lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
}
.hint {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: var(--radius);
  padding: 16px 22px;
  min-height: 56px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:active { transform: translateY(1px); }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-cta {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 107, 43, 0.32);
}
.btn-cta:hover:not(:disabled) {
  background: var(--orange-hover);
  box-shadow: 0 10px 28px rgba(255, 107, 43, 0.4);
}

.btn-primary {
  background: var(--electric);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 122, 255, 0.22);
}
.btn-primary:hover:not(:disabled) {
  background: #0067db;
}

.btn-large {
  font-size: 17px;
  min-height: 62px;
  padding: 18px 22px;
}

/* ---------- Start screen ---------- */
.start-screen {
  padding-top: 32px;
}
.start-screen .btn { margin-top: 6px; }

.social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--electric-soft);
  border: 1px solid rgba(0, 122, 255, 0.18);
  border-radius: var(--radius);
  margin-top: 4px;
}
.social-proof-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.social-proof-text {
  font-size: 14.5px;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.45;
}

/* ---------- Question screen ---------- */
.q-title {
  font-size: clamp(22px, 5.5vw, 26px);
  line-height: 1.25;
  margin-top: 2px;
}
.q-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: -6px;
}

.options {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option {
  width: 100%;
  min-height: 60px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 15.5px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.option:hover {
  border-color: var(--electric);
}
.option:active { transform: scale(0.99); }

.option-label { flex: 1; line-height: 1.35; }

.option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  position: relative;
  transition: all 0.18s ease;
}
.option.selected {
  border-color: var(--electric);
  background: var(--electric-soft);
}
.option.selected .option-check {
  border-color: var(--electric);
  background: var(--electric);
}
.option.selected .option-check::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: #fff;
  border-radius: 50%;
}

#btn-next {
  margin-top: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#btn-next.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Micro feedback card (após seleção) */
.feedback-card {
  border-left: 4px solid var(--electric);
  background: linear-gradient(180deg, rgba(0, 122, 255, 0.06), rgba(0, 122, 255, 0.02));
  padding: 14px 16px;
  border-radius: 12px;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.feedback-card.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.feedback-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--navy);
  font-style: italic;
}

/* ---------- Transition screen ---------- */
.transition-screen {
  align-items: center;
  text-align: center;
  padding-top: 24px;
}
.transition-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(245, 245, 240, 0.12),
              0 0 32px rgba(0, 122, 255, 0.45),
              0 0 60px rgba(0, 122, 255, 0.25);
  animation: glow 3.6s ease-in-out infinite;
}
.transition-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(245, 245, 240, 0.12),
                0 0 28px rgba(0, 122, 255, 0.35),
                0 0 52px rgba(0, 122, 255, 0.18);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(245, 245, 240, 0.18),
                0 0 38px rgba(0, 122, 255, 0.55),
                0 0 72px rgba(0, 122, 255, 0.32);
  }
}
.t-title {
  font-size: clamp(24px, 6vw, 30px);
  line-height: 1.2;
  margin-top: 4px;
}
.t-text {
  font-size: 16px;
  color: rgba(245, 245, 240, 0.82);
  line-height: 1.6;
  max-width: 40ch;
}
.t-list {
  list-style: none;
  padding: 0;
  margin: 2px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  max-width: 40ch;
}
.t-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(245, 245, 240, 0.88);
  font-size: 15.5px;
  line-height: 1.5;
}
.t-list li::before {
  content: '';
  position: absolute;
  left: 4px; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 107, 43, 0.6);
}
.transition-screen .btn { margin-top: 8px; }

/* Teaser do Buddy (Transição 3) */
.t-teaser {
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 122, 255, 0.45);
  border-left: 4px solid var(--electric);
  background: rgba(0, 122, 255, 0.08);
  border-radius: 12px;
  max-width: 42ch;
  text-align: left;
}
.t-teaser p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--off-white);
  font-weight: 600;
}

/* ---------- Loading screen ---------- */
.loading-screen {
  align-items: center;
  text-align: center;
  padding-top: 60px;
  min-height: 60vh;
  justify-content: center;
}
.spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(245, 245, 240, 0.15);
  border-top-color: var(--orange);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-size: 17px;
  color: var(--off-white);
  transition: opacity 0.3s ease;
  font-weight: 500;
}

.loading-bar {
  width: 220px;
  height: 4px;
  background: rgba(245, 245, 240, 0.12);
  border-radius: 4px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--orange);
  animation: loadFill 4s linear forwards;
}
@keyframes loadFill { to { width: 100%; } }

/* ---------- Result screen ---------- */
.result-screen {
  gap: 22px;
}
.result-header {
  text-align: left;
}
.result-badge {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--electric-soft);
  color: var(--electric);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 12px;
}
.r-title {
  font-size: clamp(24px, 6vw, 30px);
  line-height: 1.2;
}
.r-subtitle {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}

.result-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
}
.result-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
}
.result-list li::marker { color: var(--orange); }

.result-transition {
  background: var(--navy);
  color: var(--off-white);
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result-transition h3 {
  font-size: 19px;
  line-height: 1.3;
}
.result-transition p { font-size: 15px; opacity: 0.85; }
.result-transition .result-list { color: var(--off-white); }
.result-transition .result-list li::marker { color: var(--orange); }

/* ---------- Offer stack ---------- */
.offer-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.offer-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.offer-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--electric-soft);
  color: var(--electric);
}
.offer-tag .tag-icon { font-size: 14px; line-height: 1; }
.bonus-tag {
  background: rgba(255, 107, 43, 0.1);
  color: var(--orange);
}
.guarantee-tag {
  background: rgba(13, 27, 42, 0.08);
  color: var(--navy);
}

.offer-title {
  font-size: 22px;
  line-height: 1.22;
}
.offer-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Ebook card */
.ebook-card {
  align-items: center;
  text-align: center;
  padding-top: 22px;
  box-shadow: var(--shadow-lg);
}
.ebook-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--electric), var(--orange));
}
.ebook-card .offer-tag { align-self: center; }
.ebook-card .offer-subtitle { max-width: 38ch; }
.offer-mockup {
  width: 78%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 4px auto 0;
  filter: drop-shadow(0 14px 30px rgba(13, 27, 42, 0.18));
}

.offer-bullets {
  list-style: none;
  padding: 0;
  margin: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: left;
}
.offer-bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.5;
}
.offer-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--electric-soft);
}
.offer-bullets li::after {
  content: '';
  position: absolute;
  left: 5px; top: 9px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--electric);
  border-bottom: 2px solid var(--electric);
  transform: rotate(-45deg);
}

/* Bonus card */
.bonus-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f4 100%);
  border: 1px solid rgba(255, 107, 43, 0.18);
}
.bonus-card .offer-title { color: var(--navy); }
.bonus-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 4px;
}
.bonus-problem,
.bonus-how {
  background: rgba(255, 107, 43, 0.06);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.bonus-problem em { font-style: italic; color: var(--navy); }
.bonus-how .offer-bullets { margin: 2px 0; }
.bonus-how .offer-bullets li::before { background: rgba(255, 107, 43, 0.15); }
.bonus-how .offer-bullets li::after {
  border-color: var(--orange);
}
.bonus-tone {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  font-style: italic;
}
.bonus-tech {
  display: inline-block;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  background: rgba(255, 107, 43, 0.12);
  padding: 8px 12px;
  border-radius: 10px;
}

.bonus-mockup {
  width: 70%;
  max-width: 240px;
  margin: 4px auto 6px;
}

.bonus-badge {
  display: inline-block;
  align-self: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  padding: 10px 16px;
  border-radius: 999px;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(255, 107, 43, 0.28);
  text-align: center;
}

/* Guarantee card — selo */
.guarantee-card {
  background: #0B1F3A;
  color: var(--off-white);
  align-items: center;
  text-align: center;
  border: 1px solid rgba(245, 245, 240, 0.1);
}
.guarantee-seal {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto 4px;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35));
}
.guarantee-card p {
  color: rgba(245, 245, 240, 0.85);
  font-size: 15px;
  line-height: 1.6;
  max-width: 38ch;
}
.guarantee-strong {
  color: var(--off-white) !important;
  font-weight: 600;
}

/* CTA card */
.cta-card {
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f9f9f4 100%);
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
}
.price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.price-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.price-old {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  font-weight: 500;
}
.price-new {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.cta-card .btn { width: 100%; }
.offer-microcopy {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 36ch;
  margin-top: 4px;
}

/* ---------- Responsive: larger screens ---------- */
@media (min-width: 720px) {
  .screen { padding: 40px 24px 64px; }
  :root { --maxw: 560px; }
  .display { font-size: 38px; }
  .offer-card { padding: 36px 32px; }
}
