/* ==========================================================================
   Ob_session™ — obsession.business
   Deck de slides fixos, empilhados por z-index, animados pelo scroll.
   ========================================================================== */

:root {
  /* cor */
  --bg:        #e4e4e4;
  --card-bg:   #fff;
  --ink:       #000;
  --ink-muted: rgba(0, 0, 0, .3);
  --faq-bg:    #9e9897;

  /* geometria do card (idêntica ao site atual) */
  --card-w: 76%;
  --card-h: 55%;
  /* o slide 1 é mais estreito e mais alto que os demais (igual ao site atual) */
  --cover-w: 65%;
  --cover-h: 65%;
  --card-pad: clamp(18px, 2.09vw, 42px);
  --media-pad: clamp(6px, .7vw, 14px);

  /* tipografia — proporcional ao card de 1092px do Figma */
  --fs-h: clamp(16px, 1.39vw, 28px);   /* 20px */
  --fs-m: clamp(12px, .98vw, 19px);    /* 14px */
  --fs-b: clamp(11px, .835vw, 17px);   /* 12px */
  --fs-s: clamp(9px,  .70vw,  14px);   /* 10px */

  --gap:    clamp(12px, 1.39vw, 28px); /* 20px */
  --gap-sm: clamp(6px,  .70vw,  14px); /* 10px */

  /* deslocamento vertical do slide ao sair de cena */
  --exit: -150%;
}

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

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* --------------------------------------------------------------------------
   Pista de rolagem
   Define quanto scroll existe. A altura é a única variável que controla o
   "ritmo": ~590px de rolagem por slide, o mesmo do site atual.
   -------------------------------------------------------------------------- */
.runway {
  height: 7320px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Marca de fundo (SVG da logo)
   -------------------------------------------------------------------------- */
.brand,
.cover {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.brand { z-index: 1; opacity: .2; }

.cover {
  z-index: 100;
  opacity: 1;
  transition: opacity .5s cubic-bezier(0, 0, .58, 1); /* easeOut, 500ms */
}

.cover.is-hidden { opacity: 0; }

.brand__wordmark {           /* "Ob__Session™" — rodapé */
  position: absolute;
  inset: auto 0 5%;
  width: 100%;
  padding: 0 3%;
}

.brand__mark {               /* "26 ©" — topo à direita */
  position: absolute;
  top: 5%;                   /* mesma distância que o wordmark tem da base */
  right: 0;
  padding-right: 3%;
}

.brand__mobile { display: none; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  position: fixed;
  inset: 0;
  margin: auto;                       /* centra nos dois eixos */
  z-index: var(--z);
  width: var(--card-w);
  height: var(--card-h);
  padding: var(--card-pad);
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  transform: translate3d(0, var(--y, 0%), 0);
  will-change: transform;
}

.card--media { padding: var(--media-pad); }

/* slide 1: vídeo ocupando o card inteiro, sem borda */
.card--cover {
  width: var(--cover-w);
  height: var(--cover-h);
  padding: 0;
}

/* --------------------------------------------------------------------------
   Tipografia dos slides
   -------------------------------------------------------------------------- */
.t-h,
.t-lead {
  margin: 0;
  font-size: var(--fs-h);
  font-weight: 600;
  line-height: normal;
}

.t-lead { text-align: center; }

.t-k {                       /* "01 - Diagnóstico de identidade" */
  margin: 0;
  font-size: var(--fs-b);
  font-weight: 600;
  line-height: normal;
}

.t-b {
  margin: 0;
  font-size: var(--fs-b);
  font-weight: 300;
  line-height: 1.2;
}

.t-b--bold { font-weight: 700; }

.t-m {
  margin: 0;
  font-size: var(--fs-m);
  font-weight: 400;
  color: var(--ink-muted);
  text-align: center;
  line-height: normal;
}

.t-s {
  margin: 0;
  font-size: var(--fs-s);
  font-weight: 300;
  line-height: 1.2;
}

.card a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: var(--fs-b);
  font-weight: 300;
  line-height: 1.2;
}

.list li {
  position: relative;
  padding-left: 1.15em;
}

/* quadradinho no lugar do disco, do mesmo tamanho */
.list li::before {
  content: "";
  position: absolute;
  left: .12em;
  top: .43em;
  width: .36em;
  height: .36em;
  background: currentColor;
}

.list li + li { margin-top: .35em; }

/* --------------------------------------------------------------------------
   Layouts internos
   -------------------------------------------------------------------------- */
.center {                    /* slides 2, 5, 7, 11 — texto centralizado */
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  align-items: center;
  justify-content: center;
}

.stack {                     /* topo + base, empurrados para os extremos */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--gap);
  min-height: 0;
}

