/* =========================================================
   Loop Consulting
   1. Tokens   2. Base   3. Layout   4. Componentes
   5. Seções   6. Movimento   7. Responsivo
   ========================================================= */

/* ---------- 1. Tokens ---------- */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --bg:        #ffffff;
  --surface:   #f4f4f2;
  --fg:        #0a0a0a;
  --fg-2:      #5a5a57;
  --fg-3:      #6e6e69;
  --fg-on-surface: #62625d;
  --line:      #e6e6e3;
  --line-2:    #d2d2ce;
  --line-3:    #8e8e88;

  /* Único ponto de cor. Sobre ele, a tinta é sempre preta. */
  --accent:    #5cadf5;
  --ink-blue:  #050817;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(22px, 4.5vw, 56px);
  --shell: 1240px;

  --pad-section: clamp(104px, 11vw, 176px);
  --gap-block:   clamp(60px, 6.5vw, 100px);
  --header-h: 62px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line-2) transparent;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: .9375rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--fg);
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

::selection { background: var(--accent); color: var(--fg); }

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 2px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 45%, transparent);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border: 3px solid var(--bg);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--fg-3); }

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 9px 16px;
  background: var(--fg);
  color: var(--bg);
  font-size: .8125rem;
  font-weight: 500;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus-visible { transform: none; }

.label { font-size: .8125rem; color: var(--fg-3); }

/* ---------- 3. Layout ---------- */

.shell {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  padding-block: var(--pad-section);
  border-top: 1px solid var(--line);
  text-align: center;
}

.section__head {
  max-width: 40ch;
  margin-inline: auto;
  margin-bottom: clamp(56px, 6.5vw, 104px);
}

.section__head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.section__lead {
  margin-top: clamp(18px, 2vw, 26px);
  margin-inline: auto;
  max-width: 42ch;
  font-size: clamp(1rem, 1.15vw, 1.0625rem);
  line-height: 1.62;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* ---------- 4. Componentes ---------- */

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-soft);
}
.header.is-stuck { border-bottom-color: var(--line); }

.header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand { display: flex; align-items: center; justify-self: start; }
.brand img {
  height: 17px;
  width: auto;
  transition: opacity .25s var(--ease-soft);
}
.brand:hover img { opacity: .55; }

.nav {
  display: flex;
  justify-self: center;
  gap: clamp(18px, 2.2vw, 34px);
  font-size: .8125rem;
  color: var(--fg-2);
}
.nav a {
  position: relative;
  padding-block: 5px;
  transition: color .2s var(--ease-soft);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--fg); }
.nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
}

.icon-btn {
  display: none;
  place-items: center;
  width: 34px; height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
  transition: color .2s var(--ease-soft), border-color .2s var(--ease-soft), background-color .2s var(--ease-soft);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--fg); border-color: var(--line); background: var(--surface); }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding-inline: 24px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s var(--ease-soft), color .3s var(--ease-soft),
              border-color .3s var(--ease-soft), transform .3s var(--ease);
}
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--fg); }
.btn--ghost { background: var(--bg); color: var(--fg); border-color: var(--line-3); }
.btn--ghost:hover { border-color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn--sm { height: 34px; padding-inline: 16px; font-size: .8125rem; }

.btn__arrow { width: 16px; height: 16px; transition: transform .35s var(--ease), color .3s var(--ease-soft); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--solid .btn__arrow { color: var(--accent); }
.btn--solid:hover .btn__arrow { color: currentColor; }

/* Menu mobile */
.sheet {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 90;
  background: var(--bg);
  display: grid;
  align-content: start;
  opacity: 0;
  transition: opacity .3s var(--ease-soft);
}
.sheet[hidden] { display: none; }
.sheet.is-open { opacity: 1; }
.sheet__inner { padding-block: clamp(32px, 8vh, 64px); text-align: center; }

.sheet__nav { display: grid; }
.sheet__nav a {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 500;
}
.sheet__foot {
  display: grid;
  gap: 10px;
  margin-top: 40px;
  font-size: .875rem;
  color: var(--fg-2);
}
.sheet__foot a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }

/* Container: o fio define, o fundo continua branco */
.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(32px, 4.2vw, 68px);
}
.panel--flush { padding: 0; overflow: hidden; }

/* Espaços de imagem */
.slot {
  position: relative;
  display: grid;
  place-items: center;
  justify-items: center;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
}
.slot img { width: 100%; height: 100%; object-fit: cover; grid-area: 1 / 1; }
.slot__label { grid-area: 1 / 1; font-size: .75rem; color: var(--fg-on-surface); }
.slot:has(img) { background: none; }
.slot:has(img) .slot__label { display: none; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding-inline: 9px;
  border-radius: 999px;
  background: var(--accent);
  font-size: .6875rem;
  font-weight: 500;
  color: var(--fg);
}

