/* Página: Como funciona a BIA */
:root {
  --bia-bg: #000000;
  --bia-fg: #ffffff;
  --bia-muted: rgba(255, 255, 255, 0.7);
  --bia-accent: #3b82f6;
  --bia-accent-2: #22d3ee;
  --bia-safe-top: env(safe-area-inset-top, 0px);
  --bia-safe-bottom: env(safe-area-inset-bottom, 0px);
  --bia-safe-left: env(safe-area-inset-left, 0px);
  --bia-safe-right: env(safe-area-inset-right, 0px);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bia-bg);
  color: var(--bia-fg);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.bia-page {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #000;
}

/* ========== Fundo: 2 bolas grandes (cantos) + blur ========== */
.bia-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

.bia-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  opacity: 0.95;
}

/* Canto superior esquerdo — grande */
.bia-orb-tl {
  width: min(95vw, 560px);
  height: min(95vw, 560px);
  top: -18%;
  left: -22%;
  background: radial-gradient(
    circle at 38% 38%,
    #93c5fd 0%,
    #3b82f6 28%,
    #1d4ed8 52%,
    #0f172a 78%,
    transparent 100%
  );
  animation: bia-orb-tl 22s ease-in-out infinite;
}

/* Canto inferior direito — grande */
.bia-orb-br {
  width: min(100vw, 600px);
  height: min(100vw, 600px);
  bottom: -22%;
  right: -24%;
  background: radial-gradient(
    circle at 42% 40%,
    #67e8f9 0%,
    #0ea5e9 26%,
    #2563eb 50%,
    #1e3a8a 75%,
    transparent 100%
  );
  animation: bia-orb-br 26s ease-in-out infinite;
}

.bia-bg-blur {
  position: absolute;
  inset: -2px;
  backdrop-filter: blur(56px) saturate(1.2);
  -webkit-backdrop-filter: blur(56px) saturate(1.2);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(15, 23, 42, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.65) 100%);
}

@keyframes bia-orb-tl {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    transform: translate3d(10%, 8%, 0) scale(1.08);
  }
  50% {
    transform: translate3d(4%, 14%, 0) scale(0.96);
  }
  75% {
    transform: translate3d(14%, 4%, 0) scale(1.05);
  }
}

@keyframes bia-orb-br {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  30% {
    transform: translate3d(-12%, -8%, 0) scale(1.1);
  }
  55% {
    transform: translate3d(-6%, -14%, 0) scale(0.94);
  }
  80% {
    transform: translate3d(-16%, -4%, 0) scale(1.06);
  }
}

/* ========== Conteúdo ========== */
.bia-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding:
    calc(12px + var(--bia-safe-top))
    calc(12px + var(--bia-safe-right))
    calc(28px + var(--bia-safe-bottom))
    calc(12px + var(--bia-safe-left));
  max-width: 520px;
  margin: 0 auto;
}

.bia-header {
  width: 100%;
  text-align: center;
  flex-shrink: 0;
  padding: 4px 8px 12px;
}

.bia-kicker {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bia-muted);
  font-family: Outfit, "Plus Jakarta Sans", sans-serif;
}

.bia-headline {
  margin: 0;
  font-family: Outfit, "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 7.2vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--bia-fg);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.bia-sub {
  margin: 10px 0 0;
  font-size: clamp(0.95rem, 3.8vw, 1.1rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--bia-muted);
  letter-spacing: 0.01em;
}

.bia-stage {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 4px 0;
}

/* Vídeo nativo 9:16, cantos arredondados, sem corte “sujo” */
.bia-video-frame {
  position: relative;
  width: 100%;
  max-width: min(100%, 420px);
  aspect-ratio: 9 / 16;
  max-height: min(68dvh, 720px);
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  border: 0;
  isolation: isolate;
}

.bia-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  background: #000;
  pointer-events: none;
  border: 0;
  /* remove chrome nativo residual em iOS */
  -webkit-appearance: none;
}

