:root {
  color-scheme: light;
  --green: #028760;
  --green-dark: #026e4f;
  --text: #202124;
  --muted: #5f6368;
  --line: #e8eaed;
  --bg: #ffffff;
  --soft: #f8f9fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Roboto, Arial, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 18px 96px;
}

.app-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 6px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}

.app-title h1 {
  margin: -2px 0 6px;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0;
}

.app-title p {
  margin: 0 0 2px;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 500;
}

.app-title span {
  color: var(--muted);
  font-size: 0.84rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 25px 0 22px;
}

.metrics div {
  min-height: 56px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.metrics span {
  color: var(--muted);
  font-size: 0.76rem;
}

.install-button,
.bottom-install button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 22px;
  color: #fff;
  background: var(--green);
  font-weight: 600;
  cursor: pointer;
}

.install-button:disabled,
.bottom-install button:disabled {
  color: #7a817d;
  background: #dfe5e2;
  cursor: not-allowed;
}

.install-area,
.action-row {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.install-status {
  min-height: 18px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0 22px;
}

.action-row button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 600;
}

.screenshots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 24px;
  scrollbar-width: none;
}

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

.screenshots img {
  flex: 0 0 auto;
  width: auto;
  height: 224px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.section,
.review,
.devices {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.section-title h2,
.devices h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
  font-weight: 500;
}

.section-title span {
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
}

.section p,
.hint {
  margin: 0;
  color: #3c4043;
  font-size: 0.94rem;
  line-height: 1.55;
}

.hint {
  color: var(--muted) !important;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chips span {
  padding: 7px 12px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  color: #3c4043;
  font-size: 0.82rem;
}

.security-card {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.security-card div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
}

.data-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #e6f4ea;
  font-size: 0.72rem;
  font-weight: 700;
}

.security-card img {
  width: 22px;
  height: 22px;
}

.security-card p {
  margin: 0;
  color: #3c4043;
  font-size: 0.9rem;
}

.rating-box {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
}

.score strong {
  display: block;
  font-size: 3.8rem;
  line-height: 1;
  font-weight: 400;
}

.score span {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.bars i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green) var(--w), #e8eaed var(--w));
}

.review {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
}

.review img,
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.avatar {
  display: grid;
  place-items: center;
  color: #fff;
  background: #a142f4;
  font-weight: 600;
}

.review h3,
.review p {
  margin: 0;
}

.review h3 {
  font-size: 0.95rem;
  font-weight: 500;
}

.review .date {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 0.76rem;
}

.devices {
  display: grid;
  gap: 14px;
}

.devices div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 36px;
}

.devices img,
.device-icon {
  width: 24px;
  height: 24px;
}

.device-icon {
  display: grid;
  place-items: center;
  border: 1px solid #dadce0;
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.devices span {
  color: #3c4043;
  font-size: 0.95rem;
}

.system-status {
  display: none;
}

.ios-tip {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  color: var(--green-dark);
  background: #e6f4ea;
  font-size: 0.9rem;
  text-align: center;
}

.bottom-install {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 14px;
  align-items: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 14px rgba(60, 64, 67, 0.12);
}

.bottom-install div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bottom-install img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.bottom-install span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

@media (min-width: 720px) {
  .page {
    padding-top: 36px;
  }

  .app-head {
    grid-template-columns: 96px 1fr;
  }

  .app-icon {
    width: 96px;
    height: 96px;
    border-radius: 20px;
  }

  .app-title h1 {
    font-size: 3rem;
  }

}

@media (max-width: 420px) {
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .screenshots img {
    height: 190px;
  }

  .bottom-install {
    grid-template-columns: 1fr 132px;
  }
}
