﻿:root {
  --bg: #000000;
  --bg-2: #000000;
  --ink: #f4f1ec;
  --ink-dim: rgba(244, 241, 236, 0.72);
  --ink-faint: rgba(244, 241, 236, 0.45);
  --accent: #f2a65a;
  --accent-2: #e2703a;
  --accent-cool: #8fd8ff;
  --radius: 18px;

  /* Shared atmosphere — one gradient recipe carried across Hero → Jornada */
  --atmo-warm: 226, 112, 58;
  --atmo-amber: 242, 166, 90;
  --atmo-cool: 143, 216, 255;

  /* Type system — role-based scale, all fluid via clamp() */
  --fs-h2: clamp(1.85rem, 1.3rem + 2.2vw, 2.75rem); /* section titles */
  --fs-h3: clamp(1.3rem, 1.05rem + 1vw, 1.7rem);    /* timeline / component titles */
  --fs-subtitle: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); /* hero-lead, lede */
  --fs-body-lg: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --lh-tight: 1.08;
  --lh-snug: 1.3;
  --lh-body: 1.6;

  --tracking-tight: -0.03em;
  --tracking-caption: 0.08em;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Sora", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow-x: hidden;
}

/* Single grain layer over the whole page — ties Hero and Jornada into one surface */
/* On hold with the rest of the atmosphere — re-enable by removing this display:none */
body::before {
  display: none;
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

a {
  text-decoration: none;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  z-index: 100;
  transition: width 0.12s linear;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 26px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  padding: 14px 6vw;
  background: rgba(10, 11, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  font-size: 17px;
  font-weight: 600;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 26px);
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
}

.navlink {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: rgba(244, 241, 236, 0.75);
  transition: color 0.15s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.navlink:hover,
.navlink:focus-visible {
  color: var(--ink);
}

.navlink:hover::after,
.navlink:focus-visible::after {
  width: 100%;
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 16px 30px;
  min-height: 44px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #221306;
  box-shadow: 0 12px 28px rgba(242, 166, 90, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #f7b978;
}

.btn-text {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

#hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  /* section{} já aplica padding:72px 6vw — sobrescrevemos só o
     vertical; o horizontal fica intacto para alinhar com o título
     da 2ª seção no mesmo eixo. */
  padding: 64px 6vw 0;
  /* Sem fundo próprio: deixa a grade (.bg-grid, fixa atrás de tudo)
     aparecer. Atmosphere em standby — restaurar quando decidido:
  background:
    radial-gradient(760px 520px at 78% 58%, rgba(var(--atmo-amber), 0.32), rgba(var(--atmo-amber), 0) 70%),
    radial-gradient(1000px 700px at 68% 104%, rgba(var(--atmo-warm), 0.26), rgba(var(--atmo-warm), 0) 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
  */
  background: transparent;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

#hero-sky {
  position: absolute;
  inset: -10% -5% -5% -5%;
  background: none;
  /* Atmosphere on hold — restore alongside #hero:
  background:
    radial-gradient(760px 520px at 78% 58%, rgba(var(--atmo-amber), 0.36), rgba(var(--atmo-amber), 0) 70%),
    radial-gradient(1000px 700px at 68% 104%, rgba(var(--atmo-warm), 0.28), rgba(var(--atmo-warm), 0) 65%);
  */
}

#hero-vignette {
  position: absolute;
  inset: 0;
  background: none;
}

.spark {
  display: none;
  position: absolute;
  border-radius: 50%;
  background: var(--accent-cool);
  pointer-events: none;
}

#hero-content.hero-grid {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 48px;
  /* Só vertical — o horizontal já vem do #hero, uma vez só. */
  padding: 52px 0 60px;
}

.hero-copy {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* O antigo H1 ("Elias Oliveira") virou identidade secundária
   (.hero-identity); a proposta de valor assume o papel de headline
   principal — o visitante entende o que é entregue antes de quem entrega. */
.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.1rem, 1.55rem + 2.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-copy .hero-lead {
  margin: 0;
  max-width: 480px;
  font-size: var(--fs-subtitle);
  line-height: var(--lh-body);
  color: var(--ink-dim);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hero-identity {
  justify-self: end;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-identity__name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-identity__role {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

@media (max-width: 900px) {
  #hero-content.hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0 40px;
  }

  .hero-identity {
    justify-self: start;
    text-align: left;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 14px;
    padding-right: 0;
  }
}

main {
  position: relative;
}

section {
  position: relative;
  padding: 72px 6vw;
}

/* ---------- Hero → Jornada seam ----------
   One continuous atmosphere instead of two independent blocks:
   #hero fades toward --bg across its own lower third, #diagnostico
   picks the same hue up again at 0% so no hard edge ever forms,
   and .seam-flow is the single diagonal thread that visibly carries
   the eye from the hero glow down into the horizontal path line. */

#diagnostico {
  position: relative;
  overflow: hidden;
  margin-top: -60px;
  padding-top: 108px;
  background: transparent;
  /* Atmosphere on hold — restore alongside #hero:
  background:
    radial-gradient(1100px 620px at 82% 0%, rgba(var(--atmo-amber), 0.1), rgba(var(--atmo-amber), 0) 62%),
    linear-gradient(180deg,
      rgba(11, 12, 18, 0) 0%,
      var(--bg) 38%,
      var(--bg) 100%);
  */
}

@media (max-width: 700px) {
  #diagnostico {
    margin-top: -24px;
    padding-top: 56px;
  }
}

.seam-flow {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100vh - 260px);
  height: 520px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.seam-flow::before {
  content: "";
  position: absolute;
  width: 160%;
  height: 240px;
  left: 58%;
  top: 50%;
  background: linear-gradient(90deg,
    rgba(var(--atmo-warm), 0) 0%,
    rgba(var(--atmo-warm), 0.22) 42%,
    rgba(var(--atmo-amber), 0.16) 58%,
    rgba(var(--atmo-cool), 0.08) 78%,
    rgba(var(--atmo-cool), 0) 100%);
  transform: translate(-50%, -50%) rotate(-11deg);
  filter: blur(70px);
}

/* ---------- Background: grade discreta + seções intercaladas ----------
   Base fixa atrás de tudo (grade quase invisível, 6% de opacidade).
   Hero / Diferencial / Processo deixam o próprio fundo transparente
   e mostram a grade; Jornada / Serviços / CTA final preenchem por
   cima com um ::before mascarado, que dissolve gradualmente nas
   bordas (não corta seco) — revela a grade de novo na seção vizinha. */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-color: #000;
  background-image:
    linear-gradient(to right, rgba(244, 241, 236, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 241, 236, 0.06) 1px, transparent 1px);
  background-size: 6rem 4rem;
}

#hero,
#diferencial,
#calculadora,
#processo {
  background: transparent;
}

