/* ================================================================
   MedSuccess Digital . Formulário de Briefing de Identidade de Marca
   Estrutura espelhada do formulário do Instituto Entrago,
   com a identidade da MedSuccess (Manual da Marca v1.0).

   Paleta: off-white #F7F4EF (fundo) . marinho #0F1C2E (principal)
           grafite #2A3442 . azul aço #5C6B7A . dourado #C8A96B (acento)
           champagne #E7D7B6 . branco quente #FBFAF7
   Tipografia: Space Grotesk (títulos, rótulos técnicos)
               Hanken Grotesk (texto, interface, logotipo)

   Contraste WCAG (calculado, relação de luminância):
     marinho  sobre off-white  15.6:1   sobre branco quente 16.4:1
     grafite  sobre off-white  11.5:1   sobre branco quente 12.1:1
     azul aço sobre off-white   5.0:1   sobre branco quente  5.2:1   (AA texto normal)
     branco quente sobre marinho 16.4:1 (botões)
     dourado  sobre marinho     7.6:1   (seta e check sobre botão/chip marinho)
     erro #B23A3A sobre branco quente 5.7:1 . sucesso #2E7D55 4.8:1
     dourado sobre claro 2.1:1: por isso o dourado NUNCA carrega texto
     nem é o único indicador de estado ou de foco; é só acento.
   ================================================================ */

:root {
  --offwhite:  #F7F4EF;
  --paper:     #FBFAF7;
  --white:     #FFFFFF;
  --navy:      #0F1C2E;
  --graphite:  #2A3442;
  --steel:     #5C6B7A;
  --gold:      #C8A96B;
  --champagne: #E7D7B6;
  --error:     #B23A3A;
  --success:   #2E7D55;

  --line:        rgba(15, 28, 46, .12);
  --line-strong: rgba(15, 28, 46, .22);
  --gold-soft:   rgba(200, 169, 107, .45);
  --placeholder: #7A8591;

  --h: 'Space Grotesk', 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --b: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Anel de foco: marinho (contraste) + halo dourado (acento) */
  --ring: 0 0 0 2px var(--paper), 0 0 0 4px var(--navy), 0 0 0 7px var(--gold-soft);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--b);
  background-color: var(--offwhite);
  color: var(--navy);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--navy); color: var(--paper);
  padding: 12px 18px; z-index: 10;
  font: 600 14px var(--b); text-decoration: none;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Layout ─────────────────────────────────────────────── */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 20px 80px;
}

.form-container { width: 100%; max-width: 720px; }

/* ── Logo (recriado em HTML/CSS, fiel a Principal.png) ───── */
.ms-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 44px;               /* escala todo o logo; largura ~ 5.6em */
  line-height: 1;
  user-select: none;
}
.ms-word {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.ms-med     { color: var(--steel); }
.ms-success { color: var(--navy); }
.ms-dot {
  display: inline-block;
  width: .145em; height: .145em;
  margin-left: .06em;
  background: var(--gold);
}
.ms-desc {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: .285em;
  letter-spacing: .52em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-top: 1.35em;
  padding-left: .3em;
}

/* ── Cabeçalho ──────────────────────────────────────────── */
.form-header { text-align: center; margin-bottom: 48px; }

.form-header .ms-logo { margin: 0 auto 30px; }

.header-divider {
  width: 64px; height: 1px;
  background: var(--gold);
  margin: 0 auto 26px;
}

.header-eyebrow {
  display: block;
  font-family: var(--h);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: .24em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.form-header h1 {
  font-family: var(--h);
  font-size: 38px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.form-header p {
  font-size: 15.5px;
  color: var(--steel);
  line-height: 1.65;
  max-width: 470px;
  margin: 0 auto;
}

/* ── Barra de progresso ─────────────────────────────────── */
.progress-container { margin-bottom: 32px; scroll-margin-top: 16px; }

.progress-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.step-dot {
  width: 8px; height: 8px;
  border-radius: 1px;
  background: rgba(15, 28, 46, .14);
  transition: width .35s var(--ease), background .35s var(--ease);
}
.step-dot.active { background: var(--navy); width: 30px; }
.step-dot.done   { background: var(--steel); }

.progress-track {
  position: relative;
  height: 2px;
  background: rgba(15, 28, 46, .10);
  border-radius: 2px;
}

.progress-fill {
  position: relative;
  height: 100%;
  width: 0;
  background: var(--navy);
  border-radius: 2px;
  transition: width .5s var(--ease);
}

/* Detalhe da barra: o ponto quadrado dourado do logo marca o avanço */
.progress-tip {
  position: absolute;
  right: -4px; top: -3px;
  width: 8px; height: 8px;
  background: var(--gold);
}

.step-label {
  text-align: center;
  font-family: var(--h);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-top: 14px;
}

/* ── Card ───────────────────────────────────────────────── */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 56px 64px 48px;
  box-shadow: 0 1px 0 rgba(15, 28, 46, .03), 0 10px 44px rgba(15, 28, 46, .07);
  margin-bottom: 28px;
  outline: none;
}

/* ── Telas e etapas ──────────────────────────────────────── */
.screen, .form-step { animation: fadeUp .35s var(--ease); }
.form-step { display: none; }
.form-step.active { display: block; }

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--h);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.kicker::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  flex: none;
}

