/* Single-viewport Fudo landing page. */

body.is-marketing-home {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  overscroll-behavior: none;
}

.is-marketing-home .app-gradient {
  background: var(--fudo-paper);
}

.is-marketing-home .app-surface {
  height: 100svh;
  min-height: 0;
}

.is-marketing-home .app-nav {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  border: 0;
  background: var(--fudo-paper);
}

.homepage-language-menu {
  position: relative;
  color: var(--fudo-subtle);
  font-size: 0.78rem;
  font-weight: 650;
}

.homepage-language-menu summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--fudo-line) 82%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--fudo-card) 76%, transparent);
  color: var(--fudo-ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.homepage-language-menu summary::-webkit-details-marker {
  display: none;
}

.homepage-language-menu summary::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform 160ms ease;
}

.homepage-language-menu[open] summary::after {
  transform: translateY(0.1rem) rotate(225deg);
}

.homepage-language-menu summary:focus-visible {
  outline: 3px solid var(--theme-accent-text);
  outline-offset: 2px;
}

.homepage-language-menu nav {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  display: grid;
  min-width: 9.5rem;
  padding: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--fudo-line) 90%, transparent);
  border-radius: 0.85rem;
  background: var(--fudo-card);
  box-shadow: 0 0.75rem 2rem color-mix(in srgb, var(--fudo-ink) 12%, transparent);
}

.homepage-language-menu nav a {
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  color: var(--fudo-subtle);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.homepage-language-menu nav a:hover,
.homepage-language-menu nav a:focus-visible,
.homepage-language-menu nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--fudo-ink) 7%, transparent);
  color: var(--fudo-ink);
}

.is-marketing-home .app-main.container {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.store-home,
.store-one-screen {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.store-one-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  width: min(100%, 100rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vh, 2.5rem) clamp(1rem, 4vw, 3rem);
  gap: clamp(1.5rem, 3vh, 2.5rem);
}

.store-hero-copy {
  display: grid;
  justify-items: center;
  max-width: 56rem;
  gap: clamp(0.65rem, 1.25vh, 1rem);
  text-align: center;
}

.store-hero-copy h1 {
  margin: 0;
  color: var(--fudo-ink);
  font-size: clamp(2.65rem, 5.4vw, 4.75rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.05;
  text-wrap: balance;
}

.store-hero-lede {
  margin: 0;
  color: var(--fudo-subtle);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 550;
  line-height: 1.4;
}

.store-downloads {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: 0.15rem;
}

.store-download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 9.15rem;
  height: 3rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid color-mix(in srgb, var(--fudo-ink) 82%, var(--fudo-paper));
  border-radius: 0.8rem;
  background: var(--fudo-ink);
  color: var(--fudo-paper);
  font-family: var(--web-font);
  line-height: 1;
  opacity: 1;
  cursor: default;
}

.store-download-button:disabled {
  color: var(--fudo-paper);
  opacity: 1;
}

.store-download-icon {
  display: block;
  flex: 0 0 1.4rem;
  width: 1.3rem;
  height: 1.55rem;
  fill: currentColor;
}

.store-download-icon.is-google-play {
  width: 1.4rem;
  height: 1.4rem;
}

.store-download-copy {
  display: grid;
  justify-items: start;
  gap: 0.12rem;
  min-width: 0;
  text-align: left;
}

.store-download-eyebrow {
  color: color-mix(in srgb, var(--fudo-paper) 72%, transparent);
  font-size: 0.58rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.store-download-copy strong {
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.store-showcase {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  width: 100%;
  height: min(52vh, 42vw, 32rem);
  min-height: 0;
}

.store-shot-list {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  touch-action: pan-y;
}

.store-shot-list li {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  height: min(100%, 52rem, 44vw);
  margin: 0;
  aspect-ratio: 1320 / 2868;
  transform: translate3d(calc(-50% + var(--screen-x)), var(--screen-y), 0) rotate(var(--screen-rotate)) scale(var(--screen-scale, 1));
  transform-origin: 50% 0;
  transition: transform 620ms cubic-bezier(0.4, 0, 0.2, 1), opacity 320ms cubic-bezier(0.37, 0, 0.63, 1), filter 260ms ease, z-index 0s linear 310ms;
  backface-visibility: hidden;
  will-change: transform;
}

.store-shot-list li:nth-child(1) {
  --screen-x: -175%;
  --screen-y: 2rem;
  --screen-rotate: -4deg;
  z-index: 1;
}

.store-shot-list li:nth-child(2) {
  --screen-x: -88%;
  --screen-y: 1rem;
  --screen-rotate: -2deg;
  z-index: 2;
}

.store-shot-list li:nth-child(3) {
  --screen-x: 0%;
  --screen-y: 0rem;
  --screen-rotate: 0deg;
  z-index: 5;
}

.store-shot-list li:nth-child(4) {
  --screen-x: 88%;
  --screen-y: 1rem;
  --screen-rotate: 2deg;
  z-index: 4;
}

.store-shot-list li:nth-child(5) {
  --screen-x: 175%;
  --screen-y: 2rem;
  --screen-rotate: 4deg;
  z-index: 3;
}

.store-screen-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--fudo-line) 82%, transparent);
  border-radius: clamp(1.3rem, 2.4vw, 2rem);
  background: var(--fudo-card);
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
}

