/* ==========================================================================
   ABLENTRA V18 — /process/ fixes (2026-11-09, owner order).
   Linked ONLY on /process/, AFTER v16-process.css + the other V18 sheets,
   so these rules win ties. Scope: main#main on this page only.
   Palette (V17 definitive, unchanged): accent #FE5C22, black #111112,
   canvas #F6F6F4, white #FFFFFF. No new sections, no content changes,
   no Cal.com changes. The pinned one-step-at-a-time mechanism is
   untouched (no JS, no markup changes to the steps).
   --------------------------------------------------------------------------
   1. Hero figure SMALLER on every width (same image, professional sizing).
   2. "From first call to final launch." PROPERLY CENTERED; the pinned
      steps area below it ("Discovery and Business Context" onwards) gets
      the landing page's BLACK #111112 background, with the step colours
      re-skinned to the landing page's black-section treatment (white
      text, white giant numerals, orange pill dot — exactly as the
      homepage How It Works section renders).
   3. Steps-list clipping guards: grid children can no longer blow out
      past the panel edge on any viewport (min-width:0 + border-box +
      max-width:100%); the panel clips horizontal overflow.
   ========================================================================== */

/* --- 1. HERO FIGURE: smaller on mobile, tablet, laptop AND desktop ------ */
/* Before: full wrap width — 1136x758 at >=1366px (84% of a 900px viewport
   tall), 682x455 at 768px. After: 720px wide desktop, 560px tablet/laptop,
   height-capped on phones. Same image, same aspect, proper spacing. */
main#main > section.page-hero.v16p-hero:not(.home-hero) .page-hero-figure {
  max-width: 720px !important;
  margin-top: clamp(1.5rem, 3vw, 2.5rem) !important;
}
main#main > section.page-hero.v16p-hero:not(.home-hero) .page-hero-figure img {
  width: 100% !important;
  height: auto !important;
}
@media (max-width: 1199px) {
  main#main > section.page-hero.v16p-hero:not(.home-hero) .page-hero-figure {
    max-width: 560px !important;
  }
}
@media (max-width: 640px) {
  main#main > section.page-hero.v16p-hero:not(.home-hero) .page-hero-figure {
    max-width: 100% !important;
    margin-top: 1.25rem !important;
  }
  main#main > section.page-hero.v16p-hero:not(.home-hero) .page-hero-figure img {
    max-height: 200px !important;
    object-fit: cover !important;
    object-position: center top !important;
  }
}

/* --- 2a. HEADER: "From first call to final launch." PROPERLY CENTERED --- */
/* Before (V17): flex space-between, heading right-aligned on desktop,
   left-aligned on mobile. After: centred label above a centred heading
   on every viewport. The heading keeps its V17 size; only alignment
   changes. The header sits on the light canvas (see 2b), so its ink
   colours stand. */
main#main .v16p-proc-head {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: .75rem !important;
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem) !important;
}
main#main .v16p-proc-head .proc-kicker {
  padding-bottom: 0 !important;
  text-align: center !important;
}
main#main .v16p-proc-head .proc-h {
  text-align: center !important;
  margin: 0 auto !important;
  max-width: 26ch !important;
}

/* --- 2b. PINNED STEPS AREA: BLACK #111112 (landing-page background) ----- */
/* Before (V17): the whole section — header + steps — was a WHITE panel on
   the #F6F6F4 page. After: the section itself blends into the page canvas
   (header stays on light, centred, ink), and the pinned track — the area
   holding "Discovery and Business Context" and the other four steps — is
   the landing page's black #111112, same inset rounded panel shape
   (28px radius, 20px desktop inset) as before. The track is 520vh tall;
   its black background is the surface the sticky step viewport sits on,
   so every pinned step reads on black, exactly like the homepage
   How It Works section. */
main#main section.proc.v16p-proc {
  background: #F6F6F4 !important;
  color: #0E0E0F !important;
  overflow-x: clip !important;
}
main#main section.proc.v16p-proc .proc-track {
  background: #111112 !important;
  border-radius: 28px !important;
}
/* Steps must be TRANSPARENT so the black track shows through. The
   white-card skin in v16-industry-white.css
   (`main#main .proc-track .proc-stage > .proc-step.pq-step`, (1,4,1))
   beats v16-process.css's transparent rule ((1,2,1)) — its comment
   claims otherwise, but the white skin wins. Against the V17 white
   track that was invisible; on the black track the white step
   background paints a white rectangle behind the text column (the
   image covers column 1) and swallows the white text — white on
   white. This mirrors the homepage's v16-averlo.css:1001 fix, which
   /process/ does not load (no v16-averlo.css link on this page). */