/* ---------- 5. Seções ---------- */

/* Hero: campo de código em volta, centro embaçado */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(120px, 14vh, 132px);
  padding-bottom: clamp(120px, 12vh, 124px);
  text-align: center;
  overflow: hidden;
}

.hero__code {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 3vw, 52px);
  padding-inline: var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 2;
  color: var(--fg-2);
  opacity: .52;
  text-align: left;
  white-space: pre;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 13%, #000 74%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 13%, #000 74%, transparent 100%);
}
.hero__col { overflow: hidden; }
.hero__col > pre { animation: code-drift var(--dur, 30s) linear infinite; }
.hero__col--down > pre { animation-direction: reverse; }

@keyframes code-drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

/* O véu: desfoca e clareia só o miolo, sem borda nenhuma */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  /* No mobile é uma faixa horizontal: código em cima e embaixo, texto limpo no meio. */
  background: linear-gradient(to bottom,
              rgba(255, 255, 255, 0) 0%,
              rgba(255, 255, 255, .97) 17%,
              rgba(255, 255, 255, .97) 83%,
              rgba(255, 255, 255, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 17%, #000 83%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 17%, #000 83%, transparent 100%);
}

.hero__inner { max-width: 780px; margin-inline: auto; }

.hero__title {
  font-size: clamp(2.375rem, 6.4vw, 5rem);
  font-weight: 660;
  line-height: .95;
  letter-spacing: -.04em;
}
.hero__title .line {
  display: flex;
  justify-content: center;
}
.hero__title .line > span {
  display: block;
  min-height: .95em;
  white-space: pre-wrap;
}

/* o cursor entra quando o título termina de se acomodar, e fica piscando */
.hero__title .line.has-caret > span::after {
  content: "";
  display: inline-block;
  width: .07em;
  height: .78em;
  margin-left: .05em;
  vertical-align: -.06em;
  background: var(--accent);
  animation: caret .9s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }


.hero__lead {
  margin: clamp(24px, 3vw, 34px) auto 0;
  max-width: 44ch;
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--fg-2);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(32px, 3.8vw, 46px);
}

/* Clientes */
.clients-band {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: clamp(52px, 5.5vw, 76px);
  text-align: center;
}
.clients-band .label { margin-bottom: clamp(24px, 2.6vw, 34px); }

.clients {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 40px);
}
/* Slot de largura fixa: o respiro entre marcas para de depender do desenho
   de cada logo. */
.clients li {
  flex: 0 0 auto;
  width: clamp(104px, 12.5vw, 148px);
  display: grid;
  place-items: center;
}
.clients img { max-width: 100%; }
.clients img {
  height: calc(20px * var(--logo-h, 1));
  width: auto;
  opacity: .46;
  transition: opacity .3s var(--ease-soft);
}
.clients li:hover img { opacity: 1; }
/* Grade 3x2: seis peças soltas, cada uma com o próprio fio. O conteúdo
   assenta no topo e à esquerda, então as seis compartilham uma régua e a
   diferença de altura do texto deixa de virar folga irregular. */
.grade {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.3vw, 18px);
}
.grade li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(26px, 2.8vw, 38px);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .3s var(--ease-soft);
}
.grade li:hover { border-color: var(--line-2); }

.grade__icone {
  width: 25px; height: 25px;
  fill: none;
  stroke: var(--fg-3);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s var(--ease-soft);
}
.grade li:hover .grade__icone { stroke: var(--fg); }

.grade__titulo { margin-top: 8px; font-size: 1.0625rem; font-weight: 600; text-wrap: balance; }
.grade__texto { max-width: 32ch; color: var(--fg-2); text-wrap: pretty; }

@media (max-width: 900px) { .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grade { grid-template-columns: minmax(0, 1fr); } }

/* Cases */
.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2.6vw, 36px);
}

.case {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(14px, 1.3vw, 18px);
  padding-bottom: clamp(28px, 2.6vw, 36px);
  transition: border-color .3s var(--ease-soft);
}
.case:hover { border-color: var(--line-2); }

.case__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
}
.case__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Monocromático em repouso; a cor real aparece na aproximação. */
  filter: grayscale(1) contrast(1.04);
  transition: filter .55s var(--ease-soft), transform .8s var(--ease);
}
@media (hover: hover) {
  .case:hover .case__media img,
  .case:focus-within .case__media img { filter: none; transform: scale(1.04); }
}

