/* The ad landing page. Same visual world as the legal pages and the native
   RewardPanel — the app's black system window, gold as the one accent — so
   someone arriving from an Instagram ad sees the app before they install it.
   Propshaft picks this file up on its own; nothing to register. */

.landing {
  min-height: 100dvh;
  padding: 40px 20px 48px;
  background:
    radial-gradient(120% 55% at 50% -10%, rgba(255, 200, 74, 0.09), transparent 60%),
    #090909;
  color: #efe9dc;
  font-family: var(--sys-font);
  -webkit-font-smoothing: antialiased;
}

.landing__hero,
.landing__loop,
.landing__cta-repeat,
.landing__footer {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- hero ---------- */

.landing__hero {
  text-align: center;
}

.landing__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--sys-gold);
}

.landing__eyebrow::before,
.landing__eyebrow::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--sys-gold);
  transform: rotate(45deg);
}

.landing__title {
  margin: 12px 0 0;
  font-size: clamp(40px, 11vw, 64px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--sys-gold);
  text-shadow: 0 0 28px rgba(255, 200, 74, 0.35);
}

.landing__lede {
  max-width: 34em;
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(239, 233, 220, 0.78);
  text-wrap: pretty;
}

.landing__note {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(239, 233, 220, 0.45);
}

/* ---------- the App Store button ---------- */

.landing__store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 12px 22px 12px 18px;
  border-radius: 12px;
  background: #fff;
  color: #090909;
  text-decoration: none;
  box-shadow:
    0 0 24px rgba(255, 200, 74, 0.28),
    0 8px 14px rgba(0, 0, 0, 0.5);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.landing__store:hover,
.landing__store:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 0 34px rgba(255, 200, 74, 0.42),
    0 10px 18px rgba(0, 0, 0, 0.5);
  outline: none;
}

.landing__store-mark {
  width: 28px;
  height: 28px;
  flex: none;
  fill: currentColor;
}

.landing__store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.landing__store-small {
  font-size: 10px;
  letter-spacing: 0.04em;
}

.landing__store-big {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.landing__store--compact {
  margin-top: 0;
  padding: 14px 28px;
}

/* ---------- the trailer, in the app's own gold frame ---------- */

.landing__frame {
  position: relative;
  /* A phone's aspect: the trailer is a vertical screen recording. */
  width: min(340px, 82vw);
  margin: 40px auto 0;
  padding: 8px;
  border-radius: 28px;
  background: linear-gradient(to bottom, #1c1c1c, #0d0d0d);
  box-shadow:
    0 0 40px rgba(255, 200, 74, 0.22),
    0 18px 30px rgba(0, 0, 0, 0.6);
}

/* Beveled gold ring, the same conic trick the legal panel uses. */
.landing__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 2px;
  background: conic-gradient(
    from 225deg,
    rgba(255, 200, 74, 0.95),
    rgba(255, 200, 74, 0.5),
    rgba(0, 0, 0, 0.5),
    rgba(255, 200, 74, 0.5),
    rgba(255, 200, 74, 0.95)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.landing__video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 21px;
  background: #050812;
}

.landing__stud {
  position: absolute;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), var(--sys-gold) 45%, rgba(255, 200, 74, 0.6));
  box-shadow: 0 0 6px rgba(255, 200, 74, 0.5);
  pointer-events: none;
  z-index: 1;
}

.landing__stud--tl { top: 9px; left: 9px; }
.landing__stud--tr { top: 9px; right: 9px; }
.landing__stud--bl { bottom: 9px; left: 9px; }
.landing__stud--br { bottom: 9px; right: 9px; }

/* ---------- the loop, in three beats ---------- */

.landing__loop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  background: rgba(255, 200, 74, 0.18);
  border: 1px solid rgba(255, 200, 74, 0.18);
  border-radius: 14px;
  overflow: hidden;
}

@media (max-width: 560px) {
  .landing__loop {
    grid-template-columns: 1fr;
  }
}

.landing__step {
  padding: 18px 18px 20px;
  background: #0d0d0d;
}

.landing__step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sys-gold);
}

.landing__step-label::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--sys-gold);
  transform: rotate(45deg);
}

.landing__step-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(239, 233, 220, 0.72);
  text-wrap: pretty;
}

/* ---------- close ---------- */

.landing__cta-repeat {
  margin-top: 36px;
  text-align: center;
}

.landing__footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  font-size: 12px;
  color: rgba(239, 233, 220, 0.4);
}

.landing__footer a {
  color: rgba(239, 233, 220, 0.6);
  text-decoration: none;
}

.landing__footer a:hover {
  color: var(--sys-gold);
}

@media (prefers-reduced-motion: no-preference) {
  .landing__hero > *,
  .landing__frame {
    animation: landing-rise 0.5s ease-out backwards;
  }
  .landing__title { animation-delay: 0.05s; }
  .landing__lede { animation-delay: 0.1s; }
  .landing__store { animation-delay: 0.15s; }
  .landing__frame { animation-delay: 0.2s; }

  @keyframes landing-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}
