/* Identidade visual Pecege: vermelho #CD0028, azul-noite #080822, Helvetica, botões em pílula, cartões arredondados. */
:root {
  color-scheme: light;
  --red: #CD0028;
  --red-hover: #A30020;
  --red-soft: #FDF0F2;
  --navy: #080822;
  --ink: #111927;
  --muted: #5E6670;
  --line: #E5E7EB;
  --soft: #F3F4F6;
  --paper: #FFFFFF;
  --ok: #0F7A3D;
  --err: #B3261E;
  --font: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 16px;
  --pill: 500px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--red); }
a:hover { color: var(--red-hover); }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 800px; }
@media (max-width: 560px) { .container { padding-inline: 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Cabeçalho e rodapé */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .container { padding-block: 18px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.wordmark { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--red); line-height: 1; }
.brand .logo { display: block; height: 33px; width: auto; }
.brand .sep { width: 1px; height: 24px; background: var(--line); }
.brand .product { font-size: 15px; color: var(--muted); }
.site-header .where { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .site-header .where { display: none; } .wordmark { font-size: 22px; } }

.site-footer { margin-top: auto; background: var(--navy); color: rgba(255,255,255,.72); }
.site-footer .container { padding-block: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: 14px; }
.site-footer .wordmark { font-size: 20px; color: #fff; }

/* Hero azul-noite */
.hero { background: var(--navy); color: #fff; }
.hero .container { padding-block: 88px 96px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; max-width: 14ch; }
.hero h1 .mark { border-bottom: 6px solid var(--red); padding-bottom: 2px; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: rgba(255,255,255,.78); max-width: 60ch; }
.chip { align-self: flex-start; font-size: 13px; font-weight: 500; letter-spacing: .04em; padding: 8px 16px; border-radius: var(--pill); border: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.88); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding-top: 8px; }
.hero .actions .note { font-size: 14px; color: rgba(255,255,255,.72); }
@media (max-width: 560px) { .hero .container { padding-block: 56px 64px; gap: 22px; } }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 28px; border-radius: var(--pill); font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid var(--red); transition: background-color .15s, color .15s, border-color .15s; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.btn.ghost { background: var(--paper); color: var(--red); }
.btn.ghost:hover { background: var(--red-soft); color: var(--red-hover); }
.btn.quiet { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn.lg { min-height: 52px; padding: 0 32px; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

/* Cartões */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.fact { background: var(--soft); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.fact b { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; margin-top: 10px; }
.fact span { font-size: 15px; color: var(--muted); }
.box { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.box h2 { font-size: 20px; font-weight: 700; }
.box p { color: var(--muted); }
.box .grow { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.box .side { flex: 0 1 320px; display: flex; flex-direction: column; gap: 12px; background: var(--soft); border-radius: 12px; padding: 20px; }
.box .side span { font-size: 14px; color: var(--muted); }
.section { padding-block: 64px 48px; display: flex; flex-direction: column; gap: 32px; }
@media (max-width: 560px) { .section { padding-block: 40px 32px; } .fact, .box { padding: 22px; } }

/* ---------- Questionário ---------- */
.stepbar { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.stepbar .container { padding-block: 14px; display: flex; flex-direction: column; gap: 8px; }
.stepbar .meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stepbar .meta b { color: var(--ink); font-weight: 700; }
.progress { display: grid; grid-template-columns: repeat(var(--steps, 9), 1fr); gap: 4px; }
.progress span { height: 6px; border-radius: 3px; background: var(--line); }
.progress span.done { background: var(--navy); }
.progress span.now { background: var(--red); }

.step { padding-block: 40px 56px; display: flex; flex-direction: column; gap: 8px; }
.step-title { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.q { padding-block: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 96px; }
.q:first-of-type { border-top: 0; padding-top: 12px; }
.qhead { display: flex; gap: 14px; align-items: baseline; }
.qnum { font-size: 13px; font-weight: 700; color: var(--red); min-width: 2.6em; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.qtext { font-weight: 700; font-size: 18px; line-height: 1.4; }
.qhint { font-size: 14px; color: var(--muted); margin-left: calc(2.6em + 14px); }
.qbody { margin-left: calc(2.6em + 14px); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qerr { color: var(--err); font-size: 14px; font-weight: 500; margin-left: calc(2.6em + 14px); }
.q.invalid .qtext { color: var(--err); }
@media (max-width: 560px) { .qhint, .qbody, .qerr { margin-left: 0; } .qtext { font-size: 17px; } }

.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; background: var(--paper); transition: border-color .12s, background-color .12s; }
.opt:hover { border-color: #C9CDD3; background: var(--soft); }
.opt input { margin: .2em 0 0; accent-color: var(--red); width: 18px; height: 18px; flex-shrink: 0; }
.opt.on { border-color: var(--red); background: var(--red-soft); }
.opt.disabled { opacity: .45; cursor: not-allowed; }
.opt:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.opt input:focus-visible { outline: none; }

.legend { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.mrow { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.mrow:last-child { border-bottom: 0; }
.pills { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 420px; }
.pill { font: inherit; font-size: 15px; font-weight: 500; min-height: 44px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.pill:hover { border-color: var(--red); }
.pill[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.pills.eleven { grid-template-columns: repeat(11, 1fr); gap: 4px; max-width: none; }
.pills.eleven .pill { min-height: 44px; padding: 0; }
@media (max-width: 480px) { .pills.eleven { grid-template-columns: repeat(6, 1fr); gap: 6px; } }

textarea, select, input[type="text"], input[type="email"], input[type="password"], input[type="search"] { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
textarea { min-height: 112px; resize: vertical; }
textarea:focus, select:focus, input:focus { outline: 3px solid var(--red); outline-offset: 1px; border-color: transparent; }
.other { margin-left: 30px; width: calc(100% - 30px); }
.counter { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.alert { border-radius: 12px; padding: 14px 16px; background: var(--red-soft); color: var(--err); font-size: 15px; font-weight: 500; }
.notice { border-radius: 12px; padding: 14px 16px; background: var(--soft); color: var(--muted); font-size: 15px; }
.small { font-size: 14px; color: var(--muted); }

/* Página final */
.thanks .container { padding-block: 96px 104px; }
.thanks .badge { width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.share { display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .step { animation: rise .25s ease-out; }
  @keyframes rise { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
