/* =====================================================================
   WeGrow — site institucional
   Paleta: Branco Sinal #FFFFFF (base) · Preto Operação #040303 (tinta,
   estrutura) · Ciano WeGrow #39C7D8 (só destaque: CTA, estado ativo, dado).
   Tipografia: Be Vietnam Pro 400/700 + Instrument Serif itálico 400 (acento).
   Padrão da marca: frase quebrada em dois blocos — sans 700 + serifa itálica.
   ===================================================================== */

:root {
  --white: #ffffff;
  --ink: #040303;
  --cyan: #39c7d8;
  --graphite: #343231;
  --grey: #666564;
  --grey-light: #8a8a8a;

  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --sec-y: clamp(88px, 11vw, 168px);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- tons de seção: cada seção declara se é clara ou escura ---- */
.tone-light {
  --bg: var(--white);
  --fg: var(--ink);
  --fg-2: var(--graphite);
  --fg-3: var(--grey);
  --line: rgba(4, 3, 3, 0.1);
  --line-2: rgba(4, 3, 3, 0.22);
  --soft: rgba(4, 3, 3, 0.035);
}

.tone-dark,
html.night .tone-light {
  --bg: var(--ink);
  --fg: var(--white);
  --fg-2: rgba(255, 255, 255, 0.78);
  --fg-3: var(--grey-light);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.24);
  --soft: rgba(255, 255, 255, 0.045);
}

.tone-light,
.tone-dark {
  background: var(--bg);
  color: var(--fg);
}

/* no modo noite tudo vira preto: uma linha fina separa as seções */
html.night main > section,
html.night .fit-half,
html.night .footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html.night .fit-no {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--cyan);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

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

.muted {
  color: var(--fg-3);
}

/* ---- tipografia: o par sans + serifa itálica ---- */
.h-display,
.h-mid,
.h-small {
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(36px, 5.4vw, 78px);
  line-height: 1.02;
}

.h-mid {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.06;
}

.h-small {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* a segunda metade da frase em serifa itálica — um pouco maior para
   compensar a altura-x menor da Instrument Serif */
.h-display em,
.h-mid em,
.h-small em,
.hero-title em,
.principle em,
.problem-close em,
.places-title em,
.sign em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.13em;
}

.h-display em,
.hero-title em {
  display: block;
  line-height: 1;
}

.lede {
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 46ch;
}

.lede strong {
  color: var(--fg);
}

/* cabeçalho de seção: título à esquerda, apoio à direita alinhado embaixo */
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 28px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.sec-head > h2 {
  grid-column: 1 / span 8;
}

.sec-head > .lede {
  grid-column: 9 / span 4;
}

main > section {
  padding: var(--sec-y) 0;
}

/* ---- botões ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.3s ease,
    transform 0.35s var(--ease);
  will-change: transform;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(57, 199, 216, 0);
}

.btn-primary:hover {
  background: var(--white);
  box-shadow: 0 10px 40px -8px rgba(57, 199, 216, 0.55);
}

.btn-primary:focus-visible {
  outline-color: var(--white);
}

.btn-link {
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color 0.25s ease, color 0.25s ease;
}

.btn-link:hover {
  text-decoration-color: var(--cyan);
}

/* =====================================================================
   NAVBAR — mesma estrutura do site anterior (oculta sobre a hero,
   desliza ao passar metade dela). Dimensões em px de propósito.
   ===================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(4, 3, 3, 0.08);
  transform: translateY(calc(-100% - 4px));
  transition: transform 0.45s var(--ease), background 0.3s ease, border-color 0.3s ease;
}

.nav.show {
  transform: translateY(0);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex: none;
}

.nav-logo img {
  height: 26px;
  width: auto;
}

.nav .logo-light {
  display: none;
}

.nav-links {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(4, 3, 3, 0.72);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
  will-change: transform;
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.is-current::after {
  transform: scaleX(1);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-cta:hover {
  background: var(--cyan);
  color: var(--ink);
}

.nav-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(4, 3, 3, 0.16);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.nav-toggle:hover {
  border-color: rgba(4, 3, 3, 0.4);
}

.nav-toggle svg {
  width: 17px;
  height: 17px;
}

.nav-toggle .ico-sun,
.nav-menu {
  display: none;
}

html.night .nav {
  background: rgba(4, 3, 3, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html.night .nav .logo-dark { display: none; }
html.night .nav .logo-light { display: block; }

html.night .nav-links a { color: rgba(255, 255, 255, 0.72); }
html.night .nav-links a:hover,
html.night .nav-links a.is-current { color: var(--white); }

html.night .nav-cta {
  background: var(--white);
  color: var(--ink);
}

html.night .nav-cta:hover { background: var(--cyan); }

html.night .nav-toggle {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
}

html.night .nav-toggle .ico-moon { display: none; }
html.night .nav-toggle .ico-sun { display: block; }

.nav-expand {
  position: fixed;
  top: 0;
  right: 24px;
  z-index: 49;
  transform: translateY(calc(-100% - 4px));
  width: 44px;
  height: 22px;
  border: 1px solid rgba(4, 3, 3, 0.12);
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.35s var(--ease);
}

.nav-expand.show { transform: translateY(0); }
.nav-expand svg { width: 16px; height: 16px; }

html.night .nav-expand {
  background: var(--ink);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
}

/* menu do mobile */
.menu-sheet {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  z-index: 48;
  display: flex;
  flex-direction: column;
  padding: 8px 20px 24px;
  background: var(--white);
  border-bottom: 1px solid rgba(4, 3, 3, 0.1);
  box-shadow: 0 24px 40px -20px rgba(4, 3, 3, 0.25);
}

