/* Keep the complete opening composition within the available viewport. */
.home-page { --home-header: 76px; }
.home-page .header-inner { height: var(--home-header); }
.home-page #main { margin-top: calc(-1 * var(--home-header) - 1px); }
.home-page .hero {
  height: 100svh;
  min-height: 560px;
  max-height: 960px;
  padding: calc(var(--home-header) + 14px) 0 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.home-page .hero-grid {
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
  gap: clamp(24px, 3vw, 48px);
}
.home-page .hero-copy .eyebrow { font-size: 12px; margin-bottom: 16px; }
.home-page .hero h1 {
  font-size: clamp(42px, min(4.9vw, 9.2svh), 72px);
  line-height: 1.04;
  margin-bottom: 20px;
}
.home-page .hero-copy > p:not(.eyebrow) {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
  max-width: 430px;
  margin-bottom: 20px;
}
.home-page .hero .store-links { min-height: 64px; }
.home-page .hero-note { font-size: 12px; margin-top: 10px; }
.home-page .hero-devices {
  --device-height: min(calc(100% - 66px), 560px, 40vw);
  height: 100%;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
}
.home-page .hero .phone {
  height: var(--device-height);
  box-sizing: content-box;
  width: auto;
  aspect-ratio: 760 / 1652;
  border-radius: 14% / 6.45%;
  padding: 4px;
  border-width: 1.5px;
}
.home-page .hero .phone img {
  height: 100%;
  width: 100%;
  object-fit: fill;
  border-radius: 12.7% / 5.85%;
}
.home-page .hero .phone::after {
  height: 2.8%;
  top: 1.7%;
}
.home-page .hero .phone-map {
  left: 50%;
  right: auto;
  top: calc((100% - var(--device-height)) / 2 - 12px);
  transform: translateX(-110%) rotate(-4deg);
}
.home-page .hero .phone-chat {
  left: 50%;
  right: auto;
  top: calc((100% - var(--device-height)) / 2 + 16px);
  transform: translateX(8%) rotate(5deg);
}
.home-page .hero .friend-pin { width: 48px; }
.home-page .hero .friend-pin > img { width: 46px; height: 46px; border-radius: 16px; }
.home-page .hero .friend-pin > span { font-size: 11px; padding: 3px 8px; }
.home-page .hero .friend-pin > i { margin-top: 12px; width: 8px; height: 8px; }
.home-page .hero .friend-pin > i::after { top: -13px; height: 15px; width: 3px; left: 2.5px; }
.home-page .hero .friend-1 { left: 1%; right: auto; top: 5%; bottom: auto; }
.home-page .hero .friend-2 { left: auto; right: 0; top: 9%; bottom: auto; }
.home-page .hero .friend-3 { left: auto; right: 0; top: auto; bottom: 3%; }
.home-page .hero .friend-4 { left: 1%; right: auto; top: auto; bottom: 4%; }
.home-page .promise-strip {
  flex: none;
  margin-top: 0;
  padding: 15px 20px;
  border-radius: 18px;
}
.home-page .promise-item { display: flex; }
.home-page .promise-item strong { font-size: 20px; white-space: nowrap; margin: 0; }
.home-page .promise-item span { font-size: 14px; }

@media (max-width: 1100px) {
  .home-page .promise-item { display: block; }
  .home-page .promise-item strong { display: block; font-size: 18px; margin-bottom: 3px; }
  .home-page .promise-item span { display: block; font-size: 13px; }
  .home-page .hero .friend-pin { width: 40px; }
  .home-page .hero .friend-pin > img { width: 38px; height: 38px; border-radius: 13px; }
}

@media (max-width: 800px) {
  .home-page { --home-header: 64px; }
  .home-page .main-nav { top: 63px; }
  .home-page .hero {
    min-height: 560px;
    max-height: none;
    padding: calc(var(--home-header) + 10px) 0 12px;
    gap: 12px;
  }
  .home-page .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
  }
  .home-page .hero-copy .eyebrow { font-size: 11px; margin-bottom: 10px; }
  .home-page .hero h1 {
    font-size: clamp(34px, min(9.4vw, 5.6svh), 44px);
    margin-bottom: 14px;
  }
  .home-page .hero-copy > p:not(.eyebrow) {
    max-width: 380px;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 auto 14px;
  }
  .home-page .hero .store-links { gap: 18px; min-height: 48px; }
  .home-page .hero .app-store-badge img { height: 40px; }
  .home-page .hero .google-play-badge img { height: 59px; }
  .home-page .hero .google-play-badge { margin: -9px -10px; }
  .home-page .hero-note { font-size: 12px; margin-top: 8px; }
  .home-page .hero-devices { --device-height: min(calc(100% - 42px), 350px, 80vw); }
  .home-page .hero .phone { border-radius: 14% / 6.45%; padding: 2px; border-width: 1px; }
  .home-page .hero .phone img { border-radius: 12.7% / 5.85%; }
  .home-page .hero .phone::after { height: 2.8%; top: 1.7%; }
  .home-page .hero .phone-map { top: calc((100% - var(--device-height)) / 2 - 7px); }
  .home-page .hero .phone-chat { top: calc((100% - var(--device-height)) / 2 + 9px); }
  .home-page .hero .friend-pin { width: 34px; }
  .home-page .hero .friend-pin > img { width: 32px; height: 32px; border-radius: 11px; border-width: 2px; }
  .home-page .hero .friend-pin > span { font-size: 10px; padding: 3px 7px; }
  .home-page .hero .friend-pin > i { margin-top: 10px; }
  .home-page .hero .friend-1 { left: 0; right: auto; top: 2%; bottom: auto; }
  .home-page .hero .friend-2 { left: auto; right: 0; top: 22%; bottom: auto; }
  .home-page .hero .friend-3 { left: 1%; right: auto; top: auto; bottom: 3%; }
  .home-page .hero .friend-4 { display: none; }
  .home-page .promise-strip { padding: 10px 7px; border-radius: 14px; }
  .home-page .promise-item strong { font-size: 16px; letter-spacing: -.5px; margin-bottom: 2px; }
  .home-page .promise-item:last-child strong { font-size: 14px; padding-top: 2px; }
  .home-page .promise-item span { font-size: 12px; }
}