.cols {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
}

.cols > * { flex: 1 1 0; min-width: 0; }

.col {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.col--tight { gap: var(--gap-sm); }

.rule {                      /* filete horizontal do slide 4 */
  height: .5px;
  border: 0;
  margin: 0;
  background: rgba(0, 0, 0, .4);
}

/* --------------------------------------------------------------------------
   Mídia dentro dos cards
   -------------------------------------------------------------------------- */
.figs {
  display: flex;
  gap: var(--gap-sm);
  align-items: stretch;
  min-height: 0;
}

.figs > * { flex: 1 1 0; min-width: 0; }

/* os exports do Figma já vêm recortados e em escala de cinza;
   "contain" preserva o enquadramento sem distorcer nem cortar de novo */
.figs img,
.figs video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.figs--fill { flex: 1; }
.figs--cubes { align-items: center; }

.figs--cubes img {
  aspect-ratio: 1080 / 1330;
  height: auto;
}

.media-fill {                /* slide 1 — vídeo ocupando o card inteiro */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pair {                      /* slide 9 — dois vídeos lado a lado */
  flex: 1;
  display: flex;
  gap: var(--media-pad);
  min-height: 0;
}

.pair > * { flex: 1 1 0; min-width: 0; }

.pair video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --------------------------------------------------------------------------
   Slide 12 — cubos + contato
   -------------------------------------------------------------------------- */
.closing {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  justify-content: center;
  min-height: 0;
}

.closing__contact {
  display: flex;
  gap: clamp(8px, 1.04vw, 20px);
  align-items: flex-end;
}

.closing__spacer { flex: 1 1 0; min-width: 0; }

.closing__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .6em;
}

/* --------------------------------------------------------------------------
   FAQ
   Mesma estrutura tipográfica dos outros slides — só as cores são próprias.
   Cada regra aponta o equivalente usado nos demais cards.
   -------------------------------------------------------------------------- */
.faq {
  padding: var(--card-pad);
  background: var(--faq-bg);
  color: #fff;
}

.faq__viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.faq__track {
  display: flex;
  height: 100%;
  transition: transform .5s ease;
}

/* equivale ao .stack: cabeçalho em cima, conteúdo embaixo */
.faq__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  overflow-y: auto;
}

