/* ── Mavidey · landing escura, no mesmo motor da landing do Sayfy ─────────── */

:root {
  color-scheme: dark;

  /* Base neutra, sem croma: quase preto e linhas finas. */
  --bg: #0a0a0a;
  --bg-deep: #070707;
  --surface: #111111;
  --fg: #ececec;
  --fg-strong: #ffffff;
  --fg-2: #bababa;
  --muted: #989898;
  --subtle: #8e8e8e;
  --line: rgba(255, 255, 255, 0.08);
  --light-030: rgba(255, 255, 255, 0.03);
  --light-040: rgba(255, 255, 255, 0.04);
  --light-050: rgba(255, 255, 255, 0.05);
  --light-060: rgba(255, 255, 255, 0.06);
  --light-090: rgba(255, 255, 255, 0.09);
  --light-100: rgba(255, 255, 255, 0.1);
  --light-120: rgba(255, 255, 255, 0.12);
  --light-150: rgba(255, 255, 255, 0.15);
  --light-200: rgba(255, 255, 255, 0.2);
  --light-250: rgba(255, 255, 255, 0.25);
  --dark-450: rgba(0, 0, 0, 0.45);
  --dark-700: rgba(0, 0, 0, 0.7);

  /* Marca: o vermelho é o protagonista; laranja, âmbar, rosa e magenta harmonizam em volta. */
  --brand: #2b8fd1;
  /* Vermelho como texto ou ícone: o #ff0000 puro fica no limite do AA no fundo escuro. */
  --brand-strong: #6cc0f2;
  /* Texto sobre o preenchimento vermelho→laranja: o branco não chega a 4,5:1 no #ff0000. */
  --brand-ink: #03131c;
  --gradient-brand: linear-gradient(45deg, #2b8fd1 0%, #2fb6dc 55%, #3ee0d0 100%);
  --beam: linear-gradient(90deg, #2b8fd1, #3ee0d0);
  --spot: rgba(43, 143, 209, 0.16);
  --focus: #7cc4f2;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Sans", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: 16px;
  --container: 1280px;
  --stage-fade:
    linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent),
    linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

/* ── Base ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { display: block; overflow-x: clip; }

h1, h2, h3, h4, p, figure, blockquote, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
input { font: inherit; letter-spacing: inherit; }

::selection { background: rgba(43, 143, 209, 0.4); color: #fff; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Fora da seleção: nos títulos animados, no ~0 e no CHM-XXXXX o texto para leitor
   de tela repete o visível, e copiar levaria as duas cópias. */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  -webkit-user-select: none;
  user-select: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: #0a0a0a;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Layout ───────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: 96px; }
.section--line { border-top: 1px solid var(--line); }
.section--deep { background: var(--bg-deep); }

@media (min-width: 768px) {
  .section { padding-block: 160px; }
  .section--tall { padding-block: 176px; }
}

.section-head--center { max-width: 920px; margin-inline: auto; text-align: center; }
.section-head--center .lead { max-width: 760px; margin-inline: auto; }
.section-head--wide { max-width: 820px; }
.section-head--wide .lead { max-width: 680px; }
.section-head__note { margin-top: 20px; }

@media (min-width: 1024px) {
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-7 { grid-column: span 7; }
  .span-12 { grid-column: span 12; }
}

/* Arte de fundo (placas e vídeo): o modo screen deixa o preto sumir na página. */
.plate {
  position: absolute;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: screen;
}
.plate img { width: 100%; height: 100%; object-fit: cover; }

.dust { pointer-events: none; }

/* ── Tipografia ───────────────────────────────────────────────────────── */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-wrap: balance;
}

.h1 { font-size: 46px; line-height: 1.03; }
.h2 { font-size: 38px; line-height: 1.06; }
.h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }

@media (min-width: 768px) {
  .h1 { font-size: clamp(64px, 8.5vw, 92px); line-height: 0.98; }
  .h2 { font-size: clamp(48px, 6vw, 64px); line-height: 1.03; }
  .h2--lg { font-size: clamp(54px, 7.4vw, 80px); line-height: 1; }
  .h2--xl { font-size: clamp(64px, 10.6vw, 120px); line-height: 0.96; }
  .h3 { font-size: 30px; line-height: 1.12; }
}

.lead {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .lead { font-size: 21px; line-height: 1.45; }
}

.muted { font-size: 15.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.small { font-size: 13px; line-height: 1.5; color: var(--subtle); }
.mono-label { margin-top: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--light-100);
  border-radius: 999px;
  background: var(--light-040);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(236, 236, 236, 0.85);
}
.eyebrow .icon { font-size: 14px; color: var(--brand-strong); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--light-150);
  border-radius: 999px;
  background: var(--dark-450);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg);
}
.pill .icon { font-size: 14px; color: var(--brand-strong); }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--fg); }
.text-link__label {
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
  transition: background-size 0.3s var(--ease);
}
.text-link__arrow { transition: transform 0.3s var(--ease); }
.text-link:hover .text-link__label { background-size: 100% 1px; }
.text-link:hover .text-link__arrow { transform: translateX(4px); }

/* ── Botões ───────────────────────────────────────────────────────────── */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 560;
  line-height: 1;
  white-space: nowrap;
  transition: background-position 0.5s var(--ease), background-color 0.3s, border-color 0.3s;
}
.btn .icon { font-size: 16px; stroke-width: 2; }

.btn--primary {
  color: var(--brand-ink);
  background-image: var(--gradient-brand);
  background-size: 190% 100%;
  background-position: 0% 0;
}
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  z-index: -1;
  width: 33%;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: skewX(-12deg);
  transition: left 0.7s var(--ease), opacity 0.7s;
}
.btn--primary:hover { background-position: 100% 0; }
.btn--primary:hover::after { left: 100%; opacity: 1; }

