/* ==========================================================================
   contrateocarlos.com.br · UI 4
   Inspiração: donmolinico.es. Composição de cartaz: tudo centralizado, fundo
   claro, uma família de cor só, títulos enormes em caixa alta estreita,
   cartões bem arredondados e levemente inclinados, pouquíssimo enfeite.
   Barra do topo em pílula, com o logo redondo "CJ" e sombra leve.
   Cores (as cinco da paleta do Carlos; as claras ficam no fundo):
     fogo #FF4D16 · laranja #FF751F · tangerina #FF9638 · âmbar #FFB65C · sol #FFD08A
   Apoio: creme #FFF4E2 e leite #FFFAF2 (o sol clareado) e tinta #1F0E04 para o
   texto, porque nenhuma das cinco cores dá contraste de leitura em texto pequeno.
   As cenas de rolagem usam --p (progresso) e --e (entrada), postas pelo script.
   ========================================================================== */

:root {
  --fire: #FF4D16;
  --orange: #FF751F;
  --tang: #FF9638;
  --amber: #FFB65C;
  --sun: #FFD08A;
  --cream: #FFF4E2;
  --milk: #FFFAF2;
  --ink: #1F0E04;

  --text: rgba(31, 14, 4, .82);
  --mute: rgba(31, 14, 4, .64);
  --line: rgba(31, 14, 4, .14);
  --line-2: rgba(31, 14, 4, .3);
  --shadow: 0 1px 2px rgba(31, 14, 4, .05), 0 10px 30px rgba(31, 14, 4, .1);

  --gutter: clamp(20px, 4vw, 48px);
  --sheet: clamp(28px, 4vw, 48px);          /* raio do alto de cada seção */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: var(--fire); color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
[tabindex="-1"]:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.knob svg, #glossClose svg, .lock svg, .nav-cta svg, .nav-links svg, .tip svg, .sdr-send svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Tipo de cartaz: Archivo no eixo mais estreito, peso alto, caixa alta, sem espaçamento */
.title, .cap-card h3, .row h3, .proof h3, .how h3, .convert h3, .panel h3, .plan h3, .closing h3,
.gloss h4, .rail-score .num, .vnow, .steps i, .spec span {
  font-family: var(--font); font-stretch: 62%; font-weight: 800; text-transform: uppercase; letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   Estrutura: cada seção é uma folha de cor, com o alto arredondado, que
   sobe por cima da anterior.
   -------------------------------------------------------------------------- */
main section {
  position: relative; isolation: isolate;
  padding: clamp(76px, 9vw, 140px) 0 calc(clamp(72px, 9vw, 132px) + var(--sheet));
  background: var(--cream);
}
main section + section { margin-top: calc(var(--sheet) * -1); border-radius: var(--sheet) var(--sheet) 0 0; }
#topo { padding-top: 98px; padding-bottom: calc(clamp(48px, 6vw, 88px) + var(--sheet)); }   /* livra a cápsula do topo (68 px) */
#produto { background: var(--sun); }
#provas { background: var(--amber); }
#contato { background: var(--fire); color: var(--ink); }
footer { position: relative; margin-top: calc(var(--sheet) * -1); border-radius: var(--sheet) var(--sheet) 0 0; background: var(--sun); }

.wrap {
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 0 var(--gutter);
  container-type: inline-size;
}

/* --------------------------------------------------------------------------
   Barra do topo: pílula flutuante, logo redondo "CJ", sombra leve
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; z-index: 42; top: 14px; left: 50%;
  transform: translateX(-50%);                 /* largura do conteúdo: logo, dois atalhos e o botão */
  display: flex; align-items: center; gap: 6px;
  min-height: 68px; padding: 7px;
  border-radius: 999px; background: rgba(255, 250, 242, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.brand {
  display: grid; place-items: center; flex: none; width: 54px; height: 54px;
  border-radius: 50%; background: var(--fire);
  color: var(--ink); font: 800 22px/1 var(--font); font-stretch: 80%; letter-spacing: -.02em; text-decoration: none;
  transition: transform .3s var(--ease);
}
.brand:hover { transform: rotate(-8deg) scale(1.05); }
/* Atalhos: Currículo e WhatsApp */
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 9px; height: 54px; padding: 0 20px;
  border-radius: 999px; color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .2s;
}
.nav-links a:hover { background: rgba(31, 14, 4, .08); }
.nav-links svg { width: 19px; height: 19px; }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: none; height: 54px; padding: 0 26px;
  border-radius: 999px; background: var(--ink);
  color: var(--milk); font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s;
}
.nav-cta:hover { transform: scale(1.03); background: var(--fire); color: var(--ink); }
.nav-cta svg { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
.title { color: var(--fire); font-size: clamp(52px, 13vw, 168px); line-height: .88; text-wrap: balance; }
.head .title { font-size: clamp(52px, 13.5cqi, 172px); }
.title em { font-style: normal; color: var(--ink); }
.lede { color: var(--text); font-size: clamp(17.5px, 1.9cqi, 20.5px); line-height: 1.5; text-wrap: pretty; }

/* Cabeçalho de seção, centralizado: marca, selo, título gigante e uma frase curta */
.head { display: grid; justify-items: center; gap: 18px; margin: 0 auto clamp(40px, 6cqi, 84px); text-align: center; }
.head .lede { max-width: 44ch; }
.js [data-scene="enter"] .title { opacity: calc(.15 + var(--e, 1) * .85); transform: scale(calc(.88 + var(--e, 1) * .12)); }
.js [data-scene="enter"] .lede { opacity: var(--e, 1); transform: translate3d(0, calc((1 - var(--e, 1)) * 24px), 0); }
/* Nas folhas de cor o título vai em tinta e a palavra de destaque ganha um traço */
#produto .title, #provas .title { color: var(--ink); }
#produto .title em, #provas .title em { background: linear-gradient(var(--fire), var(--fire)) 0 92% / 100% .09em no-repeat; }
#contato .title { color: var(--milk); }
#contato .title em { background: linear-gradient(var(--milk), var(--milk)) 0 92% / 100% .09em no-repeat; }

/* Selo da etapa: um funilzinho, o número e o nome */
p.tag { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.2; }
p.tag::before { content: ''; width: 16px; height: 13px; background: var(--fire); clip-path: polygon(0 0, 100% 0, 66% 100%, 34% 100%); }
p.tag b { display: inline-grid; place-items: center; min-width: 36px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--ink); color: var(--milk); font-size: 13.5px; font-weight: 800; }
#contato p.tag::before { background: var(--ink); }

/* Termo do glossário: sublinhado que abre um vídeo */
.term {
  display: inline; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--ink); font: inherit; font-weight: 600; text-align: inherit;
  text-decoration: underline; text-decoration-thickness: 2px;
  text-decoration-color: var(--fire); text-underline-offset: 4px;
}
.term::after {
  content: ''; display: inline-block; width: 0; height: 0; margin-left: 5px;
  border-left: 6px solid var(--fire); border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  vertical-align: .08em;
}
.term:hover { text-decoration-color: var(--ink); }

