*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #F2F2F7;
  padding: 24px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.is-embed {
  min-height: auto;
  background: transparent;
  padding: 0;
}

body.is-embed .showcase-meta {
  display: none;
}

.device {
  position: relative;
  width: 472px;
  height: 950px;
  flex-shrink: 0;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.18));
}

.device-screen {
  position: absolute;
  z-index: 1;
  top: 30px;
  left: 6.621%;
  right: 6.726%;
  bottom: calc(5.5% - 20px);
  border-radius: 24px 24px 42px 42px;
  overflow: hidden;
  background: #0a101a;
}

.screen-scale {
  width: calc(100% / 0.95);
  height: calc(100% / 0.95);
  transform: scale(0.95);
  transform-origin: top left;
  border-radius: inherit;
}

.device-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: inherit;
}

.device-bezel {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.showcase-meta {
  text-align: center;
  margin-top: 20px;
  max-width: 440px;
}

.showcase-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.38);
  margin-bottom: 8px;
}

.showcase-hint {
  font-size: 11px;
  font-style: italic;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1.5;
}

.tenure-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}

.tenure-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: all 0.18s;
}

.tenure-tab.active {
  background: #1c1c1e;
  color: #fff;
  border-color: #1c1c1e;
}

body.is-embed .tenure-tabs {
  display: none;
}

.process-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
}

.process-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: all 0.18s;
}

.process-tab.active {
  background: #1c1c1e;
  color: #fff;
  border-color: #1c1c1e;
}

.device-panel[hidden] {
  display: none;
}

.process-page .device-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.process-page .device-panel video {
  width: calc(100% + 5px);
  height: calc(100% + 5px);
  object-fit: cover;
  object-position: top left;
  display: block;
  background: #0a101a;
}

@media (max-width: 504px) {
  body:not(.is-embed) {
    padding: 16px 0;
    align-items: flex-start;
  }

  .device {
    transform: scale(calc(100vw / 504));
    transform-origin: top center;
  }

  body:not(.is-embed) {
    margin-bottom: calc((950px * (100vw / 504)) - 950px);
  }
}