@media (max-width: 800px) and (max-height: 700px) and (orientation: portrait) {
  .home-page { --home-header: 60px; }
  .home-page .main-nav { top: 59px; }
  .home-page .hero { padding-top: 68px; padding-bottom: 8px; gap: 8px; }
  .home-page .hero-grid { gap: 6px; }
  .home-page .hero h1 { font-size: 34px; margin-bottom: 10px; }
  .home-page .hero-copy .eyebrow { margin-bottom: 8px; }
  .home-page .hero-copy > p:not(.eyebrow) { line-height: 1.4; margin-bottom: 10px; }
  .home-page .hero .store-links { min-height: 44px; }
  .home-page .hero-note { margin-top: 6px; }
  .home-page .promise-strip { padding-block: 8px; }
}

@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  .home-page { --home-header: 56px; }
  .home-page .main-nav { top: 55px; }
  .home-page .hero { min-height: 0; padding: 64px 0 8px; gap: 8px; }
  .home-page .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows: minmax(0, 1fr); gap: 20px; align-items: center; }
  .home-page .hero-copy { text-align: left; }
  .home-page .hero-copy .eyebrow, .home-page .hero-note { display: none; }
  .home-page .hero h1 { font-size: 32px; margin-bottom: 10px; }
  .home-page .hero-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.35; margin-bottom: 10px; }
  .home-page .hero .store-links { justify-content: flex-start; gap: 12px; min-height: 42px; }
  .home-page .hero .app-store-badge img { height: 40px; }
  .home-page .hero .google-play-badge img { height: 59px; }
  .home-page .hero .google-play-badge { margin: -9px -10px; }
  .home-page .hero-devices { --device-height: min(calc(100% - 48px), 300px, 39vw); }
  .home-page .hero .friend-pin { display: none; }
  .home-page .promise-strip { padding-block: 6px; }
  .home-page .promise-item strong { font-size: 14px; }
  .home-page .promise-item span { font-size: 11px; }
}

@media (max-width: 800px) {
  .home-page .menu-toggle { width: 44px; height: 44px; }
  .home-page .hero .store-badge { padding-block: 2px; }
}
@media (max-width: 360px) {
  .home-page .promise-strip { padding-inline: 4px; }
  .home-page .promise-item span { font-size: 11px; white-space: nowrap; }
}
@media (max-width: 800px) and (max-height: 620px) and (orientation: portrait) {
  .home-page .hero-copy .eyebrow, .home-page .hero-note { display: none; }
  .home-page .hero .friend-pin { width: 28px; }
  .home-page .hero .friend-pin > img { width: 26px; height: 26px; border-radius: 9px; }
}

/* The map uses only inland Hoboken geometry, so all decorative locations stay on land. */
.home-page .hero { padding-bottom: 24px; }
.home-page .hero::before { background-position: center; background-size: cover; }
.map-attribution { position: absolute; right: 14px; bottom: 3px; z-index: 5; color: #626b59; font-size: 10px; line-height: 1.25; background: #fff8efcf; padding: 2px 5px; border-radius: 3px; }
.map-attribution:hover { text-decoration: underline; }
@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  .home-page .hero-devices { --device-height: min(calc(100% - 68px), 280px, 39vw); }
}
