/* ============================================================
   ZEITH Co. — sistema visual do onboarding e do pagamento.
   Fiel ao GUIA-IDENTIDADE-VISUAL-ZEITH.txt (Presença Verificável):
   Schibsted Grotesk + Source Serif 4, paleta oficial, azul como
   acento (até 10%), zero gradiente na interface, zero sombra em título.
   ============================================================ */

:root {
  /* paleta oficial */
  --zeith-blue: #20BDF3;
  --blue-deep: #087DA8;
  --blue-soft: #DDF5FE;
  --ink-950: #0A0C0F;
  --ink-900: #14181D;
  --graphite-800: #242A31;
  --slate-600: #5B6672;
  --slate-400: #94A0AC;
  --line-200: #D7DEE5;
  --mist-100: #EEF2F5;
  --paper: #F7F8F9;
  --warm-paper: #F2EEE8;
  --white: #FFFFFF;

  --sucesso: #0E7A55;
  --atencao: #A15C00;
  --erro: #B42318;

  --sans: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --r: 10px;
  --r-lg: 16px;
  --shell: 1240px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.58;
  color: var(--ink-950);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 720px) {
  body { font-size: 16px; line-height: 1.55; }
}

/* ---------- tipografia ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; }
h1 { font-size: 44px; line-height: 1.02; font-weight: 800; }
h2 { font-size: 36px; line-height: 1.08; font-weight: 700; }
h3 { font-size: 25px; line-height: 1.18; font-weight: 600; }

@media (min-width: 900px) {
  h1 { font-size: 60px; line-height: 0.98; }
  h2 { font-size: 44px; line-height: 1.04; }
  h3 { font-size: 30px; line-height: 1.15; }
}

.editorial {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: -0.01em;
}
@media (min-width: 900px) { .editorial { font-size: 40px; line-height: 1.12; } }

.kicker {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.legenda { font-size: 13px; line-height: 1.45; font-weight: 500; color: var(--slate-600); }
.texto-grande { font-size: 19px; line-height: 1.48; }
@media (min-width: 900px) { .texto-grande { font-size: 21px; } }

p { margin: 0 0 16px; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-deep); text-underline-offset: 3px; }

/* ---------- marca ---------- */
.logo {
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: 20px;
  color: var(--ink-950);
  text-decoration: none;
  display: inline-block;
}
.logo .co { color: var(--zeith-blue); }
.logo--claro { color: var(--white); }

/* ---------- estrutura ---------- */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .shell { padding: 0 48px; } }

