/* =========================================================================
   VECTUS · styles.css
   Sistema: grafite (base) · névoa (respiro) · petróleo (acento) · bronze (raro)
   Tipos: Fraunces (títulos) · IBM Plex Sans (texto) · IBM Plex Mono (rótulos/termos)
   Mobile-first. Sem framework. Cantos retos, sem sombras em repouso.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Cores da marca (valores fixos do brief) */
  --grafite: #0E1C21;
  --petroleo: #10585E;
  --petroleo-claro: #41A0A6;
  --nevoa: #F1F3F2;
  --ardosia: #56686D;
  --bronze: #A9895B;

  /* Degraus de tom derivados (separam superfícies sem linhas nem sombras) */
  --grafite-2: #13262C;      /* um degrau acima do grafite */
  --grafite-3: #1B343C;      /* dois degraus: superfícies de controle no escuro */
  --grafite-wm: #142930;     /* wordmark monumental do hero, quase invisível */
  --nevoa-2: #E6EBEA;        /* um degrau abaixo da névoa */
  --nevoa-3: #DAE1E0;        /* hover sobre névoa-2 */
  --ardosia-claro: #9DB0B4;  /* texto secundário sobre grafite (contraste ≥ 7:1) */

  /* Tipografia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);           /* 16 → 18 */
  --fs-small: 0.875rem;                                        /* 14 */
  --fs-label: 0.78125rem;                                      /* 12.5 */
  --fs-h3: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);               /* 24 → 32 */
  --fs-statement: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);       /* 22 → 32 */
  --fs-h2: clamp(2.25rem, 1.35rem + 3.4vw, 4.375rem);          /* 36 → 70 */
  --fs-h1: clamp(2.25rem, 1.2rem + 4.4vw, 5.5rem);             /* 36 → 88 */

  /* Espaço */
  --margin: clamp(20px, 4.5vw, 72px);
  --maxw: 1360px;
  --gap: clamp(20px, 2.6vw, 40px);
  --section-y: clamp(96px, 12vw, 192px);
  --header-h: 64px;

  /* Movimento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Ângulo do vetor da marca */
  --tan6: 0.10510;
}

@media (min-width: 64em) {
  :root { --header-h: 76px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scrollbar-color: var(--ardosia) var(--grafite);
  background: var(--grafite);
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--nevoa);
  background: var(--grafite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
abbr[title] { text-decoration: none; cursor: help; }

::selection { background: var(--petroleo-claro); color: var(--grafite); }

/* Foco visível em toda a página; a cor acompanha a superfície. */
:focus-visible {
  outline: 2px solid var(--focus, var(--petroleo-claro));
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--nevoa);
  color: var(--grafite);
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--margin));
  margin-inline: auto;
  padding-inline: var(--margin);
}

/* Superfícies: cada seção declara a sua; links e foco se ajustam sozinhos. */
.surface-dark {
  background: var(--grafite);
  color: var(--nevoa);
  --link: var(--petroleo-claro);
  --focus: var(--petroleo-claro);
  --muted: var(--ardosia-claro);
  --tick: var(--petroleo-claro);
}
.surface-light {
  background: var(--nevoa);
  color: var(--grafite);
  --link: var(--petroleo);
  --focus: var(--petroleo);
  --muted: var(--ardosia);
  --tick: var(--petroleo);
}

/* ---------- 3. Tipografia ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: var(--fs-h3);
  line-height: 1.12;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 72;
}

.statement {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: var(--fs-statement);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72;
  text-wrap: pretty;
}

/* Rótulos em Plex Mono, caixa alta, tracking amplo (pedido do brief) */
.label,
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { color: var(--bronze); letter-spacing: 0.2em; }

