/* Inter (SIL OFL 1.1), a mesma do deck. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --papel: #f6f3ee;
  --papel-2: #efeae2;
  --tinta: #1d1a17;
  --tinta-2: #5f5850;
  --linha: #e2dbd0;
  --azul: #2457e6;
  --azul-claro: #c9d6f5;
  --margem: clamp(20px, 5vw, 76px);
  --largura: 1320px;
  --curva: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 17px/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--azul); color: #fff; }

img, video { display: block; max-width: 100%; height: auto; }

a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }

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

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }

h2 { font-size: clamp(32px, 4.2vw, 56px); }

p { margin: 0; text-wrap: pretty; }

.confirmar { color: #a2471f; font-weight: 500; }

.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 10; background: var(--tinta); color: var(--papel); padding: 8px 14px; border-radius: 99px; }

/* Topo fixo com a data sempre à vista */
.topo {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 18px var(--margem);
  background: var(--papel);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, padding .4s var(--curva);
}
.topo.rolou { border-color: var(--linha); padding-block: 12px; }
.marca { font-weight: 600; letter-spacing: -.02em; text-decoration: none; font-size: 18px; }
.topo-data { text-align: center; line-height: 1.3; }
.topo-data strong { display: block; font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.topo-data span { font-size: 13px; color: var(--tinta-2); }
.topo-cta {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid var(--tinta);
}
.topo-cta svg { width: 14px; height: 14px; }

svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero {
  max-width: var(--largura); margin: 0 auto;
  padding: clamp(36px, 4vw, 56px) var(--margem) clamp(28px, 3vw, 40px);
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.hero h1 { font-size: clamp(40px, 4.5vw, 64px); letter-spacing: -.035em; }
.hero-sub { margin-top: 20px; font-size: clamp(18px, 1.5vw, 21px); color: var(--tinta-2); max-width: 34em; }
.hero-data { display: none; margin-top: 20px; color: var(--tinta-2); }
.hero-data strong { color: var(--tinta); font-weight: 600; }
.hero-data + .preco { margin-top: 8px; }
.preco { margin-top: 26px; color: var(--tinta-2); }
.preco-valor { font-size: 36px; font-weight: 600; letter-spacing: -.03em; color: var(--tinta); margin-right: 4px; }

.acoes { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.botao {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 7px 7px 7px 24px; border-radius: 8px;
  background: var(--tinta); color: var(--papel); text-decoration: none; font-weight: 500;
  box-shadow: 0 10px 30px -12px rgba(29, 26, 23, .5);
  transition: transform .5s var(--curva), box-shadow .5s var(--curva), background .3s;
}
.botao-seta {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 5px;
  background: rgba(255, 255, 255, .12);
  transition: transform .5s var(--curva), background .3s;
}
.botao-seta svg { width: 16px; height: 16px; }
.botao:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(29, 26, 23, .55); }
.botao:active { transform: scale(.97); }
.botao:hover .botao-seta { transform: rotate(45deg); background: var(--azul); }

.hero-foto { position: relative; margin: 0; padding: clamp(36px, 4vw, 60px) 0 0 clamp(36px, 4vw, 60px); }
.hero-numero {
  position: absolute; z-index: 0; left: 0; top: 0; transform-origin: left top;
  font-size: clamp(110px, 14vw, 220px); font-weight: 700; letter-spacing: -.04em; line-height: 1;
  color: var(--azul-claro);
  font-variant-numeric: tabular-nums;
}
.hero-foto img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 5; max-height: calc(100vh - 360px); object-fit: cover; object-position: 42% 50%;
  border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(29, 26, 23, .45);
}

/* Entrada do topo: a foto se abre de baixo pra cima e o número sobe atrás dela */
@media (prefers-reduced-motion: no-preference) {
  .hero-foto img { animation: abre 1.4s var(--curva) .15s both; }
  .hero-numero { animation: sobe 1.6s var(--curva) .35s both; }
  .hero-texto > * { animation: aparece 1s var(--curva) both; }
  .hero-texto > :nth-child(2) { animation-delay: .08s; }
  .hero-texto > :nth-child(3) { animation-delay: .16s; }
  .hero-texto > :nth-child(4) { animation-delay: .24s; }
  .hero-texto > :nth-child(5) { animation-delay: .32s; }
  .hero-texto > :nth-child(6) { animation-delay: .4s; }

  [data-revela] > * { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--curva), transform 1.1s var(--curva); }
  [data-revela].visto > * { opacity: 1; transform: none; }
  [data-revela].visto > :nth-child(2) { transition-delay: .1s; }
  [data-revela].visto > :nth-child(3) { transition-delay: .2s; }
  [data-revela].visto > :nth-child(4) { transition-delay: .3s; }

  /* As fotos de cada seção se abrem de baixo pra cima, como a do topo */
  .caso-foto, .sobre-foto, .info-foto { clip-path: inset(100% 0 0 0 round 16px); scale: 1.08; transition: clip-path 1.4s var(--curva) .15s, scale 1.8s var(--curva) .15s; }
  .visto .caso-foto, .visto .sobre-foto, .visto .info-foto { clip-path: inset(0 0 0 0 round 16px); scale: 1; }

  /* Os vídeos entram em fila, da direita */
  .depoimentos .depo { translate: 60px 0; }
  .depoimentos.visto .depo { translate: 0 0; transition: translate 1.2s var(--curva) calc(var(--i, 0) * 70ms), transform .8s var(--curva), opacity .8s var(--curva), filter .8s var(--curva), box-shadow .8s var(--curva); }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-foto img { animation: abre 1.4s var(--curva) .15s both, afasta linear both; animation-timeline: auto, scroll(); animation-range: normal, 0 100vh; }
    .hero-numero { animation: sobe 1.6s var(--curva) .35s both, desce linear both; animation-timeline: auto, scroll(); animation-range: normal, 0 100vh; }
  }
}
@keyframes afasta { to { translate: 0 -40px; } }
@keyframes desce { to { translate: 0 90px; } }
@keyframes abre { from { clip-path: inset(100% 0 0 0 round 16px); transform: scale(1.06); } to { clip-path: inset(0 0 0 0 round 16px); transform: none; } }
@keyframes sobe { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Seções */
section:not(.hero) { max-width: var(--largura); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--margem); }

