
/* TaminYar Full Page Experience */

html.ty-fullpage {
  --ty-header-offset: 0px;
  --ty-first-offset: 0px;

  scroll-behavior: smooth;
  scroll-padding-top: var(--ty-header-offset);
}

/* Desktop full-screen sections */

@media (min-width: 1024px) and (min-height: 650px) {

  html.ty-fullpage {
    scroll-snap-type: y proximity;
  }

  html.ty-fullpage #main > section.ty-screen-section {
    box-sizing: border-box;
    min-height: calc(100vh - var(--ty-header-offset));
    min-height: calc(100svh - var(--ty-header-offset));

    scroll-snap-align: start;
    scroll-snap-stop: always;

    align-content: safe center;
  }

  html.ty-fullpage #main > section.ty-screen-first {
    min-height: calc(
      100svh - max(
        var(--ty-header-offset),
        var(--ty-first-offset)
      )
    );
  }

  html.ty-fullpage .hero .phone-card img {
    max-height: min(66svh, 680px);
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-inline: auto;
  }

  html.ty-fullpage footer {
    scroll-snap-align: end;
  }
}

/* Tablet and mobile: natural scrolling */

@media (max-width: 1023px), (max-height: 649px) {

  html.ty-fullpage {
    scroll-snap-type: none;
  }

  html.ty-fullpage #main > section.ty-screen-section {
    height: auto;
    min-height: 0;
    max-height: none;
    scroll-snap-align: none;
  }
}

/* Preserve existing modal behavior */

html.ty-fullpage:has(
  #ty-app-release-modal.is-visible,
  #ty-download-thanks.is-visible
) {
  scroll-snap-type: none;
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

  html.ty-fullpage {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
}

