/* GPS "How it works" sections: dark background to match the banner above each one */
#temperature-monitoring-details{ background:#1C2023; }
#temperature-monitoring-details .section-head h2{ color:#FFFFFF; }
#temperature-monitoring-details .section-head p{ color:#C9C7C0; }
#temperature-monitoring-details .section-head .eyebrow{ color:#F46D16 !important; }
#weight-compare{ background:#1C2023; }
#weight-compare .section-head h2{ color:#FFFFFF; }
#weight-compare .section-head p{ color:#C9C7C0; }
#weight-compare .section-head .eyebrow{ color:#F46D16 !important; }
#eco-driving-details{ background:#1C2023; }
#eco-driving-details .section-head h2{ color:#FFFFFF; }
#eco-driving-details .section-head p{ color:#C9C7C0; }
#eco-driving-details .section-head .eyebrow{ color:#F46D16 !important; }

/* ===== Full-width fixed top bar: pinned to the top edge, spans left to right, page content scrolls underneath ===== */
.raw-header.raw-header.raw-header{ position:fixed !important; top:0 !important; left:0 !important; right:0 !important; width:100% !important; padding:0 !important; z-index:1000 !important; }
.raw-header.raw-header.raw-header .wrap{ max-width:none !important; width:100% !important; margin:0 !important; padding:0 !important; }
.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header .nav-card{
  max-width:none !important; width:100% !important; margin:0 !important;
  border-radius:0 !important; border:0 !important; border-bottom:1px solid rgba(255,255,255,.12) !important;
  background:#4A4540 !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
  box-shadow:0 6px 22px rgba(0,0,0,.45) !important;
}
@media (min-width:901px){
  .raw-header.raw-header.raw-header.raw-header.raw-header.raw-header .nav-card{ padding:12px 32px !important; }
  .raw-header .nav-links{ margin-left:auto; margin-right:clamp(16px,3vw,56px); }
}

/* ===== Scroll behaviour: the full-width bar floats into a rounded bar (same colour) once the page scrolls ===== */
.raw-header.raw-header.raw-header{ transition:padding .35s ease !important; }
.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header .nav-card{ transition:border-radius .35s ease, background-color .35s ease, box-shadow .35s ease, border-color .35s ease, padding .35s ease !important; }
@media (min-width:901px){
  .raw-header.raw-header.raw-header.scrolled{ padding:14px 30px 0 !important; }
  .raw-header.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header.scrolled .nav-card{
    border-radius:20px !important; border:1px solid rgba(255,255,255,.12) !important;
    background:#4A4540 !important; box-shadow:0 14px 40px rgba(0,0,0,.45) !important;
  }
}