.bia-video::-webkit-media-controls {
  display: none !important;
}

.bia-video::-webkit-media-controls-enclosure {
  display: none !important;
}

/* Clique em todo o vídeo (play/pause) */
.bia-tap-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: inherit;
}

/* Overlay: só o botão de play (sem texto, sem pause) */
.bia-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  border-radius: inherit;
}

/* Esconde só enquanto o vídeo está rodando */
.bia-video-frame.is-playing:not(.is-paused) .bia-play-overlay {
  opacity: 0;
  visibility: hidden;
}

.bia-video-frame.is-paused .bia-play-overlay,
.bia-video-frame:not(.is-playing) .bia-play-overlay {
  opacity: 1;
  visibility: visible;
}

.bia-play-ring {
  width: clamp(88px, 28vw, 116px);
  height: clamp(88px, 28vw, 116px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #60a5fa 0%, #2563eb 48%, #0ea5e9 100%);
  box-shadow:
    0 0 0 10px rgba(59, 130, 246, 0.2),
    0 0 0 24px rgba(59, 130, 246, 0.1),
    0 16px 40px rgba(37, 99, 235, 0.45);
  animation: bia-pulse 1.8s ease-in-out infinite;
}

.bia-play-icon {
  display: grid;
  place-items: center;
  color: #fff;
  margin-left: 5px;
}

.bia-play-icon svg {
  width: clamp(36px, 11vw, 50px);
  height: clamp(36px, 11vw, 50px);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}

@keyframes bia-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 10px rgba(59, 130, 246, 0.2),
      0 0 0 24px rgba(59, 130, 246, 0.1),
      0 16px 40px rgba(37, 99, 235, 0.45);
  }
  50% {
    transform: scale(1.08);
    box-shadow:
      0 0 0 16px rgba(59, 130, 246, 0.28),
      0 0 0 36px rgba(59, 130, 246, 0.12),
      0 22px 52px rgba(37, 99, 235, 0.55);
  }
}

/* CTA ~1:20 */
.bia-cta-wrap {
  width: 100%;
  flex-shrink: 0;
  padding: 14px 4px 2px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

/* ========== FAQ ========== */
.bia-faq {
  width: 100%;
  max-width: 420px;
  margin: 28px auto 8px;
  padding: 0 2px 12px;
  flex-shrink: 0;
}

.bia-faq-head {
  text-align: center;
  margin-bottom: 18px;
}

.bia-faq-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.9);
  font-family: Outfit, "Plus Jakarta Sans", sans-serif;
}

.bia-faq-head h2 {
  margin: 0;
  font-family: Outfit, "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(1.3rem, 5.2vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}

.bia-faq-intro {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--bia-muted);
}

.bia-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bia-faq-item {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bia-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-family: Outfit, "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.bia-faq-item summary::-webkit-details-marker {
  display: none;
}

.bia-faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(147, 197, 253, 0.85);
  border-bottom: 2px solid rgba(147, 197, 253, 0.85);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
  opacity: 0.9;
}

.bia-faq-item[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.bia-faq-item p {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.88);
}

.bia-faq-item p strong {
  color: #fff;
  font-weight: 700;
}

.bia-faq-cta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bia-faq-note {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.bia-cta-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bia-cta-wrap[hidden] {
  display: none;
}

.bia-cta-wrap.is-visible[hidden] {
  display: flex;
}

.bia-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  min-height: 56px;
  padding: 16px 22px;
  border-radius: 999px;
  font-family: Outfit, "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(1.05rem, 4.2vw, 1.18rem);
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  color: #1a1400;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, filter 0.15s ease;
}

