.app-dl-section,
.app-downloads,
.app-dl-nav {
  --app-dl-accent: var(
    --primary,
    var(--primary-color, var(--primary-blue, #2d7ff9))
  );
  --app-dl-accent-dim: var(
    --primary-dim,
    var(--primary-hover, var(--primary-blue-hover, var(--app-dl-accent)))
  );
  --app-dl-surface: var(--surface-bright, var(--card-bg, #ffffff));
  --app-dl-ink: var(
    --on-background,
    var(--heading-color, var(--text-color, #10192c))
  );
  --app-dl-soft: var(--on-surface-variant, var(--muted-text, #5d6a7e));
  --app-dl-btn: var(--app-dl-accent);
  --app-dl-btn-hover: var(--app-dl-accent-dim);
  --app-dl-btn-ink: #ffffff;
  --app-dl-pill: color-mix(
    in srgb,
    var(--app-dl-accent) 7%,
    var(--app-dl-surface)
  );
  --app-dl-pill-line: color-mix(in srgb, var(--app-dl-accent) 24%, transparent);
  --app-dl-tab-bg: var(
    --primary-container,
    color-mix(in srgb, var(--app-dl-accent) 16%, var(--app-dl-surface))
  );
  --app-dl-tab-ink: var(
    --on-primary-container,
    color-mix(in srgb, var(--app-dl-accent) 62%, var(--app-dl-ink))
  );
  --app-dl-wave-1: color-mix(in srgb, var(--app-dl-surface) 68%, transparent);
  --app-dl-wave-2: color-mix(in srgb, var(--app-dl-surface) 96%, transparent);
  --app-dl-wave-3: var(--app-dl-surface);
}

body.theme-dark .app-dl-section,
body.theme-dark .app-downloads,
body.theme-dark .app-dl-nav {
  --app-dl-btn: color-mix(in srgb, var(--app-dl-accent) 78%, #000000);
  --app-dl-btn-hover: color-mix(in srgb, var(--app-dl-accent) 90%, #000000);
  --app-dl-pill: color-mix(
    in srgb,
    var(--app-dl-accent) 16%,
    var(--app-dl-surface)
  );
  --app-dl-pill-line: color-mix(in srgb, var(--app-dl-accent) 42%, transparent);
}

.app-dl-section {
  position: relative;
  padding: clamp(56px, 7vw, 104px) 0;
  overflow: hidden;
}

.app-dl-inner {
  position: relative;
  z-index: 10;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.app-dl-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 340px;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(
      118% 126% at 84% 2%,
      color-mix(in srgb, var(--app-dl-accent) 62%, var(--app-dl-surface)) 0%,
      transparent 62%
    ),
    radial-gradient(
      86% 108% at 4% 96%,
      color-mix(in srgb, var(--app-dl-accent-dim) 34%, var(--app-dl-surface)) 0%,
      transparent 58%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--app-dl-accent) 42%, var(--app-dl-surface)) 0%,
      color-mix(in srgb, var(--app-dl-accent) 28%, var(--app-dl-surface)) 52%,
      color-mix(in srgb, var(--app-dl-accent) 34%, var(--app-dl-surface)) 100%
    );
  box-shadow: 0 34px 70px -30px
    color-mix(in srgb, var(--app-dl-accent) 44%, transparent);
}

body.theme-dark .app-dl-card {
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.62);
}

.app-dl-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 78%;
}

.app-dl-waves {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 168px;
  overflow: hidden;
  pointer-events: none;
}

.app-dl-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.app-dl-wave--1 {
  fill: var(--app-dl-wave-1);
  opacity: 0.9;
}

.app-dl-wave--2 {
  fill: var(--app-dl-wave-2);
  filter: blur(1.4px);
}

.app-dl-wave--3 {
  fill: var(--app-dl-wave-3);
}

.app-dl-mascot {
  position: absolute;
  inset-inline-end: 6%;
  bottom: -4px;
  z-index: 1;
  width: min(300px, 28%);
  filter: drop-shadow(
    0 20px 26px color-mix(in srgb, var(--app-dl-accent) 32%, transparent)
  );
  animation: app-dl-float 6s ease-in-out infinite;
}

.app-dl-mascot img {
  display: block;
  width: 100%;
  height: auto;
}

.app-dl-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1 1 380px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 280px;
  max-width: 640px;
  padding-block: 46px 50px;
  padding-inline: 52px 20px;
  border-radius: 30px;
  background: radial-gradient(
    132% 128% at 2% 36%,
    color-mix(in srgb, var(--app-dl-surface) 46%, transparent),
    transparent 64%
  );
}

.app-dl-card--photo .app-dl-copy {
  background: radial-gradient(
    135% 130% at 4% 34%,
    color-mix(in srgb, var(--app-dl-surface) 66%, transparent),
    transparent 60%
  );
}

[dir='rtl'] .app-dl-copy {
  background: radial-gradient(
    132% 128% at 98% 36%,
    color-mix(in srgb, var(--app-dl-surface) 46%, transparent),
    transparent 64%
  );
}

[dir='rtl'] .app-dl-card--photo .app-dl-copy {
  background: radial-gradient(
    135% 130% at 96% 34%,
    color-mix(in srgb, var(--app-dl-surface) 66%, transparent),
    transparent 60%
  );
}

[dir='rtl'] .app-dl-all-go svg {
  transform: scaleX(-1);
}

.app-dl-eyebrow {
  width: max-content;
  max-width: 100%;
  padding: 7px 15px;
  border: 1px solid color-mix(in srgb, var(--app-dl-surface) 94%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-dl-surface) 82%, transparent);
  color: var(--app-dl-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.app-dl-section .app-dl-title {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--app-dl-ink);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.8px;
  text-wrap: balance;
}

.app-dl-title .accent {
  color: var(--app-dl-accent);
}

.app-dl-lede {
  max-width: 48ch;
  margin: 0;
  color: var(--app-dl-soft);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
}

.app-dl-bullets {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-dl-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--app-dl-ink);
  font-size: 15.5px;
  font-weight: 600;
}

.app-dl-check {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--app-dl-surface) 78%, transparent);
  color: var(--app-dl-accent);
}

.app-dl-check svg {
  width: 13px;
  height: 13px;
}

.app-dl-section .app-dl-toggle {
  --seg-track-padding: 5px;
  --seg-track-radius: 999px;
  --seg-track-bg: color-mix(in srgb, var(--app-dl-surface) 72%, transparent);
  --seg-track-line: color-mix(in srgb, var(--app-dl-surface) 90%, transparent);
  --seg-tab-radius: 999px;
  --seg-tab-height: 40px;
  --seg-tab-padding: 0 18px;
  --seg-tab-font-size: 14px;
  --seg-pill-bg: var(--app-dl-tab-bg);
  --seg-pill-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--app-dl-accent) 28%, transparent);
  --seg-ink: color-mix(in srgb, var(--app-dl-ink) 72%, var(--app-dl-accent));
  --seg-ink-hover: var(--app-dl-ink);
  --seg-ink-active: var(--app-dl-tab-ink);
  margin-top: 4px;
  gap: 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.app-dl-section .app-dl-toggle .base-seg-tab {
  gap: 8px;
  letter-spacing: normal;
  text-transform: none;
}

.app-dl-section .app-dl-toggle .base-seg-tab-icon {
  width: 17px;
  height: 17px;
  color: var(--app-dl-accent);
}

.app-dl-section .app-dl-toggle .base-seg-tab--active .base-seg-tab-icon {
  color: var(--app-dl-tab-ink);
}

.app-dl-section .app-dl-toggle .base-seg-tab:focus-visible {
  outline: 2px solid var(--app-dl-accent) !important;
  outline-offset: 2px;
}

.app-dl-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.app-dl-panel[hidden] {
  display: none;
}

.app-dl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

a.app-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding-block: 10px;
  padding-inline: 18px 22px;
  border: 0;
  border-radius: 16px;
  background: var(--app-dl-btn);
  box-shadow: 0 14px 26px -12px
    color-mix(in srgb, var(--app-dl-btn) 70%, transparent);
  color: var(--app-dl-btn-ink);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

a.app-dl-btn:hover {
  background: var(--app-dl-btn-hover);
  box-shadow: 0 18px 30px -12px
    color-mix(in srgb, var(--app-dl-btn) 80%, transparent);
  color: var(--app-dl-btn-ink);
  text-decoration: none;
  transform: translateY(-2px);
}

a.app-dl-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--app-dl-accent) 45%, transparent);
  outline-offset: 3px;
}

