/* Atlas Found shared typography and booking-position refinements. */

html {
  font-size: 100%;
}

body {
  line-height: 1.7;
  letter-spacing: 0.004em;
}

p,
li,
summary {
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
  text-wrap: balance;
  word-break: normal;
  hyphens: auto;
}

h1 {
  font-size: clamp(2.75rem, 4.1vw, 4.35rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.8375rem, calc(3.5vw - 5px), 3.1875rem);
  line-height: 1.22;
  letter-spacing: 0.006em;
}

h3 {
  font-size: clamp(1.45rem, 2.15vw, 2rem);
  line-height: 1.3;
  letter-spacing: 0.003em;
}

button,
.button,
.lp-action {
  line-height: 1.35;
}

/* Brand-wide CTA treatment. */
.button,
.button--navy,
.hero .button,
.lp-action,
.lp-action--dark {
  border-color: #207dea !important;
  background-color: #207dea !important;
  background-image: linear-gradient(135deg, #73b3f5 0%, #207dea 46%, #0f4fb8 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(32, 125, 234, 0.24), 6px 6px 0 rgba(0, 0, 0, 0.13);
}

.button:hover,
.button--navy:hover,
.hero .button:hover,
.lp-action:hover,
.lp-action--dark:hover {
  border-color: #8bc9ff !important;
  background-color: #145fc4 !important;
  background-image: linear-gradient(135deg, #8bc9ff 0%, #2788f4 42%, #0b3f98 100%) !important;
  color: #fff !important;
}

.accordion__item button b,
.lp-faq summary::after {
  background: linear-gradient(135deg, #73b3f5 0%, #207dea 50%, #0f4fb8 100%) !important;
}

/* Three compact client videos placed inside the opening hero on every page. */
.hero__inner {
  display: block;
}

.hero__copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero__copy .hero__lead,
.hero__copy .hero__support,
.hero__copy .microcopy {
  margin-left: auto;
  margin-right: auto;
}

.hero h1,
.lp-hero h1 {
  font-size: clamp(2.0375rem, calc(3.25vw - 5px), 3.2375rem);
  line-height: 1.2;
}

.hero-videos {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  margin: 48px auto 0;
}

.hero-videos__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #eaf3ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-videos__label span {
  color: #72b3f4;
  letter-spacing: 0.08em;
}

.hero-videos__grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

.hero-video-card {
  position: relative;
  flex: 0 1 230px;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(114, 179, 244, 0.42);
  border-radius: 14px;
  background: #090d16;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.hero-video-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #090d16;
}

.hero-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  width: clamp(44px, 5vw, 58px);
  height: clamp(44px, 5vw, 58px);
  padding: 0;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: linear-gradient(135deg, #115fc4 0%, #207dea 48%, #63aef5 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hero-video-play:hover {
  transform: translate(-50%, -50%) scale(1.07);
}

.hero-video-play span {
  margin-left: 3px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1;
}

.hero-video-card.is-playing .hero-video-play {
  opacity: 0;
  pointer-events: none;
}

.lp-hero {
  padding-bottom: 88px;
}

.lp-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px !important;
  margin-inline: auto;
  text-align: center !important;
}

.lp-hero__inner > h1,
.lp-hero__inner > .lp-hero__lead,
.lp-hero__inner > .lp-hero__support,
.lp-hero__inner > .lp-hero__note,
.lp-hero__inner > .hero-videos {
  width: 100%;
  text-align: center;
}

.lp-hero__inner > .lp-brand,
.lp-hero__inner > .lp-logo {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 26px;
  justify-content: center;
  text-align: center;
}

.lp-hero__badge {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 24px;
  justify-content: center;
  text-align: center;
}

.lp-hero__badge,
.lp-hero h1,
.lp-hero__lead,
.lp-hero__support,
.lp-hero__note {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.lp-hero__inner > .lp-action {
  justify-self: center;
}

/* Match landing-page hero typography and reading width to the homepage. */
.lp-hero h1 {
  max-width: 760px;
  font-size: clamp(2.0375rem, calc(3.25vw - 5px), 3.2375rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.lp-page h2 {
  font-size: clamp(1.8375rem, calc(3.5vw - 5px), 3.1875rem);
  line-height: 1.22;
  letter-spacing: 0.006em;
}

.lp-hero__lead {
  max-width: 760px !important;
}

.lp-hero__support {
  max-width: 700px !important;
}

.lp-hero__line {
  white-space: normal;
}

.lp-hero__lead,
.hero__lead {
  line-height: 1.65;
  letter-spacing: 0.006em;
}

.lp-criteria h3,
.lp-service h3,
.roadmap__copy h3,
.about__copy h3 {
  line-height: 1.28;
  letter-spacing: 0.004em;
}

.lp-problem__item h3,
.lp-system__item h3,
.lp-work__group h3,
.lp-process__steps h3,
.lp-why__item h3,
.service-card h3,
.process__steps h3,
.result-row h3 {
  line-height: 1.32;
  letter-spacing: 0.003em;
}

.lp-faq summary,
.accordion__item button span {
  line-height: 1.4;
  letter-spacing: 0.002em;
  overflow-wrap: break-word;
}

/* Pull the booking area and the calendar itself closer to the preceding content. */
.booking.section,
.lp-book.lp-section {
  padding-top: 64px;
}

.booking__intro,
.lp-book__intro {
  margin-bottom: 26px;
}

@media (max-width: 820px) {
  body {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  p,
  li,
  summary {
    line-height: 1.72;
  }

  .booking.section,
  .lp-book.lp-section {
    padding-top: 48px;
  }

  .hero__inner,
  .lp-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__copy,
  .lp-hero__inner {
    max-width: 760px !important;
    margin-inline: auto;
    text-align: center;
  }

  .hero__copy .hero__lead,
  .hero__copy .hero__support,
  .hero__copy .microcopy,
  .lp-hero__badge,
  .lp-hero h1,
  .lp-hero__lead,
  .lp-hero__support,
  .lp-hero__note {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-videos {
    max-width: 610px;
    margin: 42px auto 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 0.96rem;
    line-height: 1.72;
    letter-spacing: 0.006em;
  }

  h1,
  .lp-hero h1 {
    font-size: clamp(1.5375rem, calc(7.7vw - 5px), 2.0375rem);
    line-height: 1.25;
    letter-spacing: 0.008em;
  }

  h2,
  .lp-page h2 {
    font-size: clamp(1.1875rem, calc(6.3vw - 5px), 1.6375rem);
    line-height: 1.3;
    letter-spacing: 0.005em;
  }

  h3,
  .lp-page h3 {
    font-size: clamp(1.25rem, 5.4vw, 1.55rem);
    line-height: 1.34;
    letter-spacing: 0.003em;
  }

  .lp-criteria h3,
  .lp-service h3,
  .service-card h3,
  .roadmap__copy h3,
  .about__copy h3 {
    font-size: clamp(1.4rem, 6.2vw, 1.75rem);
    line-height: 1.33;
  }

  .lp-problem__item h3,
  .lp-system__item h3,
  .lp-work__group h3,
  .lp-process__steps h3,
  .lp-why__item h3,
  .process__steps h3,
  .result-row h3 {
    font-size: clamp(1.18rem, 5.2vw, 1.42rem);
    line-height: 1.36;
  }

  .lp-faq summary,
  .accordion__item button span {
    font-size: 1.05rem;
    line-height: 1.42;
  }

  .lp-hero__lead,
  .hero__lead,
  .lp-heading > p:last-child,
  .section-heading > p:last-child,
  .booking__intro > p,
  .lp-book__intro > p {
    line-height: 1.72;
  }

  .booking.section,
  .lp-book.lp-section {
    padding-top: 38px;
  }

  .booking__intro,
  .lp-book__intro {
    margin-bottom: 20px;
  }

  .hero-videos {
    width: 100%;
    margin-top: 34px;
  }

  .hero-videos__grid {
    width: 100%;
    gap: 6px;
  }

  .hero-video-card {
    flex: 1 1 0;
    max-width: 132px;
    border-radius: 9px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  }

  .hero-video-play {
    width: 38px;
    height: 38px;
  }

  .hero-videos__label {
    margin-bottom: 11px;
    font-size: 0.65rem;
    letter-spacing: 0.075em;
  }
}