/* --------------------------------------------------------------------------
   Botões: pílulas; o fundo sobe por dentro no hover
   -------------------------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink); font: 700 16.5px/1.15 var(--font); text-decoration: none; cursor: pointer;
  transition: color .3s, border-color .3s, transform .2s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; background: var(--ink); transform: translateY(104%); transition: transform .45s var(--ease); }
.btn:hover { color: var(--milk); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.98); }
.btn .knob { display: inline-flex; transition: transform .3s var(--ease); }
.btn:hover .knob { transform: translateX(3px); }
.btn.primary { border-color: var(--fire); background: var(--fire); }
.btn.primary:hover { border-color: var(--ink); }
.btn.full { width: 100%; }
.btn.flat { min-height: 46px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* --------------------------------------------------------------------------
   01 · Topo
   A ordem do HTML segue a referência; o arranjo visual vem do grid.
   -------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.hero-top { order: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.hero .title { order: 2; margin-top: 16px; font-size: clamp(58px, 18cqi, 104px); }
.hero .title .mask { display: block; padding-block: .04em .08em; margin-block: -.04em -.08em; }
.hero .title .mask > span { display: block; }
/* Ao rolar, as duas linhas do título se afastam em sentidos opostos */
.js .hero .title .mask:nth-child(1) { transform: translate3d(calc(var(--p, 0) * -7vw), 0, 0); }
.js .hero .title .mask:nth-child(2) { transform: translate3d(calc(var(--p, 0) * 7vw), 0, 0); }
.hero-video { order: 3; position: relative; width: 100%; margin-top: 22px; }
.hero .actions { order: 4; margin-top: 20px; }
.hero-call { order: 5; margin-top: 14px; color: var(--ink); font-size: 16px; font-weight: 600; }
.hero .lede { order: 6; margin-top: 22px; max-width: 46ch; }
.hero-links { order: 7; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 26px; margin-top: 8px; }
.hero-links a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
  color: var(--ink); font-size: 15.5px; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px;
  transition: text-decoration-color .2s;
}
.hero-links a:hover { text-decoration-color: var(--fire); }
.hero-links .knob { display: inline-flex; }
.hero-links .knob svg { width: 16px; height: 16px; }
.micro { order: 8; max-width: 76ch; margin-top: 30px; color: var(--mute); font-size: 15px; line-height: 1.6; }
.micro b { color: var(--ink); font-weight: 700; }

@media (min-width: 1000px) {
  /* Uma coluna centralizada: título em uma linha só (o script põe .one quando ele cabe e
     calcula o corpo), o vídeo grande logo abaixo e os dois botões centralizados embaixo
     dele. O texto de apresentação não aparece no computador (pedido do Carlos). */
  .hero .title { margin-top: 10px; font-size: clamp(54px, 6.2cqi, 92px); }
  .hero .title .mask { overflow: hidden; overflow: clip; }
  .hero .title .mask > span { display: inline-block; white-space: nowrap; }
  .hero .title.one { display: flex; justify-content: center; gap: .2em; }
  /* --vmax (posta pelo script) é a altura livre entre o título e os botões: vídeo e
     botões cabem inteiros na primeira tela */
  .hero-video { margin-top: 20px; width: min(100cqi, max(420px, calc(var(--vmax, 400px) * 1.7778))); }
  .hero .lede { display: none; }
  .hero .actions { margin-top: 18px; }
  .hero-call { margin-top: 22px; color: var(--mute); font-size: 14.5px; font-weight: 500; }
  .hero-links { margin-top: 2px; }
  .hero-links a[href^="#"] { display: none; }       /* os atalhos internos saem; fica o LinkedIn */
  .micro { margin-top: 24px; }
}

/* --------------------------------------------------------------------------
   Espaços de vídeo
   -------------------------------------------------------------------------- */
.frame { position: relative; border-radius: clamp(18px, 2.4vw, 30px); background: var(--ink); overflow: hidden; box-shadow: 0 2px 4px rgba(31, 14, 4, .08), 0 24px 60px rgba(31, 14, 4, .18); }
.video { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--ink); }
.video.sq { aspect-ratio: 1; }
.video .sil { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(255, 250, 242, .07); }
.video .tag { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(31, 14, 4, .6); color: var(--milk); font-size: 13.5px; font-weight: 600; }
.video .play { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--fire); color: var(--ink); }
.video .play svg { width: 38%; height: 38%; margin-left: 6%; fill: currentColor; }
.video .cap { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; gap: 12px; color: rgba(255, 250, 242, .8); font-size: 14px; }
.video .cap span:first-child { color: var(--milk); }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.video.has-video > :not(video):not(.vplay) { display: none; }
/* Botão de play do site (script.js, mountVideo): pílula laranja no canto, como os botões
   primários; no hover o fundo sobe em leite, porque tinta sumiria sobre o vídeo escuro */
.vplay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: clamp(12px, 2vw, 24px);
  border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.vplay .btn { min-height: 58px; padding: 0 24px 0 9px; gap: 12px; font-size: 17px; box-shadow: 0 8px 26px rgba(31, 14, 4, .38); }
