:root{
  --bg: #eef1f5;
  --card: #ffffff;
  --ink: #14171c;
  --ink-soft: #565d6b;
  --line: #e1e5eb;
  --blue: #1a6cb0;
  --blue-soft: #d9e8f5;
  --blue-track: #dbe6f1;
  --green: #1ea34d;
  --green-hover: #178a40;
  --green-ink: #ffffff;
  --focus: #1a6cb0;
  --radius-card: 22px;
  --radius-pill: 999px;
}

*{ box-sizing: border-box; }
html{ min-height: 100%; }
body{
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 10px;
  -webkit-font-smoothing: antialiased;
}

.stage{ width: 100%; max-width: 460px; }

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 18px 22px;
  box-shadow: 0 1px 2px rgba(20,23,28,0.04), 0 12px 32px -16px rgba(20,23,28,0.18);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

/* No celular (o uso real da maioria), a página vira um bloco branco
   contínuo, sem moldura/sombra/cantos — igual ao Inlead. Isso também
   libera largura extra pras imagens dos materiais. */
@media (max-width: 480px){
  body{ background: var(--card); padding: 0; align-items: flex-start; }
  .stage{ max-width: 100%; }
  .card{
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-height: 100dvh;
    padding: 18px 14px 22px;
  }
}

.topbar{ display: flex; align-items: center; min-height: 22px; margin-bottom: 6px; }

.back-btn{
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 4px;
  display: flex;
  visibility: hidden;
}
.back-btn.visible{ visibility: visible; }
.back-btn:focus-visible{ outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.brand{ display: flex; align-items: center; justify-content: center; margin: 0 0 10px; }
.brand-logo{ height: 58px; width: auto; }

.progress-track{
  height: 6px;
  background: var(--blue-track);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.progress-fill{
  height: 100%;
  background: var(--blue);
  border-radius: var(--radius-pill);
  transition: width 420ms cubic-bezier(.4,0,.2,1);
}

.step-body{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.step-body.animate{ animation: rise 320ms cubic-bezier(.16,1,.3,1); }

@keyframes rise{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  .step-body.animate{ animation: none; }
  .progress-fill{ transition: none; }
}

.eyebrow{
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 0 0 10px;
}

h1.step-title{
  font-size: 22px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  text-wrap: balance;
}

.step-sub{ font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 12px; }

/* Tela inicial (intro) tem peso tipográfico maior, igual ao Inlead —
   as etapas de pergunta ficam mais compactas, propositalmente. */
.intro h1.step-title{ font-size: 29px; line-height: 1.28; }
.intro h1.step-title u{ text-decoration-thickness: 2px; text-underline-offset: 3px; }
.intro > .step-sub{ font-size: 16.5px; }
.intro .actions--intro{ margin: 12px 0 14px; }
.step-sub strong{ color: var(--ink); }

.field{ display: flex; flex-direction: column; gap: 12px; margin-bottom: 6px; }

input[type="text"], input[type="tel"], textarea{
  width: 100%;
  border: 1.4px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  resize: none;
}
input::placeholder, textarea::placeholder{ color: #9aa1af; font-style: italic; }
input:focus-visible, textarea:focus-visible{
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.consent{
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 2px 0 0;
}
.consent a{ color: var(--ink-soft); }

.options{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.option{
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.4px solid var(--line);
  border-radius: 16px;
  padding: 13px 16px;
  cursor: pointer;
  font-size: 14.5px;
  line-height: 1.35;
  transition: border-color 140ms ease, background 140ms ease;
}
.option:hover{ border-color: var(--blue); }
.option input{ accent-color: var(--blue); width: 17px; height: 17px; flex-shrink: 0; }
.option.selected{ border-color: var(--blue); background: var(--blue-soft); }

.actions{ margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }

.btn{
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 140ms ease, transform 80ms ease;
}
.btn:active{ transform: scale(0.98); }
.btn:focus-visible{ outline: 2px solid var(--focus); outline-offset: 2px; }

.btn-primary{ background: var(--green); color: var(--green-ink); box-shadow: 0 3px 0 var(--green-hover); }
.btn-primary:hover{ background: var(--green-hover); }
.btn-primary:disabled{ opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.hint{ font-size: 12px; color: var(--ink-soft); text-align: center; margin: 12px 0 0; }

.materials{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px 10px; margin: 6px 0 4px; }
.material{ display: flex; flex-direction: column; }
.material img{
  width: 100%; height: auto; display: block;
  border-radius: 12px; margin-bottom: 10px;
  box-shadow: 0 4px 14px -6px rgba(20,23,28,0.22);
}
.material h3{ font-size: 18px; line-height: 1.2; margin: 0 0 5px; font-weight: 800; letter-spacing: -0.01em; }
.material p{ font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.4; }

.final-note{
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 16px;
}
.final-note strong{ color: var(--ink); }

.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;
}

fieldset{ border: none; padding: 0; margin: 0; }
legend{ padding: 0; }
