/* ============================================================
   B2C Order Management page (src/pages/platform/order-management-new.astro),
   loaded only on that page, after public/home/tokens.css, public/home/home.css
   and public/search/search.css (which give it the buttons, hero, logo
   marquee, tab rails, platform cards, FAQ and resource tiles). This file adds
   what the Search page doesn't have. Brand colors: src/styles/tokens.css.
   Sections in page order; each group names its component in
   src/components/sections/b2c-oms/.
   Breakpoints: 1340 (FAQ stacks, in search.css), 880 (rails become
   accordions, in search.css), 760, 700, 640, 480.
   ============================================================ */

.kb2c-lede { margin: 0; font-size: 18px; line-height: 1.34; color: var(--kibo-white); text-wrap: pretty; }

/* Ghost button beside the yellow one (hero, closing band) */
.ks-page .kb2c-btn-ghost { background: transparent; color: var(--kibo-white); border-color: rgba(255,255,255,.45); transition: background .2s var(--ks-ease), color .2s var(--ks-ease), border-color .2s var(--ks-ease); }
.ks-page .kb2c-btn-ghost--soft { border-color: rgba(255,255,255,.32); }
.ks-page .kb2c-btn-ghost:hover { background: var(--kibo-white); color: var(--kibo-dark-grey); border-color: var(--kibo-white); }
.ks-page .kb2c-btn-ghost:focus-visible, .kb2c-page .kh-psec-btn--primary:focus-visible { outline: 2px solid var(--kibo-yellow); outline-offset: 2px; }

/* ==== Hero (B2cHero.astro; .ks-hero in search.css) ==== */
.kb2c-hero__sub { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--kibo-white); }
.ks-hero .kh-cta-row { gap: 14px; }

/* ==== Customer strip (B2cCustomers.astro; .ks-marquee in search.css) ==== */
.ks-customers.kb2c-customers { padding: 64px 0; }
.ks-marquee__item .kb2c-logo-h16 { height: 16px; }
.ks-marquee__item .kb2c-logo-h24 { height: 24px; }
.ks-marquee__item .kb2c-logo-h30 { height: 30px; }
.ks-marquee__item .kb2c-logo-h32 { height: 32px; }
.ks-marquee__item .kb2c-logo-h42 { height: 42px; max-width: 220px; }
.ks-marquee__item .kb2c-logo-h44 { height: 44px; }
.ks-marquee__item img.kb2c-logo--color { filter: none; }

/* ==== Results rows: customer results and analysts (B2cResults.astro) ==== */
.kb2c-anl { position: relative; overflow: hidden; color: var(--kibo-white); }
.kb2c-anl__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(46,52,62,.92) 0%, rgba(46,52,62,.72) 32%, rgba(46,52,62,0) 64%); }
.kb2c-anl__in { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 92px var(--ks-gutter); }
.kb2c-anl--head .kb2c-anl__in { padding-top: 128px; padding-bottom: 128px; }
.ks-h2.kb2c-anl__h { width: 980px; max-width: 100%; margin: 0 auto; text-align: center; }
.kb2c-anl__list { display: grid; grid-auto-rows: 1fr; width: fit-content; max-width: min(100%, 1100px); margin: 0 auto; border-bottom: 1.5px solid var(--kibo-yellow); }
.kb2c-anl--head .kb2c-anl__list { margin-top: 48px; max-width: min(100%, 980px); grid-auto-rows: auto; }
.kb2c-anl__row { display: grid; grid-template-columns: minmax(0, 280px) auto; align-items: center; gap: 20px 72px; padding: 28px 0; border-top: 1.5px solid var(--kibo-yellow); }
.kb2c-page .kb2c-anl__logo { display: block; width: auto; max-width: 100%; justify-self: start; object-fit: contain; filter: brightness(0) invert(1); }
.kb2c-page .kb2c-anl__logo--h26 { height: 26px; }
.kb2c-page .kb2c-anl__logo--h29 { height: 29px; }
.kb2c-page .kb2c-anl__logo--h34 { height: 34px; }
.kb2c-page .kb2c-anl__logo--h36 { height: 36px; }
.kb2c-page .kb2c-anl__logo--h44 { height: 44px; }
.kb2c-page .kb2c-anl__logo--h48 { height: 48px; }
.kb2c-page .kb2c-anl__logo--own { filter: none; }
.kb2c-anl__claim { margin: 0; display: flex; align-items: center; gap: 16px; }
.kb2c-page .kb2c-anl__arrow { display: block; flex-shrink: 0; width: 30px; height: 44px; }
.kb2c-page .kb2c-anl__arrow--down { transform: rotate(180deg); }
.kb2c-anl__claim span { display: block; max-width: 620px; font-size: 23px; line-height: 1.3; color: var(--kibo-white); }
.kb2c-anl__claim strong { font-weight: 600; }