.case__body {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: clamp(22px, 2.2vw, 30px);
  padding-inline: clamp(8px, 1.4vw, 20px);
}
.case__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
}
.case__meta { font-size: .8125rem; color: var(--fg-3); }
.case__text {
  margin-top: 6px;
  max-width: 32ch;
  font-size: .9375rem;
  color: var(--fg-2);
  text-wrap: balance;
}
/* Ferramentas rodando */
.section--tools { padding-bottom: clamp(72px, 8vw, 116px); }

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.marquee + .marquee { margin-top: 14px; }

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 54s linear infinite;
}
.marquee--reverse .marquee__track { animation-duration: 66s; animation-direction: reverse; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

.marquee__row { display: flex; gap: 14px; padding-right: 14px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.chip__logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: .82;
  flex: 0 0 auto;
}
.chip__name { font-size: .9375rem; font-weight: 600; }
.chip__use  { font-size: .8125rem; color: var(--fg-3); }
.chip--more { background: var(--accent); border-color: transparent; padding-inline: 22px; }
.chip--more .chip__use { color: var(--fg); }
.chip__plus { font-size: 1.125rem; font-weight: 500; color: var(--fg); line-height: 1; }

/* Nosso jeito: metade texto, metade vídeo */
.section--core { padding-bottom: 0; }

.core {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  text-align: left;
  padding: clamp(24px, 2.8vw, 40px);
}

.core__copy { padding: clamp(4px, 1.8vw, 26px); }
.core__title {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 600;
  line-height: 1.14;
  margin-bottom: clamp(18px, 2vw, 26px);
}
.core__text { color: var(--fg-2); max-width: 42ch; text-wrap: pretty; }
.core__text + .core__text { margin-top: 16px; }

.core__media {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  align-content: center;
  gap: 14px;
}
.core__media video {
  grid-area: 1 / 1;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.core__media:has(video) { background: none; }
.core__media:has(video) :is(.core__play, .slot__label) { display: none; }
.core__media .slot__label { grid-area: auto; order: 2; }
.core__play { order: 1; color: var(--fg-on-surface); }
.core__play svg { width: 40px; height: 40px; display: block; }

/* Painel accent + mockup (classes .pages*/.mock*, hoje usadas pela seção LOOP Intel) */
.section--pages { border-top: 0; padding-block: clamp(48px, 5.5vw, 84px) var(--pad-section); }

.panel--accent {
  background: var(--ink-blue);
  border-color: transparent;
  color: #ffffff;
  padding: clamp(32px, 4.4vw, 68px);
  text-align: left;
  overflow: hidden;
}

.pages {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(36px, 4.5vw, 72px);
  align-items: center;
}

.pages__label { font-size: .8125rem; font-weight: 600; color: var(--accent); }
.pages__label b { font-weight: 700; }
.pages__mark { font-style: normal; color: var(--accent); }
.pages__mark b { font-weight: inherit; }
.pages__title {
  margin-top: 12px;
  font-size: clamp(1.5rem, 2.8vw, 2.375rem);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}
.pages__text {
  margin-top: clamp(18px, 2.2vw, 26px);
  max-width: 40ch;
  font-size: clamp(1rem, 1.15vw, 1.0625rem);
  line-height: 1.62;
  color: rgba(255, 255, 255, .78);
  text-wrap: pretty;
}
.btn--onaccent {
  margin-top: clamp(26px, 3vw, 38px);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-blue);
}
.btn--onaccent .btn__arrow { color: currentColor; }
.btn--onaccent:hover { background: transparent; border-color: #ffffff; color: #ffffff; }

/* Mockup: MacBook e iPhone com código correndo nas telas */
.mock {
  position: relative;
  container-type: inline-size;
  padding-bottom: 6%;
  --bezel: #1c2338;
  --tela:  #080c1c;
}

.mock__laptop { width: 100%; }

.mock__screen {
  position: relative;
  overflow: hidden;
  background: var(--tela);
  border: 1px solid rgba(255, 255, 255, .14);
}
.mock__screen--laptop {
  aspect-ratio: 16 / 10;
  border-radius: 12px 12px 4px 4px;
  padding: 12px;
  background: var(--bezel);
  box-shadow: 0 26px 50px rgba(0, 0, 0, .5);
}
.mock__screen--laptop .mock__loop {
  height: 100%;
  border-radius: 3px;
  background: var(--tela);
}

.mock__base {
  position: relative;
  height: 14px;
  margin-inline: -5.6%;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #232b42 0%, #161c2e 55%, #0e1322 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-top: 0;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .45);
}
.mock__base span {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 15%;
  height: 5px;
  border-radius: 0 0 5px 5px;
  background: rgba(255, 255, 255, .16);
}

.mock__phone {
  position: absolute;
  right: 3%;
  bottom: 0;
  z-index: 2;
  width: 27%;
  padding: 6px;
  border-radius: 26px;
  background: var(--bezel);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: -14px 18px 40px rgba(0, 0, 0, .45);
}
.mock__screen--phone {
  aspect-ratio: 9 / 18.5;
  border-radius: 21px;
  border: 0;
}
.mock__notch {
  position: absolute;
  top: 13px; left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 8px;
  border-radius: 999px;
  background: #10162a;
}

/* janela do navegador dentro do MacBook */
.mock__win {
  position: absolute;
  inset: 12px 12px auto 12px;
  z-index: 3;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 10px;
  border-radius: 3px 3px 0 0;
  background: #10182c;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mock__dots { display: flex; gap: 4px; }
.mock__dots i {
  width: 5px; height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}
.mock__url {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  max-width: 62%;
}

/* varredura lenta e brilho da tela */
.mock__sweep {
  position: absolute;
  left: 0; right: 0;
  height: 34%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
              transparent,
              color-mix(in srgb, var(--accent) 12%, transparent),
              transparent);
  animation: mock-sweep 7s ease-in-out infinite;
}
.mock__screen--phone .mock__sweep { animation-duration: 5.4s; animation-delay: 1.2s; }

@keyframes mock-sweep {
  0%, 100% { top: -34%; opacity: 0; }
  12%      { opacity: 1; }
  88%      { opacity: 1; }
  99%      { top: 100%; opacity: 0; }
}

.mock__glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(128deg,
              rgba(255, 255, 255, .07) 0%,
              rgba(255, 255, 255, .02) 26%,
              transparent 52%);
}