.vplay .btn::before { background: var(--milk); }
.vplay:hover .btn { color: var(--ink); border-color: var(--milk); }
.vplay:hover .btn::before { transform: none; }
.vplay:active .btn { transform: scale(.97); }
.vplay:focus-visible { outline: none; }
.vplay:focus-visible .btn { outline: 2px solid var(--milk); outline-offset: 3px; }
.vplay-knob { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--fire); }
.vplay-knob svg { width: 16px; height: 16px; margin-left: 2px; fill: currentColor; }
.vplay-len { margin-left: -6px; font-weight: 500; opacity: .72; }
.vplay-len::before { content: '· '; }
.video.sq .vplay-len { display: none; }

/* Ilustrações */
.ill { height: 100%; width: auto; max-width: 100%; overflow: visible; }
.ill .gl { stroke: rgba(31, 14, 4, .16); stroke-width: 1.2; }
.ill .hot { fill: var(--milk); stroke: var(--fire); stroke-width: 1.6; }
.ill .node { fill: var(--ink); }
.ill .st { fill: none; stroke: var(--milk); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ill .l1 { fill: rgba(31, 14, 4, .36); }
.ill .l2 { fill: rgba(31, 14, 4, .15); }
.ill .k { fill: var(--ink); opacity: .7; }
.ill .w { fill: var(--fire); }
.ill .wire { fill: var(--fire); }
.ill .d6 { fill: var(--fire); }
.ill .d34 { fill: rgba(31, 14, 4, .3); }
.ill .pulse { fill: var(--fire); animation: pulse 2.8s ease-in-out infinite; }
.ill .pulse.p2 { animation-delay: 1.4s; }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* --------------------------------------------------------------------------
   02 · O que você leva
   Quatro cartões arredondados em grade 2 x 2, do mesmo tamanho e alinhados.
   Sobem um depois do outro conforme a seção entra. No celular, carrossel
   de arrastar.
   -------------------------------------------------------------------------- */
.fan {
  display: flex; gap: 16px;
  margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter) 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.fan::-webkit-scrollbar { display: none; }
.cap-card {
  flex: none; width: min(78vw, 340px); scroll-snap-align: center;
  display: flex; flex-direction: column;
  border-radius: 28px; background: var(--milk); overflow: hidden;
  box-shadow: 0 2px 4px rgba(31, 14, 4, .06), 0 18px 44px rgba(31, 14, 4, .12);
}
.cap-card .art, .proof .art {
  display: flex; align-items: center; justify-content: center;
  height: 176px; padding: 20px 22px 0; overflow: hidden;
}
.cap-card:first-child .art { padding-top: 0; }
.cap-card .body { padding: 18px 24px 28px; }
.cap-card h3 { color: var(--ink); font-size: clamp(30px, 8cqi, 38px); line-height: .96; }
.cap-card .body p { margin-top: 10px; font-size: 16.5px; }
@container (min-width: 700px) {
  /* Grade 2 x 2, cartões do mesmo tamanho e alinhados. Entram subindo, um depois do outro. */
  .fan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 6px 0 40px; overflow: visible; }
  .cap-card {
    --d: 0;
    width: auto;
    opacity: calc(.15 + var(--e, 1) * .85);
    transform: translate3d(0, calc((1 - var(--e, 1)) * (46px + var(--d) * 44px)), 0);
    transition: translate .4s var(--ease), box-shadow .4s;
  }
  .cap-card:nth-child(2), .cap-card:nth-child(3) { --d: 1; }
  .cap-card:nth-child(4) { --d: 2; }
  .cap-card:hover, .cap-card:focus-within { translate: 0 -6px; box-shadow: 0 4px 8px rgba(31, 14, 4, .08), 0 28px 64px rgba(31, 14, 4, .18); }
  .cap-card .art, .cap-card:first-child .art { height: 230px; padding: 26px; background: var(--cream); }
  .cap-card .body { padding: 26px 30px 32px; }
  .cap-card h3 { font-size: clamp(34px, 4.4cqi, 46px); }
  .cap-card .body p { margin-top: 12px; font-size: 17.5px; }
}
@container (min-width: 1040px) {
  /* Com largura, cada cartão deita: ilustração à esquerda, texto à direita */
  .cap-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 320px; }
  .cap-card .art, .cap-card:first-child .art { height: auto; padding: 28px; }
  .cap-card .art .ill { width: 100%; height: auto; max-height: 240px; transform: scale(1.22); }
  .cap-card .body { align-self: center; padding: 30px 34px 34px 30px; }
}
/* Medidor: 40 marcas de largura uniforme em um arco de 270 graus; as acesas em fogo */
.gauge { position: relative; container-type: inline-size; width: clamp(270px, 32cqi, 380px); aspect-ratio: 1; margin: clamp(14px, 3cqi, 36px) auto clamp(28px, 5cqi, 64px); }
.gauge-svg { width: 100%; height: 100%; overflow: visible; }
.gauge-svg rect { fill: var(--ink); opacity: .16; transition: fill .3s, opacity .3s; }
.gauge-svg rect.on { fill: var(--fire); opacity: 1; }
.gauge figcaption { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 4px; padding-bottom: 4%; text-align: center; color: var(--ink); }
.gauge-pre { font-size: 15px; font-weight: 700; }
.gauge-num { font-family: var(--font); font-stretch: 62%; font-weight: 900; font-size: clamp(34px, 13cqi, 50px); line-height: .9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gauge-lbl { max-width: 13ch; font-size: 15px; font-weight: 600; line-height: 1.25; }
.specs { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: clamp(20px, 4cqi, 44px); border-top: 1.5px solid var(--ink); text-align: center; }
.spec { padding: 26px 8px 4px; }
.spec + .spec { border-top: 1px solid var(--line-2); }
.spec span { display: block; margin-bottom: 8px; color: var(--ink); font-size: 26px; line-height: 1; }
.spec p { max-width: 38ch; margin: 0 auto; font-size: 16px; line-height: 1.5; }
@container (min-width: 800px) {
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec { padding: 28px 24px 4px; }
  .spec + .spec { border-top: 0; border-left: 1px solid var(--line-2); }
}

/* --------------------------------------------------------------------------
   03 · Changelog
   No computador a versão em foco fica presa à esquerda, em tamanho de
   cartaz; à direita, a linha do tempo. A linha no centro da tela acende.
   -------------------------------------------------------------------------- */
.log-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.vnow { display: none; }
.log { position: relative; }
.row {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 10px; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--line);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.row:first-child { border-top: 0; padding-top: 0; }
.row .v {
  display: inline-grid; place-items: center; height: 28px; padding: 0 12px;
  border-radius: 999px; border: 1.5px solid var(--ink);
  color: var(--ink); font-size: 14px; font-weight: 800;
  transition: background-color .3s, border-color .3s;
}
.row .d { color: var(--mute); font-size: 15px; }
.row > div { grid-column: 1 / -1; }
.row h3 { color: var(--ink); font-size: clamp(28px, 4.6cqi, 44px); line-height: .98; }
.row h3 span { color: var(--mute); font: 400 16px/1.4 var(--font); font-stretch: 100%; text-transform: none; }
.row p { margin-top: 10px; max-width: 60ch; }
.row.min { padding: 20px 0; }
.row.min h3 { font-size: clamp(22px, 3.2cqi, 30px); }
.log.spot .row { opacity: .28; }
.log.spot .row.on { opacity: 1; }
.log.spot .row.on .v, .log:not(.spot) .row:first-child .v { border-color: var(--fire); background: var(--fire); }
.edu { margin-top: 34px; color: var(--mute); font-size: 15.5px; }
.edu b { color: var(--ink); font-weight: 700; }
@media (min-width: 1000px) {
  .log-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(36px, 6cqi, 92px); align-items: start; }
  .log-side { position: sticky; top: 100px; }
  .log-side .head { justify-items: start; margin: 0; text-align: left; }
  .log-side .head .title { font-size: clamp(60px, 9.4cqi, 124px); }
  .js .log-side [data-scene="enter"] .title { transform-origin: 0 50%; }
  .vnow { display: block; margin-top: 18px; color: var(--ink); font-size: clamp(140px, 21cqi, 290px); font-weight: 900; line-height: .82; overflow: hidden; }
  .vnow span { display: inline-block; }
  .log-main { padding-top: 12px; }
}

