/* appstore application styles. This file is intentionally kept readable and unminified. */

.promo-carousel {
  --ctrl-h: 10px;
  --ctrl-bottom: 28px;
  --ctrl-gap: 32px;
  --pad-b: calc(var(--ctrl-h) + var(--ctrl-bottom) + var(--ctrl-gap));
  position: relative;
  width: 100%;
  min-height: 500px;
  max-height: 780px;
  overflow: hidden;
  background: var(--c-surface);
}

@media (min-width: 768px) {
  .promo-carousel {
    --ctrl-bottom: 36px;
    --ctrl-gap: 40px;
    min-height: 540px;
    max-height: 820px;
  }
}

@media (min-width: 1024px) {
  .promo-carousel {
    min-height: 580px;
    max-height: 860px;
  }
}

.promo-carousel {
  font-family: var(--font-sans);
  --lh-tight: 1.14;
  --lh-snug: 1.5;

  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 17px;
}

.carousel-track {
  display: flex;
  min-height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.promo-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--slide-fallback, #10161a);
}

.promo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.promo-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px) saturate(1.35) brightness(0.6);
  transform: scale(1.15);
}

.promo-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      120% 84% at 50% 30%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.3) 62%,
      rgba(0, 0, 0, 0.5) 100%
    ),
    linear-gradient(
      180deg,
      rgba(4, 8, 7, 0.46) 0%,
      rgba(4, 8, 7, 0.56) 52%,
      rgba(4, 8, 7, 0.76) 100%
    );
  z-index: 1;
}

[data-theme="dark"] .promo-overlay {
  background:
    radial-gradient(
      120% 84% at 50% 30%,
      rgba(0, 0, 0, 0.06) 0%,
      rgba(0, 0, 0, 0.36) 62%,
      rgba(0, 0, 0, 0.54) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 5, 4, 0.52) 0%,
      rgba(2, 5, 4, 0.62) 52%,
      rgba(2, 5, 4, 0.8) 100%
    );
}

.promo-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  padding: var(--sp-6) var(--gutter) var(--pad-b);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .promo-content {
    padding: var(--sp-8) var(--gutter) var(--pad-b);
    gap: var(--sp-5);
  }
}

.promo-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.promo-glyph {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 22%;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ic-ink);
  text-shadow: var(--ic-halo);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 20px 48px rgba(0, 0, 0, 0.3);
}

.promo-glyph > i {
  display: block;
  font-style: normal;
  line-height: 1;
}
@supports (text-box: trim-both cap alphabetic) {
  .promo-glyph > i {
    text-box: trim-both cap alphabetic;
  }
}
@media (min-width: 768px) {
  .promo-glyph {
    width: 140px;
    height: 140px;
    font-size: 64px;
  }
}
@media (min-width: 1024px) {
  .promo-glyph {
    width: 160px;
    height: 160px;
    font-size: 72px;
  }
}
@media (max-width: 479px) {
  .promo-glyph {
    width: 110px;
    height: 110px;
    font-size: 50px;
  }
}

.promo-icon {
  width: 120px;
  height: 120px;
  border-radius: 22%;
  flex-shrink: 0;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 20px 48px rgba(0, 0, 0, 0.3);
  background: var(--c-surface);
}

@media (min-width: 768px) {
  .promo-icon {
    width: 140px;
    height: 140px;
  }
}

@media (min-width: 1024px) {
  .promo-icon {
    width: 160px;
    height: 160px;
  }
}

.promo-header .badge {
  position: static;
}

.promo-name {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: var(--lh-tight);
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .promo-name {
    font-size: var(--fs-3xl);
  }
}

@media (min-width: 1024px) {
  .promo-name {
    font-size: var(--fs-4xl);
  }
}

.promo-pitch {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.92);
  line-height: var(--lh-snug);
  margin: 0;
  max-width: 56ch;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .promo-pitch {
    font-size: var(--fs-lg);
  }
}

@media (min-width: 1024px) {
  .promo-pitch {
    font-size: var(--fs-xl);
  }
}

.promo-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: var(--fs-base);
  line-height: var(--lh-snug);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .promo-meta {
    font-size: var(--fs-md);
  }
}

html[dir="rtl"] .promo-meta {
  flex-direction: row-reverse;
}

.promo-meta > span {
  unicode-bidi: plaintext;
}

.promo-rate {
  color: #ffd93d;
  font-weight: 700;
}