.menu-sheet[hidden] { display: none; }

.menu-sheet a {
  padding: 14px 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(4, 3, 3, 0.08);
}

.menu-sheet .menu-cta {
  margin-top: 18px;
  padding: 14px;
  border: 0;
  border-radius: 999px;
  background: var(--cyan);
  text-align: center;
  font-size: 17px;
}

html.night .menu-sheet {
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.1);
}

html.night .menu-sheet a {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.1);
}

html.night .menu-sheet .menu-cta { color: var(--ink); }

/* =====================================================================
   1. HERO — campo de pixels (canvas) + logo com mascote vivo
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  cursor: crosshair;
}

.hero-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-grid {
  flex: 1;
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(64px, 9vh, 120px) var(--gutter) 40px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
}

.hero-mark {
  grid-column: 1 / span 6;
  align-self: center;
  pointer-events: none;
}

.hero-logo {
  width: 100%;
  /* também limitado pela altura da tela, pra hero + carrossel caberem
     juntos em notebooks mais baixos (1.324 = proporção do logo) */
  max-width: min(620px, calc((88svh - 250px) * 1.324));
  height: auto;
  color: var(--white);
  overflow: visible;
}

.mascot {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.mascot.hop {
  animation: hop 0.62s var(--ease);
}

@keyframes hop {
  0%   { transform: translateY(0) scale(1, 1); }
  18%  { transform: translateY(0) scale(1.06, 0.9); }
  45%  { transform: translateY(-16%) scale(0.96, 1.05); }
  75%  { transform: translateY(0) scale(1.04, 0.95); }
  100% { transform: translateY(0) scale(1, 1); }
}

/* centrado com o logo: o bloco de texto e o logo dividem o mesmo eixo.
   O campo de pixels passa livre por baixo do texto (sem zona calma). Uma
   sombra justa no contorno das letras segura a leitura sobre pixel aceso sem
   escurecer a área em volta (blur largo somava linha a linha e virava caixa). */
.hero-copy {
  grid-column: 8 / span 5;
  align-self: center;
  text-shadow: 0 0 2px rgba(4, 3, 3, 0.95), 0 1px 3px rgba(4, 3, 3, 0.85);
}

.hero-copy .btn {
  text-shadow: none;
}

.hero-title {
  font-size: clamp(30px, 3.1vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 44ch;
}

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

.hero-foot {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 18px var(--gutter) 26px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  font-size: 13px;
  pointer-events: none;
}

/* assinatura discreta, no eixo central da tela */
.hero-place {
  grid-column: 2;
  text-align: center;
  color: rgba(255, 255, 255, 0.26);
}

.hero-hint {
  grid-column: 3;
  justify-self: end;
  color: var(--fg-3);
  transition: opacity 0.6s ease;
}

.hero.touched .hero-hint {
  opacity: 0;
}

/* ---- carrossel de clientes (base da hero) ----
   Mesma esteira e MESMOS TAMANHOS da página antiga: a escala --u abaixo é a
   mesma fórmula de lá (1vw num 16:9, encolhe em telas mais baixas) e os
   números *-tam / *-alt foram copiados sem mudança. Só a estética é nova. */
.clients {
  --u: min(1vw, calc(100svh / 56.25));
  --edge: 28px; /* mesmo recuo da nav */
}

/* "Trusted by" no meio da linha fina, que vai de ponta a ponta da tela */
.clients-label {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 var(--edge);
  margin-bottom: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1;
  color: var(--fg-3);
  white-space: nowrap;
}

.clients-label::before,
.clients-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.marquee {
  overflow: hidden;
  /* esteira de ponta a ponta da tela, sumindo suave nas duas bordas */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.marquee-track {
  /* movida pelo assets/js/marquee.js (velocidade lá). Sem will-change de
     propósito: promover a esteira a camada faz o Chrome descartar os tiles
     fora da tela e as logos entram invisíveis pela direita */
  display: flex;
  width: max-content;
}

.marquee-set {
  display: flex;
  align-items: center;
  flex: none;
  gap: calc(6 * var(--u));
  padding-right: calc(6 * var(--u));
}

/* =====================================================================
   AJUSTE DAS LOGOS — mesmos números da página antiga.
   *-tam = TAMANHO (maior = maior) · *-alt = posição vertical (positivo desce)
   ===================================================================== */
.marquee-set {
  --key2enable-tam: 6;   --key2enable-alt: -0.2;
  --clara-tam: 4.2;      --clara-alt: 0;
  --tarsi-tam: 5;        --tarsi-alt: -0.2;
  --hubble-tam: 4.8;     --hubble-alt: 0;
  --gedaii-tam: 3.2;     --gedaii-alt: 0;
}

.marquee-set a {
  position: relative;
  display: block;
  cursor: pointer;
}

/* o "pixel" da marca acende embaixo da logo em foco */
.marquee-set a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% + 2.7 * var(--u));
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: var(--cyan);
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}

.marquee-set a:hover::after,
.marquee-set a:focus-visible::after {
  transform: scale(1);
}

.marquee-set img {
  width: auto;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.marquee-set a:hover img,
.marquee-set a:focus-visible img {
  opacity: 1;
}

.marquee-set img[src*="key2enable"] {
  height: calc(var(--key2enable-tam) * var(--u));
  transform: translateY(calc(var(--key2enable-alt) * var(--u)));
}

.marquee-set img[src*="clara-senior"] {
  height: calc(var(--clara-tam) * var(--u));
  transform: translateY(calc(var(--clara-alt) * var(--u)));
}

.marquee-set img[src*="tarsi-ai"] {
  height: calc(var(--tarsi-tam) * var(--u));
  transform: translateY(calc(var(--tarsi-alt) * var(--u)));
}

.marquee-set img[src*="hubble"] {
  height: calc(var(--hubble-tam) * var(--u));
  transform: translateY(calc(var(--hubble-alt) * var(--u)));
}

.marquee-set img[src*="gedaii"] {
  height: calc(var(--gedaii-tam) * var(--u));
  transform: translateY(calc(var(--gedaii-alt) * var(--u)));
}

/* mobile (mesmo corte de 820px da página antiga): grade estática de 2
   linhas, sem esteira nem ímã — escala e tamanhos também iguais aos de lá */
@media (max-width: 820px) {
  .clients {
    --u: min(calc(100svh / 65), 3.35vw);
    --edge: var(--gutter);
    padding: 0 var(--edge);
  }

  .clients-label {
    padding: 0;
    gap: 16px;
    font-size: 19px;
    margin-bottom: 14px;
  }

  .marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee-track {
    display: block;
    width: auto;
    transform: none !important; /* vence o JS da esteira, se rodar */
  }

  /* só o primeiro conjunto vira a grade; os 3 clones do loop somem */
  .marquee-set:not(:first-child) {
    display: none;
  }

  .marquee-set {
    --clara-tam: 3.45;
    --tarsi-tam: 4.1;
    --hubble-tam: 2.65;
    --gedaii-tam: 2.1;
    --key2enable-tam: 4;
    --logos-larg: 27;   /* largura da grade (controla onde a linha quebra) */
    --logos-gapx: 2.6;  /* espaço horizontal entre as logos */
    --logos-gapy: 0;    /* espaço vertical entre as linhas */

    flex-wrap: wrap;
    justify-content: center;
    gap: calc(var(--logos-gapy) * var(--u)) calc(var(--logos-gapx) * var(--u));
    padding-right: 0;
    width: calc(var(--logos-larg) * var(--u));
    /* sem teto de 100%: a margem lateral nova não pode apertar a grade e
       quebrar 3 linhas (27u nunca passa de ~90% da tela, cabe sempre) */
    max-width: none;
    /* centrada na tela mesmo se passar da área de padding */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  /* ordem da grade: Clara + Tarsi / Hubble + GEDAII + key2enable */
  .marquee-set a[href*="clarasenior"] { order: 1; }
  .marquee-set a[href*="tarsi-ai"]    { order: 2; }
  .marquee-set a[href*="hubble"]      { order: 3; }
  .marquee-set a[href*="gedaii"]      { order: 4; }
  .marquee-set a[href*="key2enable"]  { order: 5; }

  .marquee-set a::after { display: none; }
}

/* =====================================================================
   2. STACK
   ===================================================================== */
main > .stack {
  padding: clamp(64px, 8vw, 112px) 0;
  border-bottom: 1px solid var(--line);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
}

.stack-intro {
  grid-column: 1 / span 4;
}

.stack-intro .muted {
  margin-top: 16px;
  max-width: 34ch;
}

.stack-list {
  grid-column: 6 / span 7;
}

.stack-list > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 26px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.stack-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.stack-list dt {
  flex: 0 0 100%;
  font-size: 13.5px;
  color: var(--fg-3);
}

.stack-list dd {
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg-2);
}

/* =====================================================================
   3. PROBLEMA
   ===================================================================== */
.seats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.seats li {
  padding: 32px 28px 8px 0;
}

.seats li + li {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.seat-who {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
  color: var(--fg-3);
}

.seats h3 {
  margin-top: 18px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.seats li > p:last-child {
  margin-top: 14px;
  font-size: 16px;
  color: var(--fg-2);
}

.problem-close {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 30ch;
  text-wrap: balance;
}

/* =====================================================================
   4. ARQUITETURA — camadas ligadas por fios; um lead percorre o sistema
   ===================================================================== */
.arch {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: stretch;
}

.arch-layer {
  position: relative;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  cursor: default;
  transition: border-color 0.45s ease, background 0.45s ease;
}

.arch-layer:focus-visible {
  outline-offset: 4px;
}

.arch-layer h3 {
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.arch-n {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
  transition: color 0.45s ease;
}

.arch-layer ul {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.arch-layer li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--fg-2);
  transition: border-color 0.45s ease, color 0.45s ease;
}

.arch-what,
.arch-trace {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--fg-2);
}

/* com JS, a descrição vai para o painel de detalhe abaixo do diagrama */
html.js .arch-layer .arch-what,
html.js .arch-layer .arch-trace {
  display: none;
}

.arch-layer.is-active {
  border-color: rgba(57, 199, 216, 0.7);
  background: rgba(57, 199, 216, 0.07);
}

.arch-layer.is-active .arch-n {
  color: var(--cyan);
}

.arch-layer.is-active li {
  border-color: rgba(57, 199, 216, 0.35);
  color: var(--fg);
}

/* fio entre camadas: linha fina + pixel ciano que viaja quando o lead passa */
.arch-wire {
  position: relative;
  align-self: center;
  height: 1px;
  background: var(--line-2);
}

.arch-wire i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  opacity: 0;
}

.arch-wire.flow i {
  animation: wire 0.7s var(--ease) forwards;
}

@keyframes wire {
  0%   { left: -4px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: calc(100% - 3px); opacity: 0; }
}

.arch-detail {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 20px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  min-height: 150px;
}

.arch-detail-what {
  grid-column: 1 / span 6;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
}

.arch-detail-trace {
  grid-column: 8 / span 5;
}

.arch-detail-trace small {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  color: var(--fg-3);
}

.arch-detail-trace p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 1.8vw, 25px);
  line-height: 1.3;
  color: var(--fg);
}