/* --------------------------------------------------------------------------
   04 · Provas
   Com .is-stack (posta pelo script quando os cartões cabem na tela), cada
   cartão gruda no alto e o seguinte sobe por cima; o de trás encolhe.
   -------------------------------------------------------------------------- */
.proofs { --stack-top: 88px; display: flex; flex-direction: column; gap: 22px; }
.proof {
  --i: 0;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  border-radius: 30px; background: var(--milk); overflow: hidden;
  transform-origin: 50% 0;
  box-shadow: 0 2px 4px rgba(31, 14, 4, .05), 0 16px 40px rgba(31, 14, 4, .1);
}
.proof:nth-child(2) { --i: 1; }
.proof:nth-child(3) { --i: 2; }
.proof .art { height: 168px; padding: 20px; background: var(--sun); }
.proof .body { padding: 22px 24px 6px; }
.proof h3 { margin-bottom: 16px; color: var(--ink); font-size: clamp(30px, 4.8cqi, 48px); line-height: .96; }
.proof .body p { font-size: 16px; line-height: 1.5; }
.proof .body p + p { margin-top: 14px; }
.proof .body b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 14.5px; font-weight: 800; }
.proof .body b::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--fire); }
.gate {
  position: relative; justify-self: start;
  display: flex; align-items: center; gap: 10px;
  margin: 16px 24px 24px; padding: 11px 16px;
  border-radius: 999px; background: var(--cream);
}
.gate .lock { display: inline-flex; color: var(--ink); }
.gate i { height: 9px; border-radius: 5px; background: rgba(31, 14, 4, .45); filter: blur(4px); }
.gate i:nth-of-type(1) { width: 46px; }
.gate i:nth-of-type(2) { width: 26px; }
.gate i:nth-of-type(3) { width: 58px; }
.gate::after { content: ''; position: absolute; inset: -2px; pointer-events: none; border-radius: inherit; border: 2px solid var(--fire); opacity: 0; }
.gate.pulse::after { animation: flash 1s var(--ease); }
@keyframes flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
#provas .actions { margin-top: 40px; }
@container (min-width: 760px) {
  .proof { grid-template-columns: minmax(200px, 30%) minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .proof .art { grid-row: 1 / 3; height: auto; min-height: 240px; }
  .proof .body { padding: 30px 34px 6px; }
  .gate { margin: 16px 34px 28px; }
}
@container (min-width: 980px) {
  .proof .body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; align-content: start; }
  .proof h3 { grid-column: 1 / -1; }
  .proof .body p + p { margin-top: 0; }
}
.proofs.is-stack { gap: 28px; }
.proofs.is-stack .proof { position: sticky; top: calc(var(--stack-top) + var(--i) * 20px); transform: scale(calc(1 - var(--q, 0) * .045)); }
.proofs.is-stack .proof::after { content: ''; position: absolute; inset: 0; background: var(--ink); opacity: calc(var(--q, 0) * .14); pointer-events: none; }

/* --------------------------------------------------------------------------
   05 · Conversão: a folha mais quente
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
@container (min-width: 940px) {
  .split.wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: stretch; }
}
/* Na conversão o cartão do chat fica sozinho, largo e centralizado. Com o agente
   fora do ar ele encolhe para a largura do cartão de WhatsApp. */
#contato .split { display: block; max-width: 920px; margin-inline: auto; }
#contato .convert:has(> .sdr[hidden]) { max-width: 560px; margin-inline: auto; }
.how h3 { color: var(--ink); font-size: clamp(34px, 4.6cqi, 50px); line-height: .96; }
.how > p { margin-top: 8px; color: var(--ink); }
.steps { display: grid; margin-top: 24px; }
.steps li { display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: start; padding: 20px 0; border-top: 1.5px solid rgba(31, 14, 4, .3); }
.steps i { color: var(--milk); font-size: 66px; font-style: normal; font-weight: 900; line-height: .8; }
.steps div { color: var(--ink); font-size: 19px; font-weight: 700; line-height: 1.3; }
.steps div span { display: block; margin-top: 4px; font-size: 16px; font-weight: 400; }