/* Termos técnicos (IBS, CBS, IRPJ…) em Plex Mono, como citações de lei */
.term {
  font-family: var(--font-mono);
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.text-link {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition: text-decoration-thickness 0.2s, color 0.2s;
}
.text-link:hover { text-decoration-thickness: 2px; }

.tabular { font-variant-numeric: tabular-nums; }

/* Marcador de lista: um pequeno vetor a 6°, em vez de bolinha */
.ticks { list-style: none; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.8em;
  width: 17px; height: 1.5px;
  background: var(--tick);
  transform: rotate(-6deg);
  transform-origin: 0 50%;
}

/* ---------- 4. Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 24px;
  background: var(--petroleo);
  color: var(--nevoa);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), transform 0.15s;
}
.btn:hover { background: var(--petroleo-claro); color: var(--grafite); }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; gap: 8px; }
.btn--ghost { background: var(--grafite-3); }
.btn--ghost:hover { background: var(--petroleo); color: var(--nevoa); }

/* O "→" da marca: vetor ascendente com nó, que avança no hover */
.btn-vector {
  width: 30px; height: 10px;
  overflow: visible;
  flex: none;
  transition: transform 0.45s var(--ease-out);
}
.btn-vector line { stroke: currentColor; stroke-width: 1.5; }
.btn-vector circle { fill: currentColor; }
.btn:hover .btn-vector { transform: translateX(5px); }

/* ---------- 5. Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--nevoa);
  --link: var(--petroleo-claro);
  --focus: var(--petroleo-claro);
  transition: background-color 0.4s var(--ease-out);
}
.site-header.is-scrolled,
.site-header.is-open { background: var(--grafite); }

.header-bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }

/* Wordmark (fallback em Fraunces caps, peso ~430, tracking ~0.1em) */
.wordmark {
  font-family: var(--font-display);
  font-weight: 430;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.1em;
  margin-right: -0.1em;
  font-variation-settings: "opsz" 48;
}

.nav { margin-left: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 0.9375rem;
}
.nav-toggle-icon {
  position: relative;
  width: 20px; height: 8px;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after { top: 6.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 3.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 3.25px; transform: rotate(-45deg); }

/* Menu móvel: painel grafite em tela cheia, links em Fraunces */
.nav-list {
  list-style: none;
  display: none;
}
.site-header.is-open .nav-list {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 32px var(--margin) 48px;
  background: var(--grafite);
  overflow-y: auto;
}
.site-header.is-open .nav-list a {
  display: block;
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 340;
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* Sem JS, o menu aparece como lista simples em linha */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .nav-list { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.875rem; }
html:not(.js) .site-header { position: absolute; }

.header-cta { flex: none; }
.hide-sm { display: none; }

@media (min-width: 30em) {
  .hide-sm { display: inline; }
}

@media (min-width: 64em) {
  .nav-toggle { display: none; }
  .nav { margin-inline: auto; }
  .nav-list,
  .site-header.is-open .nav-list {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding: 0;
    background: none;
  }
  .nav-list a,
  .site-header.is-open .nav-list a {
    position: relative;
    display: block;
    padding: 10px 14px;
    font-family: var(--font-text);
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.005em;
    text-decoration: none;
    color: var(--ardosia-claro);
    transition: color 0.25s;
  }
  .nav-list a:hover,
  .nav-list a[aria-current="true"] { color: var(--nevoa); }
  /* Nó ativo: o pequeno ponto petróleo-claro marca a seção atual */
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 2px;
    width: 4px; height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: var(--petroleo-claro);
    opacity: 0;
    transform: scale(0.2);
    transition: opacity 0.3s, transform 0.3s var(--ease-out);
  }
  .nav-list a[aria-current="true"]::after { opacity: 1; transform: none; }
  html:not(.js) .site-header { position: fixed; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + clamp(40px, 9vh, 120px));
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 40px;
}

.hero .eyebrow { margin-bottom: 28px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 330;
  font-size: var(--fs-h1);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  max-width: 16.5em;
  text-wrap: balance;
}

@media (min-width: 48em) {
  .h1-line { display: block; }
}

.hero-lead {
  margin-top: 32px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
}

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

.hero-note {
  max-width: 24em;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--ardosia-claro);
}
.hero-note .label { color: var(--nevoa); margin-bottom: 10px; }
.hero-note p + .text-link { display: inline-block; margin-top: 12px; }

/* Wordmark monumental ao fundo: degrau de tom, cortado pela borda inferior */
.hero-wordmark {
  position: relative;
  z-index: 0;
  margin: clamp(40px, 8vh, 96px) 0 -0.14em;
  font-family: var(--font-display);
  font-weight: 430;
  font-size: 19.6vw;
  line-height: 0.8;
  letter-spacing: 0.1em;
  padding-left: 0.1em;               /* compensa o tracking final e centraliza opticamente */
  text-align: center;
  white-space: nowrap;
  color: var(--grafite-wm);
  font-variation-settings: "opsz" 144;
  user-select: none;
  pointer-events: none;
}

/* Feixe do vetor: no hero, atravessa o wordmark e termina no nó */
.beam { position: absolute; pointer-events: none; overflow: visible; }
.beam path { fill: none; stroke: var(--petroleo); stroke-width: 1.15; }
.beam .beam-main { stroke: var(--petroleo-claro); stroke-opacity: 0.55; stroke-width: 1.3; }
.beam-node { fill: var(--petroleo-claro); }
.beam-ring { fill: none; stroke: var(--petroleo-claro); stroke-opacity: 0.35; stroke-width: 1; }

.beam--hero {
  z-index: 1;
  right: 0;
  bottom: 3vw;
  width: 220%;
  height: auto;
}

@media (min-width: 48em) {
  .beam--hero { width: 140%; }
}

@media (min-width: 64em) {
  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: 0;
  }
  .hero-copy { grid-column: 1 / -1; display: contents; }
  .hero .eyebrow,
  .hero h1 { grid-column: 1 / -1; }
  .hero-lead { grid-column: 1 / span 6; }
  .hero-actions { grid-column: 1 / span 6; }
  .hero-note {
    grid-column: 9 / -1;
    grid-row: 3 / span 2;
    align-self: end;
    margin-top: 32px;
  }
  .beam--hero { width: 100%; bottom: 2.2vw; }
}

