/* =========================================================
   Thaís Araújo Consórcios — identidade arquitetônica
   Paleta fosca e natural: oliva, musgo, cimento, greige,
   areia, off-white, taupe e marrom acinzentado.
   ========================================================= */
:root {
  --olive-900: #2b302a;
  --olive-800: #353b32;
  --olive-700: #454c3f;
  --olive-600: #5a6350;
  --moss: #6e7a63;
  --sage: #8d9683;
  --cement: #9b9a93;
  --greige: #cdc7bb;
  --sand: #ddd6c8;
  --sand-soft: #e9e4d9;
  --paper: #f4f1ea;
  --offwhite: #faf8f3;
  --taupe: #a3968a;
  --brown: #6f665c;
  --clay: #b4785f; /* argila: só para avisos de formulário */
  --ink: #33352f;
  --ink-soft: #53554c;
  --muted: #7d7d74;
  --line: rgba(51, 53, 47, 0.16);
  --line-soft: rgba(51, 53, 47, 0.09);
  --line-light: rgba(244, 241, 234, 0.2);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", system-ui, -apple-system, sans-serif;
  /* textura de papel/concreto */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  /* fibras maiores do papel de algodão */
  --fibra: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.16' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='340' height='340' filter='url(%23f)' opacity='0.35'/%3E%3C/svg%3E");
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--sand); color: var(--ink); }

.shell { width: min(1240px, 100% - 56px); margin-inline: auto; }

.label {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brown);
}
.label--light { color: var(--sand); }
.fine { font-size: 12px; font-weight: 400; line-height: 1.7; color: var(--muted); letter-spacing: 0.02em; }

/* ---- símbolo da marca (logo em brand/) ---- */
.mark { width: 40px; height: 38px; display: block; object-fit: contain; }
/* no topo, a versão escura troca pela clara quando a barra fica sólida */
.mark--pair { position: relative; }
.mark__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.5s ease; }
.mark__img--light { opacity: 0; }
.topbar.is-solid .mark__img--dark { opacity: 0; }
.topbar.is-solid .mark__img--light { opacity: 1; }

.lockup { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.lockup__text { display: flex; flex-direction: column; gap: 5px; }
.lockup__name { font: 400 16px/1 var(--font-display); letter-spacing: 0.26em; text-transform: uppercase; color: var(--offwhite); }
.lockup__sub { font: 400 8px/1 var(--font-body); letter-spacing: 0.52em; text-transform: uppercase; color: var(--sage); }

/* ---- botões ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 34px;
  border: 1px solid transparent;
  border-radius: 0;
  font: 400 10.5px/1 var(--font-body);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}
.btn--solid { background: var(--olive-700); color: var(--offwhite); }
.btn--solid:hover { background: var(--olive-900); }
.btn--line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--olive-700); background: rgba(69, 76, 63, 0.06); }
.btn--ghost { border-color: rgba(244, 241, 234, 0.4); color: var(--offwhite); background: transparent; }
.btn--ghost:hover { background: rgba(244, 241, 234, 0.1); border-color: var(--offwhite); }
.btn--sm { padding: 12px 22px; font-size: 9.5px; letter-spacing: 0.24em; }
.btn--lg { padding: 21px 46px; font-size: 11.5px; }
.btn--block { width: 100%; }
.topbar .btn--line { border-color: rgba(244, 241, 234, 0.35); color: var(--offwhite); }
.topbar .btn--line:hover { background: rgba(244, 241, 234, 0.12); border-color: var(--offwhite); }

/* ============ TOPO ============ */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 22px 0;
  transition: background 0.5s ease, padding 0.5s ease, box-shadow 0.5s ease;
}
.topbar.is-solid { background: rgba(43, 48, 42, 0.94); backdrop-filter: blur(16px); padding: 14px 0; box-shadow: 0 1px 0 var(--line-light); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav { display: flex; gap: 36px; }
.nav a {
  position: relative;
  color: rgba(244, 241, 234, 0.72);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.4s;
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--sage); transition: width 0.4s ease; }
.nav a:hover { color: var(--offwhite); }
.nav a:hover::after { width: 100%; }