.convert {
  position: relative; scroll-margin-top: 88px; padding: clamp(16px, 2.6cqi, 28px);
  border-radius: 30px; background: var(--milk); color: var(--text);
  box-shadow: 0 2px 4px rgba(31, 14, 4, .08), 0 30px 70px rgba(31, 14, 4, .22);
}
.convert .flash { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; background: rgba(255, 182, 92, .6); }
.convert h3 { color: var(--ink); font-size: 38px; line-height: .96; }
.convert h3 + p { margin-top: 8px; color: var(--ink); }
.note { margin-top: 18px; color: var(--mute); font-size: 14.5px; }
/* Agente fora do ar: o cartão vira um atalho para o Carlos */
.sdr-off { display: grid; gap: 12px; text-align: center; }
.sdr-off h3 { text-wrap: balance; }
.sdr-off p { margin: 0 0 10px; color: var(--ink); }
form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: var(--ink); font-size: 14.5px; font-weight: 600; }
input {
  width: 100%; height: 52px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--line-2);
  background: #fff; color: var(--ink); font: 400 16px var(--font);
  transition: border-color .2s, box-shadow .2s;
}
input:hover { border-color: var(--ink); }
input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 150, 56, .5); }
input[aria-invalid="true"] { border-color: var(--fire); box-shadow: 0 0 0 4px rgba(255, 77, 22, .25); }
form .btn { margin-top: 6px; }

/* --------------------------------------------------------------------------
   06 · Funil ao vivo
   -------------------------------------------------------------------------- */
.panel { padding: clamp(22px, 3.2cqi, 36px); border-radius: 30px; background: var(--milk); box-shadow: var(--shadow); }
.panel h3 { color: var(--ink); font-size: 36px; line-height: .98; }
.panel > h3 + p { margin-top: 6px; }
/* O funil é um trapézio só, cortado em cinco fatias. Todas as fatias ocupam a mesma
   coluna (a coluna dos rótulos tem largura fixa, senão cada linha centraria a fatia em
   um ponto diferente) e são recortadas em torno do mesmo eixo: --a é a meia largura no
   alto e --b na base, e a base de uma é o alto da seguinte, então as bordas formam
   duas retas contínuas. A separação entre fatias é um filete na cor do painel. */
.funnel { display: grid; gap: 0; }
.fstep { display: grid; grid-template-columns: 200px minmax(0, 1fr) 44px; align-items: center; gap: 0 14px; }
.fstep .lbl { display: contents; }
.fstep .lbl span:first-child { color: var(--ink); font-size: 15.5px; font-weight: 500; }
.fstep .lbl span:last-child { order: 3; text-align: right; color: var(--mute); font-size: 14.5px; }
.fstep .bar {
  order: 2; width: 100%; height: 48px;
  clip-path: polygon(calc(50% - var(--a)) 0, calc(50% + var(--a)) 0, calc(50% + var(--b)) 100%, calc(50% - var(--b)) 100%);
  box-shadow: inset 0 -3px 0 var(--milk);
  transform-origin: 50% 50%;
}
.fstep:nth-child(1) .bar { --a: 50%; --b: 41%; background: var(--sun); }
.fstep:nth-child(2) .bar { --a: 41%; --b: 32%; background: var(--amber); }
.fstep:nth-child(3) .bar { --a: 32%; --b: 23%; background: var(--tang); }
.fstep:nth-child(4) .bar { --a: 23%; --b: 14%; background: var(--orange); }
.fstep:nth-child(5) .bar { --a: 14%; --b: 5%; background: var(--fire); box-shadow: none; }

.ab { display: grid; gap: 10px; margin-top: 22px; }
.ab > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: 16px; }
.ab > div span:last-child { color: var(--mute); }
.ab > div.on { border-color: var(--ink); background: var(--sun); color: var(--ink); font-weight: 600; }

.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: clamp(22px, 3cqi, 30px); }
@container (min-width: 760px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; padding: clamp(22px, 3cqi, 32px); border-radius: 30px; background: var(--sun); color: var(--ink); }
.plan:nth-child(2) { background: var(--amber); }
.plan.hot { background: var(--fire); }
.plan h3 { font-size: clamp(38px, 4.8cqi, 58px); line-height: .94; }
.plan ul { display: grid; gap: 12px; margin: 20px 0 24px; }
.plan li { display: flex; align-items: flex-start; gap: 12px; font-size: 16.5px; }
.plan li::before {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.500 10.400l3 3 6-6.600' fill='none' stroke='%23FFFAF2' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.plan .price { margin-top: auto; padding-top: 16px; border-top: 1.5px solid rgba(31, 14, 4, .3); font-weight: 700; }
.plan .term { text-decoration-color: var(--ink); }
.plan .term::after { border-left-color: var(--ink); }

.closing {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; justify-items: center;
  margin-top: clamp(48px, 8cqi, 110px); text-align: center;
}
/* O vídeo final cresce conforme entra na tela */
.closing .frame { width: min(100%, 860px); transform: scale(calc(.82 + var(--e, 1) * .18)); }
.closing h3 { max-width: 16ch; margin-inline: auto; color: var(--fire); font-size: clamp(44px, 9cqi, 112px); line-height: .9; text-wrap: balance; }
.closing p { max-width: 50ch; margin: 16px auto 0; font-size: clamp(17px, 1.9cqi, 20px); }
.closing .actions { margin-top: 26px; }

/* --------------------------------------------------------------------------
   Rodapé, centralizado
   -------------------------------------------------------------------------- */
.foot { display: grid; justify-items: center; gap: 18px; padding: calc(var(--sheet) + 8px) 0 140px; text-align: center; color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 700; }
.status i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--fire); }
.made { margin-top: 4px; color: var(--text); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(31, 14, 4, .3); text-underline-offset: 5px; transition: text-decoration-color .2s; }
footer nav a:hover { text-decoration-color: var(--ink); }

/* --------------------------------------------------------------------------
   Doca do lead score: outra pílula, na base
   -------------------------------------------------------------------------- */