.arch-detail .fade {
  animation: fadein 0.5s ease both;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.arch-note {
  margin-top: 40px;
  font-size: 15px;
  color: var(--fg-3);
}

/* =====================================================================
   5. SERVIÇOS — índice de linhas que abrem
   ===================================================================== */
.svc-list {
  border-bottom: 1px solid var(--line);
}

.svc {
  border-top: 1px solid var(--line);
  interpolate-size: allow-keywords;
}

.svc summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 2fr) 36px;
  align-items: baseline;
  column-gap: 24px;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
}

.svc summary::-webkit-details-marker {
  display: none;
}

/* quadradinho ciano (o "pixel" do mascote) marca a linha aberta / em foco */
.svc summary::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  background: var(--cyan);
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}

.svc summary:hover::before,
.svc[open] summary::before {
  transform: scale(1);
}

.svc-name {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.svc-symptom {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.15;
  color: var(--fg-3);
  transition: color 0.3s ease;
}

.svc summary:hover .svc-symptom,
.svc[open] .svc-symptom {
  color: var(--fg);
}

.svc-front {
  font-size: 14px;
  color: var(--fg-3);
}

.svc-plus {
  position: relative;
  align-self: center;
  justify-self: end;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease);
}

.svc-plus::before,
.svc-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: currentColor;
}

