/* ============================================================
   VITALIS MOCKUP CSS — scoped to .phones-showcase
   All Design System CSS isolated here to prevent conflicts
   with the website's dark-theme styles.css
   ============================================================ */

/* ── Website showcase container layout ── */
.phones-showcase-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 56px 0 48px;
  position: relative;
}
.phones-showcase-wrap::-webkit-scrollbar { display: none; }

.phones-showcase {
  display: flex;
  gap: 32px;
  width: max-content;
  margin: 0 auto;
  padding: 0 48px 48px;
  align-items: flex-start;
}

/* Scroll hint on smaller screens */
.scroll-hint {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0;
  display: none;
}

/* Phone wrap — scaled for the website viewport */
.pw {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  zoom: 0.78;           /* scales phone + caption + dots proportionally */
}

/* Phone caption */
.pc { text-align: center; }
.pc-app {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.pc-tag {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 3px;
}

/* Tab progress dots */
.tdots {
  display: flex;
  gap: 5px;
  justify-content: center;
}
.tdot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.25s ease;
}
.tdot.active {
  width: 18px;
  background: rgba(255,255,255,0.85);
}

/* ============================================================
   DESIGN SYSTEM CSS — scoped under .phones-showcase
   ============================================================ */

/* ── CSS Custom Properties ── */
.phones-showcase {
  --bg-app: #E8E9EB;
  --bg-card: #FFFFFF;
  --bg-pill: #0F0F12;
  --bg-soft: #F5F5F7;
  --bg-divider: rgba(15, 15, 18, 0.06);
  --ink-primary: #0F0F12;
  --ink-secondary: #6B6B73;
  --ink-tertiary: #B0B0B8;
  --good: #34C759;
  --warn: #FF8A3D;
  --bad: #EF4444;
  --radius-card: 28px;
  --radius-chip: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(15,15,18,0.04), 0 4px 16px rgba(15,15,18,0.04);
  --shadow-elev: 0 8px 32px rgba(15,15,18,0.08);
  --shadow-pop: 0 12px 40px rgba(15,15,18,0.12);
}

/* ── Per-app theming ── */
.phones-showcase .theme-core   { --primary: #E94B4F; --primary-soft: #FEE4E2; --primary-deep: #C13135; --avatar-grad: linear-gradient(135deg,#FF8A8E,#E94B4F); }
.phones-showcase .theme-motion { --primary: #3D5AFE; --primary-soft: #DDE4FF; --primary-deep: #1E3FB8; --avatar-grad: linear-gradient(135deg,#7E94FF,#3D5AFE); }
.phones-showcase .theme-somna  { --primary: #7B61FF; --primary-soft: #EDE9FE; --primary-deep: #5B3FCC; --avatar-grad: linear-gradient(135deg,#A88FFF,#7B61FF); }
.phones-showcase .theme-nourish{ --primary: #22C55E; --primary-soft: #DCFCE7; --primary-deep: #15803D; --avatar-grad: linear-gradient(135deg,#6BE194,#22C55E); }

/* ── Phone frame ──
   iPhone 17 Pro 6.3" — exact logical dimensions: 402 × 874 pts.
   This ratio (402:874 ≈ 1:2.174) is the actual hardware spec and matches
   the recorded demo videos pixel-for-pixel.
   Every dimension is forced with !important + min/max bounds so the shell
   stays locked to the iPhone 17 Pro silhouette regardless of which page
   is being shown inside it (sparse Trends page vs. dense Dashboard, etc). */
.phones-showcase .phone {
  /* Width — locked to 402px */
  width:     402px !important;
  min-width: 402px !important;
  max-width: 402px !important;
  /* Height — locked to 874px */
  height:     874px !important;
  min-height: 874px !important;
  max-height: 874px !important;
  /* aspect-ratio: auto removes the 9/19.5 ratio inherited from styles.css.
     With explicit width AND height set, aspect-ratio is moot anyway. */
  aspect-ratio: auto !important;
  flex-basis: 402px !important;   /* prevent flex parent from squishing it */

  background: var(--bg-app);
  border-radius: 52px;
  border: 8px solid #1C1C1E;
  box-shadow: 0 32px 80px rgba(0,0,0,0.36), 0 0 0 1px rgba(255,255,255,0.06) inset;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink-primary);
  /* Override website's dark --bg-card inside the phone */
  --bg-card: #FFFFFF;
}

/* The scrollable page area must fill the gap between top chrome and bottom nav.
   `flex: 1 1 0` (basis 0) forces it to grow rather than collapse to content,
   which is what kept the Core phone short when it had a sparse page. */
.phones-showcase .phone-scroll {
  flex: 1 1 0 !important;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.phones-showcase .phone-scroll::-webkit-scrollbar { display: none; }

/* ── Play overlay (appears on hover when phone has a demo video) ── */
.phones-showcase .phone[data-video] {
  cursor: pointer;
}

.phone-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 44px;          /* matches phone border-radius minus border */
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
  pointer-events: none;         /* let clicks pass through to the phone div */
}

.phones-showcase .phone[data-video]:hover .phone-play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.38);
}

.phone-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: scale(0.82);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.phone-play-btn svg {
  display: block;
  margin-left: 4px;             /* optical centering for the play triangle */
}

.phones-showcase .phone[data-video]:hover .phone-play-btn {
  transform: scale(1);
}

/* Dynamic Island */
.phones-showcase .dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 28px;
  background: #1C1C1E;
  border-radius: 999px;
  z-index: 20;
}