/* Sobre a primeira tela (clara) o topo precisa de texto escuro */
.topbar:not(.is-solid) .lockup__name { color: var(--ink); }
.topbar:not(.is-solid) .lockup__sub { color: var(--brown); }
.topbar:not(.is-solid) .nav a { color: var(--ink-soft); }
.topbar:not(.is-solid) .btn--line { border-color: var(--line); color: var(--ink); }
.topbar:not(.is-solid) .btn--line:hover { border-color: var(--olive-700); background: rgba(69, 76, 63, 0.06); }

/* ============ PRIMEIRA TELA ============ */
.opening {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 78% 12%, rgba(221, 214, 200, 0.85) 0%, transparent 60%),
    radial-gradient(90% 70% at 10% 90%, rgba(141, 150, 131, 0.22) 0%, transparent 62%),
    linear-gradient(160deg, var(--offwhite) 0%, var(--paper) 45%, var(--sand-soft) 100%);
}
.opening::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.32;
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* grade arquitetônica — desliza devagar, uma coluna por ciclo */
.opening__grid {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 125%;
  background-image: linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: 0.9;
  animation: deriva-grade 54s linear infinite;
  will-change: transform;
}
@keyframes deriva-grade {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}
.opening__grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 16%;
  border-top: 1px solid var(--line-soft);
  animation: deriva-horizonte 26s ease-in-out infinite alternate;
}
@keyframes deriva-horizonte {
  from { transform: translateY(0); }
  to { transform: translateY(46px); }
}

/* a curva do caminho corre devagar ao longo do próprio traçado */
.opening__curve { position: absolute; right: -4%; top: -10%; width: 62%; height: 130%; fill: none; stroke: var(--taupe); stroke-width: 1; opacity: 0.4; }
.opening__curve path {
  stroke-dasharray: 300 170;
  animation: correr-curva 30s linear infinite;
}
@keyframes correr-curva {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -470; }
}
.opening__ghost { position: absolute; right: -6%; bottom: -12%; width: 44vw; max-width: 560px; height: auto; opacity: 0.1; }

.opening__inner { position: relative; padding: 150px 0 120px; }

.phrase {
  max-width: none;
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.phrase em { display: block; margin-top: 10px; font-style: italic; font-weight: 500; color: var(--olive-700); }
.opening__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 52px; }

.opening__scroll {
  position: absolute;
  left: max(28px, calc((100vw - 1240px) / 2));
  bottom: 42px;
  padding-left: 54px;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brown);
}
.opening__scroll::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--taupe);
  transform-origin: left;
  animation: line 2.6s ease-in-out infinite;
}
@keyframes line { 0%, 100% { transform: scaleX(0.4); opacity: 0.5; } 50% { transform: scaleX(1); opacity: 1; } }

/* ============ JORNADA (vídeo + contador) ============ */
.journey { position: relative; height: 480svh; background: var(--olive-900); }
.journey__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.journey__canvas { position: absolute; inset: 0; width: 100%; height: 100%; filter: saturate(0.62) contrast(0.95) sepia(0.12); }
.journey__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(37, 41, 35, 0.86) 0%, rgba(37, 41, 35, 0.5) 42%, rgba(37, 41, 35, 0.12) 72%),
    linear-gradient(0deg, rgba(37, 41, 35, 0.6) 0%, transparent 34%),
    linear-gradient(180deg, rgba(37, 41, 35, 0.5) 0%, transparent 22%);
}

