:root {
  --text: #1c1c1e;
  --muted: #6e6e73;
  --background: #ffffff;
  --card: #f2f2f7;
  --link: #007aff;
  --hairline: rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f2f7;
    --muted: #98989f;
    --background: #000000;
    --card: #1c1c1e;
    --link: #0a84ff;
    --hairline: rgba(255, 255, 255, 0.16);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 8px;
}

h2 {
  font-size: 20px;
  margin: 40px 0 8px;
}

h3 {
  font-size: 17px;
  margin: 24px 0 4px;
}

p,
ul {
  margin: 0 0 12px;
}

ul {
  padding-left: 20px;
}

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

a:hover {
  text-decoration: underline;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 32px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.label {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 15px;
}

/* Product page */

main.wide {
  max-width: 960px;
}

.app-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.app-header h1 {
  margin-bottom: 4px;
}

.app-icon {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 22%;
  box-shadow: 0 0 0 1px var(--hairline);
}

.tagline {
  color: var(--muted);
  font-size: 20px;
  margin-bottom: 16px;
}

.store-badge {
  display: block;
  width: fit-content;
}

.store-badge img {
  display: block;
  width: 150px;
  height: auto;
}

.meta {
  color: var(--muted);
  font-size: 15px;
  margin: 12px 0 0;
}

.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -16px;
  padding: 4px 16px 20px;
  scroll-padding: 0 16px;
}

.gallery figure {
  flex: 0 0 200px;
  margin: 0;
  scroll-snap-align: start;
}

.gallery figcaption {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  min-height: 63px;
  margin-bottom: 12px;
}

.gallery figcaption strong {
  display: block;
  color: var(--text);
  font-size: 17px;
}

.phone {
  padding: 6px;
  border-radius: 36px;
  background: #1c1c1e;
  box-shadow: 0 0 0 1px var(--hairline);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.features .card {
  margin: 0;
}

.features h3 {
  margin-top: 0;
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .app-header {
    flex-direction: column;
    gap: 16px;
  }

  .app-header h1 {
    font-size: 28px;
  }

  .tagline {
    font-size: 17px;
  }
}