/* o código dentro das telas */
.mock__loop {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .5);
  white-space: pre;
  padding: 10px 12px;
}
.mock__screen--laptop .mock__loop { padding-top: 42px; }
.mock__screen--phone .mock__loop { height: 100%; font-size: 7px; padding: 24px 9px 12px; }

/* cores do código: só branco e o azul da marca */
.mock__loop .k { color: rgba(255, 255, 255, .88); }
.mock__loop .s { color: var(--accent); }
.mock__loop .n { color: color-mix(in srgb, var(--accent) 78%, #ffffff); }
.mock__loop .c { color: rgba(255, 255, 255, .28); font-style: italic; }
.mock__loop > pre { animation: mock-drift 22s linear infinite; }
.mock__screen--phone .mock__loop > pre { animation-duration: 17s; animation-direction: reverse; }

@keyframes mock-drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

/* Com container queries o mockup vira uma miniatura fiel em qualquer largura:
   moldura, raio, entalhe e código encolhem juntos, em vez de virar borrão.
   O telefone é um container à parte, senão o código dele deixaria de acompanhar
   a própria tela e o loop abriria buraco. */
@supports (container-type: inline-size) {
  .mock__screen--laptop { padding: 2.3cqw; border-radius: 2.3cqw 2.3cqw .8cqw .8cqw; }
  .mock__win {
    inset: 2.3cqw 2.3cqw auto 2.3cqw;
    height: 4.2cqw;
    gap: 1.9cqw;
    padding-inline: 1.9cqw;
    border-radius: .6cqw .6cqw 0 0;
  }
  .mock__dots { gap: .8cqw; }
  .mock__dots i { width: 1cqw; height: 1cqw; }
  .mock__url { height: 1.5cqw; }

  .mock__base { height: 2.6cqw; border-radius: 0 0 1.9cqw 1.9cqw; }
  .mock__base span { height: 1cqw; border-radius: 0 0 1cqw 1cqw; }

  .mock__screen--laptop .mock__loop { font-size: 1.55cqw; padding: 8cqw 2.3cqw 1.9cqw; }

  .mock__phone {
    container-type: inline-size;
    padding: 1.15cqw;
    border-radius: 4.9cqw;
  }
  .mock__screen--phone { border-radius: 14.5cqw; }
  .mock__notch { top: 9cqw; height: 5.5cqw; }
  .mock__screen--phone .mock__loop { font-size: 5.1cqw; padding: 16.5cqw 6cqw 8.3cqw; }
}

/* Agenda */
.booking { display: grid; justify-items: center; gap: clamp(36px, 4vw, 56px); }

.booking__embed {
  position: relative;
  width: 100%;
  max-width: 940px;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.booking__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  font-size: .8125rem;
  color: var(--fg-3);
  transition: opacity .4s var(--ease-soft);
}
.booking__loading.is-done { opacity: 0; pointer-events: none; }

.spinner {
  width: 20px; height: 20px;
  border: 1.5px solid var(--line-2);
  border-top-color: var(--fg);
  border-radius: 999px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.booking__fallback, .booking__error {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 32px;
  color: var(--fg-2);
  font-size: .875rem;
}
.booking__fallback a, .booking__error a { text-decoration: underline; text-underline-offset: 4px; }

.booking__aside { display: grid; gap: 16px; justify-items: center; }
.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(20px, 3vw, 36px);
  font-size: .875rem;
}
.contact a {
  color: var(--fg-2);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--line-2);
  transition: color .2s var(--ease-soft), text-decoration-color .2s var(--ease-soft);
}
.contact a:hover { color: var(--fg); text-decoration-color: var(--accent); }

/* Rodapé */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 5.5vw, 88px) clamp(28px, 2.6vw, 36px);
  text-align: left;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 64px) clamp(28px, 3vw, 56px);
}

