/* The button text remains readable when space beside the arrow is limited. */
.landing :is(.cta-pill, .benefits-cta) > span:first-child { white-space: nowrap; }

@media (hover: none), (max-width: 860px) {
  html { -webkit-tap-highlight-color: transparent; }
}

@media (max-width: 860px) {
  html { scrollbar-gutter: auto; }
  .landing { --menu-width: 48px; }
  .menu[data-menu-open] { padding: 0; }
  .menu[data-menu-open] > span { display: none; }
  .sm-nav { scrollbar-width: none; }
  .sm-nav::-webkit-scrollbar { display: none; }

  .hero__author { height: clamp(386px, 116vw, 565px); min-height: 0; }
  .author__stage { inset: 52px 0 0; }
  .author__stage .photo { width: auto; height: 100%; max-width: none; flex: none; }
  .nameplate { padding: 12px 14px; }
  .nameplate__role { margin-top: 4px; }

  .landing .cta-pill, .landing .benefits-cta {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: clamp(44px, 13vw, 54px);
    font-size: clamp(14px, calc(4.8vw + 1.5px), 19px);
    line-height: 1.2;
    gap: clamp(5px, calc(8vw - 15px), 18px);
    padding: 6px 6px 6px clamp(10px, calc(9vw - 14px), 22px);
  }
  .landing :is(.cta-pill, .benefits-cta) > span:first-child {
    padding-block: 0;
    text-align: center;
  }
  .price-cta-wrap .cta-pill, .contact-sheet .cta-pill { margin-inline: auto; }
  .landing .cta-pill--light, .landing .benefits-cta {
    box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 #c6cfcb, 0 10px 24px -12px #101a29;
  }
  .gifts-chapter .gch-card--dark { background-image: linear-gradient(164deg, #24334e, #16202f); }
  .gifts-chapter .gch-denom__text,
  .gifts-chapter.gch-js-ready [data-gifts-reveal].is-in .gch-denom__text { opacity: .66; }
  .final-cta .final-cta-inner { max-width: 565px; text-align: left; }
  .final-cta .closing-title { margin-inline-start: 0; }
  .final-cta .subtitle { line-height: 1.35; }
  .landing :is(.cta-pill__arrow, .benefits-arrow) {
    flex: none;
    width: clamp(28px, 8.5vw, 40px);
    aspect-ratio: 1;
  }

  .verdict { display: block; isolation: isolate; }
  .verdict .signal {
    position: absolute; z-index: -1; pointer-events: none;
    width: clamp(200px, 74vw, 420px); top: 3%; left: -42%;
    opacity: .17; filter: blur(2px);
  }
  .consult { overflow: clip; }
  .consult-inner { display: block; position: relative; isolation: isolate; padding-block: var(--section); }
  .cover-stage {
    position: absolute; z-index: -1; pointer-events: none;
    width: min(125vw, 590px); top: 3%; right: -38%;
    opacity: .33;
  }
  .book, .case-chapter .soft-proof .closing-side { display: none; }
  .case-chapter .soft-proof .closing { position: relative; display: block; isolation: isolate; }
  .case-chapter .soft-proof .closing::before {
    inset: 3% 8% 15% calc(-1 * var(--margin)); width: auto; height: auto;
    background: linear-gradient(150deg, #dce2e0, #cad5d7);
    border-radius: 0 58% 49% 0 / 0 35% 65% 0;
    filter: none; mask-image: none; opacity: .62;
  }
  .case-chapter .soft-proof .closing::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: 76px; height: 64px; right: -8px; bottom: 1%;
    background: radial-gradient(circle, #61778a 1px, transparent 1.5px) 0 0 / 8px 8px;
    mask-image: linear-gradient(115deg, transparent, black); opacity: .28;
  }

  .about-chapter .docs-header { padding-inline: 0; margin-bottom: 20px; }
  .about-chapter .docs-lead { font-size: clamp(25px, 7.1vw, 40px); text-wrap: balance; }
  .about-chapter .docs-lead span { display: inline; white-space: normal; }
  .about-chapter .carousel-viewport { display: flex; flex-direction: column; padding: 0; overflow: visible; }
  .about-chapter .carousel-viewport::before, .about-chapter .carousel-viewport::after { display: none; }
  .about-chapter .carousel-track {
    --slot-w: min(100%, 520px);
    --document-height: min(calc((100vw - 32px) * .72), 50svh, 375px);
  }
  .about-chapter .carousel-track.ring-ready { padding: 0; grid-template-columns: minmax(0, 1fr); }
  .about-chapter .ring-ready > .doc-slide { min-height: 0; height: var(--document-height); width: 100%; transform: none; transition: none; }
  .about-chapter .ring-ready > .doc-slide:not(.is-active) { display: none; }
  .about-chapter .doc-frame img { max-width: 100%; max-height: calc(var(--document-height) - 2px); }
  .about-chapter .carousel-controls {
    position: static; order: 1; justify-content: center; gap: 16px; padding: 0; margin-top: 14px;
  }
  .about-chapter .carousel-meta { margin-top: 10px; gap: 3px; padding-inline: 0; }
  .about-chapter .carousel-markers { gap: 0; }
  .about-lightbox .lightbox-close {
    flex: 0 0 44px;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .lightbox-close span { display: none; }
  .lightbox-close svg { display: block; }

  .issues { grid-template-columns: minmax(0, 1fr); }
  .issue { grid-template-columns: minmax(0, 1fr); }
  .issue .index { justify-self: start; margin-bottom: 12px; }
  .issue p { grid-column: 1; }
  .issue.is-current::before { transform: scaleX(1); }
  .issue.is-current .index { color: var(--navy); }
  .issue.is-current .pencil-ring { opacity: 1; }
  .pricing-chapter .scope-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .pricing-chapter .scope-card.is-current { border-color: #828c99; }
  .pricing-chapter .scope-card.is-current::after { transform: scaleX(1); }
  .pricing-chapter .scope-card.is-current .scope-glyph { background: var(--pc-navy); color: var(--pc-paper); }
  .guarantees-chapter .gc-card.is-current { background-color: #23334b; border-color: #78828e; }
  .guarantees-chapter .gc-card.is-current::before { opacity: 1; }
  .guarantees-chapter .gc-card.is-current::after { opacity: 1; transform: scaleX(1); }
  .guarantees-chapter .gc-card.is-current .gc-card__icon {
    background: var(--gc-ivory); color: var(--gc-navy-panel); border-color: var(--gc-ivory);
    box-shadow: 0 4px 20px rgb(245 243 234 / .32);
  }
  .stages-chapter .st-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-inline: clamp(14px, 4vw, 24px);
  }
  .stages-chapter .st-rail i { transform: scaleY(var(--rail-progress, 1)); }
  .stages-chapter .st-node { background: #b5bac0; }
  .stages-chapter .is-passed .st-node { background: var(--st-navy); }
  .stages-chapter .is-current .st-node { box-shadow: 0 0 0 4px rgb(25 34 54 / .12); }
  .stages-chapter .is-current .st-link, .stages-chapter .is-current .st-badge { background: var(--st-steel); }
  .stages-chapter .is-current .st-card { border-color: #7e8893; }

  @media (prefers-reduced-motion: no-preference) {
    .issue.is-current .pencil-ring path { animation: pencil-draw .42s var(--ease) both; }
    .pricing-chapter .scope-cards .scope-card.is-current { transform: translateX(3px); }
    .guarantees-chapter .gc-card.is-current .gc-card__icon { transform: scale(1.05); }
    .stages-chapter .is-current .st-card { transform: translateX(-3px); }
  }
}

@media (max-width: 360px) {
  .landing { overflow-wrap: anywhere; }
  .landing .brand-logo { gap: 6px; }
  .landing .brand-logo__name { font-size: clamp(9px, 3.1vw, 11px); letter-spacing: .045em; }
  .landing .brand-logo img { height: 24px; }
  .nameplate__name { font-size: clamp(15px, 5.5vw, 20px); }
  .faq-section.v-margins { padding-inline: 12px; }
  .faq-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "number toggle" "question question";
    gap: 8px; padding: 14px;
  }
  .v-margins .faq-num { grid-area: number; width: 25px; }
  .faq-toggle { grid-area: toggle; }
  .faq-q { grid-area: question; font-size: 17px; text-wrap: pretty; }
  .pricing-chapter .price-sticky {
    --pc-pad: 12px;
    grid-template-columns: minmax(0, 1fr);
    padding-inline: var(--pc-pad);
  }
  .contact-sheet { padding-inline: 14px; }
  .contact-footer__nav { grid-template-columns: 1fr; }
}
