/* Quiz Completo · Desafio 28D — herda tokens de styles.css */

@import url("styles.css");

/* Page layout — phone centered, dark surround */
html, body { height: 100%; }
body {
  margin: 0;
  background: #0d0c0b;
  font-family: var(--font-body);
  color: #f5f1ea;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  padding: 16px;
  overflow: hidden;
}
#root { display: contents; }

.q-stage {
  width: 390px; height: 844px;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
  box-shadow:
    0 0 0 12px #1a1816,
    0 0 0 13px #2a2520,
    0 30px 80px -10px rgba(0,0,0,.7),
    0 0 0 1px rgba(0,0,0,.6);
  isolation: isolate;
}

/* Step container */
.qs {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--ink);
  color: #f5f1ea;
}
.qs.light { background: var(--paper); color: var(--ink); }

/* Header (back + progress + counter) */
.q-hd {
  flex: 0 0 auto;
  padding: 56px 22px 14px;
  display: grid;
  grid-template-columns: 32px 1fr 50px;
  gap: 12px;
  align-items: center;
}
.q-back {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  color: rgba(245,241,234,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
}
.q-back:hover { background: rgba(255,255,255,.06); color: #fff; }
.qs.light .q-back { color: rgba(0,0,0,.6); }
.qs.light .q-back:hover { background: rgba(0,0,0,.06); color: #000; }

.q-counter {
  font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  text-align: right;
  opacity: .55;
}

/* Body */
.q-body {
  flex: 1 1 0;
  padding: 6px 24px 16px;
  display: flex; flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.q-body::-webkit-scrollbar { display: none; }

.q-eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: .55;
  margin-bottom: 14px;
}
.q-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  text-wrap: balance;
}
.q-title.lg { font-size: clamp(28px, 9vw, 38px); }

/* V0Redesign hero — altura viewport-aware */
.v0r-hero { height: clamp(180px, 32vh, 300px); }

/* Viewports curtos (iPhone SE etc) — comprime spacing pra CTA caber */
@media (max-height: 700px) {
  .mob-c { gap: 10px; padding-top: 10px; padding-bottom: 18px; }
  .q-title.lg { font-size: clamp(24px, 8vw, 32px); line-height: 1.05; }
  .cta { height: 52px; font-size: 16.5px; }
  .v0r-hero { height: clamp(140px, 26vh, 200px); }
}
.q-title.xl { font-size: 44px; line-height: .98; }
.q-sub {
  font-size: 15px;
  line-height: 1.4;
  opacity: .72;
  margin: 0 0 20px;
  text-wrap: balance;
}
.q-sub strong { color: #f5f1ea; font-weight: 700; }
.qs.light .q-sub strong { color: #0a0a0a; }

/* Footer */
.q-ft {
  flex: 0 0 auto;
  padding: 10px 24px 30px;
  display: flex; flex-direction: column; gap: 8px;
}

/* Choice list (single + multi) */
.q-opts { display: flex; flex-direction: column; gap: 10px; }
.q-opt {
  appearance: none;
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: inherit;
  border-radius: 14px;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background .12s, border-color .12s, transform .08s;
}
.q-opt:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.q-opt:active { transform: scale(.99); }
.q-opt.sel {
  background: rgba(233,106,45,.12);
  border-color: var(--brand);
  color: #fff;
}
.q-opt .ic {
  font-size: 20px;
  width: 30px; flex: 0 0 auto;
  text-align: center;
}
.q-opt .lbl {
  flex: 1 1 auto;
  line-height: 1.2;
}
.q-opt .arr {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; opacity: .5;
  flex: 0 0 auto;
}
.q-opt.sel .arr {
  background: var(--brand);
  color: #0a0a0a;
  opacity: 1;
}
.q-opt .check {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex: 0 0 auto;
}
.q-opt.sel .check {
  background: var(--brand); border-color: var(--brand); color: #0a0a0a;
}

/* Visual choice cards (gender, physique, objective) */
.q-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.q-cards.cols-1 { grid-template-columns: 1fr; }
.q-card {
  appearance: none; border: 0; cursor: pointer;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px 14px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: inherit;
  font-family: var(--font-body);
  transition: background .12s, border-color .12s, transform .08s;
}
.q-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.q-card:active { transform: scale(.98); }
.q-card.sel {
  background: rgba(233,106,45,.1);
  border-color: var(--brand);
}
.q-card .silh {
  width: 100%;
  aspect-ratio: 1/1.25;
  border-radius: 10px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.q-card .nm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.q-card .meta {
  font-size: 11.5px;
  opacity: .6;
  letter-spacing: .04em;
  margin-top: -6px;
}

/* Silhuetas — placeholder visual (gradiente + tag) */
.silh-male { background: linear-gradient(160deg,#3a312a 0%,#5a4530 100%); }
.silh-female { background: linear-gradient(160deg,#5a3a40 0%,#3a2530 100%); }
.silh-magro { background: linear-gradient(180deg,#4a3d35 0%,#1a1612 100%); }
.silh-falsomagro { background: linear-gradient(180deg,#5a4530 0%,#1a1612 100%); }
.silh-sobrepeso { background: linear-gradient(180deg,#6a5240 0%,#1a1612 100%); }
.silh-obeso { background: linear-gradient(180deg,#7a5d44 0%,#1a1612 100%); }
.silh-objgain { background: linear-gradient(160deg, rgba(233,106,45,.25), #1a1612); }
.silh-objloss { background: linear-gradient(160deg, rgba(33,179,111,.25), #1a1612); }

.silh svg { width: 60%; height: 100%; }

/* Slider (height/weight) */
.q-slider-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 0;
}
.q-slider-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 72px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand);
  display: flex; align-items: baseline; gap: 8px;
}
.q-slider-val .u {
  font-size: 18px;
  font-weight: 600;
  color: rgba(245,241,234,.5);
  letter-spacing: 0;
}
.q-slider-tabs {
  display: flex;
  background: rgba(255,255,255,.04);
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
}
.q-slider-tabs button {
  appearance: none; border: 0; cursor: pointer;
  background: transparent; color: rgba(245,241,234,.6);
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  padding: 6px 14px; border-radius: 7px;
  text-transform: uppercase; letter-spacing: .1em;
}
.q-slider-tabs button.on {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.q-ruler {
  width: 100%;
  margin-top: 12px;
  position: relative;
  padding: 24px 0 12px;
}
.q-ruler input {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 3px;
  background: linear-gradient(to right, var(--brand) 0%, var(--brand) var(--p), rgba(255,255,255,.1) var(--p), rgba(255,255,255,.1) 100%);
  border-radius: 999px;
  outline: none;
}
.q-ruler input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #f5f1ea;
  border: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  cursor: pointer;
}
.q-ruler input::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #f5f1ea;
  border: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  cursor: pointer;
}
.q-ruler-marks {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: .4;
}

/* Aviso (Step 6) */
.q-warn {
  margin: 0;
  padding: 28px 24px;
  text-align: center;
}
.q-warn .ic {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(245,197,24,.12);
  border: 1px solid rgba(245,197,24,.4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 30px;
}
.q-warn h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.q-warn p {
  font-size: 15px;
  line-height: 1.45;
  opacity: .8;
  margin: 0;
}

/* Story (Step 8) */
.q-story h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.q-story p {
  font-size: 14.5px;
  line-height: 1.5;
  opacity: .82;
  margin: 0 0 12px;
}
.q-story .ba-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.q-story .ba {
  position: relative;
  aspect-ratio: 1/1.25;
  border-radius: 12px;
  overflow: hidden;
  display: flex; align-items: flex-end; padding: 10px;
}
.q-story .ba.before { background: linear-gradient(180deg,#3a312a 0%,#1a1612 100%); }
.q-story .ba.after { background: linear-gradient(180deg, rgba(233,106,45,.3) 0%, #2a1a10 100%); }
.q-story .ba .tag {
  font-family: var(--font-display);
  font-weight: 700; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  padding: 5px 10px; border-radius: 999px;
  color: #fff;
}
.q-story .ba.after .tag { background: var(--brand); color: #0a0a0a; }

/* Authority (Step 10) */
.q-auth-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.q-auth-stats > div {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px 12px;
}
.q-auth-stats .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1;
}
.q-auth-stats .l {
  font-size: 11px;
  opacity: .7;
  margin-top: 4px;
  line-height: 1.3;
}

.q-auth-quote {
  border-left: 2px solid var(--brand);
  padding: 4px 0 4px 14px;
  font-size: 14px;
  line-height: 1.4;
  font-style: italic;
  opacity: .85;
  margin: 14px 0;
}

/* Product features (Step 11) */
.q-feat-list { display: flex; flex-direction: column; gap: 10px; }
.q-feat {
  display: flex; gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}
.q-feat .feat-ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(233,106,45,.1);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex: 0 0 auto;
}
.q-feat h4 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}
.q-feat p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.35;
  opacity: .65;
}

/* Loading (Step 18) */
.q-loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  height: 100%;
  padding: 40px 30px;
}
.q-loading .ring {
  width: 96px; height: 96px;
  margin-bottom: 26px;
  position: relative;
}
.q-loading .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.q-loading h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.q-loading p { margin: 0; opacity: .7; font-size: 14px; line-height: 1.4; }
.q-loading .step-list {
  margin-top: 24px;
  width: 100%;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px;
  text-align: left;
}
.q-loading .step-list li {
  display: flex; align-items: center; gap: 10px;
  list-style: none;
  opacity: .35;
  transition: opacity .3s;
}
.q-loading .step-list li.on { opacity: 1; }
.q-loading .step-list li.done { opacity: .7; }
.q-loading .step-list .b {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex: 0 0 auto;
}
.q-loading .step-list li.on .b { background: var(--brand); border-color: var(--brand); color: #0a0a0a; }
.q-loading .step-list li.done .b { background: rgba(33,179,111,.6); border-color: rgba(33,179,111,.6); color: #fff; }

/* Results (Step 19) */
.q-result-banner {
  background: linear-gradient(135deg, rgba(233,106,45,.18), rgba(233,69,69,.12));
  border: 1px solid rgba(233,106,45,.3);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex; gap: 12px; align-items: flex-start;
}
.q-result-banner .ic {
  font-size: 20px;
  flex: 0 0 auto;
}
.q-result-banner .txt {
  font-size: 13.5px;
  line-height: 1.4;
}
.q-gauges {
  display: flex; flex-direction: column; gap: 12px;
  margin: 12px 0;
}
.q-gauge {
  display: flex; align-items: center; gap: 14px;
}
.q-gauge .ring-sm { width: 52px; height: 52px; flex: 0 0 auto; position: relative; }
.q-gauge .ring-sm svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.q-gauge .ring-sm .pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.q-gauge .body { flex: 1 1 0; min-width: 0; }
.q-gauge .body h4 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.q-gauge .body p {
  margin: 0; font-size: 12px; line-height: 1.35; opacity: .65;
}

/* Projection (Step 20) */
.q-proj-card {
  border: 1px solid rgba(233,106,45,.3);
  background: linear-gradient(180deg, rgba(233,106,45,.08), transparent);
  border-radius: 16px;
  padding: 18px;
  margin: 12px 0;
}
.q-proj-card h4 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}
.q-proj-card .big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.q-proj-card .meta {
  margin-top: 6px;
  font-size: 12.5px;
  opacity: .7;
}

.q-timeline {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.q-tl-step {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.q-tl-step .day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--brand);
  letter-spacing: -.01em;
}
.q-tl-step .lbl {
  font-size: 10px;
  opacity: .6;
  margin-top: 4px;
  line-height: 1.2;
}

/* Continue button helper */
.q-continue-help {
  font-size: 11.5px;
  text-align: center;
  opacity: .5;
}

/* CTA in light variants */
.qs.light .cta { color: #fff; }

/* Bottom-fixed CTA section in tall steps */
.q-cta-block { display: flex; flex-direction: column; gap: 6px; }

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.q-body > * { animation: fade-up .35s ease both; }
.q-body > *:nth-child(2) { animation-delay: .04s; }
.q-body > *:nth-child(3) { animation-delay: .08s; }
.q-body > *:nth-child(4) { animation-delay: .12s; }
.q-body > *:nth-child(5) { animation-delay: .16s; }

/* Header hairline transition */
.q-prog-bar {
  position: absolute; top: 49px; left: 24px; right: 24px;
  height: 3px;
  background: rgba(255,255,255,.07);
  border-radius: 999px; overflow: hidden;
}
.qs.light .q-prog-bar { background: rgba(0,0,0,.08); }
.q-prog-bar > i {
  display: block; height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width .35s cubic-bezier(.3,.7,.3,1);
}

/* logo small in header */
.q-logo-sm {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}

/* skip-style entry button (Step 1 only) */
.q-step1-card {
  display: flex; flex-direction: column; height: 100%;
}