main#main section.proc.v16p-proc .proc-track .proc-stage > .proc-step.pq-step,
main#main section.proc.v16p-proc .proc-track .proc-stage > .proc-step.pq-step.is-active,
main#main section.proc.v16p-proc .proc-step,
main#main section.proc.v16p-proc .proc-step.is-active {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
@media (max-width: 900px) {
  main#main section.proc.v16p-proc .proc-track {
    border-radius: 20px !important;
  }
}
/* Dark re-skin of everything inside the black track. Colours are the
   homepage black-section values (v16-averlo.css V17-9/V17-19): white
   headings, rgba-white body copy, white giant numerals (the landing
   page's "05" is white), orange #FE5C22 only for the current-step dot
   and hovers. The V17 "no box" rule for Output/Approval lines stands —
   they stay plain text, only recoloured. */
main#main section.proc.v16p-proc .proc-track .proc-text h3,
main#main section.proc.v16p-proc .proc-text h3 {
  color: #FFFFFF !important;
}
main#main section.proc.v16p-proc .proc-track .proc-text p,
main#main section.proc.v16p-proc .proc-text p {
  color: rgba(255, 255, 255, .78) !important;
}
main#main section.proc.v16p-proc .proc-text .proc-deliverable {
  color: rgba(255, 255, 255, .78) !important;
  background: transparent !important;
  border: 0 !important;
}
main#main section.proc.v16p-proc .proc-text .proc-deliverable strong {
  color: #FFFFFF !important;
}
main#main section.proc.v16p-proc .proc-num {
  color: #FFFFFF !important;
}
/* Rail on black: inactive squares stay light grey (visible on black);
   the current-step pill becomes the landing page's translucent-white
   pill with white text and the orange dot. */
main#main section.proc.v16p-proc .proc-dot {
  color: rgba(255, 255, 255, .55) !important;
}
main#main section.proc.v16p-proc .proc-dot.is-on {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
}
main#main section.proc.v16p-proc .proc-dot.is-on span {
  color: #FFFFFF !important;
}
main#main section.proc.v16p-proc .proc-dot.is-on i {
  background: #FE5C22 !important;
}
main#main section.proc.v16p-proc .proc-dot.is-done {
  color: rgba(255, 255, 255, .75) !important;
}
main#main section.proc.v16p-proc .proc-rail-line {
  background: rgba(255, 255, 255, .14) !important;
}
main#main section.proc.v16p-proc .proc-stage::before {
  background: rgba(255, 255, 255, .14) !important;
}
/* "Message Us" pill on black: the dark #111112 pill would vanish against
   the black track, so it becomes the landing page's WHITE pill (dark
   text, orange on hover) — same pill, same link, same position. */
main#main section.proc.v16p-proc .proc-card .proc-msg {
  background: #FFFFFF !important;
  color: #0E0E0F !important;
}
main#main section.proc.v16p-proc .proc-card .proc-msg:hover,
main#main section.proc.v16p-proc .proc-card .proc-msg:focus-visible {
  background: #FE5C22 !important;
  color: #FFFFFF !important;
}

/* --- 3. STEPS-LIST CLIPPING GUARDS (all viewports) ----------------------- */
/* The 01–05 list must never extend past the panel edge. Grid blowout is
   the usual cause (a grid child refusing to shrink below its content
   size); min-width:0 + border-box + max-width:100% on every level of
   the pinned grid removes it, and the section clips any horizontal
   overflow that still occurs. The pinned mechanism itself is untouched.
   The same guards cover the reduced-motion / no-JS static stacked list
   (same markup, position:static), whose stage gets explicit side
   padding so the stacked cards sit inside the black panel. */
main#main section.proc.v16p-proc .proc-grid,
main#main section.proc.v16p-proc .proc-stage,
main#main section.proc.v16p-proc .proc-step,
main#main section.proc.v16p-proc .proc-text {
  min-width: 0 !important;
  box-sizing: border-box !important;
}
main#main section.proc.v16p-proc .proc-step {
  max-width: 100% !important;
}
main#main section.proc.v16p-proc .proc-card img {
  max-width: 100% !important;
}
@media (prefers-reduced-motion: reduce) {
  main#main section.proc.v16p-proc .proc-stage {
    padding-left: clamp(1rem, 3vw, 2rem) !important;
    padding-right: clamp(1rem, 3vw, 2rem) !important;
    box-sizing: border-box !important;
  }
  main#main section.proc.v16p-proc .proc-step {
    max-width: 100% !important;
  }
}
html:not(.js) main#main section.proc.v16p-proc .proc-stage {
  padding-left: clamp(1rem, 3vw, 2rem) !important;
  padding-right: clamp(1rem, 3vw, 2rem) !important;
  box-sizing: border-box !important;
}