.step-title {
  font-family: var(--h);
  font-size: 30px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 8px;
  outline: none;
}

.step-sub {
  font-size: 15px;
  color: var(--steel);
  line-height: 1.6;
  margin-bottom: 26px;
  max-width: 54ch;
}

.req-legend {
  font-size: 13px;
  color: var(--steel);
  margin: -14px 0 26px;
}

.step-rule {
  width: 44px; height: 2px;
  background: var(--gold);
  margin-bottom: 38px;
}
.step-rule.center { margin-left: auto; margin-right: auto; }

/* ── Abertura ────────────────────────────────────────────── */
.intro-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 38px;
}
.intro-facts li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 18px 22px 0;
}
.intro-facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.intro-facts svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--navy); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.intro-facts strong {
  display: block;
  font-family: var(--h);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -.01em;
}
.intro-facts li > div > span { display: block; font-size: 13.5px; color: var(--steel); line-height: 1.45; margin-top: 2px; }

.intro-h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--h);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.intro-steps { list-style: none; margin-bottom: 32px; }
.intro-steps li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.intro-steps li:last-child { border-bottom: 0; }
.intro-steps .n {
  font-family: var(--h);
  font-size: 13px;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: .06em;
  flex: none;
  width: 22px;
}
.intro-steps p { font-size: 15px; color: var(--graphite); line-height: 1.55; }

.privacy-seal {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
}
.privacy-seal svg {
  width: 22px; height: 22px; flex: none; margin-top: 1px;
  fill: none; stroke: var(--navy); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.privacy-seal p { font-size: 13.5px; color: var(--graphite); line-height: 1.6; }
.privacy-seal strong { color: var(--navy); font-weight: 700; }

.draft-notice {
  margin-top: 26px;
  font-size: 14px;
  color: var(--graphite);
}
.draft-notice p::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: middle;
}

/* ── Campos ──────────────────────────────────────────────── */
.field {
  margin: 0 0 32px;
  min-width: 0;
  border: 0;
}
.field.reveal { animation: fadeUp .3s var(--ease); }

.field-label,
.field > legend {
  display: block;
  font-family: var(--b);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
  padding: 0;
}

.nw { white-space: nowrap; }
.opt-tag {
  display: inline-block;
  font-family: var(--h);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-left: 8px;
  vertical-align: 1px;
  white-space: nowrap;
}

.field-hint {
  display: block;
  font-size: 13.5px;
  color: var(--steel);
  line-height: 1.5;
  margin: -4px 0 12px;
}

.field-error {
  display: none;
  align-items: flex-start;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--error);
  margin-top: 8px;
  line-height: 1.45;
}
.field-error::before {
  content: '!';
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-top: 2px;
  background: var(--error); color: var(--white);
  font: 700 11px/1 var(--b);
  border-radius: 1px;
}
.field.err .field-error { display: flex; }

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

/* ── Inputs ──────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  min-height: 50px;
  font-family: var(--b);
  font-size: 16px;                    /* evita zoom automático no iOS */
  color: var(--navy);
  background: var(--offwhite);
  border: 1px solid var(--line-strong);
  border-bottom-color: var(--steel);  /* base em azul aço: limite do campo com 5:1 */
  border-radius: 2px;
  padding: 13px 16px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 128px; resize: vertical; line-height: 1.55; display: block; }

