:root {
  --pink: #e11d48;
  --pink-dark: #9f1239;
  --pink-50: #fff1f2;
  --pink-100: #ffe4e6;
  --green: #22c55e;
  --green-50: #f0fdf4;
  --green-200: #bbf7d0;
  --green-700: #15803d;
  --amber-50: #fef3c7;
  --amber-900: #78350f;
  --text: #1a1a1a;
  --text-soft: #4b5563;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-wrap: #fef7ed;
  --accent: #a16207;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-pill: 100px;
}

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

html, body { background: var(--bg-wrap); color: var(--text); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }

.quiz {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

/* === SCREEN === */
.screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.screen[hidden] { display: none !important; }
.screen.allow-scroll {
  min-height: 0;
}

/* === TOP BAR === */
.top-bar {
  padding: 14px 18px;
  border-bottom: 1px solid var(--pink-50);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.top-bar.with-back { justify-content: space-between; }
.top-bar .logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.top-bar .logo.small { height: 24px; }
.back-btn {
  width: 32px; height: 32px;
  border: none; background: transparent;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 18px; cursor: pointer;
  flex-shrink: 0;
}
.back-btn:hover { background: var(--pink-50); color: var(--pink); }

/* === PROGRESS === */
.progress {
  height: 4px;
  background: var(--pink-100);
  margin: 0 18px;
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--pink);
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}
.progress-fill.success { background: var(--green); }
.progress-fill.alt { background: var(--accent); }

/* === BODY === */
.body {
  padding: 22px 22px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* === TYPOGRAPHY === */
h1 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 12px;
}
h1 em { color: var(--pink); font-style: normal; font-weight: 800; }
h2 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}
h2.centered, h1.centered { text-align: center; }
h2 em { color: var(--pink); font-style: normal; }
h3 { font-size: 15px; font-weight: 700; }

p { font-size: 13px; color: var(--text-soft); }
p.centered { text-align: center; }
p.qsub, .qsub { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }
p.meta, .meta { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 12px; }
.pink-bold { color: var(--pink); font-weight: 700; }

/* === HERO === */
.hero { text-align: center; margin-bottom: 14px; }
.hero-illustration {
  width: 180px; height: 180px;
  margin: 16px auto 18px;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  filter: drop-shadow(0 6px 14px rgba(225, 29, 72, 0.12));
}
.hero-illustration img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero p { margin-bottom: 22px; }
.hero p b { color: var(--text); }

/* === BUTTONS === */
.btn-pink {
  display: block; width: 100%;
  background: var(--pink); color: #fff;
  padding: 15px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 14px; text-align: center;
  border: none; cursor: pointer;
  margin-top: auto;
  box-shadow: 0 6px 16px rgba(225,29,72,0.25);
  transition: transform 0.1s, box-shadow 0.2s;
  font-family: inherit;
}
.btn-pink:hover { background: var(--pink-dark); box-shadow: 0 8px 20px rgba(225,29,72,0.35); }
.btn-pink:active { transform: scale(0.98); }
.btn-pink:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; box-shadow: none; }

.btn-green {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: var(--green); color: #fff;
  padding: 15px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 14px; border: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(34,197,94,0.3);
  margin-top: auto;
  font-family: inherit;
}
.btn-green:hover { filter: brightness(0.95); }

/* === OPTIONS === */
.opts {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 18px;
}
.opt {
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--text);
  border: 1.5px solid var(--border);
  padding: 12px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  text-align: left; cursor: pointer;
  width: 100%; font-family: inherit;
  transition: all 0.15s;
}
.opt:hover { border-color: var(--pink); background: var(--pink-50); }
.opt[aria-pressed="true"] { border-color: var(--pink); background: var(--pink-50); color: var(--pink); font-weight: 700; }
.opt .emoji { font-size: 18px; }
.opt.dq-opt[aria-pressed="true"] { border-color: var(--text-muted); background: #f3f4f6; color: var(--text-muted); }

/* === ALERT BOXES === */
.alert-pink {
  background: var(--pink-50);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 12px; color: #881337;
  line-height: 1.5; margin-bottom: 18px;
}
.alert-pink b { color: var(--pink-dark); }
.alert-warn {
  background: var(--amber-50);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 12px; color: var(--amber-900);
  line-height: 1.5; margin-bottom: 18px;
}
.alert-neutral {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 12px; color: var(--text-soft);
  margin-bottom: 18px;
  text-align: center;
}

/* === EDU ICON === */
.edu-icon { font-size: 30px; margin-bottom: 8px; }

/* === VALUE CARD === */
.value-card {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff; text-align: center;
  padding: 18px; border-radius: var(--radius);
  margin-bottom: 16px;
}
.value-card .vlabel {
  font-size: 11px; opacity: 0.9;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.value-card .vbig { font-size: 34px; font-weight: 800; line-height: 1; }
.value-card .vbig span { font-size: 22px; }
.value-card .vtail { font-size: 11px; opacity: 0.85; margin-top: 4px; }

/* === CAPTURE FORM === */
.capture-icon { font-size: 32px; text-align: center; margin-bottom: 4px; }
.field { display: block; margin-bottom: 14px; }
.field span {
  font-size: 11px; color: var(--text-muted); font-weight: 600;
  display: block; margin-bottom: 5px;
}
.field input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px; color: var(--text);
  font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-50); }
