/* =========================================================
   Install page: the PWA section and its step list, plus the
   video fallback inside the phone's screen. The phone itself is
   css/iphone-device.css, shared with the product pages.

   Standalone like atmosphere.css and splash-cube.css: only
   install.html links it.
   ========================================================= */

/* ---------- PWA section shell ---------- */
.pwa-section {
  border-radius: var(--radius-l);
  margin-inline: var(--gutter);
  padding: clamp(44px, 7vw, 92px) clamp(26px, 6vw, 76px);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  background:
    radial-gradient(40rem 30rem at 85% 0%, rgba(131,11,238,0.12), transparent 65%),
    linear-gradient(160deg, #170d28, #0a0613);
  overflow: hidden;
}
.pwa-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 940px) { .pwa-grid { grid-template-columns: 1fr; } }
/* The panel already sits inside .container's gutter; on a phone a second
   gutter as margin plus the panel's own padding left a text column barely
   250px wide. One gutter, modest padding. */
@media (max-width: 600px) {
  .pwa-section { margin-inline: 0; padding: 32px 22px; border-radius: var(--radius-l); }
}

/* ---------- Step list ---------- */
.pwa-steps {
  margin-top: 22px;
  counter-reset: step;
  display: flex;
  flex-direction: column;
}
.pwa-step {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 7px;
  border-bottom: 1px solid rgba(173,79,255,0.10);
}
.pwa-step:last-child { border-bottom: none; }
.pwa-step { transition: background var(--dur-s) var(--ease); border-radius: 10px; padding-inline: 8px; margin-inline: -8px; }
.pwa-step:hover { background: var(--hover-fill); }
.pwa-step:hover::before { background: var(--am-500); color: #fff; border-color: var(--am-300); }
.pwa-step::before {
  content: counter(step);
  flex-shrink: 0;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: #22103a;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--am-300);
  transition: background var(--dur-s) var(--ease), color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
}
.pwa-step-text { font-size: 0.92rem; color: var(--text-soft); line-height: 1.3; }

/* ---------- iPhone ----------
   The install demo now plays in the same 3D iPhone as the product pages
   (css/iphone-device.css, linked by install.html). What stays here is the
   fallback shown in its screen if the recording cannot load. */
.iphone-play-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
}
.iphone-play {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25103f;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
}
.iphone-play svg { width: 16px; height: 16px; fill: var(--am-100); margin-inline-start: 3px; }
.iphone-play-wrap:hover .iphone-play { background: var(--hover-fill); border-color: var(--am-300); }
