/* ==========================================================================
   Dinâmica Serviços Administrativos — estilos
   Direção: "instrumento preciso" — tinta escura, papel claro, azul de sinal
   reservado à ação, dados em mono tabular. Contrastes medidos em docs/DESIGN.md

   Regra de layout: as seções que os botões do cabeçalho abrem (Sobre,
   Serviços, Como trabalhamos, Contato) cabem INTEIRAS numa tela (100svh).
   Tipos e espaços usam unidades de largura E de altura, e cada formato de
   aparelho tem um arranjo próprio (carrossel de serviços no celular…).
   O site.js confere se coube; se faltar pouco, reduz a escala da seção em até
   20%. Se faltar mais (ex.: zoom do navegador em 200%), nada é reduzido — o
   zoom escolhido pela pessoa vale mais que o encaixe.
   A rolagem é livre, com as animações de sempre.
   ========================================================================== */

:root {
  /* cor — papéis */
  --ink: #080D1A;            /* fundo escuro */
  --ink-2: #10182B;          /* superfície escura */
  --ink-line: rgba(238, 241, 248, .10);
  --on-ink: #EEF1F8;         /* texto sobre escuro 17.1:1 */
  --on-ink-2: #9AA4BC;       /* secundário sobre escuro 7.7:1 */
  --paper: #F4F5F7;          /* fundo claro */
  --surface: #FFFFFF;
  --line: #E1E4EA;
  --text: #0E1525;           /* 16.7:1 */
  --text-2: #4B5568;         /* 6.9:1 */
  --accent: #2747D9;         /* ação sobre claro 6.4:1 */
  --accent-hover: #1E3BBF;
  --accent-ink: #8EA6FF;     /* ação sobre escuro 8.3:1 */
  --signal: #F2B544;         /* destaque raro sobre escuro 10.6:1 */
  --ok: #166534;

  /* tipo — cresce com a largura, mas nunca passa do que a altura comporta */
  --font-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --text-note: .8125rem;
  --text-small: clamp(.875rem, min(.84rem + .15vw, 2.2vh), .9375rem);
  --text-body: clamp(.9375rem, min(.9rem + .2vw, 2.4vh), 1.0625rem);
  --text-lead: clamp(1rem, min(.92rem + .35vw, 2.5vh), 1.25rem);
  --text-section: clamp(1.5rem, min(1.1rem + 2vw, 5.6vh), 3rem);
  --text-display: clamp(2rem, min(1.2rem + 3.4vw, 9vh), 4.75rem);

  /* espaço */
  --gutter: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left), env(safe-area-inset-right));
  --max: 1240px;
  --header-h: 76px;
  --screen-top: calc(var(--header-h) + clamp(12px, 4.5vh, 56px));
  --screen-bottom: clamp(16px, 5vh, 64px);
  --head-gap: clamp(18px, 4.5vh, 56px);
  --radius: 14px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (max-width: 639px) {
  :root { --header-h: 64px; }
}
/* celular deitado e telas muito baixas */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --header-h: 56px; --screen-top: calc(var(--header-h) + 10px); --screen-bottom: 12px; --head-gap: 14px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-ink); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--font-mono); font-size: var(--text-note); font-weight: 500; line-height: 1.3;
  letter-spacing: .04em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow::before { content: ""; flex: none; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.on-dark .eyebrow { color: var(--on-ink-2); }

/* ---------- barra de progresso ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: var(--accent-ink); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* ---------- cabeçalho (some ao descer, volta ao subir; cada tela já reserva o espaço dele) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: transform .35s var(--ease-out), background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-solid {
  background: rgba(8, 13, 26, .78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--ink-line);
}
.site-header.is-ink { background: var(--ink); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; color: var(--on-ink); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand-sub { margin-top: 5px; font-size: .625rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .7; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 10px 14px; border-radius: 999px;
  font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--on-ink-2);
  transition: color .16s, background-color .16s;
}
.nav-links a:hover { color: var(--on-ink); background: rgba(238, 241, 248, .06); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--ink); background: var(--accent-ink); margin-left: 8px; }
.nav-links a.btn-primary:hover { background: #A9BBFF; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--ink-line); border-radius: 12px;
  background: transparent; color: var(--on-ink); cursor: pointer; flex-direction: column; align-items: center; justify-content: center;
}
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease-out), opacity .2s; }
.menu-toggle span + span { margin-top: 5px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: clamp(44px, 6.4vh, 52px); padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .16s ease-out, color .16s, border-color .16s, transform .12s ease-out;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent-ink); color: var(--ink); }
.btn-primary:hover { background: #A9BBFF; }
.btn-ghost { color: var(--on-ink); border-color: rgba(238, 241, 248, .22); }
.btn-ghost:hover { border-color: rgba(238, 241, 248, .5); background: rgba(238, 241, 248, .04); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover svg { transform: translateX(3px); }
}
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }

/* ==========================================================================
   TELAS
   ========================================================================== */
.screen {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: var(--screen-top) 0 var(--screen-bottom);
  display: flex; flex-direction: column; justify-content: center;
}
.screen-inner { width: 100%; }
.on-dark { background: var(--ink); color: var(--on-ink); }

.section-head { display: grid; gap: clamp(10px, 2vh, 18px); margin-bottom: var(--head-gap); }
.section-head > div { display: grid; gap: clamp(10px, 2vh, 18px); justify-items: start; }
.section-head h2 { font-size: var(--text-section); }
.section-head p { font-size: var(--text-lead); color: var(--text-2); margin: 0; max-width: 54ch; }
.on-dark .section-head p { color: var(--on-ink-2); }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; column-gap: clamp(32px, 6vw, 96px); }
}