::placeholder { color: var(--placeholder); opacity: 1; }

input:hover, select:hover, textarea:hover { border-color: var(--steel); }

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.field.err input[type="text"],
.field.err input[type="email"],
.field.err select,
.field.err textarea,
.field.err .tel-wrap { border-color: var(--error); }

/* Select */
.sel-wrap { position: relative; }
.sel-wrap::after {
  content: '';
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--steel);
  border-bottom: 1.5px solid var(--steel);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.sel-wrap select { padding-right: 46px; cursor: pointer; }

/* Telefone com +55 fixo */
.tel-wrap {
  display: flex;
  align-items: stretch;
  background: var(--offwhite);
  border: 1px solid var(--line-strong);
  border-bottom-color: var(--steel);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.tel-wrap:focus-within { border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 3px var(--gold-soft); }
.tel-prefix {
  display: flex; align-items: center;
  padding: 0 14px;
  font-family: var(--h);
  font-size: 15px; font-weight: 500;
  color: var(--steel);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.tel-wrap input[type="tel"] {
  border: 0; background: transparent; border-radius: 0;
  flex: 1; min-width: 0;
}
.tel-wrap input[type="tel"]:focus { box-shadow: none; background: transparent; }

/* Contador de caracteres */
.counter {
  display: block;
  text-align: right;
  font-family: var(--h);
  font-size: 12px;
  color: var(--steel);
  letter-spacing: .04em;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.counter.near { color: var(--navy); font-weight: 600; }

/* ── Opções (radio / checkbox / consentimento) ──────────── */
.options-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.options-grid.col2 { grid-template-columns: 1fr 1fr; }
.options-grid.col3 { grid-template-columns: 1fr 1fr 1fr; }
.options-grid.col1 { grid-template-columns: 1fr; }

.opt { position: relative; }
.opt input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  left: 16px; top: 50%;
}

.opt label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  height: 100%;
  padding: 13px 16px;
  background: var(--offwhite);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
  transition: border-color .2s, background .2s, box-shadow .2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.opt label:hover { border-color: var(--steel); background: var(--white); }

.opt label::before {
  content: '';
  flex: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--steel);
  border-radius: 50%;
  background: var(--white);
  transition: all .2s;
}
.opt input[type="checkbox"] + label::before { border-radius: 2px; }

.opt input:checked + label {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: inset 3px 0 0 var(--gold);
}
.opt input[type="radio"]:checked + label::before {
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: inset 0 0 0 4px var(--white);
}
.opt input[type="checkbox"]:checked + label::before {
  border-color: var(--navy);
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l3 3 5-5.5' stroke='%23C8A96B' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.opt input:focus-visible + label { box-shadow: var(--ring); outline: 2px solid transparent; }
.opt input:checked:focus-visible + label { box-shadow: inset 3px 0 0 var(--gold), var(--ring); }

/* Consentimento (LGPD) */
.lgpd-box {
  background: #F4EEE3;                 /* champagne diluído no branco quente */
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  padding: 20px 24px;
  margin-bottom: 14px;
}
.lgpd-box h3 {
  font-family: var(--h);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.lgpd-box p { font-size: 13.5px; color: var(--graphite); line-height: 1.7; }
.field-consent + .field-consent { margin-top: -18px; }

/* ── Chips ───────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 12px; top: 50%; }
.chip label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px 9px 13px;
  background: var(--offwhite);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  user-select: none;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.chip label:hover { border-color: var(--steel); background: var(--white); }
.chip label:active { transform: scale(.97); }
.chip svg {
  width: 14px; height: 14px; flex: none;
  fill: none; stroke: var(--steel); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.chip .ico { display: inline-flex; }
.chip .i-check { display: none; }
.chip input:checked + label {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}
.chip input:checked + label .i-plus  { display: none; }
.chip input:checked + label .i-check { display: block; stroke: var(--gold); }
.chip input:focus-visible + label { box-shadow: var(--ring); outline: 2px solid transparent; }

.at-limit .chip input:not(:checked) + label,
.at-limit .opt input:not(:checked) + label {
  color: var(--steel);
  background: transparent;
  border-color: var(--line);
}
.at-limit .swatch-opt input:not(:checked) + label { background: transparent; border-color: var(--line); }
.at-limit .swatch-opt input:not(:checked) + label .swatch-strip { opacity: .55; }
.at-limit .swatch-opt input:not(:checked) + label .swatch-name { color: var(--steel); }

.sel-count {
  font-family: var(--h);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--steel);
  margin-top: 10px;
  min-height: 18px;
  font-variant-numeric: tabular-nums;
}
.sel-count.bump { animation: bump .45s var(--ease); color: var(--navy); }
@keyframes bump {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ── Slider de dois polos ────────────────────────────────── */
.slider {
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 18px 20px 14px;
}
.slider-poles {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--h);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  margin-bottom: 2px;
}
.slider-poles span { color: var(--steel); transition: color .25s; max-width: 48%; }
.slider-poles span:last-child { text-align: right; }
.slider-poles span.lean { color: var(--navy); }

.slider-track { position: relative; height: 48px; }
.slider-ticks {
  position: absolute;
  left: 14px; right: 14px; top: 50%;
  height: 0;
  border-top: 2px solid rgba(15, 28, 46, .14);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.slider-ticks i {
  width: 2px; height: 12px;
  margin-top: -7px;
  background: rgba(15, 28, 46, .28);
}
.slider-ticks i.mid { height: 16px; margin-top: -9px; background: rgba(15, 28, 46, .42); }
/* Escalas finas (0 a 10): marcas menores, preenchimento do meio até o valor */
.slider.fine .slider-ticks i { height: 8px; margin-top: -5px; width: 1.5px; }
.slider.fine .slider-ticks i.mid { height: 14px; margin-top: -8px; width: 2px; }
.slider.fine .slider-ticks::after {
  content: '';
  position: absolute;
  top: -2px; height: 2px;
  left: var(--fill-a, 50%); right: calc(100% - var(--fill-b, 50%));
  background: var(--navy);
  transition: left .15s var(--ease), right .15s var(--ease);
}
.slider.unset .slider-ticks::after { display: none; }
.slider-poles i {
  display: block;
  font-style: normal;
  font-family: var(--h);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--steel);
  margin-bottom: 1px;
}
.slider-poles span.lean i { color: var(--navy); }

.slider input[type="range"] {
  position: relative;
  width: 100%;
  height: 48px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  margin: 0;
  outline: none;
}
.slider input[type="range"]::-webkit-slider-runnable-track { height: 48px; background: transparent; }
.slider input[type="range"]::-moz-range-track { height: 48px; background: transparent; }
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(var(--gold), var(--gold)) center / 8px 8px no-repeat, var(--navy);
  box-shadow: 0 0 0 3px var(--paper), 0 3px 10px rgba(15, 28, 46, .25);
  transition: transform .15s var(--ease), box-shadow .15s;
}
.slider input[type="range"]::-moz-range-thumb {
  width: 28px; height: 28px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(var(--gold), var(--gold)) center / 8px 8px no-repeat, var(--navy);
  box-shadow: 0 0 0 3px var(--paper), 0 3px 10px rgba(15, 28, 46, .25);
}
.slider input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
.slider input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--navy), 0 0 0 9px var(--gold-soft);
}
.slider input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--navy), 0 0 0 9px var(--gold-soft);
}
.slider.unset input[type="range"]::-webkit-slider-thumb {
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--steel), 0 0 0 3px var(--offwhite);
}
.slider.unset input[type="range"]::-moz-range-thumb {
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--steel), 0 0 0 3px var(--offwhite);
}
.slider.unset .slider-readout { color: var(--steel); }
.field.err .slider { border-color: var(--error); }
.slider-readout {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--graphite);
  min-height: 22px;
}
.slider-readout b {
  font-family: var(--h);
  font-size: 12px;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.slider-readout b.slider-num {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  min-width: 46px;
  justify-content: center;
  padding: 3px 8px 2px;
  background: var(--navy);
  color: var(--paper);
  font-size: 15px;
  letter-spacing: 0;
  border-radius: 2px;
}
.slider-readout b.slider-num small { font-size: 11px; color: var(--champagne); font-weight: 500; }
.slider-readout span { text-align: center; }

/* ── Isto ou aquilo (par_visual) ─────────────────────────── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Pinyon Script';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/pinyon-script-latin-400-normal.woff2) format('woff2');
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pair-opt { position: relative; min-width: 0; }
.pair-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 14px; top: 14px; pointer-events: none; }
.pair-opt label {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
  transition: border-color .18s, box-shadow .18s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.pair-opt label:hover { border-color: var(--steel); }
.pair-opt label:active { transform: scale(.985); }
.pair-art {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F4EFE8;
  border-radius: 1px;
}
.pair-art svg { display: block; width: 100%; height: 100%; }
.pair-art, .pair-art svg { transition: opacity .25s var(--ease), filter .25s var(--ease); }
.pair-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 6px 5px;
}
.pair-txt strong { font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.pair-txt span { font-size: 13px; color: var(--steel); line-height: 1.45; }
.pair-check {
  position: absolute;
  top: 14px; right: 14px;
  width: 24px; height: 24px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--white);
  transform: scale(0);
  transition: transform .2s var(--ease);
}
.pair-check svg { width: 13px; height: 13px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pair-opt input:checked + label { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.pair-opt input:checked + label .pair-check { transform: scale(1); }
.pair.has-choice .pair-opt input:not(:checked) + label { border-color: var(--line); }
.pair.has-choice .pair-opt input:not(:checked) + label .pair-art { opacity: .5; }
.pair.has-choice .pair-opt input:not(:checked) + label .pair-txt strong { color: var(--steel); }
.pair-opt input:focus-visible + label { box-shadow: var(--ring); outline: 2px solid transparent; }
.pair-opt input:checked:focus-visible + label { box-shadow: inset 0 0 0 1px var(--navy), var(--ring); }

.pair-either { position: relative; display: flex; justify-content: center; margin-top: 10px; }
.pair-either input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 50%; top: 4px; pointer-events: none; }
.pair-either label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 18px;
  background: transparent;
  border: 1px dashed var(--line-strong);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--graphite);
  cursor: pointer;
  user-select: none;
  transition: background .18s, color .18s, border-color .18s;
  -webkit-tap-highlight-color: transparent;
}
.pair-either label:hover { border-color: var(--steel); color: var(--navy); }
.pair-either .eq { width: 14px; height: 7px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; flex: none; }
.pair-either input:checked + label { background: var(--navy); border: 1px solid var(--navy); color: var(--paper); }
.pair-either input:checked + label .eq { color: var(--gold); }
.pair-either input:focus-visible + label { box-shadow: var(--ring); outline: 2px solid transparent; }
.field-par.err .pair-opt label { border-color: var(--error); }

/* ── Famílias de cor ─────────────────────────────────────── */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 10px;
}
.swatch-opt { position: relative; }
.swatch-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 12px; top: 12px; }
.swatch-opt label {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.swatch-opt label:hover { border-color: var(--steel); }
.swatch-strip {
  display: flex;
  height: 54px;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15, 28, 46, .10);
}
.swatch-strip i { flex: 1; }
.swatch-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  padding: 10px 6px 6px;
}
.swatch-check {
  position: absolute;
  top: 12px; right: 12px;
  width: 22px; height: 22px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transform: scale(0);
  transition: transform .2s var(--ease);
}
.swatch-check svg { width: 12px; height: 12px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.swatch-opt input:checked + label { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.swatch-opt input:checked + label .swatch-check { transform: scale(1); }
.swatch-opt input:focus-visible + label { box-shadow: var(--ring); outline: 2px solid transparent; }
.swatch-opt input:checked:focus-visible + label { box-shadow: inset 0 0 0 1px var(--navy), var(--ring); }

/* ── Upload ──────────────────────────────────────────────── */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 132px;
  padding: 22px 18px;
  text-align: center;
  background: var(--offwhite);
  border: 1.5px dashed var(--steel);
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.dropzone:hover, .dropzone.drag { background: var(--white); border-color: var(--navy); }
.field-upload:focus-within .dropzone { box-shadow: var(--ring); outline: 2px solid transparent; }
.dropzone svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 4px;
}
.dropzone strong { font-size: 15px; font-weight: 600; color: var(--navy); }
.dropzone span { font-size: 13px; color: var(--steel); }
.field.err .dropzone { border-color: var(--error); }

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.thumbs:empty { display: none; }
.thumb {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 5px;
  animation: fadeUp .25s var(--ease);
}
.thumb-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--offwhite);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.thumb-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-media.contain img { object-fit: contain; padding: 8px; }
.thumb-media svg { width: 30px; height: 30px; fill: none; stroke: var(--steel); stroke-width: 1.4; stroke-linejoin: round; }
.thumb-type {
  position: absolute; left: 5px; bottom: 5px;
  font-family: var(--h); font-size: 10px; font-weight: 600; letter-spacing: .1em;
  background: var(--navy); color: var(--paper);
  padding: 2px 6px;
}
.thumb-name {
  display: block;
  font-size: 12px;
  color: var(--graphite);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 6px 2px 1px;
}
.thumb-remove {
  position: absolute;
  top: -8px; right: -8px;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 4px;
}
.thumb-remove span {
  width: 26px; height: 26px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--paper);
}
.thumb-remove svg { width: 12px; height: 12px; stroke: var(--paper); stroke-width: 2; fill: none; stroke-linecap: round; }
.thumb-remove:hover span { background: var(--error); }
.thumb-remove:focus-visible { outline: none; }
.thumb-remove:focus-visible span { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--navy), 0 0 0 7px var(--gold-soft); }

