.phone-page {
  width: min(100%, var(--phone-max));
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #f8f9fb;
}

.fp-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px 58px 58px;
  align-items: center;
  width: min(100%, var(--phone-max));
  min-height: var(--header-h);
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 0;
  transform: translateX(-50%);
}

.fp-header.is-searching {
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 16px;
}

.fp-header.has-submit.is-over-list {
  grid-template-columns: minmax(0, 1fr) 50px 50px 50px 50px;
}

.hero {
  padding: calc(var(--header-h) - 1px) 0 0;
  background: #f8f9fb;
}

.hero-inner {
  min-height: 521px;
  padding: 32px 16px 64px;
  border-radius: 0 0 42px 42px;
  color: #0f172a;
  background: linear-gradient(135deg, rgb(191, 219, 254) 0%, rgb(165, 243, 252) 50%, rgb(167, 243, 208) 100%);
  text-align: center;
}

.hero h1 {
  max-width: 650px;
  margin: 32px auto 0;
  font-size: 32px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 2px;
  text-align: center;
}

.join-line {
  position: relative;
  display: block;
  width: 268px;
  min-width: 268px;
  margin: 14px auto 0;
  padding: 0 0 20px;
  color: #0f172a;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.join-line::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 280px;
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 18%, rgba(255, 255, 255, 0.82) 50%, rgba(255, 255, 255, 0.22) 82%, transparent 100%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.42);
  content: "";
  transform: translateX(-50%);
}

.join-line::before {
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 230px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.12) 42%, transparent 74%);
  content: "";
  filter: blur(4px);
  transform: translateX(-50%);
}

.hero-subtitle {
  max-width: 540px;
  margin: 32px auto 0;
  color: rgba(15, 23, 42, 0.72);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 34px 0 0;
}

.content {
  padding: 72px 38px 54px;
  background: #f8f9fb;
}

.app-scroll-sentinel {
  width: 100%;
  height: 1px;
}

.fp-header.is-searching + .hero {
  display: none;
}

.fp-header.is-searching ~ .content {
  padding-top: 46px;
}

@media (max-width: 520px) {
  .phone-page {
    margin: 0 auto;
  }

  .fp-header {
    top: 0;
    grid-template-columns: minmax(0, 1fr) 42px 42px 42px;
    min-height: 63px;
    padding: 6px 14px;
  }

  .fp-header.is-searching {
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 10px;
  }

  .fp-header.has-submit.is-over-list {
    grid-template-columns: minmax(0, 1fr) 42px 42px 42px 42px;
  }

  .hero-inner {
    min-height: 521px;
    padding: 32px 16px 64px;
    border-radius: 0 0 42px 42px;
  }

  .hero {
    padding-top: 62px;
  }

  .hero h1 {
    margin-top: 32px;
    font-size: 32px;
    line-height: 1.35;
    letter-spacing: 2px;
  }

  .join-line {
    width: 268px;
    min-width: 268px;
    margin-top: 14px;
    padding-bottom: 20px;
    font-size: 12px;
  }

  .hero-subtitle {
    margin-top: 32px;
    color: rgba(15, 23, 42, 0.72);
    font-size: 16px;
    line-height: 1.35;
  }

  .hero-actions {
    margin-top: 32px;
  }

  .content {
    padding: 50px 15px 44px;
  }
}