/* ---------- tela 1 · hero ---------- */
.hero { overflow: hidden; isolation: isolate; padding-bottom: clamp(40px, 9vh, 96px); }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(238, 241, 248, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(238, 241, 248, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 72% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 72% 45%, #000 20%, transparent 75%);
}
.hero-glow {
  position: absolute; z-index: -2; pointer-events: none; width: 70vmax; height: 70vmax;
  right: -25vmax; top: -20vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(39, 71, 217, .28), transparent 70%);
}
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 13, 26, .7) 0%, rgba(8, 13, 26, .3) 36%, transparent 56%);
}
.hero-fallback {
  position: absolute; z-index: -1; right: 8%; top: 50%; width: min(28vw, 50vh, 420px); transform: translateY(-50%);
}
.js-flow .hero-fallback { display: none; }

.hero-copy { max-width: 820px; }
.hero h1 {
  font-size: var(--text-display); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02;
  margin: clamp(12px, 2.4vh, 22px) 0 clamp(14px, 2.6vh, 24px);
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero-lead { font-size: var(--text-lead); color: var(--on-ink-2); max-width: min(560px, 52vw); margin: 0 0 clamp(18px, 4vh, 36px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* telas em pé: texto no alto, símbolo no espaço livre abaixo dos botões */
@media (orientation: portrait) {
  .hero { justify-content: flex-start; }
  .hero-lead { max-width: 560px; }
  .hero-scrim { display: none; }
  .hero-grid-bg {
    -webkit-mask-image: radial-gradient(ellipse 90% 45% at 50% 78%, #000 15%, transparent 75%);
            mask-image: radial-gradient(ellipse 90% 45% at 50% 78%, #000 15%, transparent 75%);
  }
  .hero-glow { right: auto; left: 50%; top: auto; bottom: -38vmax; transform: translateX(-50%); }
  .hero-fallback { right: 50%; top: auto; bottom: 9vh; transform: translateX(50%); width: min(44vw, 22vh, 240px); }
}
@media (max-width: 559px) {
  .hero-actions .btn { flex: 1 1 auto; padding: 0 20px; }
}
@media (max-width: 420px) {
  .hero .eyebrow { font-size: .75rem; letter-spacing: .02em; }
}
@media (max-width: 379px) {
  .hero .eyebrow .long { display: none; }
}

/* ---------- faixa (marquee) entre o hero e o Sobre ---------- */
.band { background: var(--ink); color: var(--on-ink-2); border-top: 1px solid var(--ink-line); overflow: hidden; position: relative; }
.band-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.band:hover .band-track, .band.is-paused .band-track { animation-play-state: paused; }
.band-group { display: flex; align-items: center; flex: none; }
.band-item { display: inline-flex; align-items: center; gap: 22px; padding: 22px 22px; white-space: nowrap; font-size: 1.0625rem; font-weight: 500; }
.band-item::after { content: ""; width: 7px; height: 7px; background: var(--accent-ink); border-radius: 2px; transform: rotate(45deg); opacity: .8; }
.band-toggle {
  position: absolute; right: max(12px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink-line); background: var(--ink);
  color: var(--on-ink-2); cursor: pointer; display: grid; place-items: center;
}
.band-toggle svg { width: 14px; height: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(16px, 3vh, 28px); transform: translateX(-50%); display: none;
  flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .75rem; color: var(--on-ink-2); letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; transition: color .16s;
}
.scroll-cue:hover { color: var(--on-ink); }
.scroll-cue::after {
  content: ""; display: block; width: 1px; height: 28px;
  background: linear-gradient(var(--on-ink-2), transparent);
  transform-origin: 50% 0; animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@media (min-width: 1100px) and (min-height: 760px) { .scroll-cue { display: flex; } }

/* ---------- tela 2 · sobre ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.about-text .section-head { margin-bottom: 0; }
.about-lead {
  margin: clamp(14px, 3vh, 28px) 0 0; max-width: 34em;
  font-size: clamp(1.0625rem, min(.98rem + .55vw, 2.9vh), 1.5rem); line-height: 1.45; font-weight: 500; letter-spacing: -0.012em;
}
.about-more { margin: clamp(10px, 2vh, 18px) 0 0; max-width: 40em; font-size: var(--text-body); color: var(--text-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.fact { padding: clamp(12px, 2.6vh, 26px) 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fact:nth-child(odd) { padding-right: clamp(12px, 2vw, 20px); border-right: 1px solid var(--line); }
.fact:nth-child(even) { padding-left: clamp(12px, 2vw, 24px); }
.fact-value { font-size: clamp(1.25rem, min(1rem + 1.1vw, 4.2vh), 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.fact-label { margin-top: 6px; font-size: .8125rem; color: var(--text-2); line-height: 1.4; }
.ok-dot { display: inline-block; width: .38em; height: .38em; border-radius: 50%; background: #22A35A; margin-right: .35em; vertical-align: middle; box-shadow: 0 0 0 .2em rgba(34, 163, 90, .14); }

@media (max-width: 899px) {
  .about-grid { grid-template-columns: 1fr; gap: clamp(16px, 3.5vh, 32px); align-items: start; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact:nth-child(n) { padding: clamp(12px, 2.4vh, 20px) clamp(10px, 1.6vw, 16px); border-right: 1px solid var(--line); }
  .fact:first-child { padding-left: 0; }
  .fact:last-child { border-right: 0; }
}

/* ---------- tela 3 · serviços ---------- */
.services { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.service {
  position: relative; display: flex; flex-direction: column; gap: clamp(8px, 1.5vh, 14px);
  padding: clamp(16px, 3vh, 32px) clamp(18px, 2vw, 30px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; isolation: isolate; min-width: 0;
  transition: border-color .2s;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(39, 71, 217, .08), transparent 60%);
}
@media (hover: hover) and (pointer: fine) {
  .service:hover { border-color: #C9D1F5; }
  .service:hover::before { opacity: 1; }
}
.service-icon { width: clamp(38px, 5.6vh, 52px); height: clamp(38px, 5.6vh, 52px); border-radius: 12px; background: #EDF0FC; color: var(--accent); display: grid; place-items: center; flex: none; }
.service-icon svg { width: 52%; height: 52%; }
.service h3 { font-size: clamp(1.125rem, min(1rem + .5vw, 3.2vh), 1.5rem); margin-top: clamp(0px, .8vh, 8px); }
.service p { color: var(--text-2); margin: 0; font-size: var(--text-body); line-height: 1.55; }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; gap: clamp(4px, .8vh, 8px); font-size: var(--text-small); line-height: 1.45; }
.service li { display: flex; gap: 10px; align-items: baseline; }
.service li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); transform: translateY(-2px) rotate(45deg); }
.service-code { margin-top: auto; padding-top: clamp(10px, 1.8vh, 18px); border-top: 1px dashed var(--line); font-size: .75rem; color: var(--text-2); }

.carousel-dots { display: none; justify-content: center; gap: 4px; margin-top: clamp(8px, 1.6vh, 14px); }
.carousel-dots button { width: 32px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.carousel-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: #C5CBD8; transition: width .25s var(--ease-out), background-color .25s; }
.carousel-dots button[aria-current="true"]::before { width: 22px; background: var(--accent); }

/* celular (e telas muito baixas): os três cartões viram um carrossel de arrastar */
@media (max-width: 699px), (max-height: 520px) {
  .services {
    display: flex; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .services::-webkit-scrollbar { display: none; }
  .service { flex: 0 0 min(86%, 520px); scroll-snap-align: start; }
  .carousel-dots { display: flex; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .service { flex-basis: min(78%, 580px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; row-gap: 6px; }
  .service > .service-icon, .service > h3, .service > p { grid-column: 1; }
  .service > ul { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .service > .service-code { grid-column: 1 / -1; }
}

/* ---------- tela 4 · como trabalhamos — a linha desce e as etapas acendem com a rolagem ---------- */
.process { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 7vw, 120px); align-items: center; }
.process-aside .section-head { margin-bottom: clamp(16px, 3.5vh, 40px); }
.process-meter { display: flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: .875rem; color: var(--on-ink-2); }
.process-meter .bar { position: relative; flex: 1; max-width: 220px; height: 2px; background: var(--ink-line); border-radius: 2px; overflow: hidden; }
.process-meter .bar i { position: absolute; inset: 0; background: var(--accent-ink); transform-origin: 0 50%; transform: scaleX(1); transition: transform .4s var(--ease-out); }
.process-meter b { color: var(--on-ink); font-weight: 500; }

.steps-list {
  --node: clamp(40px, 6.4vh, 56px);
  --steps-gap: clamp(14px, 3.2vh, 32px);
  list-style: none; margin: 0; padding: 0; display: grid; gap: var(--steps-gap);
}
.step { position: relative; display: grid; grid-template-columns: var(--node) minmax(0, 1fr); column-gap: clamp(16px, 2.2vw, 28px); align-items: start; }
.step-num {
  position: relative; z-index: 1; width: var(--node); height: var(--node); border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-ink); color: var(--ink); border: 1px solid var(--accent-ink);
  font-family: var(--font-mono); font-size: .875rem;
  transition: background-color .3s, color .3s, border-color .3s;
}
.motion-ok .step:not(.is-active) .step-num { background: var(--ink-2); color: var(--on-ink-2); border-color: var(--ink-line); }
/* trilho do centro de um número ao centro do seguinte */
.step-link { position: absolute; left: calc(var(--node) / 2); top: calc(var(--node) / 2); width: 1px; height: calc(100% + var(--steps-gap)); background: var(--ink-line); }
.step-link i { position: absolute; inset: 0; background: var(--accent-ink); transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }
.motion-ok .step-link i { --p: 0; }
.step-body { min-width: 0; padding-top: clamp(4px, 1vh, 10px); }
.step h3 { font-size: clamp(1.125rem, min(1rem + .9vw, 3.4vh), 1.75rem); margin: 0 0 clamp(4px, .9vh, 10px); }
.step p { color: var(--on-ink-2); font-size: var(--text-body); max-width: 480px; margin: 0; }
.step-tag { display: inline-block; margin-top: clamp(6px, 1.2vh, 12px); font-family: var(--font-mono); font-size: .75rem; color: var(--on-ink-2); border: 1px solid var(--ink-line); padding: 5px 10px; border-radius: 999px; }

@media (max-width: 899px) {
  .process { grid-template-columns: 1fr; gap: clamp(18px, 3.5vh, 32px); align-items: start; }
}
@media (max-width: 699px) {
  .steps-list { --node: clamp(36px, 5.6vh, 44px); --steps-gap: clamp(12px, 2.4vh, 22px); }
  .step-tag { display: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .process { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; }
  .step-tag { display: none; }
}
/* celulares muito baixos (iPhone SE): sem o contador, texto das etapas um pouco menor */
@media (max-width: 639px) and (max-height: 600px) {
  .process-meter { display: none; }
  .process-aside .section-head { margin-bottom: 0; }
  .step p { font-size: .875rem; line-height: 1.45; }
}

/* ---------- tela 5 · contato ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.contact h2 { font-size: clamp(1.875rem, min(1.3rem + 3vw, 7.6vh), 4.25rem); letter-spacing: -0.04em; margin-top: clamp(10px, 2vh, 20px); }
.contact h2 em { font-style: normal; color: var(--accent-ink); }
.contact-lead { color: var(--on-ink-2); font-size: var(--text-lead); max-width: 30em; margin: clamp(12px, 2.6vh, 24px) 0 0; }
.contact-cta { margin-top: clamp(18px, 4vh, 36px); }
.contact-cards { display: grid; gap: clamp(8px, 1.4vh, 12px); }
.contact-card {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: clamp(12px, 2.4vh, 20px) clamp(14px, 2vw, 22px); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--ink-line);
  text-decoration: none; color: var(--on-ink); transition: border-color .2s, background-color .2s;
}
a.contact-card:hover { border-color: rgba(142, 166, 255, .45); background: #131D35; }
.contact-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(142, 166, 255, .12); color: var(--accent-ink); }
.contact-card .ic svg { width: 21px; height: 21px; }
.contact-card small { display: block; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-ink-2); margin-bottom: 3px; }
.contact-card > span:nth-child(2) { font-weight: 600; line-height: 1.35; font-size: var(--text-body); min-width: 0; overflow-wrap: anywhere; }
.contact-card .arrow { width: 18px; height: 18px; color: var(--on-ink-2); transition: transform .25s var(--ease-out), color .2s; }
a.contact-card:hover .arrow { transform: translate(2px, -2px); color: var(--accent-ink); }

@media (max-width: 699px) {
  .contact-grid { grid-template-columns: 1fr; gap: clamp(18px, 3.5vh, 32px); }
  .contact-cta { display: none; } /* no celular o próprio cartão do telefone liga */
}

/* ---------- rodapé ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-2); border-top: 1px solid var(--ink-line); padding: 64px 0 calc(40px + env(safe-area-inset-bottom)); font-size: .9375rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--ink-line); }
.footer-top .brand { color: var(--on-ink); margin-bottom: 20px; }
.footer-legal-name { color: var(--on-ink); font-weight: 600; margin-bottom: 4px; }
.footer-col h4 { margin: 0 0 14px; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--on-ink-2); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; color: var(--on-ink); opacity: .85; overflow-wrap: anywhere; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: .8125rem; }
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- páginas legais ---------- */
.legal-page { background: var(--paper); }
.legal-hero { background: var(--ink); color: var(--on-ink); padding: 150px 0 64px; }
.legal-hero h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); margin-top: 18px; }
.legal-hero p { color: var(--on-ink-2); margin: 16px 0 0; }
.legal-body { padding-block: 72px 110px; }
.legal-body article { max-width: 72ch; }
.legal-body h2 { font-size: 1.5rem; margin: 48px 0 14px; }
.legal-body p, .legal-body li { color: var(--text-2); }
.legal-body strong { color: var(--text); }
.legal-body a { color: var(--accent); }

/* ==========================================================================
   CELULARES BAIXOS (SE, 8, Androids compactos) e celular deitado:
   textos complementares saem para a tela caber sem rolar
   ========================================================================== */
@media (max-width: 639px) and (max-height: 700px), (max-height: 520px) and (orientation: landscape) {
  .hide-short { display: none !important; }
  .hero-lead { line-height: 1.5; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .nav-links { max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
}

/* ---------- reveal (só com JS + motion permitido) ---------- */
.motion-ok [data-reveal],
.motion-ok .hero [data-hero] { opacity: 0; }
.motion-ok .hero h1 .line > span { transform: translateY(110%); }

/* ---------- navegação em telas estreitas ---------- */
@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: rgba(8, 13, 26, .97); border-bottom: 1px solid var(--ink-line);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s;
  }
  .nav-links.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .25s var(--ease-out), visibility 0s; }
  .nav-links a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--ink-line); font-size: 1.0625rem; color: var(--on-ink); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .btn { margin-top: 14px; margin-left: 0; width: 100%; border-bottom: 0; color: var(--ink); }
  .site-header.menu-open { background: rgba(8, 13, 26, .97); }
}
@media (max-width: 639px) {
  .brand svg { width: 32px; height: 32px; }
  .brand-name { font-size: 1.125rem; }
  .brand-sub { font-size: .5625rem; letter-spacing: .16em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .band-track { animation: none; }
  .band-toggle { display: none; }
  .btn:active { transform: none; }
  .scroll-cue::after { animation: none; }
}