.beat {
  position: absolute;
  left: max(28px, calc((100vw - 1240px) / 2));
  top: 50%;
  width: min(560px, 100% - 56px);
  color: var(--offwhite);
  opacity: 0;
  transform: translateY(-50%);
  pointer-events: none;
  will-change: opacity, transform;
}
.beat__step {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(221, 214, 200, 0.4);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sand);
}
.beat h2 {
  margin: 26px 0 20px;
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1.12;
}
.beat p { max-width: 430px; font-size: 16px; font-weight: 400; color: rgba(244, 241, 234, 0.88); }
.beat__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---- contador de metros ---- */
.odo {
  --p: 0;
  position: absolute;
  right: max(28px, calc((100vw - 1240px) / 2));
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  padding: 30px 26px 32px;
  color: var(--offwhite);
  background: rgba(43, 48, 42, 0.42);
  border: 1px solid rgba(221, 214, 200, 0.24);
  backdrop-filter: blur(14px);
  transition: border-color 0.7s ease, background 0.7s ease;
}
.odo__label, .odo__sub { display: block; font-size: 9px; font-weight: 400; letter-spacing: 0.36em; text-transform: uppercase; color: var(--sand); }
.odo__sub { color: rgba(244, 241, 234, 0.5); }
.odo__value { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 6px; font-family: var(--font-body); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.odo__value span { font-size: 46px; line-height: 0.95; }
.odo__value small { font-size: 15px; font-weight: 400; letter-spacing: 0.12em; color: var(--sand); }

.odo__track { position: relative; height: min(36svh, 280px); margin-top: 28px; padding-left: 28px; }
.odo__rail { position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: rgba(244, 241, 234, 0.22); }
.odo__fill { position: absolute; left: 0; width: 1px; bottom: 0; height: calc(var(--p) * 100%); background: var(--sand); }
.odo__car {
  position: absolute;
  left: 6px;
  bottom: calc(var(--p) * 100%);
  width: 7px;
  height: 7px;
  margin: 0 0 -3.5px -3px;
  border-radius: 50%;
  background: var(--offwhite);
  box-shadow: 0 0 0 5px rgba(221, 214, 200, 0.16);
}
.odo__stops { position: absolute; inset: 0 0 0 28px; margin: 0; padding: 0; list-style: none; }
.odo__stops li {
  position: absolute;
  left: 0;
  transform: translateY(50%);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(244, 241, 234, 0.42);
  transition: color 0.5s ease;
}
.odo__stops li b {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.3);
  transition: color 0.5s ease;
}
.odo__stops li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 234, 0.4);
  transition: background 0.5s ease, border-color 0.5s ease;
}
.odo__stops li.is-passed { color: var(--offwhite); }
.odo__stops li.is-passed b { color: var(--sand); }
.odo__stops li.is-passed::before { background: var(--sand); border-color: var(--sand); }
.odo.is-arrived { border-color: rgba(221, 214, 200, 0.7); background: rgba(43, 48, 42, 0.55); }

.journey__loading { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(244, 241, 234, 0.14); transition: opacity 0.8s ease; }
.journey__loading div { height: 100%; width: 0; background: var(--sand); transition: width 0.4s ease; }
.journey__loading.is-done { opacity: 0; }

/* ============ SEÇÕES ============ */
.section { position: relative; padding: clamp(100px, 13vw, 180px) 0; overflow: hidden; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand-soft); }
.section--olive { background: var(--olive-700); color: var(--offwhite); }
.section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.22;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.section--olive::after { opacity: 0.3; mix-blend-mode: overlay; }
.section > * { position: relative; z-index: 1; }
/* a trilha: o caminho da marca atravessa todas as seções, uma entregando à outra */
.trilha {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--taupe);
  /* fita larga como a do símbolo, mas quase transparente: é pano de fundo */
  stroke-width: 11;
  stroke-linecap: butt;
  vector-effect: non-scaling-stroke; /* a largura não distorce com o esticamento */
  opacity: 0.14;
  pointer-events: none;
}
.section > .trilha, .closing > .trilha { z-index: 0; }
.section--olive .trilha, .closing .trilha { stroke: rgba(221, 214, 200, 0.75); opacity: 0.12; }

.head { max-width: 640px; margin-bottom: clamp(60px, 7vw, 96px); }
.head h2 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 500; line-height: 1.1; }
.section--olive .head h2 { color: var(--offwhite); }