.atraso { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); border-top: 1px solid var(--linha); }
.atraso-texto { display: grid; gap: 18px; font-size: 19px; color: var(--tinta-2); max-width: 36em; align-self: end; }

.programa h2 { margin-bottom: clamp(28px, 3.5vw, 44px); }
.programa-trilha { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); }
.programa-parte { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
.programa-parte h3 { font-size: 26px; margin-bottom: 20px; }
.programa-parte ul { display: grid; grid-row: span 4; grid-template-rows: subgrid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--tinta); }
.programa-parte li { padding: 16px 0; border-bottom: 1px solid var(--linha); }

.caso { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.caso-texto { display: grid; gap: 18px; }
.caso-texto h2 { margin-bottom: 8px; }
.caso-texto p { color: var(--tinta-2); font-size: 18px; max-width: 34em; }
.caso-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }

/* Depoimentos: trilho horizontal, o vídeo do meio toca sozinho e sem som */
.depoimentos { max-width: none !important; padding-inline: 0 !important; overflow: hidden; }
.depoimentos-sub { margin-top: 12px; color: var(--tinta-2); font-size: 18px; }
.depoimentos-topo { max-width: var(--largura); margin: 0 auto 36px; padding: 0 var(--margem); display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.depoimentos-setas { display: flex; gap: 10px; }
.depoimentos-setas button {
  width: 52px; height: 52px; border-radius: 8px; border: 1px solid var(--tinta); background: transparent; color: var(--tinta);
  display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s, transform .4s var(--curva);
}
.depoimentos-setas button:hover { background: var(--tinta); color: var(--papel); }
.depoimentos-setas button:active { transform: scale(.94); }
.depoimentos-setas svg { width: 18px; height: 18px; }

.trilho {
  display: flex; gap: clamp(14px, 2vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 12px max(var(--margem), calc((100vw - var(--largura)) / 2 + var(--margem))) 28px;
  scroll-padding-inline: max(var(--margem), calc((100vw - var(--largura)) / 2 + var(--margem)));
}
.trilho::-webkit-scrollbar { display: none; }

.depo {
  position: relative; margin: 0; flex: 0 0 clamp(240px, 24vw, 320px); aspect-ratio: 9 / 16;
  border-radius: 16px; overflow: hidden; scroll-snap-align: start; background: var(--tinta);
  transform: scale(.94); opacity: .55; filter: saturate(.6);
  transition: transform .8s var(--curva), opacity .8s var(--curva), filter .8s var(--curva), box-shadow .8s var(--curva);
}
.depo.ativo { transform: none; opacity: 1; filter: none; box-shadow: 0 30px 60px -28px rgba(29, 26, 23, .6); }
.depo video { width: 100%; height: 100%; object-fit: cover; }
.depo::after {
  content: ""; position: absolute; inset: 40% 0 0; pointer-events: none;
  background: linear-gradient(transparent, rgba(16, 14, 12, .82));
}
.depo-rodape { position: absolute; z-index: 1; left: 18px; right: 66px; bottom: 18px; display: grid; gap: 12px; }
.depo-legenda {
  color: #fff; font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
  min-height: 2.7em; display: flex; align-items: end;
}
.depo-legenda span { transition: opacity .35s, transform .45s var(--curva), filter .35s; }
.depo-legenda span.trocando { opacity: 0; transform: translateY(8px); filter: blur(4px); }
.depo-quem { color: rgba(255, 255, 255, .78); font-size: 13px; line-height: 1.35; display: grid; }
.depo-quem strong { color: #fff; font-weight: 600; font-size: 14px; }
.depo-som {
  position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(8px); transition: background .3s;
}
.depo-som:hover { background: rgba(255, 255, 255, .3); }
.depo-pausa { right: auto; left: 14px; top: 14px; bottom: auto; opacity: 0; transition: opacity .3s, background .3s; }
.depo.ativo .depo-pausa, .depo-pausa:focus-visible { opacity: 1; }
.depo-pausa .tocar { display: none; }
.depo-pausa[aria-pressed="true"] .tocar { display: block; }
.depo-pausa[aria-pressed="true"] .pausar { display: none; }
.depo-som svg { width: 18px; height: 18px; }
.depo-som .com-som { display: none; }
.depo-som[aria-pressed="true"] .com-som { display: block; }
.depo-som[aria-pressed="true"] .sem-som { display: none; }
.depo-barra { position: absolute; z-index: 2; left: 0; top: 0; height: 3px; width: 100%; background: var(--azul); transform-origin: left; transform: scaleX(0); }

.sobre { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.sobre-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.sobre-texto { display: grid; gap: 18px; }
.sobre-texto h2 { margin-bottom: 8px; }
.sobre-texto p { color: var(--tinta-2); font-size: 18px; max-width: 34em; }
.social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.social a {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 14px;
  border: 1px solid var(--tinta); border-radius: 8px; text-decoration: none; font-weight: 500;
  transition: background .3s, color .3s;
}
.social a:hover { background: var(--tinta); color: var(--papel); }
.social svg { width: 20px; height: 20px; }

.info { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); }
.info h2 { grid-column: 1 / -1; }
.info-lista { margin: 0; border-top: 1px solid var(--tinta); }
.info-lista div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linha); }
.info-lista dt { color: var(--tinta-2); }
.info-lista dd { margin: 0; font-weight: 500; }
.info-endereco { display: block; margin-top: 2px; font-weight: 400; color: var(--tinta-2); }
.info-endereco:hover { color: var(--azul); }
.info-foto { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: 16px; }

.final { text-align: center; display: grid; justify-items: center; gap: 18px; }
.final > p { color: var(--tinta-2); font-size: 19px; }
.acoes-centro { justify-content: center; }
.perguntas { margin-top: 32px; width: min(100%, 720px); text-align: left; border-top: 1px solid var(--tinta); }
.perguntas details { border-bottom: 1px solid var(--linha); }
.perguntas summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 500; font-size: 18px;
  display: flex; justify-content: space-between; gap: 16px;
}
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; transition: transform .4s var(--curva); }
.perguntas details[open] summary::after { transform: rotate(45deg); }
.perguntas details p { padding: 0 0 16px; color: var(--tinta-2); max-width: 60ch; }
.perguntas details p:last-child { padding-bottom: 22px; }
.perguntas a:hover { color: var(--azul); }

