@font-face {
  font-family: "Archivo";
  src: url("/vitrine/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: block;
}

:root {
  --ink: #0e0e0f;
  --ink-2: #1c1c1e;
  --orange: #efa144;
  --orange-deep: #b8650d;
  --paper: #f1f1ef;
  /* o app tem 390 x 844; na TV ele aparece 1,7x maior */
  --k: 1.7;
  --sw: calc(390px * var(--k));
  --sh: calc(844px * var(--k));
  --bezel: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  font-family: "Archivo", system-ui, sans-serif;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

/* palco fixo de 1080 x 1920 (TV em pé), escalado para caber em qualquer tela */
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1080px;
  height: 1920px;
  transform-origin: 50% 50%;
  overflow: hidden;
  background:
    radial-gradient(60% 38% at 50% 64%, rgba(239, 161, 68, 0.26), transparent 70%),
    radial-gradient(90% 30% at 50% 0%, rgba(239, 161, 68, 0.1), transparent 70%),
    var(--ink);
}

.top {
  position: absolute;
  inset: 0 0 auto 0;
  height: 380px;
  padding: 64px 72px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  height: 74px;
  width: auto;
}

.caption {
  margin-top: 34px;
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.caption.out {
  opacity: 0;
  transform: translateY(18px);
}

.kicker {
  margin: 0;
  display: inline-block;
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.headline {
  margin: 20px 0 0;
  font-size: 56px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 940px;
}

/* aparelho */
.phone {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  padding: var(--bezel);
  border-radius: calc(52px * var(--k) + var(--bezel));
  background: linear-gradient(160deg, #3a3a3d, #121214 40%, #2a2a2d);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08) inset,
    0 50px 120px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px #000;
}

.screen-box {
  width: var(--sw);
  height: var(--sh);
  border-radius: calc(52px * var(--k));
  overflow: hidden;
  background: var(--paper);
  position: relative;
}

.screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 390px;
  height: 844px;
  transform: scale(var(--k));
  transform-origin: 0 0;
  overflow: hidden;
}

.screen iframe {
  position: absolute;
  inset: 0;
  width: 390px;
  height: 844px;
  border: 0;
  background: var(--paper);
  pointer-events: none;
  will-change: transform;
}
.screen iframe.back {
  visibility: hidden;
}

/* o dedo do piloto */
.finger {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.12);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  transition:
    left 0.7s cubic-bezier(0.45, 0, 0.2, 1),
    top 0.7s cubic-bezier(0.45, 0, 0.2, 1),
    opacity 0.3s ease,
    transform 0.15s ease;
}
.finger.on {
  opacity: 1;
}
.finger.press {
  transform: scale(0.78);
  background: rgba(239, 161, 68, 0.75);
}
.ripple {
  position: absolute;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  z-index: 9;
  pointer-events: none;
  animation: ripple 0.6s ease-out forwards;
}
@keyframes ripple {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* cartão de abertura e fechamento */
.card {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(70% 40% at 50% 45%, rgba(239, 161, 68, 0.3), transparent 70%),
    var(--ink);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.7s ease,
    visibility 0s linear 0.7s;
}
.card.on {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.7s ease,
    visibility 0s;
}
.card-logo {
  width: 760px;
  height: auto;
  margin-top: -360px;
}
.card.on .card-logo {
  animation: pop 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.card-line {
  margin: 40px 0 0;
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 880px;
  line-height: 1.1;
}
.card.on .card-line {
  animation: rise 0.8s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.card-chico {
  position: absolute;
  bottom: -40px;
  width: 520px;
  height: auto;
}
.card.on .card-chico {
  animation: rise 0.9s 0.6s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}
@keyframes pop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
}
@keyframes rise {
  from {
    transform: translateY(80px);
    opacity: 0;
  }
}

/* painel do controle remoto (gira junto com o palco) */
body.with-pointer {
  cursor: default;
}
.controls {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 30;
  width: 900px;
  padding: 44px 44px 40px;
  border-radius: 40px;
  background: rgba(14, 14, 15, 0.94);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s linear 0.25s;
}
.controls.on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s;
}
.controls-title {
  margin: 0;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.controls-hint {
  margin: 10px 0 30px;
  font-size: 26px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.7);
}
.controls-row {
  display: flex;
  gap: 18px;
}
.controls-row + .controls-row {
  margin-top: 18px;
}
.controls button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 96px;
  padding: 22px 12px;
  border-radius: 26px;
  border: 4px solid transparent;
  background: #232326;
  color: #fff;
  font: 700 26px/1.15 "Archivo", system-ui, sans-serif;
  cursor: pointer;
}
.controls button[aria-pressed="true"] {
  background: var(--orange);
  color: var(--ink);
}
/* foco do controle remoto bem visível de longe */
.controls button.focus,
.controls button:focus-visible {
  border-color: #fff;
  outline: none;
  box-shadow: 0 0 0 6px rgba(239, 161, 68, 0.55);
}
.tv {
  display: grid;
  place-items: center;
  border: 5px solid currentColor;
  border-radius: 10px;
  font-size: 40px;
  line-height: 1;
}
.tv-0 {
  width: 54px;
  height: 92px;
}
.tv-direita,
.tv-esquerda {
  width: 92px;
  height: 54px;
}

@media (prefers-reduced-motion: reduce) {
  .finger {
    transition: opacity 0.3s ease;
  }
}
