:root {
  --shell-bg: #000000;
  --page-bg: #ffffff;
  --text-main: #202124;
  --text-muted: #767b83;
  --text-soft: #5f6368;
  --text-faint: #9aa0a6;
  --brand: #01875f;
  --cta: #028760;
  --divider: #dadce0;
  --chip-border: #dadce0;
  --chip-bg: #e6f3ef;
  --icon: #5f6368;
  --card-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  --phone-width: 390px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --placeholder-bg: #f4ecd2;
  --placeholder-grid: rgba(113, 118, 128, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--shell-bg);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
  width: 100%;
}

button {
  font: inherit;
}

.page-shell {
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 16px;
}

.mobile-app {
  width: min(100%, var(--phone-width));
  min-height: 100dvh;
  background: var(--page-bg);
  box-shadow: var(--card-shadow);
}

.hero {
  padding: 26px 22px 0;
}

.app-summary {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.media-slot {
  position: relative;
  overflow: hidden;
}

.media-slot img {
  width: 100%;
  height: 100%;
}

.media-slot.is-missing {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)),
    linear-gradient(var(--placeholder-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--placeholder-grid) 1px, transparent 1px),
    var(--placeholder-bg);
  background-size: auto, 18px 18px, 18px 18px, auto;
  background-position: center;
}

.media-slot.is-missing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.45), transparent 38%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.08));
}

.media-slot.is-missing::after {
  content: attr(data-file-label);
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(32, 33, 36, 0.72);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.media-slot.is-missing img {
  opacity: 0;
}

.media-slot--icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex: 0 0 auto;
}

.app-icon {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.app-copy {
  min-width: 0;
}

.app-copy h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.05;
  font-weight: 500;
}

.brand-link {
  margin: 2px 0 0;
  color: var(--brand);
  font-size: 1.14rem;
  line-height: 1.15;
}

.verify-text {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}

.stat-item {
  padding: 0 6px;
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  width: 1px;
  height: 32px;
  background: var(--divider);
}

.stat-value {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

.stat-label {
  margin: 2px 0 0;
  color: var(--text-soft);
  font-size: 0.74rem;
  line-height: 1.15;
}

.install-cta {
  margin-top: 16px;
  width: 100%;
  border: 0;
  padding: 12px 16px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 6px;
  background: var(--cta);
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 8px 16px rgba(2, 135, 96, 0.18);
}

.install-cta:hover {
  transform: translateY(-1px);
}

.install-cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(2, 135, 96, 0.22);
}

.cta-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

.cta-icon {
  width: 12px;
  height: 16px;
  flex: 0 0 auto;
}

.cta-bottom {
  font-size: 0.82rem;
  line-height: 1.15;
}

.promo-strip {
  padding: 20px 0 0 22px;
}

.promo-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 30px) / 2.1);
  gap: 8px;
  overflow-x: auto;
  padding-right: 22px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.promo-track::-webkit-scrollbar {
  display: none;
}

.promo-card {
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #f6f0d8;
  aspect-ratio: 0.58;
}

.promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-card {
  padding: 22px 22px 32px;
}

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

.section-title h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 700;
}

.section-arrow-img {
  width: 15px;
  height: auto;
  object-fit: contain;
  opacity: 0.88;
  transform: translateY(1px);
}

.copy-block {
  margin-top: 12px;
}

.copy-block p {
  margin: 0 0 6px;
  color: var(--text-soft);
  font-size: 0.87rem;
  line-height: 1.45;
}

.copy-block p:last-child {
  margin-bottom: 0;
}

.updated-block {
  margin-top: 22px;
}

.meta-label,
.meta-value {
  margin: 0;
}

.meta-label {
  color: var(--text-main);
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 700;
}

.meta-value {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.3;
}

.info-section,
.reviews-section {
  padding: 0 22px 32px;
}

.section-title--stack {
  justify-content: flex-start;
}

.section-copy {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 0.87rem;
  line-height: 1.45;
}

.safety-card {
  margin-top: 20px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.safety-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.safety-item + .safety-item {
  margin-top: 16px;
}

.safety-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.87rem;
  line-height: 1.4;
  flex: 1 1 calc(100% - 40px);
}

.safety-subcopy {
  margin-top: -10px;
}

.safety-icon {
  width: 20px;
  height: auto;
  flex: 0 0 auto;
}

.device-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
  margin-top: 18px;
}

.device-chip,
.menu-dot {
  font: inherit;
}

.device-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--chip-border);
  background: #ffffff;
  color: var(--text-soft);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.88rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.device-chip-icon {
  width: 13px;
  height: auto;
  flex: 0 0 auto;
}

.device-chip.is-active {
  background: var(--chip-bg);
  border-color: #cae7dd;
  color: var(--cta);
}

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

.score-block p,
.review-meta p,
.review-copy {
  margin: 0;
}

.score-value {
  font-size: 3rem;
  line-height: 0.95;
  font-weight: 500;
}

.score-stars {
  margin-top: 6px;
  color: var(--brand);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.score-count {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

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

.score-row {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: #ededed;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.fill-100 {
  width: 100%;
}

.fill-14 {
  width: 14%;
}

.fill-12 {
  width: 12%;
}

.fill-0 {
  width: 0;
}

.review-list {
  margin-top: 26px;
}

.review-item + .review-item {
  margin-top: 26px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-frame {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.avatar-frame.is-missing {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), transparent 36%),
    linear-gradient(180deg, #dfe3e8, #cfd5db);
}

.avatar-frame.is-missing::after {
  content: "";
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  background: rgba(32, 33, 36, 0.22);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.14);
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e9ecef;
}

.review-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.review-name {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.25;
}

.menu-dot {
  border: 0;
  background: transparent;
  color: #3f454d;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
}

.review-submeta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.review-stars {
  color: var(--brand);
  font-size: 0.86rem;
  letter-spacing: 1px;
}

.review-date {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.review-copy {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.89rem;
  line-height: 1.45;
}

.review-list .review-item:last-child {
  padding-bottom: 10px;
}

@media (hover: hover) and (pointer: fine) {
  .promo-track {
    cursor: grab;
  }
}

@media (max-width: 480px) {
  body {
    background: var(--page-bg);
  }

  .page-shell {
    padding: 0;
  }

  .mobile-app {
    width: 100%;
    box-shadow: none;
  }
}

@media (max-width: 360px) {
  .hero,
  .about-card,
  .info-section,
  .reviews-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .promo-strip {
    padding-left: 16px;
  }

  .promo-track {
    grid-auto-columns: calc((100% - 24px) / 1.85);
    padding-right: 16px;
  }
}