.rodape { padding: 40px var(--margem); text-align: center; font-size: 14px; color: var(--tinta-2); border-top: 1px solid var(--linha); }

/* Notebook de tela baixa: o botão continua acima da dobra */
@media (min-width: 861px) and (max-height: 860px) {
  .hero { padding-top: 28px; padding-bottom: 28px; }
  .hero h1 { font-size: clamp(38px, 4vw, 56px); }
  .hero-sub { margin-top: 16px; font-size: 18px; }
  .preco { margin-top: 20px; }
  .acoes { margin-top: 18px; }
}

/* Celular: título, preço e botão antes da foto */
@media (max-width: 860px) {
  .topo { grid-template-columns: 1fr auto; }
  .topo-data { display: none; }
  .hero, .atraso, .caso, .sobre, .info { grid-template-columns: 1fr; }
  .hero { padding-top: 20px; }
  .hero-data { display: block; }
  .hero-sub { margin-top: 16px; }
  .preco { margin-top: 22px; }
  .hero-foto { margin-top: 12px; }
  .hero-foto { padding: 48px 0 0 36px; }
  .hero-foto img { aspect-ratio: 4 / 3; }
  .programa-trilha { display: block; }
  .programa-parte, .programa-parte ul { display: block; }
  .programa-parte + .programa-parte { margin-top: 40px; }
  .info-lista div { grid-template-columns: 110px 1fr; }
  .info-foto { min-height: 0; aspect-ratio: 4 / 3; }
  .depo { flex-basis: 72vw; }
  .depoimentos-setas { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .depo, .depo-legenda span { transition: none; }
}
