/* fix-qa3.css: QA pass on about, cases, whitepapers */

/* ABOUT: "By the numbers" header stacked like every other section header
   (heading wrapped to two lines with the intro floating bottom right). */
body[data-page="about"] #facts .sh{flex-direction:column;align-items:flex-start;gap:14px}
body[data-page="about"] #facts .sh .h2{max-width:none}
body[data-page="about"] #facts .sh p{max-width:44em}
/* Six fact tiles were cramped at laptop widths: 3 x 2 until there is room for 6 */
@media(max-width:1280px) and (min-width:801px){
  body[data-page="about"] .fnum{grid-template-columns:repeat(3,minmax(0,1fr))}
}
body[data-page="about"] .fnum>div{padding:22px 20px}
/* Hero without the duplicate stat strip: keep a clean bottom margin */
body[data-page="about"] .hero.sub .btn-row{margin-bottom:8px}

/* ABOUT + CASES: the closing panel repeated the same three numbers shown
   higher on the page (and as "$15B+" against "USD 15B+"). */
body:is([data-page="about"],[data-page="cases"]) .cta-panel .cta-st{display:none}
body:is([data-page="about"],[data-page="cases"]) .cta-panel ol{margin-bottom:0}

/* Links: solid underline plus the animated 25% bar read as a double underline */
body[data-page="whitepapers"] .wp-body .link,
body[data-page="about"] .founder .link{box-shadow:none}

/* Hero stat "USD 15B+" broke onto two lines on phones */
@media(max-width:480px){
  body[data-page="cases"] .hero-stats b{font-size:28px;white-space:nowrap}
}

/* CASES + WHITEPAPERS: vendor chips took five rows on phones.
   One swipeable row instead, edge to edge inside the gutter. */
@media(max-width:1060px){
  body:is([data-page="cases"],[data-page="whitepapers"]) .filters{flex-wrap:nowrap;overflow-x:auto;margin:24px calc(-1 * var(--gut,20px));padding:2px var(--gut,20px);scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scroll-padding-inline:var(--gut,20px)}
  body:is([data-page="cases"],[data-page="whitepapers"]) .filters::-webkit-scrollbar{display:none}
  body:is([data-page="cases"],[data-page="whitepapers"]) .filters .chip{flex:none;white-space:nowrap;scroll-snap-align:start}
}

/* CASES: featured figures sit level with the heading block */
@media(min-width:861px){
  body[data-page="cases"] section[aria-labelledby="featH"] .hero-stats div{min-height:112px}
}

/* WHITEPAPERS: the cover title was repeated word for word as the card heading.
   Keep the heading for screen readers, show the cover title once. */
body[data-page="whitepapers"] .wp-body h3{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body[data-page="whitepapers"] .wp-body{padding:20px 22px 22px;gap:14px}
body[data-page="whitepapers"] .wp{position:relative}
@media(max-width:599px){
  body[data-page="whitepapers"] .wp-cover{min-height:132px}
}

/* WHITEPAPERS: download gate */
body[data-page="whitepapers"] .gate{background:rgba(27,42,74,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
body[data-page="whitepapers"] .gate-in{padding:36px 32px 30px;gap:16px;box-shadow:0 40px 90px -30px rgba(13,20,36,.55);border-top:6px solid var(--sun)}
body[data-page="whitepapers"] .gate-in h3{padding-right:28px}
body[data-page="whitepapers"] .gate-sub{margin:-6px 0 2px;font-size:15px;line-height:1.5;color:#3d4658}
body[data-page="whitepapers"] .gate-in .btn{justify-content:center;width:100%;background:var(--navy);color:#fff}
body[data-page="whitepapers"] .gate-in .btn:hover{background:var(--navy-2,#24365c)}
body[data-page="whitepapers"] .gate-in input:focus{outline:0;box-shadow:inset 0 0 0 2px var(--navy)}
body[data-page="whitepapers"] #gateOk{margin:0;padding:10px 14px;border-radius:12px;background:#FFF6DC;color:var(--navy)}
@media(max-width:480px){
  body[data-page="whitepapers"] .gate{place-items:end center;padding:0}
  body[data-page="whitepapers"] .gate-in{border-radius:22px 22px 0 0;padding:30px 20px calc(24px + env(safe-area-inset-bottom))}
}
/* "USD 15B+" wrapped inside its fact tile: smaller currency prefix */
body[data-page="about"] .fnum b{white-space:nowrap}
body[data-page="about"] .fnum b small{font-size:.5em;font-weight:600;letter-spacing:0;margin-right:.12em;vertical-align:.55em}
body[data-page="about"] #facts .sh p{max-width:60em;text-wrap:pretty}
/* Hero without stats: give the photo card and its badge room above the fold line */
@media(min-width:861px){body[data-page="about"] .hero.sub{padding-bottom:clamp(72px,7vw,104px)}}
/* Headings left one word alone on the last line ("table.", "numbers.") */
body:is([data-page="about"],[data-page="cases"],[data-page="whitepapers"]) .h2,
body[data-page="cases"] .hero .display{text-wrap:balance}
/* Lead Q&A card was oversized on phones (21px body text in a long yellow block) */
@media(max-width:600px){
  body[data-page="about"] .aqa:first-child{padding:24px 22px}
  body[data-page="about"] .aqa:first-child h2{font-size:26px}
  body[data-page="about"] .aqa:first-child p{font-size:17px;line-height:1.55}
}
/* Vendor chips: one chip ("Workday") dropped to an orphan second row at laptop widths */
@media(min-width:1061px) and (max-width:1320px){
  body:is([data-page="cases"],[data-page="whitepapers"]) .filters{gap:6px}
  body:is([data-page="cases"],[data-page="whitepapers"]) .filters .chip{padding:0 12px;font-size:13.5px;min-height:40px}
}
/* CASES: at laptop widths the vendor tag wrapped beside the big percentage and
   knocked headings out of line; two even columns of six instead of three cramped ones */
@media(min-width:901px) and (max-width:1240px){
  body[data-page="cases"] .cases{grid-template-columns:repeat(2,minmax(0,1fr))}
}
body[data-page="cases"] .case .tag{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