/* ---------- 7. Faixa de autoridade ---------- */
.authority {
  position: relative;
  z-index: 3;
  background: var(--petroleo);
  color: var(--nevoa);
  padding-block: clamp(56px, 8vw, 120px);
  --focus: var(--nevoa);
}
.authority-text {
  font-family: var(--font-display);
  font-weight: 330;
  font-size: clamp(2rem, 0.9rem + 4.6vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-variation-settings: "opsz" 144;
  max-width: 17em;
  text-wrap: balance;
}

/* ---------- 8. Seções: cabeçalho comum ---------- */
.section { position: relative; padding-block: var(--section-y); }

.section-head {
  display: grid;
  gap: 28px;
  margin-bottom: clamp(56px, 8vw, 112px);
}
.section-intro { display: grid; gap: 16px; max-width: 34em; }
.section-intro p { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); }

@media (min-width: 64em) {
  .section-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }
  .section-head .h2 { grid-column: 1 / span 7; }
  .section-head .section-intro { grid-column: 9 / -1; }
}

/* ---------- 9. Reforma Tributária ---------- */
.transition-title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 72;
}

/* A trilha mantém a proporção 1000:130, então o ângulo na tela é sempre 6° */
.transition-track {
  position: relative;
  aspect-ratio: 1000 / 130;
  margin: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 112px);
}
.track-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.track-lines path {
  fill: none;
  stroke: var(--petroleo);
  stroke-opacity: 0.28;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.track-lines path:first-child { stroke-opacity: 0.45; }
.track-progress {
  fill: none;
  stroke: var(--petroleo);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s var(--ease-out);
}
@media (max-width: 47.99em) {
  .track-progress { stroke-width: 6; }
}

.track-stops { position: absolute; inset: 0; }

.stop {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 48px;
  padding: 0 4px 6px;
  transform: translate(-50%, -12px);
  text-decoration: none;
  color: var(--grafite);
  -webkit-tap-highlight-color: transparent;
}
.stop-node {
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.stop-node::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--nevoa);
  box-shadow: inset 0 0 0 2px var(--petroleo);
  transition: transform 0.4s var(--ease-out), background-color 0.3s;
}
.stop--terminal .stop-node::before { background: var(--petroleo-claro); box-shadow: inset 0 0 0 2px var(--petroleo-claro); }

