/* quiz.css · layout de app, uma decisão por tela, opções com imagem */
body.quiz-body {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(221, 184, 114, .22), transparent 70%),
    var(--parchment);
}
.qz { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; background: var(--parchment); }
@supports (min-height: 100svh) { .qz { min-height: 100svh; } }
@media (min-width: 700px) {
  body.quiz-body {
    background:
      radial-gradient(50% 45% at 12% 18%, rgba(221, 184, 114, .30), transparent 70%),
      radial-gradient(45% 40% at 90% 85%, rgba(107, 31, 42, .12), transparent 70%),
      #EFE3CC;
  }
  .qz { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(42, 26, 28, .14); }
}

.qz-head {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 5;
  background: #F6EEDE;
  padding: 10px 14px 12px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); border-bottom: 1px solid var(--line);
}
.qz-head-row { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 8px; }
.qz-back {
  width: 52px; height: 52px; border: 0; background: transparent; border-radius: 14px; cursor: pointer;
  color: var(--wine); display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
}
.qz-back svg { width: 26px; height: 26px; }
.qz-back[disabled] { visibility: hidden; }
.qz-spacer { width: 52px; flex: none; }
.qz-head .brand svg { width: 32px; height: 32px; border-radius: 9px; }
.qz-head .brand-name { font-size: 17px; }
.qz-bar { height: 8px; border-radius: 99px; background: rgba(90, 64, 48, .14); overflow: hidden; margin-top: 8px; }
.qz-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--purple), var(--wine)); transition: width .35s ease; }

.qz-main { flex: 1 0 auto; padding: 24px var(--gut) 44px; }
.screen { -webkit-animation: qzIn .24s ease both; animation: qzIn .24s ease both; }
@-webkit-keyframes qzIn { from { opacity: 0; -webkit-transform: translateY(8px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes qzIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen, .qz-bar i { -webkit-animation: none; animation: none; transition: none; } }

.qz h1 { font-size: 31px; font-size: clamp(30px, 8vw, 40px); margin-bottom: 14px; }
.qz h2 { font-size: 26px; font-size: clamp(25px, 6.6vw, 32px); margin-bottom: 8px; }
.qz .sub { color: var(--ink-2); font-size: 17px; line-height: 1.55; margin: 0 0 20px; }
.qz .seal-label { margin-bottom: 10px; }

/* abertura */
.intro-media { margin: -24px calc(var(--gut) * -1) 22px; position: relative; overflow: hidden; border-radius: 0 0 30px 30px; }
.intro-media img { width: 100%; }
.intro-media::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, rgba(246, 238, 222, 0), rgba(246, 238, 222, .9)); }
.intro-seals { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 0; list-style: none; }
.intro-seals li { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-round); font-weight: 700; font-size: 15px; color: var(--ink-2); }
.intro-seals svg { width: 15px; height: 15px; color: var(--gold); }