.store-screen-button:focus-visible {
  outline: 3px solid var(--theme-accent-text);
  outline-offset: 5px;
}

.store-screen-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-showcase-control {
  position: absolute;
  top: 50%;
  z-index: 20;
  display: none;
  place-items: center;
  width: var(--web-control-height);
  height: var(--web-control-height);
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--fudo-line) 82%, transparent);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--fudo-card) 94%, transparent);
  color: var(--fudo-ink);
  box-shadow: none;
  font-family: var(--web-font);
  font-size: 1.75rem;
  font-weight: 550;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  touch-action: manipulation;
  user-select: none;
}

.store-showcase-control.is-previous {
  left: var(--spacing-sm);
}

.store-showcase-control.is-next {
  right: var(--spacing-sm);
}

.store-showcase-control:focus-visible {
  outline: 3px solid var(--theme-accent-text);
  outline-offset: 3px;
}

.store-shot-list.has-active li:not(.is-active) {
  opacity: 1;
  filter: none;
}

.store-shot-list li.is-active {
  z-index: 10;
  transform: translate3d(-50%, 0, 0) rotate(0) scale(1.035);
}

.store-shot-list li.is-wrap-exiting {
  transition-duration: 320ms, 300ms, 260ms, 0s;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1), cubic-bezier(0.37, 0, 0.63, 1), cubic-bezier(0.37, 0, 0.63, 1), linear;
  transition-delay: 0s;
}

.store-shot-list li.is-wrap-reset {
  transition: none;
}

.store-shot-list li.is-wrap-entering {
  transition-duration: 400ms, 380ms, 300ms, 0s;
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1), cubic-bezier(0.37, 0, 0.63, 1), cubic-bezier(0.37, 0, 0.63, 1), linear;
  transition-delay: 0s;
}

.is-marketing-home .marketing-footer {
  flex: 0 0 auto;
  border: 0;
  background: var(--fudo-paper);
}

.is-marketing-home .marketing-footer-inner {
  min-height: 3rem;
}