.upload-msg { font-size: 13px; color: var(--error); margin-top: 8px; min-height: 0; }
.upload-msg:empty { display: none; }

/* ── Links ───────────────────────────────────────────────── */
.link-rows { display: flex; flex-direction: column; gap: 8px; }
.link-row { display: flex; gap: 8px; align-items: stretch; animation: fadeUp .25s var(--ease); }
.link-row input { flex: 1; min-width: 0; }
.link-row.bad input { border-color: var(--error); }
.icon-btn {
  flex: none;
  width: 50px; min-height: 50px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--steel);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s, background .2s;
}
.icon-btn svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.icon-btn:hover { border-color: var(--error); color: var(--error); background: var(--white); }
.icon-btn:focus-visible, .btn-add:focus-visible, .btn:focus-visible { box-shadow: var(--ring); outline: 2px solid transparent; }

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 10px;
  padding: 8px 14px 8px 8px;
  background: transparent;
  border: 0;
  border-radius: 2px;
  font: 600 14px var(--b);
  color: var(--navy);
  cursor: pointer;
}
.btn-add .plus {
  width: 26px; height: 26px;
  border: 1px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.btn-add .plus svg { width: 12px; height: 12px; stroke: var(--navy); stroke-width: 2; fill: none; stroke-linecap: round; }
.btn-add:hover .plus { background: var(--navy); }
.btn-add:hover .plus svg { stroke: var(--gold); }
.btn-add:disabled { color: var(--steel); cursor: not-allowed; }
.btn-add:disabled .plus { border-color: var(--steel); background: transparent; }
.btn-add:disabled .plus svg { stroke: var(--steel); }

/* ── Navegação ───────────────────────────────────────────── */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 44px;
  gap: 16px;
}
.form-nav-intro { justify-content: flex-end; margin-top: 36px; }

