/* BL Tech — landing page. Decisões visuais registradas em MEMORIA.md. */

@font-face {
  font-family: Archivo;
  src: url(fonts/archivo.woff2) format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url(fonts/cormorant-italic.woff2) format("woff2");
  font-style: italic; font-weight: 500; font-display: swap;
}

:root {
  --ink: #000;
  --surface: #111215;
  --text: #f4f4f2;
  --mute: #9a9da3;
  --line: #26282c;
  --blue: #2563ff;
  --blue-hover: #1a4fe0;
  --blue-hi: #6f9bff;
  --cyan: #22d3ee;
  --paper: #e9eaec;
  --paper-ink: #0a0b0d;
  --paper-mute: #565a62;
  --paper-blue: #1d4fd8;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 90rem;
  --edge: max(var(--gutter), (100% - var(--max)) / 2 + var(--gutter)); /* gutter alinhado à grade de 90rem */
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.55 Archivo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::after { /* grão de filme em toda a página */
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: url(img/grain.svg); opacity: .07;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg, img { display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 95;
  padding: .75rem 1rem; border-radius: 8px;
  background: var(--text); color: var(--ink); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 1rem; }

main > section, .footer { padding-inline: var(--edge); }
section[id] { scroll-margin-top: 5rem; }

/* Tipografia de títulos: expandida no desktop, largura normal no mobile */
h1, h2 {
  font-weight: 560;
  font-stretch: 100%;
  letter-spacing: -.03em;
  line-height: 1.02;
  text-wrap: balance;
}
@media (min-width: 48rem) {
  h1, h2 { font-stretch: 112%; letter-spacing: -.04em; }
}

h2 { font-size: clamp(2.1rem, 4.6vw, 4.25rem); }

.section-head {
  display: grid; gap: 1.25rem 4rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head p { max-width: 30rem; color: var(--mute); font-size: 1.125rem; }
@media (min-width: 64rem) {
  .section-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; }
}

/* Botões e links */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.6rem;
  border-radius: 999px;
  background: var(--blue); color: #fff;
  font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center;
  transition: background-color .2s, transform .2s var(--ease);
}
.btn::after { /* brilho que atravessa o botão no hover */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn:hover { background: var(--blue-hover); }
.btn:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 3.75rem; padding: 0 2.2rem; font-size: 1.0625rem; }

.link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #4a4d53;
  text-underline-offset: .35em;
  text-decoration-thickness: 1px;
  transition: color .2s, text-decoration-color .2s;
}
.link:hover { color: var(--blue-hi); text-decoration-color: currentColor; }

.hint { font-size: .875rem; color: var(--mute); }

/* Área de toque de ~44px sem alterar o layout visual */
a.brand, .link, .demo-pause { position: relative; }
a.brand::before, .link::before, .demo-pause::before { content: ""; position: absolute; inset: -.6rem -.5rem; }
a.brand::before { inset: -.75rem -.5rem; }
.demo-pause::before { inset: -.3rem -.5rem; }

/* Marca */
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; font-size: 1rem; letter-spacing: .08em;
}
.brand-mark { width: 1.375rem; height: 1.375rem; }
.brand-dot { fill: var(--blue); stroke: var(--ink); stroke-width: 2; }
.brand-word { font-weight: 300; font-stretch: 110%; white-space: nowrap; }
.brand-word b { font-weight: 700; font-stretch: 125%; letter-spacing: .02em; }

/* Cabeçalho e navegação */
.header {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.5rem; padding: 0 var(--edge);
}

.nav {
  position: fixed; z-index: 20;
  display: flex; align-items: center; gap: .25rem;
  padding: .3125rem;
  border-radius: 999px;
  background: rgba(17, 18, 21, .78);
  border: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
.nav-links { display: flex; }
.nav-links a {
  position: relative; display: block;
  padding: .55rem 1rem; border-radius: 999px;
  color: var(--mute); font-size: .9375rem; text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-links a[aria-current]::after {
  content: ""; position: absolute; left: 50%; bottom: .2rem;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--cyan);
}
.nav-cta { min-height: 2.5rem; padding: 0 1.15rem; font-size: .9375rem; }
.nav-toggle {
  display: none;
  min-height: 2.75rem; padding: 0 1.1rem;
  border: 0; border-radius: 999px; background: transparent;
  font-weight: 500;
}

@media (min-width: 48rem) {
  .nav { top: .875rem; right: var(--edge); }
}

/* Mobile: barra na zona do polegar, aparece depois do CTA do hero */
@media (max-width: 47.99rem) {
  .nav {
    left: .75rem; right: .75rem;
    bottom: max(.75rem, env(safe-area-inset-bottom));
    justify-content: space-between;
    transform: translateY(160%);
    visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s .45s;
  }
  .nav.is-visible { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-cta { flex: 1; min-height: 2.75rem; }
  .nav-links {
    position: absolute; left: 0; right: 0; bottom: calc(100% + .5rem);
    flex-direction: column;
    padding: .5rem;
    border-radius: 1.25rem;
    background: #141518;
    border: 1px solid rgba(255, 255, 255, .08);
    opacity: 0; visibility: hidden; transform: translateY(.5rem);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav-links a { padding: 1rem 1.1rem; font-size: 1.0625rem; color: var(--text); }
  .nav-links a[aria-current]::after { left: auto; right: 1.1rem; bottom: 50%; margin: 0 0 -2px; }
}

/* ---------- Hero: fios de luz dispersos (atenção) que convergem no celular (oportunidade) ----------
   O script desenha o campo no canvas e define --p (0 → 1) conforme o scroll; no desktop o palco fica fixo enquanto se abre. */
.hero { position: relative; overflow-x: clip; padding-inline: 0; }
.hero-stage {
  position: relative; isolation: isolate;
  display: grid; gap: 3.5rem;
  padding: 7rem var(--edge) 4rem;
}
.hero-stage::before, .hero-stage::after { /* aurora azul e ciano */
  content: ""; position: absolute; z-index: -2; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
}
.hero-stage::before {
  width: 46rem; right: -18rem; bottom: -14rem;
  background: radial-gradient(closest-side, rgba(37, 99, 255, .42), rgba(37, 99, 255, .1) 55%, transparent);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero-stage::after {
  width: 26rem; right: -12rem; top: -8rem;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .2), transparent);
  animation: drift 17s ease-in-out -6s infinite alternate-reverse;
}
@keyframes drift { to { transform: translate(-4rem, -3rem) scale(1.12); } }

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

.hero h1 { font-size: clamp(2.55rem, 5.1vw, 5rem); }
.hero-sub { max-width: 30rem; margin-top: 1.5rem; color: #b4b7bd; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }

@media (max-width: 47.99rem) {
  .hero-stage { padding-top: 6rem; }
  .hero-actions .btn { width: 100%; }
}

@media (min-width: 64rem) {
  .hero-stage {
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(2rem, 6vw, 7rem);
    padding-block: 6.5rem 5.5rem;
  }
  .hero-stage::before { width: 64rem; right: -20rem; top: -16rem; bottom: auto; }
  .hero-stage::after { width: 34rem; right: 8rem; top: auto; bottom: -12rem; }
}

/* Desktop: o hero fica fixo por um trecho enquanto o celular se endireita e o feixe se forma */
@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
  .hero { height: 200svh; }
  .hero-stage { position: sticky; top: 0; height: 100svh; }
  .hero .phone {
    will-change: transform;
    transform:
      perspective(1400px)
      translateY(calc((1 - var(--p, 0)) * 2svh))
      rotate(calc((1 - var(--p, 0)) * -7deg))
      scale(calc(.86 + .14 * var(--p, 0)))
      rotateY(calc(var(--mx, 0) * 12deg))
      rotateX(calc(var(--my, 0) * -9deg));
  }
  .hero .fold { opacity: calc(1 - var(--p, 0) * 4); }
}

/* Entrada do hero: um único momento orquestrado */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: settle 1s var(--ease) both; } /* sem opacidade: o título pinta no primeiro quadro (LCP) */
  .hero-sub { animation: rise 1s var(--ease) .12s both; }
  .hero-actions { animation: rise 1s var(--ease) .24s both; }
  .demo { animation: rise 1.2s var(--ease) .2s both; }
  .hero-field { animation: fade-in 1.6s ease .1s both; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(2rem); } }