/* ==== Tab rails (B2cRail.astro; the rail itself is .ks-rail in search.css) ==== */
.ks-section--glow.kb2c-section--gold {
  background-image:
    radial-gradient(58% 68% at 14% 16%, rgba(255,206,1,.22) 0%, rgba(255,206,1,0) 62%),
    radial-gradient(46% 60% at 88% 10%, rgba(255,206,1,.16) 0%, rgba(255,206,1,0) 66%),
    radial-gradient(70% 78% at 70% 98%, rgba(255,206,1,.2) 0%, rgba(255,206,1,0) 60%);
}
.kb2c-head__copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; flex: 1 1 560px; }
.ks-head.kb2c-head--tight { margin-bottom: 32px; gap: 14px 24px; }
.kb2c-problem { display: flex; flex-direction: column; gap: 12px; max-width: 960px; margin-top: 4px; }
.kb2c-problem p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--kibo-white); }
.kb2c-list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.kb2c-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.45; color: var(--kibo-white); text-wrap: pretty; }
.kb2c-list li::before { content: ""; flex-shrink: 0; width: 10px; height: 1.5px; background: var(--kibo-yellow); margin-top: .72em; }
.kb2c-list--problem { margin: 0; gap: 8px; }
.kb2c-list--problem li { font-size: 16px; line-height: 1.5; text-wrap: balance; }
.kb2c-list--problem li::before { margin-top: .75em; }
.kb2c-page .ks-rail__body { max-width: 52ch; text-wrap: pretty; }
.kb2c-panel--caps .ks-rail__content { gap: 18px; }
.kb2c-panel--caps .ks-rail__content h3 { max-width: 30ch; }
.kb2c-paras { display: grid; gap: 12px; }
.kb2c-paras p { margin: 0; font-size: 16px; line-height: 1.5; max-width: 68ch; color: var(--kibo-white); text-wrap: pretty; }
.kb2c-proofline { margin: 6px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); font-size: 14px; line-height: 1.45; font-weight: 500; color: var(--kibo-white); text-wrap: pretty; }
#order-flow { scroll-margin-top: 130px; }

/* Icons (B2cIcon.astro): the truck is wider than its box; shift it back by
   its overhang (7 of its 62 units) so it lines up with the others */
.kb2c-icon--wide { transform: translateX(-11.29%); }
.ks-acc__panel .kb2c-icon--wide { transform: none; margin-left: -7px; }

/* ==== ROI band (B2cRoi.astro) ==== */
.kb2c-roi { color: var(--kibo-white); }
.kb2c-roi__in { display: flex; flex-direction: column; gap: 40px; }
.kb2c-roi__head { display: flex; flex-direction: column; gap: 14px; max-width: 1120px; }
.kb2c-roi .ks-h2 { max-width: 1120px; }
.kb2c-roi__intro { margin: 0; font-size: 18px; line-height: 1.42; color: var(--kibo-white); text-wrap: balance; }
.kb2c-roi__intro strong { font-weight: 600; }