.app-dl-btn-logo {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 26px;
  height: 26px;
}

.app-dl-btn-logo svg {
  width: 24px;
  height: 24px;
}

.app-dl-btn-text {
  display: grid;
  line-height: 1.05;
  text-align: start;
}

.app-dl-btn-text small {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}

.app-dl-btn-text b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

a.app-dl-btn--quiet {
  background: var(--app-dl-surface);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--app-dl-ink) 8%, transparent),
    0 10px 22px -14px rgba(0, 0, 0, 0.35);
  color: var(--app-dl-ink);
}

a.app-dl-btn--quiet .app-dl-btn-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: color-mix(
    in srgb,
    var(--app-dl-accent) 12%,
    var(--app-dl-surface)
  );
  color: var(--app-dl-accent);
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

a.app-dl-btn--quiet .app-dl-btn-logo svg {
  width: 20px;
  height: 20px;
}

a.app-dl-btn--quiet:hover {
  background: color-mix(
    in srgb,
    var(--app-dl-accent) 7%,
    var(--app-dl-surface)
  );
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--app-dl-accent) 55%, transparent),
    0 16px 28px -16px color-mix(in srgb, var(--app-dl-accent) 55%, transparent);
  color: var(--app-dl-ink);
}

a.app-dl-btn--quiet:hover .app-dl-btn-logo {
  background: var(--app-dl-btn);
  color: var(--app-dl-btn-ink);
}