.step-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  margin-bottom: -20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--error);
}
.step-alert:empty { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  font-family: var(--h);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .12s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.btn-back { background: transparent; color: var(--graphite); border-color: var(--line-strong); }
.btn-back:hover { border-color: var(--navy); color: var(--navy); }
.btn-back svg { stroke: currentColor; }

.btn-next { background: var(--navy); color: var(--paper); }
.btn-next:hover { background: var(--graphite); }
.btn-next svg { stroke: var(--gold); transition: transform .2s var(--ease); }
.btn-next:hover svg { transform: translateX(3px); }

.btn-submit {
  width: 100%;
  background: var(--navy);
  color: var(--paper);
  min-height: 58px;
  font-size: 14px;
  letter-spacing: .14em;
}
.btn-submit:hover { background: var(--graphite); }
.btn-submit .sq { width: 7px; height: 7px; background: var(--gold); flex: none; }
.btn-submit:disabled { cursor: progress; opacity: .85; }
.btn-submit .spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(251, 250, 247, .3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-nav.final { flex-direction: column; gap: 14px; }
.form-nav.final .btn-back { align-self: center; }

.save-status {
  text-align: center;
  font-family: var(--h);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 26px;
  min-height: 18px;
}
.save-status.ok::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  margin-right: 9px;
  vertical-align: 1px;
}

.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Tela final ──────────────────────────────────────────── */
.screen-success { text-align: center; padding: 16px 0 8px; }
body.is-done .form-header p { display: none; }
.success-icon {
  width: 68px; height: 68px;
  background: var(--white);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  position: relative;
}
.success-icon::after {
  content: '';
  position: absolute; right: -5px; bottom: -5px;
  width: 10px; height: 10px; background: var(--gold);
}
.success-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.screen-success h2 {
  font-family: var(--h);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-bottom: 14px;
  outline: none;
}
.success-msg {
  font-size: 15.5px;
  color: var(--steel);
  line-height: 1.75;
  max-width: 50ch;
  margin: 0 auto 30px;
}

.summary { text-align: left; }
.summary-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--h);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}
.summary-sec { border-bottom: 1px solid var(--line); margin-top: 0; }
.summary-sec:first-of-type { border-top: 1px solid var(--navy); margin-top: 14px; }
.summary-sec > summary {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px;
  padding: 12px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--h);
  font-size: 17px; font-weight: 600;
  color: var(--navy);
  letter-spacing: -.01em;
  border-radius: 2px;
}
.summary-sec > summary::-webkit-details-marker { display: none; }
.summary-sec > summary:focus-visible { box-shadow: var(--ring); outline: 2px solid transparent; }
.summary-sec > summary .n { font-size: 12px; font-weight: 500; color: var(--steel); letter-spacing: .08em; }
.summary-sec > summary .cnt { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--steel); letter-spacing: .06em; }
.summary-sec > summary::after {
  content: '';
  width: 8px; height: 8px; flex: none; margin: 0 6px 4px 4px;
  border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy);
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.summary-sec[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.summary-sec dl { padding-bottom: 8px; }
.summary-sec dl > div:last-child { border-bottom: 0; }
.summary-sec dl > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 4px 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.summary-sec dt { font-size: 13.5px; color: var(--steel); line-height: 1.5; }
.summary-sec dd { font-size: 14.5px; color: var(--navy); line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.summary-sec dd.empty { color: var(--steel); }
.sum-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sum-tags span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; padding: 3px 9px;
  border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--white);
}
.sum-tags .mini { display: inline-flex; height: 12px; width: 30px; overflow: hidden; border-radius: 1px; }
.sum-tags .mini i { flex: 1; }
.sum-scale { display: flex; gap: 2px; margin-bottom: 4px; }
.sum-scale i { width: 9px; height: 9px; border: 1px solid var(--steel); }
.sum-scale i.on { background: var(--navy); border-color: var(--navy); }