@media (max-width: 640px) {
  .store-one-screen {
    justify-content: flex-start;
    padding: clamp(0.75rem, 2vh, 1.25rem) 0 0.25rem;
    gap: 1rem;
  }

  .store-hero-copy {
    flex: 0 0 auto;
    padding-inline: var(--spacing-lg);
  }

  .store-hero-copy h1 {
    max-width: 16ch;
    font-size: clamp(2.5rem, 10.5vw, 3.35rem);
    line-height: 0.98;
  }

  .store-hero-lede {
    font-size: clamp(1rem, 4.2vw, 1.125rem);
  }

  .store-downloads {
    gap: 0.5rem;
  }

  .store-download-button {
    width: 8.6rem;
    height: 2.75rem;
    padding-inline: 0.62rem;
  }

  .store-download-copy strong {
    font-size: 0.92rem;
  }

  .store-showcase {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  .store-showcase-control {
    display: grid;
  }

  .store-shot-list li {
    height: min(calc(100% - var(--spacing-md)), 156vw, 42rem);
  }

  .store-shot-list li.is-active {
    transform: translate3d(-50%, 0, 0) rotate(0) scale(1);
  }

  .store-shot-list li:nth-child(1) {
    --screen-x: -33%;
    --screen-y: 0.5rem;
    --screen-rotate: 0deg;
    --screen-scale: 0.72;
  }

  .store-shot-list li:nth-child(2) {
    --screen-x: -14%;
    --screen-y: 0.25rem;
    --screen-rotate: 0deg;
    --screen-scale: 0.86;
  }

  .store-shot-list li:nth-child(4) {
    --screen-x: 14%;
    --screen-y: 0.25rem;
    --screen-rotate: 0deg;
    --screen-scale: 0.86;
  }

  .store-shot-list li:nth-child(5) {
    --screen-x: 33%;
    --screen-y: 0.5rem;
    --screen-rotate: 0deg;
    --screen-scale: 0.72;
  }

  .marketing-footer-inner {
    align-items: center;
    flex-direction: row;
    padding-block: 0;
  }

  .marketing-footer nav {
    gap: var(--spacing-md);
  }
}

@media (max-width: 640px) and (max-height: 720px) {
  .store-one-screen {
    gap: 0.75rem;
  }

  .store-hero-copy {
    gap: 0.5rem;
  }

  .store-hero-copy h1 {
    font-size: clamp(2.2rem, 9.5vw, 2.75rem);
  }

  .store-download-button {
    height: 2.5rem;
  }
}

@media (min-width: 641px) and (max-height: 700px) {
  .store-one-screen {
    padding-block: 0.75rem;
    gap: 1rem;
  }

  .store-hero-copy h1 {
    font-size: clamp(2.35rem, 5vw, 3.75rem);
  }

  .store-shot-list li {
    height: 100%;
  }

  .store-showcase {
    height: min(40vw, 46vh, 23rem);
  }
}

@media (min-width: 641px) and (max-height: 600px) {
  .is-marketing-home .nav-inner {
    min-height: 3.25rem;
    padding-block: 0.25rem;
  }

  .is-marketing-home .brand-mark {
    width: 1.75rem;
    height: 1.75rem;
  }

  .is-marketing-home .brand-copy strong {
    font-size: 1.05rem;
  }

  .store-one-screen {
    display: grid;
    grid-template-columns: minmax(16rem, 0.9fr) minmax(18rem, 1.1fr);
    align-items: center;
    justify-content: center;
    padding: 0.25rem clamp(1rem, 3vw, 2rem);
    gap: clamp(0.75rem, 3vw, 2rem);
  }

  .store-hero-copy {
    justify-self: end;
    width: min(100%, 28rem);
    gap: 0.45rem;
  }

  .store-hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 0.96;
  }

  .store-hero-lede {
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .store-downloads {
    gap: 0.4rem;
    margin-top: 0;
  }

  .store-download-button {
    gap: 0.34rem;
    width: 7.6rem;
    height: 2.25rem;
    padding: 0.28rem 0.5rem;
    border-radius: 0.65rem;
  }

  .store-download-icon,
  .store-download-icon.is-google-play {
    width: 1.05rem;
    height: 1.05rem;
  }

  .store-download-eyebrow {
    font-size: 0.48rem;
  }

  .store-download-copy strong {
    font-size: 0.78rem;
  }

  .store-showcase {
    align-self: center;
    justify-self: center;
    width: min(100%, 42rem);
    height: min(50vh, 17rem, calc(100% - 1rem));
  }

  .store-shot-list li:nth-child(1) {
    --screen-x: -92%;
    --screen-y: 0.25rem;
    --screen-rotate: -2deg;
  }

  .store-shot-list li:nth-child(2) {
    --screen-x: -46%;
    --screen-y: 0.125rem;
    --screen-rotate: -1deg;
  }

  .store-shot-list li:nth-child(4) {
    --screen-x: 46%;
    --screen-y: 0.125rem;
    --screen-rotate: 1deg;
  }

  .store-shot-list li:nth-child(5) {
    --screen-x: 92%;
    --screen-y: 0.25rem;
    --screen-rotate: 2deg;
  }

  .is-marketing-home .marketing-footer-inner {
    min-height: 2.25rem;
    font-size: 0.72rem;
  }
}

@media (min-width: 641px) and (max-width: 1200px) {
  .store-shot-list li {
    height: min(100%, 44rem, 55vw);
  }

  .store-shot-list li:nth-child(1) {
    --screen-x: -145%;
  }

  .store-shot-list li:nth-child(2) {
    --screen-x: -72%;
  }

  .store-shot-list li:nth-child(4) {
    --screen-x: 72%;
  }

  .store-shot-list li:nth-child(5) {
    --screen-x: 145%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-shot-list li {
    --screen-rotate: 0deg;
    transition: none;
  }
}
