/* App Store lookalike — mobile-first ad landing */

:root {
  --as-bg: #000;
  --as-text: #fff;
  --as-secondary: rgba(235, 235, 245, 0.6);
  --as-tertiary: rgba(235, 235, 245, 0.3);
  --as-blue: #0a84ff;
  --as-blue-pressed: #0a84ffcc;
  --as-max: 430px;
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #000;
  color: #fff;
}

.as-page {
  min-height: 100dvh;
  background: var(--as-bg);
  color: var(--as-text);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

.as-mini {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  width: min(100%, var(--as-max));
  height: calc(54px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 16px 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  box-shadow: inset 0 -0.5px 0 rgba(255, 255, 255, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.as-mini.is-on {
  opacity: 1;
  pointer-events: auto;
}

.as-mini__icon {
  position: absolute;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 9px);
  width: 36px;
  height: 36px;
  transform: translateX(-50%);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.18);
}

.as-shell {
  width: min(100%, var(--as-max));
  margin-inline: auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.as-header {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  padding: 20px 20px 18px;
  align-items: start;
}

.as-icon {
  width: 118px;
  height: 118px;
  border-radius: 26px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

.as-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.as-header__meta {
  min-width: 0;
  padding-top: 2px;
}

.as-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.as-subtitle {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--as-secondary);
}

.as-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.as-get {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 28px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--as-blue);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

.as-get:active {
  background: var(--as-blue-pressed);
}

.as-iap {
  margin: 0;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--as-secondary);
  max-width: 72px;
}

.as-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 20px 18px;
  padding: 14px 0;
  overflow: hidden;
  border-top: 0.5px solid rgba(255, 255, 255, 0.2);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
}

.as-stat {
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  align-items: start;
  text-align: center;
  gap: 4px;
  min-width: 0;
  padding: 0 6px;
  position: relative;
}

.as-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 0.5px;
  background: rgba(255, 255, 255, 0.2);
}

.as-stat__label {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--as-tertiary);
  white-space: nowrap;
}

.as-stat__value {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--as-secondary);
}

.as-stat__value--word {
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.03em;
}

.as-stat__caption,
.as-stars {
  align-self: end;
  margin: 0;
  min-height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--as-secondary);
}

.as-stat__caption {
  font-size: 11px;
  font-weight: 400;
  line-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.as-stars svg {
  width: 10px;
  height: 10px;
  display: block;
}

.as-shots {
  padding: 4px 0 24px;
}

.as-shots__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  -webkit-overflow-scrolling: touch;
  padding-inline: 20px;
  scrollbar-width: none;
}

.as-shots__track::-webkit-scrollbar {
  display: none;
}

.as-shot {
  flex: 0 0 auto;
  margin: 0;
  width: min(62vw, 248px);
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

.as-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1242 / 2688;
  object-fit: cover;
  display: block;
}

.as-reviews {
  padding: 20px 0 32px;
}

.as-reviews__rule {
  display: block;
  height: 0;
  margin: 0 20px 20px;
  padding: 0;
  border: none;
  border-top: 0.5px solid rgba(255, 255, 255, 0.2);
}

.as-section-rule {
  display: block;
  height: 0;
  margin: 0 20px 18px;
  padding: 0;
  border: none;
  border-top: 0.5px solid rgba(255, 255, 255, 0.2);
}

.as-section-title {
  margin: 0;
  padding: 0 20px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--as-text);
}

.as-whats-new {
  padding: 4px 0 8px;
}

.as-whats-new__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px 8px;
}

.as-whats-new__version,
.as-whats-new__date {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--as-secondary);
}

.as-whats-new__body {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--as-text);
}

.as-info {
  padding: 8px 0 40px;
}

.as-info__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0 20px;
}

.as-info__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 11px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
}

.as-info__row:last-child {
  border-bottom: none;
}

.as-info__label {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--as-secondary);
}

.as-info__value {
  min-width: 0;
  text-align: right;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--as-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-reviews__title {
  margin: 0;
  padding: 0 20px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.as-reviews__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 18px;
}

.as-reviews__score {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--as-text);
}

.as-reviews__summary-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}

.as-stars--lg svg {
  width: 14px;
  height: 14px;
}

.as-reviews__count {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--as-secondary);
}

.as-reviews__eyebrow {
  margin: 0;
  padding: 0 20px 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.as-reviews__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  -webkit-overflow-scrolling: touch;
  padding-inline: 20px;
  scrollbar-width: none;
}

.as-reviews__track::-webkit-scrollbar {
  display: none;
}

.as-review {
  flex: 0 0 auto;
  width: min(78vw, 300px);
  scroll-snap-align: start;
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: #1c1c1e;
  box-sizing: border-box;
}

.as-review__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.as-review__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 10px;
}

.as-review__by {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  color: var(--as-secondary);
}

.as-review__body {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--as-text);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 700px) {
  .as-page {
    background: #0a0a0a;
  }

  .as-shell {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}
