:root {
  color-scheme: light;
  --green: #06895f;
  --green-dark: #04734f;
  --text: #202124;
  --muted: #64686f;
  --line: #e4e6eb;
  --soft: #f5f7f8;
  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;
}

[hidden] {
  display: none !important;
}

button {
  font: inherit;
}

.ios-store {
  display: none;
}

html[data-platform="ios"] body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
}

html[data-platform="ios"] .android-store {
  display: none;
}

html[data-platform="ios"] .ios-store {
  display: block;
}

html[data-platform="android"] .ios-store {
  display: none;
}

.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;
}

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

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

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

.notice {
  margin: 28px 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.notice h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
}

.notice ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.notice li {
  font-size: 15px;
  line-height: 1.38;
}

.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.is-loading {
  background: #0a9d8c;
}

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

.install-progress,
.ios-install-progress {
  overflow: hidden;
  border-radius: 999px;
  background: #dfeee5;
}

.install-progress {
  width: 100%;
  height: 8px;
  margin-top: 12px;
}

.install-progress span,
.ios-install-progress span {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  animation: installSweep 1.05s ease-in-out infinite;
}

.install-progress span {
  background: #46ad59;
}

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

.device-note {
  min-height: 24px;
  margin-top: 18px;
  font-size: 18px;
}

.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;
}

.ios-store {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 0 max(30px, env(safe-area-inset-bottom));
  color: #1d1d1f;
  background: #fff;
}

.ios-hero-art {
  position: relative;
  height: clamp(192px, 52vw, 315px);
  overflow: hidden;
  background: #f2f2f7;
}

.ios-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.ios-circle-control {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #1d1d1f;
  background: rgba(246, 246, 248, .86);
  backdrop-filter: blur(16px);
  font-size: 32px;
  line-height: 1;
}

.ios-circle-control.share {
  left: auto;
  right: 14px;
  font-size: 24px;
  font-weight: 700;
}

.ios-app-header {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 18px 16px;
}

.ios-app-header.compliant {
  padding-top: 8px;
}

.ios-app-icon {
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
}

.ios-title-block {
  min-width: 0;
}

.ios-title-block h1 {
  display: block;
  font-size: 27px;
  line-height: 1.08;
  font-weight: 700;
}

.ios-title-block p {
  margin-top: 5px;
  color: #6e6e73;
  font-size: 16px;
}

.ios-action {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.ios-action span {
  color: #8e8e93;
  font-size: 9px;
  line-height: 1.1;
  text-align: center;
  max-width: 72px;
}

.ios-get-button {
  min-width: 72px;
  min-height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #0a84ff;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
}

.ios-get-button.is-loading {
  background: #64aefc;
}

.ios-get-button[disabled] {
  opacity: .8;
  cursor: wait;
}

.ios-install-progress {
  height: 7px;
  margin: 0 18px 8px;
  background: #d8ebff;
}

.ios-install-progress span {
  background: #0a84ff;
}

.ios-install-state {
  min-height: 18px;
  margin: 0 18px 8px;
  color: #8e8e93;
  font-size: 13px;
}

.ios-notice {
  margin: 18px;
}

.ios-facts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(92px, 1fr);
  gap: 0;
  margin: 8px 0 18px;
  padding: 0 18px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.ios-facts::-webkit-scrollbar {
  display: none;
}

.ios-facts div {
  min-width: 92px;
  padding: 0 13px;
  text-align: center;
  border-left: 1px solid #e5e5ea;
}

.ios-facts div:first-child {
  border-left: 0;
  padding-left: 0;
}

.ios-facts span,
.ios-facts small {
  display: block;
  color: #8e8e93;
  font-size: 11px;
  line-height: 1.15;
}

.ios-facts strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 20px;
  line-height: 1;
}

.ios-shot-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 12px;
  padding: 0 18px 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.ios-shot-row::-webkit-scrollbar {
  display: none;
}

.ios-shot-row img {
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  background: #f2f2f7;
}

.ios-section {
  margin: 0 18px;
  padding: 22px 0;
  border-top: 1px solid #e5e5ea;
}

.ios-section h2 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.1;
  font-weight: 700;
}

.ios-section p {
  color: #1d1d1f;
  font-size: 16px;
  line-height: 1.36;
}

.ios-muted {
  color: #6e6e73 !important;
}

.ios-rating {
  display: grid;
  grid-template-columns: 106px 1fr;
  align-items: end;
  column-gap: 22px;
  margin-bottom: 16px;
}

.ios-rating strong {
  grid-row: span 2;
  font-size: 62px;
  line-height: .9;
}

.ios-rating span {
  font-size: 24px;
  letter-spacing: 1px;
}

.ios-rating small,
.ios-review span {
  color: #8e8e93;
}

.ios-review,
.privacy-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}

.ios-review strong,
.privacy-card strong {
  font-size: 17px;
}

.ios-review p,
.privacy-card span {
  color: #3a3a3c;
  font-size: 15px;
  line-height: 1.34;
}

.ios-info dl {
  margin: 0;
}

.ios-info div {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid #f0f0f2;
}

.ios-info div:first-child {
  border-top: 0;
}

.ios-info dt,
.ios-info dd {
  margin: 0;
  font-size: 15px;
}

.ios-info dt {
  color: #8e8e93;
}

.ios-info dd {
  text-align: right;
}

.ios-sticky-action {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: none;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: min(100%, 640px);
  transform: translateX(-50%);
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(209, 209, 214, .85);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(20px);
}

html[data-ios-scrolled="true"] .ios-sticky-action {
  display: grid;
}

.ios-sticky-action img {
  border-radius: 9px;
}

.ios-sticky-action strong,
.ios-sticky-action span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ios-sticky-action strong {
  font-size: 14px;
}

.ios-sticky-action span {
  color: #8e8e93;
  font-size: 11px;
}

.ios-get-button.mini {
  min-width: 58px;
  min-height: 32px;
  padding-inline: 14px;
  font-size: 15px;
}

.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;
}

.launch-state {
  min-height: 22px;
  color: var(--muted);
  font-size: 16px;
}

@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;
  }

  .ios-app-header {
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 12px;
    padding-inline: 16px;
  }

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

  .ios-title-block h1 {
    font-size: 23px;
  }

  .ios-title-block p {
    font-size: 14px;
  }

  .ios-facts,
  .ios-shot-row,
  .ios-section,
  .ios-install-progress,
  .ios-install-state {
    margin-inline: 16px;
  }

  .ios-facts,
  .ios-shot-row {
    padding-inline: 0;
  }
}