.brand--footer img { height: 19px; }
.footer__pitch {
  margin-top: 20px;
  max-width: 38ch;
  font-size: .875rem;
  color: var(--fg-2);
  text-wrap: pretty;
}
.footer__contato { margin-top: 22px; display: grid; gap: 7px; font-size: .875rem; }
.footer__contato a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color .3s var(--ease-soft); }
.footer__contato a:hover { text-decoration-color: var(--fg); }

.footer__titulo {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 16px;
}
.footer__col ul { display: grid; gap: 9px; font-size: .875rem; }
.footer__col a { color: var(--fg-2); transition: color .3s var(--ease-soft); }
.footer__col a:hover { color: var(--fg); }

/* Um botão que mora numa lista de links: veste-se como link, mas continua
   sendo botão para o teclado e para o leitor de tela. */
.footer__link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--fg-2);
  cursor: pointer;
  text-align: left;
  transition: color .3s var(--ease-soft);
}
.footer__link-btn:hover { color: var(--fg); }

.footer__dados { display: grid; gap: 16px; font-size: .875rem; line-height: 1.7; color: var(--fg-2); }
.footer__dado b { display: block; color: var(--fg); font-weight: 600; margin-bottom: 2px; }

/* Faixa de confiança: nada de selo genérico, só o que é verificável.
   Mesmo traço dos ícones da grade, para não abrir família nova. */