.btn--secondary {
  border-color: var(--light-150);
  background-color: var(--light-030);
  color: var(--fg);
}
.btn--secondary:hover { border-color: var(--light-250); background-color: var(--light-060); }

/* ── Janela do produto e câmera ───────────────────────────────────────── */

.window {
  position: relative;
  padding: 5px;
  border-radius: 20px;
  background: var(--light-050);
  box-shadow:
    0 0 0 1px var(--light-090),
    0 50px 140px -30px rgba(0, 0, 0, 0.95),
    0 0 120px -40px rgba(43, 143, 209, 0.22);
}

.window__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--light-100);
  border-radius: 16px;
  background: #131313;
}

.cam__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* A câmera enquadra uma região da captura: --x/--y/--w são frações da largura e da altura. */
.cam { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease); }
.cam.is-active { opacity: 1; }
.cam__img {
  transform-origin: 0 0;
  transform:
    translate(calc(var(--x, 0) * -100% / var(--w, 1)), calc(var(--y, 0) * -100% / var(--w, 1)))
    scale(calc(1 / var(--w, 1)));
  transition: transform var(--cam-dur, 1.5s) var(--ease);
}
.cam--drift { --cam-dur: 3.4s; }
.cam--drift.is-settled { --x: 0.012; --y: 0.012; --w: 0.976; }

.clip-bars { position: absolute; right: 20px; bottom: 16px; left: 20px; z-index: 2; display: flex; gap: 6px; }
.clip-bar { flex: 1; height: 3px; overflow: hidden; border-radius: 999px; background: var(--light-150); }
.clip-bar > span { display: block; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.clip-bar.is-active > span { animation: fill-bar 5.6s linear forwards; }

@keyframes fill-bar { to { transform: scaleX(1); } }

/* ── Cabeçalho ────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px 0;
  pointer-events: none;
}

.site-header__bar,
.site-menu { pointer-events: auto; }

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1280px;
  height: 56px;
  padding: 0 10px 0 20px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 18px;
  transition: max-width 0.5s var(--ease), background-color 0.5s, border-color 0.5s;
}

.site-header.is-solid .site-header__bar,
.site-header.is-open .site-header__bar {
  max-width: 920px;
  border-color: var(--light-120);
  background: rgba(16, 16, 16, 0.95);
}

.site-header__logo { display: flex; flex-shrink: 0; border-radius: 8px; color: var(--fg-strong); }

.logo-sayfy { display: block; width: auto; height: 26px; fill: currentColor; fill-rule: evenodd; }
.logo-sayfy-bird { fill: var(--brand); }

.site-nav { display: none; align-self: stretch; margin-inline: auto; }
.site-nav__list { display: flex; gap: 28px; height: 100%; }
.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  color: rgba(236, 236, 236, 0.72);
  outline: none;
  transition: color 0.2s;
}
.site-nav__link span { margin-inline: -6px; padding: 2px 6px; border-radius: 6px; }
.site-nav__link:hover,
.site-nav__link.is-current { color: var(--fg); }
.site-nav__link:focus-visible span { outline: 2px solid var(--focus); }
.site-nav__link.is-current::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--beam);
}

.header-login {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  height: 36px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid var(--light-150);
  border-radius: 11px;
  background: var(--light-050);
  font-size: 13.5px;
  white-space: nowrap;
  color: var(--fg);
  transition: background-color 0.2s;
}
.header-login:hover { background: var(--light-100); }
.header-login .icon { font-size: 14px; }

.menu-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--light-120);
  border-radius: 10px;
  color: rgba(236, 236, 236, 0.85);
}
.menu-btn .icon { font-size: 17px; }
.menu-btn__close,
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }

.site-header__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--beam);
  opacity: 0;
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: opacity 0.3s;
}
.site-header.is-solid .site-header__progress { opacity: 1; }

.site-menu {
  width: 100%;
  max-width: 920px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--light-120);
  border-radius: 18px;
  background: rgba(16, 16, 16, 0.97);
}
.site-menu[hidden] { display: none; }
.site-menu__list li + li { border-top: 1px solid var(--line); }
.site-menu__list a {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 15px;
  color: rgba(236, 236, 236, 0.8);
}
.site-menu__list a:hover,
.site-menu__list a.is-current { color: var(--fg); }

.site-header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.site-header__actions .header-login { margin-left: 0; }

/* Páginas legais: com "Voltar ao site" ao lado, o botão de acesso vira só ícone no celular. */
@media (max-width: 479px) {
  .site-header__actions .header-login { width: 36px; padding: 0; justify-content: center; }
  .site-header__actions .header-login__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

@media (max-width: 379px) {
  .header-login { padding: 0; width: 36px; justify-content: center; }
  .header-login__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .header-login { margin-left: 0; }
  .menu-btn,
  .site-menu { display: none !important; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero { position: relative; overflow-x: clip; padding-bottom: 80px; }

.hero__plate {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1120px;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent);
  mask-image: linear-gradient(180deg, #000 62%, transparent);
  transform: translate3d(0, var(--plate-y, 0px), 0);
}

/* O vídeo começa abaixo do texto para o horizonte da cidade ficar entre os
   botões e a janela. A máscara fica no invólucro, depois da mistura de cor:
   no próprio vídeo, a camada de cor tingiria a área transparente. */
.hero__media {
  position: absolute;
  top: var(--video-top, 470px);
  right: 0;
  bottom: 0;
  left: 0;
  isolation: isolate;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%);
  mask-image: linear-gradient(180deg, transparent, #000 22%);
}

/* Tons de cinza no vídeo e a camada em modo color devolve só o matiz:
   âmbar à esquerda, vermelho no meio e rosa à direita, com a luz do vídeo. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% 50%;
  filter: grayscale(1) contrast(1.2) brightness(1.05);
}
.hero__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #3ee0d0 0%, #1f7fd1 45%, #2b5fd9 100%);
  mix-blend-mode: color;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(56% 30% at 50% 30%, rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0) 100%);
}

.hero__dust {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 1000px;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}

.hero__copy {
  position: relative;
  z-index: 10;
  padding-top: 144px;
  text-align: center;
  opacity: var(--copy-o, 1);
  transform: translate3d(0, var(--copy-y, 0px), 0);
}
.hero__title { max-width: 1080px; margin-inline: auto; }
.hero__lead { max-width: 720px; margin-inline: auto; color: #a9a9a9; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; }
.hero__meta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
.hero__meta .small { color: #a1a1a1; }
.hero__meta { text-shadow: 0 1px 2px #000, 0 0 16px rgba(0, 0, 0, 0.85); }

.hero__stage {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 1560px;
  margin: 56px auto 0;
  padding-inline: var(--gutter);
  perspective: 1500px;
}
.hero__window { transform-origin: 50% 0%; }

@media (min-width: 768px) {
  .hero { padding-bottom: 128px; }
  .hero__plate { --video-top: 360px; }
  .hero__copy { padding-top: 176px; }
  .hero__stage { margin-top: 80px; padding-inline: 32px; }
  .hero__video { object-position: 50% 50%; }
}

/* A janela começa inclinada e se endireita com a rolagem (--hero-flat vai de 0 a 1). */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hero__window {
    transform:
      scale(calc(0.86 + var(--hero-flat, 0) * 0.14))
      rotateX(calc((1 - var(--hero-flat, 0)) * 24deg));
  }
}

/* ── Empresas que confiam ─────────────────────────────────────────────── */

.providers__head { display: grid; align-items: end; gap: 40px; }
.providers__lead { max-width: 620px; }
.providers__number {
  font-size: 88px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.marquees { display: grid; gap: 12px; margin-top: 64px; }

.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
  animation: marquee var(--marquee-dur, 40s) linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-100%); } }

.chip {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 84px;
  padding: 0 28px 0 20px;
  border: 1px solid var(--light-090);
  border-radius: 18px;
  background: var(--light-030);
  font-size: 17px;
  white-space: nowrap;
  color: var(--fg);
}
.chip__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--light-060);
  background: color-mix(in srgb, var(--tone) 16%, transparent);
  color: var(--tone);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}

