@font-face {
  font-family: Kalam;
  font-weight: 700;
  font-display: block;
  src: url("fonts/kalam-700-latin.woff2?v=3") format("woff2");
}
@font-face {
  font-family: Montserrat;
  font-weight: 500 600;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2?v=3") format("woff2");
}
:root {
  --night: #03050f;
  --cream: #f3e6c8;
  --soft: rgba(233, 236, 245, 0.74);
  --faint: rgba(233, 236, 245, 0.5);
  --ember: #f2b05e;
  --rise: cubic-bezier(0.2, 0.7, 0.2, 1);
  --surface: cubic-bezier(0.16, 1, 0.3, 1);
}
body {
  background: var(--night);
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 0 max(30px, calc(env(safe-area-inset-bottom) + 22px));
}
.art {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 36dvh;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.scene {
  position: absolute;
  inset: 0;
  --zoomed: 1.1;
  transform-origin: 46% 30%;
  animation: settle 14s var(--rise) both;
}
.scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
}
.light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.6s ease;
}
.light.lit { opacity: 1; }
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(3, 5, 15, 0.6) 0%, transparent 24%);
}
h1 {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: max(22px, calc(env(safe-area-inset-top) + 12px)) 16px 0;
  font-size: clamp(19px, 6vw, 26px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 2px 22px rgba(3, 5, 15, 0.9), 0 0 40px rgba(242, 176, 94, 0.16);
  animation: rise 0.9s var(--rise) both;
}
.pitch {
  position: relative;
  width: 100%;
  margin-top: clamp(-70px, -5dvh, -24px);
  padding: 0 20px;
}
.pitch > *,
.iphone > * { animation: surface 1.3s var(--surface) backwards; }
.pitch > .iphone { animation: none; }
.logline {
  max-width: 28ch;
  margin: 0 auto;
  font-size: clamp(14px, 2.15dvh, 17px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--soft);
  text-wrap: balance;
  -webkit-mask: linear-gradient(100deg, #000 40%, transparent 60%) 0 0 / 300% 100% no-repeat;
  mask: linear-gradient(100deg, #000 40%, transparent 60%) 0 0 / 300% 100% no-repeat;
  animation: surface 1.3s var(--surface) 0.3s backwards, dawn 2s cubic-bezier(0.45, 0, 0.2, 1) 0.3s backwards;
}
.gift, .not-yet { animation-delay: 0.8s; }
.badge, .share { animation-delay: 1.05s; }
.trailer { animation-delay: 1.2s; }
.android-only, .escape, .follow { animation-delay: 1.35s; }
.badge::after,
.share::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 246, 228, 0.75) 50%, transparent 62%) 100% 0 / 300% 100% no-repeat;
  animation: glint 1.2s cubic-bezier(0.45, 0, 0.25, 1) 2.3s both;
}
.badge::after {
  mix-blend-mode: screen;
  -webkit-mask: url("badge-preregister.png?v=3") center / 100% 100% no-repeat;
  mask: url("badge-preregister.png?v=3") center / 100% 100% no-repeat;
}
.gift {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 372px;
  margin: clamp(18px, 4.4dvh, 42px) auto 0;
  text-align: left;
}
.gift img {
  flex: none;
  width: auto;
  height: clamp(52px, 8.4dvh, 76px);
  filter: drop-shadow(0 0 14px rgba(242, 176, 94, 0.32));
  animation: kindle 1.8s ease-out 1s backwards;
}
.gift p {
  margin: 0;
  font-size: clamp(12.5px, 1.9dvh, 14.5px);
  line-height: 1.45;
  color: var(--faint);
}
.gift strong {
  display: block;
  font-size: clamp(14px, 2.2dvh, 17px);
  font-weight: 600;
  color: var(--ember);
  white-space: nowrap;
}
.badge {
  width: min(232px, 62vw, 27dvh);
  margin: clamp(16px, 3.6dvh, 34px) auto 0;
  transition: transform 0.18s ease;
}
.badge img { filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55)); }
.badge::before { display: none; }
.badge:active { transform: scale(0.97); }
.badge:active img { transform: none; }
.android-only, .escape {
  font-size: 12.5px;
  color: var(--faint);
}
.escape { margin-top: clamp(12px, 2.6dvh, 24px); }
.escape a { color: var(--soft); font-weight: 500; }
.iphone { display: none; }
[data-platform="iphone"] .gift,
[data-platform="iphone"] .badge { display: none; }
[data-platform="iphone"] .iphone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(316px, 88vw);
  margin: clamp(16px, 3.8dvh, 38px) auto 0;
}
.not-yet {
  margin: 0 0 4px;
  font-size: clamp(14px, 2.2dvh, 17px);
  font-weight: 600;
  color: var(--ember);
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  font: 600 14px/1.2 Montserrat, system-ui, sans-serif;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease;
}
.button:active { transform: scale(0.97); }
.button svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.share {
  position: relative;
  overflow: hidden;
  border: 0;
  background: var(--cream);
  color: var(--night);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 30px rgba(242, 176, 94, 0.2);
}
.share .done,
.share.copied .label { display: none; }
.share.copied .done { display: inline; }
.trailer {
  border: 1px solid rgba(243, 230, 200, 0.4);
  background: rgba(3, 5, 15, 0.35);
  color: var(--cream);
}
.follow {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--faint);
}
.follow a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--soft);
  -webkit-tap-highlight-color: transparent;
}
.follow a:first-of-type { margin-left: 4px; }
.iphone svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.iphone svg .solid {
  fill: currentColor;
  stroke: none;
}
.follow svg {
  width: 21px;
  height: 21px;
}
.privacy {
  position: absolute;
  right: 4px;
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--faint);
  -webkit-tap-highlight-color: transparent;
}
.privacy svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
@media (min-width: 560px) {
  body::before {
    content: "";
    position: fixed;
    inset: -40px;
    background: url("poster.jpg?v=3") center / cover no-repeat;
    filter: blur(36px) brightness(0.35);
  }
  .art {
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%), linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, #000 72%, transparent 100%), linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
    mask-composite: intersect;
  }
}
@keyframes settle {
  from { transform: scale(calc(var(--zoomed) + 0.08)); opacity: 0; }
  12% { opacity: 1; }
  to { transform: scale(var(--zoomed)); opacity: 1; }
}
@keyframes surface {
  from { opacity: 0; transform: translateY(28px); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes dawn {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@keyframes kindle {
  from { filter: drop-shadow(0 0 0 rgba(242, 176, 94, 0)) brightness(0.55); }
  45% { filter: drop-shadow(0 0 26px rgba(242, 176, 94, 0.75)) brightness(1.15); }
  to { filter: drop-shadow(0 0 14px rgba(242, 176, 94, 0.32)) brightness(1); }
}
@keyframes glint {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}
@keyframes rise {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (max-aspect-ratio: 10/19) {
  .scene { --zoomed: 1.2; }
}
@media (prefers-reduced-motion: reduce) {
  h1, .pitch > *, .iphone > *, .gift img, .badge::after, .share::after { animation: none; }
  .scene { animation: none; transform: scale(var(--zoomed)); }
}
