/* Webflow resets */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1;
  font-size: 1em;
}
a {
  color: var(--th-dark-200);
  text-decoration: none;
}
.w-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Shared layout */
.nav-link:hover .nav-link_dot {
  opacity: 1;
}
.again-scroller .text-40 {
  position: relative;
  z-index: 30;
}

.site-navigation_outer-wrapper {
  -webkit-mix-blend-mode: difference;
}

body.site-menu-open {
  overflow: hidden;
}

body.site-menu-open .modal-menu-wrapper {
  /* The contacts page uses a different Webflow interaction bundle. */
  display: flex !important;
}

body:not(.site-menu-open) .modal-menu-wrapper[aria-hidden="true"] {
  display: none !important;
}

body.site-menu-open .menu-open_btn,
body:not(.site-menu-open) .menu-close_btn {
  display: none !important;
}

body.site-menu-open .menu-close_btn {
  display: flex !important;
}

:is(.header-brand, .menu-open_btn, .menu-close_btn, .nav-link, .slider-arrow, .faq-trigger_heading, .fh-trigger_heading):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.ready-index-block .text-18 {
  letter-spacing: 0.1em;
}

.media-logo-section .logos-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 8vw, 6rem);
  max-width: 36rem;
}

.media-logo-section .media-logo {
  max-width: 14rem;
  object-fit: contain;
}

.footer-section .footer-cookie-link {
  text-decoration: underline;
  text-underline-offset: .2em;
}

#cookie-policy {
  scroll-margin-top: 4.5rem;
}

