:root {
  color-scheme: light;
  --brand: #078a49;
  --brand-dark: #034526;
  --brand-soft: #e6f5ed;
  --blue: #0878f9;
  --ink: #171719;
  --muted: #74747a;
  --line: #e5e5e8;
  --surface: #ffffff;
  --page: #f6f6f8;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

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

.statusbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: none;
  align-items: center;
  justify-content: space-between;
  height: calc(28px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 22px 0;
  background: rgba(246, 246, 248, 0.88);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(20px);
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

.store-nav {
  position: sticky;
  z-index: 25;
  top: 0;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.2);
  background: rgba(246, 246, 248, 0.9);
  backdrop-filter: saturate(180%) blur(22px);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(920px, 100%);
  min-height: 48px;
  margin: auto;
  padding: 0 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  justify-self: start;
  color: var(--blue);
  font-size: 15px;
}

.no-js [data-install-action] { display:none; }

.back-link::before {
  content: "‹";
  margin-right: 4px;
  font-size: 27px;
  line-height: 0;
  vertical-align: -2px;
}

.store-title {
  font-size: 15px;
  font-weight: 650;
}

.official-chip {
  justify-self: end;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
  font-weight: 750;
}

.store-page {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 28px 22px 110px;
}

.app-hero {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  align-items: end;
  gap: 28px;
}

.app-icon {
  display: block;
  width: 152px;
  height: 152px;
  border-radius: 33px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);
}

