:root {
  color-scheme: light;
  --green: #06895f;
  --green-dark: #04734f;
  --text: #202124;
  --muted: #64686f;
  --line: #e4e6eb;
  --soft: #f5f7f8;
  --blue: #4aa3ff;
  font-family: Inter, Roboto, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100svh;
  background: #fff;
}

button {
  font: inherit;
}

.page {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.app-icon {
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  background: var(--soft);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 760;
}

.verified {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  color: #fff;
  background: var(--blue);
  font-size: 19px;
  font-weight: 800;
}

.developer {
  margin-top: 10px;
  color: var(--green);
  font-size: 21px;
  font-weight: 720;
}

.muted,
.device-note,
.section p,
.review span {
  color: var(--muted);
}

.muted {
  margin-top: 8px;
  font-size: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 30px 0 24px;
  text-align: center;
}

.stats div {
  min-width: 0;
  padding: 0 10px;
  border-left: 1px solid var(--line);
}

.stats div:first-child {
  border-left: 0;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 22px;
  line-height: 1;
}

.stats span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.install-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  font-weight: 760;
  font-size: 19px;
  cursor: pointer;
}

.install-button:active {
  background: var(--green-dark);
}

.install-button[disabled] {
  opacity: .72;
  cursor: wait;
}

.install-button.secondary {
  width: min(280px, calc(100vw - 36px));
}

.device-note {
  min-height: 24px;
  margin-top: 18px;
  padding-left: 30px;
  position: relative;
  font-size: 18px;
}

.device-note::before {
  content: "▣";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted);
}

.screenshots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 1fr);
  gap: 14px;
  margin-top: 26px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.screenshots::-webkit-scrollbar {
  display: none;
}

.screenshots img {
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.section {
  padding-top: 34px;
}

.section h2 {
  margin-bottom: 18px;
  font-size: 25px;
  line-height: 1.16;
}

.section p {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.42;
}

.meta h2 + p {
  margin-bottom: 24px;
}

.safety {
  border-top: 1px solid var(--line);
  margin-top: 32px;
}

.rating-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 22px;
  align-items: center;
}

.rating-score {
  font-size: 70px;
  letter-spacing: 0;
  line-height: 1;
}

.bars {
  display: grid;
  gap: 10px;
}

.bars span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) var(--w), #e6eaef var(--w));
}

.review {
  display: grid;
  gap: 7px;
  margin-top: 26px;
}

.review strong {
  font-size: 18px;
}

.review p {
  margin-top: 0;
  font-size: 16px;
}

.pwa-launch {
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  padding: 24px;
}

.pwa-launch img {
  border-radius: 26px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .16);
}

.launch-bar {
  width: min(260px, 70vw);
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfeee5;
}

.launch-bar span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: #46ad59;
  animation: launch 1.2s ease-in-out infinite;
}

@keyframes launch {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(240%);
  }
}

@media (max-width: 430px) {
  .page {
    padding-inline: 16px;
  }

  .hero {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
  }

  .app-icon {
    width: 82px;
    height: 82px;
    border-radius: 16px;
  }

  h1 {
    font-size: 26px;
  }

  .developer {
    font-size: 19px;
  }

  .stats span {
    font-size: 13px;
  }

  .stats strong {
    font-size: 19px;
  }

  .rating-row {
    grid-template-columns: 112px 1fr;
  }
}
