/* =========================================================
   Domínio Pesquisas – design system
   Cores, tipografia e componentes compartilhados pelo site e pelo formulário.
   Para trocar a paleta, altere só as variáveis em :root.
   ========================================================= */
:root {
  --navy-950: #051526;
  --navy-900: #071a2c;
  --navy-800: #0a2238;
  --navy-700: #123352;
  --navy-600: #1d4870;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-700: #0f766e;
  --teal-50:  #e8faf7;
  --amber-400: #f5a524;
  --amber-50: #fff6e5;
  --red-600: #dc2626;
  --red-50: #fef2f2;

  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;

  --font-head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -12px rgba(10, 34, 56, .25);
  --shadow-lg: 0 30px 60px -20px rgba(5, 21, 38, .45);

  --container: 1160px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-800); color: #cbd5e1; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section--dark .section-head p { color: #94a3b8; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--teal-700);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--teal-400); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--teal-500); color: var(--navy-950); box-shadow: 0 8px 20px -8px rgba(20, 184, 166, .7); }
.btn--primary:hover { background: var(--teal-400); color: var(--navy-950); }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--navy-800); color: var(--navy-800); }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px;
}
.nav a:not(.btn):hover { background: var(--bg-soft); color: var(--teal-700); }
.nav .btn { margin-left: 10px; min-height: 42px; padding: 9px 20px; font-size: .95rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px;
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; min-height: 50px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(20, 184, 166, .28), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(29, 72, 112, .9), transparent 60%),
    var(--navy-800);
  color: #cbd5e1;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--teal-400); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #cbd5e1; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .92rem; color: #94a3b8; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--teal-400); flex: none; }