@keyframes settle { from { transform: translateY(1.5rem); } }

/* Linha da dobra (só onde o hero ocupa a tela inteira) */
.fold { display: none; }
@media (min-width: 64rem) {
  .fold {
    display: flex; align-items: center; gap: 1rem;
    position: absolute; left: var(--edge); right: var(--edge); bottom: 1.5rem;
    color: var(--mute); font-size: .8125rem;
  }
  .fold::before, .fold::after { content: ""; height: 1px; background: repeating-linear-gradient(90deg, #3a3d42 0 6px, transparent 6px 12px); }
  .fold::before { width: 2.5rem; }
  .fold::after { flex: 1; }
}

/* Demonstração */
.demo { --demo-w: min(68vw, 16.5rem); position: relative; display: grid; justify-items: center; gap: 1.25rem; }
.demo .phone { --pw: var(--demo-w); }
.demo-slot { position: absolute; inset: 0; }
.demo-caption { display: grid; justify-items: center; gap: .75rem; }

@media (min-width: 64rem) {
  .demo { --demo-w: clamp(12rem, min(19vw, 31svh), 17.5rem); } /* o celular cabe na altura da tela */
}

.demo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; width: var(--demo-w); }
.demo-steps li {
  position: relative;
  border-top: 2px solid #2a2c31;
  color: var(--mute); font-size: .8125rem; transition: color .3s;
}
.demo-steps li::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px;
  background: linear-gradient(90deg, var(--blue-hi), var(--cyan)); transform: scaleX(0); transform-origin: left;
}
.demo-steps b { display: block; padding-top: .65rem; font-weight: 600; }

/* Estados da sequência: passos concluídos cheios, passo atual preenchendo */
.demo[data-step="atencao"] li[data-step="atencao"],
.demo[data-step="decisao"] li[data-step="decisao"],
.demo[data-step="oportunidade"] li[data-step="oportunidade"] { color: var(--text); }

.demo[data-step="decisao"] li[data-step="atencao"]::before,
.demo[data-step="oportunidade"] li:not([data-step="oportunidade"])::before,
.demo[data-step="troca"] li::before { transform: none; }

.demo[data-step="atencao"] li[data-step="atencao"]::before { animation: fill 2.6s linear forwards; }
.demo[data-step="decisao"] li[data-step="decisao"]::before { animation: fill 1.3s linear forwards; }
.demo[data-step="oportunidade"] li[data-step="oportunidade"]::before { animation: fill 3.4s linear forwards; }
.demo.is-paused li::before { animation-play-state: paused; }

@keyframes fill { to { transform: none; } }

.demo-pause {
  padding: .5rem 0; border: 0; background: none;
  color: var(--mute); font-size: .8125rem;
  text-decoration: underline; text-decoration-color: #3a3d42; text-underline-offset: .3em;
}
.demo-pause:hover { color: var(--text); }

/* ---------- Dispositivos ---------- */
.phone {
  --pw: 16rem;
  position: relative;
  width: var(--pw); aspect-ratio: 9 / 19.3;
  padding: calc(var(--pw) * .028);
  border-radius: calc(var(--pw) * .16);
  background: linear-gradient(160deg, #3a3c42, #16171a 45%, #26282d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 2.5rem 5rem -1.5rem rgba(0, 0, 0, .9);
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--pw) * .135);
  background: #000;
  transform: translateZ(0); /* garante o recorte dos cantos durante as transições no Safari */
}
.phone-screen::before {
  content: ""; position: absolute; z-index: 5;
  top: calc(var(--pw) * .035); left: 50%; width: 30%; height: calc(var(--pw) * .085);
  transform: translateX(-50%);
  border-radius: 999px; background: #000;
}

.browser {
  overflow: hidden;
  border-radius: .875rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 3rem 6rem -2rem rgba(0, 0, 0, .9);
}
.browser-bar {
  display: flex; align-items: center; gap: .4rem;
  height: 2rem; padding: 0 .875rem;
  background: #18191c; border-bottom: 1px solid #232428;
}
.browser-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: #303237; }
.browser-view { aspect-ratio: 16 / 9.4; }

