:root {
  --green: #058d66;
  --green-dark: #047251;
  --green-soft: #dff6ef;
  --ink: #202124;
  --muted: #5f6368;
  --line: #e4e7eb;
  --paper: #ffffff;
  --surface: #f8faf9;
  --blue: #1a73e8;
  --gold: #fbbc04;
  --font: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.store-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 18px 24px 110px;
}

.store-masthead {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  margin-bottom: 50px;
}

.store-logo {
  display: flex;
  align-items: center;
  gap: 17px;
  color: #5f6368;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.play-triangle {
  position: relative;
  width: 0;
  height: 0;
  border-top: 27px solid transparent;
  border-bottom: 27px solid transparent;
  border-left: 47px solid #34a853;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.08));
}

.play-triangle::before,
.play-triangle::after {
  position: absolute;
  left: -47px;
  content: "";
  width: 0;
  height: 0;
  border-top: 27px solid transparent;
  border-bottom: 0 solid transparent;
  border-left: 47px solid #4285f4;
  transform: translateY(-27px);
}

.play-triangle::after {
  border-top: 0 solid transparent;
  border-bottom: 27px solid transparent;
  border-left-color: #fbbc04;
  transform: translateY(0);
}

.top-corner-image {
  display: block;
  width: min(420px, 70vw);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.app-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  width: min(455px, 100%);
}

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

.title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: 29px;
  font-weight: 500;
  line-height: 1;
}

.verified-dot {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.developer-link {
  display: inline-block;
  color: var(--green);
  font-size: 17px;
  font-weight: 700;
}

.safety-note {
  position: relative;
  margin: 8px 0 0;
  padding-left: 15px;
  color: #7d858b;
  font-size: 11px;
}

.safety-note::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 11px;
  height: 11px;
  place-items: center;
  border: 1px solid #8ebbad;
  border-radius: 999px;
  color: var(--green);
  content: "✓";
  font-size: 7px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 30px 0 30px;
  text-align: center;
}

.metrics article {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-right: 1px solid var(--line);
}

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

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

.metrics span {
  color: var(--muted);
  font-size: 13px;
}

.choice-icon {
  font-size: 22px;
}

.qr-install {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin: 14px 0 28px;
}

.scan-phone {
  position: relative;
  min-height: 216px;
}

.hand {
  position: absolute;
  left: 10px;
  bottom: 0;
  width: 115px;
  height: 76px;
  border-radius: 34px 60px 18px 24px;
  background: #ffc2a3;
  transform: rotate(-18deg);
}

.hand::before {
  position: absolute;
  right: -38px;
  top: -6px;
  width: 48px;
  height: 100px;
  border-radius: 32px;
  background: #ffc2a3;
  content: "";
}

.phone,
.target-phone {
  position: absolute;
  display: grid;
  place-items: center;
  border: 4px solid #2c3035;
  border-radius: 9px;
  background: #fff;
}

.phone {
  right: 12px;
  bottom: 12px;
  width: 86px;
  height: 155px;
  background: #202124;
}

.phone span {
  position: absolute;
  bottom: 12px;
  width: 18px;
  height: 18px;
  border: 2px solid #4b4f55;
  border-radius: 999px;
}

.mini-qr {
  width: 46px;
  height: 46px;
}

.scan-light {
  position: absolute;
  right: -26px;
  bottom: 80px;
  width: 135px;
  height: 76px;
  background: linear-gradient(90deg, rgba(5, 141, 102, 0.24), rgba(5, 141, 102, 0));
  clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 72%);
}

.qr-panel {
  position: relative;
  display: grid;
  justify-items: center;
  width: 205px;
}

.fake-qr {
  width: 188px;
  height: 188px;
  display: block;
  border: 10px solid white;
  object-fit: contain;
  background: #fff;
  box-shadow: inset 0 0 0 1px #111;
}

.mini-qr {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #fff;
}

.corner {
  position: absolute;
  width: 45px;
  height: 45px;
  border-color: var(--green);
  border-style: solid;
}

.corner-tl {
  top: -3px;
  left: 2px;
  border-width: 5px 0 0 5px;
}

.corner-tr {
  top: -3px;
  right: 2px;
  border-width: 5px 5px 0 0;
}

.corner-bl {
  bottom: 57px;
  left: 2px;
  border-width: 0 0 5px 5px;
}

.corner-br {
  right: 2px;
  bottom: 57px;
  border-width: 0 5px 5px 0;
}

.qr-panel h2 {
  margin: 7px 0 0;
  color: #3c4043;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.22;
  text-align: center;
}

.install-flow {
  position: relative;
  min-height: 216px;
}

.arrow {
  position: absolute;
  left: 4px;
  top: 94px;
  width: 74px;
  height: 10px;
  background: var(--green);
}

.arrow::after {
  position: absolute;
  right: -22px;
  top: -15px;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 26px solid var(--green);
  content: "";
}

.target-phone {
  right: 0;
  bottom: 0;
  width: 96px;
  height: 184px;
}

.tiny-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  object-fit: cover;
}

.target-phone small {
  justify-self: start;
  margin-left: 12px;
  color: #202124;
  font-size: 10px;
}

.target-phone button {
  width: 72px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  color: white;
  background: var(--green);
  font-size: 8px;
  font-weight: 700;
}