/* ---- Como funciona: a estrada com o carro ---- */
.percurso { position: relative; }
.road { --p: 0; position: relative; height: 1px; background: var(--line); }
.road__done { position: absolute; left: 0; top: 0; height: 1px; width: calc(var(--p) * 100%); background: var(--taupe); }
.road__car {
  position: absolute;
  top: 0;
  left: calc(var(--p) * 100%);
  width: 92px;
  transform: translate(-50%, -100%);
  color: var(--olive-700);
}
.road__car svg { width: 100%; height: auto; display: block; }
.road__car .car-glass { fill: rgba(141, 150, 131, 0.25); }
.road__car .car-wheel { fill: var(--paper); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.step {
  padding: 62px 40px 18px 38px; /* respiro em relação à linha de cima e à divisória da coluna */
  border-right: 1px solid var(--line-soft);
  opacity: 0.24;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.step.is-on { opacity: 1; transform: none; }
.step:first-child { padding-left: 0; } /* a primeira coluna alinha com o título */
.step:last-child { border-right: 0; }
.step__num {
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
  margin-bottom: 26px;
  font: 500 clamp(30px, 3vw, 40px)/1 var(--font-body);
  letter-spacing: 0.08em;
  color: var(--greige);
  transition: color 0.7s ease;
}
.step__num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 20px;
  height: 1px;
  background: var(--taupe);
  opacity: 0.5;
  transition: width 0.7s ease, opacity 0.7s ease;
}
.step.is-on .step__num { color: var(--olive-700); }
.step.is-on .step__num::after { width: 52px; opacity: 1; }
.step h3 { font-size: 25px; font-weight: 500; margin-bottom: 14px; }
.step p { font-size: 15px; color: var(--ink-soft); max-width: 30ch; }

/* ---- Cards de consórcio ---- */
/* cartões de papel: leve relevo, grão e texto em baixo-relevo (deboss) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 54px 40px 46px;
  background: linear-gradient(158deg, #e9e3d7 0%, #e1dacc 55%, #d7d0c0 100%);
  border: 1px solid rgba(51, 53, 47, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(51, 53, 47, 0.1),
    0 20px 38px -26px rgba(43, 48, 42, 0.55);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.55s ease, filter 0.55s ease;
}
/* o grão e as fibras do papel */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain), var(--fibra);
  background-size: 160px 160px, 340px 340px;
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.card > * { position: relative; z-index: 1; }
/* passar o mouse levanta a folha: ela sobe e a sombra abre atrás
   (o seletor precisa ser mais específico que .reveal.in, que zera o transform) */