/* Phone and tablet layout */
@media (max-width: 991px) {
  body {
    font-size: clamp(1rem, 4.1vw, 1.125rem);
  }

  .site-container {
    width: min(calc(100% - 2rem), 44rem);
  }

  .site-navigation_outer-wrapper {
    padding-block: .375rem;
  }

  .site-navigation_inner-wraper {
    grid-template-columns: 4rem minmax(0, 1fr) 4rem;
    align-items: center;
  }

  .header-brand {
    display: grid;
    min-height: 44px;
    place-items: center;
    font-size: clamp(1rem, 3.6vw, 1.25rem);
    white-space: nowrap;
  }

  .header-links-block {
    gap: 0;
  }

  .coaching-hero-section .hero-centered-block .h1 {
    max-width: 100%;
    font-size: clamp(2rem, 12vw, 4.25rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .menu-btn_wrapper {
    padding-left: 0;
  }

  .menu-open_btn,
  .menu-close_btn {
    width: 44px;
    height: 44px;
  }

  .modal-menu-wrapper {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-padding-block: 3.5rem 1rem;
  }

  .modal-menu_inner-wrapper {
    flex: 1 0 auto;
    justify-content: flex-start;
    height: auto;
    min-height: 100%;
    padding-block: 4.75rem max(1rem, env(safe-area-inset-bottom));
    gap: 2rem;
  }

  .modal-menu_inner-wrapper .nav-link {
    min-height: 44px;
  }

  .modal-menu_inner-wrapper .nav-link .text-22 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .modal-menu_inner-wrapper .modal-menu_bottom-block {
    flex-wrap: wrap;
    gap: .75rem;
  }

  .modal-menu_inner-wrapper .cta-btn {
    min-height: 44px;
  }

  .footer-navigation_block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
    width: 100%;
    gap: 1.5rem 1rem;
  }

  .footer-nav-block {
    gap: 0;
  }

  .footer-nav-column {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .footer-nav-link {
    min-height: 2.25rem;
    display: flex;
    align-items: center;
  }

  .footer-brand {
    margin-top: clamp(2.25rem, 10vw, 5rem);
  }

  .footer-brand-text {
    font-size: clamp(2.875rem, 15vw, 6rem);
  }

  .post-rich-text {
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .breadcrumbs-list {
    flex-wrap: wrap;
  }

  .breadcrumbs-item,
  .active-breadcrumb {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .blog-grid_item,
  .blog-card_content-block,
  .article-card {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .articles-swiper,
  .more-posts-swiper {
    min-width: 0;
  }

  .slider-arrow {
    width: 44px;
    height: 44px;
  }

  .shit-step .text-30 {
    font-size: 2.625em;
    font-weight: 300;
  }
  .method-card .text-40,
  .mention-card .text-40 {
    font-size: 1.5em;
  }
  .method-card .content-block {
    gap: 2.5em;
  }

  .method-swiper .swiper-slide,
  .rules-swiper .swiper-slide,
  .home-reviews-swiper .swiper-slide,
  .mentions-swiper .swiper-slide {
    margin-left: 1em;
  }

  .method-swiper .swiper-slide:last-child,
  .rules-swiper .swiper-slide:last-child,
  .home-reviews-swiper .swiper-slide:last-child,
  .mentions-swiper .swiper-slide:last-child {
    margin-right: clamp(1rem, 100vw - 19.375em, 3rem);
  }

  .ll-item .bullet-item_dot {
    width: 0.625em;
    height: 0.625em;
  }
}

/* Pointer hover */
@media (hover: hover) and (pointer: fine) {
  .pic-wrapper:hover .fullsize-img,
  .article-card:hover .fullsize-img,
  .blog-card:hover .fullsize-img {
    transform: scale(1.1);
  }
}

/* Readable rhythm across the editorial pages, without changing their type scale. */
:is(.text-16, .text-18, .text-20, .text-22, .text-24) {
  line-height: 1.65;
}
:is(.text-30, .text-40, .text-50, .text-60) {
  line-height: 1.35;
}
.post-rich-text {
  line-height: 1.75;
}
.post-rich-text p + p {
  margin-top: 1em;
}
html[lang] :is(.h1, .h2, .h3, .h4, .heading-110, .heading-90, .heading-50, .heading-40, .heading-34) {
  line-height: 1.22;
}

/* Seven menu entries must remain separated and reachable on short screens. */
.modal-menu-wrapper {
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.modal-menu_inner-wrapper {
  height: auto;
  min-height: 100%;
  flex: 1 0 auto;
  padding-block: 5rem 2rem;
  gap: 2rem;
}
.modal-menu_inner-wrapper .content-block.gap-12 {
  gap: clamp(.625rem, 1.4vh, 1rem);
}
.modal-menu_inner-wrapper .nav-link .text-22 {
  line-height: 1.3;
}
.footer-nav-link .text-20 {
  line-height: 1.5;
}

/* Give the three separate value statements their own vertical rhythm. */
.failure-column {
  gap: clamp(2rem, 4vw, 4rem);
}
.failure-column > div:first-child {
  display: grid;
  gap: clamp(.75rem, 1.8vw, 1.75rem);
}
.fullscreen-section.failure-section {
  height: auto;
  min-height: 100svh;
  padding-block: clamp(4rem, 7vw, 7rem);
}

/* Keep delivery copy and its portrait in separate tracks, not overlapping layers. */
.expect-section .default-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.expect-section .default-grid > .spacer {
  display: none;
}
.expect-section .expect-left-column {
  grid-area: 1 / 1 !important;
  width: 100%;
  min-width: 0;
  gap: 2rem;
  height: auto;
}
.expect-section .expect-left-column .heading-110 {
  font-size: clamp(2rem, 4vw, 4.5rem);
  overflow-wrap: anywhere;
}
.expect-section .default-grid > .content-block {
  grid-area: 1 / 3 !important;
  min-width: 0;
}
.expect-section .expect-image {
  grid-area: 1 / 2 !important;
  position: static;
  transform: none;
  width: 100%;
  height: auto;
  max-height: 38rem;
  object-fit: contain;
}
.expect-section .expect-description-block {
  grid-area: 2 / 1 / 3 / -1 !important;
}
.fullscreen-section.centered-section.expect-section {
  height: auto;
  min-height: 100svh;
  padding-block: clamp(4rem, 7vw, 7rem);
}
@media (max-width: 991px) {
  .expect-section .default-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }
  .expect-section .expect-left-column {
    order: 0;
    gap: 1.5rem;
    margin-bottom: 0;
  }
  .expect-section .expect-left-column .heading-110 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-top: 0;
  }
  .expect-section .expect-image {
    order: 1;
    align-self: center;
    width: min(100%, 23rem);
  }
  .expect-section .default-grid > .content-block {
    order: 2;
  }
  .expect-section .expect-description-block {
    order: 3;
  }
}

/* Keep short headings and introductions from ending in an isolated word/character.
   Balance wraps naturally at narrow widths instead of forcing horizontal overflow. */
:is(h1, h2, h3, h4, .h1, .h2, .h3, .h4, .heading-110, .heading-90,
    .heading-50, .heading-40, .heading-34, .hero-subtitle-block .text-18,
    .faq-trigger_heading, .fh-trigger_heading, #insight-jottings summary) {
  text-wrap: balance;
}
.home-landing .centered-content-block.hero-subtitle-block {
  width: 100%;
  max-width: 52rem;
}
.home-landing .hero-subtitle-block .mobile-hidden {
  display: block;
  text-wrap: balance;
}

/* Pilot selection guide: a readable sequence, not a carousel of testimonials. */
.pilot-guide { width: min(100% - 2.5rem, 64rem); margin-inline: auto; padding-bottom: 4rem; }
.pilot-guide-section { padding-block: clamp(2rem, 5vw, 4rem); border-top: 1px solid currentColor; scroll-margin-top: 6rem; }
.pilot-guide h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.35; margin-bottom: 1.5rem; }
.pilot-guide h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.45; margin-bottom: .75rem; }
.pilot-guide p, .pilot-guide li { font-size: 18px; line-height: 1.85; }
.pilot-guide p { margin: 0 0 1rem; }
.pilot-guide ol { padding-left: 1.5rem; margin: 0 0 1.5rem; }
.pilot-guide li { padding-left: .5rem; margin-bottom: .75rem; }
.pilot-condition-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2rem; margin-block: 2rem; }
.pilot-index { display: block; font-size: 14px; margin-bottom: .75rem; opacity: .65; }
.pilot-scenario + .pilot-scenario { border-top: 1px solid #ccc; margin-top: 2rem; padding-top: 2rem; }
.pilot-closing a { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 640px) { .pilot-condition-grid { grid-template-columns: 1fr; gap: 1.25rem; } }
.long-insight .post-rich-text p { font-size: 18px; line-height: 1.85; margin-block: 0 1.4em; }
.long-insight .post-rich-text h2 { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.4; margin-block: 2em .75em; }
.long-insight .text-18 { font-size: 16px; line-height: 1.6; }

.long-insight .post-rich-text { display: block; }

/* First conversation: keep its small label close to the six discussion topics. */
.cover-steps-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  column-gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.cover-steps-grid > .content-block { min-width: 0; width: 100%; }
@media (max-width: 991px) {
  .cover-steps-grid { gap: 20px; align-items: stretch; }
  .cover-steps-grid > .pt-20 { padding-bottom: 0; }
}

/* Keep Webflow's block spacing while normalizing adjacent article paragraphs. */
@property --article-block-gap {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

.blog-post_hero-section:not(.long-insight) .post-rich-text {
  --article-block-gap: 3em;
  row-gap: var(--article-block-gap);
}

.blog-post_hero-section:not(.long-insight) .post-rich-text > p:has(+ p) {
  margin-block-end: 0;
}

.blog-post_hero-section:not(.long-insight) .post-rich-text > p + p {
  margin-block-start: calc(24px - var(--article-block-gap));
}

.blog-post_hero-section.long-insight .post-rich-text > p:has(+ p) {
  margin-block-end: 24px;
}

/* Distinguish scenario headings from their explanatory copy. */
#pilot-scenarios .pilot-scenario > h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 16px;
}
#pilot-scenarios .pilot-scenario > p {
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.85;
}

:lang(zh) .press-title-block > .text-18.max-w-40 {
  max-width: min(100%, 48rem);
  text-wrap: balance;
}
