/* ==========================================================
   ENTREGÁVEL — Página inicial
   Troque as cores da marca nas variáveis abaixo.
   ========================================================== */
:root {
  --brand: #780000;          /* cor principal (bolinhas, textos de destaque) */
  --brand-soft: #fbeee7;     /* fundo suave (ícone de check, caixa do e-mail) */
  --bg: #fdfbf8;             /* fundo da página */
  --surface: #ffffff;        /* cartões */
  --ink: #141414;            /* títulos */
  --text: #55504c;           /* texto corrido */
  --muted: #8a827d;          /* textos secundários */
  --line: #ece7e2;           /* bordas leves */

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open { overflow: hidden; }

h1, h2, h3, p { margin: 0; }

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ---------- Página ---------- */
.page {
  flex: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 36px 16px 32px;
  text-align: center;
}

/* Selo (no lugar da logo) */
.seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  background: var(--surface);
  border: 1px solid rgba(120, 0, 0, 0.16);
  border-radius: 999px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.seal svg { flex: none; }

/* Ícone de confirmação */
.check-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 40px auto 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(28px, 8.4vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 396px;
  margin: 0 auto 32px;
  font-size: 14px;
  line-height: 1.65;
}
.lead strong { color: #3b3733; font-weight: 600; }

/* ---------- Passos ---------- */
.steps {
  display: grid;
  gap: 12px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px 14px 16px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(60, 30, 15, 0.03), 0 4px 14px rgba(60, 30, 15, 0.03);
}

.step__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.step p {
  font-size: 13.5px;
  line-height: 1.55;
}
.step strong { color: #2b2825; font-weight: 600; }

/* ---------- Ajuda ---------- */
.help {
  padding: 22px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(60, 30, 15, 0.06);
  text-align: center;
}

.help__icon { color: var(--brand); margin-bottom: 10px; }

.help h2 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.help > p {
  max-width: 350px;
  margin: 0 auto 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.email-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 10px 10px 12px;
  background: #fbf1ea;
  border-radius: 16px;
  text-align: left;
}

.email-box__text {
  flex: 1 1 auto;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  overflow-wrap: break-word;
  user-select: all;
}

.copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 8px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.copy-btn:hover { background: rgba(120, 0, 0, 0.07); }
.copy-btn.is-copied { color: var(--brand); }

/* ---------- Rodapé ---------- */
.footer {
  padding: 24px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.footer__link {
  padding: 6px 8px;
  border: 0;
  background: none;
  color: #9a8f88;
  font-size: 11.5px;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.15s ease;
}
.footer__link:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Modal ---------- */
.modal {
  width: min(calc(100% - 24px), 520px);
  max-height: min(94vh, 920px);
  max-height: min(94dvh, 920px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #222;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-in 0.2s ease-out;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.modal__head {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 14px;
}

.modal__head h2 {
  color: #0d0d0d;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.modal__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -4px -6px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #555;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.modal__close:hover { background: #f1f1f1; }

.modal__body {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 14px;
  padding: 4px 24px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__text {
  color: #2c2c2c;
  font-size: 13.5px;
  line-height: 1.6;
}

.modal__small {
  color: #8b8b8b;
  font-size: 12px;
  line-height: 1.6;
}

.note {
  padding: 14px 16px;
  background: #f4f4f4;
  border-radius: 16px;
}
.note h3 {
  margin-bottom: 4px;
  color: #1c1c1c;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}
.note p {
  color: #555;
  font-size: 12.5px;
  line-height: 1.6;
}
.note strong { color: #1c1c1c; font-weight: 600; }
.note__plain { color: #444; font-weight: 400; text-transform: uppercase; }

.modal__foot {
  flex: none;
  padding: 10px 24px 24px;
}

.btn-primary {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-primary:hover { background: #222; }
.btn-primary:focus-visible { outline-color: #000; }

/* Campo invisível usado como plano B para copiar */
.sr-copy {
  position: fixed;
  top: 0;
  left: -9999px;
  opacity: 0;
  font-size: 16px;
}

/* ---------- Telas pequenas ---------- */
@media (max-width: 420px) {
  .help { padding: 20px 16px 16px; }
}

@media (max-width: 380px) {
  .page { padding-top: 28px; }
  .check-badge { margin-top: 32px; }
  .modal__head { padding: 20px 18px 12px; }
  .modal__body { padding: 4px 18px 16px; }
  .modal__foot { padding: 8px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal[open] { animation: none; }
  * { transition: none !important; }
}

/* ---------- Oculta o selo da Netlify ---------- */
button#nl-badge {
  display: none !important;
}