.cards .card:hover {
  transform: translateY(-12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(51, 53, 47, 0.1),
    0 14px 22px -12px rgba(26, 30, 22, 0.32),
    0 38px 54px -22px rgba(26, 30, 22, 0.45);
  filter: brightness(1.025);
}
/* letterpress: o traço afunda no papel — sombra escura em cima, luz forte embaixo */
.card__icon { width: 66px; height: 66px; margin-bottom: 42px; color: #555a4a; }
.card__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: square;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55)) drop-shadow(0 -1px 0 rgba(26, 30, 22, 0.6));
}
.card__icon .ic-curve { stroke: #6f7463; }
.card h3 {
  font-size: 31px;
  font-weight: 500;
  margin-bottom: 18px;
  color: #434840;
  text-shadow: 0 -1px 0 rgba(26, 30, 22, 0.55), 0 1px 0 rgba(255, 255, 255, 0.6);
}
.card__lead {
  color: #4f5449;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.card__facts dd {
  color: #4b5043;
  text-shadow: 0 -1px 0 rgba(26, 30, 22, 0.45), 0 1px 0 rgba(255, 255, 255, 0.55);
}
.card__facts dt, .card__uses li {
  color: #51564a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
/* as divisórias também são sulcos no papel */
.card__uses li, .card__facts div {
  border-color: rgba(26, 30, 22, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.card__lead { font-size: 15px; color: var(--ink-soft); margin-bottom: 26px; }
.card__uses { margin: 0 0 30px; padding: 0; list-style: none; }
.card__uses li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.card__facts { margin: auto 0 28px; padding-top: 24px; }
.card__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.card__facts dt { font-size: 9.5px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.card__facts dd { margin: 0; font: 500 15px var(--font-body); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
/* o botão é um bloco de tinta prensado no papel */
.card__cta {
  align-self: stretch;
  padding: 18px 28px;
  border: 0;
  background: linear-gradient(180deg, #424a37 0%, #3a4130 100%);
  font: 500 10.5px var(--font-body);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #e7e2d6;
  cursor: pointer;
  text-shadow: 0 -1px 1px rgba(10, 13, 8, 0.6), 0 1px 0 rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 2px 5px rgba(10, 13, 8, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.card__cta:hover {
  background: linear-gradient(180deg, #4a5340 0%, #414937 100%);
  box-shadow:
    inset 0 3px 7px rgba(10, 13, 8, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ---- Por que consórcio ---- */
.why { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(48px, 7vw, 110px); align-items: start; }
.why__text h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 500; margin-bottom: 30px; }
.why__text p { color: var(--ink-soft); margin-bottom: 20px; max-width: 54ch; }
.why__text .btn { margin-top: 22px; }
.figures { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.figures div { display: grid; grid-template-columns: 130px 1fr; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line-soft); }
.figures dt { font: 500 clamp(30px, 3.2vw, 42px)/1 var(--font-body); letter-spacing: 0.02em; color: var(--olive-700); font-variant-numeric: tabular-nums; }
.figures dd { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
/* casinha em construção, no alto da seção */
.casa { width: 172px; margin: 0 0 42px; color: var(--brown); }
.casa svg { width: 100%; height: auto; display: block; overflow: visible; }
.casa .casa__caminho { stroke: var(--olive-700); }
.casa path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.casa.is-on path { animation: montar 1.1s ease forwards; }
.casa.is-on path:nth-child(1) { animation-delay: 0.15s; } /* terreno */
.casa.is-on path:nth-child(2) { animation-delay: 0.6s; } /* parede esquerda */
.casa.is-on path:nth-child(3) { animation-delay: 0.95s; } /* parede direita */
.casa.is-on path:nth-child(4) { animation-delay: 1.4s; } /* telhado */
.casa.is-on path:nth-child(5) { animation-delay: 2s; } /* porta */
.casa.is-on path:nth-child(6) { animation-delay: 2.4s; } /* janela */
.casa.is-on path:nth-child(7) { animation-delay: 2.7s; } /* janela */
.casa.is-on path:nth-child(8) { animation-delay: 3.1s; } /* o caminho até a porta */
@keyframes montar {
  to { stroke-dashoffset: 0; }
}

/* cada linha entra em cascata quando a seção aparece */
.figure { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.figure.is-on { opacity: 1; transform: none; }

/* o texto ao lado sobe em cascata */
.why__text.in > * { animation: subir 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.why__text.in > *:nth-child(1) { animation-delay: 0.05s; }
.why__text.in > *:nth-child(2) { animation-delay: 0.18s; }
.why__text.in > *:nth-child(3) { animation-delay: 0.31s; }
.why__text.in > *:nth-child(4) { animation-delay: 0.44s; }
.why__text.in > *:nth-child(5) { animation-delay: 0.57s; }
.why__text.in > *:nth-child(6) { animation-delay: 0.7s; }
@keyframes subir {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---- Simulação ---- */
.sim { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(48px, 7vw, 96px); align-items: center; }
.sim__form h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 500; margin-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 46px; }
.chip {
  padding: 12px 22px;
  border: 1px solid rgba(244, 241, 234, 0.28);
  background: transparent;
  color: rgba(244, 241, 234, 0.75);
  font: 400 10px var(--font-body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
}
.chip:hover { border-color: var(--sand); color: var(--offwhite); }
.chip[aria-checked="true"] { background: var(--sand); border-color: var(--sand); color: var(--olive-800); }
.field { margin-bottom: 40px; }
.field label { user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.6);
}
.field output { font: 500 24px var(--font-body); letter-spacing: 0.02em; text-transform: none; color: var(--offwhite); font-variant-numeric: tabular-nums; user-select: none; }
input[type="range"] {
  --fill: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  /* 1px some em telas com escala fracionária: 3px garante o trilho visível */
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sand) var(--fill), rgba(244, 241, 234, 0.3) var(--fill));
  outline: none;
  cursor: pointer;
}
/* o trilho do Chrome/Safari precisa ser explicitamente transparente para o fundo aparecer */
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: transparent; border-radius: 3px; }
input[type="range"]::-moz-range-track { height: 3px; background: transparent; border-radius: 3px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--offwhite);
  box-shadow: 0 0 0 6px rgba(221, 214, 200, 0.16);
}
input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: var(--offwhite);
  box-shadow: 0 0 0 6px rgba(221, 214, 200, 0.16);
}
input[type="range"]:focus-visible { box-shadow: 0 0 0 3px rgba(221, 214, 200, 0.35); }

.sim__result { padding: 46px 42px; border: 1px solid rgba(244, 241, 234, 0.22); background: rgba(43, 48, 42, 0.25); }
.sim__parcela { display: block; margin: 14px 0 34px; font: 500 clamp(32px, 3.6vw, 46px)/1.1 var(--font-body); letter-spacing: 0.01em; color: var(--offwhite); font-variant-numeric: tabular-nums; }
.sim__parcela small { font-size: 0.32em; font-family: var(--font-body); font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 241, 234, 0.5); }
.sim__facts { margin: 0 0 34px; }
.sim__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.sim__facts dt { font-size: 13px; font-weight: 400; color: rgba(244, 241, 234, 0.6); }
.sim__facts dd { margin: 0; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sim__save dd { color: var(--sand); }
.sim__result .fine { margin-top: 20px; color: rgba(244, 241, 234, 0.42); }

/* ---- Sobre ---- */
.about { display: grid; grid-template-columns: 0.8fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.about__portrait { margin: 0; }
.about__photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--sand-soft), var(--greige));
  color: var(--brown);
}
.about__photo .mark { width: 62px; height: 58px; opacity: 0.45; }
.about__photo span { font-size: 9.5px; letter-spacing: 0.34em; text-transform: uppercase; text-align: center; line-height: 2; opacity: 0.7; }
.about__portrait figcaption { margin-top: 18px; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brown); }
.about__text h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 500; margin-bottom: 30px; }
.about__text p { color: var(--ink-soft); margin-bottom: 20px; max-width: 56ch; }
.about__sign { font: italic 400 30px/1 var(--font-display); color: var(--olive-700); margin-top: 34px !important; }

/* ---- CTA final ---- */
.closing { position: relative; padding: clamp(120px, 16vw, 200px) 0; background: var(--olive-900); color: var(--offwhite); overflow: hidden; }
.closing::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.28; mix-blend-mode: overlay; pointer-events: none; }
.closing__ghost { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 30vw; max-width: 360px; height: auto; opacity: 0.12; }
.closing__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: start;
}
.closing h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1.12; margin-bottom: 26px; }
.closing__intro p { color: rgba(244, 241, 234, 0.78); max-width: 46ch; }
.closing__whats {
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(221, 214, 200, 0.5);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sand);
  transition: color 0.4s ease, border-color 0.4s ease;
}
.closing__whats:hover { color: var(--offwhite); border-color: var(--offwhite); }

/* ---- formulário de consultoria ---- */
.form { display: grid; gap: 22px; padding: 42px 38px 36px; background: rgba(244, 241, 234, 0.06); border: 1px solid rgba(244, 241, 234, 0.18); }
.campo { display: grid; gap: 9px; margin: 0; padding: 0; border: 0; }
.campo label, .campo legend {
  padding: 0;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.72);
}
.campo legend { margin-bottom: 9px; }
.campo i { font-style: normal; color: var(--clay); }
.campo input, .campo select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--offwhite);
  color: var(--ink);
  font: 400 15px var(--font-body);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.campo select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236f665c' stroke-width='1.4'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.campo input::placeholder { color: #a7a59c; }
