/* The App Store preview: controls of the modal, then the iPhone mock drawn
   in points (one CSS pixel per point at 100%). The mock keeps Apple's own
   colours in both themes; it is a picture of the store, not of this page. */

.store-head { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; padding-inline-end: 40px; }
.store-head h2 { margin: 0; }
.store-controls { display: flex; flex-wrap: wrap; gap: var(--s3); }
.store-control { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; }
.store-control select { min-height: var(--control-sm); padding-block: 2px; font-size: 12.5px; }
.store-stage { display: flex; flex-wrap: wrap; gap: var(--s6); justify-content: center; margin-top: var(--s4); }
.store-stage figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.store-stage figcaption { max-width: 22rem; font-size: 12.5px; color: var(--ink-2); text-align: center; }

/* ---------------------------------------------------------------- App Store mock (sizes in points) */

.as-phone {
  --as-bg: #FFFFFF; --as-ink: #000000; --as-sub: #8A8A8E; --as-line: #D8D8DC; --as-fill: #EEEEF0; --as-get: #EEF0F7; --as-blue: #007AFF; --as-bar: rgba(249, 249, 249, 0.94);
  width: 417px; padding: 12px; border-radius: 62px; background: #1B1B1D; box-shadow: 0 0 0 2px #3A3A3D, 0 18px 50px rgba(0, 0, 0, 0.35);
  font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif; -webkit-font-smoothing: antialiased; flex: none;
}
.as-phone.is-dark { --as-bg: #000000; --as-ink: #FFFFFF; --as-sub: #8D8D93; --as-line: #2C2C2E; --as-fill: #1C1C1E; --as-get: #2C2C2E; --as-blue: #0A84FF; --as-bar: rgba(22, 22, 24, 0.94); }
.as-screen { position: relative; width: 393px; height: 852px; border-radius: 50px; overflow: hidden; background: var(--as-bg); color: var(--as-ink); display: flex; flex-direction: column; }
.as-status { height: 54px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 30px 0 50px; position: relative; direction: ltr; }
.as-time { font-size: 17px; font-weight: 600; }
.as-island { position: absolute; left: 50%; top: 11px; width: 126px; height: 37px; margin-left: -63px; border-radius: 20px; background: #000; }
.as-icons { display: flex; align-items: center; gap: 6px; }
.as-bars { display: flex; align-items: flex-end; gap: 1.5px; height: 11px; }
.as-bars i { width: 3px; border-radius: 1px; background: var(--as-ink); }
.as-bars i:nth-child(1) { height: 4px; } .as-bars i:nth-child(2) { height: 6px; } .as-bars i:nth-child(3) { height: 8.5px; } .as-bars i:nth-child(4) { height: 11px; }
.as-battery { position: relative; width: 25px; height: 12px; border: 1.2px solid color-mix(in srgb, var(--as-ink) 45%, transparent); border-radius: 4px; padding: 1.5px; }
.as-battery i { display: block; height: 100%; width: 82%; border-radius: 2px; background: var(--as-ink); }
.as-battery::after { content: ''; position: absolute; right: -3.5px; top: 3.5px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: color-mix(in srgb, var(--as-ink) 45%, transparent); }
.as-searchbar { display: flex; align-items: center; gap: 12px; padding: 4px 16px 10px; flex: none; }
.as-field { flex: 1; height: 36px; border-radius: 10px; background: var(--as-fill); display: flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 17px; min-width: 0; }
.as-field span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.as-glass { width: 13px; height: 13px; border: 2px solid var(--as-sub); border-radius: 50%; flex: none; position: relative; }
.as-glass::after { content: ''; position: absolute; width: 2px; height: 6px; background: var(--as-sub); right: -4px; bottom: -6px; transform: rotate(-45deg); }
.as-link { color: var(--as-blue); font-size: 17px; }
.as-nav { height: 44px; flex: none; display: flex; align-items: center; padding: 0 16px; }
.as-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 90px; scrollbar-width: none; }
.as-result { padding: 14px 20px 22px; border-top: 0.5px solid var(--as-line); }
.as-result:first-child { border-top: 0; }
.as-row { display: flex; align-items: center; gap: 12px; }
.as-icon { display: block; flex: none; object-fit: cover; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.as-icon.s60 { width: 60px; height: 60px; border-radius: 13.4px; }
.as-icon.s118 { width: 118px; height: 118px; border-radius: 26.4px; }
.as-icon.is-empty { display: grid; place-items: center; background: var(--as-fill); color: var(--as-sub); font-size: 28px; font-weight: 700; }
.as-meta { flex: 1; min-width: 0; display: grid; gap: 1px; }
.as-meta strong { font-size: 17px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.as-meta span { font-size: 15px; color: var(--as-sub); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.as-get { flex: none; min-width: 74px; height: 30px; border-radius: 15px; background: var(--as-get); color: var(--as-blue); font-size: 15px; font-weight: 700; display: grid; place-items: center; padding: 0 14px; }
.as-get.is-filled { background: var(--as-blue); color: #fff; height: 28px; }
.as-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px; }
.as-thumbs img { width: 100%; display: block; aspect-ratio: 1320 / 2868; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.as-thumbs.is-placeholder span { aspect-ratio: 1320 / 2868; border-radius: 10px; background: var(--as-fill); }
.as-header { display: flex; gap: 16px; padding: 4px 18px 18px; }
.as-head-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.as-head-meta strong { font-size: 22px; font-weight: 700; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-head-meta > span { font-size: 15px; color: var(--as-sub); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.as-share { width: 18px; height: 22px; border: 2px solid var(--as-blue); border-top: 0; border-radius: 2px; position: relative; }
.as-share::before { content: ''; position: absolute; left: 50%; top: -9px; width: 2px; height: 16px; margin-left: -1px; background: var(--as-blue); }
.as-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 0.5px solid var(--as-line); border-bottom: 0.5px solid var(--as-line); margin: 0 18px; padding: 10px 0; }
.as-stat { display: grid; justify-items: center; gap: 2px; text-align: center; border-inline-start: 0.5px solid var(--as-line); }
.as-stat:first-child { border-inline-start: 0; }
.as-stat small { font-size: 11px; color: var(--as-sub); font-weight: 600; }
.as-stat b { font-size: 20px; color: var(--as-sub); }
.as-stat span { font-size: 12px; color: var(--as-sub); }
.as-shots { display: flex; gap: 10px; overflow-x: auto; padding: 16px 18px 6px; scroll-snap-type: x mandatory; scroll-padding: 18px; scrollbar-width: none; }
.as-shots img { width: 220px; flex: none; display: block; aspect-ratio: 1320 / 2868; object-fit: cover; border-radius: 20px; scroll-snap-align: start; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.as-device { display: flex; align-items: center; gap: 6px; padding: 8px 18px; font-size: 13px; color: var(--as-sub); }
.as-device i { width: 9px; height: 15px; border: 1.5px solid var(--as-sub); border-radius: 3px; }
.as-desc { padding: 6px 18px 0; font-size: 15px; line-height: 1.35; margin: 0; max-width: none; }
.as-tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 83px; background: var(--as-bar); backdrop-filter: blur(20px); border-top: 0.5px solid var(--as-line); display: grid; grid-template-columns: repeat(5, 1fr); padding-top: 7px; direction: ltr; }
.as-tab { display: grid; justify-items: center; align-content: start; gap: 3px; font-size: 10px; font-weight: 500; color: #999; }
.as-tab i { width: 24px; height: 24px; border-radius: 7px; background: currentColor; opacity: 0.55; }
.as-tab.is-on { color: var(--as-blue); }
.as-tab.is-on i { opacity: 1; }

/* ---------------------------------------------------------------- Google Play mock (sizes in dp, approximate) */

.gp-phone {
  --gp-bg: #FFFFFF; --gp-ink: #1F1F1F; --gp-sub: #444746; --gp-fill: #E9EEF6; --gp-line: #C4C7C5; --gp-green: #01875F; --gp-on-green: #FFFFFF;
  --gp-nav: #F3F6FC; --gp-chip-on: #C4EED0; --gp-chip-ink: #072711; --gp-pill: #C2E7FF;
  width: 432px; padding: 10px; border-radius: 46px; background: #161618; box-shadow: 0 0 0 2px #3A3A3D, 0 18px 50px rgba(0, 0, 0, 0.35);
  font-family: 'Google Sans', Roboto, system-ui, sans-serif; -webkit-font-smoothing: antialiased; flex: none;
}
.gp-phone.is-dark {
  --gp-bg: #131314; --gp-ink: #E3E3E3; --gp-sub: #C4C7C5; --gp-fill: #282A2C; --gp-line: #444746; --gp-green: #5BD3A2; --gp-on-green: #003826;
  --gp-nav: #1E1F20; --gp-chip-on: #0F5132; --gp-chip-ink: #C4EED0; --gp-pill: #004A77;
}
.gp-screen { position: relative; width: 412px; height: 915px; border-radius: 36px; overflow: hidden; background: var(--gp-bg); color: var(--gp-ink); display: flex; flex-direction: column; }
.gp-status { height: 36px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font-size: 14px; position: relative; direction: ltr; }
.gp-camera { position: absolute; left: 50%; top: 9px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #000; }
.gp-sys { display: flex; align-items: center; gap: 6px; }
.gp-sys i { display: block; background: var(--gp-ink); }
.gp-wifi { width: 14px; height: 11px; clip-path: polygon(50% 100%, 0 25%, 100% 25%); border-radius: 2px; }
.gp-cell { width: 12px; height: 12px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.gp-batt { width: 8px; height: 14px; border-radius: 2px; }
.gp-gesture { position: absolute; left: 50%; bottom: 8px; width: 108px; height: 4px; margin-left: -54px; border-radius: 2px; background: color-mix(in srgb, var(--gp-ink) 55%, transparent); z-index: 2; }
.gp-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 100px; scrollbar-width: none; }
.gp-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; padding-top: 12px; background: var(--gp-nav); display: grid; grid-template-columns: repeat(4, 1fr); direction: ltr; }
.gp-tab { display: grid; justify-items: center; align-content: start; gap: 4px; font-size: 12px; font-weight: 500; color: var(--gp-sub); }
.gp-tab i { width: 22px; height: 22px; margin: 3px 0; border-radius: 6px; background: currentColor; opacity: 0.55; }
.gp-tab.is-on { color: var(--gp-ink); }
/* The active tab's icon sits in a pill (Material 3 navigation bar). */
.gp-tab.is-on i { width: 56px; height: 28px; margin: 0; border-radius: 14px; opacity: 1; background: radial-gradient(circle, var(--gp-ink) 0 7px, var(--gp-pill) 7.5px); }

.gp-icon { display: block; flex: none; object-fit: cover; }
.gp-icon.s40 { width: 40px; height: 40px; border-radius: 8px; }
.gp-icon.s56 { width: 56px; height: 56px; border-radius: 11.2px; }
.gp-icon.s72 { width: 72px; height: 72px; border-radius: 14.4px; }
.gp-icon.is-empty { display: grid; place-items: center; background: var(--gp-fill); color: var(--gp-sub); font-size: 24px; font-weight: 500; }

.gp-back { width: 12px; height: 12px; border-left: 2px solid var(--gp-ink); border-bottom: 2px solid var(--gp-ink); transform: rotate(45deg); flex: none; margin-inline-start: 4px; }
[dir="rtl"] .gp-back { transform: rotate(-135deg); }
.gp-glass { width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; position: relative; flex: none; }
.gp-glass::after { content: ''; position: absolute; width: 2px; height: 7px; background: currentColor; right: -4px; bottom: -6px; transform: rotate(-45deg); }
.gp-mic { width: 10px; height: 16px; border-radius: 5px; background: var(--gp-sub); flex: none; }
.gp-more { width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor; }
.gp-arrow { width: 10px; height: 10px; border-top: 2px solid var(--gp-sub); border-right: 2px solid var(--gp-sub); transform: rotate(45deg); flex: none; }
[dir="rtl"] .gp-arrow { transform: rotate(-135deg); }

.gp-searchbar { margin: 8px 16px; height: 56px; flex: none; border-radius: 28px; background: var(--gp-fill); display: flex; align-items: center; gap: 16px; padding: 0 20px 0 16px; }
.gp-query { flex: 1; min-width: 0; font-size: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gp-result { padding: 12px 16px 20px; }
.gp-row { display: flex; align-items: center; gap: 16px; }
.gp-meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gp-meta strong { font-size: 16px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gp-meta small { font-size: 12px; color: var(--gp-sub); }
.gp-dev { font-size: 14px; color: var(--gp-sub); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gp-dev.is-unknown { opacity: 0.6; font-style: italic; }
.gp-install { margin: 16px 24px 8px; height: 40px; border-radius: 20px; background: var(--gp-green); color: var(--gp-on-green); font-size: 14px; font-weight: 500; display: grid; place-items: center; }
.gp-install.is-small { margin: 0; height: 32px; border-radius: 16px; padding: 0 16px; flex: none; }
.gp-thumbs { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.gp-thumbs img, .gp-thumbs .is-missing { height: 216px; width: auto; aspect-ratio: 9 / 16; flex: none; display: block; object-fit: cover; border-radius: 8px; }
.gp-row.is-placeholder { padding: 12px 16px; }
.gp-bar { display: block; height: 10px; border-radius: 5px; background: var(--gp-fill); margin: 3px 0; }
.gp-bar.w60 { width: 60%; } .gp-bar.w40 { width: 40%; } .gp-bar.w30 { width: 30%; }
.is-missing { background: var(--gp-fill); color: var(--gp-sub); font-size: 12px; display: grid; place-items: center; }

.gp-appbar { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.gp-appbar-end { display: flex; align-items: center; gap: 28px; }
.gp-header { display: flex; gap: 20px; align-items: center; padding: 4px 24px 16px; }
.gp-head-meta { flex: 1; min-width: 0; display: grid; gap: 6px; }
.gp-head-meta strong { font-size: 24px; font-weight: 400; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gp-head-meta .gp-dev { color: var(--gp-green); font-weight: 500; }
.gp-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 24px; padding: 4px 0; }
.gp-stats > div { display: grid; justify-items: center; gap: 2px; border-inline-start: 1px solid var(--gp-line); }
.gp-stats > div:first-child { border-inline-start: 0; }
.gp-stats b { font-size: 14px; font-weight: 500; }
.gp-stats small { font-size: 12px; color: var(--gp-sub); }
.gp-rated { padding: 0 3px; border: 1.5px solid var(--gp-ink); border-radius: 3px; font-size: 11px !important; }
.gp-media { display: flex; gap: 8px; overflow-x: auto; padding: 8px 24px; scrollbar-width: none; }
.gp-video { position: relative; flex: none; width: 356px; height: 200px; border-radius: 12px; overflow: hidden; background: var(--gp-fill); }
.gp-video img, .gp-card-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gp-video .is-missing, .gp-card-art .is-missing { width: 100%; height: 100%; }
.gp-shots { display: flex; gap: 8px; flex: none; }
.gp-shots img, .gp-shots .is-missing { height: 200px; width: auto; aspect-ratio: 9 / 16; flex: none; display: block; object-fit: cover; border-radius: 12px; }
.gp-about { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 6px; }
.gp-about strong { font-size: 18px; font-weight: 500; }
.gp-desc.is-empty { font-style: italic; opacity: 0.6; }
.gp-desc { margin: 0; padding: 0 24px; font-size: 14px; line-height: 1.45; color: var(--gp-sub); max-width: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.gp-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); }
.gp-play::after { content: ''; position: absolute; left: 22px; top: 17px; border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
/* What a 16:9 frame keeps of a 1024 × 500 graphic: 67.6 px, 6.6%, goes on each side. */
.gp-edge { position: absolute; top: 0; bottom: 0; width: 6.6%; background: repeating-linear-gradient(135deg, rgba(255, 59, 48, 0.45) 0 6px, rgba(255, 59, 48, 0.2) 6px 12px); }
.gp-edge.is-start { left: 0; }
.gp-edge.is-end { right: 0; }

.gp-home-top { display: flex; align-items: center; gap: 12px; padding: 8px 16px; flex: none; }
.gp-home-search { flex: 1; height: 48px; border-radius: 24px; background: var(--gp-fill); display: flex; align-items: center; gap: 14px; padding: 0 18px; font-size: 16px; color: var(--gp-sub); }
.gp-avatar { width: 32px; height: 32px; border-radius: 50%; background: #8AB4F8; flex: none; }
.gp-chips { display: flex; gap: 8px; padding: 4px 16px 8px; overflow: hidden; flex: none; }
.gp-chip { flex: none; height: 32px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--gp-line); font-size: 14px; font-weight: 500; display: grid; place-items: center; color: var(--gp-sub); }
.gp-chip.is-on { background: var(--gp-chip-on); color: var(--gp-chip-ink); border-color: transparent; }
.gp-section { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px; }
.gp-section strong { font-size: 18px; font-weight: 500; }
.gp-cards { display: flex; gap: 12px; padding: 0 16px; overflow: hidden; }
.gp-card { flex: none; width: 330px; display: grid; gap: 10px; }
.gp-card-art { position: relative; display: block; width: 100%; aspect-ratio: 1024 / 500; border-radius: 16px; overflow: hidden; background: var(--gp-fill); }
.gp-card .gp-row { gap: 12px; }
.gp-minis { display: flex; gap: 22px; padding: 0 16px; }
