/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #F5F4F0;
  color: #1A1A1A;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TOKENS
============================================ */
:root {
  --blue:        #0A1628;
  --blue-mid:    #152240;
  --blue-light:  #1E3360;
  --gold:        #C8A23E;
  --gold-bright: #DDB94E;
  --gold-dim:    #A8842A;
  --gold-bg:     rgba(200, 162, 62, 0.12);
  --gold-border: rgba(200, 162, 62, 0.28);
  --white:       #FFFFFF;
  --surface:     #F5F4F0;
  --card:        #FFFFFF;
  --border:      #E4E3DF;
  --border-mid:  #CECDC9;
  --text-1:      #1A1A1A;
  --text-2:      #444444;
  --text-3:      #777777;
  --text-4:      #AAAAAA;
  --error:       #C93434;
  --green:       #25D366;

  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;

  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.13);
}

/* ============================================
   SCREENS
============================================ */
.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

/* ============================================
   BUTTONS
============================================ */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--blue);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 17px 32px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200, 162, 62, 0.38);
}

.btn-gold:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-lg {
  font-size: 17px;
  padding: 20px 40px;
  border-radius: var(--r-lg);
}

.btn-full {
  width: 100%;
  padding: 18px;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.btn-gold:hover .btn-icon {
  transform: translateX(3px);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--green);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 20px 28px;
  border: none;
  border-radius: var(--r-lg);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

/* ============================================
   HERO SCREEN
============================================ */
#screen-hero {
  background: var(--blue);
  position: relative;
  overflow: hidden;
}

.hero-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Decorative rings */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200, 162, 62, 0.08);
}

.deco-ring-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -200px;
}

.deco-ring-2 {
  width: 340px;
  height: 340px;
  bottom: -100px;
  left: -120px;
  border-color: rgba(200, 162, 62, 0.05);
}

/* Header */
.hero-header {
  padding: 32px 0 0;
  position: relative;
  z-index: 1;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  background: var(--gold);
  color: var(--blue);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-city {
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Main content */
.hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 64px;
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.hero-badge {
  display: inline-block;
  background: var(--gold-bg);
  color: var(--gold-bright);
  border: 1px solid var(--gold-border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  width: fit-content;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 9vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: normal;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 420px;
}

.hero-offer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200, 162, 62, 0.22);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 36px;
}

.offer-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.hero-offer p {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}

.hero-offer strong {
  color: var(--gold-bright);
  font-weight: 700;
}

.hero-trust {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  font-weight: 500;
}

.hero-trust li svg {
  color: var(--gold-dim);
  flex-shrink: 0;
}

/* ============================================
   SHARED TOPBAR
============================================ */
.quiz-topbar {
  background: var(--blue);
  padding: 0 24px;
  flex-shrink: 0;
}

.topbar-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.topbar-brand {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.topbar-done {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

.progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
  border-radius: 100px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.38);
  white-space: nowrap;
  letter-spacing: 0.04em;
  min-width: 36px;
  text-align: right;
}

/* ============================================
   QUIZ SCREEN
============================================ */
#screen-quiz {
  background: var(--surface);
}

.quiz-main {
  flex: 1;
  padding: 28px 24px 56px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

/* Question Card */
.q-card {
  background: var(--card);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  animation: slideUp 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.q-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.q-text {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.38;
  margin-bottom: 28px;
}

/* Options */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  text-align: left;
  transition: border-color 0.13s ease, background 0.13s ease, transform 0.13s ease;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.45;
}

.opt-btn:hover {
  border-color: var(--gold);
  background: var(--gold-bg);
  color: var(--blue);
}

.opt-btn.selected {
  border-color: var(--gold);
  background: var(--gold-bg);
  color: var(--blue);
}

.opt-btn:hover,
.opt-btn.selected {
  transform: translateX(3px);
}

.opt-letter {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.13s ease, color 0.13s ease;
}

.opt-btn:hover .opt-letter,
.opt-btn.selected .opt-letter {
  background: var(--gold);
  color: var(--blue);
}

/* ============================================
   LEAD SCREEN
============================================ */
#screen-lead {
  background: var(--surface);
}

.lead-main {
  flex: 1;
  padding: 28px 24px 56px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border-radius: var(--r-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
  text-align: center;
  animation: slideUp 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--gold-bg);
  border-radius: 50%;
  color: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-subtitle {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* Form fields */
.field-group {
  text-align: left;
  margin-bottom: 16px;
  position: relative;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-sm);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-1);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 162, 62, 0.14);
}

.field-input.has-error {
  border-color: var(--error);
}

.field-input.has-error:focus {
  box-shadow: 0 0 0 3px rgba(201, 52, 52, 0.12);
}

.field-error {
  display: none;
  font-size: 12px;
  color: var(--error);
  font-weight: 500;
  margin-top: 5px;
}

.field-error.show {
  display: block;
}

.lead-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-4);
  margin-top: 14px;
  line-height: 1.5;
}

/* ============================================
   RESULT SCREEN
============================================ */
#screen-result {
  background: var(--surface);
}

.result-main {
  flex: 1;
  padding: 24px 24px 0;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Result hero block */
.res-hero {
  background: var(--blue);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.res-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(200, 162, 62, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.res-hi {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  margin-bottom: 4px;
}

.res-headline {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 28px;
}

.res-area-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(200, 162, 62, 0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.res-area {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.res-course-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--blue);
  padding: 9px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.pill-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

.pill-course {
  font-size: 14px;
  font-weight: 700;
}

.res-explanation {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  line-height: 1.72;
}

/* Offer card */
.res-offer {
  background: var(--card);
  border-radius: var(--r-xl);
  padding: 28px;
  border: 1.5px solid rgba(200, 162, 62, 0.28);
  box-shadow: var(--shadow-sm);
  text-align: center;
  animation: slideUp 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) 0.06s both;
}

.offer-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.offer-big {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 4px;
}

.offer-big sup {
  font-size: 28px;
  vertical-align: 0.25em;
}

.offer-body {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 4px;
}

.offer-note {
  font-size: 12px;
  color: var(--gold-dim);
  font-weight: 600;
}

/* CTA card */
.res-cta {
  background: var(--card);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  animation: slideUp 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s both;
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
  line-height: 1.35;
}

.cta-text {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Footer */
.page-footer {
  padding: 24px 0 48px;
  text-align: center;
}

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.footer-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 4px;
}

.footer-addr {
  font-size: 12px;
  color: var(--text-4);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-dim);
  text-decoration: none;
  transition: color 0.13s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 400px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-trust {
    gap: 14px;
  }

  .q-card,
  .card,
  .res-hero,
  .res-offer,
  .res-cta {
    padding: 24px 20px;
  }

  .q-text {
    font-size: 19px;
  }

  .offer-big {
    font-size: 48px;
  }
}

@media (min-width: 600px) {
  .hero-wrap {
    padding: 0 40px;
    max-width: 700px;
    margin: 0 auto;
  }

  .quiz-main,
  .lead-main,
  .result-main {
    padding-top: 36px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-main {
    padding-top: 64px;
    padding-bottom: 80px;
  }

  .hero-header {
    padding-top: 40px;
  }
}