/* opções com imagem */
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; }
.ocard {
  position: relative; display: flex; flex-direction: column; width: 100%; margin: 0; padding: 0;
  background: var(--cream); border: 2px solid var(--line); border-radius: 18px; overflow: hidden;
  text-align: left; cursor: pointer; color: var(--ink); box-shadow: var(--shadow-sm);
  -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.ocard:active { transform: scale(.985); }
.oimg { position: relative; width: 100%; padding-top: 100%; overflow: hidden; background: #E6D6BA; }
.oimg picture, .oimg img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.oimg img { object-fit: cover; }
.otxt { display: block; padding: 11px 12px 13px; font-family: var(--f-body); font-weight: 600; font-size: 16px; line-height: 1.35; }
.otxt small { display: block; margin-top: 3px; font-weight: 400; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.tick {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 252, 246, .9); border: 2px solid rgba(255, 255, 255, .95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18); color: transparent;
}
.tick svg { width: 18px; height: 18px; }
.ocard[aria-checked="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 135, 59, .38), var(--shadow-sm); background: #FFF7E6; }
.ocard[aria-checked="true"] .tick { background: var(--gold); border-color: #FFF3DA; color: var(--on-gold); }
.ocard.full { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.ocard.full .oimg { width: 42%; flex: none; padding-top: 42%; }
.ocard.full .otxt { padding: 12px 16px; font-size: 17px; }
.ocard.full .tick { right: auto; left: calc(42% - 40px); }
@media (hover: hover) { .ocard:hover { border-color: rgba(184, 135, 59, .7); } }
.multi-hint { font-family: var(--f-round); font-weight: 700; font-size: 15px; color: var(--gold-deep); margin: -8px 0 16px; }

/* pausas e resultado */
.pmedia { margin: 0 0 20px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.pmedia img { width: 100%; }
.pause blockquote { margin: 18px 0 20px; padding: 18px 20px; background: var(--cream); border-left: 4px solid var(--gold); border-radius: 0 16px 16px 0; }
.pause blockquote p { font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: 20px; line-height: 1.5; color: var(--wine); margin: 0; }
.pause blockquote cite { display: block; margin-top: 8px; font-family: var(--f-round); font-style: normal; font-weight: 700; font-size: 15px; color: var(--gold-deep); }
.steps8 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 10px; padding: 0; list-style: none; }
.steps8 li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; font-family: var(--f-round); font-weight: 700; font-size: 16px; line-height: 1.25; }
.steps8 b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--wine); color: #FFF3E0; font-family: var(--f-serif); font-size: 15px; }
.qz-foot-note { font-size: 15px; color: var(--ink-2); margin: 0 0 6px; }

/* nome */
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-family: var(--f-round); font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 58px; padding: 14px 16px; font-family: var(--f-body); font-size: 18px; color: var(--ink);
  background: var(--cream); border: 2px solid var(--line-strong); border-radius: 16px; -webkit-appearance: none; appearance: none;
}
.field input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(184, 135, 59, .3); }
.field small { display: block; margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.err { color: var(--wine); font-weight: 600; font-size: 16px; margin: -8px 0 14px; }

/* carregando */
.loading { text-align: center; padding-top: 10px; }
.ring { width: 76px; height: 76px; margin: 8px auto 20px; border-radius: 50%; border: 5px solid rgba(184, 135, 59, .22); border-top-color: var(--wine); -webkit-animation: spin 1s linear infinite; animation: spin 1s linear infinite; }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.load-steps { list-style: none; padding: 0; margin: 22px auto 0; max-width: 420px; text-align: left; display: grid; gap: 10px; }
.load-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); opacity: .45; font-size: 16px; line-height: 1.4; transition: opacity .3s ease; }
.load-steps li .d { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(90, 64, 48, .12); color: transparent; }
.load-steps li .d svg { width: 15px; height: 15px; }
.load-steps li.on { opacity: 1; }
.load-steps li.done .d { background: var(--olive); color: #fff; }

/* resultado */
.res-top { text-align: center; }
.mirror { margin: 18px 0 22px; }
.mirror dl { margin: 6px 0 0; }
.mirror .row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed rgba(90, 64, 48, .22); }
.mirror .row:last-child { border-bottom: 0; }
.mirror dt { font-family: var(--f-round); font-weight: 700; font-size: 15px; color: var(--ink-2); flex: 0 0 42%; }
.mirror dd { margin: 0; text-align: right; font-weight: 600; font-size: 16px; line-height: 1.4; }
.plan { list-style: none; counter-reset: p; padding: 0; margin: 16px 0 22px; display: grid; gap: 12px; }
.plan li { counter-increment: p; position: relative; padding: 16px 16px 16px 60px; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; }
.plan li::before { content: counter(p); position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #E3BD76, var(--gold)); color: var(--on-gold); font-family: var(--f-serif); font-weight: 700; font-size: 17px; line-height: 1; }
.plan b { display: block; font-family: var(--f-round); font-weight: 700; font-size: 18px; line-height: 1.35; margin-bottom: 2px; }
.plan span { display: block; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.honest { font-size: 15px; color: var(--ink-2); background: rgba(90, 64, 48, .06); border-radius: 14px; padding: 12px 14px; }

.qz-foot { padding: 18px var(--gut) calc(22px + var(--safe-b)); font-size: 14px; line-height: 1.55; color: var(--ink-2); text-align: center; border-top: 1px solid var(--line); }
.qz-foot a { color: var(--wine); font-weight: 600; }
h1[tabindex]:focus, h2[tabindex]:focus { outline: none; }