.footer__selos {
  margin-top: clamp(40px, 4.5vw, 64px);
  padding-top: clamp(24px, 2.6vw, 32px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 40px);
}
.footer__selos li { display: flex; gap: 12px; align-items: flex-start; }
.footer__selos svg {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 1px;
  fill: none;
  stroke: var(--line-3);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer__selos span { display: grid; gap: 2px; font-size: .8125rem; color: var(--fg-3); line-height: 1.6; }
.footer__selos b { color: var(--fg); font-weight: 600; }
.footer__selos a {
  color: var(--fg-2);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
  transition: text-decoration-color .3s var(--ease-soft);
}
.footer__selos a:hover { text-decoration-color: var(--fg); }


.footer__base {
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: clamp(20px, 2vw, 28px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px clamp(20px, 3vw, 40px);
}
.footer__meta {
  font-size: .75rem;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__marca { grid-column: 1 / -1; }
  .footer__selos { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Onde se toca com o dedo, o alvo precisa de 44px. O texto continua do
     mesmo tamanho: quem cresce é a área, não a letra. */
  .footer__col ul,
  .footer__contato { gap: 0; }
  .footer__col ul a,
  .footer__col ul .footer__link-btn,
  .footer__contato a,
  .footer__selos a,
  .brand--footer {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer__selos span { gap: 0; }
}
@media (max-width: 560px) {
  .footer__grid,
  .footer__selos { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Consentimento de cookies ----------
   Barra ancorada embaixo, não modal: ela informa e some, não sequestra a
   página. Só aparece quando a agenda se aproxima, que é o único ponto do
   site onde existe cookie de terceiro. */

.cookies {
  position: fixed;
  z-index: 180;
  left: 0; right: 0; bottom: 0;
  padding: var(--gutter);
  padding-bottom: max(var(--gutter), env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cookies__caixa {
  pointer-events: auto;
  width: min(100%, 620px);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .13);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s var(--ease-soft), transform .4s var(--ease);
}
.cookies.is-open .cookies__caixa { opacity: 1; transform: none; }

.cookies__titulo { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.cookies__texto {
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 62ch;
  text-wrap: pretty;
}
.cookies__texto b { color: var(--fg); font-weight: 600; }
.cookies__texto a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
.cookies__texto a:hover { text-decoration-color: var(--fg); }
.cookies__acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cookies__acoes .btn { height: 40px; font-size: .8125rem; }

/* Agenda antes da decisão e depois de uma recusa: nos dois casos a caixa
   explica por que está vazia, em vez de ficar um retângulo branco. */
.booking__espera {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  min-height: 320px;
  padding: clamp(28px, 4vw, 56px);
  text-align: center;
}
.booking__espera p { max-width: 42ch; color: var(--fg-2); font-size: .9375rem; text-wrap: pretty; }

.booking__recusado {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  min-height: 320px;
  padding: clamp(28px, 4vw, 56px);
  text-align: center;
}
.booking__recusado p { max-width: 46ch; color: var(--fg-2); font-size: .9375rem; text-wrap: pretty; }
.booking__recusado-alt { font-size: .8125rem; }
.booking__recusado-alt a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

@media (max-width: 480px) {
  .cookies__acoes .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cookies__caixa { transform: none; }
}

/* ---------- Documento legal (privacidade) ----------
   Uma coluna de leitura, medida de texto corrida e uma âncora de índice.
   Mesmos tokens do site: sem mundo visual novo para uma página de texto. */

.doc { padding-block: clamp(64px, 7vw, 120px) clamp(64px, 7vw, 112px); }
.doc__shell { max-width: 780px; }

.doc__head { padding-bottom: clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.doc h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.doc__lead {
  margin-top: 16px;
  font-size: 1.0625rem;
  color: var(--fg-2);
  max-width: 54ch;
  text-wrap: pretty;
}
.doc__vigencia {
  margin-top: 20px;
  font-size: .75rem;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

.doc__indice {
  margin-top: clamp(32px, 3.5vw, 48px);
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.doc__indice-titulo {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
}
.doc__indice ol {
  display: grid;
  gap: 8px;
  counter-reset: doc;
  font-size: .9375rem;
}
.doc__indice li { counter-increment: doc; display: flex; gap: 10px; }
.doc__indice li::before {
  content: counter(doc);
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
  min-width: 1.2em;
}
.doc__indice a { color: var(--fg-2); transition: color .3s var(--ease-soft); }
.doc__indice a:hover { color: var(--fg); }

.doc__sec { margin-top: clamp(44px, 5vw, 68px); scroll-margin-top: calc(var(--header-h) + 24px); }
.doc__sec h2 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.doc__sec p { max-width: 68ch; color: var(--fg-2); text-wrap: pretty; }
.doc__sec p + p { margin-top: 14px; }
.doc__sec b { color: var(--fg); font-weight: 600; }
.doc__sec a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
  transition: text-decoration-color .3s var(--ease-soft);
}
.doc__sec a:hover { text-decoration-color: var(--fg); }
.doc__sec code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--surface);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--fg);
}

.doc__lista { margin-top: 16px; display: grid; gap: 12px; max-width: 68ch; }
.doc__lista li {
  position: relative;
  padding-left: 22px;
  color: var(--fg-2);
  text-wrap: pretty;
}
.doc__lista li::before {
  content: "";
  position: absolute;
  left: 2px; top: .72em;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--line-3);
}
.doc__lista--direitos { gap: 7px; }

.doc__destaque {
  margin-top: 18px;
  padding: clamp(18px, 2vw, 24px);
  background: var(--surface);
  border-radius: 12px;
}

.doc__tabela-wrap { margin-top: 20px; overflow-x: auto; }
.doc__tabela {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: .875rem;
  text-align: left;
}
.doc__tabela caption {
  text-align: left;
  font-size: .75rem;
  color: var(--fg-3);
  padding-bottom: 12px;
}
.doc__tabela th {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--line-2);
  vertical-align: bottom;
}
.doc__tabela td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-2);
  vertical-align: top;
}
.doc__tabela td:first-child { white-space: nowrap; color: var(--fg); }

.footer__meta a {
  color: var(--fg-3);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
.footer__meta a:hover, .footer__meta .footer__link-btn:hover { color: var(--fg); }
.footer__meta .footer__link-btn { font-size: inherit; color: var(--fg-3); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ---------- 6. Movimento ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee { overflow-x: auto; }
  .mock__loop > pre { animation: none; }
  .js .pilha.is-live .pilha__plano { animation: none; }
  /* Depois na cascata, a regra da faixa tem a mesma especificidade e venceria:
     aqui o !important garante que nada fique esperando o atraso para aparecer. */
  .js .section.in-view .fonte { animation: none !important; }
}

/* ---------- Seção escura ----------
   Só os tokens mudam. Fios, fontes, infográfico e cases herdam sozinhos. */

.section--dark {
  --bg:        #050817;
  --surface:   #0d1226;
  --fg:        #ffffff;
  --fg-2:      rgba(255, 255, 255, .72);
  --fg-3:      rgba(255, 255, 255, .54);
  --fg-on-surface: rgba(255, 255, 255, .72);
  --line:      rgba(255, 255, 255, .13);
  --line-2:    rgba(255, 255, 255, .22);
  --line-3:    rgba(255, 255, 255, .4);

  background: #050817;
  color: #ffffff;
  border-top-color: transparent;
}
.section--dark .tag { color: var(--ink-blue); }
.section--dark .label { color: var(--accent); font-weight: 600; }
.section--dark .label b { font-weight: 700; }

.dados { display: grid; gap: clamp(72px, 9vw, 136px); }
.dados__titulo {
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
@media (max-width: 620px) {
  /* No estreito o clamp trava no mínimo e o título fica colado no que vem
     abaixo. Aqui o respiro é dado na mão. */
  .dados__titulo { margin-bottom: 56px; }
}

.dados__nota {
  max-width: 52ch;
  margin-inline: auto;
  margin-top: clamp(18px, 2vw, 26px);
  font-size: .875rem;
  color: var(--fg-3);
  text-wrap: pretty;
}

/* ---------- De onde vem o dado ----------
   Uma fonte por faixa, dentro de um contorno só: a marca à esquerda diz o
   tipo de lugar, o texto diz o que se procura ali e a régua da direita diz
   exatamente quais campos saem de cada fonte. Sem caixas soltas: o fio
   horizontal já separa, e a leitura desce em coluna única. */

.fonte-lista {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

/* Quatro colunas: marca, nome, o que se procura, os campos que saem. O nome
   numa coluna própria vira a régua vertical que se lê de cima a baixo. */
.fonte {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 17ch) minmax(0, 1fr) minmax(0, 23ch);
  align-items: start;
  column-gap: clamp(16px, 2.4vw, 36px);
  row-gap: 10px;
  padding: clamp(22px, 2.6vw, 34px) clamp(22px, 3vw, 40px);
  text-align: left;
  border-bottom: 1px solid var(--line);
  transition: background-color .45s var(--ease-soft);
}
.fonte:last-child { border-bottom: 0; }
.fonte:hover { background: var(--surface); }

/* O fio de baixo acende no acento quando a faixa está sob o cursor. Fica
   colado na borda existente, um pixel abaixo, para não engordar o contorno. */
.fonte::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease);
}
.fonte:last-child::after { bottom: 0; }
.fonte:hover::after { transform: scaleX(1); }

.fonte__marca {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  margin-top: 1px;
  color: var(--line-3);
  transition: color .45s var(--ease-soft);
}
.fonte__marca svg { width: 100%; height: 100%; display: block; }
.fonte:hover .fonte__marca { color: var(--accent); }

.fonte__nome {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.38;
  text-wrap: balance;
}
.fonte__texto { color: var(--fg-2); max-width: 54ch; text-wrap: pretty; }

/* Os campos são a mesma pastilha das saídas, um degrau mais baixa: ali é
   destino, aqui é matéria-prima. */
.fonte__campos {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 3px;
}
.fonte__campos li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--fg-3);
  white-space: nowrap;
  transition: border-color .45s var(--ease-soft), color .45s var(--ease-soft);
}
.fonte:hover .fonte__campos li { border-color: var(--line-2); color: var(--fg-2); }

/* Entrada em cascata, uma faixa depois da outra. Como no painel: o estado
   padrão é visível e a animação só parte dele quando o observador dispara. */
@keyframes fonte-entra { from { opacity: 0; transform: translateY(14px); } }

.js .section.in-view .fonte { animation: fonte-entra .7s var(--ease) both; }
.js .section.in-view .fonte:nth-child(1) { animation-delay: .06s; }
.js .section.in-view .fonte:nth-child(2) { animation-delay: .14s; }
.js .section.in-view .fonte:nth-child(3) { animation-delay: .22s; }
.js .section.in-view .fonte:nth-child(4) { animation-delay: .30s; }
.js .section.in-view .fonte:nth-child(5) { animation-delay: .38s; }

/* No estreito a régua de campos desce para baixo do texto, alinhada com ele:
   a marca continua sendo a única coisa na primeira coluna. */
@media (max-width: 1020px) {
  .fonte { grid-template-columns: auto minmax(0, 15ch) minmax(0, 1fr); }
  .fonte__campos { grid-column: 3; justify-content: flex-start; margin-top: 4px; }
}

/* No estreito tudo desce numa coluna só, à direita da marca: ela continua
   sendo a única coisa na primeira coluna, e a leitura vira uma lista. */
@media (max-width: 720px) {
  .fonte { grid-template-columns: auto minmax(0, 1fr); }
  .fonte__nome, .fonte__texto, .fonte__campos { grid-column: 2; }
}

/* ---------- Infográfico: do ruído à decisão ----------
   A pilha mostra a mesma base perdendo ruído camada a camada: a densidade
   de pontos cai, e o que sobra no topo é o que vira conversa. */

.refino {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  text-align: left;
}

.pilha { perspective: 1100px; display: grid; place-items: center; padding-block: clamp(28px, 4vw, 56px) 0; }
.pilha__cena {
  --passo: 52px;
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-40deg);
}
.pilha__plano {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, .028);
  transform: translateZ(calc(var(--i) * var(--passo)));
}
/* A pilha nasce montada. A subida é um acréscimo, nunca um pré-requisito. */
@keyframes plano-sobe {
  from { opacity: 0; transform: translateZ(calc(var(--i) * var(--passo) - 40px)); }
}
.js .pilha.is-live .pilha__plano {
  animation: plano-sobe .9s var(--ease) both;
  animation-delay: calc(var(--i) * .12s);
}