.rail {
  position: fixed; z-index: 40; left: 50%; bottom: 14px;
  width: min(660px, calc(100vw - 20px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px;
  min-height: 60px; padding: 6px 7px 6px 22px;
  border-radius: 999px; background: rgba(255, 250, 242, .94); color: var(--text);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.rail-score { display: flex; align-items: center; gap: 14px; min-height: 46px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rail-score .lbl { width: 40px; color: var(--mute); font-size: 12.5px; font-weight: 600; line-height: 1.15; transition: color .2s; }
.rail-score:hover .lbl { color: var(--ink); }
.rail-score .read { display: flex; align-items: baseline; gap: 3px; transform-origin: 0 70%; }
.rail-score .num { color: var(--ink); font-size: 36px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.rail-score .of { color: var(--mute); font-size: 13.5px; font-weight: 600; }
/* Medidor: o último quarto é a faixa do agendamento, só enche com o horário marcado */
.rail-score .meter { position: relative; width: 100px; height: 8px; border-radius: 4px; overflow: hidden; background: linear-gradient(to right, rgba(31, 14, 4, .12) 75%, var(--sun) 75%); }
.rail-score .meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--tang), var(--fire)); transform: translateX(calc(var(--score, 12%) - 100%)); transition: transform .8s var(--ease); }
.rail-score .meter b { display: none; }
.rail-stage { flex: none; color: var(--ink); font-size: 14.5px; font-weight: 800; white-space: nowrap; }
.rail-msg { flex: 1; min-width: 0; color: var(--text); font-size: 14px; line-height: 1.3; }
/* Botão das etapas: um funil em miniatura, uma barra por etapa */
.rail-toggle { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--sun); cursor: pointer; transition: background-color .25s; }
.rail-toggle:hover, .rail.open .rail-toggle { background: var(--amber); }
.mini { display: grid; justify-items: center; gap: 2px; width: 24px; }
.mini i { display: block; height: 3px; border-radius: 2px; background: rgba(31, 14, 4, .25); transition: background-color .4s; }
.mini i:nth-child(1) { width: 100%; } .mini i:nth-child(2) { width: 84%; } .mini i:nth-child(3) { width: 68%; }
.mini i:nth-child(4) { width: 52%; } .mini i:nth-child(5) { width: 36%; } .mini i:nth-child(6) { width: 22%; }
.mini i.seen { background: var(--fire); }
.mini i.current { background: var(--ink); }

/* Com a página no topo a doca fica recolhida, para o vídeo ocupar a primeira tela;
   ela sobe assim que a rolagem começa. No celular a nota fica na cápsula do topo. */
@media (min-width: 701px) {
  .rail { transition: opacity .35s var(--ease), transform .45s var(--ease); }
  .at-top .rail { opacity: 0; transform: translate(-50%, 28px); pointer-events: none; }
}

/* Inserções dinâmicas, acima da doca */
.rail-feed { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.rail.open .rail-feed { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--milk); box-shadow: var(--shadow); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.chip b { padding: 5px 10px; border-radius: 999px; background: var(--fire); color: var(--ink); font-size: 13px; font-weight: 800; }

/* As seis etapas, em forma de funil, sobem da doca */
.rail-steps { display: none; position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); flex-direction: column; align-items: center; gap: 3px; padding: 20px 20px 22px; border-radius: 32px; background: var(--milk); box-shadow: var(--shadow); }
.rail.open .rail-steps { display: flex; }
.rail-steps a {
  --k: 0;
  display: flex; align-items: center; justify-content: center;
  width: calc(100% - var(--k) * 44px); max-width: 100%; height: 46px;
  background: var(--cream); color: var(--mute);
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 22px 100%);
  font-size: 15.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.rail-steps a:nth-of-type(2) { --k: 1; } .rail-steps a:nth-of-type(3) { --k: 2; } .rail-steps a:nth-of-type(4) { --k: 3; }
.rail-steps a:nth-of-type(5) { --k: 4; } .rail-steps a:nth-of-type(6) { --k: 5; }
.rail-steps a i { display: none; }
.rail-steps a.seen { background: var(--sun); color: var(--ink); }
.rail-steps a.current { background: var(--fire); color: var(--ink); }
.rail-steps a:hover, .rail-steps a:focus-visible { background: var(--ink); color: var(--milk); outline: none; }
.rail.open .rail-steps a { animation: bandIn .4s var(--ease) backwards; animation-delay: calc(var(--k) * 35ms); }
@keyframes bandIn { from { opacity: 0; transform: translateY(10px); } }

/* --------------------------------------------------------------------------
   Glossário (gaveta lateral), cookies e chat do SDR
   -------------------------------------------------------------------------- */
.gloss {
  position: fixed; z-index: 60; top: 10px; right: 10px; bottom: 10px;
  display: flex; flex-direction: column;
  width: min(420px, calc(100vw - 20px)); padding: 12px 18px 24px;
  border-radius: 34px; background: var(--milk); color: var(--text);
  box-shadow: 0 2px 6px rgba(31, 14, 4, .08), 0 30px 80px rgba(31, 14, 4, .28);
  overflow-y: auto; overscroll-behavior: contain;
  animation: drawerIn .45s var(--ease) backwards;
}
@keyframes drawerIn { from { opacity: 0; transform: translateX(40px); } }
.gloss-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 10px 8px; color: var(--mute); font-size: 15px; font-weight: 600; }
#glossClose { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--sun); color: var(--ink); cursor: pointer; transition: background-color .2s, transform .3s var(--ease); }
#glossClose:hover { background: var(--amber); transform: rotate(90deg); }
.gloss .video { flex: none; border-radius: 24px; }
.gloss h4 { margin: 20px 8px 0; color: var(--fire); font-size: 50px; line-height: .92; }
.gloss p { margin: 10px 8px 0; font-size: 17px; line-height: 1.5; }

.cookie {
  position: fixed; z-index: 50; left: 14px; bottom: 88px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  width: min(360px, calc(100vw - 28px)); padding: 18px;
  border-radius: 28px; background: var(--milk); box-shadow: var(--shadow);
}
.cookie p { grid-column: 1 / -1; margin-bottom: 2px; font-size: 14.5px; line-height: 1.45; }
.cookie b { color: var(--ink); font-weight: 700; }
.cookie .btn { padding: 0 12px; font-size: 15.5px; }

