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

/* ── Base rendering ── */
html {
  font-optical-sizing: auto;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Accessibility ── */
.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;
}

/* ── Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  --line:      var(--line-teal);
  --font-body: var(--font-quiz);
}

html, body {
  height: 100%;
  background: var(--fog);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
}

/* ── LAYOUT ── */
.app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
}

/* ── IMAGE PANEL ── */
.image-panel {
  position: relative;
  overflow: hidden;
  background: #c5dfe5;
}

.image-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.image-slide.active { opacity: 1; }

.image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--fog) 100%);
  pointer-events: none;
}

/* ── QUIZ PANEL ── */
.quiz-panel {
  overflow-y: auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fog);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

/* ── BRAND BAR ── */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 22px var(--sp-lg);
  flex-shrink: 0;
}

.brand-name {
  color: var(--teal);
  letter-spacing: 0.02em;
  font-size: 13px;
  font-weight: 500;
}

.brand-nt {
  font-size: 12px;
  color: var(--muted);
}

/* ── PROGRESS ── */
.progress-bar {
  height: 3px;
  background: var(--line);
  flex-shrink: 0;
}

.progress-fill {
  height: 100%;
  background: var(--teal);
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-steps {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 16px var(--sp-lg);
  flex-shrink: 0;
}

.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  border: 1.5px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.step-dot.done    { background: var(--teal); border-color: var(--teal); }
.step-dot.current { background: transparent; border-color: var(--teal); width: 8px; height: 8px; }

/* ── SCREENS ── */
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  padding: 40px var(--sp-lg) 52px;
  max-width: 750px;
  width: 100%;
}

.screen.active {
  display: flex;
  justify-content: center;
  padding-bottom: 15vh;
  animation: fadeIn 0.35s cubic-bezier(0.25, 0, 0, 1) both;
}

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

/* ── INTRO ── */
.intro-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 18px;
  text-wrap: balance;
}

.intro-title em {
  font-style: italic;
  color: var(--teal);
}

.intro-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.72;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 380px;
}

.btn-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 15px 28px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
  width: fit-content;
}

.btn-start:hover  { background: #d0720c; transform: translateY(-1px); }
.btn-start:active { transform: translateY(0); }

/* ── QUESTION ── */
.q-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: var(--sp-sm);
  font-variant-numeric: lining-nums;
}

.q-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 2.55rem);
  font-weight: 600;
  line-height: 1.38;
  color: var(--text);
  margin-bottom: 28px;
  text-wrap: balance;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  padding: 15px 18px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
  text-align: left;
  width: 100%;
  font-family: var(--font-body);
}

.option:hover   { border-color: var(--teal); background: #f0fafb; }
.option.selected { border-color: var(--teal); background: #eaf6f7; }

.option-letter {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fog);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  margin-top: 1px;
}

.option.selected .option-letter {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.option-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
  transition: color 0.18s ease;
}

.option.selected .option-text,
.option:hover    .option-text { color: var(--text); }

/* ── RESULT ── */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-label {
  color: var(--teal);
  margin-bottom: var(--sp-md);
}

.result-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 28px;
  text-wrap: balance;
}

.result-body p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: var(--sp-sm);
}

.result-box {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  margin: var(--sp-md) 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
}

.result-box strong,
.result-body p strong { color: var(--text); font-weight: 500; }

.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  margin-top: 28px;
  transition: background 0.18s ease, transform 0.15s ease;
}

.btn-cta:hover  { background: #21c55e; transform: translateY(-1px); }
.btn-cta:active { transform: translateY(0); }

/* ── MOBILE ── */
@media (max-width: 720px) {
  html, body { height: auto; }

  .app {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .image-panel {
    height: 44vw;
    min-height: 200px;
    max-height: 280px;
    flex-shrink: 0;
    order: 0;
  }

  .image-panel::after {
    background: linear-gradient(to bottom, transparent 60%, var(--fog) 100%);
  }

  .quiz-panel {
    height: auto;
    overflow-y: visible;
    order: 1;
  }

  .brand-bar,
  .progress-steps,
  .screen { padding-left: 24px; padding-right: 24px; }

  .intro-title { font-size: 1.85rem; }
  .btn-start   { width: 100%; justify-content: center; }
}
