/* Mão Inteligente — pesquisa sobre orçamentos
   Paleta e fonte oficiais da marca. Outfit hospedada no próprio site (licença OFL em /assets/fonts). */

@font-face { font-family: "Outfit"; font-weight: 200; font-style: normal; font-display: swap; src: url("/assets/fonts/outfit-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 300; font-style: normal; font-display: swap; src: url("/assets/fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/outfit-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #111D2C;
  --sand: #BFAE8E;
  --off: #F6F3EC;
  --white: #FFFFFF;
  --line: #D8D0BE;
  --muted: #55606F;
  --error: #8A1C1C;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--off);
  color: var(--navy);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

/* Faixa superior */
.top { background: var(--navy); color: var(--off); }
.top-in {
  max-width: 680px; margin: 0 auto;
  padding-top: max(18px, env(safe-area-inset-top, 0px));
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-bottom: 18px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.brand { font-size: 20px; font-weight: 600; letter-spacing: .01em; }
.brand span { font-weight: 200; }
.top-step { font-size: 13px; color: var(--sand); letter-spacing: .04em; white-space: nowrap; }
.progress { height: 2px; background: rgba(246, 243, 236, .18); }
.progress > div { height: 100%; width: 0; background: var(--sand); transition: width .5s var(--ease); }

/* Conteúdo */
.wrap {
  max-width: 680px; margin: 0 auto;
  padding-top: 40px; padding-bottom: 56px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.loading { color: var(--muted); }
.eyebrow {
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted); margin: 0 0 14px;
}
.intro h1 { font-size: 34px; font-weight: 300; line-height: 1.12; margin: 0 0 16px; letter-spacing: -.01em; text-wrap: balance; }
.intro .lead { color: var(--muted); margin: 0 0 28px; max-width: 52ch; }
.intro .pontos { margin: 0 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.intro .pontos li { padding: 14px 0; border-bottom: 1px solid var(--line); max-width: 56ch; }
.intro .pontos li:last-child { font-weight: 500; }
.step-title {
  font-size: 30px; font-weight: 300; line-height: 1.15;
  margin: 0 0 36px; letter-spacing: -.01em; text-wrap: balance;
}
.step-title:focus { outline: none; }
.step-sub { color: var(--muted); margin: -22px 0 32px; max-width: 52ch; }
.subtitle { font-size: 18px; font-weight: 500; margin: 44px 0 6px; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .45s var(--ease) both; }

/* Campos */
.field + .field { margin-top: 32px; }
.field > label, .qlabel { display: block; font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.hint { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; }
.hint.alert { color: var(--error); }
.outro { margin-top: 16px; }

input[type=text], input[type=tel], input[type=email] {
  width: 100%;
  font: inherit; font-size: 18px; color: var(--navy);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--navy); border-radius: 0;
  padding: 10px 0 12px;
  transition: border-color .2s var(--ease);
}
input::placeholder { color: #8A919B; }
textarea {
  width: 100%;
  font: inherit; font-size: 17px; color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 14px 16px; min-height: 120px; resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus, textarea:focus { outline: none; }
input[type=text]:focus, input[type=tel]:focus, input[type=email]:focus { border-bottom-width: 2px; padding-bottom: 11px; }
textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }

/* Opções: lista limpa */
.opts { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 4px;
  font-size: 17px; border-bottom: 1px solid var(--line);
  cursor: pointer; user-select: none;
  transition: padding .2s var(--ease);
}
.opt span::after {
  content: ""; flex: none; width: 18px; height: 18px;
  border: 1.5px solid var(--navy); border-radius: 50%;
  transition: background .2s var(--ease);
}
.opt input[type=checkbox] + span::after { border-radius: 2px; }
.opt:hover span { padding-left: 10px; }
.opt input:checked + span { font-weight: 500; padding-left: 10px; }
.opt input:checked + span::after { background: var(--navy); box-shadow: inset 0 0 0 3px var(--off); }
.opt input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.opt.consent span { align-items: flex-start; font-size: 16px; line-height: 1.45; }
.opt.consent span::after { margin-top: 3px; }

/* Avisos e erros */
.note { font-size: 14px; color: var(--navy); border-left: 2px solid var(--sand); padding: 8px 12px; margin: 14px 0 0; max-width: 56ch; }
.error { color: var(--error); font-size: 14px; margin: 18px 0 0; min-height: 0; }
.aviso-topo { font-size: 14px; color: var(--muted); border-left: 2px solid var(--sand); padding: 8px 12px; margin: 0 0 24px; max-width: 56ch; }
a { color: var(--navy); text-underline-offset: 4px; text-decoration-color: var(--sand); }
.legal { font-size: 14px; color: var(--muted); margin: 20px 0 0; max-width: 56ch; }

/* Ações */
.actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 44px; }
button { font: inherit; cursor: pointer; }
.btn-primary {
  background: var(--navy); color: var(--off);
  border: 0; border-radius: 2px;
  min-height: 56px; padding: 0 36px;
  font-size: 16px; font-weight: 500; letter-spacing: .02em;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.btn-primary:hover { opacity: .9; }
.btn-primary:active { transform: translateY(1px); }
.btn-text {
  background: none; border: 0; padding: 12px 0;
  color: var(--navy); font-size: 15px; text-decoration: underline;
  text-underline-offset: 4px; text-decoration-color: var(--line);
}
button:disabled { opacity: .5; cursor: default; }
button:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* Campo-isca: fora da tela, invisível para pessoas e leitores de tela */
.hp-wrap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Tela final */
.done { background: var(--navy); color: var(--off); border-radius: 2px; padding: 56px 32px; margin-top: 8px; }
.done:focus { outline: none; }
.done .eyebrow { color: var(--sand); }
.done h2 { font-size: 34px; font-weight: 300; margin: 0 0 14px; letter-spacing: -.01em; }
.done p { margin: 0; color: rgba(246, 243, 236, .82); max-width: 46ch; }

/* Página de privacidade */
.doc h1 { font-size: 34px; font-weight: 300; line-height: 1.12; margin: 0 0 12px; letter-spacing: -.01em; }
.doc h2 { font-size: 20px; font-weight: 500; margin: 36px 0 8px; }
.doc p, .doc li { max-width: 64ch; }
.doc ul { padding-left: 20px; }
.doc .meta { color: var(--muted); font-size: 14px; }

@media (min-width: 720px) {
  .intro h1, .doc h1 { font-size: 42px; }
  .step-title { font-size: 38px; }
  .opt span { font-size: 18px; }
  .opt.consent span { font-size: 16px; }
}
@media (max-width: 420px) {
  .intro h1, .doc h1 { font-size: 30px; }
  .step-title { font-size: 26px; margin-bottom: 28px; }
  .btn-primary { padding: 0 26px; }
  .done { padding: 40px 24px; }
  .done h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