.rapid-button {
  width: calc(100% - 8px);
  margin-inline: auto;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-content: center;
  column-gap: 8px;
  border: 0;
  border-radius: 6px 6px 0 0;
  color: white;
  background: var(--green);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}

.rapid-button:hover {
  background: var(--green-dark);
}

.rapid-button small {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.quick-actions {
  display: flex;
  justify-content: center;
  gap: 58px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
}

.quick-actions button {
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 13px;
}

.quick-actions span {
  font-size: 22px;
  line-height: 1;
}

.preview-gallery,
.content-card,
.updated-card,
.ratings-card {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.gallery-heading {
  margin-bottom: 14px;
}

.image-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.image-strip figure {
  position: relative;
  flex: 0 0 154px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(32, 33, 36, 0.08);
  scroll-snap-align: start;
}

.image-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.image-strip figcaption {
  position: absolute;
  top: 9px;
  left: 9px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.content-card h2,
.updated-card h2,
.ratings-card h2 {
  margin-bottom: 16px;
  color: #202124;
  font-size: 22px;
  font-weight: 500;
}

.about-card p {
  margin-bottom: 20px;
  color: #303134;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #3c4043;
  background: var(--surface);
  font-size: 13px;
}

.safety-card > p,
.section-title-row p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.safety-list {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.safety-list div {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 12px;
}

.safety-list span {
  color: var(--green);
  font-size: 20px;
  text-align: center;
}

.safety-list p {
  margin: 0;
  color: #3c4043;
  font-size: 14px;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-title-row button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 32px;
}

.device-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.device-tabs button {
  padding: 7px 19px;
  border: 1px solid #c4c7c5;
  border-radius: 999px;
  color: var(--green);
  background: white;
  font-size: 14px;
}

.device-tabs .active {
  background: var(--green-soft);
  border-color: var(--green);
}

.rating-layout {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 26px;
  align-items: center;
  margin-bottom: 28px;
}

.rating-score strong {
  display: block;
  font-size: 62px;
  font-weight: 400;
  line-height: 0.95;
}

.rating-score span {
  display: block;
  margin: 8px 0 4px;
  color: var(--green);
  font-size: 14px;
  letter-spacing: 1px;
}

.rating-score small {
  color: var(--muted);
  font-size: 13px;
}

.rating-bars {
  display: grid;
  gap: 8px;
}

.rating-bars div {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.rating-bars b {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0ef;
}

.rating-bars b::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  border-radius: inherit;
  background: var(--green);
  content: "";
}

.review-list {
  display: grid;
  gap: 27px;
}

.review-list article > div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: #7c58c6;
  font-weight: 700;
}

.review-list h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
}

.review-list small {
  color: var(--muted);
  font-size: 12px;
}

.review-list p {
  margin: 0;
  color: #3c4043;
  font-size: 14px;
  line-height: 1.56;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 7px 16px 8px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.bottom-nav a {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
}

.bottom-nav span {
  font-size: 21px;
  line-height: 1;
}

.bottom-nav .active {
  color: var(--green);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 78px;
  z-index: 10;
  width: min(360px, calc(100vw - 38px));
  padding: 12px 16px;
  border-radius: 999px;
  color: white;
  background: #202124;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 620px) {
  .store-shell {
    padding: 18px 18px 100px;
  }

  .store-masthead {
    margin-bottom: 42px;
  }

  .store-logo {
    gap: 11px;
    font-size: 24px;
  }

  .play-triangle {
    border-top-width: 22px;
    border-bottom-width: 22px;
    border-left-width: 38px;
  }

  .play-triangle::before {
    left: -38px;
    border-top-width: 22px;
    border-left-width: 38px;
    transform: translateY(-22px);
  }

  .play-triangle::after {
    left: -38px;
    border-bottom-width: 22px;
    border-left-width: 38px;
  }

  .top-corner-image {
    width: min(330px, 76vw);
  }

  .qr-install {
    grid-template-columns: 0.78fr 1fr 0.78fr;
    gap: 4px;
  }

  .scan-phone,
  .install-flow {
    min-height: 178px;
  }

  .hand {
    left: -12px;
    width: 86px;
    height: 60px;
  }

  .phone {
    right: -2px;
    width: 68px;
    height: 126px;
  }

  .scan-light {
    right: -30px;
    width: 95px;
  }

  .qr-panel {
    width: 168px;
  }

  .fake-qr {
    width: 150px;
    height: 150px;
  }

  .fake-qr::after {
    margin: 32px 0 0 88px;
  }

  .corner {
    width: 35px;
    height: 35px;
  }

  .corner-bl,
  .corner-br {
    bottom: 52px;
  }

  .qr-panel h2 {
    font-size: 19px;
  }

  .arrow {
    left: -8px;
    top: 80px;
    width: 50px;
  }

  .target-phone {
    width: 75px;
    height: 150px;
  }

  .metrics span,
  .bottom-nav a {
    font-size: 11px;
  }

  .quick-actions {
    gap: 38px;
  }

  .image-strip {
    grid-template-columns: repeat(4, 138px);
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .image-strip figure {
    scroll-snap-align: start;
  }

  .about-card p {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .store-logo strong {
    display: none;
  }

  .top-corner-image {
    width: min(285px, 78vw);
  }

  .qr-install {
    margin-inline: -10px;
  }

  .scan-phone {
    transform: scale(0.88);
    transform-origin: right center;
  }

  .install-flow {
    transform: scale(0.88);
    transform-origin: left center;
  }

  .rating-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
