/* The phone in the hero.
 *
 * A device drawn in CSS, not a stock mockup PNG: it stays sharp at any DPI, costs no image
 * request, and the screenshots inside are the same files the gallery below uses, so the hero can
 * never show a version of the app that no longer exists.
 *
 * The screen is a scroll-snap strip. Swiping is native - touch, trackpad, arrow keys once focused -
 * and the dots and caption are a view onto that scroll position rather than a separate state that
 * could disagree with it.
 */

.phone {
  position: relative;
  width: min(296px, 74vw);
  margin-inline: auto;
  display: grid;
  gap: 16px;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.55));
}

.phone__frame {
  position: relative;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(160deg, #33373E 0%, #1B1E22 38%, #0E1013 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 2px rgba(255, 255, 255, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.05);
  /* Held still on purpose. A floating phone next to text that is being read is the one kind of
     motion that makes people look away from the page; the product moves inside the screen
     instead. */
}

/* Side keys, so the object reads as a phone rather than a rounded rectangle. */
.phone__key {
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2B2F35, #15181C);
}
.phone__key--power { right: -3px; top: 150px; height: 62px; }
.phone__key--vol { left: -3px; top: 118px; height: 44px; }

.phone__screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #05070A;
  aspect-ratio: 9 / 19.5;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.9);
}

.phone__slides {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
}
.phone__slides::-webkit-scrollbar { display: none; }
.phone__slides:focus-visible { box-shadow: inset 0 0 0 2px rgba(255, 122, 61, 0.6); }

.phone__slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.phone__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.phone__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 12px;
  color: var(--muted);
}

/* The camera hole and a diagonal sheen. Both are decoration: they never carry information and
   never take a click, so a swipe that starts on the sheen still scrolls. */
.phone__punch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 9px; height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: #05070A;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.phone__gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 22%,
              transparent 42%);
  mix-blend-mode: screen;
  border-radius: inherit;
}

/* ---------- dots + caption ---------- */

.phone__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.phone__dots { display: flex; gap: 7px; }
.phone__dot {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.phone__dot:hover { background: rgba(255, 255, 255, 0.45); }
.phone__dot.is-on {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(255, 75, 31, 0.55);
}
.phone__dot:focus-visible { outline: 2px solid rgba(255, 122, 61, 0.8); outline-offset: 3px; }

.phone__caption {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  min-height: 1.2em;
}
.lang-cjk .phone__caption { letter-spacing: 0.02em; }

@media (max-width: 900px) {
  .phone { width: min(260px, 68vw); }
}
@media (max-width: 380px) {
  .phone { width: min(232px, 64vw); }
}
