/* Solution pages on the Passenger Check template (body.pgx), produced from the legacy page markup.
   Works with rc-products.css, rc-passenger(-v2).css and rc-vt-v2.css (sheets, fades, dark bands, badges).
   One spacing scale for every page: --sec-y around sections, --head-gap between a heading block and its component. */

body.pgx {
  --sec-y: clamp(64px, 8vw, 104px);      /* = .pcx-sec */
  --head-gap: clamp(40px, 5vw, 64px);    /* = .pcx-head margin-bottom */
}

/* ---------- headings ---------- */
body.pgx h2.pcx-h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.22; font-weight: 600; letter-spacing: -.01em; text-transform: none; }
body.pgx .pcx-badge + h2.pcx-h2 { margin-top: 14px; }
body.pgx .pcx-head { margin-bottom: var(--head-gap); }
body.pgx .pcx-head > p { margin-top: 18px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--pc-body); max-width: 680px; }
body.pgx .pcx-head.on-dark > p { color: #C6D3D1; }
body.pgx .pcx-head .rc-btn-row { margin-top: 24px; }
body.pgx .pcx-head.left .rc-btn-row { justify-content: flex-start; }
body.pgx .pcx-badge img { width: 18px; height: 18px; }

/* ---------- hero ---------- */
body.pgx .pgx-hero { padding-bottom: 0; }
body.pgx .pgx-hero .pcx-hero-head { max-width: 1080px; }
body.pgx .pgx-hero .pcx-h1 { font-size: clamp(34px, 4.4vw, 60px); }
body.pgx .pgx-hero .pcx-hero-sub { max-width: 680px; margin-left: auto; margin-right: auto; }
body.pgx .pgx-hero .rc-btn-row { justify-content: center; }
@media (min-width: 768px) { body.pgx .pgx-hero .pcx-h1 > span { white-space: nowrap; } }
/* the legacy browser mock becomes the Passenger Check frame */
body.pgx .pgx-frame { position: relative; width: min(100%, 1080px); margin: clamp(40px, 4vw, 48px) auto 0; padding: 10px; border-radius: 20px; background: #fff; box-shadow: 0 40px 100px -30px rgba(5, 161, 148, .45), 0 0 0 1px rgba(255, 255, 255, .08); }
body.pgx .pgx-frame > div > video, body.pgx .pgx-frame > video { display: block; width: 100%; height: auto; border-radius: 12px; }

/* ---------- sections and sheets: one rhythm ---------- */
body.pgx .pgx-sec { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
body.pgx .pgx-sheet > .pgx-sec + .pgx-sec { padding-top: 0; }
body.pgx .pgx-dark > section { padding-top: 0; padding-bottom: 0; }
body.pgx .pgx-dark > section > .container { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
body.pgx .pgx-after-sheet > section:first-child > .container { padding-top: clamp(16px, 2vw, 32px); }
body.pgx .pgx-sheet .pgx-sec.vtx-fade { padding-bottom: var(--melt-p); }
body.pgx .pgx-sheet:not(:has(.vtx-fade:last-child)) { border-bottom-left-radius: clamp(24px, 4vw, 56px); border-bottom-right-radius: clamp(24px, 4vw, 56px); }

/* standalone illustrations (GIFs, screenshots) */
body.pgx .pgx-media { display: block; width: min(100%, 1040px); height: auto; margin: 0 auto; border-radius: 20px; box-shadow: 0 30px 70px -34px rgba(0, 22, 21, .35), 0 0 0 1px rgba(15, 31, 29, .06); }
body.pgx .pgx-dark .pgx-media { box-shadow: 0 40px 90px -36px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }

/* ---------- bento cards (legacy icon cards) ---------- */
body.pgx .pgx-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
body.pgx .pgx-card { grid-column: span var(--c, 4); position: relative; display: flex; flex-direction: column; min-height: 260px; padding: clamp(22px, 2.4vw, 32px); border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, #FFFFFF 0%, #F4FAF9 55%, #E3F3F1 100%); border: 1px solid #E2EBE9; box-shadow: 0 1px 2px rgba(15, 31, 29, .04), 0 10px 30px -14px rgba(15, 31, 29, .12);
  transition: transform .4s var(--pc-ease), box-shadow .4s var(--pc-ease), border-color .4s; }
body.pgx .pgx-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(59, 238, 226, .22), rgba(59, 238, 226, 0)); pointer-events: none; }
body.pgx .pgx-card:hover { transform: translateY(-4px); border-color: #BFE7E2; box-shadow: 0 1px 2px rgba(15, 31, 29, .05), 0 22px 44px -18px rgba(15, 31, 29, .2); }
body.pgx .pgx-card img { width: 52px !important; height: 52px !important; padding: 10px; border-radius: 14px !important; background: #fff; box-shadow: 0 0 0 1px #E2EBE9, 0 8px 18px -10px rgba(15, 31, 29, .25); }
body.pgx .pgx-card h3 { margin-top: auto; padding-top: 28px; font-size: clamp(19px, 1.6vw, 22px) !important; line-height: 1.3; font-weight: 600; color: var(--pc-ink); }
body.pgx .pgx-card p { margin-top: 8px; font-size: 15.5px !important; line-height: 1.6; color: var(--pc-body) !important; max-width: 40em; }
body.pgx .pgx-dark .pgx-card { background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(59, 238, 226, .05)); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
body.pgx .pgx-dark .pgx-card h3 { color: #fff; }
body.pgx .pgx-dark .pgx-card p { color: #C6D3D1 !important; }
/* even grid: every row of icon cards is the same height */
@media (min-width: 1024px) { body.pgx .pgx-bento:not(.pgx-open) { grid-auto-rows: 1fr; } }
@media (max-width: 1023px) { body.pgx .pgx-card { grid-column: span 6; min-height: 0; } }
@media (max-width: 639px) { body.pgx .pgx-bento { gap: 14px; } body.pgx .pgx-card { grid-column: span 12; } }

/* ---------- use-case cards: swipeable strip, left-aligned with the heading, arrows on the right ---------- */
body.pgx .pgx-fit { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px;
  margin-top: var(--head-gap); padding: 4px 2px 14px; overflow: auto hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: 2px; scrollbar-width: none; }
body.pgx .pgx-fit::-webkit-scrollbar { display: none; }
body.pgx .pgx-fit .pcx-fit-card { scroll-snap-align: start; }
.pcx-js body.pgx .pgx-fit .pcx-fit-card[data-reveal], body.pgx.pcx-js .pgx-fit .pcx-fit-card[data-reveal] { transform: none; }
body.pgx .pgx-fit .pcx-fit-card h3, body.pgx .pgx-fit .pcx-fit-card h4 { margin-top: 20px; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--pc-ink); }
body.pgx .pgx-fit .pcx-fit-card p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--pc-body); }
@media (max-width: 1023px) { body.pgx .pgx-fit { grid-auto-columns: calc((100% - 24px) / 2.25); } }
@media (max-width: 639px) { body.pgx .pgx-fit { grid-auto-columns: 82%; gap: 16px; } }
body.pgx .pgx-nav { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; }
body.pgx .pgx-nav button { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .22); transition: background .2s, border-color .2s, opacity .2s; }
body.pgx .pgx-nav button:hover:not(:disabled) { border-color: var(--pc-mint); background: rgba(59, 238, 226, .1); }
body.pgx .pgx-nav button:focus-visible { outline: 2px solid var(--pc-mint); outline-offset: 2px; }
body.pgx .pgx-nav button:disabled { opacity: .35; cursor: default; }
body.pgx .pgx-sheet .pgx-nav button { color: var(--pc-ink); background: #fff; border-color: #CFE3E0; }
body.pgx .pgx-sheet .pgx-nav button:hover:not(:disabled) { border-color: var(--pc-teal); background: #F3FCFB; }
@media (max-width: 1023px) { body.pgx .pgx-nav { justify-content: flex-start; margin-top: 16px; } }

/* hero chip is outside the legacy centred block: centre it on its own */
body.pgx .pgx-hero > .container > .pcx-badge { display: flex; width: max-content; max-width: 100%; margin: 0 auto; }
body.pgx .pgx-hero .pcx-hero-head .pcx-h1 { margin-top: 18px; }

/* a sheet built from a wrapper of several sections: each inner section gets the same rhythm */
body.pgx .pgx-wrap > section { padding-top: var(--sec-y); padding-bottom: 0; }
body.pgx .pgx-wrap > section:first-child { padding-top: var(--sec-y); }
body.pgx .pgx-wrap:not(.vtx-fade) > section:last-child { padding-bottom: var(--sec-y); }
body.pgx .pgx-wrap.vtx-fade { padding-bottom: var(--melt-p); }
body.pgx .pgx-faq-cta { justify-content: center; margin-top: 32px; }

/* hero: room between the product frame and the first sheet */
body.pgx .pgx-hero { padding-bottom: clamp(72px, 8vw, 120px); }  /* = .pcx-hero */

/* ---------- one horizontal grid: every section container lines up at the Passenger Check width ---------- */
body.pgx :is(.pgx-hero, .pgx-sheet, .pgx-dark, .vtx-promo) .container { width: 100%; max-width: 1240px !important; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/* ---------- feature panel (Figma 40010768-9537): list left, media right ---------- */
body.pgx .pgx-feat { margin-top: var(--head-gap); }
body.pgx .pgx-feat .pcx-feat-item button > span:first-child { flex: 1; }
body.pgx .pgx-feat .pcx-btn-sm { margin-top: 14px; }
body.pgx .pgx-feat .pcx-feat-media { background: linear-gradient(160deg, #F4FAF9, #E3F1EF); }
body.pgx .pgx-feat .pcx-feat-media > .fit-contain { object-fit: contain; padding: clamp(16px, 3vw, 40px); }
body.pgx .pgx-dark .pgx-feat .pcx-feat-media { background: #0B2B28; }
@media (max-width: 1023px) {
  body.pgx .pgx-feat { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  body.pgx .pgx-feat .pcx-feat-media { order: -1; aspect-ratio: 16 / 10; }
  body.pgx .pgx-feat .pcx-feat-list { padding: 8px 22px 22px; }
}

/* ---------- open cards: used next to boxed widgets so two boxes never stack ---------- */
body.pgx .pgx-open { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; }
body.pgx .pgx-open .pgx-card { grid-column: auto; min-height: 0; padding: 4px clamp(20px, 2.6vw, 36px) 8px; border: 0; border-left: 1px solid #DCE7E5; border-radius: 0; background: none; box-shadow: none; }
body.pgx .pgx-open .pgx-card:first-child { border-left: 0; padding-left: 0; }
body.pgx .pgx-open .pgx-card::after { display: none; }
body.pgx .pgx-open .pgx-card:hover { transform: none; box-shadow: none; }
body.pgx .pgx-open .pgx-card h3 { margin-top: 0; padding-top: 18px; }
body.pgx .pgx-dark .pgx-open .pgx-card { border-left-color: rgba(255, 255, 255, .12); }
body.pgx .pgx-open + *, body.pgx * + .pgx-open { margin-top: var(--sec-y); }
@media (max-width: 767px) {
  body.pgx .pgx-open .pgx-card { border-left: 0; border-top: 1px solid #DCE7E5; padding: 20px 0; }
  body.pgx .pgx-open .pgx-card:first-child { border-top: 0; padding-top: 0; }
}

/* AlcoChek intro headline: two lines inside its 800px column */
body.pgx .game-headline { font-size: clamp(30px, 3.2vw, 46px) !important; line-height: 1.12; }

/* ---------- gradient transitions, as on Passenger Check ----------
   sheet fades to deep green (vtx-fade) -> dark band; a band that has another sheet after it lifts to teal so the
   sheet's rounded top lands on colour, not black; the last band stays deep and runs into the promo. */
body.pgx .pgx-dark { background: var(--pc-deep); }
body.pgx .pgx-dark.pgx-band { background: linear-gradient(180deg, var(--pc-deep) 0%, #052826 55%, #0A3C37 100%); padding-bottom: clamp(24px, 4vw, 56px); }
body.pgx .pgx-dark:not(.pgx-after-sheet) { background: linear-gradient(180deg, rgba(4, 33, 31, 0) 0%, var(--pc-deep) 320px); }
body.pgx .pgx-dark.pgx-band:not(.pgx-after-sheet) { background: linear-gradient(180deg, rgba(4, 33, 31, 0) 0%, var(--pc-deep) 320px, #052826 60%, #0A3C37 100%); }
body.pgx .pgx-dark > section, body.pgx .pgx-dark > section > div { background-color: transparent; }

/* ---------- heading alignment: stand-alone heads are centred on the page grid ----------
   (left only where the heading shares its row with a product or with strip arrows) */
body.pgx .max-w-3xl:has(> .pcx-head:not(.left)) { max-width: none; }
body.pgx .bm5w { text-align: center; }
body.pgx .bm5w > h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.22; font-weight: 600; letter-spacing: -.01em; margin-top: 14px; }
body.pgx .bm5w .bm5 { text-align: left; margin-top: var(--head-gap); }
body.pgx .rc7-h { text-align: center; max-width: 860px; margin: 0 auto var(--head-gap); font-size: clamp(30px, 3.6vw, 48px); line-height: 1.22; letter-spacing: -.01em; }

/* AlcoChek intro: its animated background must not widen the page on phones */
body.pgx #last-clear-mile { overflow-x: clip; }

/* ================= box rhythm =================
   A boxed component (panel, card grid, banded panel, card strip) never directly follows another one.
   Where two met, one is opened: its container goes and the content sits on the page with hairlines. */

/* use-case strip, open variant: image + text, no card container */
body.pgx .pgx-fit-open .pcx-fit-card { background: none; border: 0; padding: 0; border-radius: 0; box-shadow: none; }
body.pgx .pgx-fit-open .pcx-fit-card:hover { box-shadow: none; }
body.pgx .pgx-fit-open .pcx-fit-media { border-radius: 16px; }
body.pgx .pgx-dark .pgx-fit-open .pcx-fit-card :is(h3, h4) { color: #fff; }
body.pgx .pgx-dark .pgx-fit-open .pcx-fit-card p { color: #C6D3D1; }

/* Fleet: AI Agent sits open above the trip replay panel; roster / route planner sit open under the Shift Master panel */
body.pg-fleet-management-software .rc4-band { background: none; box-shadow: none; border-radius: 0; padding-left: 0; padding-right: 0; padding-top: 0; }
body.pgx .rc7-pan { background: none; padding: 0; border-radius: 0; }
body.pgx .rc7 { margin-top: var(--sec-y); }

/* the AI Agent block sits open only on a dark band; on a white sheet it keeps its own dark panel (its text is light) */
body.pgx .pgx-dark section[data-ai-agent] > .container > div { background: none !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; overflow: visible !important; }
body.pgx .pgx-dark section[data-ai-agent] > .container > div > .pointer-events-none { display: none; }

/* Last Mile: the turnaround comparison keeps its dark band on the white sheet (its labels are light) */
body.pg-last-mile-delivery-tracking .lm3-band { border-radius: 24px; }

/* BMS: the three platform cards sit open (product windows + text) between the AI band and the fleet-type cards */
body.pg-battery-management-system .bm5 .pnl { background: none; padding: 0; border-radius: 0; }

/* ---------- Fleet "Suite of Solutions" as a bento: three cards, each with its own product scene ---------- */
body.pgx .rc8.fx8 { padding: 0; overflow: visible; }
body.pgx .fx8-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
body.pgx .fx8-card { grid-column: span 12; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(59, 238, 226, .04)); }
body.pgx .fx8-card.w7 { grid-column: span 7; }
body.pgx .fx8-card.w5 { grid-column: span 5; }
body.pgx .fx8-v { position: relative; min-height: 0; height: 330px; padding: 26px 26px 0; overflow: hidden; }
body.pgx .fx8-v::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(6, 34, 32, 0), #06221F); pointer-events: none; z-index: 3; }
body.pgx .fx8-v .sc, body.pgx .fx8-v .sc.on { position: relative; inset: auto; height: 100%; opacity: 1; visibility: visible; transform: none; align-items: flex-start; }
body.pgx .fx8-v .pf { top: 10%; }
body.pgx .fx8-t { padding: 22px 28px 28px; }
body.pgx .fx8-t h3 { font: 600 clamp(21px, 2vw, 26px)/1.25 "Roboto", sans-serif; color: #fff; }
body.pgx .fx8-t p { margin-top: 8px; max-width: 36em; font-size: 15.5px; line-height: 1.6; color: #BFD9D5; }
body.pgx .fx8-t a { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--pc-mint); }
body.pgx .fx8-card.row { flex-direction: row; align-items: stretch; }
body.pgx .fx8-card.row .fx8-v { flex: 0 0 58%; height: 340px; }
body.pgx .fx8-card.row .fx8-t { align-self: center; padding: 28px 36px; }
@media (max-width: 1023px) {
  body.pgx .fx8-card.w7, body.pgx .fx8-card.w5 { grid-column: span 12; }
  body.pgx .fx8-card.row { flex-direction: column; }
  body.pgx .fx8-card.row .fx8-v { flex: none; }
  body.pgx .fx8-v { height: 340px; padding: 18px 18px 0; }
  body.pgx .fx8-v .pf { top: auto; bottom: 8%; }
  body.pgx .fx8-card.row .fx8-t { align-self: stretch; padding: 22px 24px 26px; }
}

/* ---- Fleet "360 degree view" bento: one card per dashboard scene. Each card is a light product window
   (the scene's own panel, cropped by the window) with a title and one line of copy below. ---- */
body.pgx .fx3-bento { margin-top: 0; }
body.pgx .fx3-v { position: relative; height: 340px; margin: 14px 14px 0; border-radius: 16px; overflow: hidden; background: #F3F5F7; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
body.pgx .fx3-v .fx3 { position: absolute; inset: 0; width: auto; max-width: none; margin: 0; }
body.pgx .fx3 .rc3-cv { position: absolute; inset: 0; width: auto; height: auto; transform: none; border-radius: 0; background: none; box-shadow: none; }
body.pgx .fx3 .rc3-map { position: absolute; inset: 0; width: 100%; height: 100%; }
body.pgx .fx3 .rc3-sc { left: 16px; right: 16px; top: 16px; bottom: auto; width: auto; padding: 20px 22px; }
body.pgx .fx3 .rc3-list { right: 16px; top: 16px; }
/* reports: the table runs on past the window edge */
body.pgx .fx3 .rc3-rep .fl span:nth-child(2) { display: none; }
/* video: tags stay inside their feed */
body.pgx .fx3 .rc3-video .evs { flex-wrap: wrap; }
/* fuel: summary strip + timeline; the stat tiles under the chart are dropped to keep the chart in the window */
body.pgx .fx3 .rc3-fuel { top: 14px; padding: 14px 16px; gap: 10px; }
body.pgx .fx3 .rc3-fuel .ft, body.pgx .fx3 .rc3-fuel .sumc .hdr, body.pgx .fx3 .rc3-fuel .seg { display: none; }
body.pgx .fx3 .rc3-fuel .sumc { padding: 10px 12px; }
body.pgx .fx3 .rc3-fuel .sum b { font-size: 17px; }
body.pgx .fx3 .rc3-fuel .sum span { padding: 0 10px; }
body.pgx .fx3 .rc3-fuel .call { right: 96px; top: 150px; }
/* video and fuel panels fit inside the window, so they sit centred in it */
body.pgx .fx3-video .rc3-cv, body.pgx .fx3-fuel .rc3-cv { display: flex; align-items: center; padding: 0 16px; }
body.pgx .fx3-video .rc3-sc, body.pgx .fx3-fuel .rc3-sc { position: relative; left: auto; right: auto; top: auto; flex: 1; min-width: 0; }
/* AI Agent: the chat card on a soft teal wash */
body.pgx .fx3-agent .fx3-v { background: radial-gradient(120% 90% at 80% 0, #DDF5F2, #F3F5F7 62%); }
body.pgx .fx3-agent .rc3-cv { display: grid; place-items: center; padding: 16px; }
body.pgx .fx3 .rc-360-ai { position: relative; right: auto; bottom: auto; margin: 0; width: min(344px, 100%); opacity: 1; transform: none; }
@media (max-width: 1023px) {
  body.pgx .fx3-v { height: 320px; margin: 10px 10px 0; }
}
@media (max-width: 639px) {
  body.pgx .fx3-v { height: 300px; }
  body.pgx .fx3 .rc3-list { zoom: .86; right: 12px; top: 12px; }
  body.pgx .fx3 .rc3-sc { left: 10px; right: 10px; top: 10px; padding: 14px; }
  body.pgx .fx3-video .rc3-cv, body.pgx .fx3-fuel .rc3-cv { padding: 0 10px; }
  body.pgx .fx3-video .rc3-sc, body.pgx .fx3-fuel .rc3-sc { left: auto; right: auto; top: auto; }
  body.pgx .fx3 .rc3-rep .d, body.pgx .fx3 .rc3-rep .fl { display: none; }
  body.pgx .fx3 .rc3-video .feeds { gap: 8px; }
  /* phone: video keeps the two feeds and the AI tags; fuel keeps the timeline with the theft flag under it */
  body.pgx .fx3 .rc3-video .hdr span, body.pgx .fx3 .rc3-video .tm, body.pgx .fx3 .rc3-video .box b { display: none; }
  body.pgx .fx3 .rc3-video .evs { gap: 6px; margin-top: 12px; }
  body.pgx .fx3 .rc3-video .evs small { display: none; }
  body.pgx .fx3 .rc3-fuel { zoom: .84; }
  body.pgx .fx3 .rc3-fuel .sumc, body.pgx .fx3 .rc3-fuel .tlc .hdr span { display: none; }
  body.pgx .fx3 .rc3-fuel .call { position: static; box-shadow: 0 0 0 1px #F6D0D2; }
  body.pgx .fx3 .rc-360-ai { zoom: .8; }
  body.pgx .fx3-agent .rc3-cv { padding: 12px; }
}

/* ---- Homepage on the template (body.pg-home). Same spacing scale as the solution pages. ---- */
body.pg-home .hm-hero .pcx-hero-head .main-heading { margin-top: 18px; }
body.pg-home .hm-hero .pcx-hero-sub { margin-top: 18px; }
body.pg-home .hm-hero .rc-btn-row { margin-top: 28px; }
body.pg-home .hm-hero .hm0 { margin-top: clamp(48px, 6vw, 80px); }
body.pg-home .hm-partners { margin-top: clamp(88px, 9vw, 128px); }
body.pg-home .hm-partners > p { font-size: clamp(18px, 1.8vw, 24px) !important; margin: 0 !important; color: #C6D3D1; }
body.pg-home .hm-partners .cl-marquee { margin-top: clamp(32px, 4vw, 48px); }
/* How it works: who-it's-for cards; Track: light feature panel */
body.pg-home .hm2 { margin-top: 0; }
/* Future-Ready: GIF as a full-width black band, then "Our Solutions" over the four rows */
body.pg-home .hm-gifb { background: #000; }
body.pg-home .hm-gifb img { display: block; width: 100%; max-width: 1440px; height: auto; margin: 0 auto; }
body.pg-home .hm-sol-head { margin-top: var(--sec-y); }
body.pg-home .hm-row { align-items: center; }
body.pg-home .hm-row + .hm-row, body.pg-home .hm-row ~ .hm-row { margin-top: clamp(64px, 8vw, 104px); }
body.pg-home .hm-row h3 { margin-top: 18px !important; font-size: clamp(26px, 2.5vw, 34px) !important; line-height: 1.22; font-weight: 600; color: var(--pc-ink) !important; }
body.pg-home .hm-row h3 + p { margin-top: 14px !important; font-size: 16px !important; line-height: 1.6; color: var(--pc-body) !important; }
body.pg-home .hm-row .hm-vid { border-radius: 24px; overflow: visible; }
body.pg-home .hm-row .hm-vid video { border-radius: 24px; }
/* row pop-ups: the short versions (no header rows, no SOS or rider line) */
body.pg-home .hm4 .wh, body.pg-home .hm4 .sos, body.pg-home .hm4 .pb, body.pg-home .hm4 .rd { display: none; }
body.pg-home .hm4.w4 .g2 { grid-template-columns: 1fr; }
body.pg-home .hm4.w4 .g2 span:first-child { background: #EAF6EE; } body.pg-home .hm4.w4 .g2 span:first-child b { color: #15803D; }
body.pg-home .hm4.w4 .g2 span + span { background: #FDF3E3; } body.pg-home .hm4.w4 .g2 span + span b { color: #B45309; }
/* AI Agent: a dark panel inside the sheet, after the rows */
body.pg-home .pgx-sheet .rc4.hm-ai { padding-top: 0; padding-bottom: 0; }
/* We Build: bento, then the link to every solution */
body.pg-home .hm-all { margin: clamp(40px, 5vw, 56px) 0 0; text-align: center; }
body.pg-home .hm-all a { display: inline-flex; gap: 6px; padding: 10px 18px; border-radius: 999px; font-size: 16px; font-weight: 600; color: #0B6F66; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px #CFE6E2; transition: background .3s, color .3s; }
body.pg-home .hm-all a:hover { background: #0B6F66; color: #fff; }
/* closing sheet: podcast episodes as a looping card carousel, then dashcam use cases */
body.pg-home .hm-pods { max-width: 1360px; margin: 0 auto; }
body.pg-home .hm-pods .trk { position: relative; aspect-ratio: 1360 / 660; touch-action: pan-y; }
body.pg-home .hm-pods .pc { position: absolute; top: 0; left: 50%; width: 66%; height: 100%; border-radius: 22px; overflow: hidden; background: #0B1F1D; transform: translateX(-50%); transition: transform .9s cubic-bezier(.22, .8, .24, 1), filter .9s, opacity .9s, box-shadow .9s; -webkit-user-drag: none; user-select: none; }
body.pg-home .hm-pods .pc > img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
body.pg-home .hm-pods .pc[data-pos="0"] { z-index: 2; box-shadow: 0 34px 64px -30px rgba(0, 30, 28, .55); }
body.pg-home .hm-pods .pc[data-pos="-1"], body.pg-home .hm-pods .pc[data-pos="1"] { z-index: 1; filter: blur(5px) brightness(.92); opacity: .9; cursor: pointer; }
body.pg-home .hm-pods .pc[data-pos="-1"] { transform: translateX(-50%) translateX(-27%) scale(.9); }
body.pg-home .hm-pods .pc[data-pos="1"] { transform: translateX(-50%) translateX(27%) scale(.9); }
body.pg-home .hm-pods .ep { position: absolute; left: 0; bottom: 0; padding: .35em .9em; border-radius: 0 22px 0 0; background: #000; color: #fff; font-size: clamp(18px, 3vw, 44px); line-height: 1.2; transition: opacity .6s; }
body.pg-home .hm-pods .pl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity .6s, transform .4s; }
body.pg-home .hm-pods .pl img { height: clamp(56px, 10vw, 150px); }
body.pg-home .hm-pods .pc:not([data-pos="0"]) :is(.ep, .pl) { opacity: 0; }
body.pg-home .hm-pods .pc[data-pos="0"]:hover .pl { transform: scale(1.05); }
body.pg-home .hm-pods .pc:focus-visible { outline: 3px solid #14A99C; outline-offset: 3px; }
body.pg-home .hm-pods .dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
body.pg-home .hm-pods .dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; background: #C9D7D5; transition: width .4s, background .4s; }
body.pg-home .hm-pods .dots button[aria-current="true"] { width: 28px; background: #14A99C; }
@media (max-width: 767px) {
  body.pg-home .hm-pods .trk { aspect-ratio: 16 / 10; }
  body.pg-home .hm-pods .pc { width: 84%; border-radius: 16px; }
  body.pg-home .hm-pods .pc[data-pos="-1"] { transform: translateX(-50%) translateX(-11%) scale(.88); }
  body.pg-home .hm-pods .pc[data-pos="1"] { transform: translateX(-50%) translateX(11%) scale(.88); }
  body.pg-home .hm-pods .ep { border-radius: 0 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) { body.pg-home .hm-pods .pc { transition: none; } }
body.pg-home .hm-pod { padding-bottom: 0; }
/* ---- homepage rhythm, measured from Figma "Homepage – Desktop 1440" (40010872:42894): ~190 between sections,
   86 from a sheet's edge to its first badge, 100 from a heading block to its component ---- */
body.pg-home { --sec-y: clamp(88px, 13.2vw, 190px); --head-gap: clamp(48px, 6.9vw, 100px); }
body.pg-home .pgx-sheet > .pgx-sec:first-child { padding-top: clamp(56px, 6vw, 86px); }
body.pg-home #how-it-works .pcx-head { margin-bottom: clamp(36px, 3.8vw, 55px); }
body.pg-home .hm-sec:has(.hm-gifb) > .container:first-child .pcx-head { margin-bottom: clamp(32px, 3.5vw, 51px); }
body.pg-home .hm-sol-head { margin-top: clamp(80px, 11.1vw, 160px); }
body.pg-home .pgx-sheet .hm-sec.vtx-fade { padding-bottom: clamp(130px, 12vw, 170px); }
body.pg-home #dashcam-use-cases { padding-top: clamp(88px, 11.5vw, 165px); }
/* stacked rows (below xl): each pop-up card sits under its video, overlapping the bottom edge, so it never covers the next row */
@media (max-width: 1279px) {
  body.pg-home .hm-row .overVideo .hm4w.widgets { position: relative; top: auto; left: auto; right: auto; transform: none; width: max-content; max-width: calc(100% - 24px); margin: -56px 12px 0 auto; overflow: visible; box-shadow: none; }
  body.pg-home .hm-row .overVideo .hm4w.widgets.left { margin: -56px auto 0 12px; }
}
@media (max-width: 640px) { body.pgx #rc4-h { font-size: 22px !important; } }

/* ---- Yard Management: redesigned blocks on the template ---- */
body.pg-yard-management-system .yd-btn { margin-top: 28px; justify-content: flex-start; }
body.pg-yard-management-system .yd-radar { padding-bottom: 0; }
body.pg-yard-management-system .yd-ai { padding-top: var(--sec-y); padding-bottom: clamp(24px, 3vw, 48px); }
body.pg-yard-management-system .yd-cta { margin-top: clamp(40px, 5vw, 56px); justify-content: center; }
/* six benefit cards as a bento (7/5, 5/7, 7/5); media keeps one height per row so titles line up */
@media (min-width: 1280px) {
  body.pg-yard-management-system .yp5 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
  body.pg-yard-management-system .yp5 > article:nth-child(4n+1), body.pg-yard-management-system .yp5 > article:nth-child(4n+4) { grid-column: span 7; }
  body.pg-yard-management-system .yp5 > article:nth-child(4n+2), body.pg-yard-management-system .yp5 > article:nth-child(4n+3) { grid-column: span 5; }
  body.pg-yard-management-system .yp5 .vz { aspect-ratio: auto; height: clamp(240px, 21vw, 290px); }
}

/* dark panels that sit on a white sheet keep light text (the sheet's ink colour must not leak in) */
body.pgx .pgx-sheet [class*="bg-[#001615]"] { color: #fff; }
body.pgx .pgx-sheet [class*="bg-[#001615]"] p { color: #C6D3D1; }

/* step lists: the brand-colour line belongs to the step that is running; a finished step goes back to its grey divider */
body.pgx :is(.rc6-steps, .rc5-list, .rc7-steps) li:not(.on) .pr { width: 0 !important; }

/* home keeps its original, shorter sheet fade (its sections are spaced for it) */
body.pg-home { --melt-z: clamp(340px, 34vw, 560px); --melt-p: clamp(200px, 20vw, 300px); --melt: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 6.0%, #FFFFFF 9.4%, #FFFFFF 12.7%, #FEFEFE 16.1%, #FDFEFE 19.4%, #FBFDFC 22.8%, #F9FCFB 26.1%, #F5FAF9 29.5%, #EFF6F5 32.9%, #E7F1F0 36.2%, #DCEAE9 39.6%, #D0E3E1 42.9%, #BED7D4 46.3%, #ABCAC7 49.6%, #94BBB6 53.0%, #7DAAA4 56.4%, #679891 59.7%, #528780 63.1%, #3F766F 66.4%, #306660 69.8%, #235953 73.1%, #194E48 76.5%, #11423E 79.9%, #0B3834 83.2%, #072E2A 86.6%, #052724 89.9%, #042321 93.3%, #04211F 96.6%, #04211F 100.0%); }
