@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-700-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --cream: #fff8ec;
  --cream-alt: #f5e8d3;
  --white: #fff;
  --ink: #342319;
  --ink-soft: #6b584b;
  --terracotta: #b83b23;
  --terracotta-dark: #96301c;
  --butter: #f4b942;
  --olive: #596b38;
  --line: #e4d5be;
  --line-soft: #efe2cd;
  --display: "Fraunces", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 18px 48px rgba(52, 35, 25, .11);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(244, 185, 66, .18), transparent 28rem),
    radial-gradient(circle at 100% 90%, rgba(184, 59, 35, .08), transparent 31rem),
    var(--cream);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
}
button, a { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quiz-app {
  width: min(100%, 1180px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px;
}
.screen {
  width: 100%;
  min-height: calc(100vh - 36px);
  min-height: calc(100dvh - 36px);
  animation: enter .38s ease both;
}
@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.3rem;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand--small { font-size: 1rem; }
.brand--small img { width: 36px; height: 36px; }
.brand--center { justify-content: center; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--terracotta);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}
.eyebrow span { color: var(--butter); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; }
h1 { margin: 0; font-size: clamp(2.05rem, 9vw, 4.1rem); letter-spacing: -.035em; }
h2 { margin: 0; font-size: clamp(1.8rem, 7.2vw, 3.15rem); letter-spacing: -.025em; }

.btn {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn--primary {
  background: linear-gradient(180deg, #cf472a, var(--terracotta));
  color: var(--white);
  box-shadow: 0 8px 22px rgba(184, 59, 35, .27);
}
.btn--primary:hover { background: linear-gradient(180deg, #d54a2c, var(--terracotta-dark)); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }
.btn:focus-visible, .option:focus-visible, .back-btn:focus-visible, .text-btn:focus-visible {
  outline: 3px solid rgba(184, 59, 35, .35);
  outline-offset: 3px;
}
.btn--wide { width: 100%; }

/* INTRO */
.screen--intro {
  display: grid;
  place-items: center;
  padding-block: 18px 30px;
}
.intro__copy { width: min(100%, 760px); margin: 0 auto; text-align: center; }
.intro__copy > .brand { margin-bottom: 28px; }
.intro__lead {
  max-width: 58ch;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 1.025rem;
}
.benefit-list {
  display: grid;
  gap: 10px;
  max-width: 610px;
  margin: 24px auto;
  padding: 0;
  list-style: none;
  text-align: left;
}
.benefit-list li { position: relative; padding-left: 29px; font-size: .93rem; font-weight: 650; }
.benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--butter);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 900;
}
.microcopy { margin: 10px 0 0; color: var(--ink-soft); font-size: .75rem; text-align: center; }
.microcopy span { padding-inline: 4px; color: var(--line); }

/* QUESTIONÁRIO */
.screen--question { max-width: 760px; margin: 0 auto; padding-bottom: 30px; }
.quiz-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 4px 0 13px; }
.progress-copy { margin: 0; color: var(--ink-soft); font-size: .78rem; font-weight: 750; }
.progress { height: 7px; overflow: hidden; border-radius: 999px; background: var(--line-soft); }
.progress span {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--terracotta), var(--butter));
  transition: width .32s ease;
}
.question-card { margin-top: 25px; }
.question-step { margin: 0 0 10px; color: var(--terracotta); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.question-card h2 { max-width: 19ch; font-size: clamp(1.75rem, 7vw, 2.75rem); }
.question-help { min-height: 1.5em; margin: 9px 0 20px; color: var(--ink-soft); font-size: .9rem; }
.prep-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
.prep-mosaic img { width: 100%; height: 64px; border-radius: 9px; object-fit: cover; }
.prep-mosaic--question { margin: -5px 0 14px; }
.options { display: grid; gap: 10px; }
.option {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 13px 44px 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 3px 12px rgba(52, 35, 25, .04);
  cursor: pointer;
  font-weight: 720;
  line-height: 1.3;
  text-align: left;
  transition: border .16s ease, transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.option::after {
  content: "→";
  position: absolute;
  right: 16px;
  color: var(--terracotta);
  font-weight: 900;
}
.option:hover { border-color: var(--terracotta); background: var(--white); transform: translateY(-1px); box-shadow: 0 7px 18px rgba(52, 35, 25, .07); }
.option.is-selected { border-color: var(--terracotta); background: #fff1e9; }
.option__key {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-alt);
  color: var(--terracotta);
  font-size: .75rem;
  font-weight: 850;
}
.option__copy { display: grid; gap: 2px; }
.option__copy small { color: var(--ink-soft); font-size: .76rem; font-weight: 520; }
.question-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.question-nav p { margin: 0; color: var(--ink-soft); font-size: .7rem; text-align: right; }
.back-btn, .text-btn { padding: 7px 2px; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; font-weight: 700; }
.back-btn:hover, .text-btn:hover { color: var(--terracotta); }

/* TRANSIÇÕES E CARREGAMENTO */
.screen--transition, .screen--loading { display: grid; max-width: 650px; margin: 0 auto; place-items: center; }
.transition-card, .loading-card {
  width: 100%;
  padding: 38px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--shadow);
  text-align: center;
}
.transition-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--butter);
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 900;
}
.transition-card h2 { margin-inline: auto; font-size: clamp(1.9rem, 8vw, 3rem); }
.transition-card > p:not(.eyebrow) { max-width: 46ch; margin: 15px auto 25px; color: var(--ink-soft); }
.loading-mark { display: grid; width: 94px; height: 94px; margin: 0 auto 22px; place-items: center; animation: breathe 1.5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.loading-card h2 { font-size: clamp(1.8rem, 7vw, 2.7rem); }
.analysis-list { display: grid; gap: 12px; max-width: 410px; margin: 25px auto; padding: 0; list-style: none; text-align: left; }
.analysis-list li { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .86rem; opacity: .45; transition: opacity .22s ease, color .22s ease; }
.analysis-list li > span { width: 19px; height: 19px; border: 2px solid var(--line); border-radius: 50%; transition: background .22s ease, border .22s ease; }
.analysis-list li.is-done { color: var(--ink); opacity: 1; }
.analysis-list li.is-done > span { display: grid; place-items: center; border-color: var(--olive); background: var(--olive); }
.analysis-list li.is-done > span::before { content: "✓"; color: var(--white); font-size: .68rem; font-weight: 900; }
.loading-bar { height: 7px; overflow: hidden; border-radius: 999px; background: var(--line-soft); }
.loading-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--terracotta), var(--butter)); animation: loading 2.7s ease forwards; }
@keyframes loading { to { width: 100%; } }

