/* Watch UI lab — physical bezels around the real /watch-app glance. */

body.watch-lab-body {
  background: #07080c;
  color: #f3ede0;
  overflow-x: hidden;
}

body.watch-lab-body #site-header {
  background: rgba(7, 8, 12, 0.96);
  border-bottom-color: rgba(200, 205, 214, 0.1);
}

.watch-lab {
  --face: min(calc(100vw - 5.5rem), 348px);
  --bezel: 18px;
  max-width: 56rem;
  margin: 0 auto;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  text-align: center;
}

.watch-lab h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.4rem, 4.2vw, 2rem);
  line-height: 1.25;
}

.watch-lab .eyebrow {
  margin: 0 0 0.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8c547;
  font-size: 0.78rem;
}

.watch-lab-lead,
.watch-lab-note,
.watch-lab-swipe {
  margin: 0 auto 1.1rem;
  max-width: 36rem;
  color: #b8b0a0;
  line-height: 1.55;
}

.watch-lab-swipe {
  margin-top: -0.35rem;
  font-size: 0.95rem;
}

.watch-lab-note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.watch-lab-toggle {
  display: flex;
  gap: 0.4rem;
  width: min(100%, 28rem);
  margin: 0 auto 1.4rem;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 205, 214, 0.22);
  background: rgba(11, 16, 38, 0.88);
}

.watch-lab-toggle button {
  flex: 1;
  min-height: 48px;
  min-width: 44px;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #cfd6e6;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.watch-lab-toggle button.is-active,
.watch-lab-toggle button[aria-pressed="true"] {
  background: linear-gradient(135deg, #f0d878, #c9a227);
  color: #1a1404;
}

.watch-lab-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.watch-device {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.watch-device-body {
  position: relative;
  width: calc(var(--face) + (var(--bezel) * 2));
  height: calc(var(--face) + (var(--bezel) * 2));
}

.watch-device-bezel {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: var(--bezel);
  background:
    radial-gradient(circle at 32% 24%, #4a4a50 0%, #1a1a1e 38%, #050506 72%),
    #0a0a0c;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -2px 6px rgba(0, 0, 0, 0.55);
}

.watch-device-body,
.watch-device-bezel,
.watch-device-screen {
  touch-action: none;
}

.watch-device-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b1026;
  isolation: isolate;
}

html.watch-lab-swiping,
body.watch-lab-swiping {
  overflow: hidden;
  touch-action: none;
}

.watch-device-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b1026;
}

.watch-device-crown,
.watch-device-button {
  position: absolute;
  right: -11px;
  width: 12px;
  border-radius: 4px;
  background: linear-gradient(180deg, #c8c8cc, #6a6a70 45%, #2a2a2e);
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.watch-device-crown {
  top: 26%;
  height: 38px;
}

.watch-device-button {
  top: 48%;
  height: 22px;
  width: 8px;
  right: -8px;
}

.watch-device--round .watch-device-bezel,
.watch-device--round .watch-device-screen,
.watch-device--round .watch-device-screen iframe {
  border-radius: 50%;
}

.watch-device--round .watch-device-screen {
  clip-path: circle(50% at 50% 50%);
}

.watch-device--square {
  --bezel: 14px;
}

.watch-device--square .watch-device-bezel {
  border-radius: 22%;
}

.watch-device--square .watch-device-screen,
.watch-device--square .watch-device-screen iframe {
  border-radius: 18%;
}

.watch-device figcaption {
  margin: 0;
  color: #cfd6e6;
  font-weight: 700;
  font-size: 1.05rem;
}

.watch-lab-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
}

@media (max-width: 767px) {
  .watch-lab-stage[data-shape="round"] .watch-device--square,
  .watch-lab-stage[data-shape="square"] .watch-device--round {
    display: none;
  }
}

@media (min-width: 768px) {
  .watch-lab-stage {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .watch-lab-stage .watch-device {
    display: flex;
  }

  .watch-device.is-dim .watch-device-body {
    opacity: 0.72;
    transition: opacity 0.2s ease;
  }

  .watch-device.is-focus .watch-device-body {
    opacity: 1;
  }
}

@media (max-width: 360px) {
  .watch-lab {
    --face: min(calc(100vw - 4.25rem), 280px);
    --bezel: 14px;
  }

  .watch-lab h1 {
    font-size: 1.32rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .watch-device-body {
    transition: none;
  }
}