.providers__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .providers__number { font-size: 128px; }
  .marquees { margin-top: 80px; }
}

@media (min-width: 1024px) {
  .providers__head { grid-template-columns: 1.25fr 1fr; gap: 96px; }
}

/* ── O problema: a pilha vira uma lista ───────────────────────────────── */

.problem__head { padding-top: 96px; }
.problem__title { max-width: 1100px; }
.problem__lead { max-width: 780px; }

/* Sem palco (celular, movimento reduzido ou sem JS): cartões em grade. */
.pile { padding-bottom: 96px; }
.pile__view { width: 100%; max-width: var(--container); margin: 56px auto 0; padding-inline: var(--gutter); }
.pile__plate,
.pile__tag { display: none; }
.pile__panes { display: grid; gap: 12px; }
.pile__after { margin-top: 40px; }
.pile__window { margin-bottom: 32px; }
.pile__line { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.pile__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pile__chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--light-150);
  border-radius: 999px;
  background: var(--light-040);
  font-size: 14.5px;
  color: var(--fg);
}
.pile__chips .icon { font-size: 16px; color: var(--brand-strong); }

.pane {
  overflow: hidden;
  border: 1px solid var(--light-200);
  border-radius: 16px;
  background: #0d0d0d;
  box-shadow: 0 40px 90px -10px #000, 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.pane__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--light-100); }
.pane__dots { display: flex; gap: 6px; }
.pane__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--light-200); }
.pane__name { margin-left: 8px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 400; color: var(--muted); }
.pane__body { padding: 16px 20px 20px; font-size: 15px; line-height: 1.6; color: rgba(236, 236, 236, 0.78); }

@media (min-width: 640px) {
  .pile__panes { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .problem__head { padding-top: 176px; }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .js .pile { height: 340vh; padding-bottom: 0; }
  .js .pile__view {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: none;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--bg);
  }
  .js .pile__plate {
    display: block;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: var(--o, 0.62);
    transform: scale(var(--s, 1));
    -webkit-mask-image: var(--stage-fade);
    -webkit-mask-composite: source-in;
    mask-image: var(--stage-fade);
    mask-composite: intersect;
  }
  .js .pile__plate[data-pile-after] { opacity: var(--o, 0); }
  .js .pile__tag {
    position: absolute;
    top: 72px;
    left: 50%;
    z-index: 10;
    display: block;
    padding: 6px 16px;
    border: 1px solid var(--light-150);
    border-radius: 999px;
    background: var(--dark-700);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--fg);
    opacity: var(--o, 1);
    transform: translateX(-50%);
  }
  .js .pile__tag--after { color: var(--brand-strong); opacity: var(--o, 0); }
  .js .pile__panes { position: absolute; inset: 0; display: block; }
  .js .pane {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(340px, 25vw, 480px);
    margin: -80px 0 0 calc(clamp(340px, 25vw, 480px) / -2);
    opacity: var(--o, 1);
    transform: var(--t, translate3d(calc(var(--px) * 1vw), calc(var(--py) * 1vh), 0) rotate(calc(var(--pr) * 1deg)));
    will-change: transform, opacity;
  }
  .js .pile__after {
    position: relative;
    z-index: 1;
    width: min(1040px, 84vw);
    margin: 0;
    text-align: center;
    opacity: var(--o, 0);
    transform: scale(var(--s, 0.9));
  }
  /* A janela, a frase e os rótulos cabem juntos na altura da tela. */
  .js .pile__window { width: min(100%, calc(52vh * 1.6)); margin: 0 auto 28px; }
  .js .pile__line { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.04; }
  .js .pile__chips { justify-content: center; margin-top: 36px; }
  .js .pile__chips li {
    height: 48px;
    padding: 0 20px;
    background: rgba(10, 10, 10, 0.72);
    font-size: 16px;
    opacity: var(--o, 0);
    transform: translateY(var(--y, 12px));
  }
}

