:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --ink: #1e2924;
  --muted: #4a5750;
  --accent: #254c3d;
  --rule: #bcc7bc;
  --tint: #e9eee5;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 system-ui, sans-serif; }
main { width: min(100%, 710px); margin: 0 auto; padding: 24px clamp(16px, 5vw, 38px) 56px; }
.home { padding-block-start: clamp(48px, 14vw, 104px); }
.home nav { margin-block-start: 24px; }
.masthead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding-block-end: 14px; border-block-end: 1px solid var(--rule); }
.masthead strong { color: var(--accent); }
.masthead span { color: var(--muted); font-size: .9rem; }
.intro, .passo, .briefing { padding-block: 25px; }
.intro, .passo { border-block-end: 1px solid var(--rule); }
h1 { max-width: 19ch; margin: 0; color: var(--ink); font: 400 clamp(32px, 8.8vw, 53px)/1.06 Georgia, serif; letter-spacing: -.035em; }
h2 { margin: 0 0 8px; font: 400 clamp(24px, 5.6vw, 32px)/1.15 Georgia, serif; }
p { margin: 0; }
.intro p { margin-block: 14px 18px; max-width: 49ch; }
.passo p { max-width: 52ch; }
.passo p + p { margin-block-start: 7px; }

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; max-width: 100%; padding: 8px 16px;
  border: 1px solid var(--accent); border-radius: 5px;
  background: var(--accent); color: #fff;
  font: 600 1rem/1.3 system-ui, sans-serif; text-decoration: none; text-align: center; cursor: pointer;
}
.cta:not(:disabled):hover { background: #18372a; }
.cta:disabled { background: #dee6dd; color: #40534a; border-color: #9da99f; cursor: default; }
:focus-visible { outline: 3px solid #8d4f20; outline-offset: 3px; }
.briefing { scroll-margin-block-start: 12px; }
.form-intro, #alternativa { color: var(--muted); }
.perguntas { display: grid; gap: 14px 16px; margin-block: 18px 22px; }
@media (min-width: 600px) { .perguntas { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; } }
label { display: block; margin: 0 0 5px; font-weight: 600; line-height: 1.35; }
select, input { display: block; width: 100%; min-width: 0; min-height: 46px; padding: 7px 10px; border: 1px solid #7d8e80; border-radius: 5px; background: #fffdfa; color: var(--ink); font: inherit; }
select { padding-inline-end: 24px; }
fieldset { min-width: 0; padding: 14px; margin: 0; border: 1px solid var(--rule); border-radius: 5px; }
legend { padding-inline: 4px; font-weight: 600; }
legend span { color: var(--muted); font-weight: 400; }
fieldset p { color: var(--muted); margin-block-end: 10px; }
fieldset input + label { margin-block-start: 10px; }
.privacidade { max-width: 61ch; margin-block: 16px; color: var(--muted); font-size: .875rem; }
#verificacao:not(:empty) { margin-block-end: 10px; }
#estado:not(:empty) { margin-block: 12px; padding: 10px 12px; border-inline-start: 3px solid var(--accent); background: var(--tint); }
#alternativa { margin-block-start: 12px; }