a.app-dl-btn--quiet:hover small {
  color: var(--app-dl-accent);
  opacity: 1;
}

.app-dl-meta {
  margin: 0;
  color: var(--app-dl-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

a.app-dl-all {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  margin-top: 2px;
  padding-block: 8px;
  padding-inline: 10px 8px;
  border: 1px solid var(--app-dl-pill-line);
  border-radius: 999px;
  background: var(--app-dl-pill);
  box-shadow: 0 12px 28px -20px rgba(0, 0, 0, 0.45);
  color: var(--app-dl-ink);
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

a.app-dl-all:hover {
  background: color-mix(
    in srgb,
    var(--app-dl-accent) 12%,
    var(--app-dl-surface)
  );
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.45);
  color: var(--app-dl-ink);
  text-decoration: none;
}

a.app-dl-all:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--app-dl-accent) 45%, transparent);
  outline-offset: 3px;
}

.app-dl-all-icons {
  display: inline-flex;
  flex-shrink: 0;
}

.app-dl-all-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-inline-start: -8px;
  border: 2px solid var(--app-dl-pill);
  border-radius: 50%;
  background: var(--app-dl-surface);
  box-shadow: 0 0 0 1px var(--app-dl-pill-line);
  color: var(--app-dl-ink);
}

.app-dl-all-icon:first-child {
  margin-inline-start: 0;
}

.app-dl-all-icon svg {
  width: 15px;
  height: 15px;
}

.app-dl-all-text {
  display: grid;
  min-width: 0;
  line-height: 1.2;
  text-align: start;
}

.app-dl-all-text b {
  font-size: 15px;
}

.app-dl-all-text small {
  color: var(--app-dl-soft);
  font-size: 12.5px;
}

.app-dl-all-go {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-inline-start: 6px;
  border-radius: 50%;
  background: var(--app-dl-btn);
  color: var(--app-dl-btn-ink);
  transition: background-color 0.18s ease;
}

.app-dl-all-go svg {
  width: 16px;
  height: 16px;
}

a.app-dl-all:hover .app-dl-all-go {
  background: var(--app-dl-btn-hover);
}

.app-dl-qr {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  padding-block: 12px;
  padding-inline: 12px 20px;
  border: 1px solid color-mix(in srgb, var(--app-dl-ink) 8%, transparent);
  border-radius: 20px;
  background: var(--app-dl-surface);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.45);
  text-align: start;
}

.app-dl-qr-img {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  padding: 6px;
  border-radius: 14px;
  background: #ffffff;
}