.svc-plus::after {
  transform: rotate(90deg);
}

.svc[open] .svc-plus {
  transform: rotate(45deg);
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.svc::details-content {
  height: 0;
  overflow: hidden;
  transition: height 0.45s var(--ease), content-visibility 0.45s allow-discrete;
}

.svc[open]::details-content {
  height: auto;
}

.svc-body {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 2fr) 36px;
  column-gap: 24px;
  padding: 0 0 36px;
}

.svc-body > p {
  grid-column: 2;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 44ch;
}

.svc-body ul {
  grid-column: 2 / span 2;
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.svc-body li,
.owned li,
.rung li,
.fit li,
.no-charge li {
  position: relative;
  padding-left: 20px;
}

.svc-body li {
  font-size: 15px;
  color: var(--fg-2);
}

.svc-body li::before,
.rung li::before,
.fit-yes li::before,
.no-charge li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--cyan);
}

/* =====================================================================
   6. MÉTODO
   ===================================================================== */
main > .method {
  padding-top: 0;
}

.method .wrap,
.compare .wrap,
.team .wrap {
  position: relative;
  padding-top: var(--sec-y);
}

.method .wrap::before,
.compare .wrap::before,
.team .wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}

/* linha do tempo proporcional (4 semanas : ~20 semanas) */
.timeline {
  display: flex;
  gap: 6px;
  margin-bottom: 56px;
}

