/* A shared opening for Deeply Human's editorial and offer pages. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(22px, 4vw, 56px);
  border: 0;
  background: var(--header-bg, var(--paper));
}

.site-header .wordmark {
  flex: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.025em;
  text-decoration: none;
}

.site-header .topnav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  min-width: 0;
  font-size: 13px;
}

.site-header .topnav a {
  flex: none;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  text-underline-offset: 4px;
}

.site-header .topnav a:not(.nav-cta):hover {
  text-decoration: underline;
}

.site-header .topnav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  line-height: 1.2;
  transition: background .2s ease, color .2s ease;
}

.site-header .topnav .nav-cta:hover {
  background: var(--ink);
  color: var(--header-bg, var(--paper));
}

.site-header a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.secondary-page h1 {
  font-size: clamp(52px, 7vw, 100px);
  line-height: .98;
  letter-spacing: -.065em;
}

/* Longer titles keep the same type style without pushing their first action out of view. */
.apps-page h1 { font-size: clamp(52px, 6.1vw, 84px); }
.webinar-page h1 { font-size: clamp(54px, 6.7vw, 92px); }

.service-page .hero-inner,
.apps-page .hero-grid {
  min-height: 760px;
  padding-block: 70px 110px;
}

.event-page .wrap.hero {
  min-height: 760px;
  padding-block: 70px 110px;
}

.apps-page .hero-grid,
.webinar-page .wrap.hero {
  min-height: 700px;
  padding-block: 45px 80px;
}

.about-page .hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(620px, calc(100svh - 85px), 900px);
  padding-block: 140px 120px;
}

.waitlist-page main {
  padding-block: 70px 110px;
}

@media (max-width: 850px) {
  .service-page .hero-inner,
  .apps-page .hero-grid,
  .event-page .wrap.hero {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 19px 22px;
  }

  .site-header .topnav {
    width: auto;
    max-width: calc(100% - 120px);
    justify-content: flex-end;
    gap: clamp(8px, 1.5vw, 17px);
    font-size: 12px;
  }

  .site-header .topnav a:not(.nav-cta) { display: inline-flex; }

  .secondary-page h1 {
    font-size: clamp(50px, 13vw, 75px);
  }

  .apps-page h1,
  .webinar-page h1 {
    font-size: clamp(50px, 12vw, 70px);
  }

  .service-page .hero-inner,
  .apps-page .hero-grid,
  .event-page .wrap.hero,
  .about-page .hero-inner,
  .waitlist-page main {
    padding-block: 55px 90px;
  }

  .about-page .hero-inner {
    min-height: min(680px, calc(100svh - 100px));
    padding-block: 100px 90px;
  }
}

@media (max-width: 480px) {
  .site-header .wordmark { font-size: 14px; }
  .site-header .topnav { gap: 9px; max-width: calc(100% - 112px); }
  .site-header .topnav .nav-cta { min-height: 36px; padding-inline: 11px; }

  .service-page .site-header .topnav a:not(.nav-cta),
  .webinar-page .site-header .topnav a:not(.nav-cta) { display: none; }

  .apps-page .site-header .topnav { gap: 8px; font-size: 11px; }
}

@media (max-width: 360px) {
  .site-header { gap: 8px; padding-inline: 16px; }
  .site-header .wordmark { font-size: 13px; }
  .event-page .site-header .topnav a:not(.nav-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .topnav .nav-cta { transition: none; }
}