.stop-year {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.stop-name {
  display: none;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--ardosia);
  white-space: nowrap;
}
.stop:hover .stop-node::before { transform: scale(1.25); }
.stop[aria-selected="true"] .stop-node::before {
  background: var(--petroleo);
  box-shadow: inset 0 0 0 2px var(--petroleo), 0 0 0 5px var(--nevoa), 0 0 0 6.5px var(--petroleo);
  transform: scale(1.15);
}
.stop--terminal[aria-selected="true"] .stop-node::before { background: var(--petroleo-claro); }
.stop[aria-selected="true"] .stop-year { color: var(--petroleo); }

/* Primeiro e último rótulos encostam nas margens sem vazar */
.stop:first-child { justify-items: start; transform: translate(-12px, -12px); }
.stop:last-child { justify-items: end; transform: translate(calc(-100% + 12px), -12px); }

@media (min-width: 48em) {
  .stop-name { display: block; }
}

/* Painéis: um por etapa. Com JS, só o ativo aparece; sem JS, todos em sequência. */
.transition-panels { display: grid; gap: 64px; }
.panel {
  display: grid;
  gap: 20px;
}
.panel-year {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  line-height: 0.85;
  letter-spacing: -0.045em;
  font-variant-numeric: lining-nums;
  font-variation-settings: "opsz" 144;
  color: var(--petroleo);
  white-space: nowrap;
}
.panel-title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 72;
  margin-bottom: 28px;
}
.panel-cols { display: grid; gap: 32px; }
.panel-cols .label { margin-bottom: 14px; }

.js .panel[hidden] { display: none; }
.js .transition-panels { min-height: 22rem; }
.panel.is-entering { animation: panel-in 0.6s var(--ease-out) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 48em) {
  .panel-cols { grid-template-columns: 1.15fr 1fr; gap: var(--gap); }
}
@media (min-width: 64em) {
  .panel {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .panel-year { grid-column: 1 / span 4; }
  .panel-body { grid-column: 5 / -1; padding-top: 0.4em; }
}

.source {
  margin-top: 40px;
  font-size: var(--fs-small);
  color: var(--ardosia);
}

/* Como a Vectus atua: bloco em degrau de tom, lista em duas colunas */
.offer {
  margin-top: clamp(80px, 10vw, 144px);
  padding: clamp(32px, 5vw, 72px);
  background: var(--nevoa-2);
  display: grid;
  gap: 48px;
}
.offer-head { display: grid; gap: 28px; align-content: start; justify-items: start; }
.offer-list { display: grid; gap: 36px; }
.offer-item dt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 48;
  margin-bottom: 10px;
}
.offer-item dd { max-width: 32em; }

@media (min-width: 48em) {
  .offer-list { grid-template-columns: 1fr 1fr; gap: 48px var(--gap); }
}
@media (min-width: 64em) {
  .offer {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }
  .offer-head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 32px); }
  .offer-list { grid-column: 6 / -1; }
}

/* ---------- 10. Para quem ---------- */
.segments-head {
  display: grid;
  gap: 28px;
  margin-bottom: clamp(56px, 8vw, 112px);
}
.h2--wide { max-width: 15em; }

