/* LogiOS phone mockup: flagship-style CSS frame + storyboard screen. No inline styles (CSP). */
.phone-intro { padding: 72px 0; }
.phone-intro-grid { display: grid; gap: 40px; align-items: center; justify-items: center; }
.phone-intro-copy { text-align: left; width: 100%; }
.phone-intro-copy h2 { margin-bottom: 14px; }
.phone-intro-copy .btn { margin-top: 8px; }
.phone-intro-mods { list-style: none; margin: 18px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.phone-intro-mods li { border: 1px solid rgba(92, 240, 222, 0.4); color: var(--teal); border-radius: 999px; padding: 4px 14px; font-weight: 650; font-size: 0.95rem; }
.phone-intro-price { margin: 12px 0 4px; }

.phone-wrap { position: relative; display: grid; place-items: center; padding: 34px 0 50px; width: 100%; perspective: 1400px; }
/* teal aura */
.phone-wrap::before {
  content: ""; position: absolute; inset: 2% 6% 8%;
  background: radial-gradient(closest-side, rgba(92, 240, 222, 0.34), rgba(92, 240, 222, 0.09) 62%, transparent 100%);
  filter: blur(22px); pointer-events: none;
}
/* contact shadow on the "floor" */
.phone-wrap::after {
  content: ""; position: absolute; bottom: 14px; left: 50%; width: 62%; max-width: 230px; height: 26px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent);
  filter: blur(6px); pointer-events: none;
}
.phone-carousel { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

.phone {
  --phone-w: 270px;
  position: relative; width: var(--phone-w);
  padding: 3.5px; border-radius: 44px;
  /* brushed metal edge */
  background:
    linear-gradient(135deg, #f4fbfa 0%, #9fb2b1 14%, #3b4a4c 32%, #121b1c 50%, #3a494b 68%, #aebfbd 86%, #e9f4f2 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.9),
    0 0 0 2px rgba(92, 240, 222, 0.20),
    0 0 50px rgba(92, 240, 222, 0.24),
    0 18px 30px -8px rgba(0, 0, 0, 0.6),
    0 50px 70px -24px rgba(0, 0, 0, 0.85),
    inset 0 0 2px 1px rgba(255, 255, 255, 0.55);
  transform: rotateY(-7deg) rotateX(2deg);
  transform-style: preserve-3d;
  animation: phone-float 8s ease-in-out infinite;
}
.phone-body {
  position: relative; padding: 6px; border-radius: 40.5px;
  background: linear-gradient(160deg, #1b2527, #040708 45%, #101819);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 2px 6px rgba(0, 0, 0, 0.9);
}
/* hardware keys */
.phone-key { position: absolute; right: -4px; width: 4px; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #26383a, #9fb2b1 55%, #4a5c5e); box-shadow: 1px 0 2px rgba(0, 0, 0, 0.6); }
.phone-key-power { top: 27%; height: 52px; }
.phone-key-vol { top: 37%; height: 84px; }

.phone-screen {
  position: relative; overflow: hidden; border-radius: 34.5px; isolation: isolate;
  aspect-ratio: 1080 / 2400; background: #071112;
  box-shadow: 0 0 0 1px #000;
}
/* glass: diagonal reflection + top-edge light + gentle moving sheen */
.phone-screen::before {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 22%, transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 12%),
    linear-gradient(295deg, rgba(92, 240, 222, 0.10), transparent 30%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 0 22px rgba(0, 0, 0, 0.35);
}
.phone-screen::after {
  content: ""; position: absolute; top: -20%; left: -60%; width: 40%; height: 140%; z-index: 6; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.10), transparent);
  transform: skewX(-18deg); animation: phone-sheen 9s ease-in-out infinite;
}
/* punch-hole camera */
.phone-body::after {
  content: ""; position: absolute; top: calc(6px + 2.6%); left: 50%; width: 3.9%; aspect-ratio: 1; margin-left: -1.95%; z-index: 7; border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #3a5a63 0 8%, #0b1417 22%, #020405 62%);
  box-shadow: 0 0 0 1.5px #000, inset 0 0 3px rgba(80, 160, 190, 0.5);
  pointer-events: none;
}
picture { display: contents; }
.phone-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0s linear 0.7s; z-index: 1; }
.phone-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 2; }