/* ── Status bar ── */
.phones-showcase .status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-primary);
}
.phones-showcase .status-bar .icons {
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* ── Top bar ── */
.phones-showcase .top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 24px 0;
}
.phones-showcase .greeting {
  display: flex;
  align-items: center;
  gap: 12px;
}
.phones-showcase .avatar-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--avatar-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15,15,18,0.15);
  flex-shrink: 0;
}
.phones-showcase .avatar-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: white;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.phones-showcase .greeting-text .label {
  font-size: 12px;
  color: var(--ink-secondary);
  font-weight: 500;
}
.phones-showcase .greeting-text .name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-top: 1px;
}
.phones-showcase .top-actions {
  display: flex;
  gap: 8px;
}
.phones-showcase .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  position: relative;
}
.phones-showcase .icon-btn .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-card);
}

/* ── App pill ── */
.phones-showcase .app-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 24px 24px 0;
  padding: 6px 12px;
  background: var(--primary-soft);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-deep);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.phones-showcase .app-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ── Date strip ── */
.phones-showcase .date-strip {
  display: flex;
  gap: 8px;
  padding: 12px 24px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.phones-showcase .date-strip::-webkit-scrollbar { display: none; }
.phones-showcase .date-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 10px 4px;
  border-radius: var(--radius-chip);
  background: transparent;
  cursor: pointer;
}
.phones-showcase .date-pill .dow {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.phones-showcase .date-pill .num {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-top: 4px;
}
.phones-showcase .date-pill.active { background: var(--bg-pill); }
.phones-showcase .date-pill.active .dow,
.phones-showcase .date-pill.active .num { color: white; }
.phones-showcase .date-pill .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 4px;
  opacity: 0;
}
.phones-showcase .date-pill.has-data .dot { opacity: 1; }
.phones-showcase .date-pill.active .dot { background: white; opacity: 1; }

/* ── Page switching ── */
/* phone-scroll overflow handled above (overflow-y: auto) so pages scroll within
   the fixed iPhone 17 Pro frame. */
.phones-showcase .page {
  display: none;
  flex-direction: column;
  padding-bottom: 4px;
  animation: mpgIn 0.22s ease;
}
.phones-showcase .page.active { display: flex; }
@keyframes mpgIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}

/* ── Hero ring card (generic) ── */
.phones-showcase .hero-card {
  margin: 14px 14px 0;
  padding: 28px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 24px;
}
.phones-showcase .ring-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}
.phones-showcase .ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.phones-showcase .ring-track {
  fill: none;
  stroke: var(--primary-soft);
  stroke-width: 12;
}
.phones-showcase .ring-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 314;
}
.phones-showcase .ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.phones-showcase .ring-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.phones-showcase .ring-unit {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.phones-showcase .hero-info { flex: 1; }
.phones-showcase .hero-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.phones-showcase .hero-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink-primary);
  margin-top: 4px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.phones-showcase .hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.phones-showcase .hero-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-secondary);
  font-weight: 500;
}
.phones-showcase .hero-meta-row strong {
  color: var(--ink-primary);
  font-weight: 700;
}
.phones-showcase .meta-icon {
  width: 16px;
  height: 16px;
  color: var(--primary-deep);
}

