/* ============================================================
   quiz.css · estilos só do quiz (index.html)
   Depende de base.css (tokens, botão, etiquetas, gráfico, urgência).
   ============================================================ */
.wrap { max-width: 520px; margin: 0 auto; padding: 0 16px; }

/* Barra do topo + progresso */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 15, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bd); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.back { width: 40px; height: 40px; border: 0; background: transparent; color: var(--mu); font-size: 22px; border-radius: 10px; cursor: pointer; visibility: hidden; }
.back.on { visibility: visible; }
.brand { font-family: var(--display); font-size: 22px; letter-spacing: .06em; }
.brand b { color: var(--ac); }
.count { font-size: 12px; color: var(--mu); font-weight: 600; min-width: 40px; text-align: right; }
.progress { height: 4px; background: var(--sur2); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ac), var(--ye)); transition: width .4s ease; }

/* Banner de urgência (resultado): gruda logo abaixo da barra do topo */

/* Tela */
.screen { padding: 22px 0 130px; animation: up .35s ease both; }
@keyframes up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
h1.q { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1; letter-spacing: .01em; margin-bottom: 10px; }
h1.q em { font-style: normal; color: var(--ac2); }
.sub { color: var(--mu); font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
.hero { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 18px; background: var(--sur); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero--full { aspect-ratio: auto; }
.hero--full img { height: auto; object-fit: contain; }

/* Opções em lista (chips) */
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--sur); border: 1.5px solid var(--bd); border-radius: var(--r); padding: 15px 16px; cursor: pointer; transition: transform .08s, border-color .15s, background .15s; }
.opt:active { transform: scale(.985); }
.opt .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--sur2); display: grid; place-items: center; font-size: 22px; flex: none; }
.opt .lab { font-weight: 600; font-size: 16px; line-height: 1.25; }
.opt .lab small { display: block; font-weight: 500; color: var(--mu); font-size: 13px; margin-top: 2px; }
.opt .chk { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bd); flex: none; display: grid; place-items: center; }
.opt.multi .chk { border-radius: 6px; }
.opt.sel { border-color: var(--ac); background: rgba(227, 38, 43, .1); }
.opt.sel .chk { background: var(--ac); border-color: var(--ac); }
.opt.sel .chk::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }

/* Cards com foto */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cards.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card { position: relative; border: 2px solid var(--bd); border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--sur); cursor: pointer; padding: 0; text-align: left; }
.card img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .4s; }
.card:hover img { transform: scale(1.04); }
.card .lab { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .9)); display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 14px; line-height: 1.2; }
.cards.big .card .lab { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .04em; align-items: center; }
.cards.three .card .lab { padding: 30px 8px 10px; font-size: 12px; }
.card .pick { width: 28px; height: 28px; border-radius: 50%; background: var(--ac); display: grid; place-items: center; font-size: 16px; flex: none; }
.cards.big .card .pick { width: 34px; height: 34px; font-size: 18px; }
.cards.three .card .pick { width: 22px; height: 22px; font-size: 13px; }
.cards.multi .card .pick { background: rgba(255, 255, 255, .15); border: 2px solid rgba(255, 255, 255, .7); border-radius: 7px; width: 24px; height: 24px; }
.cards.multi .card.sel .pick { background: var(--ac); border-color: var(--ac); }
.cards.multi .card.sel .pick::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.card.sel { border-color: var(--ac); box-shadow: 0 0 0 4px rgba(227, 38, 43, .25); }

/* Régua de IMC no topo da prova social */
.imcbox { background: var(--sur); border: 1px solid rgba(227, 38, 43, .45); border-radius: 18px; padding: 16px; margin-bottom: 18px; }
.imcbox .k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); }
.imcbox .big { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--ac2); margin: 4px 0 8px; }
.imcbox .big span { font-size: 22px; color: var(--tx); text-transform: uppercase; letter-spacing: .04em; margin-left: 8px; }
.imcbox svg { width: 100%; height: auto; display: block; margin: 4px 0 6px; }
.imcbox p { font-size: 14px; line-height: 1.5; color: var(--mu); }
.imcbox p b { color: var(--tx); }
h2.q.mid { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: .01em; margin: 4px 0 14px; }
h2.q.mid em { font-style: normal; color: var(--ac2); }

