/* Página "em breve" da Yipe: uma tela só, cartão no centro.
   Marca: fundo claro, cobalto nos botões, pingo amarelo. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fontes/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fontes/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fontes/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  color-scheme: light;
  --fonte: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --pagina: #f6f7fb;
  --campo: #ffffff;
  --tinta: #0c1331;
  --apagado: #5b6382;
  --linha: #dde1ec;
  --cobalto: #2442e5;
  --cobalto-escuro: #1b33b8;
  --suave: rgba(36, 66, 229, 0.08);
  --sol: #ffb400;
  --erro: #b8322a;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pagina);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--tinta); text-decoration-color: rgba(12, 19, 49, 0.35); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cobalto); outline-offset: 3px; border-radius: 6px; }
h1, h2 { margin: 0; }
p { margin: 0; }

/* Uma tela, cartão no centro */
.casca { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.palco { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
@media (max-width: 600px) { .palco { align-items: flex-start; padding: 56px 20px 40px; } }
.cartao { width: 100%; max-width: 440px; }
@media (prefers-reduced-motion: no-preference) {
  .cartao { animation: aparecer .45s ease backwards; }
}
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Logo, com as quatro peças chegando */
.topo { display: flex; justify-content: center; margin: 0 0 32px; }
.logo { display: inline-flex; border-radius: 8px; }
.logo-svg { display: block; height: 34px; width: auto; overflow: visible; }
.peca { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .peca { animation: peca .7s cubic-bezier(.2, .9, .25, 1.2) both; }
  .peca-1 { --de: translate(-60%, -60%) rotate(-30deg); animation-delay: .1s; }
  .peca-2 { --de: translate(60%, -60%) rotate(30deg); animation-delay: .2s; }
  .peca-3 { --de: translate(-80%, 30%) rotate(20deg); animation-delay: .3s; }
  .peca-4 { --de: translate(70%, 60%) rotate(-25deg); animation-delay: .4s; }
}
@keyframes peca { from { opacity: 0; transform: var(--de) scale(.4); } to { opacity: 1; transform: none; } }

/* Título */
.cabeca { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 20px; }
.etiqueta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px; padding: 6px 12px 6px 10px; border-radius: 8px;
  background: var(--suave); color: var(--cobalto);
  font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.etiqueta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sol); }
@media (prefers-reduced-motion: no-preference) {
  .etiqueta::before { animation: pulsar 2.4s ease-out infinite; }
}
@keyframes pulsar { 0% { box-shadow: 0 0 0 0 rgba(255, 180, 0, .55); } 70% { box-shadow: 0 0 0 8px rgba(255, 180, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 180, 0, 0); } }
h1 { font-size: 32px; font-weight: 500; line-height: 1.12; letter-spacing: -0.035em; text-wrap: balance; }
@media (max-width: 600px) { h1 { font-size: 28px; } }
.oferta { text-align: center; font-size: 17px; line-height: 1.5; color: var(--tinta); margin: 0 0 10px; text-wrap: balance; }
.oferta strong { font-weight: 600; }
.depois { text-align: center; font-size: 14px; color: var(--apagado); margin: 0 0 24px; text-wrap: balance; }

/* Botão */
.botao {
  width: 100%; height: 52px; padding: 0 22px; margin-top: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--cobalto); border-radius: 999px;
  background: var(--cobalto); color: #fff;
  font: 500 15px/1 var(--fonte); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease, transform .15s ease;
}
.botao:hover { background: var(--cobalto-escuro); border-color: var(--cobalto-escuro); color: #fff; }
.botao:active { transform: translateY(1px); }
.botao[disabled] { opacity: .5; cursor: progress; }
.seta { flex: none; }

/* Formulário */
form { display: grid; gap: 14px; }
@media (prefers-reduced-motion: no-preference) {
  form.abrindo { animation: entrar .35s cubic-bezier(.22, 1, .36, 1) backwards; }
}
.campo { display: grid; gap: 6px; }
.campo label { font-size: 13px; font-weight: 500; color: var(--apagado); }
.campo input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--linha); border-radius: 14px; background: var(--campo);
  color: var(--tinta); font: 400 16px/1.3 var(--fonte);
  transition: border-color .15s ease, box-shadow .15s ease;
  scroll-margin-top: 24px;
}
.campo input:hover { border-color: #c3c9da; }
.campo input:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 3px var(--suave); }
.campo input[aria-invalid="true"] { border-color: var(--erro); }
.campo-escondido { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.aceite { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: start; padding: 14px; border-radius: 14px; background: #eceef5; }
.aceite input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cobalto); }
.aceite label { font-size: 14px; line-height: 1.45; color: var(--tinta); }
.aceite .erro { grid-column: 2; margin-top: 4px; }
.erro { color: var(--erro); font-size: 13px; font-weight: 500; }
.aviso-form { color: var(--erro); font-size: 14px; text-align: center; }
.aviso-form:empty { display: none; }

/* Pronto */
.pronto { text-align: center; padding: 8px 0 0; }
.pronto:focus { outline: none; }
.pronto-icone { width: 48px; height: 48px; margin: 0 auto 16px; display: block; }
.pronto h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.pronto p { margin-top: 8px; color: var(--apagado); }

/* Dados */
.dados { margin-top: 20px; text-align: center; font-size: 13px; color: var(--apagado); }
.dados summary { display: inline-block; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(91, 99, 130, 0.4); text-underline-offset: 3px; list-style: none; }
.dados summary::-webkit-details-marker { display: none; }
.dados p { margin-top: 10px; text-align: left; line-height: 1.55; }

/* Rodapé */
.rodape { padding: 0 16px 24px; text-align: center; font-size: 12px; color: var(--apagado); }

/* Páginas simples (obrigado, erro, lista de contatos) */
.pagina-simples main { padding: 56px 20px 64px; max-width: 980px; margin: 0 auto; }
.pagina-simples .logo img { height: 32px; width: auto; display: block; }
.pagina-simples h1 { margin-top: 40px; font-size: 32px; }
.pagina-simples main > p, .pagina-simples main > ul { margin-top: 16px; color: var(--apagado); }
.pagina-simples ul { color: var(--erro); }
.pagina-simples .botao { width: auto; display: inline-flex; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.botao-texto { background: none; border: 0; padding: 4px 0; color: var(--erro); font: inherit; cursor: pointer; text-decoration: underline; }
.tabela { margin-top: 24px; overflow-x: auto; border: 1px solid var(--linha); border-radius: 14px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--linha); vertical-align: top; }
th { background: var(--pagina); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; color: var(--apagado); }
