@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/poppins-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/poppins-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/poppins-800.woff2') format('woff2');
}

:root {
  color-scheme: light;
  font-family: 'Poppins', Arial, sans-serif;
  color: #1b1d2a;
  background: #ffc21b;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body.download-app-page {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(255, 232, 137, 0.82) 0%, rgba(255, 208, 55, 0.3) 42%, transparent 72%),
    #ffc21b;
}

.download-burst {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 205vmax;
  aspect-ratio: 1;
  pointer-events: none;
  background: repeating-conic-gradient(
    from -4deg,
    #ffbd08 0deg 7deg,
    #ffd64b 7deg 14deg
  );
  opacity: 0.66;
  transform: translate(-50%, -50%);
  animation: burst-rotate 78s linear infinite;
}

.download-language-header {
  position: fixed;
  z-index: 1002;
  top: 22px;
  right: clamp(20px, 4vw, 72px);
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.download-language-header .language-selector--shared {
  padding: 0;
}

.download-language-header .language-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.download-language-header .language-trigger .chevron {
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.download-language-header .language-trigger.active .chevron {
  transform: rotate(180deg);
}

.download-language-desktop {
  display: block;
}

.download-language-mobile {
  display: none;
}

html.download-language-from-query .download-language-header {
  display: none;
}

.download-stage {
  position: relative;
  z-index: 1;
  overflow: clip;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(100px, 12vh, 140px) clamp(30px, 5vw, 96px) clamp(60px, 8vh, 100px);
  place-items: center;
}

.download-layout {
  display: grid;
  width: min(100%, 1680px);
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(32px, 4vw, 80px);
  margin: auto;
}

.download-device-column {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  place-items: center;
  perspective: 1200px;
}

.download-device-entrance {
  position: relative;
  z-index: 1;
  width: min(100%, 910px);
  animation: device-enter 1.2s both cubic-bezier(0.18, 0.92, 0.28, 1.34);
}

.download-device {
  width: 100%;
  margin: 0;
  padding: clamp(6px, 0.8vw, 13px);
  overflow: hidden;
  aspect-ratio: 2.06 / 1;
  border: clamp(8px, 1.05vw, 16px) solid #1c1d27;
  border-radius: clamp(30px, 4vw, 68px);
  background: #f2f2f2;
  box-shadow: 0 34px 42px rgba(90, 56, 0, 0.27), 0 12px 18px rgba(43, 39, 27, 0.2);
  transform: rotate(-5deg);
  animation: device-float 5.7s 1.25s ease-in-out infinite;
  transform-style: preserve-3d;
}

.download-device img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: clamp(18px, 2.7vw, 42px);
  object-fit: cover;
}

.download-copy {
  min-width: 0;
  text-align: center;
}

.download-copy h1 {
  margin: 0;
  font-size: clamp(3.5rem, 6.4vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.06;
  animation: copy-enter 0.8s 1.28s both cubic-bezier(0.2, 0.8, 0.2, 1), text-float 6.2s 2.05s ease-in-out infinite;
}

.download-subtitle {
  margin: 18px 0 clamp(32px, 3vw, 58px);
  font-size: clamp(1.25rem, 2.15vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.3;
  animation: copy-enter 0.8s 1.48s both cubic-bezier(0.2, 0.8, 0.2, 1), text-float 5.4s 2.25s ease-in-out infinite;
}

.download-store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.download-store-button {
  display: flex;
  min-width: min(100%, 260px);
  min-height: 88px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 22px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background: #050505;
  box-shadow: 0 11px 0 rgba(132, 88, 0, 0.14), 0 15px 25px rgba(44, 33, 12, 0.25);
  color: #fff;
  text-align: left;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  animation: button-enter 0.75s both cubic-bezier(0.22, 0.84, 0.28, 1.2), button-float 4.2s ease-in-out infinite;
}

.download-store-button:nth-child(1) {
  animation-delay: 1.88s, 2.8s;
}

.download-store-button:nth-child(2) {
  animation-delay: 2.04s, 2.96s;
}

.download-store-button:hover {
  background: #171717;
  box-shadow: 0 5px 0 rgba(132, 88, 0, 0.13), 0 12px 20px rgba(44, 33, 12, 0.25);
  transform: translateY(4px) scale(1.015);
}

.download-store-button:active {
  transform: translateY(7px) scale(0.99);
}

.download-store-button:focus-visible {
  outline: 3px solid #1b1d2a;
  outline-offset: 5px;
}

.download-store-icon {
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  fill: #fff;
}

.download-store-icon--play {
  width: 47px;
}

.download-store-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.08;
}

.download-store-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
}

.download-store-copy strong {
  white-space: nowrap;
  font-size: clamp(1.35rem, 1.8vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.download-share-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  margin: 18px auto 0;
  padding: 9px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(44, 33, 12, 0.14);
  color: #1b1d2a;
  font: 600 0.95rem 'Poppins', Arial, sans-serif;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.download-share-button[hidden] {
  display: none;
}

.download-share-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.download-share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 22px rgba(44, 33, 12, 0.18);
}

.download-share-button:focus-visible {
  outline: 3px solid #1b1d2a;
  outline-offset: 4px;
}

@keyframes burst-rotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes device-enter {
  0% { opacity: 0; transform: translateY(140px) scale(0.72) rotate(-1deg); }
  56% { opacity: 1; transform: translateY(-24px) scale(1.035) rotate(1deg); }
  76% { transform: translateY(10px) scale(0.99) rotate(-0.4deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes device-float {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-3.8deg) translateY(-13px); }
}

@keyframes copy-enter {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes text-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

@keyframes button-enter {
  0% { opacity: 0; transform: translateY(36px) scale(0.84); }
  72% { opacity: 1; transform: translateY(-5px) scale(1.025); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes button-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@media (max-width: 1000px) {
  .download-stage {
    padding-top: 106px;
  }

  .download-layout {
    width: min(100%, 760px);
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(42px, 8vw, 80px);
  }

  .download-device-entrance {
    width: min(94%, 770px);
  }

  .download-copy h1 {
    font-size: clamp(3.4rem, 10vw, 6rem);
  }

  .download-subtitle {
    margin-bottom: 34px;
    font-size: clamp(1.3rem, 3.6vw, 2rem);
  }
}

@media (max-width: 768px) {
  .download-share-button:not([hidden]) {
    display: flex;
    width: min(100%, 220px);
    animation: button-enter 0.75s 2.88s both cubic-bezier(0.22, 0.84, 0.28, 1.2), button-float 4.2s 3.78s ease-in-out infinite;
  }
}

@media (max-width: 560px) {
  .download-language-header {
    top: 14px;
    right: 15px;
  }

  .download-language-desktop {
    display: none;
  }

  .download-language-mobile {
    display: block;
  }

  .download-stage {
    min-height: 100svh;
    padding: 95px 18px 44px;
  }

  .download-layout {
    gap: 34px;
  }

  .download-device-entrance {
    width: 98%;
  }

  .download-device {
    padding: 4px;
    border-width: 7px;
    border-radius: 29px;
  }

  .download-device img {
    border-radius: 19px;
  }

  .download-copy h1 {
    font-size: clamp(3.1rem, 13vw, 4.7rem);
  }

  .download-subtitle {
    max-width: 350px;
    margin: 12px auto 26px;
    font-size: 1.2rem;
  }

  .download-store-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .download-store-button {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    justify-self: stretch;
    gap: 7px;
    padding: 8px 6px;
    border-radius: 14px;
  }

  .download-store-icon {
    width: 26px;
    height: 26px;
  }

  .download-store-copy strong {
    font-size: clamp(0.85rem, 4.2vw, 1.05rem);
  }

  .download-store-eyebrow {
    font-size: clamp(0.55rem, 2.8vw, 0.7rem);
  }

}
