/* Tokens, medidas e efeitos copiados do template Framer "Wait" (wait.framer.media) */
:root {
  --bg: #fff;
  --surface: #fff;          /* chip */
  --input: #f8f8f8;
  --input-border: #f2f2f2;
  --text: #121212;
  --muted: #7e7e7e;
  --accent: #dfff1a;
  --accent-shadow: #cbe81a;
  --line: #1717170d;
  --avatar-ring: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0d;
    --surface: #141414;
    --input: #141414;
    --input-border: #171717;
    --text: #fff;
    --accent-shadow: #b1cc00;
    --line: #ffffff12;
    --avatar-ring: #0d0d0d;
  }
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

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

html, body { background: var(--bg); overflow-x: clip; }

body {
  color: var(--text);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

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

p { font-size: 15px; line-height: 24px; letter-spacing: 0.01em; }
.muted { color: var(--muted); }

/* Gráfico de linhas no fundo — recortado no tamanho da tela para não gerar scroll */
.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
/* Centro do símbolo na borda direita da tela → só a asa esquerda aparece, indo até o meio da tela; centralizado na vertical */
.graphic {
  position: absolute;
  top: 50%;
  right: 0;
  width: 100vw;
  aspect-ratio: 889.293 / 809.89;
  transform: translate(50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.graphic svg { width: 100%; height: 100%; }
.graphic path { stroke: var(--line); }

/* Container principal */
.main {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}

/* Página de uma dobra só: ocupa a tela inteira, conteúdo centralizado na vertical
   e rodapé no pé da tela (linhas 1fr | conteúdo | 1fr → o conteúdo fica no centro exato) */
.fold {
  width: 100%;
  /* altura fixa = tela: em telas baixas o espaço de cima encolhe primeiro (sem sobrepor) */
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  padding: 24px 0;
}
.fold > .hero { grid-row: 2; }

/* Rodapé */
.footer {
  grid-row: 3;
  align-self: end;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
/* Telas baixas: menos respiro em cima/embaixo para tudo caber sem rolagem */
@media (max-height: 720px) {
  .fold { padding: 16px 0; }
  .fold .footer { padding-top: 24px; }
}
.footer p { font-size: 13px; line-height: 20px; color: var(--muted); }
.footer-links { display: flex; align-items: center; }
.footer-links a {
  font-size: 13px; line-height: 20px; font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 0 14px;
  white-space: nowrap;
  transition: color .2s;
}
.footer-links a + a { border-left: 1px solid color-mix(in srgb, var(--muted) 40%, transparent); }
.footer-links a:hover { color: var(--accent); }
.footer-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Desktop: conteúdo ampliado */
@media (min-width: 810px) {
  .hero { zoom: 1.2; }
  .hero .proof p { font-size: 13px; }
}

.hero {
  width: 100%;
  max-width: 448px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.stack { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.texts { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.group { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* Logo */
.logo {
  width: 51px; height: 51px;
  background: var(--accent);
  border-radius: 5px;
  padding-top: 5px;
  display: grid;
  place-items: center;
}
.logo svg { width: 30px; height: auto; }

h1 {
  font-size: 37px; font-weight: 500;
  letter-spacing: 0.4px; line-height: 1.3;
}
h1 .char { display: inline-block; opacity: 0; transform: translateY(10px); animation: appear .6s cubic-bezier(.22,1,.36,1) forwards; }
h1 .word { white-space: nowrap; }

/* Dias de envio (no lugar do chip do template); a próxima edição acende em lime com o pulso do chip */
/* 3 colunas iguais: todos os badges ficam com a largura do maior (SEGUNDA) */
.schedule {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.schedule li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 27px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 8px; font-weight: 500; line-height: 1;
  letter-spacing: 1.7px; text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateY(6px);
  animation: appear .6s cubic-bezier(.22,1,.36,1) forwards;
}
.schedule li:nth-child(1) { animation-delay: .35s; }
.schedule li:nth-child(2) { animation-delay: .43s; }
.schedule li:nth-child(3) { animation-delay: .51s; }
/* Corta o espaço acima/abaixo das maiúsculas: o ponto centraliza exatamente na altura das letras */
.schedule li span {
  display: block;
  text-box: trim-both cap alphabetic;
  margin-right: -1.7px; /* compensa o letter-spacing após a última letra */
}
.schedule li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: .5;
}
.schedule li.next {
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
.schedule li.next::before {
  background: var(--accent);
  opacity: 1;
  animation: pulse 1.6s cubic-bezier(.22,1,.36,1) 1s infinite;
}

/* Formulário */
.form { width: 100%; }
.field {
  position: relative;
  width: 100%;
  margin-top: 27px;
  display: flex;
  align-items: center;
}
/* Anel conic girando por cima da borda do campo (só a linha de 1px aparece) */
.border-spin {
  position: absolute; inset: 0;
  border-radius: 12px;
  padding: 1px;
  opacity: .3;
  background: conic-gradient(from var(--angle), var(--accent) 0deg, var(--input-border) 32.5deg, var(--input-border) 327.5deg, var(--accent) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: 3;
}
.field input {
  position: relative; z-index: 1;
  width: 100%; height: 47px;
  padding: 11.5px 127px 11.5px 12px;
  background: var(--input);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  font: 400 14px/24px "Inter", sans-serif;
  color: var(--text);
  outline: none;
  transition: box-shadow .3s cubic-bezier(.44,0,.56,1);
}
.field input::placeholder { color: var(--muted); }
.field input:focus { box-shadow: 0 0 0 2px var(--line); }
.field input[aria-invalid="true"] { border-color: #e5484d; }

.field button {
  position: absolute; z-index: 2;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 111px; height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border: 1px solid rgba(33, 33, 33, 0.1);
  border-radius: 8px;
  box-shadow: 0 0 0 0 var(--accent-shadow);
  font: 600 14px/24px "Inter", sans-serif;
  letter-spacing: 0.01em;
  color: #121212;
  cursor: pointer;
  transition: box-shadow .45s cubic-bezier(.34,1.56,.64,1), transform .45s cubic-bezier(.34,1.56,.64,1);
}
/* Texto centralizado pela altura das maiúsculas, como nos badges */
.field button span { display: block; text-box: trim-both cap alphabetic; }
.field button:hover { box-shadow: 0 0 0 2px var(--accent-shadow); }
.field button:active { transform: translateY(-50%) scale(.98); }
.field button:disabled { opacity: .6; cursor: default; }

/* Aviso de consentimento (LGPD) logo abaixo do campo */
.consent {
  margin-top: 6px;
  font-size: 10px; line-height: 14px;
  color: var(--muted);
  text-align: center;
  text-wrap: balance;
}
.consent a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.consent a:hover { color: var(--text); }

/* Mensagem de sucesso/erro: só ocupa espaço quando aparece */
.status { font-size: 14px; line-height: 24px; text-align: center; }
.status:empty { display: none; }
.status.err { color: #e5484d; }

/* Prova social */
.proof { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.avatars { display: flex; padding-right: 11px; }
.avatars img {
  width: 25px; height: 25px;
  border-radius: 1000px;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--avatar-ring);
  margin-right: -3px;
  position: relative;
}
.proof p { font-size: 14px; letter-spacing: 0.01em; white-space: nowrap; }

/* Páginas legais (privacidade.html, termo-de-consentimento.html): mesmo fundo e tokens, texto longo com rolagem */
.legal-page {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}
.legal-header {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 56px;
}
.legal-header .logo { width: 40px; height: 40px; padding-top: 4px; }
.legal-header .logo svg { width: 24px; }
.legal-back {
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.legal-back:hover { color: var(--text); }

.legal { width: 100%; max-width: 640px; }
.legal-eyebrow {
  font-size: 10px; font-weight: 500;
  letter-spacing: 1.7px; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.legal h1 { font-size: 37px; letter-spacing: 0.4px; line-height: 1.2; text-wrap: balance; }
.legal-updated { font-size: 13px; color: var(--muted); margin-top: 10px; }

.legal-summary {
  margin: 32px 0 40px;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.legal-summary-title {
  font-size: 10px; font-weight: 500;
  letter-spacing: 1.7px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.legal-summary ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.legal-summary li { font-size: 15px; line-height: 24px; color: var(--text); }
.legal-summary li::marker { color: var(--accent); }

.legal section { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.legal section:first-of-type { border-top: 0; }
.legal h2 { font-size: 17px; font-weight: 500; line-height: 26px; color: var(--text); }
.legal section p, .legal section li { font-size: 15px; line-height: 26px; color: var(--muted); }
.legal section ul { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.legal strong { font-weight: 500; color: var(--text); }
.legal a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.legal a:hover { color: var(--accent); }

.legal-page .footer { align-self: center; margin-top: auto; padding: 72px 0 32px; }
.footer-links a[aria-current="page"] { color: var(--accent); }

@media (max-width: 809.98px) {
  .legal-header { padding: 24px 0 40px; }
  .legal h1 { font-size: 29px; }
  .legal-summary { padding: 16px 18px; }
}

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(10px); animation: appear .7s cubic-bezier(.22,1,.36,1) forwards; }

@keyframes appear { to { opacity: 1; transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
  100% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* Tablet */
@media (max-width: 1199.98px) {
  h1 { font-size: 33px; }
}

/* Celular */
@media (max-width: 809.98px) {
  h1 { font-size: 29px; }
  .group { gap: 20px; }
  .footer p, .footer-links a { font-size: 12px; }
  .footer-links a { padding: 0 10px; }
  .proof { flex-direction: column; }
  .avatars { padding-right: 0; }

  .field {
    margin-top: 0;
    flex-direction: column;
    gap: 4px;
    padding: 0 8px 8px;
    background: var(--input);
    border: 1px solid var(--input-border);
    border-radius: 12px;
  }
  .field input {
    height: 40px;
    padding: 8px;
    border: 0;
    background: transparent;
  }
  .field input:focus { box-shadow: none; }
  .field button {
    position: relative;
    right: auto; top: auto;
    transform: none;
    width: 100%; height: 36px;
  }
  .field button:active { transform: scale(.98); }
}
