/* Design 5 — Diagnóstico Express: funil em quiz, cores de luz de painel, foco total em conversão */
:root {
  --bg: #111111;
  --bg-2: #1a1a1a;
  --card: #ffffff;
  --line: #2b2b2b;
  --text: #fafafa;
  --ink: #141414;
  --muted: #a3a3a3;
  --muted-ink: #5c5c5c;
  --red: #e11d2a;
  --amber: #fbbf24;
  --green: #22c55e;
  --blue: #3b82f6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 Archivo, system-ui, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.08; }

.nav { border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-style: italic; font-size: 1.3rem; }
.nav__wa { text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: #1f2a22; color: #86efac; font-size: .9rem; }

.quiz-sec { padding: 56px 0 72px; background: radial-gradient(60% 50% at 50% 0%, rgba(225,29,42,.25), transparent 70%); }
.quiz-head { text-align: center; margin-bottom: 36px; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); }
.quiz-head h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); font-weight: 900; margin: 14px 0 12px; }
mark { background: none; color: var(--red); }
.quiz-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }

.quiz { background: var(--card); color: var(--ink); border-radius: 24px; padding: 32px; box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); scroll-margin-top: 16px; }
.progress { height: 6px; background: #eee; border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--red), var(--amber)); transition: width .4s ease; }
.step-count { font-size: .82rem; color: var(--muted-ink); font-weight: 600; margin: 12px 0 0; }
.step { display: none; animation: in .35s ease; }
.step.is-active { display: block; }
@keyframes in { from { opacity: 0; transform: translateX(12px); } }
.step h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 8px 0 22px; outline: none; }
.options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.options--4 { grid-template-columns: repeat(4, 1fr); }
.opt { text-align: left; display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: 16px; border: 2px solid #ececec; background: #fafafa; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.opt:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(225,29,42,.45); }
.opt b { font-size: 1rem; }
.opt small { color: var(--muted-ink); }
.opt--sm { padding: 22px 18px; }
.dash { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 8px; }
.dash--amber { background: #fef3c7; } .dash--red { background: #fee2e2; } .dash--green { background: #dcfce7; } .dash--blue { background: #dbeafe; }
.back { margin-top: 18px; background: none; border: 0; color: var(--muted-ink); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; }
.back:hover { color: var(--red); }

.result { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 12px; }
.result__card { background: var(--ink); color: var(--text); border-radius: 18px; padding: 28px; }
.result__card h2 { margin: 10px 0 12px; }
.result__card p { color: #d4d4d4; }
.result__list { list-style: none; padding: 0; margin: 16px 0 0; }
.result__list li { padding: 8px 0 8px 30px; position: relative; border-top: 1px solid #2a2a2a; }
.result__list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.result__card .back { color: var(--muted); }
.result__form h3 { margin: 0 0 6px; font-size: 1.4rem; }
form { display: grid; gap: 4px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; margin-top: 8px; }
input, select, textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 2px solid #e5e5e5; font: inherit; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); }
[aria-invalid="true"] { border-color: var(--red); background: #fff5f5; }
.err { color: #b91c1c; font-size: .82rem; margin: 0; }
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 16px 22px; border-radius: 14px; background: var(--red); color: #fff; font: 800 1.05rem Archivo, sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: #c4141f; transform: translateY(-2px); }
.btn:disabled { opacity: .6; }
.btn--wa { background: #1fa855; }
.btn--full { width: 100%; }
form .btn { margin-top: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.is-sent { display: none; }
.success { text-align: center; padding: 24px 0; }
.success .big { font-size: 3rem; }
.success p { color: var(--muted-ink); }
.skip-quiz { text-align: center; color: var(--muted); margin-top: 18px; }
.skip-quiz a { color: #86efac; font-weight: 700; }

main { overflow-x: clip; }
.marquee { overflow: hidden; background: var(--red); padding: 14px 0; transform: rotate(-1.2deg); margin: 8px -10px; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: scroll 28s linear infinite; }
.marquee span { font-weight: 900; font-style: italic; font-size: 1.4rem; white-space: nowrap; }
.marquee span::after { content: '✦'; margin-left: 48px; opacity: .6; }
@keyframes scroll { to { transform: translateX(-50%); } }

.section { padding: 80px 0; }
.section--alt { background: var(--bg-2); }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 28px; font-weight: 900; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why__grid div { padding: 24px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); border-top: 4px solid var(--red); }
.why__grid b { font-size: 1.1rem; }
.why__grid p { color: var(--muted); margin: 8px 0 0; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 8px 0 0; }
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .88rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::after { animation: none !important; transition: none !important; } [data-reveal] { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .options, .options--4 { grid-template-columns: 1fr 1fr; }
  .result, .why__grid { grid-template-columns: 1fr; }
  .quiz { padding: 20px; border-radius: 18px; }
  .quiz-sec { padding-top: 32px; }
}
@media (max-width: 420px) {
  .opt { padding: 14px; }
  .dash { width: 38px; height: 38px; font-size: 1.1rem; }
  .nav__wa { font-size: .8rem; padding: 6px 10px; }
}