#diagnostico,
#servicos,
#cta-final {
  background: transparent;
}

#diagnostico::before,
#servicos::before,
#cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #000;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 110px, #000 calc(100% - 110px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 110px, #000 calc(100% - 110px), transparent 100%);
}

@media (max-width: 700px) {
  #diagnostico::before,
  #servicos::before,
  #cta-final::before {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
  }
}

.jornada-intro {
  position: relative;
  z-index: 2;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(64px, 9vw, 108px);
}

.jornada-intro h2 {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

.jornada-intro p {
  margin: 0;
  max-width: 520px;
  font-size: var(--fs-subtitle);
  line-height: var(--lh-snug);
  color: var(--ink-dim);
}

/* ---------- Path — the preserved connector, horizontal on desktop ---------- */

.path {
  position: relative;
  z-index: 2;
}

.path-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(var(--atmo-warm), 0.55) 0%,
    rgba(var(--atmo-amber), 0.4) 25%,
    rgba(244, 241, 236, 0.16) 50%,
    rgba(var(--atmo-cool), 0.35) 75%,
    rgba(var(--atmo-cool), 0.55) 100%);
  opacity: 0.55;
}

.path-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 40px);
}

.step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step-index {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--bg);
  background: var(--step-color, var(--accent));
  width: 23px;
  height: 23px;
  border-radius: 50%;
  /* Sem isto, um flex item pode encolher a largura sem encolher a
     altura (vira oval) quando o container aperta — era exatamente
     o bug no mobile. */
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  box-shadow: 0 0 0 6px var(--bg);
}

