:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  color: #f5f5f7;
  background: #000;
  font-synthesis: none;
  --canvas: #000;
  --surface: #0f1013;
  --surface-raised: #191b20;
  --line: #292c33;
  --ink: #f5f5f7;
  --muted: #8c9099;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: var(--canvas); }
body { min-width: 320px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body::before {
  position: fixed;
  top: -290px;
  left: 50%;
  width: 560px;
  height: 560px;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .055);
  filter: blur(100px);
  content: "";
  transform: translateX(-50%);
}

.install-page {
  position: relative;
  display: flex;
  width: min(520px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(28px, calc(env(safe-area-inset-top) + 10px)) 18px max(34px, env(safe-area-inset-bottom));
  flex-direction: column;
}

.install-brand strong { font-size: 18px; font-weight: 650; letter-spacing: -.04em; }
.invite-source { display: flex; min-height: 54px; align-items: center; gap: 11px; margin-top: 34px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--muted); font-size: 12px; }
.invite-source[hidden] { display: none; }
.invite-source img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; background: var(--surface-raised); }
.invite-source strong { color: var(--ink); font-weight: 600; }
.invite-source:not([hidden]) + .guide-panel { margin-top: 28px; }

.guide-panel {
  margin-top: clamp(76px, 15vh, 126px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .46);
  animation: rise-in .5s .08s cubic-bezier(.16, 1, .3, 1) both;
}
.guide-panel ol { margin: 0; padding: 0 17px; list-style: none; }
.guide-panel li {
  display: grid;
  min-height: 78px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #23262c;
}
.guide-panel li:last-child { border-bottom: 0; }
.step-copy { min-width: 0; }
.step-copy { display: grid; gap: 4px; }
.step-copy strong { font-size: 15px; font-weight: 550; letter-spacing: -.018em; }
.step-copy span { color: var(--muted); font-size: 11px; }
.step-symbol { display: grid; width: 50px; height: 50px; place-items: center; color: var(--ink); }
.step-symbol svg { width: 36px; height: 36px; }
.safari-symbol svg { width: 40px; height: 40px; }
.step-symbol--disc, .step-symbol--tile { border-radius: 15px; background: var(--surface-raised); }
.step-symbol--tile svg { width: 34px; height: 34px; }
.ios-add { min-width: 94px; padding: 10px 14px; border-radius: 11px; color: #050506; background: var(--ink); font-size: 13px; font-weight: 600; text-align: center; }

@keyframes rise-in { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }

@media (max-height: 700px) {
  .guide-panel { margin-top: 46px; }
  .guide-panel li { min-height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
