:root {
  color-scheme: light;
  --ink: #19191d;
  --muted: #55565e;
  --line: #dfdfe3;
  --accent: #aa1d2c;
  --accent-hover: #881522;
  --page-width: 44rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
h1, h2, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .19em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button { font: inherit; cursor: pointer; }

.showcase {
  display: grid;
  width: min(100% - 2rem, 64rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem) minmax(0, 1fr);
  grid-template-areas: "home download round";
  align-items: center;
  gap: .75rem clamp(1rem, 3vw, 2.5rem);
  margin-inline: auto;
}

.download {
  grid-area: download;
  padding: clamp(2rem, 6.5vh, 4rem) 0 clamp(2.25rem, 6vh, 3.75rem);
  text-align: center;
}

.home-preview { grid-area: home; }
.round-preview { grid-area: round; }
.showcase > .app-preview { width: min(100%, 12.75rem); justify-self: center; }

.app-icon {
  margin: 0 auto .875rem;
  border-radius: 22%;
}

h1 {
  font-size: clamp(2.375rem, 6vw, 3.375rem);
  font-weight: 735;
  line-height: 1.05;
  letter-spacing: -.047em;
}

.intro {
  margin: .5rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.qr-link {
  display: block;
  width: max-content;
  margin: 1.375rem auto 0;
  padding: .3125rem;
  border: 1px solid var(--line);
  border-radius: .875rem;
  background: #fff;
}

.qr-link img { width: clamp(10rem, 47vw, 11.75rem); height: auto; }
.qr-link:hover { border-color: var(--accent); }
.scan-caption { margin-top: .5rem; color: var(--muted); font-size: .875rem; }

.store-button {
  display: grid;
  min-height: 3rem;
  width: min(100%, 15.5rem);
  place-items: center;
  margin: 1rem auto 0;
  padding: .5rem 1rem;
  border-radius: .55rem;
  background: var(--accent);
  color: #fff;
  font-weight: 660;
  text-decoration: none;
}

.store-button:hover { background: var(--accent-hover); color: #fff; }

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 .65rem;
  margin-top: .45rem;
  font-size: .875rem;
}

.share a, .share button, .save-qr { padding: .55rem .125rem; }
.share a { font-weight: 625; }
.share button, .site-footer button {
  padding-inline: .25rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: .19em;
}
.share button:hover, .site-footer button:hover { color: var(--accent); }
.copy-status { display: block; color: var(--accent); font-size: .875rem; }
.save-qr { display: inline-block; color: var(--muted); font-size: .875rem; }
.release-note { margin-top: .3rem; color: var(--muted); font-size: .875rem; }

.site-footer, .analytics-notice {
  width: min(100% - 2rem, var(--page-width));
  margin-inline: auto;
}

.app-details {
  width: min(100% - 2rem, 47rem);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 3.75rem) 0;
  border-top: 1px solid var(--line);
}

h2 { font-size: 1.65rem; line-height: 1.2; letter-spacing: -.03em; }
.details-content { max-width: 36rem; margin-inline: auto; }
.details-content p { margin-top: .75rem; }
.availability {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: .875rem;
}

.app-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.875rem, 3vw, 2rem);
  margin-top: 1.5rem;
}

.app-gallery .app-preview { width: min(100%, 13rem); justify-self: center; }

.app-preview img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: .875rem;
}
.app-preview figcaption { margin-top: .5rem; color: var(--muted); font-size: .8125rem; text-align: center; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.analytics-notice {
  margin-bottom: 1.5rem;
  padding: .875rem 1rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #f8f8fa;
  color: var(--muted);
  font-size: .875rem;
}

.analytics-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .625rem; }
.analytics-actions button {
  min-height: 2.5rem;
  padding: .35rem .65rem;
  border: 1px solid #c8c8cf;
  border-radius: .35rem;
  background: #fff;
  color: var(--ink);
  font-weight: 625;
}
.analytics-actions button:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 48rem) {
  .showcase {
    width: min(100% - 2rem, 30rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "download download" "home round";
    padding-bottom: 2rem;
  }

  .download { padding-bottom: 1.25rem; }
}

@media (max-width: 34rem) {
  .app-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: .875rem; }
  .app-gallery .app-preview { width: min(calc((100% - .875rem) / 2), 13rem); }
}