.step-tick {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--step-color, var(--accent));
  opacity: 0.7;
  margin: 22px 0 14px;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 230px;
}

.step h3 {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}

.step p {
  margin: 0;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--ink-dim);
}

/* zig-zag rhythm — content drops on even steps, anchors stay on the line */
.step:nth-child(even) .step-tick {
  margin-top: 52px;
}

.step--01 { --step-color: #e2703a; }
.step--02 { --step-color: #f2a65a; }
.step--03 { --step-color: #f4f1ec; }
.step--04 { --step-color: #bfe3fb; }
.step--05 { --step-color: #8fd8ff; }

.section-head {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

.section-head p {
  margin: 0;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--ink-dim);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

/* ---------- Calculadora (#calculadora) ----------
   Sliders que recalculam o resultado em tempo real — mesma lógica
   em js/script.js. O thumb usa uma sombra com offset real (não um
   glow de cor sem deslocamento), pra não cair no visual "AI slop"
   que o detector de design já pegou numa rodada anterior. */

.calc-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.calc-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 8px;
}

.calc-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin-bottom: 10px;
}

.calc-field .calc-field-value {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.calc-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  --fill: 0%;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--fill), rgba(255, 255, 255, 0.12) var(--fill), rgba(255, 255, 255, 0.12) 100%);
}

.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  margin-top: 0;
}

.calc-field input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.calc-field input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.calc-field input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.calc-field-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 6px;
}

.calc-result {
  margin-top: 24px;
  border-radius: calc(var(--radius) - 4px);
  padding: 24px;
  background: rgba(242, 166, 90, 0.07);
  border: 1px solid rgba(242, 166, 90, 0.28);
  text-align: center;
}

.calc-result .calc-result-label {
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin-bottom: 6px;
}

.calc-result .calc-result-value {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.calc-result .calc-result-note {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.calc-cta {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

/* ---------- Cards: sem flip — título e resumo sempre visíveis ----------
   A versão anterior escondia a descrição atrás de um hover/clique.
   Agora tudo é mostrado de uma vez: ícone (quando existe), título e
   um resumo curto, na mesma posição em qualquer card da página.

   O título escuro era um bug real, não só de contraste: o elemento
   antigo era um <button>, e botões não herdam `color` do body por
   padrão no navegador (diferente de link, que já é tratado com
   `a{color:inherit}`). Aqui o título nasce com `color:var(--ink)`
   explícito. */

.service-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Espaço de ícone reservado (26px) mesmo quando o card não tem um —
   garante que o título caia sempre na mesma posição em qualquer
   card da página, não só dentro da própria seção. */
.card-icon {
  display: block;
  height: 26px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.service-card .title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}

.service-card .card-summary {
  margin: 0;
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--ink-dim);
  text-align: left;
}

.service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}

.pill-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.pill-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(244, 241, 236, 0.75);
}

.pill-row .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.service-foot__note {
  font-size: 14px;
  color: var(--ink-faint);
}

#cta-final {
  text-align: center;
  padding-top: 90px;
  padding-bottom: 90px;
}

#cta-final h2 {
  margin: 0 auto 16px;
  font-size: var(--fs-h2);
  font-weight: 700;
  max-width: 680px;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

#cta-final p {
  margin: 0 auto 36px;
  max-width: 540px;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--ink-dim);
}

/* `position:fixed` não sabia onde a página terminava e sobrepunha o
   footer. Trocado por `position:sticky` dentro de <main>: o dock
   (altura 0) gruda a 24px do fundo da viewport enquanto rola dentro
   de <main>, e para de acompanhar exatamente onde <main> termina —
   nunca mais sobre o footer. O botão fica absoluto dentro do dock. */
.whatsapp-dock {
  position: sticky;
  bottom: 24px;
  height: 0;
  pointer-events: none;
}

.whatsapp-dock .whatsapp-float {
  position: absolute;
  right: 24px;
  bottom: 0;
  pointer-events: auto;
}