/* --------------------------------------------------------------------------
   Chat do SDR, com desenho de chat de IA
   O cartão da conversão vira a janela do chat: barra fina com o nome do agente,
   conversa em uma coluna central de até 720 px, respostas sem balão ao lado de
   um avatar, pergunta do visitante em balão à direita, sugestões prontas e a
   caixa de mensagem com o botão de enviar dentro. Antes da primeira pergunta
   (.sdr sem .started) a saudação fica no centro, como estado vazio.
   --col é a margem lateral que centra a coluna da conversa.
   -------------------------------------------------------------------------- */
.convert:has(> .sdr:not([hidden])) { padding: 0; overflow: hidden; }
.sdr { --col: max(20px, calc((100% - 720px) / 2)); display: flex; flex-direction: column; }
.sdr-head { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.sdr-ava { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--fire); color: var(--ink); }
.sdr-ava svg { width: 16px; height: 16px; fill: currentColor; }
.sdr-head h4 { color: var(--ink); font-size: 16.5px; font-weight: 700; line-height: 1.2; }
.sdr-head .term { margin-left: auto; color: var(--mute); font-size: 14px; }
.sdr-log {
  height: clamp(300px, 44vh, 520px); display: flex; flex-direction: column; gap: 24px;
  padding: 28px var(--col) 20px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.sdr-log .msg { flex: none; color: var(--ink); font-size: 17px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Resposta do agente: texto corrido, sem balão, com o avatar à esquerda */
.sdr-log .bot { position: relative; min-height: 30px; padding: 1px 0 0 46px; }
.sdr-log .bot::before {
  content: ''; position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--fire) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath fill='%231F0E04' d='M14 0c1.8 9.4 4.8 12.4 14 14-9.2 1.6-12.200 4.600-14 14-1.800-9.400-4.800-12.400-14-14 9.200-1.600 12.200-4.600 14-14Z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
/* Pergunta do visitante: balão neutro, à direita */
.sdr-log .me { align-self: flex-end; max-width: min(82%, 520px); padding: 10px 18px; border-radius: 22px; background: rgba(31, 14, 4, .07); }
.sdr-log .wait { display: flex; align-items: center; gap: 5px; height: 30px; }
.sdr-log .wait i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: pulse 1.2s ease-in-out infinite; }
.sdr-log .wait i:nth-child(2) { animation-delay: .2s; }
.sdr-log .wait i:nth-child(3) { animation-delay: .4s; }
/* Estado vazio: a saudação no centro, com o avatar em cima */
.sdr:not(.started) .sdr-log { justify-content: center; }
.sdr:not(.started) .sdr-log .hello {
  max-width: 30ch; margin: 0 auto; padding: 64px 0 0;
  font-size: clamp(20px, 2.3cqi, 24px); font-weight: 600; line-height: 1.35; text-align: center; text-wrap: balance;
}
.sdr:not(.started) .sdr-log .hello::before { left: 50%; width: 46px; height: 46px; margin-left: -23px; background-size: 20px; }
/* Sugestões */
.sdr-tips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 var(--col) 14px; }
.sdr.started .sdr-tips { justify-content: flex-start; }
.sdr.started .tip[data-ask] { display: none; }
.tip {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--ink); font: 600 14.5px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.tip:hover { border-color: var(--ink); background: rgba(31, 14, 4, .05); }
.tip.hot { border-color: var(--fire); background: var(--fire); }
.tip.hot:hover { border-color: var(--ink); background: var(--fire); }
.tip svg { width: 16px; height: 16px; }
/* Opções de resposta rápida dentro da conversa (dia, período, horários); as comprometidas ficam riscadas */
.sdr-log .opts { flex: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: -10px; padding-left: 46px; }
.sdr-log .opts .tip { min-width: 74px; justify-content: center; background: #fff; font-variant-numeric: tabular-nums; }
.sdr-log .opts .tip:hover { border-color: var(--ink); background: var(--sun); }
.tip.off, .tip.off:hover { border-color: var(--line); background: rgba(31, 14, 4, .05); color: var(--mute); text-decoration: line-through; cursor: default; }
/* Caixa de mensagem: cresce com o texto; o botão de enviar fica dentro dela */
.sdr-form {
  display: flex; align-items: flex-end; gap: 8px; margin: 0 var(--col); padding: 7px 7px 7px 22px;
  border-radius: 29px; border: 1.5px solid var(--line-2); background: #fff;
  box-shadow: 0 8px 26px rgba(31, 14, 4, .07);
  transition: border-color .2s, box-shadow .2s;
}
.sdr-form:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 150, 56, .4); }
.sdr-form textarea {
  flex: 1; min-width: 0; height: 44px; max-height: 168px; margin: 0; padding: 10px 0;
  border: 0; outline: none; background: none; resize: none; scrollbar-width: none;
  color: var(--ink); font: 400 17px/1.42 var(--font);
}
.sdr-form textarea::placeholder { color: var(--mute); }
.sdr-send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--milk); cursor: pointer; transition: background-color .2s, color .2s, opacity .2s, transform .2s var(--ease); }
.sdr-send:hover { background: var(--fire); color: var(--ink); }
.sdr-send:active { transform: scale(.94); }
.sdr-form textarea:placeholder-shown + .sdr-send { opacity: .3; }
.sdr-note { padding: 10px 20px 16px; color: var(--mute); font-size: 13px; text-align: center; }

/* Revelações por rolagem: só escondem quando o script está ativo */
.js .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; }

/* --------------------------------------------------------------------------
   Telas menores
   -------------------------------------------------------------------------- */