/* Calculator (B2cRoiCalculator.astro): input card on the left, estimate on the right */
.kb2c-calc { --kb2c-well: rgba(255,255,255,.07); --kb2c-toggle: cubic-bezier(.65,0,.35,1); display: grid; grid-template-columns: minmax(0, 820px) minmax(0, 1fr); gap: 40px; align-items: start; }
.kb2c-calc__card { background: var(--kibo-dark-grey); color: var(--kibo-white); border-radius: 5px; box-shadow: 0 2px 14px rgba(0,0,0,.18); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kb2c-calc__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 2px; }
.kb2c-calc__h { margin: 0; font-family: var(--font-base); font-size: 19px; font-weight: 500; letter-spacing: -.01em; color: var(--kibo-white); }

.kb2c-switch { display: flex; align-items: center; gap: 12px; border: 0; padding: 0; cursor: pointer; background: none; font-family: var(--font-base); color: var(--kibo-white); flex-shrink: 0; text-align: left; }
.kb2c-switch__label { font-size: 15px; font-weight: 500; }
.kb2c-switch__track { position: relative; width: 50px; height: 30px; border-radius: 999px; flex-shrink: 0; background: var(--kb2c-well); }
.kb2c-switch__knob { position: absolute; top: 7px; left: 7px; width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(46,52,62,.35); transition: transform .6s var(--kb2c-toggle), background .3s ease; }
.kb2c-switch[aria-checked="true"] .kb2c-switch__knob { background: var(--kibo-yellow); transform: translateX(20px); }
.kb2c-switch:focus-visible { outline: 2px solid var(--kibo-yellow); outline-offset: 4px; border-radius: 4px; }

.kb2c-sizes { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; background: var(--kb2c-well); border-radius: 60px; padding: 10px; }
.kb2c-sizes__pill { position: absolute; top: 10px; left: 10px; height: 34px; width: calc((100% - 38px) / 4); border-radius: 60px; background: var(--kibo-yellow); box-shadow: 0 1px 3px rgba(46,52,62,.18); transition: transform .6s var(--kb2c-toggle); will-change: transform; }
.kb2c-sizes__btn { position: relative; height: 34px; border: 0; border-radius: 60px; cursor: pointer; background: transparent; font-family: var(--font-base); font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--kibo-white); transition: color .45s var(--kb2c-toggle); }
.kb2c-sizes__btn.is-active { color: var(--kibo-dark-grey); font-weight: 600; }
.kb2c-sizes__btn:focus-visible { outline: 2px solid var(--kibo-yellow); outline-offset: 2px; }

.kb2c-calc__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kb2c-calc__pair--lead { grid-template-columns: minmax(0, max-content) minmax(220px, 1fr); }
.kb2c-well { background: var(--kb2c-well); border-radius: 5px; padding: 10px 14px; min-width: 0; }
.kb2c-well__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; line-height: 1.15; }
.kb2c-well__head--gap { margin-bottom: 14px; }
.kb2c-well__label { font-size: 14px; font-weight: 500; line-height: 1.15; color: var(--kibo-white); }
.kb2c-well__val { font-size: 20px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--kibo-white); }
.kb2c-well__help { font-size: 12px; line-height: 1.4; margin: 4px 0 3px; color: var(--kibo-white); }
.kb2c-well--aov .kb2c-well__head { align-items: flex-start; }
.kb2c-well--aov .kb2c-well__help { margin-bottom: 0; }
.kb2c-aov { display: flex; align-items: baseline; gap: 2px; height: 16px; margin-top: -2px; cursor: text; line-height: 1; flex-shrink: 0; }
.kb2c-page .kb2c-aov__input { width: 1.96em; min-width: 1.2em; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; outline: none; box-shadow: none; background: transparent; font-family: var(--font-base); font-size: 20px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--kibo-white); text-align: right; -moz-appearance: textfield; appearance: textfield; }
.kb2c-aov__input::-webkit-inner-spin-button, .kb2c-aov__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.kb2c-aov:focus-within { outline: 2px solid var(--kibo-yellow); outline-offset: 4px; border-radius: 2px; }