/* What-we-do section: same background as footer */
section.section-on-dark.pillars-section{ background:#4A4540 !important; }

section#iot-benefits, section#comment, section#iot-getting-started, section#blog{ background:#4A4540 !important; }

/* IoT networks + WiFi pricing plans: footer background, light text on top */
section#iotp-networks, section#wifi-pricing-plans{ background:#4A4540 !important; }
html body section#iotp-networks .iotp-head h2, html body section#wifi-pricing-plans .section-head h2{ color:#fff !important; }
html body section#iotp-networks .iotp-head p, html body section#wifi-pricing-plans .section-head p{ color:rgba(255,255,255,.78) !important; }
html body section#iotp-networks .iotp-filters label{ color:#fff !important; }
html body section#iotp-networks .iotp-count{ color:rgba(255,255,255,.7) !important; }

/* Nav words stay white in every state (top, scrolled, any page); orange only on hover */
@media (min-width:901px){
.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header .nav-links > a,
.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header .nav-links > a.active,
.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header .nav-links > .nav-drop > .nav-drop-link,
.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header .nav-links > .nav-drop > .nav-drop-link.active,
.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header .nav-links > .nav-drop > .drop-toggle,
.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header .nav-links > .nav-drop .chev{ color:#fff !important; background:transparent !important; }
.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header .nav-links > a:hover,
.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header .nav-links > .nav-drop:hover > .nav-drop-link,
.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header.raw-header .nav-links > .nav-drop:hover .chev{ color:#F46D16 !important; }
}

/* nav arrows: up + down (opposite) */
html body .raw-header .nav-drop .chev{ width:14px !important; height:18px !important; stroke-width:1.8; }
html body .raw-header .nav-drop:hover .chev, html body .raw-header .nav-drop.hover-open .chev{ transform:none !important; }

/* IoT pricing hero: footer background, light heading text */
section#iot-pricing{ background:#4A4540 !important; }
html body section#iot-pricing .iotp-head h2{ color:#fff !important; }
html body section#iot-pricing .iotp-head > p{ color:rgba(255,255,255,.78) !important; }
html body section#iot-pricing .iotp-jump button{ color:#fff !important; border-color:rgba(255,255,255,.55) !important; }

/* GPS pricing: footer background, light heading text */
section#pricing{ background:#4A4540 !important; }
html body section#pricing > .wrap > .section-head h2{ color:#fff !important; }
html body section#pricing > .wrap > .section-head p{ color:rgba(255,255,255,.78) !important; }

html body section#wifi-pricing-plans .pricing-plan-includes h4{ color:#fff !important; }
html body section#wifi-pricing-plans .pricing-plan-includes li{ color:rgba(255,255,255,.88) !important; }
html body section#wifi-pricing-plans .pricing-plan-includes{ border-color:rgba(255,255,255,.25) !important; }

/* remove light strip above the dark pricing sections */
html body .subpage[data-subpage="pricing"] > .subpage-crumb{ background:#4A4540 !important; border:0 !important; box-shadow:none !important; }
html body #pricing-page > .wrap:first-child{ background:#4A4540 !important; }

/* pricing page: text sitting directly on the dark band (volume note + TCO calculator heading) must be light */
html body #pricing-page .gpsp-note{ color:rgba(255,255,255,.88) !important; }
html body #pricing-page .tco-head .eyebrow{ color:#F46D16 !important; }
html body #pricing-page .tco-head h3{ color:#FFFFFF !important; }
html body #pricing-page .tco-head p{ color:rgba(255,255,255,.88) !important; }

/* ===== Mobile polish (header, chat button, content cards, InsurTech banner) ===== */
@media (max-width:900px){
  /* Header: keep the menu button fully inside the screen, never pushed past the right edge */
  html body .raw-header .nav-card{
    padding-left:max(16px, env(safe-area-inset-left)) !important;
    padding-right:max(16px, env(safe-area-inset-right)) !important;
    gap:8px;
  }
  html body .raw-header .nav-cta{ margin-left:auto; flex:0 0 auto; min-width:0; }
  html body .raw-header .nav-toggle{ flex:0 0 auto; margin-right:0; }
  html body .raw-header .brand, html body .raw-header .brand-logo{ flex-shrink:1; min-width:0; }

  /* Feature rows: image cards run the full width of the text column, like the other cards */
  .page-gps .vt-row, .page-gps .vt-row.rev{ align-items:stretch; }
  .page-gps .vt-row .vt-text, .page-gps .vt-row .vt-media{ flex:0 0 auto; width:100%; max-width:100%; }
  .page-gps .vt-row .vt-media img{ width:100%; }
  /* Dashcam + scorecard artwork keeps its own proportions so nothing is cropped */
  .page-gps #dbm-scorecard .vt-media img{ height:auto; aspect-ratio:1658 / 1232; object-fit:cover; }
}

@media (max-width:640px){
  /* Chat button: smaller, tucked into the corner and clear of the browser's bottom bar */
  html body .float-contact.raw-fab-wrap, html body .page-gps .float-contact, html body .page-iot .float-contact, html body .page-wifi .float-contact, html body .page-who .float-contact{
    right:max(12px, env(safe-area-inset-right)); bottom:max(16px, calc(env(safe-area-inset-bottom) + 10px));
  }
  html body #raw-chat-fab.fab{ width:50px; height:50px; border-radius:16px; }
  html body #raw-chat-fab.fab svg{ width:32px; height:32px; }
  .raw-greet{ max-width:calc(100vw - 24px); }
}

@media (max-width:860px){
  /* InsurTech banner: photo on top (nobody cropped), copy and score on a plain dark panel below */
  .page-gps #insurance-cta{ padding:0 0 36px; }
  .page-gps #insurance-cta::after{ content:none; }
  .page-gps #insurance-cta > .wrap{ padding:0; max-width:none; }
  .page-gps .insurance-card{ display:flex; flex-direction:column; align-items:stretch; gap:0; padding:0; }
  .page-gps .insurance-card-img{
    position:relative; inset:auto; width:100%; height:auto; aspect-ratio:3 / 2;
    background-size:cover; background-position:center 45%;
    -webkit-mask-image:linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
    mask-image:linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
  }
  .page-gps .insurance-card-copy{ padding:0 20px; margin-top:-28px; }
  .page-gps .insurance-card-stat{ padding:32px 20px 0; }
  .page-gps .insurance-stat-desc{ color:var(--raw-on-dark); }
}

/* ===== Mobile polish, round 2: key values checklist, slim cookie bar, chat button fade ===== */
@media (max-width:640px){
  /* Key values: tick on the left, sentence on the right (a compact checklist) */
  .page-gps .kv-head{ margin-bottom:22px; }
  .page-gps .kv-grid{ row-gap:18px; }
  .page-gps .kv-item{ display:flex; align-items:flex-start; gap:14px; }
  .page-gps .kv-icon{ width:34px; height:34px; margin-bottom:0; flex:0 0 34px; }
  .page-gps .kv-icon svg{ width:17px; height:17px; }
  .page-gps .kv-item p{ font-size:15.5px; line-height:1.5; max-width:none; margin:0; padding-top:4px; }

  /* Cookie notice: slim bar pinned to the bottom, buttons side by side */
  html body #raw-cookie{
    left:0; right:0; bottom:0; width:auto; max-width:none; border-radius:16px 16px 0 0;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  html body #raw-cookie .rc-title{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; margin:0; }
  html body #raw-cookie p{ margin:0 0 10px; font-size:12.5px; line-height:1.45; }
  html body #raw-cookie .rc-actions{ gap:8px; }
  html body #raw-cookie button{ min-height:40px; padding:0 12px; font-size:13.5px; }
}
@media (max-width:900px){
  .float-contact.raw-fab-wrap{ transition:opacity .25s ease, transform .25s ease; }
  .float-contact.raw-fab-wrap.fab-away{ opacity:0; transform:translateY(18px); pointer-events:none; }
}
@media (prefers-reduced-motion:reduce){ .float-contact.raw-fab-wrap{ transition:none; } }

/* ===== Readability over photos (phones): stronger tag borders, brighter small text ===== */
@media (max-width:860px){
  .page-gps .insurance-card-tags span{ border-color:rgba(255,255,255,.38); color:#FFFFFF; background:rgba(0,0,0,.28); }
  .page-gps .insurance-card-copy p{ color:#FFFFFF; text-shadow:0 1px 6px rgba(0,0,0,.55); }
  .page-gps .insurance-stat-label{ color:#FFFFFF; }
  .page-gps .insurance-stat-desc{ color:rgba(255,255,255,.92); }
}

/* ===== Key values: original dark section, orange ticks ===== */
html body #vt-values .kv-icon svg{ color:#F46D16 !important; }

/* ===== Cold-chain "How it works" cards: illustrated SVGs instead of photos ===== */
.page-gps .icon-card .icon-badge.photo.cc-art-badge{ height:auto !important; aspect-ratio:420 / 240; background:#0e151c; }
.page-gps .icon-card .icon-badge.photo.cc-art-badge svg.cc-art{ width:100% !important; height:100% !important; display:block; }
/* ===== Illustrated SVGs replacing stock photos (hero banners + "How it works" cards) ===== */
.page-gps .topic-visual svg.hero-art,
.page-iot .topic-visual svg.hero-art{ width:100% !important; max-width:none !important; height:100% !important; display:block; }


/* Asset Finance banner: keep the picture on the right so it never sits under the text */
#asset-finance-tracking .topic-strip .topic-visual img.tv-right,
#eco-driving .topic-strip .topic-visual img.tv-right{ position:absolute !important; top:0; right:0; left:auto; width:58% !important; height:100% !important; object-fit:cover; object-position:100% 50%;
  -webkit-mask-image:linear-gradient(to right, transparent 0, #000 26%); mask-image:linear-gradient(to right, transparent 0, #000 26%); }
@media (max-width:900px){ #asset-finance-tracking .topic-strip .topic-visual img.tv-right,
#eco-driving .topic-strip .topic-visual img.tv-right{ width:100% !important; -webkit-mask-image:none; mask-image:none; } }
/* Eco Driving banner: truck pushed well to the right, clear of the headline and copy */
#eco-driving > .wrap.topic-strip{ background:#0b0c0d; }
#eco-driving .topic-strip .topic-visual img.tv-right{ width:50% !important; object-position:100% 50%; }
@media (max-width:900px){ #eco-driving .topic-strip .topic-visual img.tv-right{ width:100% !important; } }
/* Asset Finance Tracking: a plain section (no banner, no picture) */
#asset-finance-tracking.afs-plain{ background:#1C2023; padding:150px 0 80px; }
#asset-finance-tracking.afs-plain .afs-copy{ max-width:1180px; margin:0 auto; display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); gap:72px; align-items:start; }
#asset-finance-tracking.afs-plain .afs-head{ position:relative; padding-right:8px; }
#asset-finance-tracking.afs-plain .afs-body{ border-left:1px solid rgba(255,255,255,.14); padding-left:56px; }
#asset-finance-tracking.afs-plain .eyebrow{ color:#F46D16; }
#asset-finance-tracking.afs-plain h2{ color:#FFFFFF; font-size:clamp(30px,3.2vw,42px); line-height:1.15; margin-top:12px; }
#asset-finance-tracking.afs-plain .afs-copy{ align-items:stretch; }
#asset-finance-tracking.afs-plain .afs-head{ align-self:stretch; display:flex; flex-direction:column; padding:44px 40px 0; border-radius:16px; overflow:hidden; border:1px solid rgba(255,255,255,.10); box-shadow:0 20px 40px -24px rgba(0,0,0,.6); background:#020508; }
/* the picture sits below the text (never behind it), full width, nothing laid over it */
#asset-finance-tracking.afs-plain .afs-head::after{ content:""; display:block; flex:1 1 auto; width:calc(100% + 80px); margin:28px -40px 0; aspect-ratio:1050 / 746; background:url("/images/fleet-operations-cloud.png") center top / contain no-repeat; }
@media (max-width:900px){ #asset-finance-tracking.afs-plain .afs-head{ padding:32px 24px 0; } #asset-finance-tracking.afs-plain .afs-head::after{ width:calc(100% + 48px); margin:24px -24px 0; } }
#asset-finance-tracking.afs-plain p{ color:rgba(255,255,255,.82); font-size:17px; line-height:1.75; margin:0 0 22px; }
#asset-finance-tracking.afs-plain p:last-child{ margin-bottom:0; }
#asset-finance-tracking.afs-plain .afs-body{ display:flex; flex-direction:column; justify-content:center; align-self:stretch; }
#asset-finance-tracking.afs-plain .afs-actions{ display:flex; gap:16px; margin-top:12px; }
#asset-finance-tracking.afs-plain .afs-actions .btn{ flex:1 1 0; justify-content:center; padding:18px 24px; text-align:center; }
@media (max-width:520px){ #asset-finance-tracking.afs-plain .afs-actions{ flex-direction:column; } }
#asset-finance-tracking.afs-plain .afs-btn-outline{ background:transparent; border-color:rgba(255,255,255,.45); color:#FFFFFF; }
#asset-finance-tracking.afs-plain .afs-btn-outline:hover{ background:#F46D16; border-color:#F46D16; color:#1C2023; }
#asset-finance-tracking.afs-plain p a{ color:#F46D16; }
@media (max-width:900px){
  #asset-finance-tracking.afs-plain{ padding:110px 0 48px; }
  #asset-finance-tracking.afs-plain .afs-copy{ grid-template-columns:1fr; gap:24px; padding:0 24px; }
  #asset-finance-tracking.afs-plain .afs-body{ border-left:0; padding-left:0; }
}

/* SIM Management banner: whole console sits on the right, fully visible, clear of the copy */
#sim-management > .wrap.topic-strip{ background:linear-gradient(135deg,#0a0f14 0%,#12202c 100%); }
@media (min-width:901px){
#sim-management .topic-strip .topic-visual{ inset:0 0 0 auto !important; left:auto !important; width:58% !important; display:flex; align-items:center; justify-content:flex-end; padding:84px 40px 28px 0; box-sizing:border-box; }
#sim-management .topic-strip .topic-visual > div{ width:100% !important; height:100% !important; min-height:0 !important; background:transparent !important; box-shadow:none !important; overflow:visible !important; display:flex; justify-content:flex-end; align-items:center; }
#sim-management .topic-strip .topic-visual svg.hero-art{ width:100% !important; height:100% !important; max-height:100%; }
#sim-management .topic-strip .topic-visual svg.hero-art > rect:nth-of-type(-n+3){ display:none; }
}