.campo input:focus, .campo select:focus { outline: 0; border-color: var(--sand); box-shadow: 0 0 0 3px rgba(221, 214, 200, 0.25); }
.campo .dica { font-size: 11.5px; letter-spacing: 0.04em; color: rgba(244, 241, 234, 0.45); }
.campo .erro { display: none; font-size: 12.5px; line-height: 1.5; color: #dda88d; }
.campo.tem-erro .erro { display: block; }
.campo.tem-erro input, .campo.tem-erro select { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(180, 120, 95, 0.22); }

.opcoes { display: flex; flex-wrap: wrap; gap: 26px; }
.opcao { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--offwhite); }
.opcao input {
  appearance: none;
  width: 19px;
  height: 19px;
  margin: 0;
  border: 1px solid rgba(244, 241, 234, 0.5);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.opcao input:checked { border-color: var(--sand); box-shadow: inset 0 0 0 4px var(--sand); }
.opcao input:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.campo.tem-erro .opcao input { border-color: var(--clay); }

.btn--sand { background: var(--sand); color: var(--olive-900); margin-top: 6px; }
.btn--sand:hover { background: var(--offwhite); }
.form__nota { color: rgba(244, 241, 234, 0.45); text-align: center; }
.form__ok {
  padding: 14px 16px;
  border: 1px solid rgba(221, 214, 200, 0.5);
  font-size: 13.5px;
  text-align: center;
  color: var(--sand);
}

/* ---- Rodapé ---- */
.footer { padding: 70px 0 54px; background: var(--olive-900); color: var(--offwhite); border-top: 1px solid var(--line-light); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.footer__nav a { font-size: 10px; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(244, 241, 234, 0.6); text-decoration: none; transition: color 0.4s; }
.footer__nav a:hover { color: var(--offwhite); }
.footer__social { display: flex; gap: 16px; }
.footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-light); color: rgba(244, 241, 234, 0.7); transition: all 0.4s ease; }
.footer__social a:hover { border-color: var(--sand); color: var(--offwhite); }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }
.footer__social a[data-instagram] svg { fill: none; }
.footer__legal { grid-column: 1 / -1; padding-top: 34px; margin-top: 10px; border-top: 1px solid var(--line-light); color: rgba(244, 241, 234, 0.38); max-width: 720px; }