.app-copy h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.app-subtitle {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.developer {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: 13px;
}

.install-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.install-action {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 112px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

[data-platform="android"] .install-action {
  min-width: 128px;
  border-radius: 9px;
  background: var(--brand);
}

.install-action:disabled {
  cursor: wait;
  opacity: 0.82;
}

.install-action.is-loading {
  color: transparent;
}

.install-action.is-loading::after {
  content: "";
  position: absolute;
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.78s linear infinite;
}

.install-meta {
  color: var(--muted);
  font-size: 11px;
}

.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.feature-grid article { min-height:120px; padding:18px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.feature-grid b,.feature-grid span { display:block; }
.feature-grid b { color:var(--brand-dark); font-size:16px; }
.feature-grid span { margin-top:9px; color:var(--muted); font-size:13px; line-height:1.5; }
.sheet-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:14px; }
.copy-link,.sheet-close { min-height:48px; border:0; border-radius:13px; font-weight:700; cursor:pointer; }
.copy-link { background:#eaf2ed; color:var(--brand-dark); }
.sheet-close { background:var(--brand); color:#fff; }
.noscript-install { margin:16px; padding:14px; border-radius:12px; background:#fff4cc; color:#3a3216; text-align:center; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
  padding: 16px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  min-width: 0;
  padding: 0 18px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.fact:first-child {
  padding-left: 0;
}

.fact:last-child {
  border-right: 0;
}

.fact small,
.fact strong,
.fact span {
  display: block;
}

.fact small {
  margin-bottom: 3px;
  color: #929299;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.fact strong {
  color: #68686e;
  font-size: 22px;
  line-height: 1.05;
}

.fact span {
  margin-top: 4px;
  color: #8d8d92;
  font-size: 10px;
}

.stars {
  color: #818187;
  letter-spacing: -0.08em;
}

.store-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.section-heading a,
.version {
  color: var(--blue);
  font-size: 13px;
}

.preview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.preview-card {
  position: relative;
  min-height: 340px;
  padding: 22px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(155deg, #07130c, #0d3d24);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.preview-card:nth-child(2) {
  background: linear-gradient(150deg, #eff9f2, #cdeedb);
  color: #082617;
}

.preview-card:nth-child(3) {
  background: linear-gradient(155deg, #092418, #020805);
}

.preview-kicker {
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.preview-card:not(:nth-child(2)) .preview-kicker {
  color: #3de487;
}

.preview-card h3 {
  max-width: 220px;
  margin: 9px 0 0;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.mock-phone {
  position: absolute;
  right: -17%;
  bottom: -14%;
  width: 78%;
  aspect-ratio: 0.52;
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 32px;
  background: #050806;
  transform: rotate(8deg);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.36);
}

.mock-screen {
  height: 100%;
  padding: 24px 10px;
  border-radius: 23px;
  background:
    radial-gradient(circle at 70% 25%, rgba(53, 217, 120, 0.5), transparent 27%),
    linear-gradient(160deg, #092116, #020403);
}

.mock-pill,
.mock-line,
.mock-tile {
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.mock-pill {
  width: 38%;
  height: 7px;
}

.mock-line {
  width: 72%;
  height: 10px;
  margin-top: 15px;
}

.mock-line.short {
  width: 48%;
  opacity: 0.6;
}

.mock-tile {
  width: 100%;
  height: 42%;
  margin-top: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b8648, #36d97a);
}

.release {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

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

.release h3 {
  font-size: 15px;
}

.release p {
  margin-top: 8px;
  color: #57575c;
  line-height: 1.65;
}

.release time {
  color: #8c8c91;
  font-size: 12px;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px;
  border-radius: 15px;
  background: var(--surface);
}

.privacy-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 850;
}

.privacy-note strong,
.privacy-note span {
  display: block;
}

.privacy-note span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.bottom-install {
  position: fixed;
  z-index: 28;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  align-items: center;
  gap: 11px;
  padding: 10px 15px max(10px, env(safe-area-inset-bottom));
  border-top: 0.5px solid rgba(60, 60, 67, 0.2);
  background: rgba(249, 249, 251, 0.9);
  backdrop-filter: saturate(180%) blur(22px);
}

.bottom-install img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.bottom-copy {
  flex: 1;
  min-width: 0;
}

.bottom-copy strong,
.bottom-copy small {
  display: block;
}

.bottom-copy small {
  color: var(--muted);
  font-size: 10px;
}

.sheet {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 18px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(9px);
}

.sheet[hidden] {
  display: none;
}

.sheet-card {
  width: min(470px, 100%);
  margin: auto;
  padding: 13px 18px max(18px, env(safe-area-inset-bottom));
  border-radius: 26px;
  background: rgba(252, 252, 254, 0.98);
  box-shadow: 0 25px 100px rgba(0, 0, 0, 0.38);
  animation: sheet-in 0.34s cubic-bezier(0.18, 0.9, 0.35, 1);
}

.sheet-handle {
  width: 38px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #d0d0d4;
}

.sheet-app {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sheet-app img {
  width: 54px;
  height: 54px;
  border-radius: 13px;
}

.sheet-app strong,
.sheet-app small {
  display: block;
}

.sheet-app small {
  color: var(--muted);
}

.sheet-card h2 {
  margin: 20px 0 12px;
  font-size: 21px;
}

.install-steps {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.install-steps li {
  position: relative;
  min-height: 42px;
  padding: 10px 12px 10px 48px;
  border-radius: 13px;
  background: #f0f0f3;
  color: #323236;
  counter-increment: steps;
}

.install-steps li::before {
  content: counter(steps);
  position: absolute;
  top: 8px;
  left: 9px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.sheet-close {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  background: #e7e7eb;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.line-badge {
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 9px;
  vertical-align: 2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(35px) scale(0.97);
  }
}

@media (max-width: 680px) {
  .statusbar {
    display: flex;
  }

  .store-nav {
    top: 0;
  }

  .nav-inner {
    min-height: 44px;
    padding: 0 14px;
  }

  .official-chip {
    display: inline-block;
  }

  .store-page {
    padding: 20px 16px 100px;
  }

  .app-hero {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 17px;
  }

  .app-icon {
    width: 112px;
    height: 112px;
    border-radius: 25px;
  }

  .app-copy h1 {
    margin-top: 3px;
    font-size: 25px;
  }

  .app-subtitle {
    min-height: 36px;
    margin: 5px 0 9px;
    font-size: 13px;
  }

  .developer {
    display: none;
  }

  .install-row .install-meta {
    display: none;
  }

  .install-action {
    min-width: 76px;
    min-height: 44px;
    padding: 0 17px;
    font-size: 13px;
  }

  [data-platform="android"] .install-action {
    min-width: 106px;
  }

  .facts {
    margin-top: 22px;
  }

  .fact {
    padding: 0 8px;
  }

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

  .fact span {
    font-size: 9px;
  }

  .preview-strip {
    display: flex;
    gap: 12px;
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .preview-strip::-webkit-scrollbar {
    display: none;
  }

  .preview-card {
    flex: 0 0 72vw;
    min-height: 365px;
    scroll-snap-align: start;
  }

  .bottom-install {
    display: flex;
  }

  .sheet {
    padding: 10px;
  }

  .feature-grid { grid-template-columns:1fr; }
  .feature-grid article { min-height:auto; }
  .facts { grid-template-columns:repeat(2,1fr); gap:14px 0; }
  .fact:nth-child(2) { border-right:0; }
  .fact strong { font-size:16px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