/* RESULTADO */
.screen--result { display: grid; place-items: center; padding-block: 20px 35px; }
.result__copy { width: min(100%, 720px); margin: 0 auto; text-align: center; }
.profile-pill { display: inline-flex; flex-direction: column; gap: 2px; margin: 0 0 12px; padding: 8px 13px; border-radius: 12px; background: var(--cream-alt); color: var(--terracotta); font-size: .67rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.profile-pill strong { color: var(--ink); font-size: .76rem; }
.result-summary { display: grid; gap: 9px; margin: 20px 0; text-align: left; }
.result-summary div { padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .68); }
.result-summary span { display: block; margin-bottom: 2px; color: var(--ink-soft); font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.result-summary strong { font-size: .9rem; }
.result__meaning { margin: 20px 0 13px; padding: 15px 16px; border-left: 3px solid var(--terracotta); border-radius: 0 12px 12px 0; background: var(--cream-alt); color: var(--ink-soft); font-size: .9rem; text-align: left; }
.result__meaning strong { color: var(--ink); }
.result__meaning p { margin: 5px 0 0; }
.result__recommendation { margin: 0 0 20px; color: var(--ink-soft); font-size: .9rem; }
.text-btn { display: block; margin: 10px auto 0; font-size: .78rem; }

/* VSL E OFERTA */
.screen--vsl { padding: 15px 0 45px; }
.vsl-wrap { width: min(100%, 720px); margin: 0 auto; text-align: center; }
.vsl-wrap h2 { max-width: 19ch; margin-inline: auto; }
.vsl-subhead { max-width: 54ch; margin: 13px auto 0; color: var(--ink-soft); font-size: .94rem; }
.vsl-lead { max-width: 48ch; margin: 16px auto 18px; color: var(--terracotta); font-size: .86rem; font-weight: 750; }
.vsl-player { width: min(100%, 400px); min-height: 420px; margin: 0 auto; overflow: hidden; border-radius: 18px; background: #000; box-shadow: 0 20px 44px rgba(31, 21, 15, .25); }
.vsl-placeholder { display: grid; min-height: 520px; place-items: center; align-content: center; gap: 12px; color: var(--white); }
.vsl-placeholder span { width: 42px; height: 42px; border: 4px solid rgba(255, 255, 255, .3); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; }
.vsl-placeholder p { margin: 0; font-size: .82rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.delayed-checkout {
  display: none;
  width: min(100%, 400px);
  margin-top: 28px;
  margin-inline: auto;
  animation: offerEnter .5s ease both;
}
@keyframes offerEnter { from { opacity: 0; transform: translateY(15px); } }
.btn--checkout { background: linear-gradient(180deg, #db4b2d, #bd371f); box-shadow: 0 8px 24px rgba(0, 0, 0, .24); }
.noscript { margin: 20px; padding: 14px; border: 1px solid var(--line); background: var(--white); text-align: center; }

@media (min-width: 760px) {
  .quiz-app { padding: 28px; }
  .screen { min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); }
  .intro__copy .btn { max-width: 380px; }
  .microcopy { max-width: 380px; margin-inline: auto; }
  .options { grid-template-columns: 1fr 1fr; }
  .option { min-height: 64px; }
  .transition-card, .loading-card { padding: 52px 45px; }
  .result__copy > .btn { max-width: 420px; }
}

@media (max-width: 759px) {
  .screen--intro { padding-top: 8px; }
  .intro__copy > .brand { margin-bottom: 18px; }
  .screen--result { padding-top: 12px; }
  .vsl-player { border-radius: 14px; }
}

@media (max-width: 390px) {
  .quiz-app { padding: 14px; }
  h1 { font-size: 1.92rem; }
  .intro__lead { font-size: .93rem; }
  .benefit-list { margin-block: 19px; }
  .benefit-list li { font-size: .84rem; }
  .btn { min-height: 54px; padding-inline: 16px; font-size: .88rem; }
  .question-card { margin-top: 20px; }
  .option { min-height: 54px; padding-block: 11px; font-size: .86rem; }
  .prep-mosaic img { height: 54px; }
  .question-nav p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