.segments-grid { display: grid; }
.segment {
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  gap: 16px;
  align-content: start;
}
/* Tabuleiro de degraus de tom: estrutura sem linhas nem cartões com sombra */
.segment:nth-child(odd) { background: var(--grafite-2); }
.segment-name {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}
.segment-name::before {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--petroleo-claro);
}
.segment-desc { color: var(--ardosia-claro); max-width: 30em; margin-bottom: 12px; }
.segment .ticks { gap: 16px; }

.segments-foot { margin-top: clamp(48px, 6vw, 80px); }

@media (min-width: 48em) {
  .segments-grid { grid-template-columns: 1fr 1fr; }
  .segment:nth-child(odd) { background: none; }
  .segment:nth-child(1),
  .segment:nth-child(4) { background: var(--grafite-2); }
}
@media (min-width: 64em) {
  .segments-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }
  .segments-head .h2 { grid-column: 1 / span 10; }
  .segments-head .section-intro { grid-column: 8 / -1; }
}

/* ---------- 11. Soluções ---------- */
.solutions-list { list-style: none; display: grid; gap: 4px; }

.solution {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(28px, 3.4vw, 44px) clamp(24px, 3.4vw, 44px);
  background: var(--nevoa-2);
  transition: background-color 0.4s var(--ease-out);
}
.solution:hover { background: var(--nevoa-3); }

.solution-title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(1.5rem, 1.25rem + 0.85vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
  transition: transform 0.5s var(--ease-out);
}
.solution:hover .solution-title { transform: translateX(6px); }
.solution-body { display: grid; gap: 14px; max-width: 36em; }

.terms { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ardosia); }
.terms .term { font-size: 0.75rem; letter-spacing: 0.1em; }

/* Link "esticado": o cartão inteiro é clicável, o foco fica no link */
.solution-link {
  justify-self: start;
  display: inline-block;
  padding-block: 10px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}
.solution-link::after { content: ""; position: absolute; inset: 0; }
.solution:hover .solution-link { text-decoration-thickness: 2px; }
.solution-link:focus-visible { outline: none; }
.solution:has(.solution-link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Serviço principal (assessoria recorrente) em petróleo: o único campo de cor da lista */
.solution--lead {
  background: var(--petroleo);
  color: var(--nevoa);
  --link: var(--nevoa);
  --focus: var(--petroleo);
}
.solution--lead:hover { background: #0D4D52; }

@media (min-width: 64em) {
  .solution {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .solution-title { grid-column: 1 / span 5; }
  .solution-body { grid-column: 6 / span 5; }
  .solution-link { grid-column: 11 / -1; justify-self: end; margin-top: -6px; }
}

/* ---------- 12. Método (escada a 6°) ---------- */
.method-stage { container-type: inline-size; }

.steps {
  list-style: none;
  position: relative;
  display: grid;
  gap: 56px;
}
.step { position: relative; display: grid; gap: 14px; align-content: start; }
.step-node {
  position: relative;
  z-index: 1;
  width: 14px; height: 14px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--grafite);
  box-shadow: inset 0 0 0 2px var(--petroleo-claro);
}
.step--terminal .step-node { background: var(--petroleo-claro); }
.step-name {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.375rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
}
.step p { max-width: 30em; }
.step-out { margin-top: 10px; color: var(--ardosia-claro); font-size: var(--fs-small); }
.step-out .label { display: block; margin-bottom: 6px; color: var(--bronze); }

/* No celular: as etapas se ligam por um feixe vertical curto */
@media (max-width: 63.99em) {
  .steps { padding-left: 34px; }
  .step-node { position: absolute; left: -34px; top: 0.55em; margin: 0; }
  .steps::before {
    content: "";
    position: absolute;
    left: 6.5px; top: 0.9em; bottom: 2.6em;
    width: 1px;
    background: var(--petroleo);
  }
}

@media (min-width: 64em) {
  .steps {
    --pitch: calc((100cqw + var(--gap)) / 4);
    --rise: calc(var(--pitch) * var(--tan6));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--gap);
    padding-top: 12px;
  }
  /* Cada etapa começa um degrau acima da anterior: subida de 6° exatos */
  .step { padding-top: calc(var(--rise) * (3 - var(--i))); }

  /* O feixe passa pelos nós das quatro etapas */
  .steps::before,
  .steps::after {
    content: "";
    position: absolute;
    left: 7px;
    top: calc(12px + var(--rise) * 3 + 7px);
    width: calc(var(--pitch) * 3 / 0.99452);
    transform-origin: 0 50%;
    transform: rotate(-6deg) scaleX(var(--draw, 1));
    transition: transform 1.6s var(--ease-out);
  }
  .steps::before {
    height: 1px;
    background: var(--petroleo-claro);
    opacity: 0.7;
  }
  .steps::after {
    left: calc(7px - var(--pitch) * 0.6);
    width: calc(var(--pitch) * 3.6 / 0.99452);
    height: 31px;
    margin-top: 8px;
    background: repeating-linear-gradient(to bottom, var(--petroleo) 0 1px, transparent 1px 6px);
    opacity: 0.7;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 30%, #000 85%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 30%, #000 85%, transparent);
  }
  .js .steps:not(.is-drawn) { --draw: 0; }
}

/* ---------- 13. Sócios ---------- */
.partners .wrap { container-type: inline-size; }

.partners-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(56px, 8vw, 112px);
}
.partners-intro { display: grid; gap: 20px; max-width: 34em; }
.partners-intro .statement { max-width: 22em; }
.partners-origin { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); }