.tl-seg {
  padding-top: 14px;
  border-top: 3px solid var(--fg);
  font-size: 14px;
}

.tl-seg span {
  display: block;
  font-weight: 700;
}

.tl-seg small {
  font-size: 13.5px;
  color: var(--fg-3);
}

.tl-1 {
  flex: 1 0 0;
  min-width: 170px;
  border-top-color: var(--cyan);
}

.tl-2 {
  flex: 5 0 0;
}

.stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.stage {
  padding: 36px clamp(24px, 3vw, 40px) 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stage:first-child {
  border-color: rgba(57, 199, 216, 0.55);
}

.stage-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-3);
}

.stage-name span {
  display: block;
  margin-top: 4px;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.steps {
  counter-reset: step;
  margin-top: 28px;
}

.steps[start="3"] {
  counter-reset: step 2;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 26px 0 0 48px;
  border-top: 1px solid var(--line);
}

.steps li + li {
  margin-top: 28px;
}

.steps li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 30px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

.step-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.steps li > p:not(.step-label) {
  margin-top: 12px;
  font-size: 16px;
  color: var(--fg-2);
}

.who {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.who > div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  font-size: 14.5px;
}

.who dt {
  font-weight: 700;
}

.who dd {
  color: var(--fg-3);
}

.principle {
  margin-top: clamp(64px, 8vw, 112px);
  font-size: clamp(28px, 3.4vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 24ch;
  text-wrap: balance;
}

.principle em {
  display: block;
}

/* =====================================================================
   7. ARTEFATOS
   ===================================================================== */
.owned {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
}

.owned-group {
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}

.owned-stage {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--cyan);
}

.owned ul {
  margin-top: 20px;
  display: grid;
  gap: 0 32px;
}

.owned-group:last-child ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owned li {
  padding: 18px 0 18px 30px;
  border-bottom: 1px solid var(--line);
}

/* "check" em pixel: quadrado com marca vazada */
.owned li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 14px;
  height: 14px;
  background: var(--cyan);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M0 0h14v14H0z M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='%23000' stroke-width='0'/%3E%3Cpath fill-rule='evenodd' d='M0 0h14v14H0zM5.6 10.6 2.3 7.3l1.1-1.1 2.2 2.2 5-5 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill-rule='evenodd' d='M0 0h14v14H0zM5.6 10.6 2.3 7.3l1.1-1.1 2.2 2.2 5-5 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.owned h3 {
  font-size: 18px;
  letter-spacing: -0.015em;
}

.owned li p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--fg-3);
}

/* =====================================================================
   8. EXEMPLOS — workflows que "rodam" quando escolhidos
   ===================================================================== */
.flows {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: 24px;
  row-gap: 16px;
}

.flow-tabs {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.flow-tabs button {
  position: relative;
  padding: 22px 16px 22px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fg-3);
  cursor: pointer;
  transition: color 0.25s ease;
}

.flow-tabs button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  background: var(--cyan);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease);
}

.flow-tabs button:hover {
  color: var(--fg);
}

.flow-tabs button[aria-selected="true"] {
  color: var(--fg);
}

.flow-tabs button[aria-selected="true"]::before {
  transform: scaleY(1);
}

.flow-panel {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.flow-trigger,
.flow-out {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.flow-trigger span,
.flow-out span {
  flex: none;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--fg-3);
}

.flow-out {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  opacity: 0.35;
  transition: opacity 0.5s ease;
}

.flow-out span {
  border-color: var(--cyan);
  color: var(--fg);
}

.flow-panel.is-done .flow-out {
  opacity: 1;
}

.flow-steps {
  counter-reset: fs;
  margin-top: 24px;
}

.flow-steps li {
  counter-increment: fs;
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--fg-3);
  transition: color 0.35s ease;
}

.flow-steps li::before {
  content: counter(fs);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  align-self: center;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.flow-steps li::after {
  content: attr(data-t);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--fg-3);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.flow-steps li.is-running {
  color: var(--fg);
}

.flow-steps li.is-running::before {
  border-color: var(--cyan);
  animation: pulse 0.9s ease-in-out infinite;
}

.flow-steps li.is-done {
  color: var(--fg);
}

.flow-steps li.is-done::before {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.flow-steps li.is-done::after {
  opacity: 1;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 5px rgba(57, 199, 216, 0.18); }
}

.flow-replay {
  grid-column: 2;
  justify-self: start;
  padding: 6px 0;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-3);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--line-2);
  cursor: pointer;
}

