@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #21332c;
  --ink-soft: #5f6f67;
  --paper: #f4efe5;
  --cream: #fffaf1;
  --green: #295447;
  --coral: #f39a7d;
  --yellow: #f6d46a;
  --line: rgba(33, 51, 44, 0.14);
  --error: #9b2c1f;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img { width: 40px; height: 40px; }

.header-link { font-size: 16px; font-weight: 600; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

h1, h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { margin: 8px 0 12px; font-size: clamp(34px, 7vw, 52px); }
h2 { margin: 40px 0 10px; font-size: 25px; }

.lead { margin: 0 0 8px; font-size: 20px; color: var(--ink-soft); }
.updated { margin: 0 0 32px; font-size: 16px; color: var(--ink-soft); }

p, li { max-width: 68ch; }
ul { padding-left: 22px; }
li + li { margin-top: 6px; }

.card {
  margin-top: 32px;
  padding: 28px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 17px; }
.field .hint { font-size: 15px; color: var(--ink-soft); }

input, select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(33, 51, 44, 0.28);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(41, 84, 71, 0.35);
  outline-offset: 2px;
}

.consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  margin: 8px 0 24px;
  font-size: 16px;
}

.consent input { width: 22px; min-height: 22px; height: 22px; margin: 3px 0 0; }

#waitlist { scroll-margin-top: 110px; }
.etapa { border: 0; margin: 0; padding: 0; min-width: 0; }
.etapa-num { padding: 0; margin-bottom: 14px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.voltar { display: block; margin: 14px auto 0; padding: 8px 12px; border: 0; background: none; color: var(--ink-soft); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

button[type='submit'], .btn-etapa {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
}

button[disabled] { opacity: 0.6; cursor: wait; }

.status { margin: 16px 0 0; font-weight: 600; }
.status.error { color: var(--error); }

.done h2 { margin-top: 0; }
.done .convite { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.done .convite h3 { margin: 0 0 6px; }
.done .convite .btn-primary { display: inline-flex; margin-top: 12px; }

.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }

.brand .brand-wordmark { width: auto; height: 34px; }

/* Página do convite para a família */
.invite-page { min-height: 100dvh; display: grid; place-items: center; background: #f6efe2; }
.invite-main { max-width: 460px; padding: 40px 20px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.invite-icon { border-radius: 30px; box-shadow: 0 12px 30px rgba(22,22,22,.12); }
.invite-main .brand-wordmark { width: 150px; height: auto; margin-top: 10px; }
.invite-main h1 { margin: 6px 0 0; font-size: clamp(34px, 9vw, 46px); line-height: 1.02; }
.invite-main .lead { margin: 0; }
.invite-button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; margin-top: 10px; border-radius: 999px; background: #161616; color: #fffaf1; font-weight: 800; font-size: 18px; text-decoration: none; }
.invite-button:focus-visible { outline: 3px solid #8a9a3b; outline-offset: 3px; }
.invite-note { margin: 0; color: #5a5a52; font-size: 14px; }
