/* Shared landing and article phone preview. */
.hero-phone-shell {
  position: relative; width: 280px; height: 570px; margin: 0 auto; padding: 6px;
  border-radius: 44px; background: #121417;
  box-shadow: 0 0 0 1px #484e58, 0 0 0 3.5px #22262c, 0 0 0 4.5px #15181c, 0 25px 60px -10px #00000045, 0 0 40px #ff57222e;
}
.hero-phone-volume, .hero-phone-power { position: absolute; width: 3px; background: #353941; }
.hero-phone-volume { left: -7px; top: 110px; height: 34px; border-radius: 2px 0 0 2px; box-shadow: 0 42px #353941; }
.hero-phone-power { right: -7px; top: 128px; height: 48px; border-radius: 0 2px 2px 0; }
.hero-phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 38px;
  overflow: hidden; color: #fff; border: 1px solid #0009;
  background: radial-gradient(circle at 50% 25%, #ff5722 0%, #a82700 45%, #180903 80%, #090a0d 100%);
}
.hero-phone-status { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 0; font-size: 11px; font-weight: 600; user-select: none; }
.hero-phone-camera { position: absolute; left: calc(50% - 7px); top: 10px; width: 14px; height: 14px; border: 4px solid #0a0a0c; border-radius: 50%; background: #02182b; box-shadow: 0 0 0 1px #1c1f24; }
.hero-phone-signal { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; }
.hero-phone-signal svg { width: 14px; height: 12px; }
.hero-phone-battery { position: relative; width: 19px; height: 10px; padding: 1px; border: 1px solid #fffc; border-radius: 3px; background: #fff; background-clip: content-box; }
.hero-phone-battery::after { content: ''; position: absolute; width: 1px; height: 4px; right: -3px; top: 2px; background: #fff9; }
.hero-phone-lockscreen { padding-top: 40px; text-align: center; user-select: none; }
.hero-phone-lock { display: grid; place-items: center; width: 29px; height: 29px; margin: 0 auto 5px; border-radius: 50%; border: 1px solid #ffffff1a; background: #0006; color: #fffc; }
.hero-phone-lock svg { width: 14px; height: 14px; }
.hero-phone-clock { font: 700 48px/1 var(--font-body); letter-spacing: -.045em; text-shadow: 0 4px 18px #0003; }
.hero-phone-date { margin-top: 8px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: #fed7aa; }
.hero-phone-notification { margin: 16px 10px 0; padding: 12px; border: 1px solid #fff3; border-radius: 16px; background: #00000059; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 15px 30px #0002; }
.hero-phone-app { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: #fffc; font: 700 10px/1 var(--font-heading); letter-spacing: .06em; text-transform: uppercase; }
.hero-phone-app-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(135deg,#ff7844,#e63f08); box-shadow: 0 0 0 1px #fff3; }
.hero-phone-app-icon svg { width: 14px; height: 14px; }
.hero-phone-live { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 4px 6px; border-radius: 99px; background: #10b98126; border: 1px solid #34d3994d; color: #6ee7b7; font: 700 8px/1 var(--font-body); letter-spacing: 0; white-space: nowrap; }
.hero-phone-live i { width: 5px; height: 5px; border-radius: 50%; background: #34d399; }
.hero-phone-message { text-align: left; margin-bottom: 10px; }
.hero-phone-message strong { font: 800 13.5px/1.3 var(--font-heading); letter-spacing: -.025em; }
.hero-phone-message p { margin-top: 2px; font-size: 10px; line-height: 1.3; color: #ffffffb3; }
.hero-phone-test { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 36px; padding: 8px; border: 0; border-radius: 11px; background: #fff; color: #09090b; font: 800 10.5px/1.3 var(--font-heading); cursor: pointer; box-shadow: 0 3px 6px #0002; }
.hero-phone-test:hover { background: #f4f4f5; }
@keyframes hero-phone-test-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 3px 6px #0002, 0 0 0 0 #ffffff00; }
  50% { transform: scale(1.035); box-shadow: 0 5px 14px #0003, 0 0 0 6px #ffffff26; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-phone-test { animation: hero-phone-test-pulse 2s ease-in-out infinite; }
}
.hero-phone-test-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: #ff4d15; }
.hero-phone-test-dot, .hero-phone-live i { animation: hero-status-blink 1.5s ease-in-out infinite; }
@keyframes hero-status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-phone-test-dot, .hero-phone-live i { animation: none; }
}
.hero-phone-controls { position: absolute; bottom: 24px; left: 20px; right: 20px; display: flex; align-items: center; justify-content: space-between; color: #ffffffb3; }
.hero-phone-shortcut { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ffffff26; background: #0006; }
.hero-phone-shortcut svg { width: 16px; height: 16px; }
.hero-phone-swipe { display: grid; justify-items: center; align-content: center; min-height: 44px; padding: 4px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 9px; text-transform: uppercase; cursor: pointer; }
.hero-phone-swipe:hover { color: #fff; }
.hero-phone-swipe:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-phone-swipe svg { width: 12px; height: 12px; }
.hero-phone-gesture { position: absolute; bottom: 10px; left: calc(50% - 48px); width: 96px; height: 4px; border-radius: 4px; background: #ffffffb3; }
@media (max-width: 1023px) {
  .hero-phone-shell { width: 252px; height: 510px; padding: 5px; border-radius: 40px; }
  .hero-phone-screen { border-radius: 35px; }
  .hero-phone-volume { top: 95px; height: 30px; box-shadow: 0 39px #353941; }
  .hero-phone-power { top: 112px; height: 40px; }
  .hero-phone-status { padding: 8px 14px 0; }
  .hero-phone-lockscreen { padding-top: 32px; }
  .hero-phone-clock { font-size: 42px; }
  .hero-phone-date { font-size: 10px; }
  .hero-phone-notification { margin-top: 14px; padding: 10px; }
  .hero-phone-app { gap: 6px; font-size: 9px; margin-bottom: 8px; }
  .hero-phone-app-icon { width: 20px; height: 20px; border-radius: 6px; }
  .hero-phone-app-icon svg { width: 12px; height: 12px; }
  .hero-phone-live-desktop { display: none; }
  .hero-phone-message strong { font-size: 12px; }
  .hero-phone-message p { font-size: 9.5px; }
  .hero-phone-test { min-height: 44px; font-size: 10px; }
  .hero-phone-shortcut { width: 32px; height: 32px; }
  .hero-phone-swipe { font-size: 8px; }
  .hero-phone-gesture { width: 80px; left: calc(50% - 40px); }
}

/* Compact embedding keeps the same preview and a 44px minimum test target. */
.phone-preview-compact .hero-phone-shell{width:280px;height:570px;padding:6px;border-radius:44px;zoom:var(--phone-preview-scale,.51)}
.phone-preview-compact .hero-phone-notification{margin:16px 8px 0;padding:12px}
.phone-preview-compact .hero-phone-lockscreen{padding-top:40px}
.phone-preview-compact .hero-phone-clock{font-size:48px}
.phone-preview-compact .hero-phone-app{font-size:13px;letter-spacing:0}
.phone-preview-compact .hero-phone-live{font-size:12px}
.phone-preview-compact .hero-phone-live-desktop{display:none}
.phone-preview-compact .hero-phone-message strong{font-size:18px}
.phone-preview-compact .hero-phone-message p{font-size:15px}
.phone-preview-compact .hero-phone-test{min-height:calc(44px / var(--phone-preview-scale,.51));padding:10px 4px;font-size:18px;gap:5px}