.app-dl-qr-img img {
  display: block;
  width: 100%;
  height: 100%;
}

.app-dl-qr-text {
  display: grid;
  gap: 2px;
}

.app-dl-qr-text b {
  color: var(--app-dl-ink);
  font-size: 16px;
}

.app-dl-qr-text span {
  color: var(--app-dl-soft);
  font-size: 14px;
}

.app-dl-accent {
  position: relative;
  display: inline-block;
  color: var(--app-dl-accent);
}

.app-dl-swash {
  position: absolute;
  right: 0;
  bottom: -0.08em;
  left: 0;
  width: 100%;
  height: 0.24em;
  color: color-mix(in srgb, var(--app-dl-accent) 38%, transparent);
}

.app-dl-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 4px 0;
}

.app-dl-nav .app-dl-buttons--compact {
  justify-content: center;
}

.app-dl-nav a.app-dl-all {
  margin-top: 0;
}

.app-dl-buttons--compact {
  gap: 8px;
}

.app-dl-nav-os {
  display: contents;
}

.app-dl-buttons--compact a.app-dl-btn {
  gap: 10px;
  min-height: 48px;
  padding-block: 7px;
  padding-inline: 12px 16px;
  border-radius: 13px;
  box-shadow: none;
}

.app-dl-buttons--compact a.app-dl-btn:hover {
  transform: none;
}

.app-dl-buttons--compact a.app-dl-btn[hidden] {
  display: none;
}

.app-dl-buttons--compact .app-dl-btn-logo {
  width: 22px;
  height: 22px;
}

.app-dl-buttons--compact .app-dl-btn-logo svg {
  width: 20px;
  height: 20px;
}

.app-dl-buttons--compact a.app-dl-btn--quiet .app-dl-btn-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.app-dl-buttons--compact a.app-dl-btn--quiet .app-dl-btn-logo svg {
  width: 16px;
  height: 16px;
}

.app-dl-buttons--compact .app-dl-btn-text small {
  font-size: 10.5px;
}

.app-dl-buttons--compact .app-dl-btn-text b {
  font-size: 16px;
}

@keyframes app-dl-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 1100px) {
  .app-dl-copy {
    flex-basis: 340px;
    padding-block: 42px 46px;
    padding-inline: 40px 20px;
  }

  .app-dl-mascot {
    inset-inline-end: 4%;
    width: min(228px, 30%);
  }
}

@media (max-width: 860px) {
  .app-dl-card {
    min-height: 0;
    border-radius: 26px;
  }

  .app-dl-copy {
    flex: 1 1 100%;
    align-items: center;
    gap: 18px;
    min-width: 0;
    max-width: 100%;
    padding: 34px 22px 210px;
    background: radial-gradient(
      120% 90% at 50% 16%,
      color-mix(in srgb, var(--app-dl-surface) 76%, transparent),
      transparent 72%
    );
    text-align: center;
  }

  .app-dl-lede {
    margin-right: auto;
    margin-left: auto;
  }

  .app-dl-bullets li {
    text-align: start;
  }

  .app-dl-copy .app-dl-panel {
    align-items: center;
  }

  .app-dl-copy .app-dl-buttons {
    justify-content: center;
  }

  .app-dl-mascot {
    inset-inline-end: calc(50% - 86px);
    width: 172px;
  }

  .app-dl-waves {
    height: 122px;
  }
}

@media (max-width: 560px) {
  .app-dl-copy {
    padding: 30px 16px 190px;
  }

  .app-dl-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 380px;
  }

  a.app-dl-btn {
    min-height: 54px;
    padding: 8px 12px;
    gap: 9px;
    border-radius: 14px;
  }

  .app-dl-btn-text b {
    font-size: 16px;
  }

  .app-dl-section .app-dl-toggle {
    --seg-tab-padding: 0 13px;
    --seg-tab-font-size: 13px;
  }

  .app-dl-mascot {
    inset-inline-end: calc(50% - 72px);
    width: 144px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-dl-mascot {
    animation: none;
  }

  a.app-dl-btn {
    transition: none;
  }

  a.app-dl-btn:hover {
    transform: none;
  }
}
