/* =====================================================================
   Páginas públicas da campanha de indicação
   Mobile first. A cor da marca vem das configurações (--brand).
   ===================================================================== */

:root {
  --brand:    #0B6B53;
  --ink:      #14201C;
  --muted:    #66756F;
  --line:     #E2E8E5;
  --paper:    #F3F6F5;
  --card:     #FFFFFF;
  --gold:     #C8891F;
  --gold-100: #FCF3E2;
  --danger:   #B3261E;
  --radius:   16px;
  --font:     -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:     ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

h1, h2 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------ cabeçalho */

.head {
  background: var(--brand);
  padding: 14px 20px calc(14px + env(safe-area-inset-top));
  text-align: center;
}

.head__name {
  margin: 0;
  color: #fff;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: .01em;
}

.head__logo { max-height: 38px; width: auto; display: inline-block; vertical-align: middle; }

.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 40px; }

/* ----------------------------------------------------------------- hero */

.hero { text-align: center; padding: 12px 4px 26px; }

.hero__badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--gold-100);
  color: #7A5211;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
}

.hero__title { font-size: 29px; font-weight: 700; margin-bottom: 12px; }

.hero__text { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------------------------------------------------------------- passos */

.section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 16px;
}

.steps { margin-bottom: 22px; }

.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.steps__list li { display: flex; gap: 14px; align-items: flex-start; }

.steps__num {
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.steps__list strong { display: block; font-size: 16px; }

.steps__list p { margin: 1px 0 0; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- cartão */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  margin-bottom: 16px;
}

.card--soft { background: transparent; border-style: dashed; }

/* ------------------------------------------------------------ formulário */

.field { margin-bottom: 18px; }

.label { display: block; font-size: 15px; font-weight: 650; margin-bottom: 7px; }

.input {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,0,0,.06); outline: none; }

.input.is-error { border-color: var(--danger); }

.err { margin: 7px 0 0; color: var(--danger); font-size: 14px; font-weight: 600; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

.check input {
  flex: none;
  width: 24px; height: 24px;
  margin-top: 1px;
  accent-color: var(--brand);
}

.check.is-error span { color: var(--danger); }

.note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

.msg {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  margin: 0 0 16px;
}

.msg--error { background: #FBE9E7; color: #7F1D1A; }

/* ---------------------------------------------------------------- botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
}

.btn:active { transform: translateY(1px); }

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

.btn--ghost { background: transparent; color: var(--brand); border-color: var(--line); }

/* -------------------------------------------------------------- sucesso */

.done { text-align: center; padding: 20px 4px 26px; }

.done__check {
  width: 62px; height: 62px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
}

.done__check--warn { background: var(--gold); }

.done__title { font-size: 26px; font-weight: 700; margin-bottom: 10px; }

.done__text { margin: 0; color: var(--muted); }

.code {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--gold-100);
  color: #7A5211;
  padding: 3px 9px;
  border-radius: 7px;
  white-space: nowrap;
}

.reveal { margin-top: 16px; }

.reveal summary {
  cursor: pointer;
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 0;
}

.preview {
  margin-top: 10px;
  padding: 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
  line-height: 1.5;
}

/* ------------------------------------------------------------ benefícios */

.benefits { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }

.benefits li { padding-left: 26px; position: relative; font-size: 16px; }

.benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.price { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }

.price span { font-size: 16px; font-weight: 500; color: var(--muted); }

/* ---------------------------------------------------------------- rodapé */

.foot {
  text-align: center;
  padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 13px;
}

.foot p { margin: 0; }

@media (min-width: 620px) {
  .hero__title { font-size: 34px; }
  .card { padding: 26px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
