/* FlowBlocks landing — layout and components */

.page {
  position: relative;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  background-color: var(--color-bg-deep);
  background-image:
    url("../assets/images/background.png"),
    linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%),
    linear-gradient(202deg, #243cb2 1.64%, #471f99 48.86%);
  background-size: cover, cover, cover;
  background-position: center top, center, center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-text-primary);
  color: var(--color-bg-deep);
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: var(--font-weight-bold);
}

.skip-link:focus {
  left: 0.75rem;
  outline: none;
  box-shadow: var(--shadow-store-focus);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Primary landing copy — matches design spec; size/tracking from tokens (scaled on small screens in responsive.css) */
.landing-text {
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--text-landing-size);
  font-style: normal;
  font-weight: 800;
  line-height: var(--text-landing-leading);
  letter-spacing: var(--text-landing-tracking);
  overflow-wrap: break-word;
}

.site-header {
  position: relative;
  z-index: 1;
  padding: var(--container-padding-x);
  padding-bottom: 0;
}

.site-header__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  justify-content: center;
}

.store-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1rem);
}

.store-button--header .store-button__badge {
  height: var(--store-badge-height-header);
  width: auto;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.store-button--disabled {
  opacity: 0.38;
  pointer-events: none;
  cursor: not-allowed;
}

.store-button:not(.store-button--disabled):hover {
  opacity: 0.94;
  transform: translateY(-2px);
}

.store-button:not(.store-button--disabled):focus-visible {
  outline: none;
  box-shadow: var(--shadow-store-focus);
}

.store-button:not(.store-button--disabled):active {
  transform: translateY(0);
  opacity: 1;
}

.store-button__badge {
  height: var(--store-badge-height);
  width: auto;
  max-width: min(100%, 22rem);
  display: block;
  object-fit: contain;
}

.main {
  position: relative;
  z-index: 1;
  padding-block: var(--space-block) var(--space-section);
}

.main__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-section);
  min-width: 0;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-section);
  width: 100%;
}

.hero__brand {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  width: 100%;
}

.hero__icon--block {
  flex-shrink: 0;
  order: 0;
}

.hero__wordmark {
  flex-shrink: 1;
  order: 1;
  width: clamp(12rem, 26vw, 28rem);
  height: auto;
  object-fit: contain;
}

.hero__icon {
  width: clamp(7rem, 14vw, 14rem);
  height: auto;
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero__lead {
  margin: 0;
}

.screens {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-section);
  width: 100%;
}

.screens__track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 2rem);
  /* Full-bleed width without 100vw (100vw often causes horizontal scroll due to scrollbar gutter) */
  width: calc(100% + 2 * var(--container-padding-x));
  max-width: none;
  margin-inline: calc(-1 * var(--container-padding-x));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
  scroll-padding-inline: clamp(1rem, 4vw, 3rem);
  padding-inline: clamp(1rem, 4vw, 3rem);
  padding-block: 0.5rem 1rem;
  cursor: grab;
  touch-action: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.screens__track::-webkit-scrollbar {
  display: none;
}

.screens__track:focus-visible {
  outline: none;
  box-shadow: var(--shadow-store-focus);
  border-radius: 1rem;
}

.screens__track--dragging {
  cursor: grabbing;
  user-select: none;
}

.screens__track--dragging .screens__image {
  pointer-events: none;
}

.screens__shot {
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screens__image {
  width: clamp(13rem, 18vw, 22rem);
  height: auto;
  -webkit-user-drag: none;
}

.screens__cta {
  display: flex;
  justify-content: center;
}

.value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-section);
  width: 100%;
}

.value__text {
  margin: 0;
}

.value__cta {
  display: flex;
  justify-content: center;
}

.closing {
  width: 100%;
}

.closing__tagline {
  margin: 0;
  margin-inline: auto;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 var(--container-padding-x) var(--space-block);
}

.site-footer__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.5rem);
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
}

.site-footer__links {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
}

.site-footer__links--start {
  justify-self: start;
}

.site-footer__links--end {
  justify-self: end;
}

.site-footer__brand {
  justify-self: center;
}

.site-footer__logo-link {
  display: inline-flex;
  border-radius: 2rem;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.site-footer__logo-link:hover {
  opacity: 0.92;
}

.site-footer__logo-link:focus-visible {
  outline: none;
  box-shadow: var(--shadow-store-focus);
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.site-footer__links a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.65);
}

.site-footer__links a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-store-focus);
  border-radius: 0.25rem;
}

.site-footer__links a[aria-current="page"] {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

.site-footer__badge {
  width: clamp(8rem, 40vw, 12rem);
  height: auto;
  border-radius: 2rem;
}

@media (max-width: 36rem) {
  .site-footer__bar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer__links--start {
    order: 1;
    justify-self: center;
  }

  .site-footer__brand {
    order: 2;
  }

  .site-footer__links--end {
    order: 3;
    justify-self: center;
  }
}
