/* ============================================================
   KIBO homepage (src/pages/index.astro): layout and component styles,
   loaded only on /. Brand colors: src/styles/tokens.css; type, spacing
   and other homepage tokens: public/home/tokens.css.

   Grouped by section in page order; each group names its component.
   Where a rule has to override a rule in a later group, it sits at the
   end of that later group, under a note saying so: moving it up would
   change what wins.
   ============================================================ */

/* ==== Page tokens and base ==== */
:root { --kh-blue: #1155CC; --kh-sky: #4A86E8; }
html { scroll-behavior: smooth; }
body { margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ==== Shared across sections (buttons, wrappers, headings, reveal) ==== */
@keyframes khFtIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes kh-logo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes khSellIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
* { box-sizing: border-box; }
.kh-wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
a { color: inherit; }
button { font-family: var(--font-base); }
.kh-reveal { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.kh-reveal[data-d="1"] { transition-delay: .06s; }
.kh-reveal[data-d="2"] { transition-delay: .12s; }
.kh-reveal[data-d="3"] { transition-delay: .18s; }
.kh-reveal[data-d="4"] { transition-delay: .24s; }
.kh-reveal[data-d="5"] { transition-delay: .30s; }
.kh-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.kh-psec-btn { font-family: var(--font-base); font-weight: var(--fw-medium); font-size: 16px; border-radius: 60px; padding: 15px 26px; cursor: pointer; border: 1.5px solid transparent; transition: transform .12s var(--ease-out), box-shadow .2s var(--ease-out), background .2s var(--ease-out), color .2s var(--ease-out); }
.kh-psec-btn--primary { background: var(--kibo-button); color: var(--kibo-dark-grey); position: relative; overflow: hidden; isolation: isolate; }
.kh-psec-btn--primary::before { content: ""; position: absolute; inset: 0; background: var(--kibo-dark-grey); transform: scaleX(0); transform-origin: left center; z-index: -1; transition: transform .38s var(--ease-out); }
.kh-psec-btn--primary:hover { background: var(--kibo-button); color: var(--kibo-yellow); transform: none; box-shadow: none; }
.kh-psec-btn--primary:hover::before { transform: scaleX(1); }
.kh-psec-btn--primary:active { transform: none; }
@media (prefers-reduced-motion: reduce) { .kh-psec-btn--primary:hover { transform: none; } }
@media (prefers-reduced-motion: no-preference) { .kh-logos-xfade.is-in img { animation: kh-logo-in .5s var(--ease-out) both; } }
.kh-section { padding: 76px 0; }
.kh-sec-h { font-family: var(--font-base); font-weight: var(--fw-semibold); font-size: 34px; line-height: 1.12; letter-spacing: -.01em; color: var(--kibo-dark-grey); margin: 0 0 10px; }
.kh-sec-sub { font-size: 16px; line-height: 25px; color: var(--fg-2); margin: 0; max-width: 640px; text-wrap: balance; }
@media (max-width: 720px) { .kh-sec-h { font-size: 26px; } }
.kh-fexp-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 32px; max-width: none; }
.kh-fexp-head .kh-sec-h { color: var(--kibo-dark-grey); margin: 0; max-width: 720px; }
.kh-fexp-head .kh-sec-h em { font-family: var(--font-testimonial); font-style: italic; font-weight: 400; color: var(--kh-blue); }
.kh-fexp-head .kh-sec-sub { color: var(--fg-2); max-width: 640px; margin: 0; text-align: left; }
@media (max-width: 760px) { .kh-fexp-head { flex-direction: column; align-items: flex-start; gap: 14px; } }
.kh-sell__ch { margin: 0; gap: 2px; font-family: var(--font-base); color: var(--kibo-dark-grey); }
.kh-sell__body { display: grid; gap: 18px; }
.kh-sell__body p { margin: 0; font-family: var(--font-base); color: var(--kibo-black); text-wrap: pretty; }
.kh-sell__ch { font-weight: var(--fw-semibold); font-size: 20px; line-height: 1.16; letter-spacing: -.02em; display: block; text-wrap: balance; }
.kh-sell__split { display: grid; gap: 0; }
.kh-sell__rail { display: flex; flex-direction: column; padding: 24px 32px 24px 0; gap: 2px; }
.kh-sell__tab { display: grid; border: 0; background: transparent; padding: 18px 22px; border-radius: 8px; position: relative; }
.kh-sell__tabl { font-size: 20px; line-height: 1.16; letter-spacing: -.02em; color: var(--fg-2); text-wrap: balance; }
.kh-sell__tab:hover .kh-sell__tabl { color: var(--kibo-dark-grey); }
.kh-sell__tab.is-on .kh-sell__tabl { color: var(--kibo-dark-grey); }
.kh-sell__panel { padding: 28px 0 8px 44px; }
.kh-sell__panel .kh-sell__ch { font-size: 26px; }
.kh-sell__panel .kh-sell__body p { font-size: 18px; line-height: 1.35; max-width: 62ch; }
@media (max-width: 900px) {
  .kh-sell__rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border-card); padding: 16px 0; }
  .kh-sell__panel { padding: 24px 0 0; }
}
.kh-sell__tab.is-on { background: var(--kibo-yellow); }
/* fixed height so switching tabs never resizes the section */
.kh-sell__split { min-height: 360px; }
.kh-sell__panel { display: grid; min-height: 360px; }
@media (max-width: 900px) { .kh-sell__split, .kh-sell__panel { min-height: 0; } }
.kh-sell__tab.is-on::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%) rotate(45deg); border-radius: 2px; background: var(--kibo-yellow); display: none; }
/* smoother tab + panel transitions in the sell split */
.kh-sell__tab { gap: 14px; align-items: baseline; grid-template-columns: minmax(0,1fr); text-align: left; cursor: pointer; transition: background .34s cubic-bezier(.22,1,.36,1), color .34s cubic-bezier(.22,1,.36,1); }
.kh-sell__tabl { font-family: var(--font-base); font-weight: var(--fw-semibold); transition: color .34s cubic-bezier(.22,1,.36,1); }
.kh-sell__panel { gap: 22px; align-content: start; animation: khSellIn .62s cubic-bezier(.22,1,.36,1) both; }
.kh-sell__panel > * { animation: khSellIn .66s cubic-bezier(.22,1,.36,1) both; }
.kh-sell__panel > *:nth-child(1) { animation-delay: .03s; }
.kh-sell__panel > *:nth-child(2) { animation-delay: .09s; }
.kh-sell__panel > *:nth-child(3) { animation-delay: .15s; }
.kh-sell__panel > *:nth-child(4) { animation-delay: .21s; }
@media (prefers-reduced-motion: reduce) { .kh-sell__panel, .kh-sell__panel > * { animation: none; } }
.kh-sell__ch, .kh-sell__tabl { color: var(--kibo-black); }
.kh-sell__split { align-items: stretch; grid-template-columns: 400px minmax(0,1fr); }
/* slower, calmer rail switching in both dark rail sections */
.kh-whatsnext .kh-sell__panel, .kh-frail .kh-sell__panel { animation: none; transition: background .6s cubic-bezier(.22,1,.36,1); }
.kh-whatsnext .kh-sell__panel > *, .kh-frail .kh-sell__panel > * { animation: none; }
/* rail panel glyph */
.kh-sell__panelico { position: relative; z-index: 1; display: block; color: var(--kibo-white); }
.kh-sell__panelico svg * { vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) { .kh-sell__panelico { animation: khFtIn 1.05s cubic-bezier(.22,1,.36,1) both; } }
/* rail section headers: CTA parked top right */
.kh-whatsnext .kh-fexp-head, .kh-frail .kh-fexp-head { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 32px; row-gap: 14px; }
.kh-whatsnext .kh-fexp-head .kh-sec-h, .kh-frail .kh-fexp-head .kh-sec-h { grid-column: 1; }
.kh-whatsnext .kh-fexp-head .kh-sec-sub, .kh-frail .kh-fexp-head .kh-sec-sub { grid-column: 1; }
.kh-fexp-head__cta { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
@media (max-width: 880px) {
  .kh-whatsnext .kh-fexp-head, .kh-frail .kh-fexp-head { grid-template-columns: minmax(0,1fr); }
  .kh-fexp-head__cta { grid-column: 1; grid-row: auto; justify-self: start; }
}
.kh-hexp__listarrow { stroke-width: 1.5; }
.kh-hexp__listarrow line, .kh-hexp__listarrow path { stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* ==== Hero (HeroSplit.astro) ==== */
@keyframes ac-mesh-fade { from { opacity: 0; -webkit-mask-position: 100% 0; mask-position: 100% 0; } 30% { opacity: 1; } to { opacity: 1; -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes ac-mesh-flow { from { stroke-dashoffset: 248; } to { stroke-dashoffset: 0; } }
@keyframes ac-mesh-trace-fade { from { opacity: 0; } to { opacity: 1; } }
.kh-hero { position: relative; overflow: hidden; }
.kh-hero > .kh-wrap { position: relative; z-index: 1; }
.kh-hero h1 { font-family: var(--font-base); font-weight: var(--fw-semibold); letter-spacing: -.01em; margin: 0; }
.kh-hero h1 em { font-style: normal; color: var(--kibo-dark-grey); position: relative; }
.kh-hero--split { background: var(--kibo-dark-grey); position: relative; overflow: hidden; }
.ac-hero__brain { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, var(--kibo-black) 0%, var(--kibo-black) 70%, transparent 100%); mask-image: linear-gradient(to bottom, var(--kibo-black) 0%, var(--kibo-black) 70%, transparent 100%); }
.ac-brain__mesh { position: absolute; inset: 0; background-position: center top; background-size: cover; background-repeat: no-repeat; filter: brightness(0.3) saturate(0.65); opacity: 0.55; }
.kh-herostack .ac-brain__mesh { background-image: url('/home/patterns/hex-01.svg'); }
.ac-brain__mesh--in { animation: ac-mesh-fade 2.8s cubic-bezier(.4,0,.2,1) both; -webkit-mask-image: linear-gradient(100deg, var(--kibo-black) 0 26%, rgba(0,0,0,.5) 52%, transparent 80%); mask-image: linear-gradient(100deg, var(--kibo-black) 0 26%, rgba(0,0,0,.5) 52%, transparent 80%); -webkit-mask-size: 320% 100%; mask-size: 320% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.ac-mesh-trace { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; animation: ac-mesh-trace-fade 2.6s cubic-bezier(.4,0,.2,1) both; -webkit-mask-image: linear-gradient(to bottom, var(--kibo-black) 0%, var(--kibo-black) 72%, transparent 100%); mask-image: linear-gradient(to bottom, var(--kibo-black) 0%, var(--kibo-black) 72%, transparent 100%); }
.ac-mesh-trace__base > * { fill: none; stroke: rgba(74, 134, 232, 0.35); stroke-width: 0.4; }
.ac-mesh-trace--light { -webkit-mask-image: linear-gradient(to bottom, var(--kibo-black) 0%, var(--kibo-black) 72%, transparent 100%), linear-gradient(to right, transparent 14%, var(--kibo-black) 48%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, var(--kibo-black) 0%, var(--kibo-black) 72%, transparent 100%), linear-gradient(to right, transparent 14%, var(--kibo-black) 48%); mask-composite: intersect; }
.ac-mesh-trace__light { filter: drop-shadow(0 0 3px rgba(90, 170, 255, 0.5)); }
.ac-mesh-trace__light > * { fill: none; stroke: rgba(125, 196, 255, 0.5); stroke-width: 0.7; stroke-linecap: round; stroke-dasharray: 28 220; animation: ac-mesh-flow 3.4s linear infinite; will-change: stroke-dashoffset; }
@media (prefers-reduced-motion: reduce) { .ac-mesh-trace__light > * { animation: none; stroke-dasharray: none; stroke-opacity: 0.4; } }
.kh-herostack { position: relative; background: var(--kibo-dark-grey); overflow: hidden; }
.kh-herostack__bg { position: absolute; z-index: 0; pointer-events: none; overflow: hidden; }
.kh-herostack > .kh-hero { position: relative; z-index: 1; background: transparent; }
.kh-herostack .ac-hero__brain { -webkit-mask-image: none; mask-image: none; }
.kh-hero-ldark { position: absolute; inset: 0; background: linear-gradient(to right, rgba(46,52,62,.92) 0%, rgba(46,52,62,.72) 32%, rgba(46,52,62,0) 64%); }
.kh-hero--split .kh-hero-a { position: relative; z-index: 1; padding-top: 120px; }
.kh-hero-a-in { display: flex; flex-direction: column; align-items: flex-start; max-width: 1000px; }
.kh-hero--split h1 { font-weight: var(--fw-semibold); font-size: clamp(32px, 3.6vw, 50px); line-height: 1.06; letter-spacing: -.03em; color: var(--kibo-white); }
.kh-hero--split h1 em { color: var(--kibo-white); }
.kh-hero--split h1 em.kh-h-accent { color: var(--kibo-yellow); }
.kh-hero--split .kh-cta-row { margin-top: 38px; }
@media (max-width: 1080px) { .kh-hero--split h1 { font-size: 44px; } }
@media (max-width: 720px) { .kh-hero--split h1 { font-size: 34px; } }
.kh-hero-a-row { grid-template-columns: minmax(420px,1fr) minmax(0,760px); }
.kh-hero-a-row .kh-hero-a-in { max-width: none; }
/* Platform wheel (ArchitectureWheel.astro): square, pulled into the hero's
   vertical padding so it doesn't make the hero taller than the copy. */
.kh-hero-wheel { width: 100%; max-width: 660px; justify-self: end; margin-block: -72px; }
@media (max-width: 1080px) { .kh-hero-wheel { margin-block: -24px; } }
@media (max-width: 960px) { .kh-hero-wheel { justify-self: center; max-width: 460px; margin-block: 0; } }
@media (max-width: 1080px) { .kh-hero-a-row { grid-template-columns: minmax(340px,1fr) minmax(0,420px); } }
@media (max-width: 860px) { .kh-hero-a-row { grid-template-columns: 1fr; } }
.kh-hero-a-row .kh-hero-a-in { gap: 26px; }
.kh-hero-h1 { margin: 0; font-family: var(--font-base); font-weight: var(--fw-semibold); font-size: clamp(38px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -.03em; color: var(--kibo-white); text-wrap: balance; }
.kh-hero-h1 em.kh-h-accent { font-style: normal; color: var(--kibo-yellow); }
.kh-hero-lede2 { margin: 0; font-family: var(--font-base); font-size: 20px; line-height: 1.45; color: rgba(255,255,255,.88); text-wrap: pretty; }
.kh-hero-a-row .kh-cta-row { margin-top: 6px; }
.kh-hero-a-row { display: grid; align-items: center; gap: 40px; }
@media (max-width: 960px) { .kh-hero-a-row { grid-template-columns: 1fr; } }
/* soft blue glow behind the hero wheel */
.kh-hero-wheel { position: relative; }
.kh-hero-wheel::before { position: absolute; border-radius: 50%; z-index: 0; }
.kh-hero-wheel .kh-aw { z-index: 1; }
.kh-hero-lede2 { max-width: 760px; }
.kh-hero-wheel::before { content: ""; left: 50%; top: 50%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; width: 135%; background: radial-gradient(circle, rgba(74,134,232,.62) 0%, rgba(74,134,232,.48) 38%, rgba(74,134,232,.2) 58%, rgba(74,134,232,0) 76%); filter: blur(46px); }
/* hero backdrop overscans so parallax never exposes the grey ground */
.kh-herostack__bg { inset: -80px 0; }
.kh-h1-line { display: block; white-space: nowrap; }
@media (max-width: 760px) { .kh-h1-line { display: inline; white-space: normal; } }
/* Rules for other sections that override rules above, so they have to come after them */
@media (max-width: 720px) { .kh-wrap { padding-left: 20px; padding-right: 20px; } }
.kh-hero--split .kh-hero-a { padding-bottom: 96px; }
@media (max-width: 860px) { .kh-hero--split .kh-hero-a { padding-bottom: 56px; } }

/* ==== Platform wheel in the hero (ArchitectureWheel.astro) ==== */
@keyframes kh-aw-ripple { 0% { r: 337px; opacity: .9; stroke-width: 6; } 20% { opacity: .34; } 45% { opacity: .1; } 70% { opacity: 0; } 100% { r: 1150px; opacity: 0; stroke-width: 1.5; } }
.kh-aw { position: relative; width: 100%; aspect-ratio: 1; user-select: none; container-type: inline-size; font-family: var(--font-base); }
.kh-aw > svg { display: block; width: 100%; height: 100%; }
.kh-aw__body { fill: var(--kibo-dark-grey); }
.kh-aw__core { fill: var(--kibo-yellow); }
.kh-aw__glow { stop-color: var(--kh-blue); }
.kh-aw text { font-family: var(--font-base); font-weight: 400; letter-spacing: -.01em; }
.kh-aw__sub text { font-size: 44px; fill: var(--kibo-white); }
.kh-aw__sub text.kh-aw__ttl { font-weight: 600; font-size: 52px; fill: var(--kibo-yellow); letter-spacing: -.02em; }
.kh-aw__say text { font-size: 41px; fill: var(--kibo-white); }
.kh-aw__hub text { font-weight: 500; font-size: 47px; fill: var(--kibo-dark-grey); }
.kh-aw__wedge { transform-origin: 1126px 1126px; will-change: transform, opacity; transition: transform .72s cubic-bezier(.4,0,.2,1), opacity .58s cubic-bezier(.4,0,.2,1) .06s; }
.kh-aw__wedge.is-on { transform: scale(.14); opacity: 0; transition: transform .72s cubic-bezier(.32,.04,.2,1), opacity .5s cubic-bezier(.32,.04,.2,1); }
.kh-aw__say { opacity: 0; transform: scale(.985); transform-origin: 1126px 1126px; transition: opacity .34s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.22,1,.36,1); }
.kh-aw__say.is-on { opacity: 1; transform: none; transition: opacity .42s cubic-bezier(.4,0,.2,1) .26s, transform .62s cubic-bezier(.22,1,.36,1) .2s; }
.kh-aw__hit, .kh-aw__hubhit { fill: transparent; cursor: pointer; }
/* Petal links: no outline on click at all — WebKit makes every SVG element
   focusable, so focus (and the native blue/white ring) can land on the path or
   svg, not just the <a>; suppress it on anything in the wheel. The yellow
   outline only appears while keyboard-tabbing (kb-nav class, set by the wheel
   script on Tab and cleared on any pointer press). */
.kh-aw :focus { outline: none; }
.kh-aw.kb-nav :focus-visible { outline: 2px solid var(--kibo-yellow); outline-offset: 3px; }
.kh-aw { -webkit-tap-highlight-color: transparent; }
.kh-aw__ripples, .kh-aw__frame { pointer-events: none; }
.kh-aw__ring { fill: none; stroke: var(--kibo-yellow); stroke-width: 5; opacity: 0; }
.kh-aw.is-hub .kh-aw__ring { animation: kh-aw-ripple 3.6s cubic-bezier(.33,.7,.4,1) infinite; }
.kh-aw__flip { position: absolute; left: 50%; top: 50%; width: 29.93cqi; height: 29.93cqi; margin: -14.965cqi 0 0 -14.965cqi; pointer-events: none; }
.kh-aw__face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; transition: opacity .18s linear; }
.kh-aw__face svg { display: block; width: 100%; height: 100%; }
.kh-aw__back { opacity: 0; background: var(--kibo-yellow); display: flex; align-items: center; justify-content: center; padding: 0 3.4cqi; text-align: center; color: var(--kibo-dark-grey); }
.kh-aw__back p { margin: 0; font-size: 2.9cqi; font-weight: 400; line-height: 1.22; letter-spacing: -.02em; text-wrap: balance; }
.kh-aw__back p b { font-weight: 600; }
.kh-aw.is-hub .kh-aw__front { opacity: 0; }
.kh-aw.is-hub .kh-aw__back { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .kh-aw__wedge, .kh-aw__say, .kh-aw__face { transition: none; }
  .kh-aw.is-hub .kh-aw__ring { animation: none; }
}

/* ==== Forrester Leader band (LeaderBand.astro) ==== */
.kh-leader { background: var(--kibo-light-grey); padding: 64px 0; }
.kh-leader__in { display: grid; justify-items: center; gap: 20px; text-align: center; }
.kh-leader__logo img { display: block; width: clamp(130px, 14vw, 180px); height: auto; filter: invert(1); }
.kh-leader__stmt { margin: 0; font-family: var(--font-base); font-size: clamp(19px, 1.9vw, 25px); line-height: 1.26; letter-spacing: -.02em; color: var(--kibo-dark-grey); text-wrap: balance; }
.kh-leader__cta { display: flex; }
@media (max-width: 720px) {
  .kh-leader { padding: 46px 0; }
  .kh-leader__in { gap: 16px; }
}
.kh-leader__stmt { max-width: 1120px; font-weight: var(--fw-regular, 400); }
.kh-leader__stmt strong { font-weight: var(--fw-semibold); }

/* ==== Customer logo wall (CustomerWall.astro) ==== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes kh-logos-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}
.kh-wall { background: var(--kibo-light-grey); padding: 64px 0; overflow: hidden; }
.kh-wall-marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--kibo-black) 8%, var(--kibo-black) 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, var(--kibo-black) 8%, var(--kibo-black) 92%, transparent 100%); }
.kh-wall-track { display: flex; align-items: center; gap: 56px; width: max-content; }
.kh-wall-item { display: flex; align-items: center; gap: 56px; flex-shrink: 0; }
.kh-wall-logo { height: 30px; width: auto; max-width: 160px; object-fit: contain; filter: brightness(0); opacity: .72; }
@media (prefers-reduced-motion: no-preference) {
  .kh-wall-track { animation: kh-logos-marq 160s linear infinite; }
  .kh-wall-marquee:hover .kh-wall-track { animation-play-state: paused; }
}
.kh-wall-track { animation-direction: reverse; animation-duration: 160s; }
/* Rules for other sections that override rules above, so they have to come after them */
.kh-leader + .kh-wall { padding-top: 0; }

/* ==== Demand → KIBO → Supply (DemandKiboSupply.astro) ==== */
.kh-dks { background: var(--kibo-light-grey); padding: 0 0 72px; }
.kh-dks-row { display: flex; }
.kh-dks-card { flex-direction: column; }
.kh-dks-tag { font-family: var(--font-base); font-weight: var(--fw-semibold); }
.kh-dks-p { margin: 0; font-size: 16px; text-wrap: pretty; }
@media (max-width: 900px) { .kh-dks-row { flex-direction: column; } }
.kh-dks-card { position: relative; }
.kh-dks-bg { position: absolute; }
.kh-dks-tag, .kh-dks-h, .kh-dks-p { position: relative; z-index: 1; }
/* DKS cards: adopt the expanding-panel card art (blue + top-masked hex pattern, white ink) */
.kh-dks-card { flex: 1 1 0; padding: 26px 28px 28px; display: flex; gap: 8px; color: var(--kibo-white); }
.kh-dks-arrow { flex: none; align-self: center; color: var(--kibo-dark-grey); }
.kh-dks-logo { display: block; flex: none; align-self: flex-start; }
.kh-dks-ico { flex: none; }
.kh-dks-tag { text-transform: uppercase; display: flex; font-size: 16px; letter-spacing: .12em; color: var(--kibo-yellow); flex-direction: column; align-items: flex-start; gap: 12px; }
.kh-dks-row { align-items: center; }
.kh-dks-row .kh-dks-card:nth-of-type(1), .kh-dks-row .kh-dks-card:nth-of-type(3) { align-self: stretch; margin: 26px 0; }
.kh-dks-logo { position: relative; z-index: 1; width: auto; max-width: none; object-fit: contain; height: 32px; margin-bottom: 12px; }
.kh-dks-row .kh-dks-card:nth-of-type(2) { align-self: stretch; padding-top: 34px; padding-bottom: 34px; flex: 1.18 1 0; }
.kh-dks-bg { background-size: cover; background-position: center; }
@media (max-width: 1120px) {
  .kh-dks-row { flex-direction: column; align-items: stretch; }
  .kh-dks-row .kh-dks-card:nth-of-type(1), .kh-dks-row .kh-dks-card:nth-of-type(2), .kh-dks-row .kh-dks-card:nth-of-type(3) { flex: none; margin: 0; padding: 26px 28px 28px; align-self: auto; }
}
.kh-dks-card.kh-reveal[data-d="3"] { transition-delay: .22s; }
.kh-dks-card.kh-reveal[data-d="5"] { transition-delay: .44s; }
.kh-dks-arrow.kh-reveal[data-d="2"] { transition-delay: .14s; }
.kh-dks-arrow.kh-reveal[data-d="4"] { transition-delay: .36s; }
/* Page-wide: card corners at 6px */
.kh-dks-card { min-width: 0; overflow: hidden; background: var(--kh-blue); border-radius: 6px; }
/* DKS cards: pattern covers the full card, no fade to blue at the bottom */
.kh-dks-bg { inset: 0; pointer-events: none; opacity: 1; mix-blend-mode: normal; filter: brightness(1.5) contrast(1.15); -webkit-mask-image: none; mask-image: none; }
.kh-dks-row { gap: 6px; }
.kh-dks-p { font-family: var(--font-base); color: var(--kibo-white); line-height: 1.28; }
.kh-dks-ico * { vector-effect: non-scaling-stroke; }
.kh-dks-ico .kh-dks-arrows { transform: scale(1.12); transform-origin: 24px 24px; }
.kh-dks-ico { position: absolute; z-index: 1; color: var(--kibo-white); display: block; top: 12px; right: 12px; }
/* DKS icon rollover: arrows travel, centre hex brightens */
.kh-dks-ico > path:last-of-type { transition: transform 420ms cubic-bezier(.22,1,.36,1); transform-origin: 24px 24px; }
.kh-dks-card:hover .kh-dks-ico > path:last-of-type { transform: none; }
.kh-dks-row .kh-dks-card:nth-of-type(2) { justify-content: center; align-items: center; text-align: center; }
.kh-dks-row .kh-dks-card:nth-of-type(2) .kh-dks-logo { align-self: center; }

/* ==== Audience switcher (PainSolveVertical.astro) ==== */
.kh-aud-tab { height: 50px; padding: 0 26px; border-radius: var(--radius-pill); border: 0; cursor: pointer; font-family: var(--font-base); font-weight: var(--fw-medium); font-size: 16.5px; color: var(--kibo-dark-grey); background: transparent; white-space: nowrap; flex: 0 0 auto; transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.kh-aud-tab:hover { background: var(--kibo-light-grey); }
.kh-aud-tab.kh-active { background: var(--kibo-yellow); color: var(--kibo-dark-grey); }
.kh-logo-img { height: 26px; width: auto; max-width: 132px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.kh-logo-img:hover { filter: none; opacity: 1; }
.kh-logo-img--strip { height: 46px; max-width: 190px; flex-shrink: 0; filter: brightness(0); opacity: .78; }
.kh-logo-img--strip.kh-logo--boscovs { height: 58px; max-width: 220px; }
.kh-logo-img--strip:hover { filter: brightness(0); opacity: 1; }
.kh-logos { background: var(--kibo-light-grey); padding: 36px 0; overflow: hidden; }
.kh-logos-inner { display: flex; flex-direction: column; gap: 24px; align-items: stretch; }
.kh-logos-static { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 56px; max-width: 1100px; margin: 0 auto; padding: 0 32px; }
/* inline strip inside the dark pains section — white logos, transparent, between toggle & h1 */
.kh-logos--inline { background: transparent; padding: 0; margin: 8px 0 18px; }
.kh-logos--inline .kh-logo-img--strip { transition: filter var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.kh-logos--inline .kh-logos--v-mfg .kh-logo--yamaha { height: 34px; }
.kh-logos--inline .kh-logos--v-retail .kh-logo--boscovs, .kh-logos--inline .kh-logos--v-retail .kh-logo--total-wine { height: 66px; max-width: 250px; }
.kh-logos--inline .kh-logos--v-dist .kh-logo--total-wine { height: 72px; max-width: 280px; }
.kh-logos--inline .kh-logos--v-dist .kh-logo--rona { height: 80px; max-width: 320px; }
.kh-logos--inline .kh-logos-xfade { height: 84px; flex-wrap: nowrap; align-items: center; }
.kh-psw { position: relative; overflow: hidden; }
.kh-psw .kh-wrap { position: relative; z-index: 1; }
.kh-psw-switch { display: flex; justify-content: center; margin-bottom: 14px; }
.kh-psw-head { text-align: center; }
.kh-psw-h { font-family: var(--font-base); font-weight: var(--fw-semibold); color: var(--kibo-white); margin: 0 auto; max-width: none; text-wrap: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .kh-psw-head.kh-in .kh-psw-h { animation: kh-hero-in .8s var(--ease-out) backwards; }
  .kh-psw-head.kh-in .kh-psw-sub { animation: kh-hero-in .8s var(--ease-out) .14s backwards; }
}
.kh-psw-sub { margin: 16px auto 0; color: rgba(255,255,255,.66); }
.kh-fexp { background: var(--kibo-light-grey); }
/* customer logos: even optical size, single ink */
.kh-logos--inline .kh-logo-img--strip { height: 34px; max-width: 170px; filter: brightness(0) invert(1); opacity: .72; }
.kh-logos--inline .kh-logo-img--strip:hover { filter: brightness(0) invert(1); opacity: 1; }
.kh-logos--inline .kh-logos--v-mfg .kh-logo-img--strip { height: 34px; max-width: 170px; }
.kh-logos--inline .kh-logo--zwilling { height: 46px; }
.kh-logos--inline .kh-logo--jelly-belly { height: 44px; }
.kh-logos--inline .kh-logo--topgolf { height: 40px; }
.kh-logos--inline .kh-logo--yamaha { height: 26px; }
.kh-logos--inline .kh-logo--boscovs { height: 40px; max-width: 170px; }
.kh-psw-h { white-space: nowrap; line-height: 1.12; letter-spacing: -.01em; }
.kh-logos--inline { display: none; }
.kh-psw-cols { grid-template-columns: repeat(3, minmax(0,1fr)); margin: 26px 0 0; }
@media (max-width: 820px) { .kh-psw-cols { grid-template-columns: 1fr; } }
.kh-psw-cols { display: grid; max-width: 900px; gap: 40px; margin-left: auto; margin-right: auto; margin-top: 44px; margin-bottom: 0; }
.kh-psw-shot img { display: block; width: 100%; height: auto; }
.kh-psw-colswrap { display: block; }
.kh-psw-shot { border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 18px 48px rgba(0,0,0,.35); margin: 44px auto; max-width: 780px; }
/* capability rail variant */
.kh-frail__panel { position: relative; }
.kh-frail__panel .kh-sell__ch, .kh-frail__panel .kh-sell__body p { position: relative; z-index: 1; color: var(--kibo-white); }
.kh-frail { position: relative; }
.kh-frail .kh-wrap { position: relative; z-index: 1; }
.kh-frail .kh-sell__tabl { font-size: 17px; line-height: 1.24; color: var(--kibo-white); }
.kh-frail .kh-sell__tab.is-on .kh-sell__tabl { color: var(--kibo-dark-grey); }
.kh-frail .kh-sell__tab { transition: background .4s cubic-bezier(.22,1,.36,1), color .4s cubic-bezier(.22,1,.36,1); }
@media (prefers-reduced-motion: no-preference) {
  .kh-frail__panel .kh-sell__ch { animation: khFtIn .7s cubic-bezier(.22,1,.36,1) both; }
  .kh-frail__panel .kh-sell__body p { animation: khFtIn .7s cubic-bezier(.22,1,.36,1) .1s both; }
}
.kh-frail__panel { overflow: hidden; border-radius: 8px; padding: 44px 48px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); display: grid; align-content: center; }
/* capability rail: dark ground with blue splashes, same treatment as the section above; the panel itself is
   white glass (like the What's-Next panel) so the blue splashes read through it */
.kh-frail { overflow: hidden; background: var(--kibo-dark-grey); background-image: radial-gradient(var(--sp1s, 58% 68%) at var(--sp1p, 14% 16%), rgba(17,85,204,.52) 0%, rgba(17,85,204,0) 62%),
  radial-gradient(var(--sp2s, 46% 60%) at var(--sp2p, 88% 10%), rgba(74,134,232,.38) 0%, rgba(74,134,232,0) 66%),
  radial-gradient(var(--sp3s, 70% 78%) at var(--sp3p, 70% 98%), rgba(17,85,204,.44) 0%, rgba(17,85,204,0) 60%); }
/* laptop-height layout: screenshot left, three copy blocks stacked right */
.kh-psw { padding: 44px 0 48px; }
.kh-psw-h { font-size: clamp(26px, 2.6vw, 33px); }
.kh-psw-split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; }
.kh-psw-split .kh-psw-shot { margin: 0; }
.kh-psw-split .kh-psw-shot img { width: 100%; height: auto; display: block; border-radius: 10px; }
.kh-psw-split .kh-psw-colswrap { margin: 0; }
.kh-psw-split .kh-psw-cols { display: grid; grid-template-columns: minmax(0,1fr); gap: 22px; max-width: none; }
@media (max-width: 900px) { .kh-psw-split { grid-template-columns: minmax(0,1fr); gap: 28px; } }
.kh-psw { padding-top: 76px; padding-bottom: 76px; }
.kh-psw-head { margin-bottom: 72px; }
.kh-frail .kh-sell__panel { align-content: start; padding-top: 56px; }
.kh-psw-sub b { font-weight: var(--fw-semibold); }
.kh-frail--embed > .kh-wrap { padding-left: 0; padding-right: 0; }
/* toggle section: dark-grey ground with blue splashes, same as the capability rail */
.kh-psw { background: var(--kibo-dark-grey); background-image: radial-gradient(58% 68% at 14% 16%, rgba(17,85,204,.52) 0%, rgba(17,85,204,0) 62%),
  radial-gradient(46% 60% at 88% 10%, rgba(74,134,232,.38) 0%, rgba(74,134,232,0) 66%),
  radial-gradient(64% 52% at 72% 92%, rgba(17,85,204,.34) 0%, rgba(17,85,204,0) 64%); }
.kh-psw-split { align-items: center; }
.kh-psw-split .kh-psw-colswrap { align-self: center; }

/* ==== Platform capabilities (HexPlatform.astro) ==== */
.kh-hexp__head { display: grid; text-align: center; margin-bottom: 40px; }
.kh-hexp__head .kh-sec-h { margin: 0; color: var(--kibo-dark-grey); }
.kh-hexp__lede { margin: 0; font-size: 16px; line-height: 1.5; color: var(--fg-2); }
.kh-hexp__head .kh-sec-h { line-height: 1.1; padding-bottom: 4px; }
/* capability lists */
.kh-hexp__list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 44px; text-align: left; margin-top: 10px; }
.kh-hexp__listcol { display: grid; gap: 22px; align-content: start; }
.kh-hexp__listh { margin: 0; font-family: var(--font-base); font-weight: var(--fw-semibold); font-size: 24px; line-height: 1.1; letter-spacing: -.02em; color: var(--kibo-black); border-bottom: 2px solid var(--kibo-yellow); padding-bottom: 8px; justify-self: start; }
.kh-hexp__listitem { display: grid; gap: 3px; }
.kh-hexp__listname { font-family: var(--font-base); font-weight: var(--fw-semibold); font-size: 16px; color: var(--kibo-black); }
.kh-hexp__listbody { font-family: var(--font-base); font-size: 16px; line-height: 1.45; color: var(--kibo-black); text-wrap: pretty; }
@media (max-width: 880px) { .kh-hexp__list { grid-template-columns: 1fr; gap: 34px; } }
.kh-hexp__topbar .kh-sec-h { grid-column: 2; }
@media (max-width: 880px) { .kh-hexp__topbar .kh-sec-h { grid-column: 1; } }
.kh-hexp__topbar { position: relative; width: 100%; justify-content: center; display: grid; align-items: start; grid-template-columns: 140px minmax(0,1fr) 140px; column-gap: 20px; }
.kh-hexp__topbar .kh-sec-h { max-width: 100%; }
@media (max-width: 880px) { .kh-hexp__topbar { flex-direction: column; grid-template-columns: 1fr; } }
.kh-hexp__head p, .kh-hexp__lede { max-width: 900px; }
.kh-hexp__head .kh-sec-h em { font-style: normal; color: var(--kibo-dark-grey); }
.kh-hexp__lede strong { font-weight: var(--fw-semibold); }
/* fit the whole roadmap section on a laptop screen */
.kh-hexp__head { justify-items: center; gap: 14px; }
.kh-hexp__head .kh-sec-h { margin-bottom: 0; }
.kh-hexp { padding: 34px 0 36px; }
.kh-hexp .kh-sec-h { font-size: clamp(24px, 2.3vw, 29px); }
.kh-hexp { padding-top: 76px; background: var(--kibo-light-grey); padding-bottom: 76px; }
.kh-hexp__lede { text-wrap: initial; max-width: none; }
/* list view: blue arrow that lengthens on hover, same behaviour as the analyst links */
.kh-hexp__listitem { position: relative; }
.kh-hexp__listarrow { transition: opacity 240ms cubic-bezier(.22,1,.36,1); }
.kh-hexp__listarrow-shaft { transform-origin: 2px 9px; transform: scaleX(1); transition: transform 260ms cubic-bezier(.22,1,.36,1); }
.kh-hexp__listarrow-head { transition: transform 260ms cubic-bezier(.22,1,.36,1); }
.kh-hexp__listitem:hover .kh-hexp__listarrow { opacity: 1; }
.kh-hexp__listitem:hover .kh-hexp__listarrow-shaft { transform: scaleX(1.5); }
.kh-hexp__listitem:hover .kh-hexp__listarrow-head { transform: translateX(11px); }
.kh-hexp__listarrow { display: block; }
.kh-hexp__listnamerow { display: flex; align-items: center; gap: 8px; }
.kh-hexp__listarrow { overflow: visible; color: var(--kh-blue); opacity: 1; margin-top: 0; flex: none; }
.kh-hexp__listh { border-bottom-color: var(--kh-blue); }

/* ==== What's next rail (WhatsNext.astro) ==== */
.kh-whatsnext .kh-fexp-head { margin-bottom: 32px; }
.kh-whatsnext .kh-sec-h { text-wrap: balance; max-width: 820px; }
/* dark ground with blue splashes: what's next accordion */
.kh-whatsnext { position: relative; }
.kh-whatsnext > .kh-wrap { position: relative; z-index: 1; }
.kh-whatsnext .kh-sec-h { color: var(--kibo-white); }
/* splash positions are randomized per load via --sp* custom properties */
.kh-whatsnext { overflow: hidden; background: var(--kibo-dark-grey); background-image: radial-gradient(var(--sp1s, 58% 68%) at var(--sp1p, 14% 16%), rgba(255,206,1,.34) 0%, rgba(255,206,1,0) 62%),
  radial-gradient(var(--sp2s, 46% 60%) at var(--sp2p, 88% 10%), rgba(255,206,1,.24) 0%, rgba(255,206,1,0) 66%),
  radial-gradient(var(--sp3s, 70% 78%) at var(--sp3p, 70% 98%), rgba(255,206,1,.28) 0%, rgba(255,206,1,0) 60%); }
/* what's-next toggle on the dark ground */
.kh-whatsnext .kh-sell__ch, .kh-whatsnext .kh-sell__body p { color: var(--kibo-white); }
.kh-whatsnext .kh-sell__tabl { font-size: 17px; line-height: 1.24; }
.kh-whatsnext .kh-sell__panel { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 40px 44px; display: grid; }
.kh-whatsnext .kh-sell__tabl { color: var(--kibo-white); }
.kh-whatsnext .kh-sell__tab.is-on .kh-sell__tabl { color: var(--kibo-dark-grey); }
/* smoother rail switching */
.kh-whatsnext .kh-sell__tab { transition: background .32s cubic-bezier(.22,1,.36,1), color .32s cubic-bezier(.22,1,.36,1); }
.kh-whatsnext .kh-sell__tabl { transition: color .32s cubic-bezier(.22,1,.36,1); }
@media (prefers-reduced-motion: no-preference) {
  .kh-whatsnext .kh-sell__panel .kh-sell__ch { animation: khFtIn .6s cubic-bezier(.22,1,.36,1) both; }
  .kh-whatsnext .kh-sell__panel .kh-sell__body p { animation: khFtIn .6s cubic-bezier(.22,1,.36,1) .08s both; }
}
.kh-whatsnext .kh-fexp-head .kh-sec-sub { white-space: nowrap; }
@media (max-width: 1100px) { .kh-whatsnext .kh-fexp-head .kh-sec-sub { white-space: normal; } }
/* pin the panel content to the top so the icon lands at the same height on every tab */
.kh-whatsnext .kh-sell__panel { align-content: start; padding-top: 66px; }
.kh-whatsnext .kh-sell__tabl { white-space: pre-line; }
/* Rules for other sections that override rules above, so they have to come after them */
.kh-whatsnext .kh-sell__tab, .kh-frail .kh-sell__tab { transition: background .7s cubic-bezier(.22,1,.36,1), color .7s cubic-bezier(.22,1,.36,1); }
@media (prefers-reduced-motion: no-preference) {
  .kh-whatsnext .kh-sell__panel .kh-sell__ch, .kh-frail .kh-sell__panel .kh-sell__ch { animation: khFtIn 1.05s cubic-bezier(.22,1,.36,1) both; }
  .kh-whatsnext .kh-sell__panel .kh-sell__body p, .kh-frail .kh-sell__panel .kh-sell__body p { animation: khFtIn 1.05s cubic-bezier(.22,1,.36,1) .14s both; }
}
/* rail panel icons swap instantly on a tab change, the way the OMS "What's in
   the Box" rail does; only the heading and body rise in */
.kh-whatsnext .kh-sell__panel .kh-sell__panelico, .kh-frail .kh-sell__panel .kh-sell__panelico { animation: none; }
/* rail labels: 16px regular */
.kh-whatsnext .kh-sell__tabl, .kh-frail .kh-sell__tabl { transition: color .7s cubic-bezier(.22,1,.36,1); font-size: 16px; font-weight: var(--fw-regular, 400); }

/* ==== Analyst proof rows (ForresterRows.astro) ==== */
.kh-forrester-section { padding: 104px 0; }
.kh-forr-intro { margin-bottom: 64px; }
.kh-forr-introh { font-family: var(--font-base); font-weight: var(--fw-semibold); letter-spacing: -.02em; color: var(--kibo-dark-grey); margin: 0; text-wrap: balance; }
.kh-forrester-section img { height: 38px; width: auto; display: block; }
/* 3-across analyst columns */
@media (max-width: 760px) {
  .kh-forrester-section { padding: 72px 0; }
}
/* analyst band on dark grey */
.kh-forrester-section { background: var(--kibo-dark-grey); }
.kh-forrester-section .kh-forr-introh { color: var(--kibo-white); }
/* analyst figures read as a statement: number matches label size */
.kh-forr-introh { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; }
/* analyst CTA: text link with an arrow that slides on hover */
/* analyst CTA: quiet white label, yellow arrow that travels on hover */
/* analyst columns: even rhythm between all five blocks */
/* analyst link arrow: shaft extends on hover, head holds its shape */
/* analyst link: label colour never changes; arrow grows rightward */
/* analyst proof, row variant */
/* fixed tracks shared by all three rows: columns align, wraps stay put */
/* fit the rows inside the standard content frame */
/* rows: evenly spaced columns, stats promoted to their own tracks */
/* rows: every item centred in its band, including the stat blocks */
/* headline column: natural height so align-self:center actually centres it */
/* Rules for other sections that override rules above, so they have to come after them */
@media (max-width: 720px) { .kh-section { padding: 54px 0; } }
.kh-forrester-section { padding-top: 76px; }
/* page-wide: never leave an orphan word on headings/ledes */
h1, h2, h3, h4, .kh-sec-h, .kh-psw-h, .kh-psw-sub { text-wrap: balance; }
.kh-forr-introh { white-space: nowrap; max-width: none; }
@media (max-width: 900px) { .kh-forr-introh { white-space: normal; } }
/* analyst columns: no dividers, centered content */
/* row variant: flush left, one type size, white logos */
/* minimum copy size: 18px page wide */
.kh-aud-tab, .kh-sell__body p { font-size: 18px; }
/* remaining under-18px copy */
.kh-sell__body p { font-size: 18px; }
.kh-psec-btn { font-size: 18px; }
.kh-fexp .kh-fexp-head .kh-sec-h, .kh-fexp .kh-fexp-head .kh-sec-sub { max-width: none; text-wrap: balance; }
@media (min-width: 1200px) { .kh-fexp .kh-fexp-head .kh-sec-h, .kh-fexp .kh-fexp-head .kh-sec-sub { white-space: nowrap; } }
.kh-psw-sub { white-space: normal; max-width: 86ch; }
.kh-whatsnext .kh-sell__ch { font-size: 30px; line-height: 1.14; text-wrap: balance; }
.kh-whatsnext .kh-sell__ch { white-space: normal; max-width: 26ch; }
.kh-frail .kh-sell__ch { font-size: 30px; line-height: 1.14; max-width: 26ch; text-wrap: balance; }
.kh-whatsnext .kh-fexp-head .kh-sec-h { white-space: nowrap; }
@media (max-width: 1100px) { .kh-whatsnext .kh-fexp-head .kh-sec-h { white-space: normal; } }
/* rail duplicated inside the toggle section: sit on the section's own ground */
.kh-frail--embed { background: transparent; background-image: none; padding-bottom: 0; margin-top: 8px; }
.kh-dks-h { margin: 0; font-size: 21px; text-wrap: pretty; }
.kh-dks-h { font-family: var(--font-base); line-height: 1.22; font-weight: var(--fw-semibold); letter-spacing: -.01em; color: var(--kibo-white); }
.kh-dks-h, .kh-dks-p { text-wrap: balance; hyphens: none; }

/* ==== Closing call to action (FinalCTA.astro) ==== */
.kh-finalcta { padding: 88px 0; text-align: center; background: var(--kh-blue); position: relative; overflow: hidden; }
.kh-finalcta > .kh-wrap { position: relative; z-index: 1; }
.kh-finalcta h2 { font-family: var(--font-base); font-weight: var(--fw-semibold); letter-spacing: -.01em; color: var(--kibo-white); margin: 0 auto 14px; }
.kh-finalcta p { font-size: 17px; color: rgba(255,255,255,.85); margin: 0 auto 28px; }
.kh-finalcta .kh-cta-row { justify-content: center; }
.kh-finalcta h2 { font-size: clamp(30px, 3.4vw, 42px); }
.kh-finalcta p { max-width: 46ch; margin-left: auto; margin-right: auto; text-wrap: balance; }
/* Rules for other sections that override rules above, so they have to come after them */
/* section subheads match the hero lede */
.kh-sec-sub, .kh-fexp-head .kh-sec-sub, .kh-hexp__head p, .kh-finalcta p, .kh-psw-sub { font-size: 20px; line-height: 29px; }
/* tighter body leading */
.kh-sell__body p, .kh-sec-sub, .kh-hexp__head p, .kh-psw-sub { line-height: 1.32; }
.kh-sec-sub, .kh-hexp__head p, .kh-psw-sub { line-height: 1.34; }
.kh-sell__body p { line-height: 1.22; }
/* body copy −2px */
.kh-sec-sub, .kh-hexp__head p, .kh-psw-sub { font-size: 18px; }
.kh-psw-cols p, .kh-sell__body p { font-size: 16px; }
.kh-psw-cols p { margin: 0; padding-top: 18px; border-top: 1px solid var(--kibo-yellow); line-height: 1.34; color: var(--kibo-white); text-wrap: pretty; border-top-color: var(--kh-sky); font-size: 15px; }
.kh-whatsnext .kh-sell__body p { font-size: 19px; line-height: 1.42; text-wrap: balance; max-width: 48ch; }
.kh-forr-introh, .kh-finalcta h2 { font-size: 34px; }
.kh-finalcta h2 { line-height: 1.08; max-width: 22ch; margin-left: auto; margin-right: auto; text-wrap: balance; }
.kh-finalcta h2, .kh-finalcta p { max-width: none; }
/* final CTA: let the headline wrap instead of clipping */
.kh-finalcta h2, .kh-finalcta p { white-space: normal; text-wrap: balance; }
.kh-frail .kh-sell__body p { font-size: 19px; line-height: 1.42; max-width: 48ch; text-wrap: balance; }
.kh-psw-sub { font-size: 17px; line-height: 1.34; }
.kh-psw-split .kh-psw-cols p { margin: 0; padding-top: 18px; border-top: 1px solid var(--kh-sky); font-size: 16px; line-height: 1.38; max-width: 46ch; }
.kh-psw .kh-psw-cols p { border-top-color: rgba(255,255,255,.4); color: var(--kibo-white); }
/* toggle copy blocks: no rule above the first, blue rules on the rest, centered with the shot */
.kh-psw .kh-psw-cols p:first-child { border-top: 0; padding-top: 0; }
.kh-psw .kh-psw-cols p + p { border-top-color: var(--kh-sky); }
/* copy columns share a common top so first lines align; logo and link stay centred */
/* rows: all four items vertically centred in their band */

/* ==== Request a Demo band (src/pages/index.astro) ==== */
.kh-page { width: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html.kh-armed .kh-reveal:not(.kh-in) { opacity: 0; transform: translateY(18px); } }
.kh-page { --fg-1: var(--kibo-black); --fg-2: var(--kibo-black); --fg-3: var(--kibo-black); }
.kh-page .kh-sec-sub, .kh-page .kh-hexp__lede, .kh-page .kh-leader__stmt { color: var(--kibo-black); }
.kh-page .kh-hero-lede2, .kh-page .kh-finalcta p, .kh-page .kh-psw-sub { color: var(--kibo-white); }
/* main CTAs: smaller */
.kh-page .kh-psec-btn { font-size: 16px; padding: 12px 22px; }
.kh-page .kh-aud-tab { font-size: 16px; height: 42px; padding: 0 20px; }
@media (prefers-reduced-motion: no-preference) { html.kh-armed .kh-dks-card.kh-reveal:not(.kh-in) { transform: translateX(-40px); } }
/* Rules for other sections that override rules above, so they have to come after them */
.kh-whatsnext .kh-sec-sub { color: rgba(255,255,255,.8); }
/* page wide: text is black on light, white on dark, no greys */
.kh-sec-sub, .kh-hexp__head p, .kh-psw-sub, .kh-fexp-head .kh-sec-sub { color: var(--kibo-black); }
.kh-psw .kh-psw-sub, .kh-whatsnext .kh-sec-sub, .kh-forrester-section .kh-sec-sub { color: var(--kibo-white); }
.kh-frail .kh-sec-h, .kh-frail .kh-sec-sub { color: var(--kibo-white); }
.kh-leader .kh-psec-btn { font-size: 16px; padding: 12px 22px; }
@media (max-width: 900px) { .kh-dks-arrow { transform: rotate(90deg); } }
@media (max-width: 1120px) { .kh-dks-arrow { height: 40px; transform: rotate(90deg); align-self: center; } }
@media (prefers-reduced-motion: no-preference) { html.kh-armed .kh-dks-arrow.kh-reveal:not(.kh-in) { transform: translateX(-18px); } }
.kh-dks-arrow { overflow: visible; width: 78px; }

/* ---- Synced with the WordPress dev homepage, Oct 2026 ---- */
/* "Where Supply Meets Demand" heading over the flow cards */
.kh-dks-head { display: grid; justify-items: center; gap: 14px; text-align: center; padding-top: 8px; margin-bottom: 44px; }
.kh-dks-head .kh-sec-h { margin: 0; }
.kh-dks-head .kh-sec-sub { max-width: 760px; }

/* "Composable by Choice": blue band, grid/list and B2B/B2C switches, hex grids */
.kh-hexp { background: var(--kh-blue); }
.kh-hexp .kh-sec-h, .kh-page .kh-hexp .kh-hexp__lede { color: var(--kibo-white); }
.kh-hexp__head { margin-bottom: 26px; }
.kh-hexp__views { grid-column: 3; justify-self: end; display: flex; gap: 18px; align-self: center; }
.kh-hexp__view { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--kibo-white); cursor: pointer; }
.kh-hexp__view svg { width: 32px; height: 24px; }
.kh-hexp__view[aria-selected="true"], .kh-hexp__view:hover { border-bottom-color: var(--kibo-yellow); }
.kh-hexp__view:focus-visible, .kh-hexp__type:focus-visible { outline: 2px solid var(--kibo-yellow); outline-offset: 3px; }
.kh-hexp__gridview, .kh-hexp__listview { display: grid; justify-items: center; gap: 26px; }
.kh-hexp[data-view="list"] .kh-hexp__gridview, .kh-hexp:not([data-view="list"]) .kh-hexp__listview { display: none; }
.kh-hexp__types { display: flex; padding: 6px; border-radius: var(--radius-pill); background: var(--kibo-white); }
.kh-hexp__type { min-width: 118px; padding: 9px 24px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--kibo-dark-grey); font-family: var(--font-base); font-size: 15px; font-weight: var(--fw-medium); cursor: pointer; transition: background-color .2s ease; }
.kh-hexp__type[aria-selected="true"] { background: var(--kibo-yellow); }
.kh-hexp__gridview .kh-hexp__lede { text-align: center; max-width: 768px; }
.kh-hexp__gridwrap { position: relative; width: 100%; }
.kh-hexp__grid { position: absolute; left: 50%; top: 0; width: max-content; transform: translateX(-50%); transform-origin: top center; }
.kh-hexp__row { display: flex; gap: 8px; }
.kh-hexp__row:not(.kh-hexp__row--offset) { margin-left: 70px; }
.kh-hexp__row + .kh-hexp__row { margin-top: -30.12px; }
.kh-hexp__hex { position: relative; flex: none; width: 132px; height: 152.42px; outline: none; z-index: 1; font-family: var(--font-base); transition: transform .38s var(--ease-out, ease-out); }
.kh-hexp__hex:hover, .kh-hexp__hex:focus-visible { z-index: 30; transform: scale(1.04); }
a.kh-hexp__hex { text-decoration: none; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .kh-hexp__hex { transition: none; } .kh-hexp__hex:hover, .kh-hexp__hex:focus-visible { transform: none; } }
.kh-hexp__face, .kh-hexp__popin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.kh-hexp__face { padding: 0 10px; clip-path: path('M62.97 1.75Q66 0 69.03 1.75L128.97 36.36Q132 38.11 132 41.61L132 110.82Q132 114.32 128.97 116.07L69.03 150.67Q66 152.42 62.97 150.67L3.03 116.07Q0 114.32 0 110.82L0 41.61Q0 38.11 3.03 36.36Z'); }
.kh-hexp__hex--capability .kh-hexp__face, .kh-hexp__hex--capability .kh-hexp__popin { background: var(--kibo-light-grey); color: var(--kibo-black); }
.kh-hexp__hex--addon .kh-hexp__face, .kh-hexp__hex--addon .kh-hexp__popin { background: var(--kibo-dark-grey); color: var(--kibo-white); }
.kh-hexp__hex--product .kh-hexp__face, .kh-hexp__hex--product .kh-hexp__popin { background: var(--kibo-yellow); color: var(--kibo-black); }
.kh-hexp__ico { width: 22px; height: 22px; margin-bottom: 5px; color: var(--kibo-yellow); }
.kh-hexp__hex--product .kh-hexp__ico { color: var(--kibo-black); }
.kh-hexp__name { font-size: 14.5px; line-height: 1.2; font-weight: var(--fw-medium); letter-spacing: -.1px; }
.kh-hexp__kind { font-size: 10px; line-height: 1.2; margin-top: 3px; }
.kh-hexp__pop { position: absolute; left: -24px; top: -27.7px; width: 180px; height: 207.85px; z-index: 5; pointer-events: none; opacity: 0; transform: scale(.8); transition: opacity .22s ease, transform .22s ease; filter: drop-shadow(0 14px 18px rgba(0,0,20,.35)); }
.kh-hexp__popin { padding: 0 30px; font-size: 12.5px; line-height: 1.4; clip-path: path('M85.87 2.39Q90 0 94.13 2.39L175.87 49.58Q180 51.97 180 56.74L180 151.12Q180 155.89 175.87 158.28L94.13 205.46Q90 207.85 85.87 205.46L4.13 158.28Q0 155.89 0 151.12L0 56.74Q0 51.97 4.13 49.58Z'); }
.kh-hexp__hex:hover .kh-hexp__pop, .kh-hexp__hex:focus-visible .kh-hexp__pop { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .kh-hexp__pop { transition: none; } }
/* list view, white on the blue band */
.kh-hexp__listview .kh-hexp__list { width: 100%; max-width: 1000px; }
.kh-hexp .kh-hexp__listh { color: var(--kibo-white); border-bottom: 0; padding-bottom: 0; font-size: 26px; }
.kh-hexp .kh-hexp__listitem { color: var(--kibo-white); text-decoration: none; }
.kh-hexp .kh-hexp__listname, .kh-hexp .kh-hexp__listbody { color: var(--kibo-white); }
.kh-hexp .kh-hexp__listarrow { color: var(--kibo-yellow); }
.kh-hexp .kh-hexp__listitem:focus-visible { outline: 2px solid var(--kibo-yellow); outline-offset: 4px; }
.kh-hexp__lede--list { text-align: center; }
/* phones: the list view only */
@media (max-width: 767px) {
  .kh-hexp__views, .kh-hexp .kh-hexp__gridview { display: none; }
  .kh-hexp[data-hexp] .kh-hexp__listview { display: grid; }
  .kh-hexp__lede br { display: none; }
}

/* Analyst rows: logo and headline; hovering a row swaps the headline for its stat
   (the hidden line stays readable to screen readers). Touch screens show both. */
.kh-anl__in { max-width: 1060px; }
.kh-anl__rows { display: grid; }
.kh-anl__row { display: grid; grid-template-columns: 30% minmax(0, 1fr); gap: 70px; align-items: center; min-height: 150px; padding: 28px 0; border-bottom: 1px solid var(--kibo-yellow); outline: none; }
.kh-anl__row:focus-visible { outline: 2px solid var(--kibo-yellow); outline-offset: 4px; }
.kh-anl__brand img { display: block; height: 34px; width: auto; max-width: 200px; object-fit: contain; filter: brightness(0) invert(1); }
.kh-anl__lines { display: grid; gap: 10px; }
.kh-anl__line { display: flex; align-items: center; gap: 14px; margin: 0; font-family: var(--font-base); font-size: 23px; line-height: 1.3; color: var(--kibo-white); }
.kh-anl__line b { font-weight: var(--fw-semibold); }
.kh-anl__arrow { flex: none; height: 45px; width: auto; }
/* the stat line rides over the heading (the heading keeps its natural height,
   so a two-line heading never shifts the row); they crossfade on hover */
.kh-anl__line { transition: opacity .25s var(--ease-out, ease-out); }
.kh-anl__line--stat { position: absolute; inset: 0; align-items: center; opacity: 0; }
.kh-anl__lines { position: relative; }
@media (hover: hover) {
  .kh-anl__row:is(:hover, :focus-visible) .kh-anl__line--stat { opacity: 1; }
  .kh-anl__row:is(:hover, :focus-visible) .kh-anl__line--h { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .kh-anl__line { transition: none; } }
@media (hover: hover) {
  .kh-anl__row:not(:hover):not(:focus-visible) .kh-anl__line--stat,
  .kh-anl__row:is(:hover, :focus-visible) .kh-anl__line--h { opacity: 0; }
}
@media (max-width: 767px) {
  .kh-anl__row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .kh-anl__line { font-size: 16px; }
  .kh-anl__arrow { height: 30px; }
}
/* hero intro is one sentence now: let it wrap at the column width */
.kh-hero-lede2 { max-width: 500px; }
.kh-hero-lede2 .kh-h1-line { white-space: normal; }
.kh-dks .kh-dks-head .kh-sec-sub { max-width: 720px; text-wrap: pretty; }
.kh-hexp .kh-hexp__topbar .kh-sec-h { font-size: clamp(26px, 2.7vw, 38px); }
/* Audience selector: a dark pill with white labels (as on the dev site) */
.kh-psw .kh-psw-switch { width: fit-content; max-width: 100%; margin: 0 auto 30px; padding: 8px; gap: 4px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-pill); background: rgba(255,255,255,.06); }
.kh-psw .kh-aud-tab { color: var(--kibo-white); }
.kh-psw .kh-aud-tab:hover { background: rgba(255,255,255,.12); }
.kh-psw .kh-aud-tab.kh-active, .kh-psw .kh-aud-tab.kh-active:hover { background: var(--kibo-yellow); color: var(--kibo-dark-grey); }
.kh-psw .kh-aud-tab:focus-visible { outline: 2px solid var(--kibo-yellow); outline-offset: 2px; }
@media (max-width: 420px) { .kh-psw .kh-aud-tab { padding: 0 14px; } }
/* Flow cards on phones: no icons or moving cubes, more room inside (as on the dev site) */
@media (max-width: 767px) {
  .kh-dks-row { gap: 20px; padding-left: 40px; padding-right: 40px; }
  .kh-dks-arrow, .kh-dks-ico { display: none; }
  .kh-dks-row .kh-dks-card:nth-of-type(1), .kh-dks-row .kh-dks-card:nth-of-type(2), .kh-dks-row .kh-dks-card:nth-of-type(3) { padding: 34px 26px 40px; }
  .kh-dks-row .kh-dks-card:nth-of-type(2) { padding-top: 48px; padding-bottom: 48px; }
}

/* Hero video (src/components/shared/HeroVideo.astro): poster frame with a
   play button and label in the bottom-left corner, inside the page's own video
   box; the player replaces it on click. */
.khv { padding: 0; }
.khv__btn { position: absolute; inset: 0; color: var(--kibo-white); text-decoration: none; }
.khv__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.khv__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 45%); }
.khv__cue { position: absolute; left: 20px; bottom: 20px; z-index: 1; display: flex; align-items: center; gap: 12px; }
.khv__play { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--kibo-yellow); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .2s ease; }
.khv__play svg { fill: var(--kibo-dark-grey); margin-left: 3px; }
.khv__label { font-size: 15px; font-weight: 500; line-height: 1.2; }
.khv__btn:hover .khv__play, .khv__btn:focus-visible .khv__play { transform: scale(1.08); }
.khv__btn:hover .khv__poster { transform: scale(1.03); }
.khv__btn:focus-visible { outline: 3px solid var(--kibo-yellow); outline-offset: -3px; }
.khv__player { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--kibo-dark-grey); }
@media (max-width: 560px) { .khv__cue { left: 14px; bottom: 14px; } .khv__play { width: 48px; height: 48px; } .khv__label { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .khv__play, .khv__poster { transition: none; } .khv__btn:hover .khv__poster { transform: none; } }

/* src/lib/steady-height.ts: no transitions while an accordion is measured */
.kh-measuring, .kh-measuring * { transition: none !important; animation: none !important; }