.flow-replay:hover {
  color: var(--fg);
  text-decoration-color: var(--cyan);
}

/* =====================================================================
   9. COMPARAÇÃO
   ===================================================================== */
main > .compare {
  padding-top: 0;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cmp {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15.5px;
}

.cmp th,
.cmp td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.cmp thead th {
  padding-top: 0;
  padding-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-3);
  border-bottom-color: var(--line-2);
}

.cmp tbody th {
  width: 30%;
  padding-left: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cmp td {
  color: var(--fg-2);
}

.cmp .is-us {
  background: rgba(57, 199, 216, 0.08);
  color: var(--fg);
  font-weight: 700;
}

.cmp thead .is-us {
  position: relative;
  padding-top: 18px;
  color: var(--fg);
  border-radius: 12px 12px 0 0;
}

.cmp thead .is-us::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--cyan);
  border-radius: 12px 12px 0 0;
}

.cmp .yes {
  position: relative;
  padding-left: 18px;
}

.cmp .yes::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--cyan);
}

/* =====================================================================
   10. FIT / NÃO-FIT — metade clara, metade escura
   ===================================================================== */
main > .fit {
  padding: 0;
}

.fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fit-half {
  padding: var(--sec-y) 0;
}

.fit-inner {
  width: 100%;
  max-width: calc(var(--wrap) / 2 + var(--gutter));
  padding: 0 var(--gutter);
}

.fit-yes .fit-inner {
  margin-left: auto;
  padding-right: clamp(24px, 4vw, 64px);
}

.fit-no .fit-inner {
  padding-left: clamp(24px, 4vw, 64px);
}

.fit ul {
  margin-top: 40px;
}

.fit li {
  padding: 16px 0 16px 26px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  color: var(--fg-2);
}

.fit-yes li::before {
  top: calc(16px + 0.62em);
}

.fit-no li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(16px + 0.85em);
  width: 9px;
  height: 1.5px;
  background: var(--fg-3);
}

/* =====================================================================
   11. PREÇO — escada de três degraus
   ===================================================================== */
.ladder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.rung {
  display: flex;
  flex-direction: column;
  padding: 32px clamp(22px, 2.4vw, 34px) 34px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--fg);
  border-radius: 4px 4px var(--radius) var(--radius);
}

.rung:nth-child(1) { min-height: 520px; }
.rung:nth-child(2) { min-height: 580px; }
.rung:nth-child(3) { min-height: 640px; }

.rung-main {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  border-top-color: var(--cyan);
  --fg-2: rgba(255, 255, 255, 0.78);
  --fg-3: var(--grey-light);
  --line: rgba(255, 255, 255, 0.12);
}

html.night .rung-main {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  border-top-color: var(--cyan);
}

.rung-step {
  font-size: 14px;
  color: var(--fg-3);
}

.rung h3 {
  margin-top: 6px;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.rung-price {
  margin-top: auto;
  padding-top: 36px;
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.rung-price small {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--fg-3);
}

.rung-term {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--fg-3);
}

.rung-desc {
  margin-top: 20px;
  font-size: 15.5px;
  color: var(--fg-2);
}

.rung ul {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.rung li {
  font-size: 14.5px;
  color: var(--fg-2);
}

.no-charge {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.no-charge h3 {
  grid-column: 1 / span 4;
}

.no-charge ul {
  grid-column: 5 / span 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
}

.no-charge li {
  font-size: 16px;
  color: var(--fg-2);
}

/* =====================================================================
   12. WHY US — pessoas + fusos
   ===================================================================== */
main > .team {
  padding-top: 0;
}

.people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* espaço reservado para foto real (nada de banco de imagem) */
.photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, var(--soft) 10px 11px),
    var(--soft);
  border: 1px dashed var(--line-2);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.photo span {
  font-size: 13px;
  color: var(--fg-3);
}

.person h3 {
  font-size: 22px;
  letter-spacing: -0.025em;
}

.role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--fg-3);
}

.person > p:not(.role) {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--fg-2);
}

.person-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 500;
  text-underline-offset: 5px;
  text-decoration-color: var(--line-2);
}

.person-link:hover {
  text-decoration-color: var(--cyan);
}

.places {
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
  align-items: end;
}