/* ── A solução: etapas fixas na rolagem ───────────────────────────────── */

.solution__head { display: grid; gap: 40px; padding-top: 96px; }
.solution__intro .lead { margin-top: 0; }

.checks { display: grid; gap: 12px; margin-top: 32px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; color: rgba(236, 236, 236, 0.88); }
.checks__mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(43, 143, 209, 0.16);
  color: var(--brand-strong);
}
.checks__mark .icon { font-size: 13px; stroke-width: 2.5; }

/* Sem palco: cada etapa com a sua captura logo abaixo. */
.beats { margin-top: 56px; }
.beats__view { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.beats__plate,
.beats__window,
.beat__bar { display: none; }
.beats__list { display: grid; gap: 40px; }
.beat__label { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; color: var(--fg); }
.beat__label .icon { font-size: 18px; color: var(--brand-strong); }
.beat__body .muted { padding-top: 8px; }
.beat__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.beat__chips li {
  padding: 5px 12px;
  border: 1px solid var(--light-150);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-2);
}
/* Sem palco, a captura de cada etapa fica logo abaixo do texto dela. */
.beat__shot { width: 100%; height: auto; margin-top: 20px; border: 1px solid var(--light-100); border-radius: 14px; }

.solution__foot { padding-top: 64px; padding-bottom: 96px; }
.solution__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.solution__notes { display: grid; gap: 8px; max-width: 560px; }
.solution__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

@media (min-width: 768px) {
  .solution__head { padding-top: 176px; }
  .solution__foot { padding-bottom: 160px; }
  .solution__cta { align-items: flex-end; }
}

@media (min-width: 1024px) {
  .solution__head { grid-template-columns: 1.15fr 1fr; gap: 80px; }
  .solution__intro { padding-top: 56px; }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .js .beats { height: calc(var(--beats) * 105vh); margin-top: 40px; }
  .js .beats__view {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    max-width: none;
    height: 100vh;
    padding: 0;
    overflow: hidden;
    background: var(--bg-deep);
  }
  .js .beats__plate {
    display: block;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    -webkit-mask-image: var(--stage-fade);
    -webkit-mask-composite: source-in;
    mask-image: var(--stage-fade);
    mask-composite: intersect;
  }
  .js .beats__grid {
    position: relative;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    width: 100%;
    max-width: 1720px;
    margin-inline: auto;
    padding-inline: 40px;
  }
  .js .beats__list { gap: 4px; }
  .js .beat {
    position: relative;
    overflow: hidden;
    padding: 16px 20px;
    border: 1px solid transparent;
    border-radius: 16px;
    transition: background-color 0.5s, border-color 0.5s;
  }
  .js .beat.is-active { border-color: var(--light-150); background: var(--light-060); }
  .js .beat__label,
  .js .beat__label .icon { color: rgba(236, 236, 236, 0.55); transition: color 0.3s; }
  .js .beat.is-active .beat__label { color: var(--fg); }
  .js .beat.is-active .beat__label .icon { color: var(--brand-strong); }
  .js .beat__body {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.5s var(--ease), opacity 0.5s;
  }
  .js .beat__body > div { overflow: hidden; }
  .js .beat__body .muted { color: rgba(236, 236, 236, 0.78); }
  .js .beat.is-active .beat__body { grid-template-rows: 1fr; opacity: 1; }
  .js .beat__chips,
  .js .beat__shot { display: none; }
  .js .beat__bar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    height: 2px;
    background: var(--beam);
    opacity: 0;
    transform: scaleX(var(--bar, 0));
    transform-origin: left;
  }
  .js .beat.is-active .beat__bar { opacity: 1; }
  .js .beats__window { display: block; width: 100%; max-width: calc(86vh * 1.6); margin-left: auto; }
}

/* ── Para quem é ──────────────────────────────────────────────────────── */

.bento { display: grid; gap: 16px; margin-top: 64px; }

.uc {
  position: relative;
  height: 420px;
  overflow: hidden;
  border: 1px solid var(--light-090);
  border-radius: 22px;
  background: #000;
}
.uc__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 1.4s ease-out;
}
.uc:hover .uc__art { transform: scale(1.1); }
/* Miniatura de tela: o topo à esquerda (menu e cabeçalho do app) fica acima do texto. */
.uc__art--shot { object-position: left top; opacity: 0.92; transform-origin: left top; }
/* Sobre a tela, o rótulo precisa de fundo fechado para não misturar com o texto do app. */
.uc .pill { background: rgba(10, 10, 10, 0.9); }
.uc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 30%, rgba(10, 10, 10, 0.92) 78%);
}
.uc__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 28px;
}
.uc__text { max-width: 520px; margin-top: 12px; color: rgba(236, 236, 236, 0.78); }

/* Grade de linhas finas: o fundo da lista aparece pelo gap de 1px. */
.cells {
  display: grid;
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}
.cell { padding: 28px; background: var(--bg); }
.cell__icon { font-size: 22px; color: var(--brand-strong); }
.cell__title { margin-top: 20px; font-size: 23px; line-height: 1.2; letter-spacing: -0.015em; }
.cell .muted { margin-top: 8px; }