/* CTA principal amarelo + pulso (aparece no 1:20) */
.bia-cta-yellow {
  color: #1a1400;
  background: linear-gradient(110deg, #fde047 0%, #facc15 40%, #eab308 100%);
  box-shadow:
    0 0 0 0 rgba(250, 204, 21, 0.55),
    0 12px 36px rgba(234, 179, 8, 0.4),
    0 4px 14px rgba(0, 0, 0, 0.35);
  animation: bia-cta-pulse 1.6s ease-in-out infinite;
}

.bia-cta-static {
  animation: none;
  box-shadow:
    0 12px 36px rgba(234, 179, 8, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.3);
}

.bia-cta:hover {
  filter: brightness(1.05);
}

.bia-cta:active {
  transform: scale(0.98);
}

.bia-cta:focus-visible {
  outline: 3px solid #fde047;
  outline-offset: 4px;
}

@keyframes bia-cta-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(250, 204, 21, 0.5),
      0 12px 36px rgba(234, 179, 8, 0.4),
      0 4px 14px rgba(0, 0, 0, 0.35);
  }
  50% {
    transform: scale(1.035);
    box-shadow:
      0 0 0 14px rgba(250, 204, 21, 0),
      0 16px 44px rgba(234, 179, 8, 0.5),
      0 6px 16px rgba(0, 0, 0, 0.38);
  }
}

@media (min-width: 640px) {
  .bia-shell {
    max-width: 560px;
    padding-top: calc(20px + var(--bia-safe-top));
    padding-bottom: calc(28px + var(--bia-safe-bottom));
  }

  .bia-header {
    padding-bottom: 16px;
  }

  .bia-headline {
    font-size: clamp(2.15rem, 4.2vw, 2.7rem);
  }

  .bia-video-frame {
    max-width: 400px;
    max-height: min(70dvh, 740px);
    border-radius: 26px;
  }

  .bia-faq {
    max-width: 420px;
    margin-top: 36px;
  }

  .bia-orb-tl {
    width: min(70vw, 640px);
    height: min(70vw, 640px);
  }

  .bia-orb-br {
    width: min(75vw, 680px);
    height: min(75vw, 680px);
  }
}

@media (min-width: 1024px) {
  .bia-shell {
    max-width: 600px;
  }

  .bia-video-frame {
    max-width: 420px;
    border-radius: 28px;
  }

  .bia-orb-tl {
    width: 680px;
    height: 680px;
  }

  .bia-orb-br {
    width: 720px;
    height: 720px;
  }
}

@media (max-width: 360px) {
  .bia-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .bia-headline {
    font-size: 1.55rem;
  }

  .bia-sub {
    font-size: 0.9rem;
  }

  .bia-video-frame {
    border-radius: 18px;
  }

  .bia-play-ring {
    width: 80px;
    height: 80px;
  }
}

@media (max-height: 700px) {
  .bia-header {
    padding-bottom: 8px;
  }

  .bia-kicker {
    margin-bottom: 4px;
    font-size: 0.76rem;
  }

  .bia-headline {
    font-size: clamp(1.4rem, 5.2vh, 1.9rem);
  }

  .bia-sub {
    margin-top: 6px;
    font-size: 0.92rem;
  }

  .bia-video-frame {
    max-height: min(62dvh, 560px);
  }

  .bia-cta {
    min-height: 50px;
    font-size: 1.02rem;
  }
}

@media (max-height: 640px) and (orientation: landscape) {
  .bia-shell {
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 8px 20px;
    padding: 10px 16px;
  }

  .bia-header {
    width: auto;
    max-width: 42%;
    text-align: left;
    padding: 0;
  }

  .bia-stage {
    width: auto;
    flex: 0 1 auto;
  }

  .bia-video-frame {
    width: min(38vw, 260px);
    max-height: 82dvh;
    border-radius: 16px;
  }

  .bia-cta-wrap {
    width: 100%;
    order: 3;
  }

  .bia-cta {
    max-width: 320px;
  }

  .bia-faq {
    order: 4;
    max-width: 520px;
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bia-orb,
  .bia-play-ring,
  .bia-cta-yellow {
    animation: none !important;
  }

  .bia-cta-wrap,
  .bia-play-overlay,
  .bia-cta {
    transition: none;
  }
}