.partners-list { position: relative; display: grid; gap: 64px; }

.partner { display: grid; gap: 26px; align-content: start; }
.photo-frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--nevoa-2);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.partner-photo figcaption {
  margin-top: 12px;
  font-size: var(--fs-small);
  color: var(--ardosia);
  max-width: 34em;
}
.partner-body { display: grid; gap: 8px; max-width: 30em; }
.partner-name {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(1.625rem, 1.35rem + 0.9vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 72;
}
.partner-role { font-weight: 500; }
.partner-cred { margin-top: 10px; color: var(--petroleo); }

/* Lado a lado, os dois perfis sobem 6° da esquerda para a direita (como a
   escada do Método): a foto de Kaio parte um degrau abaixo da de Cristiano,
   e um feixe fino liga os dois cantos superiores. */
@media (min-width: 48em) {
  .partners-list {
    --pitch: calc((100cqw + var(--gap)) / 2);
    --rise: calc(var(--pitch) * var(--tan6));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .partner:first-child { padding-top: var(--rise); }

  .partners-list::before,
  .partners-list::after {
    content: "";
    position: absolute;
    pointer-events: none;
  }
  .partners-list::before {
    left: 0;
    top: calc(var(--rise) - 22px);
    width: calc(var(--pitch) / 0.99452); /* cos 6° */
    height: 1px;
    background: var(--petroleo);
    opacity: 0.55;
    transform-origin: 0 50%;
    transform: rotate(-6deg) scaleX(var(--draw, 1));
    transition: transform 1.6s var(--ease-out);
  }
  .partners-list::after {
    left: calc(var(--pitch) - 3.5px);
    top: -25.5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--petroleo);
    opacity: var(--draw, 1);
    transition: opacity 0.4s linear 1.2s;
  }
  .js .partners-list:not(.is-drawn) { --draw: 0; }
}

@media (min-width: 64em) {
  .partners-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .partners-head .h2 { grid-column: 1 / span 6; }
  .partners-intro { grid-column: 8 / -1; }

  .partners-list {
    --pitch: calc((100cqw + var(--gap)) * 7 / 12);
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .partner:first-child { grid-column: 1 / span 5; }
  .partner:last-child { grid-column: 8 / span 5; }
}

/* ---------- 14. CTA final ---------- */
.cta { overflow: hidden; isolation: isolate; padding-bottom: calc(var(--section-y) + 4vw); }
.cta-grid { position: relative; z-index: 1; display: grid; gap: 36px; }
.cta-title { font-size: clamp(2.5rem, 1.3rem + 4.6vw, 5.5rem); max-width: 11em; }
.cta-copy { display: grid; gap: 32px; max-width: 32em; }
.cta-copy > p { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); }
.cta-actions { display: grid; gap: 18px; justify-items: start; }
.cta-alt { color: var(--ardosia-claro); }

.beam--cta { z-index: 0; right: 0; bottom: 0; width: 220%; height: auto; }

@media (min-width: 48em) {
  .beam--cta { width: 140%; }
}
@media (min-width: 64em) {
  .cta-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }
  .cta-title { grid-column: 1 / span 7; }
  .cta-copy { grid-column: 9 / -1; }
  .beam--cta { width: 100%; }
}