.btn-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 34px;
  border-radius: var(--r-pill);
  background: #067a52;
  color: #fff;
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 10px rgba(0, 0, 0, 0.35),
    0 10px 28px rgba(6, 122, 82, 0.42);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  margin-top: var(--sp-2);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.btn-promo .bi {
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .btn-promo:hover {
    background: #0b9163;
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 4px 14px rgba(0, 0, 0, 0.35),
      0 14px 34px rgba(11, 145, 99, 0.5);
  }

  .btn-promo:hover .bi {
    transform: translateY(2px);
  }
}

.btn-promo:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 1px 6px rgba(0, 0, 0, 0.3),
    0 6px 18px rgba(6, 122, 82, 0.38);
}

.btn-promo:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 3px rgba(4, 8, 7, 0.9),
    0 0 0 6px rgba(255, 255, 255, 0.92);
}

@media (min-width: 768px) {
  .btn-promo {
    height: 58px;
    padding: 0 38px;
    font-size: var(--fs-xl);
  }
}

.carousel-controls {
  position: absolute;
  bottom: var(--ctrl-bottom);
  inset-inline: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.carousel-controls > * {
  pointer-events: auto;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 6px;
}

.carousel-dot {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition:
    width 0.35s cubic-bezier(0.65, 0, 0.35, 1),
    background-color 0.2s ease;
}

.carousel-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition:
    width 0.35s cubic-bezier(0.65, 0, 0.35, 1),
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

@media (hover: hover) {
  .carousel-dot:hover::after {
    background: rgba(255, 255, 255, 0.78);
  }
}

.carousel-dot:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(4, 8, 7, 0.6),
    0 0 0 4px #fff;
}

.carousel-dot.is-active {
  width: 46px;
}

.carousel-dot.is-active::after {
  width: 30px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(8, 12, 10, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.carousel-prev {
  inset-inline-start: clamp(16px, 3.2vw, 56px);
}
.carousel-next {
  inset-inline-end: clamp(16px, 3.2vw, 56px);
}

@media (hover: hover) {
  .carousel-btn:hover {
    background: rgba(8, 12, 10, 0.55);
    border-color: rgba(255, 255, 255, 0.42);
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(4, 8, 7, 0.7),
    0 0 0 4px rgba(255, 255, 255, 0.9);
}

@media (max-width: 1023px), (hover: none) {
  .carousel-btn {
    display: none;
  }
}

.hero-seo {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding-block: var(--sp-8);
}

@media (min-width: 1024px) {
  .hero-seo {
    padding-block: var(--sp-10);
  }
}

.hero-seo h1 {
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-4);

  max-width: 26ch;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .hero-seo h1 {
    font-size: var(--fs-4xl);
  }
}

.hero-seo h1 em {
  font-style: normal;
  color: var(--c-primary);
}

.hero-brief {
  font-size: var(--fs-md);
  color: var(--c-text-2);
  line-height: var(--lh-normal);
  margin: 0 0 var(--sp-5);

  max-width: 64ch;
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .hero-brief {
    font-size: var(--fs-lg);
  }
}

@media (min-width: 1024px) {
  .hero-seo h1,
  .hero-brief {
    width: 100%;
    max-width: none;
  }
}

.hero-brief strong {
  color: var(--c-text);
  font-weight: 700;
}

html[dir="rtl"] .carousel-btn .bi {
  transform: scaleX(-1);
}

@media (max-width: 479px) {
  .promo-carousel {
    --ctrl-bottom: 22px;
    --ctrl-gap: 28px;
    min-height: 440px;
    max-height: 720px;
  }

  .promo-content {
    padding: var(--sp-5) var(--sp-4) var(--pad-b);
    gap: var(--sp-3);
  }

  .promo-icon {
    width: 110px;
    height: 110px;
  }

  .promo-name {
    font-size: var(--fs-xl);
  }

  .promo-pitch {
    font-size: var(--fs-sm);
  }

  .promo-meta {
    font-size: var(--fs-sm);
    gap: 8px;
  }

  .btn-promo {
    height: 50px;
    padding: 0 28px;
    font-size: var(--fs-md);
  }
}

@media (prefers-contrast: high) {
  .carousel-btn {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.6);
  }
  .carousel-dot {
    border: 1px solid rgba(255, 255, 255, 0.6);
  }
  .carousel-dot.is-active {
    border-width: 0;
  }

  .btn-promo {
    border: 3px solid currentColor;
  }

  .promo-overlay {
    background: rgba(0, 0, 0, 0.85);
  }
}

.carousel-track {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.promo-screenshot {
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .carousel-btn,
  .carousel-dot,
  .btn-promo {
    transition: none;
  }

  .promo-screenshot {
    filter: blur(16px) saturate(1.1) brightness(0.6);
    transform: scale(1);
  }
}

.promo-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.promo-slide.is-loading::before {
  opacity: 1;
}

.promo-screenshot {
  opacity: 1;
}