@media (min-width: 640px) {
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Em duas colunas, um último item sozinho ocupa a linha inteira: sobra vazia mostraria o fundo da grade. */
@media (min-width: 640px) and (max-width: 1023px) {
  .cells > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .bento { margin-top: 96px; }
  .uc__body { padding: 32px; }
}

@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Depoimentos e resultados ─────────────────────────────────────────── */

.quotes { display: grid; gap: 16px; margin-top: 64px; }

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 300px;
  padding: 32px;
  border: 1px solid var(--light-100);
  border-radius: 22px;
  background: var(--surface);
}
.quote__text {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: pretty;
}
.quote--small .quote__text { font-size: 22px; line-height: 1.22; }
.quote__by { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.quote__name { font-size: 15px; font-weight: 600; color: var(--fg); }

.quote--brand { border-color: transparent; background: linear-gradient(45deg, #1f6fc4 0%, #2bb3d9 62%, #8ce9de 100%); }
.quote--brand .quote__text,
.quote--brand .quote__name { color: #0a0a0a; }
.quote--brand .quote__by { color: rgba(10, 10, 10, 0.88); }

.quote--red { border-color: transparent; background: #0f4f86; }
.quote--red .quote__text,
.quote--red .quote__name { color: #fff; }
.quote--red .quote__by { color: rgba(255, 255, 255, 0.9); }

.subhead { display: grid; gap: 12px; margin: 72px 0 24px; }

.stats {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}
.stat { display: flex; flex-direction: column; gap: 16px; padding: 32px 28px; background: var(--bg); }
.stat__icon { font-size: 24px; color: var(--brand-strong); }
.stat__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.stat__value { font-size: 44px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 18px; line-height: 1.3; color: var(--muted); }
.stat__desc { font-size: 14.5px; }

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .quotes { margin-top: 80px; }
  .quote { padding: 40px; }
  .quote__text { font-size: 32px; }
  .quote--small .quote__text { font-size: 24px; }
  .quote--wide .quote__text { font-size: 44px; line-height: 1.08; }
  .stat__value { font-size: 52px; }
}

@media (min-width: 1024px) {
  .quotes { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .subhead { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── SOC: painéis que abrem em sequência ──────────────────────────────── */

.panels { display: flex; flex-direction: column; gap: 16px; margin-top: 56px; }

.panel {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  height: 520px;
  overflow: hidden;
  border: 1px solid var(--light-100);
  border-radius: 26px;
  background: #000;
  text-align: left;
  transition: flex-grow 0.7s var(--ease), border-color 0.7s var(--ease);
}
.panel.is-active { border-color: var(--light-250); }
.panel:focus-visible { outline-offset: 3px; }

.panel__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: opacity 0.7s;
}
.panel.is-active .panel__art { opacity: 0.7; }
/* Tela no painel: o enquadramento começa depois do menu lateral do app. */
.panel__art--shot { object-position: 24% 0; }
.panel.is-active .panel__art--shot { opacity: 0.9; }
.panel__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.1) 40%, rgba(10, 10, 10, 0.94) 84%);
}
.panel__text { position: absolute; right: 28px; bottom: 28px; left: 28px; display: block; }
.panel__icon { display: block; font-size: 24px; color: rgba(236, 236, 236, 0.6); transition: color 0.3s; }
.panel.is-active .panel__icon { color: var(--brand-strong); }
.panel__caption {
  display: block;
  max-width: 520px;
  margin-top: 12px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.panel__bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--beam);
  transform: scaleX(0);
  transform-origin: left;
}
.panels.is-auto .panel.is-active .panel__bar { animation: fill-bar 5.2s linear forwards; }
.panels + .notes { margin-top: 64px; }

@media (min-width: 768px) {
  .panels { margin-top: 80px; }
  .panel__caption { font-size: 25px; line-height: 1.18; }
}

@media (min-width: 1024px) {
  .panels { flex-direction: row; height: 640px; }
  .panel { height: auto; }
  .panel.is-active { flex-grow: 2.7; }
}

/* ── Tudo o que vem no Sayfy: grade de módulos ────────────────────────── */

.modules-section { overflow-x: clip; }
.modules__plate {
  top: 380px;
  right: 0;
  left: 0;
  width: 100%;
  height: 1000px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.modules__inner { position: relative; }

/* Mesma grade de linhas finas das áreas atendidas, com fundo quase opaco sobre a placa. */
.modules {
  display: grid;
  gap: 1px;
  margin-top: 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}
.module { display: flex; flex-direction: column; padding: 28px; background: rgba(10, 10, 10, 0.94); }
.module__icon { font-size: 22px; color: var(--brand-strong); }
.module__title { margin-top: 20px; font-size: 23px; line-height: 1.2; letter-spacing: -0.015em; }
.module .muted { margin-top: 8px; font-size: 15px; }
.module__note {
  width: fit-content;
  margin-top: auto;
  padding: 5px 12px;
  border: 1px solid var(--light-150);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-2);
}
.module--wide .muted,
.module--full .muted { max-width: 560px; margin-bottom: 20px; }
.module--wide .module__title,
.module--full .module__title { font-size: 30px; }

@media (min-width: 640px) {
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module--wide { grid-column: span 2; }
  /* Linha inteira no fim da grade: as linhas de 2 e de 4 colunas continuam completas. */
  .module--full { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .modules { margin-top: 80px; }
}

@media (min-width: 1024px) {
  .modules { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Automação ────────────────────────────────────────────────────────── */

.automation { overflow-x: clip; }
.automation__head { padding-top: 96px; }
.automation__stage { position: relative; margin-top: 56px; padding-bottom: 96px; }
.automation__plate {
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 640px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%);
  mask-image: linear-gradient(180deg, transparent, #000 45%);
}
.automation__cards { position: relative; display: grid; gap: 16px; }
.automation__cards .detail { flex: none; height: auto; min-height: 240px; background: rgba(17, 17, 17, 0.92); }

@media (min-width: 768px) {
  .automation__head { padding-top: 176px; }
  .automation__stage { margin-top: 80px; padding-bottom: 176px; }
  .automation__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Treinamentos ─────────────────────────────────────────────────────── */

.training { overflow-x: clip; }
.training__plate {
  top: 0;
  right: -6%;
  width: 100%;
  height: 860px;
  opacity: 0.5;
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 38%),
    linear-gradient(180deg, #000 55%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 38%),
    linear-gradient(180deg, #000 55%, transparent);
  mask-composite: intersect;
}
.training__inner { position: relative; }
.training__window { margin-top: 56px; }

@media (min-width: 768px) {
  .training__plate { width: 62%; opacity: 0.9; }
  .training__window { margin-top: 80px; }
}

@media (min-width: 1024px) {
  .notes.notes--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Agentes de IA: os agentes prontos, com o rosto do app, e a janela para as capturas ── */

.crew { display: grid; gap: 16px; margin-top: 32px; }
.crew__agent { display: flex; align-items: center; gap: 14px; }
.crew__face { flex-shrink: 0; width: 44px; height: 44px; }
.crew__face svg,
.crew__faces svg { display: block; width: 100%; height: 100%; }
.crew__name { display: block; font-size: 16px; font-weight: 600; color: var(--fg); }
.crew__role { display: block; font-size: 14.5px; color: var(--muted); }

.crew__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.crew__faces { display: flex; flex-wrap: wrap; gap: 4px; }
.crew__faces > span { width: 26px; height: 26px; }
.crew__more .muted { font-size: 14.5px; }

.crew--grid .crew__agent { align-items: flex-start; }

@media (min-width: 640px) {
  .crew--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 18px; }
}

.agents__row { margin-top: 64px; }

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  /* A seção fica no fundo padrão, logo depois do SOC, que usa o fundo escuro. */
  .js .agents .beats__view { background: var(--bg); }
}

/* ── Segurança: notas abaixo dos painéis ──────────────────────────────── */

.notes { display: grid; gap: 32px; margin-top: 56px; }
.note__icon { font-size: 20px; color: var(--brand-strong); }
.note__title { margin-top: 14px; font-size: 17px; font-weight: 500; color: var(--fg); }
.note .muted { margin-top: 6px; }

@media (min-width: 768px) {
  .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; margin-top: 80px; }
}

/* ── SOC (abas sobre a janela) e funcionalidades (trilho) ─────────────── */

.soc { overflow-x: clip; }
.soc__plate {
  top: 520px;
  right: 0;
  left: 0;
  width: 100%;
  height: 900px;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.soc__inner { position: relative; }
.soc__subhead { margin-top: 96px; }
.soc__caps { margin-top: 0; }

@media (min-width: 768px) {
  .soc__subhead { margin-top: 128px; }
}

.tabs { margin-top: 56px; }
/* Os painéis ocupam a mesma célula: a altura é a do maior e a janela não pula ao trocar de aba. */
.tabs__copy { display: grid; }
.tabs__panel { grid-area: 1 / 1; max-width: 760px; margin-inline: auto; text-align: center; }
.tabs__panel[hidden] { display: block; visibility: hidden; }
.tabs__body { margin-top: 12px; font-size: 18px; line-height: 1.5; }
.tabs__window { margin-top: 32px; }

/* Em telas estreitas as abas quebram em duas linhas e cobririam o pé da janela: só sobrepõem a partir de 640px. */
.tabs__dock { position: relative; z-index: 10; display: flex; justify-content: center; margin-top: 16px; }

@media (min-width: 640px) {
  .tabs__dock { margin-top: -32px; }
}
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  padding: 6px;
  border: 1px solid var(--light-150);
  border-radius: 20px;
  background: rgba(18, 18, 18, 0.97);
  box-shadow: 0 24px 70px -10px #000;
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  overflow: hidden;
  border-radius: 14px;
  font-size: 14px;
  color: rgba(236, 236, 236, 0.72);
  transition: background-color 0.2s, color 0.2s;
}
.tab:hover { color: var(--fg); }
.tab .icon { font-size: 16px; }
.tab[aria-selected="true"] { background: var(--light-100); color: var(--fg); }
.tab[aria-selected="true"] .icon { color: var(--brand-strong); }
.tab__bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
}
.tabs.is-auto .tab[aria-selected="true"] .tab__bar { animation: fill-bar 6.5s linear forwards; }

/* Cartão com luz que segue o ponteiro (usado na automação). */
.detail {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--light-100);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}
/* Luz que segue o ponteiro: a posição vem de --spot-x/--spot-y. */
.detail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--spot-x, 50%) var(--spot-y, 50%), var(--spot), transparent 72%);
  opacity: 0;
  transition: opacity 0.3s;
}
.detail:hover::before { opacity: 1; }
.detail__shot {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--light-100);
  border-radius: 12px;
  background: #131313;
}
.detail__shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.detail__title { font-size: 23px; line-height: 1.2; letter-spacing: -0.015em; }
.detail__text { margin-top: 8px; font-size: 15px; }

