:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --accent: #0f9d58;
  --accent-dark: #0c7c44;
  --ink: #1f1f1f;
  --muted: #5f6368;
  --border: #e5e7eb;
  --shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-body: "Roboto", "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Roboto", "Inter", system-ui, sans-serif;
}

/* Hero block (Play Store style) */
.info {
  margin: 0;
}
.info__main {
  display: flex;
  gap: 18px;
  align-items: center;
}
.info__img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  box-shadow:
    0 1px 2px #3c40434d,
    0 1px 3px 1px #3c404326;
  object-fit: cover;
}
.info__text-block {
  display: flex;
  flex-direction: column;
}
.info__name {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Google Sans", "Roboto", sans-serif;
  font-size: 24px;
  line-height: 28px;
  font-weight: 500;
  color: #202124;
}
.info__verified-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.info__verified-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.info__dev {
  margin: 4px 0 0;
  font-family: "Google Sans", "Roboto", sans-serif;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: #01875f;
}
.info__additional {
  margin-top: 4px;
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  line-height: 16px;
  color: #5f6368;
}
.info__numbers {
  margin-top: 18px;
  overflow: hidden;
  width: 100%;
}
.info__numbers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  gap: 0;
  width: 100%;
}
.info__numbers-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  min-width: 0;
}
.info__numbers-item:after {
  display: none;
}
.info__numbers-item span:first-child {
  font-family: "Google Sans", "Roboto", sans-serif;
  font-size: 15px;
  line-height: 18px;
  font-weight: 600;
  color: #202124;
}
.info__numbers-item span:last-child {
  margin-top: 4px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: #5f6368;
}
.info__numbers-item--reviews span:first-child:after {
  content: "★";
  margin-left: 2px;
  color: #202124;
}
.info__numbers-item--rating span:first-child {
  border: 1px solid #202124;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}
.info__button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 10px;
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: #01875f;
  color: #fff;
  font-family: "Google Sans", "Roboto", sans-serif;
  font-size: 15px;
  line-height: 18px;
  font-weight: 500;
  cursor: pointer;
  box-sizing: border-box;
}
.info__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.info__button:active {
  background: #014330;
}
.info__progress-bar {
  margin-top: 14px;
}
.info__install {
  position: relative;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Google Sans", "Roboto", sans-serif;
  font-size: 14px;
  line-height: 18px;
  color: #5f6368;
}
.info__gallery {
  position: relative;
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 6px 12px 6px 2px;
  scrollbar-width: none;
  max-width: 100%;
  box-sizing: border-box;
}
.info__gallery::-webkit-scrollbar {
  display: none;
}
.info__gallery-item {
  flex: 0 0 145px;
}
.info__gallery-item img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.page-bg {
  display: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.app-card {
  width: min(960px, 100%);
  max-width: 920px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 24px 40px;
  overflow: hidden;
}

.app-hero {
  display: grid;
  gap: 20px;
  align-items: center;
}

.app-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}
.icon-wrap {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.title-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.title-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.15px;
  font-family: var(--font-display);
}
.badge-verified {
  width: 24px;
  height: 24px;
  display: inline-flex;
}
.badge-verified img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.publisher {
  margin: 0;
  font-size: 15px;
  color: #1a73e8;
  font-weight: 600;
}
.meta {
  margin: 0;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px 8px;
  background: #fff;
  border-radius: var(--radius-md);
}
.stat {
  text-align: center;
}
.stat-value {
  font-weight: 700;
  font-size: 18px;
  color: #202124;
  letter-spacing: 0.1px;
}
.stat-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.divider {
  width: 1px;
  height: 32px;
  background: #dadce0;
  justify-self: center;
}

.install-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 160ms ease;
  box-shadow: 0 12px 30px rgba(15, 157, 88, 0.25);
}
.install-btn:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
}
.install-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(15, 157, 88, 0.3);
}

.install-progress {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px 12px;
  background: #fafafa;
}
.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}
.progress-head span:last-child {
  color: #0f9d58;
}
.progress-bar {
  margin-top: 8px;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: #0f9d58;
  border-radius: inherit;
  transition: width 220ms ease;
}

.device-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.device-note svg {
  width: 20px;
  height: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f1f3f4;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}
.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.block {
  margin-top: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chevron {
  font-size: 18px;
  color: var(--muted);
}
h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.body-text {
  margin: 0 0 14px;
  color: #3c4043;
  line-height: 1.6;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.label {
  margin: 0;
  font-weight: 600;
}
.value {
  margin: 4px 0 0;
  color: #3c4043;
}

.safety-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff !important;
  padding: 12px 16px;
  display: grid;
  gap: 12px;
}
.safety-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3c4043;
  font-size: 14px;
  line-height: 20px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}
.safety-row img,
.safety-row svg,
.safety-row .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.safety__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  background: #fff;
  display: grid;
  gap: 14px;
  padding: 14px 16px;
}
.safety__list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #3c4043;
  font-size: 14px;
  line-height: 20px;
}
.safety__list-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.subdued {
  color: var(--muted);
  margin: 0 0 14px;
}
.ratings-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  align-items: center;
}
.score-number {
  font-size: 46px;
  font-weight: 700;
}
.stars {
  color: #0f9d58;
  letter-spacing: 2px;
}
.bars {
  display: grid;
  gap: 6px;
}
.bar {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.track {
  background: #e5e7eb;
  height: 10px;
  border-radius: 8px;
  overflow: hidden;
}
.track div {
  height: 100%;
  background: #0f9d58;
}

.reviews {
  display: grid;
  gap: 18px;
  margin-top: 10px;
}
.review {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f9d58, #1a73e8);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.review-date {
  color: var(--muted);
  font-size: 12px;
}
.helpful {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}
.pill-actions {
  display: inline-flex;
  gap: 8px;
}
.pill-actions button {
  border: 1px solid #dfe1e5;
  background: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.link-btn {
  margin-top: 16px;
  background: none;
  color: #0f9d58;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.footer-links {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 16px;
  color: #3c4043;
}
.footer-group {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
  flex-direction: column;
}
.footer-title {
  margin: 0;
  font-weight: 500;
}
.footer-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
}
.footer-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 300;
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition:
    opacity 200ms ease,
    transform 200ms ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .app-card {
    padding: 22px 18px 36px;
    border-radius: 18px;
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 12px;
  }
  .divider {
    display: none;
  }
  .ratings-wrap {
    grid-template-columns: 1fr;
  }
  .gallery img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 24px;
  }
  .icon-wrap {
    width: 80px;
    height: 80px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .gallery img {
    height: 170px;
  }
}