/* Sliders: 1.5px track, yellow to the left of the 16px thumb, blue to the right (--pct is set by the script) */
.kb2c-page .kb2c-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 1.5px; margin: 12px 0 11px; padding: 0; border: 0; border-radius: 999px; outline: none; cursor: pointer; background: linear-gradient(to right, var(--kibo-yellow) var(--pct, 50%), var(--kibo-link) var(--pct, 50%)); }
.kb2c-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--kibo-yellow); border: 0; box-shadow: 0 1px 3px rgba(46,52,62,.35); cursor: pointer; }
.kb2c-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--kibo-yellow); border: 0; box-shadow: 0 1px 3px rgba(46,52,62,.35); cursor: pointer; }
.kb2c-range::-moz-range-track { background: transparent; }
.kb2c-range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--kibo-white); outline-offset: 2px; }
.kb2c-range:focus-visible::-moz-range-thumb { outline: 2px solid var(--kibo-white); outline-offset: 2px; }

/* Legacy inputs open and close with the switch */
.kb2c-calc__legacy { display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: -14px; transition: grid-template-rows .7s var(--kb2c-toggle), opacity .5s var(--kb2c-toggle), margin-top .7s var(--kb2c-toggle); }
.kb2c-calc__legacy.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
.kb2c-calc__legacy-in { overflow: hidden; min-height: 0; }

/* Estimate column */
.kb2c-calc__res { position: relative; display: flex; flex-direction: column; min-width: 0; }
.kb2c-calc__fig { margin: 0 0 8px; font-size: clamp(50px, 9vw, 74px); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--kibo-white); }
.kb2c-calc__fig { transition: opacity .3s ease; }
.kb2c-calc__fig.is-easing { opacity: .6; }
.kb2c-calc__ghost { position: absolute; margin: 0; pointer-events: none; white-space: nowrap; }
.kb2c-calc__label { margin: 0 0 16px; font-family: var(--font-base); font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--kibo-white); }
.kb2c-calc__fine { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--kibo-white); }
.kb2c-calc__body { margin: 8px 0 0; font-size: 16px; line-height: 1.4; color: var(--kibo-white); }
.kb2c-calc__cta { display: flex; margin-top: 24px; }
.kb2c-calc__cta .kh-psec-btn, .kb2c-gate__thanks .kh-psec-btn { cursor: pointer; border: 0; font-family: var(--font-base); }

