/* Phone shell — lifted from omnia-demo and adapted for embedded marketing use.
   The .phone is a self-contained iOS frame; multiple instances can live on one page.
   Use `--phone-scale` on the wrapper element to size it (default 1).
*/

.phone {
  position: relative;
  width: 390px;
  height: 844px;
  flex-shrink: 0;
  border-radius: 48px;
  background: #F2F2F7;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transform-origin: top left;
  transform: scale(var(--phone-scale, 1));

  /* iOS color tokens */
  --bg: #F2F2F7;
  --card: #ffffff;
  --fg: #000000;
  --sub: rgba(60, 60, 67, 0.6);
  --sep: rgba(60, 60, 67, 0.1);
  --pill-bg: rgba(120, 120, 128, 0.12);
}

/* Dynamic Island */
.phone::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  border-radius: 24px;
  background: #000;
  z-index: 50;
  pointer-events: none;
}

/* Home indicator */
.phone::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 139px;
  height: 5px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.25);
  z-index: 60;
  pointer-events: none;
}

.phone.dark {
  background: #000;
  --bg: #000000;
  --card: #1C1C1E;
  --fg: #ffffff;
  --sub: rgba(235, 235, 245, 0.6);
  --sep: rgba(84, 84, 88, 0.4);
  --pill-bg: rgba(120, 120, 128, 0.2);
}
.phone.dark::after { background: rgba(255, 255, 255, 0.7); }

/* The viewport that screens render into */
.phone__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none; /* mockups are non-interactive */
}

/* Tab bar (only used for the chats mockup) */
.phone__tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 83px;
  padding-bottom: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 10px;
  background: rgba(249, 249, 249, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 0.5px solid rgba(60, 60, 67, 0.12);
}
.phone.dark .phone__tabbar {
  background: rgba(28, 28, 30, 0.92);
  border-top-color: rgba(84, 84, 88, 0.4);
}
.phone__tabbar[hidden] { display: none; }

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--sub);
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.tab-item.active { color: var(--accent, oklch(0.62 0.14 280)); }
.tab-item svg { width: 24px; height: 24px; }
.tab-item span { font-size: 10px; font-weight: 500; letter-spacing: -0.1px; }

/* Screen base */
.screen {
  position: absolute;
  inset: 0;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
}

/* iOS status bar */
.ios-statusbar {
  display: flex;
  gap: 154px;
  align-items: center;
  justify-content: center;
  padding: 21px 24px 10px;
  position: relative;
  z-index: 20;
  width: 100%;
  color: var(--fg);
  pointer-events: none;
}
.ios-statusbar__time {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 590;
  font-size: 17px;
  line-height: 22px;
}
.ios-statusbar__icons {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-top: 2px;
}

/* Quick Action Pill (used inside Chats screen) */
.qa-pill-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.qa-pill {
  height: 36px;
  padding: 0 12px 0 6px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.phone.dark .qa-pill {
  background: rgba(120, 120, 128, 0.24);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.qa-pill__orb { width: 26px; height: 26px; position: relative; }
.qa-pill__label {
  font-size: 13px;
  font-weight: 590;
  letter-spacing: -0.1px;
  color: var(--fg);
}
.qa-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, oklch(0.62 0.14 280));
  box-shadow: 0 0 6px var(--accent, oklch(0.62 0.14 280));
  animation: qaDot 1s ease-in-out infinite alternate;
}
@keyframes qaDot { from { opacity: 0.6; } to { opacity: 1; } }
.qa-pill__hint {
  font-size: 10.5px;
  color: var(--sub);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mockup wrapper — provides the responsive scale and reserves layout space.
   The phone has fixed 390x844 dimensions and uses transform: scale to shrink.
   The wrapper sets its own size to match the *scaled* footprint so flow works.
*/
.phone-mockup {
  width: calc(390px * var(--phone-scale, 0.55));
  height: calc(844px * var(--phone-scale, 0.55));
  flex-shrink: 0;
  position: relative;
}
.phone-mockup .phone {
  position: absolute;
  top: 0;
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  .qa-pill__dot { animation: none; }
}