@media (min-width: 1240px) {
  /* Com folga dos lados, o aviso de cookies desce para a linha da doca */
  .cookie { bottom: 14px; }
}
@media (max-width: 900px) {
  .rail-stage { display: none; }
  .gloss { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 90vh; animation-name: sheetIn; }
  .gloss .video.sq { width: min(100%, 44vh); margin: 0 auto; }
  .gloss h4 { font-size: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  #topo { padding-top: 86px; }
  .hero .actions { width: 100%; flex-wrap: nowrap; gap: 10px; }
  .hero .actions .btn { flex: 1; padding: 0 8px; font-size: 15.5px; }
  .hero .actions .knob { display: none; }
  .video .cap { left: 12px; right: 12px; bottom: 10px; flex-direction: column; gap: 1px; font-size: 12.5px; }
  .video .tag { left: 10px; top: 10px; font-size: 12.5px; }
  /* No celular a pílula encolhe e perde a duração, para não encostar na legenda gravada na capa */
  .vplay { padding: 8px; }
  .vplay .btn { min-height: 40px; padding: 0 13px 0 5px; gap: 7px; font-size: 14.5px; }
  .vplay-knob { width: 30px; height: 30px; }
  .vplay-knob svg { width: 12px; height: 12px; }
  .vplay-len { display: none; }
  /* Funil: mesma montagem do computador, com a coluna dos rótulos mais estreita */
  .fstep { grid-template-columns: 122px minmax(0, 1fr) 34px; gap: 0 8px; }
  .fstep .lbl span:first-child { font-size: 14px; line-height: 1.2; }
  .fstep .lbl span:last-child { font-size: 13.5px; }
  .sdr { --col: 14px; }
  .sdr-head { min-height: 58px; padding: 0 16px; }
  .sdr-log { height: clamp(300px, 50vh, 460px); gap: 20px; padding-top: 22px; }
  .sdr-log .msg { font-size: 16.5px; }
  .sdr-log .bot { padding-left: 40px; }
  .sdr-tips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .sdr-tips::-webkit-scrollbar { display: none; }
  .sdr-form { padding-left: 18px; }
  .sdr-form textarea { font-size: 16.5px; }
  .closing .actions { width: 100%; }
  .closing .actions .btn { width: 100%; }
  .ab > div { border-radius: 22px; padding: 10px 16px; }

  .rail { bottom: 8px; width: calc(100vw - 16px); gap: 12px; min-height: 58px; padding: 5px 5px 5px 18px; }
  .rail-score .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rail-score .num { font-size: 32px; }
  .rail-score .meter { width: 44px; }
  .rail-msg { font-size: 13.5px; }
  .rail-steps { padding: 16px 14px 18px; border-radius: 28px; }
  .rail-steps a { width: calc(100% - var(--k) * 30px); clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 100%, 15px 100%); }
  .cookie { left: 8px; right: 8px; bottom: 74px; width: auto; padding: 14px; gap: 8px; border-radius: 24px; }
  .cookie p { font-size: 13.5px; line-height: 1.38; }
  .foot { padding-bottom: 150px; }
}

/* --------------------------------------------------------------------------
   Celular (até 700 px): uma barra só e menos coisa na tela
   - A doca do lead score deixa a base e entra na cápsula do topo: logo, nota
     com a mensagem do momento e o botão do SDR, que aqui é só um ícone de
     conversa. Não há menu de etapas.
   - As etiquetas de pontos aparecem uma por vez, logo abaixo da cápsula.
   - O topo fica com o essencial: selo, título, vídeo, dois botões e a
     apresentação. A nota explicativa e os atalhos internos saem.
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .nav { top: 8px; width: calc(100vw - 16px); gap: 2px; min-height: 58px; padding: 6px; }
  .brand { width: 46px; height: 46px; font-size: 19px; }
  .nav-links { margin-left: auto; gap: 0; }
  .nav-links a { height: 46px; padding: 0 10px; font-size: 14.5px; }
  .nav-links svg { display: none; }
  .nav-cta { width: 46px; height: 46px; margin-left: 2px; padding: 0; }
  .nav-cta svg { width: 20px; height: 20px; }
  .nav-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

  .rail {
    z-index: 43; top: 8px; bottom: auto; left: 62px; right: auto; width: auto; transform: none;
    gap: 10px; min-height: 58px; padding: 0 4px;
    border-radius: 0; background: none; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .rail-score { gap: 0; }
  .rail-score .num { font-size: 30px; }
  .rail-score .meter, .rail-stage, .rail-toggle, .rail-steps { display: none !important; }
  .rail-msg { display: none; }                       /* a cápsula agora leva os atalhos: fica só a nota */
  .rail-feed { position: fixed; left: 8px; right: 8px; top: 76px; bottom: auto; }
  .rail-feed .chip:not(:last-child) { display: none; }
  .chip { font-size: 13.5px; }

  main section { padding-top: 64px; padding-bottom: calc(60px + var(--sheet)); }
  #topo { padding-top: 84px; padding-bottom: calc(44px + var(--sheet)); }
  .micro, .hero-links a[href^="#"] { display: none; }
  .hero .title { margin-top: 12px; }
  .hero-video { margin-top: 18px; }
  .hero .actions { margin-top: 16px; }
  .hero-call { margin-top: 12px; color: var(--mute); font-size: 14.5px; font-weight: 500; }
  .hero .lede { margin-top: 18px; font-size: 17px; }
  .hero-links { margin-top: 6px; }
  .head { gap: 14px; margin-bottom: 30px; }
  .cookie { bottom: 8px; }
  .foot { padding-bottom: 48px; }
  .gloss { z-index: 70; }
}

/* Celulares estreitos: a nota perde o "/100" e os atalhos apertam, para tudo caber na cápsula */
@media (max-width: 370px) {
  .rail-score .of { display: none; }
  .nav-links a { padding: 0 8px; font-size: 14px; }
}

/* Em tela de toque o hover "gruda" depois do toque: os efeitos de hover ficam só para mouse */
@media (hover: none) {
  .btn:hover { color: var(--ink); }
  .btn:hover::before { transform: translateY(104%); }
  .btn:hover .knob { transform: none; }
  .btn.primary:hover { border-color: var(--fire); }
  .nav-cta:hover { transform: none; background: var(--ink); color: var(--milk); }
  .nav-links a:hover { background: none; }
  .brand:hover { transform: none; }
  .cap-card:hover { translate: none; }
}

/* --------------------------------------------------------------------------
   Movimento reduzido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ill .pulse { opacity: 1; }
}
