@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}

/* Tokens: claro por padrão, escuro via [data-theme="dark"] (definido por theme-init.js) */
:root {
  --bg: #F2F5F9;
  --surface: #FFFFFF;
  --ink: #0E1B33;
  --muted: #4A5B75;
  --line: #D3DCE8;
  --accent: #2F6A9E;
  --accent-ink: #FFFFFF;
  --hero-wash: #E3EAF3;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B1628;
  --surface: #12233D;
  --ink: #E6EDF6;
  --muted: #9FB0C7;
  --line: #22385A;
  --accent: #8DB8E8;
  --accent-ink: #0B1628;
  --hero-wash: #0F1F38;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 20; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.5rem;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: 999px;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); filter: none; }
.btn-small { min-height: 2.5rem; padding: 0 1.1rem; font-size: .9375rem; }

/* Topo */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 2rem;
  padding: .85rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; }
.brand-role { font-size: .8125rem; color: var(--muted); }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.tools { display: flex; align-items: center; gap: .5rem; }
.tool {
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  font: 600 .8125rem var(--sans); cursor: pointer; text-decoration: none;
}
.tool svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.i-moon { fill: currentColor; stroke: none; }
:root[data-theme="dark"] .i-moon, :root:not([data-theme="dark"]) .i-sun { display: none; }

/* Hero: o único momento ousado da página */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(3rem, 6vw, 4.5rem);
}
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); letter-spacing: -0.02em; max-width: 14ch; }
.lead { margin-top: 1.5rem; font-size: 1.1875rem; color: var(--muted); max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.reg { margin-top: 1.5rem; font-size: .875rem; color: var(--muted); }

.reel { margin: 0; justify-self: center; width: min(100%, 19rem); }
.reel-frame {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: 2rem; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--hero-wash), var(--surface));
  box-shadow: 0 2.5rem 4rem -2rem color-mix(in srgb, var(--ink) 35%, transparent);
}
.reel-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .5rem;
  color: var(--muted); text-align: center; padding: 1rem;
}
.reel-placeholder svg { width: 3rem; height: 3rem; fill: var(--accent); opacity: .85; }
.reel-placeholder small { font-size: .8125rem; }
.reel-sound {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  padding: .45rem .9rem; border-radius: 999px; border: 0;
  background: color-mix(in srgb, var(--ink) 75%, transparent); color: var(--bg);
  font: 500 .8125rem var(--sans); cursor: pointer;
}
.reel figcaption { margin-top: .9rem; font-size: .9rem; color: var(--muted); text-align: center; }

/* Credenciais */
.creds { border-block: 1px solid var(--line); background: var(--surface); }
.creds ul {
  list-style: none; margin: 0 auto; max-width: var(--wrap);
  padding: 1.75rem var(--gutter);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
}
.creds strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.creds span { font-size: .9rem; color: var(--muted); }

/* Blocos */
.block { max-width: var(--wrap); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }
.block-lead { margin-top: 1rem; color: var(--muted); max-width: 56ch; font-size: 1.125rem; }

.proc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2.5rem; border-top: 1px solid var(--line); }
.proc {
  padding: 1.75rem 2rem 1.75rem 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(7rem, 38%) minmax(0, 1fr); gap: 1.5rem; align-items: start;
}
.proc-photo {
  aspect-ratio: 4 / 5; border-radius: 1rem; overflow: hidden;
  border: 1px dashed var(--line); background: var(--hero-wash);
  display: grid; place-items: center; color: var(--muted); font-size: .8125rem; text-align: center;
}
.proc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proc-body { display: flex; flex-direction: column; gap: .75rem; height: 100%; }
.proc:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line); }
.proc p { color: var(--muted); max-width: 52ch; }
.proc-link { margin-top: auto; font-weight: 600; color: var(--accent); text-underline-offset: .25em; }

.safety { max-width: none; background: var(--surface); border-block: 1px solid var(--line); }
.safety > * { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-inline: auto; }
.steps { list-style: none; padding: 0; margin-top: 3rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 1.25rem; position: relative; }
.steps li::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--accent); }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--accent); margin-bottom: .75rem; }
.steps p { margin-top: .5rem; color: var(--muted); font-size: 1rem; }

.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-photo {
  aspect-ratio: 4 / 5; border-radius: 1.25rem; border: 1px dashed var(--line);
  display: grid; place-items: center; color: var(--muted); background: var(--hero-wash);
}
.about-copy p { margin-top: 1.1rem; max-width: 60ch; color: var(--muted); }
.about-copy p:first-of-type { margin-top: 1.5rem; }

.note { margin-top: .75rem; color: var(--muted); font-size: .9375rem; }
.faq { margin-top: 2rem; max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--serif); font-size: 1.3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1.1rem; font-family: var(--sans); font-size: 1.5rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 2.5rem 1.5rem 0; color: var(--muted); max-width: 62ch; }