@media (min-width: 768px) {
  .tabs { margin-top: 80px; }
  .tabs__title { font-size: 36px; line-height: 1.1; }
}

/* ── Como funciona ────────────────────────────────────────────────────── */

.install__grid { display: grid; gap: 56px; }

.install__card {
  overflow: hidden;
  border: 1px solid var(--light-120);
  border-radius: 22px;
  background: #101010;
  box-shadow: 0 0 120px -50px rgba(43, 143, 209, 0.22);
}
.install__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 28px;
  border-bottom: 1px solid var(--light-100);
}
.step { display: flex; gap: 16px; padding: 28px; }
.step + .step { border-top: 1px solid var(--light-100); }
.step__num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--light-100);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
}
.step:first-child .step__num { background: var(--brand); color: var(--brand-ink); }
.step__body { min-width: 0; }
.step__title { font-size: 17px; font-weight: 500; color: var(--fg); }
.step__code { margin-top: 8px; font-family: var(--font-mono); font-size: 14.5px; color: var(--brand-strong); overflow-wrap: anywhere; }
.step__text { margin-top: 6px; }

.typed__caret {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--brand-strong);
  animation: caret 1s steps(2) infinite;
}

@keyframes caret { 50% { opacity: 0; } }

@media (min-width: 1024px) {
  .install__grid { grid-template-columns: 1fr 1.15fr; align-items: start; gap: 80px; }
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq__grid { display: grid; gap: 48px; }
.faq__cta { margin-top: 32px; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-align: left;
  color: var(--fg);
}
.faq-question:hover { color: var(--fg-strong); }

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--light-150);
  border-radius: 50%;
  color: var(--fg);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon { border-color: transparent; background: var(--brand); color: var(--brand-ink); }