.success-actions { margin-top: 36px; display: flex; justify-content: center; }

.config-error { color: var(--error); font-size: 15px; }

/* ── Rodapé ──────────────────────────────────────────────── */
.form-footer { text-align: center; border-top: 1px solid var(--line); padding-top: 28px; }
.form-footer p {
  font-family: var(--h);
  font-size: 11.5px;
  color: var(--steel);
  letter-spacing: .1em;
  line-height: 1.9;
}

/* ── Responsivo (mobile first nos ajustes) ───────────────── */
@media (max-width: 768px) {
  .page-wrapper { padding: 36px 16px 64px; }
  .form-card { padding: 40px 28px 34px; }
  .form-header { margin-bottom: 36px; }
  .form-header h1 { font-size: 30px; }
  .form-header p { font-size: 15px; }
  .ms-logo { font-size: 38px; }
  .step-title { font-size: 26px; }
  .progress-container { margin-bottom: 26px; }
}

@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; }
  .options-grid.col3,
  .options-grid.col2:not(.tight) { grid-template-columns: 1fr; }
  .intro-facts { grid-template-columns: 1fr; }
  .intro-facts li { flex-direction: row; align-items: center; gap: 16px; padding: 14px 0; }
  .intro-facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .intro-facts strong { font-size: 15px; }
  .summary-sec dl > div { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .page-wrapper { padding: 24px 12px 56px; }
  .form-card { padding: 30px 18px 28px; }
  .form-header { margin-bottom: 28px; }
  .form-header .ms-logo { margin-bottom: 24px; }
  .form-header h1 { font-size: 26px; }
  .form-header p { font-size: 14.5px; }
  .ms-logo { font-size: 34px; }
  .header-divider { margin-bottom: 20px; }
  .step-title { font-size: 24px; }
  .screen-success h2 { font-size: 26px; }
  .step-rule { margin-bottom: 30px; }
  .chip label { font-size: 14px; padding: 8px 13px 8px 11px; gap: 7px; }
  .chips { gap: 7px; }
  .field { margin-bottom: 28px; }
  .swatches { grid-template-columns: 1fr 1fr; gap: 8px; }
  .swatch-strip { height: 38px; }
  .swatch-name { padding: 8px 4px 4px; font-size: 13px; }
  .slider { padding: 16px 14px 12px; }
  .pair { gap: 8px; }
  .pair-opt label { padding: 4px; }
  .pair-txt { padding: 9px 4px 4px; }
  .pair-txt strong { font-size: 14px; }
  .pair-txt span { font-size: 12.5px; }
  .pair-check { top: 10px; right: 10px; width: 22px; height: 22px; }
  .lgpd-box { padding: 18px 18px; }

  .form-nav { flex-direction: column-reverse; gap: 12px; margin-top: 36px; }
  .form-nav .btn { width: 100%; }
  .form-nav.final { flex-direction: column; }
  .form-nav.final .btn-back { align-self: stretch; }
  .form-nav-intro { flex-direction: column; }
  .btn { padding: 15px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}


/* ================================================================
   TEMA MARINHO (v2): página em marinho com degradê e grão leve;
   o cartão das perguntas continua claro (papel) para leitura longa.
   Contrastes sobre #0F1C2E: off-white 15.6:1 . #C3CBD4 10.5:1 .
   #B8C2CD 9.5:1 . #9AA8B6 7.1:1 . champagne 12.1:1 . dourado 7.6:1
   ================================================================ */
:root { --ink-1: #F7F4EF; --ink-2: #C3CBD4; --ink-3: #B8C2CD; --ink-4: #9AA8B6; }

html { background: #0A1422; }
body {
  color: var(--navy);
  background-color: #0F1C2E;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(92,107,122,.30) 0%, rgba(92,107,122,0) 65%),
    linear-gradient(180deg, #13233A 0, #0F1C2E 520px, #0B1626 100%);
  background-attachment: scroll;
  min-height: 100vh;
  background-repeat: repeat, no-repeat, no-repeat;
}

/* Logo na versão para fundo escuro (manual: descritor em champagne) */
.form-header .ms-med     { color: var(--ink-4); }
.form-header .ms-success { color: var(--ink-1); }
.form-header .ms-desc    { color: var(--champagne); }

.header-eyebrow   { color: var(--ink-3); }
.form-header h1   { color: var(--ink-1); }
.form-header p    { color: var(--ink-2); }

/* Progresso sobre o marinho */
.step-dot        { background: rgba(247,244,239,.20); }
.step-dot.active { background: var(--ink-1); }
.step-dot.done   { background: var(--ink-4); }
.progress-track  { background: rgba(247,244,239,.14); }
.progress-fill   { background: var(--ink-1); }
.step-label      { color: var(--ink-3); }

/* Cartão: papel flutuando sobre o marinho */
.form-card {
  border-color: rgba(255,255,255,.06);
  box-shadow: 0 2px 0 rgba(0,0,0,.10), 0 30px 80px rgba(3,8,16,.45), 0 0 0 1px rgba(200,169,107,.10);
}

/* Rodapé sobre o marinho */
.form-footer   { border-top-color: rgba(247,244,239,.12); }
.form-footer p { color: var(--ink-4); }

.skip-link { background: var(--ink-1); color: var(--navy); }

@media (prefers-reduced-transparency: reduce) {
  body { background-image: linear-gradient(180deg, #13233A 0%, #0A1422 100%); }
}

@media print {
  html, body { background: #fff !important; }
  .form-header .ms-med { color: var(--steel); } .form-header .ms-success { color: var(--navy); } .form-header .ms-desc { color: var(--graphite); }
  .form-header h1 { color: var(--navy); } .form-header p, .header-eyebrow { color: var(--steel); }
  .page-wrapper { padding: 0; }
  .form-card { box-shadow: none; border: 0; padding: 0; }
  .progress-container, .success-actions, .form-footer, .skip-link, .success-icon { display: none !important; }
  .summary-sec { break-inside: avoid; }
  .summary-sec > summary::after { display: none; }
}

/* Ícone de escala na abertura: polegares preenchidos sobre a linha */
.intro-facts svg rect { fill: var(--paper); }