/* Breakdown card under the estimate */
.kb2c-brk { margin-top: 22px; background: var(--kibo-white); color: var(--kibo-dark-grey); border-radius: 5px; box-shadow: 0 2px 14px rgba(0,0,0,.08); padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.kb2c-brk__h { margin: 0; font-family: var(--font-base); font-size: 15px; font-weight: 600; color: var(--kibo-dark-grey); }
.kb2c-brk__rows { display: flex; flex-direction: column; }
.kb2c-brk__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(46,52,62,.14); }
.kb2c-brk__name { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.kb2c-brk__proof { margin: 2px 0 0; font-size: 12px; line-height: 1.45; }
.kb2c-brk__val { flex-shrink: 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kb2c-brk__total { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1.5px solid var(--kibo-dark-grey); font-size: 15px; font-weight: 600; }
.kb2c-brk__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; border-top: 1.5px solid rgba(46,52,62,.2); padding-top: 14px; }
.kb2c-brk__stat { display: flex; flex-direction: column; gap: 2px; }
.kb2c-brk__num { font-size: 24px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.kb2c-brk__lbl { font-size: 12px; line-height: 1.3; }
.kb2c-brk__src { margin: 0; font-size: 11px; line-height: 1.4; }
.kb2c-page .kb2c-brk__btn { align-self: flex-start; }

/* ==== FAQ (search/SearchFaq.astro): closed panels wrap their label ==== */
.kb2c-page .ks-faq__title { white-space: pre-line; overflow-wrap: break-word; text-wrap: pretty; }

/* ==== Resource tiles (B2cResources.astro; .ks-res in search.css) ==== */
.kb2c-res__date { font-size: 14px; }

/* ==== Closing band (B2cFinalCta.astro; .kh-finalcta in home.css) ==== */
.kb2c-finalcta__in { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.kb2c-page .kb2c-finalcta h2 { max-width: 24ch; margin: 0 auto; }
.kb2c-finalcta__icon { width: 184px; max-width: 100%; }
.kb2c-finalcta__icon svg { display: block; width: 100%; height: auto; overflow: visible; }
.kb2c-flow-line { fill: none; stroke: var(--kibo-white); stroke-width: 3; stroke-linejoin: miter; stroke-linecap: butt; }
.kb2c-fill-y { fill: var(--kibo-yellow); stroke: none; }
.kb2c-fill-blue { fill: var(--kh-blue); }
.kb2c-cube { stroke-width: 1; stroke-linejoin: round; stroke-opacity: .55; }
.kb2c-cube--y { fill: var(--kibo-yellow); stroke: var(--kibo-yellow); }
.kb2c-cube--w { fill: var(--kibo-white); stroke: var(--kibo-white); }
.kb2c-cube--s { fill: var(--kh-sky); stroke: var(--kh-sky); }

/* =================== Responsive =================== */
@media (max-width: 960px) {
  .kb2c-calc { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .kb2c-anl__in { padding-top: 64px; padding-bottom: 64px; }
  .kb2c-anl--head .kb2c-anl__in { padding-top: 72px; padding-bottom: 72px; }
  .kb2c-anl--head .kb2c-anl__list { margin-top: 36px; }
  .kb2c-page .kb2c-finalcta { padding: 64px 0; }
}

@media (max-width: 700px) {
  .kb2c-sizes { grid-template-columns: 1fr 1fr; border-radius: 22px; }
  .kb2c-sizes__pill { width: calc((100% - 26px) / 2); }
  .kb2c-calc__pair, .kb2c-calc__pair--lead { grid-template-columns: 1fr; }
  .kb2c-calc__card { padding: 20px 16px; }
  .kb2c-anl__row { grid-template-columns: 1fr; }
  .kb2c-anl__claim span { font-size: 19px; }
}

@media (max-width: 640px) {
  .kb2c-hero__sub { font-size: 19px; }
  .kb2c-lede, .kb2c-roi__intro { font-size: 17px; }
  .ks-customers.kb2c-customers { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ks-page .kb2c-btn-ghost, .kb2c-switch__knob, .kb2c-sizes__pill, .kb2c-sizes__btn, .kb2c-calc__legacy { transition: none !important; }
}

/* Breakdown form pop-up (same look as the B2B page's report pop-up) */
.kb2c-gate { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(640px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow: auto; padding: 28px 26px; border: 0; border-radius: 5px; background: var(--kibo-light-grey); color: var(--kibo-black); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.kb2c-gate::backdrop { background: rgba(20,24,30,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.kb2c-gate__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer; background: var(--kibo-white); color: var(--kibo-dark-grey); display: flex; align-items: center; justify-content: center; }
/* The HubSpot form iframe: fills the dialog, rebuilt with fresh query
   params every time the popup opens. */
.kb2c-gate__frame iframe { display: block; width: 100%; height: 76vh; max-height: 720px; border: 0; background: var(--kibo-white); }
.kb2c-gate__close:hover { background: var(--kibo-grey-200); }
.kb2c-gate__close:focus-visible { outline: 2px solid var(--kibo-dark-grey); outline-offset: 2px; }
.kb2c-gate__title { margin: 0 0 5px; padding-right: 44px; font-family: var(--font-base); font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--kibo-dark-grey); }
.kb2c-gate__title:focus { outline: none; }
.kb2c-gate__intro { margin: 0 0 17px; font-size: 14px; line-height: 1.45; color: var(--kibo-black); text-wrap: balance; }
.kb2c-gate__thanks .kh-psec-btn { font-family: var(--font-base); }
.kb2c-gate__thanks { display: flex; flex-direction: column; align-items: flex-start; }
.kb2c-brk:focus { outline: none; }
@media (max-width: 560px) { .kb2c-gate { padding: 24px 18px; } }