.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-copy p { margin: 1rem 0 1.75rem; color: var(--muted); max-width: 40ch; }
.form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem);
}
.form label { display: grid; gap: .4rem; font-size: .9375rem; font-weight: 500; }
.form input, .form select {
  width: 100%; min-height: 2.9rem; padding: 0 .9rem;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: .6rem; font: 400 1rem var(--sans);
}
.form input:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form .consent { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: start; gap: .65rem; font-weight: 400; color: var(--muted); }
.form .consent input { width: 1.15rem; min-height: 1.15rem; margin-top: .2rem; accent-color: var(--accent); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form-status { grid-column: 1 / -1; font-size: .9375rem; color: var(--muted); }
.form [aria-invalid="true"] { border-color: #C2410C; }

/* Rodapé */
.footer {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
  max-width: var(--wrap); margin: 0 auto; padding: 3.5rem var(--gutter) 6rem;
  border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted);
}
.footer p + p { margin-top: .4rem; }
.footer .brand-name { color: var(--ink); }
.foot-h { color: var(--ink); font-weight: 600; margin-bottom: .6rem; }

.wa-float {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 9;
  width: 3.5rem; height: 3.5rem; border-radius: 50%; display: none; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 .75rem 1.5rem -.5rem rgba(0,0,0,.35);
}
.wa-float svg { width: 1.9rem; height: 1.9rem; fill: currentColor; }

.consent-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 11;
  max-width: 34rem; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; border-radius: 1rem;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1rem 2rem -1rem rgba(0,0,0,.3); font-size: .9375rem;
}
.consent-bar div { display: flex; gap: .5rem; }
.consent-bar[hidden] { display: none; }

/* Tablet e celular */
@media (max-width: 960px) {
  .proc-list { grid-template-columns: minmax(0, 1fr); }
  .proc:nth-child(even) { padding-left: 0; border-left: 0; }
  .nav { display: none; }
  .tools { margin-left: auto; }
  .creds ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .tools .btn-small { display: none; }
  .wa-float { display: grid; }
  .hero, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 2rem; }
  .reel { width: min(72%, 16rem); }
  .proc-list { grid-template-columns: minmax(0, 1fr); }
  .proc, .proc:nth-child(even) { padding: 1.5rem 0; border-left: 0; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 20rem; }
}
@media (max-width: 480px) {
  .creds ul, .steps, .footer { grid-template-columns: minmax(0, 1fr); }
}

/* Páginas internas (procedimentos, privacidade, 404) */
.block-narrow { max-width: 48rem; }
.crumbs { margin: 0 auto; padding: 1.5rem var(--gutter) 0; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.hero-proc { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); padding-top: clamp(1.5rem, 4vw, 3rem); }
.hero-proc h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
.proc-photo-hero { width: min(100%, 18rem); justify-self: center; }
.prose h1 { font-size: clamp(2.2rem, 4.5vw, 3.25rem); margin-bottom: 1rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 1rem; color: var(--muted); max-width: 66ch; }
.proc h3 a { text-decoration: none; }
.proc h3 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.proc-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: auto; }
@media (max-width: 720px) {
  .hero-proc { grid-template-columns: minmax(0, 1fr); }
  .proc-photo-hero { width: min(70%, 15rem); }
}

/* Movimento: só com JS e sem "reduzir movimento". O título não anima (LCP). */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .cta-row, .js .hero .reg, .js .reel { opacity: 0; transform: translateY(14px); }
  .is-ready .hero .cta-row, .is-ready .hero .reg, .is-ready .reel {
    opacity: 1; transform: none;
    transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  }
  .is-ready .hero .reg { transition-delay: .1s; }
  .is-ready .reel { transition-delay: .18s; }

  .js .steps li::after { transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.4, 0, .2, 1); }
  .steps.is-visible li::after { transform: scaleX(1); }
  .steps.is-visible li:nth-child(2)::after { transition-delay: .25s; }
  .steps.is-visible li:nth-child(3)::after { transition-delay: .5s; }
  .steps.is-visible li:nth-child(4)::after { transition-delay: .75s; }

  .brand { transform-origin: left center; transition: transform .25s ease; }
  .brand-role { transition: opacity .25s ease; }
  .topbar.is-scrolled .brand { transform: scale(.92); }
  .topbar.is-scrolled .brand-role { opacity: 0; }

  .faq details[open] > p { animation: faq-in .3s ease; }
  .btn { transition: transform .12s ease, filter .15s ease; }
  .btn:active { transform: scale(.97); }
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Formulário: honeypot fora da tela, Turnstile discreto, estado de erro e o "obrigado" */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts:empty { display: none; }
.form-status.has-error { color: #C2410C; }
:root[data-theme="dark"] .form-status.has-error { color: #FDBA74; }
.form-done { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 1rem; }
.form-done h3 { font-size: 1.6rem; }
.form-done p { color: var(--muted); }
.btn[disabled] { opacity: .6; cursor: progress; }