.faq-item.open .faq-icon::after { transform: rotate(0deg); }

.faq-answer-inner p { max-width: 680px; padding-bottom: 28px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* Fechado só com JS; sem ele as respostas ficam abertas. */
.js .faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.js .faq-answer-inner { overflow: hidden; visibility: hidden; transition: visibility 0.5s; }
.js .faq-item.open .faq-answer { grid-template-rows: 1fr; }
.js .faq-item.open .faq-answer-inner { visibility: visible; }

@media (min-width: 768px) {
  .faq-question { font-size: 22px; }
}

@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; gap: 80px; }
  .faq__head { position: sticky; top: 120px; }
}

/* ── CTA final ────────────────────────────────────────────────────────── */

.final { position: relative; overflow: hidden; padding-block: 144px; }
.final__plate {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(var(--final-s, 1));
  transform-origin: 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
}
.final__plate img { object-position: 0% 50%; }
.final__dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.final__inner { position: relative; z-index: 1; }
.final__title { max-width: 900px; }
.final__lead { max-width: 580px; color: rgba(236, 236, 236, 0.82); }
.final__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.final__trust { display: flex; align-items: flex-start; gap: 8px; margin-top: 20px; color: #a1a1a1; }
.final__trust .icon { margin-top: 2px; font-size: 14px; }

@media (min-width: 768px) {
  .final { padding-block: 240px; }
}

/* ── Rodapé ───────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--line); }
.site-footer__row { display: flex; flex-direction: column; gap: 24px; padding-block: 36px; }
.site-footer__logo { display: flex; align-self: flex-start; border-radius: 8px; color: var(--fg-strong); }
.site-footer__logo .logo-sayfy { height: 24px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer__nav a,
.site-footer__legal a { border-radius: 4px; font-size: 14px; color: var(--muted); transition: color 0.2s; }
.site-footer__nav a:hover,
.site-footer__legal a:hover { color: var(--fg); }
.site-footer__tagline { font-size: 14px; color: var(--muted); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px 28px;
  /* Linha fina alinhada ao conteúdo, não à borda do contêiner. */
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: 13px;
  color: var(--subtle);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__legal a { font-size: 13px; }
.site-footer__legal a[aria-current="page"] { color: var(--fg); }
.site-footer__secure { display: inline-flex; align-items: center; gap: 6px; }

@media (min-width: 1024px) {
  .site-footer__row { flex-direction: row; align-items: center; justify-content: space-between; }
  .site-footer__logo { align-self: auto; }
}

/* ── Modal de interesse ───────────────────────────────────────────────── */

.lead-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.74);
  opacity: 0;
  visibility: hidden;
  /* Some depois do esmaecimento, mas aparece na hora: o foco no e-mail precisa do modal visível. */
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.lead-modal-overlay.open { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease), visibility 0s; }

.lead-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 32px);
  padding: 32px 24px 24px;
  overflow-y: auto;
  border: 1px solid var(--light-120);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 40px 120px -20px #000;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.45s var(--ease);
}
.lead-modal-overlay.open .lead-modal { transform: none; }

.lead-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--light-120);
  border-radius: 10px;
  color: rgba(236, 236, 236, 0.8);
  transition: background-color 0.2s, color 0.2s;
}
.lead-modal-close:hover { background: var(--light-060); color: var(--fg); }
.lead-modal-close .icon { font-size: 16px; }

.lead-modal-icon,
.lead-success-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--light-120);
  border-radius: 14px;
  background: linear-gradient(45deg, rgba(43, 143, 209, 0.28), rgba(62, 224, 208, 0.14));
  color: var(--fg);
}
.lead-modal-icon .icon { font-size: 22px; }

.lead-modal-title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.lead-modal-title:focus { outline: none; }
.lead-modal-desc { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }

