/* Beatprod single-screen landing — in-flow stack, dock under visual */

.landing-page--stage {
  --ls-bg: var(--fill-grouped, #161618);
  --ls-card: var(--fill-primary, #1c1c1e);
  --ls-card-2: var(--fill-secondary, #2c2c2e);
  --ls-text: var(--label-primary, #ffffff);
  --ls-muted: var(--label-secondary, #98989d);
  --ls-faint: var(--label-tertiary, #636366);
  --ls-accent: var(--accent, #ffffff);
  --ls-ink: var(--label-on-accent, #1c1c1e);
  --ls-screen-h: 100dvh;
  --ls-dock-pad: max(16px, env(safe-area-inset-bottom, 0px));
  --ls-cta-w: min(320px, 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: var(--ls-screen-h);
  background: var(--ls-bg);
  color: var(--ls-text);
  overflow-x: clip;
}

/* Clear floating app tab bar so dock / More stay reachable */
body.has-app-tab-bar .landing-page--stage {
  --ls-dock-pad: calc(
    12px + var(--app-tab-bar-h, 52px) + 18px + env(safe-area-inset-bottom, 0px)
  );
}

/* Claim / legal / More — under the visual */
.ls__dock {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 100%;
  max-width: var(--ls-cta-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  margin-top: 4px;
}

.ls {
  /* Hero + stage art ~20% larger on desktop and mobile */
  --ls-img-h: min(432px, 50vh);
  --ls-cta-w: min(320px, 100%);
  position: relative;
  width: min(100% - 48px, 624px);
  margin: 0 auto;
  padding:
    calc(var(--header-pill-top, 10px) + var(--header-pill-h, 44px) + 8px)
    0
    var(--ls-dock-pad);
  min-height: var(--ls-screen-h);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Logo → headline → visual — one vertical stack */
.ls__hero {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  box-sizing: border-box;
  z-index: 1;
}

.ls__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ls__brand-logo {
  display: block;
  width: auto;
  height: 24px;
  max-width: 100px;
  object-fit: contain;
}

.ls__brand picture {
  display: contents;
}

.ls__copy {
  --ls-type-size: clamp(1.44rem, 3.8vw, 1.86rem);
  --ls-type-lh: 1.2;
  width: 100%;
  max-width: min(380px, 100%);
  margin-top: 20px;
  min-height: calc(var(--ls-type-size) * var(--ls-type-lh) * 2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ls__type {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-size: var(--ls-type-size);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: var(--ls-type-lh);
  color: var(--ls-text);
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.ls__type .ls-word {
  display: inline-block;
  white-space: nowrap;
}

.ls__type .ls-char {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(5px);
  animation: ls-reveal-char 0.4s ease-out forwards;
}

.ls__type .ls-space {
  display: inline-block;
  width: 0.28em;
}

.ls__type.is-typing {
  border-right: 0;
  padding-right: 0;
  animation: none;
}

@keyframes ls-reveal-char {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes ls-caret {
  from, to { border-color: transparent; }
  50% { border-color: color-mix(in srgb, var(--ls-text) 55%, transparent); }
}

.ls__stage {
  position: relative;
  width: 100%;
  height: var(--ls-img-h);
  margin-top: 10px;
  flex: 0 0 auto;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
  contain: layout paint;
  -webkit-tap-highlight-color: transparent;
}

.ls__visual {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.ls__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 420ms ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.ls__img.is-active {
  opacity: 1;
}

.ls__img.is-leave {
  opacity: 0;
}

.ls__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 12px;
  margin: 0 0 14px;
  flex: 0 0 auto;
}

.ls__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ls-text) 22%, transparent);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, width 180ms ease;
}

.ls__dot:hover {
  background: color-mix(in srgb, var(--ls-text) 45%, transparent);
}

.ls__dot.is-active {
  width: 18px;
  background: var(--ls-text);
}

.ls__claim-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: var(--ls-cta-w);
  margin: 0;
  flex: 0 0 auto;
}

.ls__claim {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 6px;
  background: var(--ls-card);
  border: 0;
  outline: 0;
  border-radius: 999px;
  box-sizing: border-box;
}

.ls__claim-field {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 0 18px;
  background: var(--ls-card-2);
  border: 0;
  border-radius: 999px;
}

.ls__claim-prefix {
  flex: 0 0 auto;
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ls-text);
  font-variant-ligatures: none;
}

.ls__claim-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: var(--ls-text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  caret-color: var(--ls-accent);
}

.ls__claim-input::placeholder {
  color: var(--ls-faint);
  font-weight: 550;
}

.ls .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;
}

.ls__claim-btn {
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  min-height: 46px;
  padding: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 999px;
  background: var(--ls-accent);
  color: var(--ls-ink);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
  text-decoration: none;
}

.ls__claim-btn-label {
  display: none;
}

.ls__claim-btn-arrow,
.ls__claim-btn > span[aria-hidden="true"] {
  flex: 0 0 auto;
  line-height: 1;
}

.ls__claim-btn:hover {
  background: var(--accent-hover, #e5e5ea);
}

.ls__claim-btn:active {
  transform: scale(0.97);
}

.ls__claim-btn:focus,
.ls__claim-btn:focus-visible {
  outline: 0;
  box-shadow: none;
}

.ls__claim-status {
  display: none !important;
}

.ls__claim-field.is-invalid {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #ff453a 70%, transparent);
}

.ls__claim-field.is-available {
  box-shadow: none;
}

.ls__claim--auth {
  justify-content: center;
  background: transparent;
  padding: 0;
  width: 100%;
  max-width: var(--ls-cta-w);
  margin-inline: auto;
  box-sizing: border-box;
  overflow: hidden;
}

.ls__claim-btn--solo {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 20px;
  text-decoration: none;
  color: var(--ls-ink) !important;
}

.ls__sub {
  margin: 12px 0 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--ls-muted);
  flex: 0 0 auto;
}

.ls__sub a {
  color: var(--ls-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ls__sub a:hover {
  opacity: 0.8;
}

.ls__meta {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  flex: 0 0 auto;
}

.ls__meta-row {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ls-muted);
}

.ls__meta-row a {
  color: var(--ls-text);
  text-decoration: none;
}

.ls__meta-row a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ls__meta-row--soft {
  color: var(--ls-faint);
  font-size: 0.6875rem;
}

.ls__meta-row span[aria-hidden="true"] {
  margin: 0 0.35em;
}

body:has(.landing-page--stage) {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Full site footer below the centered hero screen */
body:has(.landing-page--stage) .site-footer {
  position: relative;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 5;
}

body.has-app-tab-bar:has(.landing-page--stage) .site-footer {
  padding-bottom: calc(
    12px + var(--app-tab-bar-h, 52px) + 16px + env(safe-area-inset-bottom, 0px)
  );
}

.landing-seo-vault {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

.landing-seo-vault * {
  overflow: hidden !important;
}

@media (max-height: 720px) {
  .ls {
    --ls-img-h: min(336px, 43vh);
  }

  .ls__copy {
    --ls-type-size: clamp(1.32rem, 3.6vw, 1.68rem);
    margin-top: 16px;
  }

  .ls__brand-logo {
    width: auto;
    height: 22px;
    max-width: 92px;
  }

  .ls__meta-row--soft {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Landing only: no top chrome — in-page logo replaces header/brand bar */
  body:has(.landing-page--stage) .header,
  body:has(.landing-page--stage) .mobile-brand-bar,
  body:has(.landing-page--stage) .mobile-menu-overlay,
  body:has(.landing-page--stage) .mobile-menu {
    display: none !important;
  }

  body:has(.landing-page--stage).has-app-tab-bar .main-container {
    padding-top: 0 !important;
    /* Clearance lives on .ls padding-bottom so the stack can truly center */
    padding-bottom: 0 !important;
  }

  /* Tab bar above clipped footer */
  body:has(.landing-page--stage) .app-tab-bar {
    z-index: 1100;
  }
}

@media (max-width: 640px) {
  body:has(.landing-page--stage) {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .ls {
    width: min(100% - 24px, 624px);
    --ls-img-h: min(360px, 46vh);
    --ls-cta-w: min(300px, 100%);
    height: auto;
    max-height: none;
    min-height: var(--ls-screen-h);
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-bottom: var(--ls-dock-pad);
    justify-content: center;
    box-sizing: border-box;
  }

  .ls__hero {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
  }

  .ls__brand {
    display: inline-flex;
  }

  .ls__brand-logo {
    height: 22px;
    max-width: 92px;
  }

  .ls__copy {
    margin-top: 16px;
    max-width: min(360px, 100%);
    --ls-type-size: clamp(1.38rem, 5.5vw, 1.68rem);
  }

  .ls__stage {
    width: 100%;
    margin-top: 10px;
  }

  .ls__dock {
    max-width: var(--ls-cta-w);
    margin-top: 2px;
    padding: 0;
  }

  .ls__claim {
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    border-radius: 999px;
    padding: 6px;
    background: var(--ls-card);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .ls__claim-form {
    max-width: var(--ls-cta-w);
    min-width: 0;
  }

  .ls__claim--auth {
    background: transparent;
    padding: 0;
    width: 100%;
    max-width: var(--ls-cta-w);
    margin-inline: auto;
  }

  .ls__claim-field {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--ls-card-2);
    border: 0;
    box-sizing: border-box;
  }

  .ls__claim-field.is-invalid {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #ff453a 70%, transparent);
  }

  .ls__claim-field.is-available {
    box-shadow: none;
  }

  .ls__claim-btn {
    flex: 0 0 46px;
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    border-radius: 999px;
    min-height: 46px;
    padding: 0;
    font-size: 1.0625rem;
    letter-spacing: 0;
  }

  .ls__claim-btn--solo {
    max-width: 46px;
    font-size: 1.0625rem;
    padding: 0;
  }

  .ls__claim-prefix {
    font-size: 0.875rem;
  }

  .ls__claim-input {
    font-size: 0.875rem;
    height: 46px;
  }

  .ls__claim-status {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls__type .ls-char {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .ls__type.is-typing {
    animation: none !important;
    border-right-color: transparent !important;
  }

  .ls__img {
    transition: none !important;
  }
}