/* ---------- 15. Rodapé ---------- */
.site-footer {
  background: var(--grafite-2);
  padding-block: clamp(64px, 8vw, 104px) 36px;
  font-size: var(--fs-small);
  color: var(--ardosia-claro);
}
.footer-grid { display: grid; gap: 48px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.wordmark--footer { font-size: 2.25rem; color: var(--nevoa); }

.footer-info { display: grid; gap: 28px; }
.footer-info dt { margin-bottom: 6px; }
.footer-info dd { color: var(--nevoa); font-size: 0.9375rem; }

.privacy summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  color: var(--nevoa);
  font-size: 0.9375rem;
}
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::after {
  content: "";
  width: 10px; height: 10px;
  background:
    linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.privacy[open] summary::after { transform: rotate(45deg); }
.privacy-body { display: grid; gap: 12px; max-width: 62ch; padding: 8px 0 4px; line-height: 1.65; }

.footer-legal { color: var(--ardosia-claro); }

@media (min-width: 48em) {
  .footer-info { grid-template-columns: 1fr 1fr; gap: 32px var(--gap); }
}
@media (min-width: 64em) {
  .footer-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: 40px;
  }
  .footer-brand { grid-column: 1 / span 4; grid-row: 1 / span 2; }
  .footer-info { grid-column: 6 / -1; grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .privacy { grid-column: 6 / -1; }
  .footer-legal { grid-column: 1 / -1; padding-top: 24px; }
}

/* ---------- 16. Movimento ---------- */
/* Entradas: só existem com JS; sem script, tudo está visível. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease-out) calc(var(--d, 0) * 80ms),
    transform 1.1s var(--ease-out) calc(var(--d, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Foto: leve aproximação ao entrar */
.js .partner .photo-frame img { transform: scale(1.06); transition: transform 2.2s var(--ease-out); }
.js .partner.is-in .photo-frame img { transform: none; }

/* O vetor desenha-se: cada linha do feixe com um pequeno atraso */
.js .beam path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2s var(--ease-out) calc(var(--k, 0) * 90ms + 200ms);
}
.js .beam .beam-node,
.js .beam .beam-ring {
  opacity: 0;
  transform: scale(0.3);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.6s var(--ease-out) 1.5s, transform 0.9s var(--ease-out) 1.5s;
}
.js .beam.is-drawn path { stroke-dashoffset: 0; }
.js .beam.is-drawn .beam-node,
.js .beam.is-drawn .beam-ring { opacity: 1; transform: none; }
.js .beam.is-drawn .beam-ring { opacity: 1; animation: ring 3.6s var(--ease-in-out) 2.4s infinite; }
@keyframes ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .partner .photo-frame img { transform: none; transition: none; }
  .js .beam path { stroke-dashoffset: 0; transition: none; }
  .js .beam .beam-node, .js .beam .beam-ring { opacity: 1; transform: none; transition: none; }
  .js .steps:not(.is-drawn) { --draw: 1; }
  .steps::before, .steps::after { transition: none; }
  .js .partners-list:not(.is-drawn) { --draw: 1; }
  .partners-list::before, .partners-list::after { transition: none; }
  .track-progress { transition: none; }
  .solution-title, .btn-vector { transition: none; }
}