.whats-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--olive-700);
  border: 1px solid rgba(221, 214, 200, 0.35);
  transition: transform 0.4s ease, background 0.4s ease;
}
.whats-float:hover { transform: scale(1.06); background: var(--olive-900); }
.whats-float svg { width: 25px; height: 25px; fill: var(--offwhite); }

/* ---- revelar ao rolar ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVO ============ */
@media (max-width: 1024px) {
  .nav { display: none; }
  /* no celular e no tablet a estrada vira vertical: o carro desce ao lado das etapas */
  .percurso { padding-left: 70px; }
  .road {
    position: absolute;
    left: 34px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    height: auto;
    background: var(--line);
  }
  .road__done { top: 0; left: 0; width: 1px; height: calc(var(--p) * 100%); background: var(--taupe); }
  .road__car {
    top: calc(var(--p) * 100%);
    left: 50%;
    width: 56px;
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 30px 0 34px 0; border: 0; border-bottom: 1px solid var(--line-soft); }
  .step:last-child { border-bottom: 0; }
  .step:nth-child(2n) { border-right: 0; }
  .cards { grid-template-columns: 1fr; }
  .why, .sim, .about, .closing__grid { grid-template-columns: 1fr; }
  .casa { margin: 44px auto 0; }
  .about__portrait { max-width: 380px; }
  .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__legal { text-align: center; }
}

@media (max-width: 767px) {
  .shell { width: calc(100% - 40px); }
  .opening__inner { padding: 130px 0 150px; }
  .opening__grid { background-size: 50% 100%; }
  .opening__ghost { width: 78vw; right: -20%; bottom: -8%; }
  .mark--lg { width: 52px; height: 62px; }
  .phrase { max-width: none; font-size: 33px; }
  .opening__ctas { flex-direction: column; align-items: stretch; }
  .opening__ctas .btn { width: 100%; }
  .opening__scroll { left: 20px; bottom: 26px; }

  .journey { height: 420svh; }
  .journey__veil {
    background:
      linear-gradient(180deg, rgba(37, 41, 35, 0.86) 0%, rgba(37, 41, 35, 0.35) 48%, transparent 64%),
      linear-gradient(0deg, rgba(37, 41, 35, 0.82) 0%, transparent 36%);
  }
  .beat { top: 104px; left: 20px; width: calc(100% - 40px); transform: none; }
  .beat h2 { font-size: 32px; }

  .odo { top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; transform: none; padding: 16px 20px 18px; }
  .odo__head { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; }
  .odo__label { grid-column: 2; grid-row: 1; align-self: end; }
  .odo__sub { grid-column: 2; grid-row: 2; align-self: start; }
  .odo__value { grid-column: 1; grid-row: 1 / 3; margin: 0; }
  .odo__value span { font-size: 36px; }
  .odo__track { height: 1px; margin-top: 16px; padding: 0; }
  .odo__rail { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
  .odo__fill { top: 0; bottom: auto; left: 0; height: 1px; width: calc(var(--p) * 100%); }
  .odo__car { left: calc(var(--p) * 100%); bottom: auto; top: 50%; margin: -3.5px 0 0 -3.5px; }
  .odo__stops { display: none; }

  .percurso { padding-left: 62px; }
  .road { left: 28px; }
  .road__car { width: 50px; }
  .why__text .btn, .figures div { width: 100%; }
  .figures div { grid-template-columns: 96px 1fr; gap: 18px; }
  .sim__result { padding: 32px 26px; }
  .form { padding: 30px 22px 26px; }
  .casa { width: 126px; }
  .opcoes { gap: 20px; }
  .topbar .btn--sm { display: none; }
  .whats-float { bottom: 120px; right: 16px; width: 48px; height: 48px; }
  .whats-float.is-clear { bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .step, .figure { opacity: 1; transform: none; transition: none; }
  .why__text.in > * { animation: none; }
  .casa path { stroke-dashoffset: 0; }
  .casa.is-on path { animation: none; }
  .opening__scroll::before,
  .opening__grid,
  .opening__grid::before,
  .opening__curve path { animation: none; }
  .trilha path { stroke-dashoffset: 0 !important; }
}
.campo select:disabled { opacity: 0.5; cursor: not-allowed; }
