:root {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: #171b19;
  background: #f3f5f3;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
[hidden] { display: none !important; }

.app-page {
  width: min(100%, 680px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 25px 36px;
  background: #fff;
}

.app-identity { display: flex; align-items: center; gap: 22px; }
.app-icon { display: block; width: 82px; height: 82px; flex: none; object-fit: cover; border-radius: 18px; }
.app-names { min-width: 0; }
.app-names h1 { margin: 0 0 4px; font-size: 29px; line-height: 1.12; font-weight: 500; letter-spacing: -.02em; }
.app-names p { margin: 0; }
.publisher { color: #087758; font-size: 21px; line-height: 1.25; }
.verified-line { color: #626a66; font-size: 14px; line-height: 1.4; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 27px 0 25px; }
.fact { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 0 6px; text-align: center; }
.fact + .fact { border-left: 1px solid #e0e5e1; }
.fact strong { font-size: 16px; line-height: 1.25; font-weight: 700; }
.fact span { margin-top: 4px; color: #626a66; font-size: 12px; line-height: 1.3; }

.invitation { margin: 0 0 13px; padding: 10px 12px; border-radius: 8px; background: #e8f6ee; color: #096343; font-size: 13px; }
.download-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 16px; border: 0; border-radius: 8px; background: #07875d; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.download-button:not(:disabled):hover { background: #06704e; }
.download-button:disabled { background: #709788; cursor: not-allowed; }
.download-status { margin: 9px 0 0; color: #8a561a; font-size: 13px; line-height: 1.4; }

.quick-actions { display: flex; align-items: center; justify-content: center; gap: clamp(30px, 12vw, 85px); min-height: 76px; }
.quick-action { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; border: 0; background: none; color: #087758; font-size: 15px; cursor: pointer; }
.quick-action svg { color: #171b19; }
.quick-action:hover span { text-decoration: underline; }
.browser-help { margin-bottom: 18px; padding: 13px 15px; border-radius: 9px; background: #f0f6f2; color: #25352d; font-size: 13px; line-height: 1.45; }
.browser-help p { margin: 5px 0 0; }

.preview-section { margin: 2px -25px 0; padding: 21px 0 16px; background: linear-gradient(155deg, #003a36, #001f22 58%, #041827); border-block: 1px solid #087b72; }
.preview-heading { position: relative; margin: 0 25px 15px; }
.preview-eyebrow { color: #50e3b5; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.preview-section h2 { margin: 5px 0 0; color: #fff; font-size: 23px; line-height: 1.2; }
.preview-countries { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.preview-countries span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #317f79; border-radius: 999px; background: #0a4843; color: #e9fff7; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.preview-countries img { display: block; width: 24px; height: 16px; object-fit: contain; }
.preview-controls { position: absolute; top: 15px; right: 0; display: flex; gap: 6px; }
.preview-controls button { width: 30px; height: 30px; padding: 0; border: 1px solid #4b9c91; border-radius: 50%; background: #0b4b45; color: #fff; font-size: 25px; line-height: 1; cursor: pointer; }
.preview-controls button:disabled { opacity: .4; cursor: default; }
.preview-card figcaption { display: flex; justify-content: space-between; gap: 6px; padding: 8px 1px 0; color: #f0faf5; font-size: 12px; font-weight: 600; }
.preview-card figcaption span { color: #8fbdb4; font-size: 10px; font-weight: 400; white-space: nowrap; }
.preview-rail { display: flex; align-items: flex-start; gap: 11px; margin: 0 25px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 0 0 12px; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.preview-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.preview-rail::-webkit-scrollbar { display: none; }
.preview-card { flex: 0 0 clamp(190px, 55vw, 220px); margin: 0; scroll-snap-align: start; }
.preview-card > img, .preview-card > .preview-shot { display: block; width: 100%; height: 410px; border: 1px solid #1c978f; border-radius: 8px; background: #002822; }
.preview-card > img { object-fit: contain; pointer-events: none; }
.preview-shot { position: relative; overflow: hidden; border: 1px solid #1c978f; border-radius: 8px; background: #002822; }
.preview-shot img { position: absolute; display: block; max-width: none; pointer-events: none; }
.preview-shot--portrait img { top: -4.1%; left: 50%; width: auto; height: 104.1%; transform: translateX(-50%); }
.preview-shot--rotated img { top: calc(50% - 8px); left: 50%; width: 427px; height: auto; transform: translate(-50%, -50%) rotate(90deg); }
.preview-note { margin: 0 25px; color: #a7c8c2; font-size: 11px; line-height: 1.4; }

.about-section { padding: 21px 0 20px; }
.about-section h2 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; font-size: 21px; line-height: 1.25; }
.about-section h2 span { font-size: 24px; font-weight: 400; }
.about-section p { margin: 0 0 14px; color: #646b67; font-size: 14px; line-height: 1.55; }
.page-footer { width: min(100%, 680px); margin: 0 auto; padding: 0 25px 24px; background: #fff; color: #727973; font-size: 12px; text-align: center; }
:focus-visible { outline: 3px solid #0a7454; outline-offset: 3px; }

@media (max-width: 360px) {
  .app-page { padding-inline: 18px; }
  .preview-section { margin-inline: -18px; }
  .preview-heading, .preview-note { margin-inline: 18px; }
  .preview-rail { margin-inline: 18px; }
  .app-identity { gap: 15px; }
  .app-icon { width: 72px; height: 72px; }
  .app-names h1 { font-size: 26px; }
  .publisher { font-size: 18px; }
}