/* A densidade de pontos é o dado: muita coisa embaixo, pouca em cima. */
.pilha__plano--bruto {
  background-image: radial-gradient(circle, rgba(255, 255, 255, .3) 1px, transparent 1.4px);
  background-size: 13px 13px;
}
.pilha__plano--organizado {
  background-image: radial-gradient(circle, rgba(255, 255, 255, .34) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
.pilha__plano--conferido {
  background-image: radial-gradient(circle, rgba(255, 255, 255, .4) 1.2px, transparent 1.6px);
  background-size: 36px 36px;
}
.pilha__plano--priorizado {
  border-color: var(--accent);
  background-color: color-mix(in srgb, var(--accent) 10%, transparent);
  background-image: radial-gradient(circle, var(--accent) 2px, transparent 2.4px);
  background-size: 60px 60px;
}

.legenda { display: grid; gap: 10px; margin-top: clamp(6px, 1vw, 16px); }
.legenda div { display: flex; align-items: center; gap: 10px; font-size: .8125rem; color: var(--fg-2); }
.legenda i { width: 9px; height: 9px; border-radius: 3px; border: 1px solid var(--line-2); flex: none; }
.legenda i.is-alta { border-color: var(--accent); background: var(--accent); }

.escada { display: grid; gap: 0; }
.escada li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 2vw, 26px); padding: clamp(16px, 2vw, 22px) 0; border-bottom: 1px solid var(--line); }
.escada li:last-child { border-bottom: 0; }
.escada__n {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 4.5ch;
}
.escada__t { font-size: .9375rem; color: var(--fg-2); align-self: center; text-wrap: pretty; }
.escada__t b { display: block; color: var(--fg); font-weight: 600; margin-bottom: 3px; }
.escada li:last-child .escada__n { color: var(--accent); }

