:root {
  color-scheme: dark;
}

html {
  scroll-padding-top: 4rem;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

summary::-webkit-details-marker { display: none; }
summary { list-style: none; }

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

pre {
  tab-size: 2;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0F0F23; }
::-webkit-scrollbar-thumb { background: #22224A; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #2d2d5c; }

/* ---- Phone mockup ---- */
.phone {
  position: relative;
  aspect-ratio: 9 / 19.5;
  background: #0b0b18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(99, 102, 241, 0.08);
  transition: transform 0.3s ease;
}
.phone--sm { border-radius: 34px; padding: 9px; }
.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #000;
  border-radius: 13px;
  z-index: 2;
}
.phone--sm::before {
  top: 14px;
  width: 74px;
  height: 20px;
  border-radius: 10px;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(99, 102, 241, 0.45), transparent 60%),
    linear-gradient(180deg, #1A1A35 0%, #0F0F23 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8B8BA7;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  text-align: center;
}
.phone--sm .phone-screen { border-radius: 26px; }
.phone-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phone-placeholder {
  padding: 24px;
  line-height: 1.5;
  opacity: 0.7;
}
.phone-placeholder .mark {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.phone-placeholder .mark .accent { color: #6366F1; }

/* ---- Store badges ---- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  min-width: 170px;
}
.store-badge:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}
.store-badge svg { flex-shrink: 0; }
.store-badge .tiny {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 3px;
}
.store-badge .big {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