.whatsapp-float {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 16px 28px rgba(37, 211, 102, 0.32);
  z-index: 80;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 32px rgba(37, 211, 102, 0.42);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* ---------- Legal pages (privacidade.html, termos.html) + 404 ---------- */

.legal-page {
  padding-top: 120px;
}

.page-title {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

.legal {
  max-width: 720px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.legal-meta {
  font-size: var(--fs-small);
  color: var(--ink-faint);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}

.legal-section p {
  margin: 0;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--ink-dim);
}

.legal-section p + p {
  margin-top: 12px;
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding-top: 96px;
}

.not-found p {
  margin: 0;
  max-width: 480px;
  font-size: var(--fs-subtitle);
  line-height: var(--lh-body);
  color: var(--ink-dim);
}

footer {
  padding: 56px 6vw 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: var(--ink-dim);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-brand__tagline {
  margin: 4px 0 0;
  max-width: 320px;
  font-size: 13px;
  line-height: var(--lh-body);
  color: var(--ink-faint);
}

.footer-groups {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-group__label {
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer-group a {
  position: relative;
  width: max-content;
  color: var(--ink-dim);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.footer-group a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--ink);
}

.footer-group a:hover::after,
.footer-group a:focus-visible::after {
  width: 100%;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--ink-faint);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(242, 166, 90, 0.25);
}

/* ---------- Timeline no mobile: vira vertical, com respiro real ----------
   Breakpoint próprio (860px, mais cedo que o resto do mobile) porque
   a jornada some de espaço antes de qualquer outra coisa na página.
   Grid em vez de flex: uma coluna com 23px fixos pro círculo nunca
   aperta — era isso que deformava os marcadores antes. */
@media (max-width: 860px) {
  .path-line {
    left: 11px;
    top: 0;
    bottom: 0;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg,
      rgba(var(--atmo-warm), 0.55) 0%,
      rgba(var(--atmo-amber), 0.4) 22%,
      rgba(244, 241, 236, 0.16) 50%,
      rgba(var(--atmo-cool), 0.35) 78%,
      rgba(var(--atmo-cool), 0.55) 100%);
  }

  .path-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .step {
    display: grid;
    grid-template-columns: 23px 1fr;
    column-gap: 18px;
    row-gap: 0;
    align-items: start;
    padding-bottom: clamp(32px, 8vw, 44px);
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step-index {
    grid-column: 1;
    grid-row: 1;
  }

  .step-tick {
    display: none;
  }

  .step-body {
    grid-column: 2;
    grid-row: 1;
    gap: 10px;
    max-width: none;
    padding-top: 1px;
  }
}

@media (max-width: 700px) {
  header {
    padding: 18px 5vw;
  }

  section {
    padding: 58px 5vw;
  }

  .seam-flow {
    top: calc(100vh - 160px);
    height: 340px;
  }

  .seam-flow::before {
    width: 220%;
    height: 200px;
    transform: translate(-50%, -50%) rotate(-6deg);
  }

  .jornada-intro {
    margin-bottom: 52px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .service-foot {
    align-items: flex-start;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
  }

  .whatsapp-dock {
    bottom: 18px;
  }

  .whatsapp-dock .whatsapp-float {
    right: 18px;
  }

  /* ---------- Menu responsivo ----------
     Os 5 itens do nav só encolhiam de fonte antes — apertado.
     Agora vira um hambúrguer que abre um painel full-width abaixo
     do header, com os mesmos links (alvo de toque de 44px mantido). */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    padding: 0;
    z-index: 95;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  nav#site-nav {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding-top: 76px;
    background: rgba(0, 0, 0, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    /* transform + opacity, não height: animar height força reflow a
       cada frame; transform roda só no compositor. */
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s linear 0.25s;
    z-index: 92;
  }

  nav#site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  nav#site-nav .navlink {
    width: 100%;
    justify-content: flex-start;
    padding: 16px 6vw;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  nav#site-nav .navlink::after {
    display: none;
  }

  nav#site-nav .nav-cta {
    width: auto;
    justify-content: center;
    margin: 20px 6vw 0;
    padding: 14px 18px;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 40px 5vw 24px;
    gap: 24px;
  }

  .footer-groups {
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