.places-title {
  grid-column: 1 / span 5;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.places-title em {
  display: block;
}

.clocks {
  grid-column: 6 / span 3;
  display: grid;
  gap: 6px;
  font-size: 15px;
  color: var(--fg-3);
}

.clock {
  display: inline-block;
  min-width: 2.9em;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.places > .muted {
  grid-column: 9 / span 4;
  font-size: 15.5px;
}

/* =====================================================================
   13. DADOS E SEGURANÇA
   ===================================================================== */
.policies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
}

.policies li {
  padding: 26px 0 32px;
  border-top: 1px solid var(--line-2);
}

.policies h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.policies p {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--fg-3);
  max-width: 38ch;
}

/* =====================================================================
   14. FAQ
   ===================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 48px;
}

.faq-grid > h2 {
  grid-column: 1 / span 5;
  align-self: start;
  position: sticky;
  top: 112px;
}

.faq-list {
  grid-column: 7 / span 6;
  border-bottom: 1px solid var(--line);
}

.faq-list details {
  border-top: 1px solid var(--line);
  interpolate-size: allow-keywords;
}

.faq-list summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), background 0.3s ease;
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: rotate(0deg);
}

.faq-list details[open] summary::before,
.faq-list details[open] summary::after {
  background: var(--cyan);
}

.faq-list details::details-content {
  height: 0;
  overflow: hidden;
  transition: height 0.4s var(--ease), content-visibility 0.4s allow-discrete;
}

.faq-list details[open]::details-content {
  height: auto;
}

.faq-list details p {
  padding: 0 48px 26px 0;
  font-size: 16.5px;
  color: var(--fg-2);
  max-width: 60ch;
}

/* =====================================================================
   15. AGENDAMENTO
   ===================================================================== */
.book-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 48px;
  align-items: start;
}

.book-copy {
  grid-column: 1 / span 5;
}

.book-copy .lede {
  margin-top: 28px;
}