/* ── Stat chip cards ── */
.phones-showcase .stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 14px 0;
}
.phones-showcase .stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.phones-showcase .stat-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.phones-showcase .stat-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phones-showcase .tint-coral  { background: #FFEDD5; color: #F97316; }
.phones-showcase .tint-rose   { background: #FFE4E6; color: #E11D48; }
.phones-showcase .tint-mint   { background: #DEF7F4; color: #14B8A6; }
.phones-showcase .tint-sky    { background: #DBEAFE; color: #2563EB; }
.phones-showcase .tint-amber  { background: #FEF3C7; color: #D97706; }
.phones-showcase .tint-violet { background: #EDE9FE; color: #7C3AED; }
.phones-showcase .tint-emerald{ background: #DCFCE7; color: #16A34A; }
.phones-showcase .tint-pink   { background: #FCE7F3; color: #DB2777; }
.phones-showcase .stat-trend {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.phones-showcase .stat-trend.up   { background: #DCFCE7; color: #16A34A; }
.phones-showcase .stat-trend.down { background: #FEE2E2; color: #DC2626; }
.phones-showcase .stat-trend.flat { background: var(--bg-soft); color: var(--ink-secondary); }
.phones-showcase .stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.phones-showcase .stat-value small {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-left: 2px;
}
.phones-showcase .stat-label {
  font-size: 12px;
  color: var(--ink-secondary);
  font-weight: 500;
  margin-top: 6px;
}

/* ── Detail card ── */
.phones-showcase .detail-card {
  margin: 12px 14px 0;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.phones-showcase .detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.phones-showcase .detail-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
}
.phones-showcase .detail-sub {
  font-size: 12px;
  color: var(--ink-secondary);
  margin-top: 2px;
}
.phones-showcase .detail-pill {
  background: var(--bg-soft);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
  white-space: nowrap;
}

/* Week bar chart */
.phones-showcase .week-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100px;
}
.phones-showcase .week-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.phones-showcase .bar-fill {
  width: 100%;
  background: var(--primary-soft);
  border-radius: 8px;
  min-height: 4px;
}
.phones-showcase .week-bar.active .bar-fill {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(15,15,18,0.12);
}
.phones-showcase .bar-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-tertiary);
}
.phones-showcase .week-bar.active .bar-label { color: var(--ink-primary); }

/* Sleep stages bar */
.phones-showcase .stages-bar {
  display: flex;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.phones-showcase .stage-deep  { background: #5B3FCC; }
.phones-showcase .stage-rem   { background: #7B61FF; }
.phones-showcase .stage-light { background: #BCAFFF; }
.phones-showcase .stage-awake { background: #E5DEFF; }
.phones-showcase .stages-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.phones-showcase .stages-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-secondary);
}
.phones-showcase .stages-legend-item .swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.phones-showcase .stages-legend-item strong {
  color: var(--ink-primary);
  font-weight: 700;
}

/* Macro bars */
.phones-showcase .macro-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phones-showcase .macro-item .macro-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.phones-showcase .macro-item .macro-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
}
.phones-showcase .macro-item .macro-vals {
  font-size: 12px;
  color: var(--ink-secondary);
  font-weight: 500;
}
.phones-showcase .macro-item .macro-vals strong {
  color: var(--ink-primary);
  font-weight: 700;
  font-size: 14px;
}
.phones-showcase .macro-track {
  height: 8px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.phones-showcase .macro-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}

/* Vitals list */
.phones-showcase .vital-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phones-showcase .vital-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.phones-showcase .vital-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phones-showcase .vital-info { flex: 1; }
.phones-showcase .vital-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
}
.phones-showcase .vital-sub {
  font-size: 11px;
  color: var(--ink-secondary);
  margin-top: 2px;
}
.phones-showcase .vital-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
  text-align: right;
}
.phones-showcase .vital-value small {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-left: 2px;
}

/* ── Bottom nav ── */
.phones-showcase .nav {
  /* Override website's fixed nav positioning */
  position: static !important;
  margin: 16px 14px 24px;
  padding: 8px;
  background: var(--bg-pill);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: var(--shadow-elev);
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  z-index: 1 !important;
  border: none !important;
  backdrop-filter: none !important;
}
.phones-showcase .nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s ease;
}
.phones-showcase .nav-btn.active {
  background: var(--primary);
  color: white;
}
.phones-showcase .nav-btn svg {
  width: 22px;
  height: 22px;
}
.phones-showcase .nav-btn span {
  font-size: 10px;
  font-weight: 600;
}
.phones-showcase .nav-btn:not(.active) span { display: none; }

/* ============================================================
   PER-APP HERO CARD VARIANTS
   ============================================================ */

/* CORE — Clinical: 2×2 mini grid + ECG wave */
.phones-showcase .hero-card-core {
  margin: 14px 14px 0;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.phones-showcase .hero-core-body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 22px 16px;
}
.phones-showcase .hero-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}
.phones-showcase .hero-mini-cell {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 8px 10px;
}
.phones-showcase .hmc-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-tertiary);
  margin-bottom: 3px;
}
.phones-showcase .hmc-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.phones-showcase .hmc-unit {
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-left: 1px;
}
.phones-showcase .ecg-strip {
  padding: 0 22px 16px;
  height: 36px;
  overflow: hidden;
}
.phones-showcase .ecg-strip svg { width: 100%; height: 100%; }

/* MOTION — Energetic: gradient banner + blue hero */
.phones-showcase .hero-card-motion {
  margin: 14px 14px 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  background: var(--bg-card);
}
.phones-showcase .motion-banner {
  padding: 11px 20px;
  background: linear-gradient(120deg, var(--primary-deep), var(--primary));
  display: flex;
  align-items: center;
  gap: 10px;
}
.phones-showcase .motion-banner-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phones-showcase .motion-banner-icon svg {
  width: 15px;
  height: 15px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.phones-showcase .motion-banner-label {
  font-size: 12px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 1;
}
.phones-showcase .motion-banner-badge {
  padding: 3px 10px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  color: white;
}
.phones-showcase .motion-hero-body {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px 22px;
  background: linear-gradient(150deg, #DDE4FF 0%, #fff 65%);
}

/* SOMNA — Minimal: vertical/centered ring */
.phones-showcase .hero-card-somna {
  margin: 14px 14px 0;
  padding: 22px 28px 18px;
  background: linear-gradient(180deg, var(--primary-soft) 0%, #fff 68%);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.phones-showcase .hero-card-somna .hero-label { margin-bottom: 10px; }
.phones-showcase .hero-card-somna .hero-title { margin-top: 10px; font-size: 20px; }
.phones-showcase .somna-time-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
}
.phones-showcase .somna-time-chip {
  flex: 1;
  background: var(--primary-soft);
  border-radius: 14px;
  padding: 8px 10px;
  text-align: center;
}
.phones-showcase .stc-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
  opacity: 0.7;
}
.phones-showcase .stc-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.02em;
}

/* NOURISH — Macro donut: conic-gradient ring */
.phones-showcase .macro-donut {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(
    #22C55E 0deg 92deg,
    #F97316 92deg 238deg,
    #FACC15 238deg 358deg,
    #E5E7EB 358deg 360deg
  );
  position: relative;
  flex-shrink: 0;
}
.phones-showcase .macro-donut-hole {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.phones-showcase .macro-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}
.phones-showcase .ml-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-secondary);
  font-weight: 500;
}
.phones-showcase .ml-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.phones-showcase .ml-item strong {
  font-weight: 700;
  color: var(--ink-primary);
  margin-left: auto;
  padding-left: 8px;
}

/* ============================================================
   PAGE 2 — DOMAIN DETAIL SCREENS
   ============================================================ */

/* Core — biometric tiles */
.phones-showcase .bm-section {
  padding: 14px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phones-showcase .bm-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
  padding: 0 2px;
}
.phones-showcase .bm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.phones-showcase .bm-tile {
  background: var(--bg-card);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.phones-showcase .bm-tile-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.phones-showcase .bm-tile-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phones-showcase .bm-tile-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
}
.phones-showcase .bm-tile-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.phones-showcase .bm-tile-unit {
  font-size: 11px;
  color: var(--ink-secondary);
  font-weight: 600;
  margin-left: 2px;
}
.phones-showcase .bm-tile-sub {
  font-size: 11px;
  color: var(--ink-tertiary);
  margin-top: 5px;
  font-weight: 500;
}
.phones-showcase .bm-good { color: #16A34A !important; }

/* Motion — active workout */
.phones-showcase .wk-header {
  margin: 14px 14px 0;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: 0 8px 24px rgba(61,90,254,0.22);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.phones-showcase .wk-timer-col .wk-lbl {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.phones-showcase .wk-timer-val {
  font-size: 38px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1;
}
.phones-showcase .wk-timer-sub {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin-top: 3px;
}
.phones-showcase .wk-stats-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.phones-showcase .wk-stat { text-align: right; }
.phones-showcase .wk-stat-val { font-size: 20px; font-weight: 800; color: white; line-height: 1; }
.phones-showcase .wk-stat-lbl { font-size: 9px; color: rgba(255,255,255,0.55); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.phones-showcase .ex-card {
  margin: 10px 14px 0;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.phones-showcase .ex-card-title {
  padding: 14px 18px 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
  border-bottom: 1px solid var(--bg-divider);
}
.phones-showcase .ex-list { padding: 10px 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.phones-showcase .ex-row { display: flex; align-items: center; gap: 12px; }
.phones-showcase .ex-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary-deep);
}
.phones-showcase .ex-num.done { background: var(--primary); color: white; }
.phones-showcase .ex-info { flex: 1; }
.phones-showcase .ex-name { font-size: 13px; font-weight: 600; color: var(--ink-primary); }
.phones-showcase .ex-sets { font-size: 11px; color: var(--ink-secondary); margin-top: 2px; }
.phones-showcase .ex-dots { display: flex; gap: 4px; }
.phones-showcase .sdot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--primary-soft); }
.phones-showcase .sdot.done { background: var(--primary); border-color: var(--primary); }

/* Somna — sleep detail */
.phones-showcase .sleep-detail-card {
  margin: 10px 14px 0;
  padding: 18px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.phones-showcase .sdc-title { font-size: 14px; font-weight: 700; color: var(--ink-primary); margin-bottom: 3px; }
.phones-showcase .sdc-sub { font-size: 11px; color: var(--ink-secondary); margin-bottom: 14px; }
.phones-showcase .sleep-tl-labels {
  display: flex; justify-content: space-between;
  font-size: 9px; font-weight: 600; color: var(--ink-tertiary);
  text-transform: uppercase; margin-bottom: 6px;
}
.phones-showcase .sleep-tl-bar { height: 36px; border-radius: 8px; overflow: hidden; display: flex; }
.phones-showcase .sleep-quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.phones-showcase .sq-item { display: flex; align-items: center; gap: 6px; }
.phones-showcase .sq-swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.phones-showcase .sq-label { font-size: 11px; color: var(--ink-secondary); font-weight: 500; flex: 1; }
.phones-showcase .sq-val { font-size: 12px; font-weight: 700; color: var(--ink-primary); }

.phones-showcase .cbt-card {
  margin: 10px 14px 0;
  background: var(--primary-soft);
  border-radius: var(--radius-card);
  padding: 16px 18px;
}
.phones-showcase .cbt-card-title {
  font-size: 12px; font-weight: 800; color: var(--primary-deep);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.phones-showcase .cbt-card-title svg { width: 14px; height: 14px; stroke: var(--primary-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phones-showcase .cbt-text { font-size: 13px; color: var(--ink-secondary); line-height: 1.45; margin-bottom: 12px; }
.phones-showcase .cbt-text strong { color: var(--primary-deep); font-weight: 700; }
.phones-showcase .cbt-window { display: flex; gap: 10px; }
.phones-showcase .cbt-time-chip { flex: 1; background: white; border-radius: 14px; padding: 10px 12px; text-align: center; }
.phones-showcase .ctc-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-secondary); }
.phones-showcase .ctc-val { font-size: 20px; font-weight: 800; color: var(--primary-deep); letter-spacing: -0.02em; margin-top: 2px; }

/* Nourish — meal log */
.phones-showcase .meal-log { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 10px; }
.phones-showcase .meal-group { background: var(--bg-card); border-radius: 22px; box-shadow: var(--shadow-card); overflow: hidden; }
.phones-showcase .meal-group-hd {
  padding: 11px 16px;
  border-bottom: 1px solid var(--bg-divider);
  display: flex; align-items: center; justify-content: space-between;
}
.phones-showcase .meal-group-name { font-size: 13px; font-weight: 700; color: var(--ink-primary); display: flex; align-items: center; gap: 8px; }
.phones-showcase .meal-emoji { font-size: 16px; line-height: 1; }
.phones-showcase .meal-group-meta { font-size: 12px; font-weight: 700; color: var(--primary); }
.phones-showcase .meal-items { padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 7px; }
.phones-showcase .meal-item-row { display: flex; align-items: center; justify-content: space-between; }
.phones-showcase .mi-name { font-size: 13px; color: var(--ink-primary); font-weight: 500; }
.phones-showcase .mi-cal { font-size: 12px; color: var(--ink-secondary); font-weight: 600; }

/* Analytics section (page 3) */
.phones-showcase .analytics-section { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 10px; }
.phones-showcase .analytics-chart { background: var(--bg-card); border-radius: var(--radius-card); padding: 18px 20px; box-shadow: var(--shadow-card); }
.phones-showcase .ac-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.phones-showcase .ac-title { font-size: 14px; font-weight: 700; color: var(--ink-primary); }
.phones-showcase .ac-sub { font-size: 12px; color: var(--ink-secondary); }
.phones-showcase .ac-sub strong { color: var(--primary); font-weight: 700; }
.phones-showcase .insight-card {
  background: var(--primary-soft);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.phones-showcase .insight-icon {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.phones-showcase .insight-icon svg {
  width: 16px; height: 16px; stroke: white;
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.phones-showcase .insight-title { font-size: 13px; font-weight: 700; color: var(--primary-deep); margin-bottom: 4px; }
.phones-showcase .insight-text { font-size: 12px; color: var(--ink-secondary); line-height: 1.4; }
.phones-showcase .insight-text strong { color: var(--ink-primary); font-weight: 700; }

/* Log page (page 3) */
.phones-showcase .log-page { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 10px; }
.phones-showcase .log-card { background: var(--bg-card); border-radius: var(--radius-card); padding: 18px 20px; box-shadow: var(--shadow-card); }
.phones-showcase .log-card-title { font-size: 14px; font-weight: 700; color: var(--ink-primary); margin-bottom: 14px; }
.phones-showcase .log-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.phones-showcase .log-field:last-child { margin-bottom: 0; }
.phones-showcase .log-field-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-secondary); }
.phones-showcase .log-field-input { background: var(--bg-soft); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--ink-primary); }
.phones-showcase .log-field-input.placeholder { color: var(--ink-tertiary); font-weight: 500; }
.phones-showcase .log-action-row { display: flex; gap: 10px; }
.phones-showcase .log-btn { flex: 1; border-radius: var(--radius-pill); padding: 13px; text-align: center; font-size: 14px; font-weight: 700; cursor: pointer; }
.phones-showcase .log-btn.primary { background: var(--primary); color: white; }
.phones-showcase .log-btn.secondary { background: var(--bg-soft); color: var(--ink-primary); }

/* Profile page (page 4) */
.phones-showcase .profile-page { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 10px; }
.phones-showcase .profile-card { background: var(--bg-card); border-radius: var(--radius-card); padding: 20px; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 16px; }
.phones-showcase .profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--avatar-grad);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.phones-showcase .profile-avatar svg { width: 26px; height: 26px; fill: none; stroke: white; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.phones-showcase .profile-info { flex: 1; }
.phones-showcase .profile-name { font-size: 17px; font-weight: 800; color: var(--ink-primary); }
.phones-showcase .profile-sub { font-size: 12px; color: var(--ink-secondary); margin-top: 2px; }
.phones-showcase .profile-badge { padding: 6px 14px; background: var(--primary-soft); border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; color: var(--primary-deep); white-space: nowrap; }
.phones-showcase .settings-group { background: var(--bg-card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.phones-showcase .settings-row { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--bg-divider); }
.phones-showcase .settings-row:last-child { border-bottom: none; }
.phones-showcase .sr-label { font-size: 14px; font-weight: 600; color: var(--ink-primary); }
.phones-showcase .sr-value { font-size: 13px; color: var(--ink-secondary); font-weight: 500; }
.phones-showcase .sr-toggle { width: 38px; height: 22px; border-radius: 11px; background: var(--primary); position: relative; }
.phones-showcase .sr-toggle::after { content: ''; position: absolute; top: 3px; right: 4px; width: 16px; height: 16px; border-radius: 50%; background: white; }

/* ── Responsive ── */
@media (max-width: 1400px) {
  .pw { zoom: 0.68; }
}
@media (max-width: 1100px) {
  .pw { zoom: 0.58; }
  .scroll-hint { display: block; }
}
@media (max-width: 768px) {
  .phones-showcase { flex-wrap: wrap; width: auto; justify-content: center; }
  .pw { zoom: 0.72; }
}