.privacy {
  background: #f9fafb; border-radius: 10px; padding: 11px;
  font-size: 11px; color: var(--text-muted);
  line-height: 1.5; margin-bottom: 12px;
}
.privacy b { color: var(--text); }
.privacy a { color: var(--pink); text-decoration: underline; }
.lgpd-check {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 11px; color: var(--text-muted);
  margin-bottom: 14px; cursor: pointer;
}
.lgpd-check input { margin-top: 2px; accent-color: var(--pink); flex-shrink: 0; }

/* === LOADING === */
.loading-screen .body { justify-content: center; }
.loading-pct {
  font-size: 38px; font-weight: 800; color: var(--pink);
  text-align: center; margin-top: 24px; margin-bottom: 4px;
}
.loading-pct.alt { color: var(--accent); }
.check-list { list-style: none; max-width: 240px; margin: 24px auto 0; }
.check-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 10px;
}
.check-list li.done { color: var(--text); }
.check-list .ring {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%; flex-shrink: 0;
  display: inline-block;
  transition: all 0.3s;
}
.check-list li.done .ring {
  background: var(--pink); border-color: var(--pink);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px;
}
.check-list li.done .ring::before { content: '✓'; }

/* === DIAGNÓSTICO === */
.diag-illustration {
  width: 200px; height: 200px;
  margin: 4px auto 12px;
  display: block;
}
.diag-illustration img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(161, 98, 7, 0.15));
}
.badge-green {
  background: var(--green-50); color: var(--green-700);
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700;
  margin: 0 auto 12px; display: table;
}
.diag-msg {
  font-size: 17px; font-weight: 800; text-align: center;
  margin-bottom: 16px; line-height: 1.3;
}
.diag-msg em { color: var(--pink); font-style: normal; }

/* === SOBRE / DEPOIMENTOS === */
.lawyer-card {
  text-align: center; margin-bottom: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--pink-50);
}
.lawyer-photo {
  width: 76px; height: 76px;
  border-radius: 50%;
  margin: 0 auto 8px;
  object-fit: cover;
  display: block;
  border: 2px solid var(--pink-100);
}
.lawyer-title {
  font-size: 10px; color: var(--pink);
  text-transform: uppercase; letter-spacing: 1px;
  font-weight: 600; margin: 2px 0 10px;
}
.lawyer-bio { font-size: 12px; color: var(--text-soft); line-height: 1.5; }
.stats-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 6px; margin: 14px 0 18px; padding: 14px;
  background: var(--pink-50); border-radius: var(--radius); text-align: center;
}
.stat-num { font-size: 18px; font-weight: 800; color: var(--pink); }
.stat-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.test-card {
  border: 1px solid var(--pink-50); border-radius: var(--radius);
  padding: 12px; margin-bottom: 8px; background: #fafafa;
}
.test-card header {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 6px; margin-bottom: 6px;
}
.test-card header strong { font-size: 12px; }
.test-card header span { font-size: 10px; color: var(--text-muted); }
.test-card .stars { color: var(--pink); font-size: 11px; }
.test-card p { font-size: 11px; color: var(--text-soft); line-height: 1.5; font-style: italic; }

/* === CTA FINAL === */
.cta-icon { font-size: 50px; text-align: center; margin: 16px 0 12px; }
.cta-checks {
  background: var(--green-50); border-radius: var(--radius);
  padding: 14px; border: 1px solid var(--green-200);
  margin-bottom: 16px;
}
.cta-checks div { font-size: 12px; color: var(--green-700); margin-bottom: 6px; }
.cta-checks div:last-child { margin-bottom: 0; }

/* === DESQUALIFICAÇÃO === */
.dq-illustration {
  width: 140px; height: 140px;
  margin: 28px auto 16px;
  background: #f3f4f6; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; opacity: 0.7;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1a1a1a; color: #fff; padding: 14px 18px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  z-index: 9999;
  font-size: 12px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}
.cookie-banner button {
  background: var(--pink); color: #fff; border: none;
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-weight: 600; cursor: pointer; font-size: 12px;
  font-family: inherit;
}
.cookie-banner a { color: var(--pink); text-decoration: underline; }