.host {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.photo-sm {
  width: 64px;
  margin: 0;
  border-radius: 50%;
  aspect-ratio: 1;
}

.photo-sm span {
  font-size: 10px;
}

.host-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.host-meta {
  font-size: 14.5px;
  color: var(--fg-3);
}

.routes {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.routes li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}

.routes span {
  color: var(--fg-3);
}

.routes a {
  text-underline-offset: 5px;
  text-decoration-color: var(--line-2);
}

.routes a:hover {
  text-decoration-color: var(--cyan);
}

/* card do contato: como a call acontece + o botão que abre o formulário
   (lead-form.js — o mesmo modal de todos os "Book a call") */
.book-card {
  grid-column: 7 / span 6;
  padding: clamp(28px, 3.4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.book-card-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.1;
}

.book-steps {
  counter-reset: bs;
  margin-top: 28px;
}

.book-steps li {
  counter-increment: bs;
  position: relative;
  padding: 20px 0 20px 48px;
  border-top: 1px solid var(--line);
}

.book-steps li::before {
  content: counter(bs);
  position: absolute;
  left: 0;
  top: 21px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.book-steps h4 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.book-steps p {
  margin-top: 4px;
  font-size: 15.5px;
  color: var(--fg-3);
}

.btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
}

.book-fine {
  margin-top: 14px;
  font-size: 13px;
  color: var(--fg-3);
  text-align: center;
}

.book-fine a {
  color: inherit;
  text-underline-offset: 3px;
}

/* =====================================================================
   RODAPÉ
   ===================================================================== */
.footer {
  padding: clamp(88px, 10vw, 144px) 0 40px;
  border-top: 1px solid var(--line);
}

.sign em {
  display: block;
}

.sign {
  font-size: clamp(44px, 8.4vw, 128px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.foot-row {
  margin-top: clamp(56px, 7vw, 96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
}

.foot-logo {
  height: 28px;
  width: auto;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.foot-links a {
  font-size: 15px;
  text-decoration: none;
  color: var(--fg-2);
}

.foot-links a:hover {
  color: var(--fg);
}

.foot-small {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--fg-3);
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.foot-legal a,
.foot-legal button {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  cursor: pointer;
}

.foot-legal a:hover,
.foot-legal button:hover {
  color: var(--fg);
}

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
@media (max-width: 1100px) {
  .nav-links a { padding: 8px 10px; font-size: 14px; }

  .seats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .seats li:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .arch {
    grid-template-columns: minmax(0, 1fr);
  }

  .arch-wire {
    justify-self: start;
    margin-left: 32px;
    width: 1px;
    height: 22px;
  }

  .arch-wire i { top: 0; left: -3px; }

  @keyframes wire {
    0%   { top: -4px; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { top: calc(100% - 3px); opacity: 0; }
  }

  .arch-layer { display: grid; grid-template-columns: 200px 1fr; column-gap: 20px; }
  .arch-layer ul { margin-top: 0; }

  .policies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-collapse { display: none; }

  .nav-menu { display: grid; }

  .nav {
    height: 52px;
    padding: 0 14px;
    gap: 10px;
  }

  .nav-logo img { height: 22px; }

  .nav-cta {
    font-size: 13px;
    padding: 7px 14px;
  }

  .nav-toggle {
    width: 32px;
    height: 32px;
  }

  .nav-toggle svg {
    width: 15px;
    height: 15px;
  }

  html { scroll-padding-top: 60px; }

  .sec-head > h2,
  .sec-head > .lede { grid-column: 1 / -1; }

  /* hero empilhada: logo em cima, texto embaixo */
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    row-gap: 40px;
    padding-top: 88px;
  }

  .hero-mark,
  .hero-copy { grid-column: 1; }

  .hero-mark { align-self: end; }

  .hero-logo { max-width: min(78vw, 440px); }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hero-hint { display: none; }

  .stack-intro,
  .stack-list { grid-column: 1 / -1; }

  /* camadas no mobile: a descrição aparece dentro da camada ativa */
  .arch-layer { display: block; }
  .arch-layer ul { margin-top: 14px; }
  .arch-detail { display: none; }

  html.js .arch-layer.is-active .arch-what,
  html.js .arch-layer.is-active .arch-trace { display: block; }

  .arch-layer .arch-trace {
    font-family: var(--serif);
    font-style: italic;
    font-size: 19px;
    line-height: 1.3;
    color: var(--fg);
  }

  .svc summary {
    grid-template-columns: minmax(0, 1fr) 36px;
    row-gap: 6px;
    padding: 24px 0;
  }

  .svc-name { grid-column: 1; }
  .svc-symptom { grid-column: 1; grid-row: 2; }
  .svc-front { display: none; }
  .svc-plus { grid-column: 2; grid-row: 1 / span 2; }
  .svc summary::before { display: none; }

  .svc-body { display: block; }
  .svc-body ul { grid-template-columns: minmax(0, 1fr); }

  .stages { grid-template-columns: minmax(0, 1fr); }

  .owned { grid-template-columns: minmax(0, 1fr); gap: 40px; }

  .flows { grid-template-columns: minmax(0, 1fr); }
  .flow-tabs { grid-row: auto; flex-direction: row; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .flow-tabs::-webkit-scrollbar { display: none; }
  .flow-tabs button { flex: none; max-width: 230px; padding: 14px 16px 16px; border-bottom: 0; font-size: 15px; }
  .flow-tabs button::before { left: 16px; right: 16px; top: auto; bottom: -1px; width: auto; height: 3px; transform: scaleX(0); }
  .flow-tabs button[aria-selected="true"]::before { transform: scaleX(1); }
  .flow-replay { grid-column: 1; }

  .fit { grid-template-columns: minmax(0, 1fr); }
  .fit-yes .fit-inner,
  .fit-no .fit-inner { max-width: none; margin: 0; padding: 0 var(--gutter); }

  .ladder { grid-template-columns: minmax(0, 1fr); }
  .rung:nth-child(n) { min-height: 0; }
  .rung-price { margin-top: 28px; padding-top: 0; }

  .no-charge h3,
  .no-charge ul { grid-column: 1 / -1; }

  .people { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .person { display: grid; grid-template-columns: 120px 1fr; column-gap: 20px; align-items: start; }
  .person .photo { grid-row: 1 / span 5; margin: 0; }

  .places-title,
  .clocks,
  .places > .muted { grid-column: 1 / -1; }

  /* tabela: rótulos das linhas ficam fixos enquanto as colunas rolam */
  .cmp { min-width: 680px; }
  .cmp tbody th,
  .cmp thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 150px;
    min-width: 150px;
    padding-right: 14px;
    background: var(--bg);
  }

  .faq-grid > h2,
  .faq-list { grid-column: 1 / -1; }
  .faq-grid > h2 { position: static; }

  .book-copy,
  .book-card { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .nav { gap: 8px; }
  .nav-right { gap: 8px; }
  .nav-cta { font-size: 12.5px; padding: 7px 12px; }

  .seats { grid-template-columns: minmax(0, 1fr); }
  .seats li,
  .seats li + li { padding: 28px 0 8px; border-left: 0; }
  .seats li + li { border-top: 1px solid var(--line); }

  .owned-group:last-child ul { grid-template-columns: minmax(0, 1fr); }

  .flow-steps li { grid-template-columns: 30px 1fr; }
  .flow-steps li::after { display: none; }
  .flow-trigger,
  .flow-out { flex-direction: column; gap: 8px; font-size: 17px; }

  .no-charge ul { grid-template-columns: minmax(0, 1fr); }

  .policies { grid-template-columns: minmax(0, 1fr); }

  .person { grid-template-columns: 88px 1fr; }

  .routes li { grid-template-columns: 96px 1fr; }

  .hero-foot { font-size: 12.5px; }
}

/* movimento reduzido: sem animações decorativas */
@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;
  }
}