.faq__head {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.faq__label {                /* equivale ao .t-m */
  margin: 0;
  font-size: var(--fs-m);
  font-weight: 400;
  line-height: normal;
  color: var(--ink-muted);
}

.faq__title {                /* equivale ao .t-h */
  margin: 0;
  font-size: var(--fs-h);
  font-weight: 600;
  line-height: normal;
}

.faq__cols {                 /* equivale ao .cols */
  margin-top: auto;          /* empurra para a base, como o .stack faz */
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
}

.faq__cols > * { flex: 1 1 0; min-width: 0; }

.faq__col {                  /* equivale ao .col */
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.faq__item {                 /* equivale ao .col--tight */
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.faq__q {                    /* equivale ao .t-k */
  margin: 0;
  font-size: var(--fs-b);
  font-weight: 600;
  line-height: normal;
}

.faq__a {                    /* equivale ao .t-b */
  margin: 0;
  font-size: var(--fs-b);
  font-weight: 300;
  line-height: 1.2;
}

.faq__contact {
  margin: 0;
  font-size: var(--fs-b);
  font-weight: 600;
  line-height: 1.2;
}

.faq a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* --------------------------------------------------------------------------
   Navegação do FAQ
   As setas saíram das laterais para a base: presas ao lado, elas precisariam
   de uma calha de 80px que quebraria o alinhamento do texto com os outros
   slides — e no mobile virariam um alvo de 20px. Na base, o texto começa
   exatamente na mesma margem dos demais cards.
   -------------------------------------------------------------------------- */
.faq__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding-top: var(--gap);
  font-size: var(--fs-b);
}

.faq__dots {
  display: flex;
  align-items: center;
  margin-left: -.4em;        /* alinha o 1º quadradinho com a margem do texto */
}

.faq__dot {
  padding: .4em;
  border: 0;
  background: none;
  line-height: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq__dot::before {          /* mesmo quadradinho dos marcadores de lista */
  content: "";
  display: block;
  width: .36em;
  height: .36em;
  background: rgba(255, 255, 255, .45);
  transition: background-color .15s;
}

.faq__dot[aria-current="true"]::before { background: #fff; }

.faq__arrows {
  display: flex;
  gap: var(--gap-sm);
}

.faq__arrow {
  padding: 0 .35em;
  border: 0;
  background: none;
  color: #fff;
  font-family: inherit;
  font-size: var(--fs-h);
  line-height: 1;
  cursor: pointer;
  transition: opacity .15s;
  -webkit-tap-highlight-color: transparent;
}

.faq__arrow:disabled {
  opacity: .35;
  cursor: default;
}

.faq--mobile { display: none; }

/* --------------------------------------------------------------------------
   Telas grandes
   Os clamp() acima travam em 1.39vw ≈ 28px por volta de 2010px de largura: daí
   para cima o card continua crescendo (76% da tela) mas o texto não, e a
   proporção do Figma se perde. Este corte solta o teto e deixa a tipografia
   voltar a acompanhar a largura, com um limite novo lá em cima (~3400px).
   Como o FAQ usa exatamente os mesmos tokens, ele acompanha junto.
   -------------------------------------------------------------------------- */
@media (min-width: 2000px) {
  :root {
    --card-pad: min(2.09vw, 71px);
    --fs-h: min(1.39vw, 47px);
    --fs-m: min(.98vw, 33px);
    --fs-b: min(.835vw, 28px);
    --fs-s: min(.70vw, 24px);
    --gap: min(1.39vw, 47px);
    --gap-sm: min(.70vw, 24px);
    --media-pad: min(.70vw, 24px);
  }
}

/* --------------------------------------------------------------------------
   Responsivo — os mesmos pontos de corte do site atual
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  :root {
    --fs-h: clamp(16px, 2.1vw, 26px);
    --fs-m: clamp(12px, 1.5vw, 18px);
    --fs-b: clamp(11px, 1.25vw, 16px);
    --fs-s: clamp(9px, 1.05vw, 13px);
  }
}

@media (max-width: 767px) {
  :root {
    --card-w: 85%;
    --card-h: 75%;
    --cover-w: 75%;
    --cover-h: 85%;
    --fs-h: 15px;
    --fs-m: 12px;
    --fs-b: 11px;
    --fs-s: 10px;
    --card-pad: 20px;
  }

  .brand__wordmark { display: none; }

  .brand__mobile {
    display: block;
    position: absolute;
    inset: auto 0 5%;
    width: 100%;
    padding: 0 3%;
  }

  .cols { flex-direction: column; }

  /* no card retrato o "space-between" abre um vão enorme sob o título */
  .stack { justify-content: flex-start; }
  .faq__cols { margin-top: 0; }

  .card { overflow-y: auto; }

  .figs { gap: 6px; }

  /* cubos em 3 x 2, em vez de seis tirinhas de 55px */
  .figs--cubes { flex-wrap: wrap; }
  .figs--cubes img {
    flex: 0 0 calc((100% - 12px) / 3);
    aspect-ratio: 1080 / 1330;
  }

  .pair { flex-direction: column; }

  .closing__contact { flex-direction: column; align-items: stretch; }
  .closing__spacer { display: none; }

  .faq--desktop { display: none; }
  .faq--mobile { display: flex; }
}

/* --------------------------------------------------------------------------
   Acessibilidade
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cover,
  .faq__track { transition: none; }
}
