:root {
  --bg: #09090b;
  --surface: #18181b;
  --border: rgb(255 255 255 / 0.1);
  --text: #fafafa;
  --muted: #a1a1aa;
  --accent: #3b82f6;
  --accent-text: #ffffff;
  --glow-a: rgb(37 99 235 / 0.3);
  --glow-b: rgb(234 179 8 / 0.12);
  --radius: 14px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --surface: #ffffff;
    --border: rgb(0 0 0 / 0.1);
    --text: #09090b;
    --muted: #52525b;
    --accent: #2563eb;
    --glow-a: rgb(37 99 235 / 0.14);
    --glow-b: rgb(234 179 8 / 0.12);
    color-scheme: light;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 15% -10%, var(--glow-a), transparent 60%),
    radial-gradient(900px 500px at 100% 40%, var(--glow-b), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1.25rem;
  text-align: center;
}

main > section {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: 56px 0;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.top nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
}

.top nav a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .top nav a:not(:last-child) {
    display: none;
  }
}

/* Hero */

.hero {
  text-align: center;
  padding-top: 72px;
}

.hero-logo {
  margin: 0 auto 20px;
  border-radius: 26px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.35);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0;
}

.lede {
  max-width: 640px;
  margin: 16px auto 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
  scroll-margin-top: 96px;
}

.store {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.store strong {
  font-size: 1.05rem;
}

.store span {
  color: var(--muted);
  font-size: 0.85rem;
}

a.store:hover,
a.store:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

a.store:first-child {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

a.store:first-child span {
  color: color-mix(in srgb, var(--accent-text) 80%, transparent);
}

.store.soon {
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .store {
    transition: none;
  }

  a.store:hover,
  a.store:focus-visible {
    transform: none;
  }
}

.meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Trailer */

.trailer video {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.35);
}

/* Why */

.why p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
  font-size: 1.1rem;
}

/* Features */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid li {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.grid h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.grid p {
  margin: 0;
  color: var(--muted);
}

/* Screenshots */

figure {
  margin: 0;
}

figure img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.popups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.popups figure {
  max-width: 399px;
  width: 100%;
  justify-self: center;
}

/* Steps */

.steps ol {
  max-width: 640px;
  margin: 0 auto;
  padding-left: 1.4em;
  font-size: 1.05rem;
}

.steps li + li {
  margin-top: 8px;
}

.note {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */

footer {
  padding: 32px 16px 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

footer p {
  margin: 6px 0;
}

/* Store redirect pages */

.redirect {
  display: grid;
  place-content: center;
  min-height: 100vh;
  padding: 16px;
  text-align: center;
}

.redirect img {
  margin: 0 auto 16px;
  border-radius: 18px;
}