/* Depoimentos com antes e depois */
.ad { display: grid; gap: 14px; }
.ad-card { background: var(--sur); border: 1px solid var(--bd); border-radius: 18px; overflow: hidden; }
.ad-card img { width: 100%; height: auto; display: block; background: var(--sur2); }
.ad-in { padding: 14px 16px 16px; }
.ad-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ad-top .stars { margin: 0; }
.ad-kg { font-family: var(--display); font-size: 32px; line-height: 1; color: var(--gr); letter-spacing: .02em; }
.ad-kg small { font-family: var(--body); font-size: 12px; font-weight: 700; color: var(--mu); letter-spacing: 0; margin-left: 4px; }
.ad-q { font-size: 15px; line-height: 1.45; }

.opts.two { grid-template-columns: 1fr 1fr; gap: 8px; }
.opts.two .opt { padding: 11px 12px; gap: 8px; }
.opts.two .opt .lab { font-size: 14px; }
.opts.two .opt .chk { width: 20px; height: 20px; }

/* Interstícios e prova */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.pill { background: var(--sur); border: 1px solid var(--bd); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.copy { font-size: 16px; line-height: 1.55; }
.copy p + p { margin-top: 12px; }
.copy strong { color: var(--ye); }
.proof { background: var(--sur); border: 1px solid var(--bd); border-radius: 18px; overflow: hidden; margin-top: 14px; }
.proof img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.proof .in { padding: 16px; }
.quote { font-size: 15px; line-height: 1.55; }

/* Campo de texto (nome) */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--mu); margin-bottom: 6px; }
.field input { width: 100%; height: 54px; border-radius: 12px; border: 1.5px solid var(--bd); background: var(--sur); padding: 0 16px; font-size: 17px; outline: 0; }
.field input:focus { border-color: var(--ac); }

/* Sliders (altura, peso, meta) */
.sl { background: var(--sur); border: 1px solid var(--bd); border-radius: var(--r); padding: 16px 16px 12px; margin-bottom: 12px; }
.sl-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.sl-lab { font-weight: 600; font-size: 15px; }
.sl-val { font-family: var(--display); font-size: 20px; color: var(--mu); letter-spacing: .04em; }
.sl-val b { font-size: 36px; color: var(--ye); font-weight: 400; line-height: 1; }
.sl-mm { display: flex; justify-content: space-between; font-size: 11px; color: var(--mu); margin-top: 6px; }
input[type=range] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--ac) var(--p), var(--sur2) var(--p)); outline: 0; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 4px solid var(--ac); box-shadow: 0 4px 14px rgba(0, 0, 0, .5); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 4px solid var(--ac); box-shadow: 0 4px 14px rgba(0, 0, 0, .5); cursor: grab; }
input[type=range]::-moz-range-track { height: 10px; border-radius: 999px; background: var(--sur2); }
input[type=range]::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--ac); }
.imc { background: rgba(255, 200, 56, .08); border: 1px solid rgba(255, 200, 56, .35); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--tx); }
.imc b { color: var(--ye); }

/* Loading */
.load { padding-top: 10px; }
.lrow { margin-bottom: 16px; }
.lrow .t { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.lrow .t span:last-child { color: var(--mu); font-variant-numeric: tabular-nums; }
.lrow .b { height: 10px; border-radius: 999px; background: var(--sur2); overflow: hidden; }
.lrow .b i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ac), var(--ye)); border-radius: 999px; transition: width .25s linear; }
.lrow.done .t span:last-child { color: var(--gr); }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); display: none; align-items: flex-end; justify-content: center; z-index: 50; padding: 16px; }
.modal.on { display: flex; }
.modal .box { width: 100%; max-width: 488px; background: var(--sur); border: 1px solid var(--bd); border-radius: 20px; padding: 20px; animation: up .3s ease; }
.modal h3 { font-family: var(--display); font-size: 28px; font-weight: 400; line-height: 1; margin-bottom: 6px; }
.modal p { color: var(--mu); font-size: 14px; margin-bottom: 14px; }


/* Botão fixo embaixo */
.cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(11, 11, 15, 0), var(--bg) 35%); }
.cta .wrap { padding: 0; }
.cta small { display: block; text-align: center; color: var(--mu); font-size: 11px; margin-top: 8px; }
.foot { text-align: center; color: #55555f; font-size: 11px; padding: 20px 16px 40px; line-height: 1.5; }