/* === COMPACT MOBILE (alturas curtas: iPhone 12, Pixel 5, Galaxy S etc) === */
@media (max-height: 700px) {
  .body { padding: 16px 22px 20px; }
  .hero-illustration {
    width: 130px; height: 130px;
    margin: 6px auto 10px;
    font-size: 56px;
  }
  .hero p { margin-bottom: 14px; }
  h1 { font-size: 20px; margin-bottom: 8px; }
  h2 { font-size: 18px; }
  p.qsub, .qsub { margin-bottom: 12px; }
  p.meta, .meta { margin-top: 8px; }
  .btn-pink, .btn-green { padding: 13px; }
  .opts { gap: 6px; margin-bottom: 12px; }
  .opt { padding: 10px 14px; }
  .alert-pink, .alert-warn, .alert-neutral { padding: 10px 12px; margin-bottom: 12px; }
  .edu-icon { font-size: 26px; margin-bottom: 4px; }
  .capture-icon { font-size: 26px; margin-bottom: 2px; }
  .cta-icon { font-size: 40px; margin: 8px 0 8px; }
  .value-card { padding: 14px; margin-bottom: 12px; }
  .value-card .vbig { font-size: 30px; }
  .field { margin-bottom: 10px; }
  .privacy { padding: 9px; margin-bottom: 10px; }
  .dq-illustration {
    width: 110px; height: 110px;
    margin: 16px auto 10px;
    font-size: 48px;
  }
}

/* === COMPACT MOBILE XS (iPhone SE 1ª/2ª gen, telas muito curtas) === */
@media (max-height: 600px) {
  .top-bar { padding: 10px 18px; }
  .top-bar .logo { height: 26px; }
  .top-bar .logo.small { height: 20px; }
  .body { padding: 12px 22px 16px; }
  .hero-illustration {
    width: 100px; height: 100px;
    margin: 2px auto 6px;
    font-size: 44px;
  }
  .hero p { margin-bottom: 10px; font-size: 12px; }
  h1 { font-size: 19px; margin-bottom: 6px; line-height: 1.15; }
  h2 { font-size: 17px; }
  p, p.qsub, .qsub { font-size: 12px; }
  p.qsub, .qsub { margin-bottom: 10px; }
  p.meta, .meta { margin-top: 6px; font-size: 10px; }
  .btn-pink, .btn-green { padding: 12px; font-size: 13px; }
  .progress { margin: 0 18px 4px; }
  .opt { padding: 9px 12px; font-size: 12px; }
  .alert-pink, .alert-warn, .alert-neutral { font-size: 11px; padding: 8px 12px; margin-bottom: 10px; }
  .edu-icon { font-size: 22px; margin-bottom: 2px; }
  .value-card { padding: 12px; margin-bottom: 10px; }
  .value-card .vbig { font-size: 26px; }
  .value-card .vlabel { font-size: 10px; }
  .field input { padding: 10px 12px; font-size: 13px; }
  .privacy { font-size: 10px; padding: 8px; margin-bottom: 8px; }
  .cta-icon { font-size: 34px; margin: 4px 0 6px; }
  .cta-checks { padding: 10px; margin-bottom: 10px; }
  .cta-checks div { font-size: 11px; margin-bottom: 4px; }
  .dq-illustration {
    width: 90px; height: 90px;
    margin: 10px auto 8px;
    font-size: 40px;
  }
  .check-list { margin: 14px auto 0; }
  .check-list li { font-size: 12px; margin-bottom: 6px; }
  .loading-pct { font-size: 30px; margin-top: 14px; }
}

/* === RESPONSIVE === */
@media (min-width: 768px) {
  /* Fundo decorativo pra LP não parecer um phone preview num cinza vazio */
  html, body {
    background:
      radial-gradient(at 20% 20%, rgba(225, 29, 72, 0.10) 0%, transparent 45%),
      radial-gradient(at 80% 80%, rgba(161, 98, 7, 0.08) 0%, transparent 45%),
      var(--bg-wrap);
    background-attachment: fixed;
  }
  body { padding: 40px 0; }
  .quiz {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(159, 18, 57, 0.10), 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden;
    min-height: 0;
    margin-bottom: 40px;
  }
  /* Telas em desktop: altura confortável, sem 100vh causando dead space */
  .screen { min-height: 560px; }
  .body { padding: 28px 32px 32px; }
  h1 { font-size: 26px; }
  h2 { font-size: 21px; }
  .btn-pink, .btn-green { padding: 16px; font-size: 15px; }
  .hero-illustration { width: 200px; height: 200px; font-size: 80px; }
}
