/* Identidade Sartoria. Para trocar cores/fontes, mexa só nestas variáveis. */
:root {
  --bg: #0E1730;
  --bg-deep: #0A1020;
  --surface: #111B36;
  --gold: #C9A45F;
  --gold-light: #E3C98F;
  --text: #F2EDE4;
  --muted: #8A93A8;
  --line: #2A3656;
  --alert: #E0685C;
  --font-title: "Cormorant Garamond", Georgia, serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(ellipse at 50% 0%, var(--bg) 0%, var(--bg-deep) 100%) fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 24px; text-align: center; }

/* Progresso */
#progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--line); z-index: 20; }
#progress-bar { height: 100%; width: 0; background: var(--gold); transition: width .35s ease; }

/* Voltar */
#back {
  position: fixed; top: max(14px, env(safe-area-inset-top)); left: 14px; z-index: 20;
  width: 40px; height: 40px; border-radius: 8px; color: var(--muted);
  display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface);
  transition: color .2s, border-color .2s;
}
#back[hidden] { display: none; }
#back:hover { color: var(--gold-light); border-color: var(--gold); }

/* Palco e telas */
#stage { position: relative; height: 100vh; height: 100dvh; width: 100%; }
.screen {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 64px 20px 28px; overflow-y: auto;
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), opacity .32s ease;
}
.screen > * { margin: auto; }
.pre-below { transform: translateY(48px); opacity: 0; }
.pre-above { transform: translateY(-48px); opacity: 0; }
.out-above { transform: translateY(-48px); opacity: 0; pointer-events: none; }
.out-below { transform: translateY(48px); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .screen, #progress-bar { transition: none; }
}

/* Abertura */
.intro { width: 100%; max-width: 560px; text-align: center; }
.wordmark {
  font-family: var(--font-title); font-weight: 600; letter-spacing: .42em; padding-left: .42em;
  font-size: 18px; color: var(--gold-light); margin-bottom: 18px;
}
.eyebrow { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.headline {
  font-family: var(--font-title); font-weight: 600; line-height: 1.16;
  font-size: clamp(24px, 6.6vw, 32px); margin-bottom: 14px;
}
/* Parágrafos de mais de uma linha ficam à esquerda: texto longo centralizado é mais
   difícil de ler (o olho perde a margem inicial a cada linha). Só o que é curto
   (marca, selo, título, botão) continua centralizado. */
.intro-body { text-align: left; font-size: 17px; line-height: 1.5; color: var(--text); margin-bottom: 14px; }
.intro-qualifier {
  text-align: left; font-size: 14.5px; line-height: 1.45; color: var(--muted); font-style: italic;
  padding-top: 14px; margin-bottom: 20px; border-top: 1px solid var(--line);
}
.steps-block { text-align: left; margin-bottom: 22px; }
.steps-title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.steps { list-style: none; display: grid; gap: 9px; }
.step { display: flex; align-items: center; gap: 11px; font-size: 15.5px; }
.step-num {
  flex: none; width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--gold);
  color: var(--gold-light); font-size: 12.5px; font-weight: 600; display: grid; place-items: center;
}
.notice { text-align: left; font-size: 14.5px; line-height: 1.45; color: var(--muted); margin-bottom: 18px; }

.btn-primary {
  background: var(--gold); color: var(--bg-deep); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 8px; font-size: 16px; transition: background .2s, transform .1s;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-primary:active { transform: scale(.98); }
.intro .btn-primary { width: 100%; padding: 17px 20px; }

/* Perguntas */
.q-wrap { width: 100%; max-width: 640px; }
.q-num { color: var(--gold); font-size: 14px; font-weight: 500; margin-bottom: 10px; letter-spacing: .04em; }
.q-title {
  font-family: var(--font-title); font-weight: 600; line-height: 1.12;
  font-size: clamp(25px, 6.4vw, 38px); margin-bottom: 8px;
}
.q-sub { color: var(--muted); font-size: 15px; margin-bottom: 4px; }

.options { display: grid; gap: 9px; margin-top: 20px; }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; min-height: 52px; font-size: 16px;
  transition: border-color .2s, background .2s;
}
.opt:hover, .opt.selected { border-color: var(--gold); }
.opt.selected { background: #16224a; }
.key {
  flex: none; width: 26px; height: 26px; border-radius: 5px; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: var(--gold-light);
}
.opt.selected .key { background: var(--gold); border-color: var(--gold); color: var(--bg-deep); }
.opt-label { flex: 1; }
.check { flex: none; color: var(--gold); opacity: 0; font-weight: 700; transition: opacity .15s; }
.opt.selected .check { opacity: 1; }
.btn-multi-ok { margin-top: 18px; }
.btn-multi-ok[hidden] { display: none; }

/* Campos de texto */
.data-form { margin-top: 22px; }
.field {
  width: 100%; background: transparent; color: var(--text); font: inherit;
  font-size: clamp(20px, 5vw, 26px); padding: 10px 0; border: 0; border-bottom: 2px solid var(--line);
  border-radius: 0; outline: none; transition: border-color .2s;
}
.field::placeholder { color: #566079; }
.field:focus { border-bottom-color: var(--gold); }
.field.invalid { border-bottom-color: var(--alert); }
.error { color: var(--alert); font-size: 14px; min-height: 22px; margin-top: 8px; }
.hint { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.btn-ok { padding: 12px 26px; }
.enter-hint { color: var(--muted); font-size: 12.5px; }
.phone-wrap { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--line); transition: border-color .2s; }
.phone-wrap:focus-within { border-bottom-color: var(--gold); }
.phone-wrap .field { border-bottom: 0; flex: 1; min-width: 0; }
.ddi { font-size: clamp(20px, 5vw, 26px); color: var(--gold-light); padding: 10px 10px 10px 0; border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.phone-wrap:has(.invalid) { border-bottom-color: var(--alert); }

/* Final */
.final { max-width: 560px; text-align: center; }
.final .wordmark { margin-bottom: 26px; }
.seal {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; font-size: 24px; margin: 0 auto 22px;
}
.final-title { font-family: var(--font-title); font-weight: 600; font-size: clamp(28px, 7vw, 40px); line-height: 1.1; margin-bottom: 16px; }
.final-text { color: var(--text); font-size: 18px; margin-bottom: 14px; }
.final-small { color: var(--gold-light); font-size: 14px; letter-spacing: .04em; }

/* Telas baixas (ex.: 375x667): compacta os espaçamentos da abertura. Com a copy mais
   longa nem sempre cabe tudo sem rolar; a tela rola (.screen já tem overflow-y) em vez
   de encolher a letra a ponto de ficar difícil de ler. */
@media (max-height: 720px) {
  .screen-intro, .screen-final { padding-top: 20px; padding-bottom: 16px; }
  .wordmark { margin-bottom: 8px; font-size: 16px; }
  .eyebrow { font-size: 13px; margin-bottom: 8px; }
  .headline { font-size: clamp(22px, 6.2vw, 28px); margin-bottom: 10px; }
  .intro-body { margin-bottom: 10px; }
  .intro-qualifier { padding-top: 10px; margin-bottom: 14px; }
  .steps-block { margin-bottom: 16px; }
  .steps { gap: 7px; }
  .notice { margin-bottom: 12px; }
  .intro .btn-primary { padding: 14px 16px; }
}
@media (min-width: 720px) {
  .screen { padding-left: 48px; padding-right: 48px; }
  .options { gap: 10px; }
}

@media (hover: none) { .enter-hint { display: none; } }
