/* ============================================================
   Device frame — iPhone 15 Pro style shell + stage
   ============================================================ */

.stage {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  padding: 40px 24px;
  box-sizing: border-box;
  background:
    radial-gradient(120% 90% at 20% 0%, #1a1712 0%, transparent 55%),
    radial-gradient(120% 90% at 90% 100%, #14120e 0%, transparent 50%),
    #060608;
}

/* ---- The phone ------------------------------------------- */
.device {
  position: relative;
  width: 390px;
  height: 844px;
  flex: 0 0 auto;
  border-radius: 58px;
  padding: 12px;
  background:
    linear-gradient(150deg, #3a3a40, #0e0e11 40%, #17171b 70%, #35353b);
  box-shadow:
    0 0 0 2px #050506,
    0 50px 120px rgba(0,0,0,.7),
    0 10px 40px rgba(0,0,0,.5),
    inset 0 1px 1px rgba(255,255,255,.14);
}

.device__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 47px;
  overflow: hidden;
  background: var(--cockpit);
  box-shadow: inset 0 0 0 2px #000;
}

/* Dynamic Island */
.island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 122px;
  height: 35px;
  background: #000;
  border-radius: var(--r-pill);
  z-index: 60;
  transition: width var(--dur) var(--spring), height var(--dur) var(--spring);
}
.island::after {  /* camera glint */
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 9px; height: 9px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #23303a, #000 70%);
  box-shadow: inset 0 0 2px rgba(90,140,180,.5);
}
/* Live-activity expanded island (used on active trip screens) */
.island.island--live {
  width: 224px;
  height: 40px;
}

/* The scrolling viewport where screens mount */
.viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--cockpit);
}

/* ---- Side control panel (prototype tool, lives OUTSIDE the phone) */
.panel {
  width: 250px;
  flex: 0 0 auto;
  color: var(--ink-2);
  font-family: var(--font);
  align-self: center;
  user-select: none;
}
.panel__brand {
  display: flex; align-items: baseline; gap: 9px;
  margin-bottom: 4px;
}
.panel__brand b {
  font-size: 21px; letter-spacing: -.02em; color: var(--ink); font-weight: 600;
}
.panel__brand span {
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.panel__sub {
  font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-bottom: 20px;
  border-bottom: 1px solid var(--hairline); padding-bottom: 18px;
}
.panel__label {
  font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-4); margin: 0 0 10px;
}
.panel__list { display: flex; flex-direction: column; gap: 2px; }
.panel__step {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: 10px;
  font-size: 13px; color: var(--ink-3);
  cursor: pointer; border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.panel__step:hover { background: rgba(255,255,255,.04); color: var(--ink-2); }
.panel__step.is-active {
  background: rgba(240,110,0,.10);
  border-color: rgba(240,110,0,.25);
  color: var(--ink);
}
.panel__num {
  width: 20px; height: 20px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%; font-size: 10px;
  background: rgba(255,255,255,.05); color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.panel__step.is-active .panel__num { background: var(--gold-grad); color: #ffffff; font-weight: 600; }
.panel__hint {
  margin-top: 18px; font-size: 11px; color: var(--ink-4); line-height: 1.6;
}
.panel__hint kbd {
  font-family: var(--font); font-size: 10.5px;
  background: var(--leather); border: 1px solid var(--hairline-2);
  border-radius: 5px; padding: 1px 6px; color: var(--ink-2);
}

@media (max-width: 760px) {
  .stage { flex-direction: column; gap: 24px; padding: 20px 10px; }
  .panel { width: 340px; max-width: 92vw; order: 2; }
  .device { transform: scale(.92); transform-origin: top center; }
}