/* ---------- Vitrine em leque ---------- */
.showcase {
  position: relative; isolation: isolate; overflow-x: clip;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(5rem, 10vw, 8rem);
  text-align: center;
}
.showcase h2 { max-width: 16ch; margin: 0 auto; font-size: clamp(2rem, 4.4vw, 4rem); }

.fan { display: flex; justify-content: center; align-items: flex-start; margin-top: clamp(3rem, 6vw, 5rem); }
.fan-item { --r: 0deg; --y: 0rem; --glow: #2563ff; position: relative; flex: none; margin: 0 -1.4rem; transform: translateY(var(--y)) rotate(var(--r)); }
.fan-item::before { /* halo colorido de cada segmento */
  content: ""; position: absolute; z-index: -1; inset: 0 -45% 10%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 55%, transparent), transparent);
}
.fan-item .phone { --pw: clamp(9.5rem, 13vw, 13.5rem); animation: float 7s ease-in-out infinite; }
.fan-item:nth-child(1) { --r: -10deg; --y: 4.5rem; --glow: #ffd23f; }
.fan-item:nth-child(2) { --r: -5deg; --y: 1.4rem; --glow: #d9a48c; z-index: 1; }
.fan-item:nth-child(3) { --glow: #cdb88f; z-index: 2; }
.fan-item:nth-child(4) { --r: 5deg; --y: 1.4rem; --glow: #19c3c9; z-index: 1; }
.fan-item:nth-child(5) { --r: 10deg; --y: 4.5rem; --glow: #6d84c4; }
.fan-item:nth-child(3) .phone { --pw: clamp(10.5rem, 15vw, 15.5rem); }
.fan-item:nth-child(2) .phone { animation-delay: -1.5s; }
.fan-item:nth-child(3) .phone { animation-delay: -3s; }
.fan-item:nth-child(4) .phone { animation-delay: -4.5s; }
.fan-item:nth-child(5) .phone { animation-delay: -6s; }
.fan-label { display: block; margin-top: 1.25rem; color: var(--mute); font-size: .875rem; }

@keyframes float { 50% { transform: translateY(-.75rem); } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 48rem) {
    .fan-item { animation: fan-in linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes fan-in { from { opacity: 0; transform: translateY(calc(var(--y) + 9rem)) rotate(0deg); } }

@media (max-width: 47.99rem) {
  .fan {
    justify-content: flex-start; gap: 1rem;
    margin-inline: calc(var(--edge) * -1); padding: 1rem var(--edge) 1.5rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .fan::-webkit-scrollbar { display: none; }
  .fan-item { margin: 0; transform: none; scroll-snap-align: center; }
  .fan-item .phone, .fan-item:nth-child(3) .phone { --pw: 58vw; }
}

/* ---------- Método / anatomia ---------- */
.method { position: relative; isolation: isolate; padding-block: clamp(5rem, 12vw, 10rem); }
.method::before { /* grade de planta técnica */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(111, 155, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 155, 255, .08) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  -webkit-mask-image: radial-gradient(60% 55% at 30% 60%, #000, transparent);
  mask-image: radial-gradient(60% 55% at 30% 60%, #000, transparent);
}
.method-head { display: grid; gap: 1.5rem; max-width: 62rem; }
.statement { font-size: clamp(2rem, 4.4vw, 4rem); }
.statement span { color: #5d6066; }
.method-head p { color: var(--mute); font-size: 1.125rem; }

.anatomy {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.5rem;
  margin-top: clamp(4rem, 9vw, 7rem);
}
.blueprint { position: sticky; top: 1.5rem; align-self: start; }
.bp-page {
  position: relative;
  display: flex; flex-direction: column; gap: 7%;
  aspect-ratio: 3 / 5.2; padding: 9% 9% 12%;
  border: 1px solid #3a3d42; border-radius: .5rem;
  background: rgba(8, 12, 24, .6);
  transition: border-color .3s, box-shadow .3s;
}
.bp-nav { height: 2.5%; width: 40%; border-radius: 2px; background: #3a3d42; }
.bp-block {
  position: relative; display: flex; flex-direction: column; gap: 9%;
  padding: 8%;
  border: 1px solid #2c2e33; border-radius: 4px;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.bp-block i { display: block; height: .25rem; border-radius: 2px; background: #3a3d42; transition: background-color .3s; }
.bp-block i:nth-child(2) { width: 70%; }
.bp-block .bp-btn { width: 45%; height: .5rem; border-radius: 999px; background: #4a4d53; }
.bp-promessa { flex: 1.4; }
.bp-confianca { flex: 1; flex-direction: row; }
.bp-block.bp-confianca i { flex: 1; width: auto; height: auto; aspect-ratio: 4 / 3; }
.bp-objecoes { flex: 1.2; }
.bp-passo { flex: .6; align-items: center; justify-content: center; }
.bp-fold { position: relative; margin: -3.5% -9%; border-top: 1px dashed #4a4d53; }

.bp-page.is-active { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .12), 0 0 3rem rgba(37, 99, 255, .35); }
.bp-block.is-active { border-color: var(--blue-hi); background: rgba(37, 99, 255, .16); box-shadow: 0 0 1.5rem rgba(37, 99, 255, .45); }
.bp-block.is-active i { background: linear-gradient(90deg, var(--blue-hi), var(--cyan)); }

.parts li { padding: 0 0 clamp(3rem, 8vh, 5rem); }
.parts h3 { font-size: clamp(1.375rem, 2.2vw, 2rem); font-weight: 560; font-stretch: 108%; letter-spacing: -.02em; line-height: 1.15; color: #7d8087; transition: color .3s; }
.parts p { max-width: 30rem; margin-top: .5rem; color: var(--mute); }
.parts li.is-active h3 { color: var(--text); }

.method-note { color: var(--cyan); font-size: .9375rem; }

@media (min-width: 48rem) {
  .anatomy { grid-template-columns: 9rem minmax(0, 1fr); gap: 3rem; }
}

@media (min-width: 64rem) {
  .anatomy { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(3rem, 8vw, 8rem); }
  .blueprint { top: 18vh; width: min(100%, 19rem); justify-self: center; }
  .bp-block i { height: .375rem; }
  .bp-block .bp-btn { height: .875rem; }
  .bp-fold::after { content: "dobra"; position: absolute; left: calc(100% + .75rem); top: -.55rem; color: #6b6e74; font-size: .75rem; }
  .parts li { min-height: 28vh; padding: 0; }
  .parts li:first-child { padding-top: 8vh; }
  .parts li:last-child { min-height: 20vh; }
}

/* ---------- Segmentos: o fundo assume a cor do segmento escolhido ---------- */
@property --seg-bg { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --seg-glow { syntax: "<color>"; inherits: true; initial-value: #2563ff; }

.segments {
  --seg-bg: #0f0d05; --seg-glow: #ffd23f;
  padding-block: clamp(5rem, 12vw, 9rem);
  background:
    radial-gradient(55% 45% at 22% 55%, color-mix(in srgb, var(--seg-glow) 26%, transparent), transparent 70%),
    radial-gradient(35% 35% at 92% 8%, color-mix(in srgb, var(--seg-glow) 14%, transparent), transparent 70%),
    var(--seg-bg);
  transition: --seg-bg .9s var(--ease), --seg-glow .9s var(--ease);
}
.segments[data-niche="estetica"] { --seg-bg: #1a110e; --seg-glow: #d9a48c; }
.segments[data-niche="odonto"] { --seg-bg: #03161a; --seg-glow: #19c3c9; }
.segments[data-niche="imoveis"] { --seg-bg: #120f0a; --seg-glow: #cdb88f; }
.segments[data-niche="advocacia"] { --seg-bg: #0a1020; --seg-glow: #6d84c4; }

.tabs {
  position: relative;
  display: flex; gap: .25rem;
  width: max-content; max-width: 100%;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding: .3125rem;
  border-radius: 999px; background: rgba(255, 255, 255, .06);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: none;
  min-height: 2.75rem; padding: 0 1.15rem;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--mute); font-size: .9375rem; font-weight: 500; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"]:focus-visible { outline-offset: -3px; } /* a lista rola e cortaria o anel externo */
.tabs [aria-selected="true"] { background: #f4f4f2; color: #000; }
.tabs [aria-selected="true"]:hover { color: #000; }

@media (max-width: 47.99rem) {
  .tabs { width: auto; margin-inline: calc(var(--edge) * -1); padding-inline: var(--edge); border-radius: 0; background: none; scroll-snap-type: x proximity; }
  .tabs [role="tab"] { scroll-snap-align: center; }
  .tabs [aria-selected="false"] { background: rgba(255, 255, 255, .07); }
}

.stage { display: grid; gap: 3rem; }
.devices { position: relative; display: grid; justify-items: center; }
.devices .browser { display: none; }
.devices .phone { --pw: min(66vw, 15.5rem); }
.browser .mock:not([hidden]) { animation: wipe .8s var(--ease); }
.devices .phone .mock { animation: pop .7s var(--ease); }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes pop { from { opacity: 0; transform: translateY(1.5rem) scale(.97); } }

@media (min-width: 48rem) {
  .devices { display: block; justify-items: stretch; padding: 0 3.5rem 3rem 0; }
  .devices .browser { display: block; }
  .devices .phone { --pw: clamp(8.5rem, 15vw, 10.5rem); position: absolute; right: 0; bottom: 0; }
}
@media (min-width: 64rem) {
  .stage { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .devices .phone { --pw: clamp(8.5rem, 11vw, 10.5rem); }
}

.panel h3 { font-size: clamp(1.5rem, 2.4vw, 2.125rem); font-weight: 560; font-stretch: 108%; letter-spacing: -.025em; line-height: 1.12; }
.panel-lead { margin-top: 1rem; max-width: 26rem; color: #c9cbd0; font-size: 1.1875rem; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chips li {
  padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--seg-glow) 55%, transparent);
  background: color-mix(in srgb, var(--seg-glow) 10%, transparent);
  font-size: .875rem;
}
.panel .btn { margin-top: 2rem; }
.panel:focus-visible { outline-offset: 8px; }
.note { margin-top: 2rem; color: var(--mute); font-size: .8125rem; }

@media (max-width: 47.99rem) {
  .panel .btn { width: 100%; }
}

.others {
  display: grid; gap: 1rem 3rem;
  margin-top: clamp(4rem, 8vw, 6rem); padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.others p { max-width: 40rem; color: var(--mute); }
.others strong { color: var(--text); font-weight: 600; }
@media (min-width: 48rem) {
  .others { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

/* ---------- Estudos de página: cada segmento com layout, tipo e cor próprios ----------
   Mesmo markup no celular e no navegador: container queries trocam o layout (≥30rem = desktop). */
.mock {
  --m-bg: #fff; --m-ink: #111;
  container-type: inline-size;
  position: relative; isolation: isolate; /* camadas internas não vazam sobre o celular sobreposto */
  height: 100%; overflow: hidden;
  background: var(--m-bg); color: var(--m-ink);
  font-family: Archivo, sans-serif;
}
.mock::before { /* barra de status do celular: o conteúdo rola por baixo dela */
  content: ""; position: absolute; z-index: 3; inset: 0 0 auto; height: 13cqi;
  background: linear-gradient(var(--m-bg) 60%, transparent);
}
.mock img { width: 100%; height: 100%; object-fit: cover; }
.mock figure { margin: 0; }
.mock-cta { position: relative; display: inline-block; white-space: nowrap; transition: transform .2s var(--ease); }
.mock-cta::after { /* toque no botão durante a demonstração */
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 3em; height: 3em; margin: -1.5em;
  border-radius: 50%; background: currentColor;
  opacity: 0; transform: scale(.2); pointer-events: none;
}
@container (min-width: 30rem) {
  .mock::before { display: none; }
}

/* Infoproduto: energia, preto e amarelo, condensada gigante, vídeo e módulos */
.m-info { --m-bg: #0e0e0e; --m-ink: #f4f1e8; --m-accent: #ffd23f; }
.mi-ticker {
  margin-top: 13cqi; padding: 1.8cqi 0; overflow: hidden; white-space: nowrap;
  background: var(--m-accent); color: #0e0e0e;
  font-size: 3cqi; font-weight: 800; font-stretch: 75%; letter-spacing: .08em; text-transform: uppercase;
}
.mi-ticker span { display: inline-block; animation: marquee 9s linear infinite; }
.mi-nav { display: flex; justify-content: space-between; align-items: center; padding: 4cqi 6cqi; font-size: 3.2cqi; }
.mi-nav b { font-size: 4cqi; font-weight: 800; font-stretch: 70%; letter-spacing: .1em; }
.mi-body { padding: 2cqi 6cqi 0; }
.mi-kicker { color: var(--m-accent); font-size: 3cqi; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.mi-title { margin-top: 2.5cqi; font-size: 16cqi; font-weight: 800; font-stretch: 62%; line-height: .88; text-transform: uppercase; }
.mi-title em { font-style: normal; color: var(--m-accent); }
.mi-buy { display: flex; align-items: center; gap: 4cqi; margin-top: 5cqi; }
.m-info .mock-cta {
  padding: 3.2cqi 5cqi; border-radius: 1cqi;
  background: var(--m-accent); color: #0e0e0e;
  font-size: 3.6cqi; font-weight: 800; font-stretch: 80%; letter-spacing: .05em; text-transform: uppercase;
}
.mi-buy small { font-size: 3cqi; opacity: .65; }
.mi-video { position: relative; margin-top: 6cqi; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2cqi; }
.mi-play { position: absolute; left: 50%; top: 50%; width: 14cqi; aspect-ratio: 1; margin: -7cqi 0 0 -7cqi; border-radius: 50%; background: var(--m-accent); }
.mi-play::before { content: ""; position: absolute; inset: 30% 26% 30% 38%; background: #0e0e0e; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.mi-play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--m-accent); animation: ping 2s var(--ease) infinite; }
.mi-time { position: absolute; right: 3cqi; bottom: 3cqi; padding: .8cqi 1.8cqi; border-radius: 1cqi; background: rgba(0, 0, 0, .7); font-size: 2.8cqi; font-weight: 600; }
.mi-mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5cqi; padding: 7cqi 6cqi; }
.mi-mods img { height: auto; aspect-ratio: 1; border-radius: 1.5cqi; }
.mi-mods figcaption { margin-top: 1.6cqi; font-size: 2.8cqi; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: .04em; }

@container (min-width: 30rem) {
  .mi-ticker { margin-top: 0; padding: .8cqi 0; font-size: 1.1cqi; }
  .mi-nav { padding: 2.2cqi 5cqi; font-size: 1.2cqi; }
  .mi-nav b { font-size: 1.6cqi; }
  .mi-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4cqi; align-items: center; padding: .5cqi 5cqi 0; }
  .mi-kicker { font-size: 1.15cqi; }
  .mi-title { margin-top: 1cqi; font-size: 7.6cqi; }
  .mi-buy { gap: 1.6cqi; margin-top: 2.4cqi; }
  .m-info .mock-cta { padding: 1.3cqi 2.2cqi; border-radius: .4cqi; font-size: 1.35cqi; }
  .mi-buy small { font-size: 1.1cqi; }
  .mi-video { margin-top: 0; border-radius: .8cqi; }
  .mi-play { width: 6cqi; margin: -3cqi 0 0 -3cqi; }
  .mi-time { right: 1.2cqi; bottom: 1.2cqi; padding: .3cqi .8cqi; font-size: 1cqi; }
  .mi-mods { gap: 2cqi; padding: 3.4cqi 5cqi; }
  .mi-mods img { aspect-ratio: 16 / 7; border-radius: .6cqi; }
  .mi-mods figcaption { margin-top: .6cqi; font-size: 1.05cqi; }
}

/* Estética: leve e acolhedora, serifa itálica, arco e composição centrada */
.m-est { --m-bg: #f1e7de; --m-ink: #3b2a24; }
.me-nav { display: flex; justify-content: space-between; align-items: center; padding: 15cqi 6cqi 5cqi; font-size: 2.6cqi; letter-spacing: .16em; text-transform: uppercase; }
.me-nav b { font: italic 500 6.4cqi/1 "Cormorant Garamond", Georgia, serif; letter-spacing: 0; text-transform: none; }
.me-hero { position: relative; display: flex; flex-direction: column; padding: 0 6cqi; text-align: center; }
.me-arch { order: -1; width: 74%; margin: 0 auto; aspect-ratio: 3 / 3.7; overflow: hidden; border-radius: 999px 999px 2cqi 2cqi; }
.me-arch img { animation: breathe 10s ease-in-out infinite alternate; }
.me-badge { position: absolute; left: 4cqi; top: 58cqi; width: 26cqi; aspect-ratio: 1; overflow: hidden; border-radius: 50%; border: 1.4cqi solid var(--m-bg); animation: bob 6s ease-in-out infinite; }
.me-text { margin-top: 6cqi; }
.me-title { font: italic 500 13cqi/.95 "Cormorant Garamond", Georgia, serif; letter-spacing: -.01em; }
.me-lead { max-width: 88%; margin: 3.5cqi auto 0; font-size: 3.4cqi; line-height: 1.5; opacity: .75; }
.m-est .mock-cta {
  margin-top: 5cqi; padding: 3cqi 6cqi; border-radius: 999px;
  background: var(--m-ink); color: var(--m-bg);
  font-size: 3cqi; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.me-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqi; padding: 9cqi 10cqi; text-align: center; }
.me-row img { height: auto; aspect-ratio: 1; border-radius: 50%; object-position: 62% center; }
.me-row figcaption { margin-top: 2cqi; font: italic 500 5cqi/1 "Cormorant Garamond", Georgia, serif; }

@container (min-width: 30rem) {
  .me-nav { padding: 2.6cqi 6cqi; font-size: 1cqi; }
  .me-nav b { font-size: 2.6cqi; }
  .me-hero { display: grid; grid-template-columns: 1fr .78fr; align-items: center; gap: 5cqi; padding: .5cqi 8cqi 0; text-align: left; }
  .me-arch { order: 0; width: 100%; aspect-ratio: 3 / 3.3; }
  .me-badge { left: auto; right: 34%; top: auto; bottom: -1cqi; width: 11cqi; border-width: .7cqi; }
  .me-text { margin: 0; }
  .me-title { font-size: 7.4cqi; }
  .me-lead { max-width: 26em; margin: 2cqi 0 0; font-size: 1.35cqi; }
  .m-est .mock-cta { margin-top: 2.6cqi; padding: 1.3cqi 2.6cqi; font-size: 1.05cqi; }
  .me-row { grid-template-columns: repeat(2, 12cqi); justify-content: center; gap: 6cqi; padding: 5cqi; }
  .me-row figcaption { font-size: 1.8cqi; }
}

/* Odontologia: clara e precisa, layout dividido, agenda flutuante */
.m-odo { --m-bg: #fff; --m-ink: #0b2b3a; --m-accent: #0e9aa7; }
.mo-nav { display: flex; justify-content: space-between; align-items: center; padding: 15cqi 6cqi 5cqi; font-size: 3.4cqi; }
.mo-nav b { display: flex; align-items: center; gap: 1.6cqi; font-weight: 700; font-stretch: 110%; }
.mo-nav i { width: 4.4cqi; aspect-ratio: 1; border-radius: 1.4cqi; background: var(--m-accent); }
.mo-pill { padding: 1.2cqi 3cqi; border-radius: 999px; border: 1px solid rgba(11, 43, 58, .18); font-size: 3cqi; }
.mo-hero { padding: 0 6cqi; }
.mo-tag { display: inline-block; padding: 1cqi 3cqi; border-radius: 999px; background: #d8f3f0; color: #0b6e78; font-size: 3cqi; font-weight: 600; }
.mo-title { margin-top: 3cqi; font-size: 10.4cqi; font-weight: 650; font-stretch: 112%; line-height: 1.02; letter-spacing: -.035em; }
.mo-lead { margin-top: 3cqi; color: #46606c; font-size: 3.5cqi; line-height: 1.5; }
.m-odo .mock-cta { margin-top: 5cqi; padding: 3cqi 5.5cqi; border-radius: 999px; background: var(--m-accent); color: #fff; font-size: 3.5cqi; font-weight: 600; }
.mo-photo { position: relative; margin-top: 7cqi; aspect-ratio: 1 / 1.05; }
.mo-photo img { border-radius: 6cqi; object-position: 70% center; }
.mo-book {
  position: absolute; left: 4cqi; bottom: 5cqi;
  display: grid; gap: 1.6cqi; padding: 3cqi; border-radius: 3.5cqi;
  background: #fff; box-shadow: 0 3cqi 8cqi rgba(11, 43, 58, .2);
  font-size: 3cqi; animation: bob 5s ease-in-out infinite;
}
.mo-book b { font-size: 3.2cqi; }
.mo-book span { padding: 1.2cqi 2.6cqi; border-radius: 999px; background: #eef5f7; animation: slot 6s infinite; }
.mo-book span:nth-of-type(2) { animation-delay: 2s; }
.mo-book span:nth-of-type(3) { animation-delay: 4s; }
.mo-trust { display: flex; flex-wrap: wrap; gap: 2cqi; padding: 7cqi 6cqi 4cqi; }
.mo-trust span { padding: 1.4cqi 3cqi; border-radius: 999px; background: #eef5f7; font-size: 3cqi; }
.mo-clinic { padding: 0 6cqi 8cqi; }
.mo-clinic img { height: auto; aspect-ratio: 4 / 3; border-radius: 4cqi; }

@container (min-width: 30rem) {
  .mo-nav { padding: 2.4cqi 5cqi; font-size: 1.3cqi; }
  .mo-nav i { width: 1.8cqi; border-radius: .6cqi; }
  .mo-pill { padding: .6cqi 1.4cqi; font-size: 1.1cqi; }
  .mo-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 5cqi; align-items: center; padding: 1cqi 5cqi 0; }
  .mo-tag { padding: .5cqi 1.3cqi; font-size: 1.1cqi; }
  .mo-title { margin-top: 1.4cqi; font-size: 4.8cqi; }
  .mo-lead { max-width: 28em; margin-top: 1.4cqi; font-size: 1.35cqi; }
  .m-odo .mock-cta { margin-top: 2.4cqi; padding: 1.2cqi 2.3cqi; font-size: 1.3cqi; }
  .mo-photo { margin-top: 0; aspect-ratio: 1 / .82; }
  .mo-photo img { border-radius: 2.4cqi; }
  .mo-book { left: -4cqi; bottom: 3cqi; gap: .7cqi; padding: 1.4cqi; border-radius: 1.4cqi; font-size: 1.05cqi; }
  .mo-book b { font-size: 1.15cqi; }
  .mo-book span { padding: .5cqi 1.1cqi; }
  .mo-trust { gap: 1cqi; padding: 3.4cqi 5cqi; }
  .mo-trust span { padding: .6cqi 1.4cqi; font-size: 1.1cqi; }
}

/* Imóveis: cinematográfico, foto em tela cheia, caixa-alta larga e fina */
.m-imo { --m-bg: #0f0e0c; --m-ink: #efe8db; --m-accent: #cdb88f; font-stretch: 125%; font-weight: 300; }
.m-imo::before { background: linear-gradient(rgba(15, 14, 12, .7), transparent); }
.mm-hero { position: relative; height: 150cqi; overflow: hidden; }
.mm-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 14, 12, .5), transparent 28%, transparent 42%, rgba(15, 14, 12, .94));
}
.mm-bg { position: absolute; inset: 0; object-position: 58% center; animation: kenburns 20s ease-in-out infinite alternate; }
.mm-nav { position: absolute; z-index: 1; left: 6cqi; right: 6cqi; top: 15cqi; display: flex; justify-content: space-between; font-size: 2.6cqi; letter-spacing: .3em; text-transform: uppercase; }
.mm-nav b { font-weight: 500; }
.mm-text { position: absolute; z-index: 1; left: 6cqi; right: 6cqi; bottom: 21cqi; }
.mm-kicker { color: var(--m-accent); font-size: 2.6cqi; letter-spacing: .3em; text-transform: uppercase; }
.mm-title { margin-top: 3cqi; font-size: 7cqi; line-height: 1.18; letter-spacing: .05em; text-transform: uppercase; }
.m-imo .mock-cta {
  margin-top: 5cqi; padding: 2.6cqi 4.5cqi;
  border: 1px solid var(--m-accent); color: var(--m-accent);
  font-size: 2.6cqi; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
}
.mm-specs {
  position: absolute; z-index: 1; left: 6cqi; right: 6cqi; bottom: 5cqi;
  display: flex; justify-content: space-between;
  padding-top: 3cqi; border-top: 1px solid rgba(205, 184, 143, .45);
  font-size: 2.4cqi; letter-spacing: .22em; text-transform: uppercase;
}
.mm-specs b { display: block; color: var(--m-accent); font-size: 6cqi; font-weight: 200; letter-spacing: 0; }
.mm-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqi; padding: 2cqi; }
.mm-gallery img { height: auto; aspect-ratio: 3 / 4; }

@container (min-width: 30rem) {
  .mm-hero { height: 59cqi; }
  .mm-hero::after { background: linear-gradient(90deg, rgba(15, 14, 12, .85), rgba(15, 14, 12, .2) 55%, transparent), linear-gradient(180deg, rgba(15, 14, 12, .5), transparent 30%); }
  .mm-bg { object-position: center 60%; }
  .mm-nav { left: 4cqi; right: 4cqi; top: 2.6cqi; font-size: 1cqi; }
  .mm-text { left: 4cqi; right: auto; bottom: 14cqi; max-width: 48cqi; }
  .mm-kicker { font-size: 1cqi; }
  .mm-title { margin-top: 1.4cqi; font-size: 3.3cqi; }
  .m-imo .mock-cta { margin-top: 2.4cqi; padding: 1.1cqi 2cqi; font-size: 1cqi; }
  .mm-specs { left: 4cqi; right: auto; bottom: 3.6cqi; width: 34cqi; padding-top: 1.2cqi; font-size: .95cqi; }
  .mm-specs b { font-size: 3cqi; }
  .mm-gallery img { aspect-ratio: 16 / 9; }
}

/* Advocacia: editorial de jornal, serifa clássica, capitular e colunas */
.m-adv { --m-bg: #f4efe4; --m-ink: #15213b; font-family: Georgia, "Times New Roman", serif; }
.ma-mast { margin: 15cqi 6cqi 0; padding: 3cqi 0 2.4cqi; border-top: 4px double currentColor; border-bottom: 1px solid currentColor; text-align: center; }
.ma-mast span { display: block; font-size: 7cqi; letter-spacing: .03em; }
.ma-mast small { display: block; margin-top: 1.4cqi; font: 500 2.4cqi/1 Archivo, sans-serif; letter-spacing: .32em; text-transform: uppercase; }
.ma-grid { display: grid; padding: 6cqi 6cqi 0; }
.ma-title { font-size: 10cqi; line-height: 1.05; letter-spacing: -.01em; }
.ma-fig { margin-top: 5cqi; }
.ma-fig img { height: auto; aspect-ratio: 4 / 3; filter: grayscale(1) contrast(1.08); }
.ma-fig figcaption { margin-top: 1.6cqi; font-size: 2.6cqi; font-style: italic; opacity: .7; }
.ma-lead { margin-top: 4cqi; font-size: 3.6cqi; line-height: 1.55; }
.ma-drop { float: left; padding: 1cqi 1.6cqi 0 0; color: #7a2e2e; font-size: 12.5cqi; line-height: .8; }
.m-adv .mock-cta {
  justify-self: start; align-self: start; margin-top: 5cqi; padding: 3.2cqi 5cqi;
  background: var(--m-ink); color: var(--m-bg);
  font: 600 3cqi/1 Archivo, sans-serif; letter-spacing: .08em; text-transform: uppercase;
}
.ma-areas { margin: 7cqi 6cqi; border-top: 1px solid currentColor; }
.ma-areas li { display: flex; gap: 3cqi; padding: 2.6cqi 0; border-bottom: 1px solid rgba(21, 33, 59, .2); font-size: 4cqi; }
.ma-areas b { min-width: 8cqi; color: #7a2e2e; font-weight: 400; }

@container (min-width: 30rem) {
  .ma-mast { display: flex; justify-content: space-between; align-items: baseline; margin: 2.6cqi 5cqi 0; padding: 1.2cqi 0 1cqi; text-align: left; }
  .ma-mast span { font-size: 2.6cqi; }
  .ma-mast small { margin: 0; font-size: .95cqi; }
  .ma-grid { grid-template-columns: 1.3fr .7fr; gap: 0 4cqi; padding: 3cqi 5cqi 0; }
  .ma-title { grid-column: 1; font-size: 5cqi; }
  .ma-fig { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding-left: 4cqi; border-left: 1px solid rgba(21, 33, 59, .25); }
  .ma-fig img { aspect-ratio: 3 / 3.6; }
  .ma-fig figcaption { margin-top: .8cqi; font-size: 1cqi; }
  .ma-lead { grid-column: 1; max-width: 46em; margin-top: 2cqi; font-size: 1.35cqi; }
  .ma-drop { font-size: 4.4cqi; padding: .4cqi .8cqi 0 0; }
  .m-adv .mock-cta { grid-column: 1; align-self: start; margin-top: 2.4cqi; padding: 1.3cqi 2.2cqi; font-size: 1.1cqi; }
  .ma-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 3cqi; margin: 3cqi 5cqi; }
  .ma-areas li { gap: 1.2cqi; padding: 1.1cqi 0; font-size: 1.5cqi; }
  .ma-areas b { min-width: 3cqi; }
}

/* Microanimações dos estudos */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ping { to { opacity: 0; transform: scale(1.7); } }
@keyframes breathe { to { transform: scale(1.08); } }
@keyframes kenburns { to { transform: scale(1.14) translateX(-2%); } }
@keyframes bob { 50% { transform: translateY(-4%); } }
@keyframes slot { 0%, 30% { background: #0e9aa7; color: #fff; } 34%, 100% { background: #eef5f7; color: inherit; } }

/* Chat (WhatsApp) da demonstração */
.chat {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column;
  background: #0b141a; color: #e9edef;
  font-size: calc(var(--pw) * .047);
  transform: translateX(102%);
}
.chat-head {
  display: flex; align-items: center; gap: .7em;
  padding: calc(var(--pw) * .15) 1em .8em;
  background: #1f2c33;
}
.chat-head small { display: block; color: #8696a0; font-size: .8em; }
.chat-avatar { width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--avatar, var(--blue)); }
.demo[data-niche="infoprodutos"] { --avatar: #ffd23f; }
.demo[data-niche="estetica"] { --avatar: #d9a48c; }
.demo[data-niche="odonto"] { --avatar: #0e9aa7; }
.demo[data-niche="imoveis"] { --avatar: #cdb88f; }
.demo[data-niche="advocacia"] { --avatar: #6d84c4; }
.chat-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 1em .9em; }
.chat-msg {
  align-self: flex-end; max-width: 84%;
  padding: .6em .8em; border-radius: .8em .8em .2em .8em;
  background: #005c4b; line-height: 1.35;
  opacity: 0; transform: translateY(.6em) scale(.96); transform-origin: right bottom;
  transition: opacity .3s .5s, transform .4s var(--ease) .5s;
}
.chat-input { display: flex; align-items: center; gap: .6em; padding: .7em .8em 1.6em; }
.chat-input span { flex: 1; padding: .7em 1em; border-radius: 999px; background: #1f2c33; color: #8696a0; }
.chat-input i { width: 2.4em; height: 2.4em; border-radius: 50%; background: #00a884; }

/* Sequência: página rola (atenção) → toque no botão (decisão) → conversa (oportunidade) */
.demo .mock-page { transition: transform 2.4s cubic-bezier(.45, 0, .25, 1); }
.demo[data-step="atencao"] .mock-page,
.demo[data-step="decisao"] .mock-page,
.demo[data-step="oportunidade"] .mock-page { transform: translateY(-10%); }
.demo[data-step="troca"] .mock-page { transition: none; }
.demo .phone-screen > * { transition: opacity .35s; }
.demo .chat { transition: transform .5s var(--ease), opacity .35s; }
.demo[data-step="troca"] .phone-screen > * { opacity: 0; }
.demo[data-step="decisao"] .mock-cta { transform: scale(.95); }
.demo[data-step="decisao"] .mock-cta::after { animation: tap .8s var(--ease) .1s; }
.demo[data-step="oportunidade"] .chat { transform: none; }
.demo[data-step="oportunidade"] .chat-msg { opacity: 1; transform: none; }

@keyframes tap {
  30% { opacity: .35; }
  to { opacity: 0; transform: scale(1.6); }
}

/* ---------- Processo (seção clara) ---------- */
.process {
  background: var(--paper); color: var(--paper-ink);
  padding-block: clamp(5rem, 12vw, 9rem);
}
.process .section-head p { color: var(--paper-mute); }
.process :focus-visible { outline-color: var(--paper-blue); }

.steps { position: relative; display: grid; gap: 2.5rem; padding-left: 2rem; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: .3125rem; top: .5rem; bottom: .5rem; width: 2px;
  background: rgba(10, 11, 13, .14);
}
.steps::after { background: linear-gradient(180deg, var(--paper-blue), #0891b2); transform-origin: top; }
.steps li { position: relative; }
.steps li::before {
  content: ""; position: absolute; left: -2rem; top: .4rem;
  width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--paper-blue); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(29, 79, 216, .3);
}
.step-n { display: block; color: var(--paper-blue); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: .35rem; font-size: 1.5rem; font-weight: 560; font-stretch: 108%; letter-spacing: -.02em; }
.steps p { max-width: 22rem; margin-top: .4rem; color: var(--paper-mute); font-size: 1rem; }

@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.5rem; padding: 2.25rem 0 0; }
  .steps::before, .steps::after { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; }
  .steps::after { background: linear-gradient(90deg, var(--paper-blue), #0891b2); transform-origin: left; }
  .steps li::before { left: 0; top: -2.25rem; margin-top: -.3125rem; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::after { animation: draw-y linear both; animation-timeline: view(); animation-range: entry 10% cover 60%; }
    @media (min-width: 64rem) { .steps::after { animation-name: draw-x; } }
  }
}
@keyframes draw-y { from { transform: scaleY(0); } }
@keyframes draw-x { from { transform: scaleX(0); } }

/* ---------- Próximo passo: bloco azul elétrico ---------- */
.closing {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 2.5rem 4rem;
  padding-block: clamp(6rem, 14vw, 11rem);
  background: linear-gradient(135deg, #1a3fd6, #2563ff 55%, #1c3ccc);
}
.closing::before, .closing::after {
  content: ""; position: absolute; z-index: -1; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
}
.closing::before { width: 40rem; left: -12rem; top: -18rem; background: radial-gradient(closest-side, rgba(34, 211, 238, .4), transparent); animation: drift 19s ease-in-out infinite alternate; }
.closing::after { width: 46rem; right: -16rem; bottom: -24rem; background: radial-gradient(closest-side, rgba(8, 14, 90, .7), transparent); animation: drift 23s ease-in-out -8s infinite alternate-reverse; }
.closing h2 { max-width: 12ch; font-size: clamp(2.4rem, 6vw, 5.5rem); }
.closing-body > p:first-child { color: #fff; font-size: 1.125rem; }
.questions { margin: 1rem 0 2.5rem; }
.questions li {
  padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .28);
  font-size: clamp(1.375rem, 2.4vw, 2rem); font-weight: 500; font-stretch: 106%; letter-spacing: -.02em; line-height: 1.2;
}
.closing .btn { background: #fff; color: #0a0b0d; }
.closing .btn:hover { background: #e6ecff; }
.closing .btn::after { background: linear-gradient(105deg, transparent 35%, rgba(37, 99, 255, .25) 50%, transparent 65%); }
.closing .hint { margin-top: 1rem; color: #fff; }
.closing :focus-visible { outline-color: #fff; }
@media (max-width: 47.99rem) { .closing .btn { width: 100%; } }
@media (min-width: 64rem) {
  .closing { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; }
}

/* ---------- Rodapé ---------- */
.footer {
  display: grid; gap: 2rem;
  padding-block: 3rem calc(3rem + env(safe-area-inset-bottom));
  color: var(--mute); font-size: .9375rem;
}
.footer-brand { display: grid; gap: .75rem; }
.footer-brand .brand { color: var(--text); }
.footer-links { display: grid; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
@media (min-width: 48rem) {
  .footer { grid-template-columns: 1fr auto auto; align-items: end; gap: 3rem; }
}

/* ---------- Revelação no scroll (classes aplicadas pelo script) ---------- */
.is-pending { opacity: 0; transform: translateY(2rem); }
.is-pending.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