/* tap indicator */
.phone-tap { position: absolute; z-index: 4; width: 17%; aspect-ratio: 1; margin: -8.5% 0 0 -8.5%; border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(0.5); }
.phone-tap::before { content: ""; position: absolute; inset: 31%; border-radius: 50%; background: rgba(255, 255, 255, 0.92); box-shadow: 0 0 14px 3px rgba(92, 240, 222, 0.8); }
.phone-tap::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #5CF0DE; background: rgba(92, 240, 222, 0.18); }
.phone-tap.is-on { animation: phone-tap 1.5s ease-out 1 forwards; }

/* caption strip: the reserved guide area. Logi rides in the slot on the left, her words are the caption. */
.phone-guidebar { position: absolute; z-index: 5; left: 5%; right: 5%; bottom: 4.5%; display: flex; align-items: center; pointer-events: none; }
.phone-guide-slot { position: relative; flex: none; width: 0; height: 44px; margin-right: 0; transition: width 0.7s cubic-bezier(0.3, 0.7, 0.2, 1), margin-right 0.7s cubic-bezier(0.3, 0.7, 0.2, 1); }
.has-guide .phone-guide-slot { width: 44px; margin-right: 6px; }
.phone-cap {
  position: relative; flex: 1; min-width: 0; padding: 9px 12px 10px; border-radius: 16px; pointer-events: none;
  background: rgba(7, 17, 18, 0.78); border: 1px solid rgba(92, 240, 222, 0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  text-align: left; opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}
.phone-cap.is-on { opacity: 1; transform: none; }
.phone-cap-step { display: block; color: #5CF0DE; font-weight: 700; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.phone-cap-text { display: block; color: #f3f7f6; font-size: 0.82rem; line-height: 1.3; font-weight: 600; }

/* step progress */
.phone-controls { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; width: min(300px, 92vw); }
.phone-step { flex: 1; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.phone-step::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 4px; background: rgba(92, 240, 222, 0.25); }
.phone-step-fill { position: absolute; left: 0; top: 9px; height: 4px; width: 0; border-radius: 4px; background: #5CF0DE; }
.phone-step.is-done .phone-step-fill { width: 100%; }
.phone-step.is-running .phone-step-fill { width: 100%; animation: phone-fill var(--dur, 4.5s) linear 1 forwards; }
.phone-step.is-static[aria-current="true"] .phone-step-fill { width: 100%; }
.phone-controls.is-paused .phone-step.is-running .phone-step-fill { animation-play-state: paused; }
.phone-step:focus-visible, .phone-pause:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.phone-pause { margin-left: 6px; background: transparent; color: var(--teal); border: 1px solid rgba(92, 240, 222, 0.5); border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 0.85rem; cursor: pointer; }
.phone-pause[hidden] { display: none; }

@keyframes phone-float {
  0%, 100% { transform: rotateY(-7deg) rotateX(2deg) translateY(0); }
  50% { transform: rotateY(-4deg) rotateX(1deg) translateY(-10px); }
}
@keyframes phone-sheen { 0%, 60% { left: -60%; opacity: 0; } 70% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
@keyframes phone-tap { 0% { opacity: 0; transform: scale(0.5); } 18% { opacity: 1; transform: scale(1); } 55% { opacity: 1; transform: scale(0.82); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes phone-fill { from { width: 0; } to { width: 100%; } }

@media (min-width: 900px) {
  .phone-intro { padding: 96px 0; }
  .phone-intro-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; justify-items: stretch; }
  .phone-wrap { justify-self: center; }
  .phone { --phone-w: 300px; }
  .phone-cap-text { font-size: 0.88rem; }
}
@media (max-width: 899px) {
  .phone-intro-copy { max-width: 38rem; }
  .phone { transform: none; animation-name: phone-float-flat; }
}
@keyframes phone-float-flat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .phone { animation: none; transform: none; }
  .phone-screen::after { display: none; }
  .phone-slide, .phone-cap, .phone-guide-slot { transition: none; }
  .phone-tap.is-on { animation: none; opacity: 1; transform: none; }
  .phone-step.is-running .phone-step-fill { animation: none; width: 100%; }
}