.topo {
  border-bottom: 1px solid var(--line-200);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topo__linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

/* ---------- barra de progresso ---------- */
.progresso { height: 3px; background: var(--mist-100); overflow: hidden; }
.progresso__barra {
  height: 100%;
  width: 100%;
  background: var(--zeith-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- cartão ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--r-lg);
  padding: 28px 22px;
}
@media (min-width: 720px) { .card { padding: 40px; } }

/* ---------- campos ---------- */
.campo { margin-bottom: 28px; }
.campo:last-child { margin-bottom: 0; }

.campo__label {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.campo__ajuda { font-size: 14px; color: var(--slate-600); margin-bottom: 12px; line-height: 1.45; }
.campo__op { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-400); margin-left: 6px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], textarea, select {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px; /* nunca abaixo de 16px: iPhone dá zoom automático */
  line-height: 1.5;
  color: var(--ink-950);
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--r);
  padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
textarea { min-height: 118px; resize: vertical; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--zeith-blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
input::placeholder, textarea::placeholder { color: var(--slate-400); }

/* ---------- escolhas ---------- */
.opcoes { display: grid; gap: 10px; }
.opcoes--duas { grid-template-columns: 1fr; }
@media (min-width: 620px) { .opcoes--duas { grid-template-columns: 1fr 1fr; } }

.opcao {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line-200);
  border-radius: var(--r);
  padding: 14px 15px;
  cursor: pointer;
  background: var(--white);
  transition: border-color .15s, background .15s;
  min-height: 52px;
}
.opcao:hover { border-color: var(--slate-400); }
.opcao input { margin: 0; flex: 0 0 auto; width: 20px; height: 20px; accent-color: var(--zeith-blue); margin-top: 1px; }
.opcao span { font-size: 16px; line-height: 1.4; }
.opcao--ativa { border-color: var(--zeith-blue); background: var(--blue-soft); }

/* escala de 1 a 5 */
.escala { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.escala__btn {
  border: 1px solid var(--line-200);
  background: var(--white);
  border-radius: var(--r);
  padding: 14px 4px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-950);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.escala__btn:hover { border-color: var(--slate-400); }
.escala__btn--ativo { border-color: var(--zeith-blue); background: var(--zeith-blue); color: var(--ink-950); }
.escala__pontas { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.escala__ponta { font-size: 13px; font-weight: 500; color: var(--slate-600); max-width: 45%; }
.escala__ponta:last-child { text-align: right; }

/* ---------- endereços repetíveis ---------- */
.endereco {
  border: 1px solid var(--line-200);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  margin-bottom: 14px;
  background: var(--mist-100);
}
.endereco__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.endereco__titulo {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.endereco__x {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
  padding: 6px 10px;
  border-radius: 6px;
}
.endereco__x:hover { color: var(--erro); background: var(--white); }
.endereco .campo { margin-bottom: 18px; }
.endereco .campo:last-child { margin-bottom: 0; }
.endereco .campo__label { font-size: 15px; }
.endereco input, .endereco textarea { background: var(--white); }
.endereco textarea { min-height: 84px; }

.dias { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 620px) { .dias { grid-template-columns: repeat(4, 1fr); } }
.dia {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-200); border-radius: var(--r);
  background: var(--white); padding: 10px 12px; cursor: pointer;
  font-size: 15px; min-height: 46px;
}
.dia:hover { border-color: var(--slate-400); }
.dia--ativo { border-color: var(--zeith-blue); background: var(--blue-soft); }
.dia input { width: 18px; height: 18px; margin: 0; accent-color: var(--zeith-blue); }

.btn--mais {
  background: var(--white);
  border: 1.5px dashed var(--line-200);
  color: var(--ink-950);
  font-weight: 600;
}
.btn--mais:hover:not(:disabled) { border-color: var(--zeith-blue); background: var(--blue-soft); }

/* ---------- upload ---------- */
.dropzone {
  border: 1.5px dashed var(--line-200);
  border-radius: var(--r-lg);
  padding: 28px 20px;
  text-align: center;
  background: var(--mist-100);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone--sobre { border-color: var(--zeith-blue); background: var(--blue-soft); }
.dropzone__titulo { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.dropzone input[type="file"] { display: none; }

.arquivos { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.arquivo {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--r);
  padding: 10px 12px;
  font-size: 14px;
}
.arquivo__nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arquivo__peso { color: var(--slate-400); font-size: 13px; flex: 0 0 auto; }
.arquivo__x {
  flex: 0 0 auto; border: 0; background: transparent; cursor: pointer;
  color: var(--slate-600); font-size: 20px; line-height: 1; padding: 2px 6px; border-radius: 6px;
}
.arquivo__x:hover { color: var(--erro); background: var(--mist-100); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  border-radius: var(--r);
  padding: 15px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .06s;
  min-height: 52px;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn--principal { background: var(--ink-950); color: var(--white); }
.btn--principal:hover:not(:disabled) { background: var(--graphite-800); }

.btn--azul { background: var(--zeith-blue); color: var(--ink-950); font-weight: 700; }
.btn--azul:hover:not(:disabled) { background: #16A9DC; }

.btn--linha { background: var(--white); border-color: var(--line-200); color: var(--ink-950); }
.btn--linha:hover:not(:disabled) { border-color: var(--slate-400); }

.btn--largo { width: 100%; }

.acoes {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-200);
}
.acoes .btn--principal { flex: 1; }

/* ---------- avisos ---------- */
.aviso {
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid;
}
.aviso--erro { background: #FEF3F2; border-color: #FDA29B; color: #912018; }
.aviso--info { background: var(--blue-soft); border-color: #A9E3F9; color: #0A4E66; }
.aviso--ok { background: #ECFDF3; border-color: #A6F4C5; color: #05603A; }
.aviso[hidden] { display: none; }

.salvo {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-400);
  opacity: 0;
  transition: opacity .3s;
}
.salvo--visivel { opacity: 1; }

/* ---------- tela escura (pagamento / capa) ---------- */
.escuro { background: var(--ink-950); color: var(--white); }
.escuro h1, .escuro h2, .escuro h3 { color: var(--white); }
.escuro p { color: #C6CED6; }
.escuro .legenda { color: var(--slate-400); }

/* ---------- utilidades ---------- */
.centro { text-align: center; }
.pilha > * + * { margin-top: 16px; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