.saidas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 2.6vw, 30px); }
.saidas span {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .8125rem;
  color: var(--fg-2);
}

@media (max-width: 900px) {
  .refino { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 44px); }
  /* A projeção da pilha é bem mais larga que a caixa dela, e a perspectiva
     ainda amplia os planos de cima. No estreito, encurta o passo e afasta o
     ponto de fuga para tudo caber. */
  .pilha { perspective: 1600px; }
  .pilha__cena { width: min(66%, 224px); --passo: 42px; }
}
@media (max-width: 620px) {
  .pilha__cena { width: min(64%, 200px); --passo: 38px; }
  .pilha { padding-block: 48px 0; }
}
/* ---------- 7. Responsivo ---------- */

/* Quanto mais largura, mais colunas de código e mais estreita a faixa limpa */
@media (min-width: 700px) {
  .hero__code { grid-template-columns: repeat(3, 1fr); font-size: 11px; opacity: .44; }
  /* Com largura sobrando, o véu vira um halo redondo em volta do texto. */
  .hero__veil {
    --veil: 92% 48% at 50% 46%;
    background: radial-gradient(var(--veil),
                rgba(255, 255, 255, .97) 0%,
                rgba(255, 255, 255, .93) 42%,
                rgba(255, 255, 255, 0) 100%);
    -webkit-mask-image: radial-gradient(var(--veil), #000 0%, #000 44%, transparent 100%);
            mask-image: radial-gradient(var(--veil), #000 0%, #000 44%, transparent 100%);
  }
}

@media (min-width: 1080px) {
  .hero__code { grid-template-columns: repeat(4, 1fr); font-size: 12px; opacity: .38; }
  .hero__veil { --veil: 58% 54% at 50% 44%; }
}

@media (max-width: 1080px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases .case:last-child { grid-column: 1 / -1; }
  .cases .case:last-child .case__media { aspect-ratio: 21 / 9; }
}

@media (max-width: 860px) {
  .core { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 40px); }
  .core__copy { padding: clamp(4px, 2vw, 16px); }
  .pages { grid-template-columns: 1fr; gap: clamp(36px, 6vw, 56px); }
  .mock { width: 100%; max-width: 520px; margin-inline: auto; }
}

@media (max-width: 820px) {
  :root { --header-h: 56px; }
  .nav { display: none; }
  .header__cta { display: none; }
  .icon-btn { display: grid; }
  .header__inner { grid-template-columns: auto 1fr; }
  .header__actions { grid-column: 2; }
}

@media (max-width: 620px) {
  .panel--accent { padding-inline: 16px; }
  .mock__phone { width: 29%; right: 1%; }
  .cases { grid-template-columns: 1fr; }
  .cases .case:last-child .case__media { aspect-ratio: 3 / 2; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
  .clients { gap: 26px 34px; }
  .clients img { height: calc(18px * var(--logo-h, 1)); }
  .booking__embed { min-height: 560px; }
  .chip { padding: 10px 18px; }
}

/* Âncoras respeitam o header fixo */
main > section[id], #top { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Trava o scroll com o menu aberto */
body.is-locked { overflow: hidden; }
