/* ─── Phone Mockup ─── */
.phone-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 48px; /* room for floor glow */
}

/* Floor glow — offset right to match left-tilt perspective */
.phone-mockup::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 30%;
  right: -5%;
  height: 48px;
  background: radial-gradient(ellipse at center, rgba(91, 132, 206, 0.18) 0%, transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}

.phone-shell {
  position: relative;
  z-index: 1;
  width: 280px;
  /* Lit left/top edges simulate light from upper-left */
  background: linear-gradient(145deg, #2e3448 0%, #1a1e2c 60%, #151824 100%);
  border-radius: 48px;
  padding: 13px;
  /* Per-edge border highlights: left & top are brighter (lit face) */
  border-top: 1.5px solid rgba(255, 255, 255, 0.18);
  border-left: 1.5px solid rgba(255, 255, 255, 0.16);
  border-right: 1.5px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.04);
  /* Directional shadow: cast right+down to match left-tilt */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    inset -1px 0 0 rgba(0, 0, 0, 0.3),
    18px 32px 60px rgba(0, 0, 0, 0.75),
    28px 56px 110px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.5);
  transform: perspective(750px) rotateY(-22deg) rotateX(5deg);
  transform-origin: center center;
  transform-style: preserve-3d;
}

/* Left: silent + vol up + vol down */
.phone-btns-left {
  position: absolute;
  left: -4px;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Right: power */
.phone-btns-right {
  position: absolute;
  right: -4px;
  top: 130px;
}

.phone-btn {
  background: linear-gradient(90deg, #232736, #1e2230);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-right: none;
  border-radius: 3px 0 0 3px;
  width: 4px;
}

.phone-btns-left .phone-btn:nth-child(1) { height: 22px; }
.phone-btns-left .phone-btn:nth-child(2) { height: 38px; }
.phone-btns-left .phone-btn:nth-child(3) { height: 38px; }

.phone-btns-right .phone-btn {
  height: 56px;
  border-radius: 0 3px 3px 0;
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

/* Screen */
.phone-screen {
  position: relative;
  background: var(--bg);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Screen glare: diagonal highlight across top-left, simulating ambient light */
.phone-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.055) 0%,
    rgba(255, 255, 255, 0.018) 25%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 100;
}

/* Status bar */
.phone-status-bar {
  display: flex;
  align-items: center;
  padding: 12px 20px 2px;
  position: relative;
  flex-shrink: 0;
}

.phone-time {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
}

.phone-island {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
  width: 80px;
  height: 24px;
  background: #000;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--text);
}

/* App nav bar */
.phone-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 16px 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.phone-app-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.phone-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
  color: var(--muted);
  cursor: pointer;
}

.phone-nav-btn::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  background: var(--danger);
  border-radius: 50%;
  border: 1.5px solid var(--bg);
}

/* Content area */
.phone-content-area {
  flex: 1;
  padding: 12px 14px 8px;
  overflow: hidden;
}

.phone-greeting {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 10px;
  opacity: 0.75;
}

/* Strip card border/bg when embedded in phone */
.phone-mockup .hero-vitals-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  max-width: none;
  width: auto;
}

/* Home indicator */
.phone-home-bar {
  flex-shrink: 0;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
}

.phone-home-bar::before {
  content: '';
  display: block;
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

[data-theme="light"] .phone-home-bar::before {
  background: rgba(0, 0, 0, 0.18);
}

/* ─── Responsive ─── */
@media (max-width: 650px) {
  .phone-mockup {
    padding-bottom: 0;
  }

  .phone-shell {
    width: min(260px, calc(100vw - 60px));
  }
}
