:root {
  color-scheme: light;
  --text: #111;
  --muted: #52525b;
  --line: #e4e4e7;
  --card: #f4f4f5;
  --page: #fff;
  color: var(--text);
  background: var(--page);
  font-family: Inter, sans-serif;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --text: #fff;
    --muted: #a1a1aa;
    --line: #27272a;
    --card: #18181b;
    --page: #000;
  }

  .logo-dark {
    display: none;
  }

  .logo-light {
    display: block !important;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 1;
  background: color-mix(in srgb, var(--page) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

.mark {
  display: inline-flex;
  line-height: 0;
}

.logo {
  height: 1.75rem;
  width: auto;
}

.logo-light {
  display: none;
}

nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

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

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

.hero {
  padding-top: 4.5rem;
  text-align: center;
}

.app-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 1.125rem;
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 12%);
}

h1 {
  margin: 1.5rem auto 0;
  max-width: 40rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lede {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: 1.1875rem;
  color: var(--muted);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 2rem;
}

.platforms > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.platforms img,
.bank {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.bank {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.screens {
  margin-top: 3.5rem;
  overflow-x: auto;
}

.screens-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  min-width: max-content;
  padding-bottom: 1rem;
}

figure {
  margin: 0;
  width: 15rem;
  text-align: center;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 472 / 1024;
  object-fit: cover;
  border-radius: 2rem;
  border: 1px solid var(--line);
  background: var(--card);
}

figcaption {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.section {
  padding-top: 5rem;
}

h2 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}

.section > p {
  margin-top: 1rem;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.grid article {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--card);
}

.grid article p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.grid article .price {
  margin-top: 0.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

details {
  margin-top: 1rem;
  padding: 1.125rem 1.25rem;
  border-radius: 1rem;
  background: var(--card);
}

details:first-of-type {
  margin-top: 2rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin-top: 0.625rem;
  color: var(--muted);
}

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--page);
  font-weight: 600;
  text-decoration: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 5rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 48rem) {
  .bar nav a:not(:last-child) {
    display: none;
  }

  .section {
    padding-top: 3.5rem;
  }

  .screens-row {
    justify-content: flex-start;
  }

  figure {
    width: 12.5rem;
  }
}