.lead-modal-form { display: grid; gap: 16px; margin-top: 28px; }
.lead-field label { display: block; margin-bottom: 8px; font-size: 13.5px; color: var(--fg-2); }
.lead-req { color: var(--brand-strong); }
.lead-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--light-120);
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lead-field input::placeholder { color: #7d7d7d; }
.lead-field input:hover { border-color: var(--light-200); }
.lead-field input:focus { outline: none; border-color: var(--brand-strong); box-shadow: 0 0 0 3px rgba(43, 143, 209, 0.3); }

.lead-modal-btn {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  border-radius: 999px;
  background-image: var(--gradient-brand);
  background-size: 190% 100%;
  background-position: 0% 0;
  color: var(--brand-ink);
  font-size: 15.5px;
  font-weight: 560;
  transition: background-position 0.5s var(--ease), opacity 0.2s;
}
.lead-modal-btn:hover { background-position: 100% 0; }
.lead-modal-btn:disabled { opacity: 0.6; cursor: progress; }

.lead-modal-success { text-align: center; }
.lead-success-icon { width: 56px; height: 56px; margin-inline: auto; border-radius: 50%; }
.lead-success-icon .icon { font-size: 26px; stroke-width: 2.25; }
.lead-modal-success .lead-modal-btn { margin-top: 24px; }

@media (min-width: 480px) {
  .lead-modal { padding: 36px 32px 32px; }
}

/* ── Entrada e revelação ──────────────────────────────────────────────── */

/* Entrada acima da dobra: CSS desde a primeira pintura, então funciona sem JS. */
.enter { animation: enter var(--enter-dur, 0.9s) var(--ease) var(--enter-delay, 0s) both; }
.word { display: inline-block; }
.word.enter { --enter-y: 26px; --enter-blur: 14px; --enter-dur: 1s; }

@keyframes enter {
  from {
    opacity: 0;
    filter: blur(var(--enter-blur, 8px));
    transform: translateY(var(--enter-y, 28px));
  }
}

.js [data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-in { opacity: 1; filter: none; transform: none; }
/* Na grade de linhas finas quem entra é o conteúdo da célula: a célula esmaecida
   deixaria o fundo da grade à mostra. */
.js .module[data-reveal],
.js .cell[data-reveal] { opacity: 1; filter: none; transform: none; }
.js .module[data-reveal] > *,
.js .cell[data-reveal] > * {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .module[data-reveal].is-in > *,
.js .cell[data-reveal].is-in > * { opacity: 1; transform: none; }

@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;
  }
  .enter { animation: none; }
  .js [data-reveal],
  .js .module[data-reveal] > *,
  .js .cell[data-reveal] > * { opacity: 1; filter: none; transform: none; }
  .marquee { justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex-shrink: 1; flex-wrap: wrap; justify-content: center; padding-right: 0; animation: none; }
  .marquee__track[aria-hidden="true"],
  .marquee__track > li[aria-hidden="true"] { display: none; }
  .clip-bars,
  .typed__caret { display: none; }
}

/* ── Páginas legais (privacidade e termos) ────────────────────────────── */

.section-wrap { display: block; }
.side-panel { display: none; }
.content-panel { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.legal-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  color: rgba(236, 236, 236, 0.75);
  transition: color 0.2s;
}
.legal-nav-back:hover { color: var(--fg); }

.legal-hero-inner { padding: 152px 0 48px; border-bottom: 1px solid var(--line); }

.section-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid var(--light-100);
  border-radius: 999px;
  background: var(--light-040);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(236, 236, 236, 0.85);
}

.section-h2 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-wrap: balance;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.legal-meta .sep { color: var(--light-250); }

.legal-inner { padding: 56px 0 120px; }
.legal-prose { max-width: 760px; }
.legal-lead { font-size: 19px; line-height: 1.6; color: var(--fg-2); }
.legal-prose a {
  color: var(--brand-strong);
  text-decoration: underline;
  text-decoration-color: rgba(108, 192, 242, 0.45);
  text-underline-offset: 0.24em;
}
.legal-prose a:hover { text-decoration-color: currentColor; }

.legal-toc {
  margin: 40px 0 8px;
  padding: 24px 28px;
  border: 1px solid var(--light-100);
  border-radius: 18px;
  background: var(--surface);
}
.legal-toc-title { margin-bottom: 12px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.legal-prose .legal-toc ol { columns: 2; column-gap: 32px; margin: 0; padding-left: 22px; list-style: decimal; }
.legal-prose .legal-toc li { margin-bottom: 6px; font-size: 14.5px; line-height: 1.5; break-inside: avoid; }
.legal-prose .legal-toc li::marker { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }
.legal-prose .legal-toc a { color: var(--fg-2); text-decoration: none; }
.legal-prose .legal-toc a:hover { color: var(--fg); }

.legal-prose h2 {
  margin: 56px 0 16px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.legal-prose h3 { margin: 32px 0 12px; font-size: 18px; font-weight: 600; color: var(--fg); }
.legal-prose p,
.legal-prose li { font-size: 16px; line-height: 1.75; color: #b3b3b3; }
.legal-prose p { margin-bottom: 16px; }
.legal-prose ul,
.legal-prose ol { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal-prose li { margin-bottom: 8px; }
.legal-prose li::marker { color: var(--brand-strong); }
.legal-prose strong { font-weight: 600; color: var(--fg); }
.legal-prose em { color: var(--fg-2); }
.legal-prose code {
  padding: 2px 6px;
  border: 1px solid var(--light-100);
  border-radius: 6px;
  background: var(--light-050);
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--fg);
}

.legal-table {
  width: 100%;
  margin: 8px 0 24px;
  border: 1px solid var(--light-100);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 14.5px;
}
.legal-table th,
.legal-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.legal-table th { background: var(--light-040); font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--muted); }
.legal-table td { color: #b3b3b3; }
.legal-table tr:last-child td { border-bottom: 0; }

.legal-note {
  margin-top: 48px;
  padding: 20px 24px;
  border: 1px solid var(--light-100);
  border-left: 2px solid var(--brand);
  border-radius: 14px;
  background: var(--surface);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 767px) {
  .legal-prose .legal-toc ol { columns: 1; }
  .legal-table { display: block; overflow-x: auto; }
  .legal-table td { min-width: 180px; }
}

@media (min-width: 768px) {
  .legal-hero-inner { padding: 184px 0 64px; }
  .section-h2 { font-size: 72px; }
  .legal-prose h2 { font-size: 32px; }
}

/* No desktop o título do topo quebra nas pausas da frase: "Do chamado / à máquina corrigida, / sem tocar no sistema."
   No celular cada grupo é largo demais para uma linha, então ele quebra sozinho. */
@media (min-width: 1024px) {
  .hero__keep { white-space: nowrap; }
}