/* Cartão ilustrativo de convite */
.invite-stack { position: relative; max-width: 400px; margin-left: auto; }
.invite {
  position: relative; z-index: 2;
  background: #fff; color: var(--text); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-lg);
}
.invite-stack::before, .invite-stack::after {
  content: ''; position: absolute; left: 24px; right: 24px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .14);
}
.invite-stack::before { top: -14px; height: 40px; z-index: 1; }
.invite-stack::after { top: -26px; left: 48px; right: 48px; height: 40px; background: rgba(255, 255, 255, .07); }
.invite-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.invite-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; flex: none; }
.invite-icon svg { width: 22px; height: 22px; }
.invite-top small { display: block; color: var(--muted); font-size: .8rem; }
.invite-top strong { font-family: var(--font-head); color: var(--ink); font-size: 1rem; }
.invite h3 { font-size: 1.15rem; margin-bottom: 12px; }
.invite-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.invite-meta div { background: var(--bg-soft); border-radius: 12px; padding: 10px 12px; }
.invite-meta dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.invite-meta dd { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .95rem; }
.invite-meta .is-money dd { color: var(--teal-700); }
.invite-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; font-family: var(--font-head); }
.pill--ok { background: var(--teal-50); color: var(--teal-700); }
.pill--warn { background: var(--amber-50); color: #9a5b00; }
.pill--muted { background: var(--bg-soft); color: var(--muted); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.invite-badge {
  position: absolute; z-index: 3; right: -14px; top: -18px;
  background: var(--amber-400); color: var(--navy-950);
  font-family: var(--font-head); font-weight: 800; font-size: .85rem;
  padding: 10px 16px; border-radius: 14px; box-shadow: var(--shadow); transform: rotate(-3deg);
}
.invite-caption { position: relative; z-index: 2; text-align: center; font-size: .78rem; color: #94a3b8; margin-top: 30px; }

@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; gap: 64px; }
  .invite-stack { margin: 0 auto; }
}

/* ---------- Pesquisas abertas ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.project {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.project:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfe9e5; }
.project-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.project-place { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.project-place svg { width: 16px; height: 16px; }
.project h3 { font-size: 1.3rem; margin-bottom: 10px; }
.project p { color: var(--text); font-size: .98rem; }
.project-facts { list-style: none; padding: 0; margin: 4px 0 20px; display: grid; gap: 10px; }
.project-facts li { display: flex; gap: 10px; font-size: .95rem; }
.project-facts svg { width: 20px; height: 20px; color: var(--teal-700); flex: none; margin-top: 2px; }
.project-facts strong { color: var(--ink); }
.project-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.project-chips li { font-size: .82rem; background: var(--bg-soft); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; color: var(--text); }
.project .btn { margin-top: auto; }
.project-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.empty-state { text-align: center; padding: 48px 24px; border: 2px dashed var(--line); border-radius: var(--radius-lg); background: #fff; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); max-width: 460px; margin: 0 auto 20px; }

/* ---------- Como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px 28px; }
.step-num {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy-800); color: var(--teal-400);
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; margin-bottom: 20px;
}
.step p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Serviços (empresas) ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.split .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); padding: 28px; }
.service-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(20, 184, 166, .14); color: var(--teal-400); margin-bottom: 18px; }
.service-icon svg { width: 24px; height: 24px; }
.service p { margin: 0; font-size: .97rem; color: #a8b6c8; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 40px; } .split .section-head { position: static; } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* ---------- Equipe ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { text-align: center; margin: 0; }
.member img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); background: var(--bg-soft); margin-bottom: 16px; }
.member h3 { margin-bottom: 2px; }
.member p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: #bfe8e2; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--teal-700); border-bottom: 2px solid var(--teal-700);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin: 0 0 20px; color: var(--text); }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text); transition: border-color .2s ease, box-shadow .2s ease;
}
a.contact-item:hover { border-color: var(--teal-500); box-shadow: var(--shadow-sm); color: var(--text); }
.contact-item .ci-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; flex: none; }
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item small { display: block; color: var(--muted); font-size: .82rem; }
.contact-item strong { font-family: var(--font-head); color: var(--ink); font-weight: 700; word-break: break-word; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta-band {
  border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px);
  background: radial-gradient(600px 300px at 100% 0, rgba(20, 184, 166, .35), transparent 60%), var(--navy-800);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #cbd5e1; margin: 0; max-width: 520px; }
.cta-band .hero-actions { margin: 0; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-950); color: #94a3b8; padding: 56px 0 32px; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-top img { height: 44px; width: auto; margin-bottom: 16px; }
.footer-top h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: var(--teal-400); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .85rem; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Botão flutuante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* =========================================================
   Páginas internas (cadastro, privacidade)
   ========================================================= */
.page-hero {
  background:
    radial-gradient(700px 360px at 90% -20%, rgba(20, 184, 166, .3), transparent 60%),
    var(--navy-800);
  color: #cbd5e1; padding: 48px 0 112px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { max-width: 620px; margin: 0; font-size: 1.05rem; }
.page-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: .92rem; color: #94a3b8; list-style: none; padding: 0; }
.page-hero .meta li { display: inline-flex; align-items: center; gap: 8px; }
.page-hero .meta svg { width: 18px; height: 18px; color: var(--teal-400); }
.page-body { background: var(--bg-soft); padding-bottom: 80px; }
.page-card {
  position: relative; max-width: 820px; margin: -72px auto 0;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 48px);
}
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Formulário ---------- */
.project-banner {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--teal-50); border: 1px solid #bfe8e2; color: var(--navy-800);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 28px;
}
.project-banner svg { width: 22px; height: 22px; color: var(--teal-700); flex: none; margin-top: 2px; }
.project-banner strong { font-family: var(--font-head); }
.form-section { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; }
.form-section > .grid { clear: both; }
.form-section legend {
  float: left; width: 100%;
  display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 22px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ink);
}
.form-section legend .num {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--navy-800); color: var(--teal-400); font-size: .95rem; flex: none;
}
.form-section + .form-section { padding-top: 36px; border-top: 1px solid var(--line); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.span-2 { grid-column: span 2; }
@media (max-width: 680px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field-label {
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ink);
}
.field .opt { font-weight: 500; color: var(--muted); font-size: .85rem; }
.field .hint { font-size: .85rem; color: var(--muted); margin: -2px 0 0; }
.input, .select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #cbd5e1; border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none; -webkit-appearance: none;
}
.select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.input::placeholder { color: #94a3b8; }
.input:hover, .select:hover { border-color: #94a3b8; }
.input:focus, .select:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(20, 184, 166, .18); }
.input:disabled, .select:disabled { background: var(--bg-soft); color: var(--muted); cursor: not-allowed; }
.field.is-invalid .input, .field.is-invalid .select { border-color: var(--red-600); }
.field.is-invalid .input:focus, .field.is-invalid .select:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .15); }
.error-msg { display: none; font-size: .85rem; color: var(--red-600); font-weight: 500; }
.field.is-invalid .error-msg { display: block; }
.is-loading { position: relative; }
.is-loading::after {
  content: ''; position: absolute; right: 44px; bottom: 16px; width: 18px; height: 18px;
  border: 2px solid var(--line); border-top-color: var(--teal-500); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Opções em "chips" (rádio/checkbox) */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px;
  border: 1.5px solid #cbd5e1; border-radius: 999px; background: #fff; cursor: pointer;
  font-weight: 500; color: var(--ink); transition: all .15s ease; user-select: none;
}
.choice span::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #94a3b8; flex: none;
  transition: all .15s ease; background: #fff;
}
.choice span:hover { border-color: #94a3b8; }
.choice input:checked + span { border-color: var(--teal-500); background: var(--teal-50); color: var(--navy-800); }
.choice input:checked + span::before { border-color: var(--teal-500); background: var(--teal-500); box-shadow: inset 0 0 0 3px #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--teal-400); outline-offset: 2px; }
.field.is-invalid .choice span { border-color: #fca5a5; }

.reveal-box { display: none; }
.reveal-box.is-shown { display: flex; }
.kids-ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }

.consent, .field > label.consent {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1.5px solid var(--line); cursor: pointer;
  font-family: var(--font-body); font-weight: 400; color: var(--text);
}
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal-700); flex: none; cursor: pointer; }
.consent p { margin: 0; font-size: .93rem; }
.field.is-invalid .consent { border-color: var(--red-600); background: var(--red-50); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: grid; gap: 12px; margin-top: 8px; }
.form-actions .small { text-align: center; color: var(--muted); font-size: .85rem; margin: 0; }
.alert { display: none; gap: 12px; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: .95rem; }
.alert.is-shown { display: flex; }
.alert--error { background: var(--red-50); color: #991b1b; border: 1px solid #fecaca; }
.alert svg { width: 22px; height: 22px; flex: none; }

.success { text-align: center; padding: 24px 0 8px; }
.success-icon { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; }
.success-icon svg { width: 38px; height: 38px; }
.success p { color: var(--muted); max-width: 480px; margin: 0 auto 24px; }
.success .hero-actions { justify-content: center; margin: 0; }

.simple-header { background: var(--navy-800); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.simple-header .container { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.simple-header .brand img { height: 38px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: .95rem; font-family: var(--font-head); }
.back-link:hover { color: #fff; }
.back-link svg { width: 18px; height: 18px; }

/* ---------- Página de convite ---------- */
.page-hero--short { padding: 40px 0 104px; }
.invite-page { max-width: 600px; }
.invite-page .invite-top { margin-bottom: 22px; }
.invite-page .invite-top .pill { margin-left: auto; }
.invite-logo { width: 48px; height: 48px; flex: none; }
.invite-hello { color: var(--text); margin-bottom: 6px; }
.invite-page h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-bottom: 8px; }
.invite-type { color: var(--muted); margin: 0 0 16px; }
.invite-page .invite-meta { margin: 18px 0; }
.invite-page .invite-meta dd { font-size: 1.02rem; }
.invite-page .project-facts { margin-bottom: 8px; }
.invite-actions { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 24px; text-align: center; }
.invite-question { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.1rem; margin-bottom: 14px; }
.invite-buttons { display: grid; gap: 12px; }
.invite-deadline { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.invite-page .alert { margin: 20px 0 0; }
.state-msg { text-align: center; padding: 24px 0 8px; }
.state-msg p { color: var(--muted); max-width: 440px; margin: 0 auto 24px; }
.state-msg h2 { margin-bottom: 10px; }
.spinner { display: inline-block; width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--teal-500); border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 16px; }
.success-icon.is-error { background: var(--red-50); color: var(--red-600); }
.success-icon.is-muted { background: var(--bg-soft); color: var(--muted); }
.invite-footnote { max-width: 600px; margin: 20px auto 0; text-align: center; font-size: .85rem; color: var(--muted); }
.invite .invite-logo { width: 44px; height: 44px; }
.invite-hello-sm { font-size: .88rem; color: var(--muted); margin: 0 0 4px; }
.invite-fake-btn { min-height: 44px; font-size: .95rem; pointer-events: none; box-shadow: none; }

.projects-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 32px 0; margin: 0; }
