/* Home page. Shares the product pages' design language: same tokens, header, radii, buttons and card
   treatment. Structure is eight sections; the retired sixteen-section layout and its 5870 lines of
   inline CSS are gone. Interface previews are WebP with a PNG fallback. */


:root {
  --navy: #071323;
  --navy-2: #0c2138;
  --navy-3: #11304c;
  --blue: #2588ff;
  --blue-dark: #126fdd;
  --cyan: #5fd4ff;
  --teal: #42d6a4;
  --canvas: #eef3f8;
  --canvas-2: #f7f9fc;
  --white: #fff;
  --text: #071323;
  --muted: #536274;
  --faint: #7a8797;
  --line: #dbe4ee;
  --line-dark: rgba(255, 255, 255, .14);
  --shadow-hero: 0 32px 80px rgba(0, 0, 0, .32);
  --shadow-float: 0 24px 60px rgba(7, 19, 35, .18);
  --radius-sm: 8px;
  --radius-input: 12px;
  --radius-card: 16px;
  --radius-frame: 24px;
  --shell: 1200px;
  /* Rajdhani is reserved for H1/H2 only; everything else uses Inter for readability. */
  --display: "Rajdhani", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

html[lang="uk"] { --display: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }

[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--canvas); }
body {
  margin: 0;
  padding-top: 76px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--canvas);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

h1, h2 { font-family: var(--display); font-weight: 700; }
h1 { margin: 0; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.035em; }
h2 { margin: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.06; letter-spacing: -.03em; }

.shell { width: min(var(--shell), 100% - 48px); margin-inline: auto; }

/* Accent word in the H1, matching the live home page's violet-to-blue gradient.
   The original #7c3aed only reaches 2.86:1 on the dark hero, below the 3:1 floor for large text, so the
   dark variant uses a lifted pair with the same hue travel (5.98:1 and 6.4:1). */
.accent {
  background: linear-gradient(90deg, var(--accent-from, #7c3aed), var(--accent-to, #2563eb));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}
.on-dark .accent { --accent-from: #a78bfa; --accent-to: #60a5fa; }

/* Header — identical to the product pages, per the navigation contract. */
.site-header {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  height: 76px;
  border-bottom: 1px solid rgba(7, 19, 35, .07);
  background: rgba(250, 252, 255, .84);
  backdrop-filter: blur(18px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { width: 150px; height: 44px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.nav a { color: #2a3646; }
.nav a:hover { color: var(--blue-dark); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.language { display: flex; align-items: center; gap: 4px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 600; }
.language .is-active { color: var(--text); }
.btn {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn-primary { color: #fff; background: var(--blue); box-shadow: 0 14px 34px rgba(37, 136, 255, .3); }
.btn-primary:hover { transform: translateY(-1px); background: var(--blue-dark); }
.btn-ghost { border: 1px solid var(--line-dark); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { border: 1px solid var(--line); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-lg { min-height: 50px; padding-inline: 24px; font-size: 15px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.lead { margin: 18px 0 0; font-size: 17px; line-height: 1.6; }

/* Preview rotator — one wide screen that advances on its own.
   No per-module button rail: the label carries the meaning, the bar carries the timing, and a single
   compact control satisfies WCAG 2.2.2 without spending layout on ten toggles. */
.rotator { position: relative; }
.rotator-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.rotator-label { min-width: 0; }
.rotator-step { display: block; margin-bottom: 6px; color: var(--cyan); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.rotator-title { margin: 0; font-family: var(--display); font-size: clamp(19px, 2vw, 25px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.rotator-copy { margin: 6px 0 0; max-width: 62ch; font-size: 13.5px; line-height: 1.5; white-space: nowrap; }
.rotator-aside { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.rotator-count { margin-right: 2px; font-family: var(--mono); font-size: 11px; }
/* Manual stepping, matching the Duty & Tax showcase controls: nobody should have to wait out a 6s
   timer to see the next module. Arrows, swipe and the left/right keys all advance immediately. */
.rotator-arrow {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: inherit;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.rotator-arrow:hover { border-color: var(--cyan); background: rgba(255, 255, 255, .14); }
.rotator-arrow:active { transform: scale(.94); }
.rotator-arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rotator-frame { touch-action: pan-y; }
.rotator:focus-visible { outline: 3px solid var(--cyan); outline-offset: 6px; border-radius: 4px; }
.rotator-pause {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}
.rotator-pause span { display: block; width: 9px; height: 11px; background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px, currentColor 6px 9px); }
.rotator-pause.is-paused span { width: 0; height: 0; margin-left: 2px; background: none; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; }

.rotator-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-frame);
  background: #0a1c30;
  box-shadow: var(--shadow-hero);
  aspect-ratio: 1438 / 1094;
}
.rotator-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.012);
  transition: opacity .5s ease, transform .7s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .7s;
}
.rotator-slide.is-active { z-index: 1; opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.rotator-slide picture { display: block; width: 100%; height: 100%; }
.rotator-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.rotator-bar { position: absolute; z-index: 3; inset: auto 0 0; height: 3px; background: rgba(255, 255, 255, .16); }
.rotator-bar span { display: block; width: 0; height: 100%; background: var(--cyan); }
.rotator.is-running .rotator-bar span { animation: rotator-progress 6s linear forwards; }
@keyframes rotator-progress { to { width: 100%; } }
.rotator-link { position: absolute; z-index: 3; right: 14px; bottom: 16px; padding: 8px 13px; border-radius: 999px; color: #06203a; background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); }
.rotator-link:hover { background: #fff; }

/* Service catalogue — the ten modules as cards, in the product pages' card language. */
.catalogue { padding: clamp(56px, 7vw, 96px) 0; background: var(--canvas); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .eyebrow { color: var(--blue-dark); }
.section-head .eyebrow::before { background: var(--blue); }
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.catalogue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-2px); border-color: #bcd3ea; box-shadow: var(--shadow-float); }
.service-icon { width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; display: grid; place-items: center; background: #edf5ff; }
.service-icon img { width: 22px; height: 22px; }
.service-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
.service-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.service-more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 7px; color: var(--blue-dark); font-size: 13px; font-weight: 700; }
.service-more::after { content: "\2192"; transition: transform .18s ease; }
.service-card:hover .service-more::after { transform: translateX(3px); }
.service-card.is-live { border-color: #b9d6f5; background: linear-gradient(180deg, #f7fbff, #fff 60%); }
/* Absolute so the badge never pushes the icon and heading down, which would misalign a flagged card
   against its unflagged neighbours in the same row. */
.service-flag { position: absolute; top: 18px; right: 18px; padding: 3px 8px; border-radius: 999px; color: #0f5da8; background: #e3effc; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.concept-note { padding: 22px 0 70px; background: var(--canvas); color: var(--faint); font-size: 12.5px; line-height: 1.6; }

@media (max-width: 1080px) {
  .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav > a { display: none; }
}
@media (max-width: 760px) {
  body { padding-top: 58px; }
  html { scroll-padding-top: 58px; }
  .site-header { height: 58px; }
  .brand img { width: 112px; height: 38px; }
  .shell { width: calc(100% - 32px); }
  .header-actions .btn-primary { display: none; }
  .rotator-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rotator-copy { display: none; }
  /* Keep the complete product interface visible on phones. The source previews already match the
     frame's proportions closely, so fitting them inside the frame avoids cutting off modules. */
  .rotator-frame { aspect-ratio: 1438 / 1094; border-radius: var(--radius-sm); }
  .rotator-slide img { width: 100%; max-width: 100%; object-fit: contain; object-position: center; }
  .rotator-slide--mobile-fill img { object-fit: cover; object-position: center; }
  /* Full-width footer bar instead of a floating pill: on a cropped screenshot a pill lands on top of
     whatever chart happens to be underneath it. */
  .rotator-link { left: 0; right: 0; bottom: 0; padding: 11px 14px; border-radius: 0; text-align: center; background: rgba(255, 255, 255, .95); }
  .catalogue-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}


/* ---- Services disclosure, cookie notice and footer, lifted verbatim from the product stylesheet so
     the navigation contract renders identically on every page. ---- */
.header-cta { min-height: 42px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 680; }
.services-menu { position: relative; }
.services-menu summary { position: relative; display: flex; align-items: center; gap: 7px; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.services-menu summary::-webkit-details-marker { display: none; }
.services-menu summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.services-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.services-popover { position: absolute; top: calc(100% + 22px); left: 50%; width: min(680px, calc(100vw - 40px)); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.service-link { padding: 13px 14px; border-radius: 12px; display: grid; gap: 3px; color: var(--text); }
.service-link:hover, .service-link[aria-current="page"] { background: #edf5ff; }
.service-link strong { font-size: 13px; }
.service-link span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.form-status { display: none; margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 13px; }
/* The product pages put this panel on a dark section; here it sits on white, where the original light
   mint and pink failed at 1.3:1 and left submitters with no readable confirmation. */
.form-status.is-success { display: block; color: #0e7a52; background: #e3f7ec; }
.form-status.is-error { display: block; color: #a4232f; background: #fdecee; }
.form-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px,1px,1px,1px) !important; }
.site-footer { padding: 56px 0 26px; color: rgba(255,255,255,.62); background: #030b14; }
.footer-top { padding-bottom: 34px; display: flex; justify-content: space-between; gap: 40px; }
.footer-brand { max-width: 390px; }
.footer-brand img { width: 140px; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.55; }
.footer-links { display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.cookie-banner { position: fixed; z-index: 60; left: 50%; bottom: 20px; width: min(920px, calc(100% - 32px)); padding: 18px; border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; transform: translateX(-50%); background: #fff; box-shadow: var(--shadow); }
.cookie-title { margin-bottom: 5px; font-size: 17px; }
.cookie-text { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 750; cursor: pointer; }
.cookie-btn-primary { border-color: var(--blue); color: #fff; background: var(--blue); }


/* Lead form. The markup is the live FormSubmit panel, so the styling targets .form-panel and its
   existing field/grid classes rather than a mock-up wrapper. */
.form-panel { padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-frame); background: #fff; box-shadow: var(--shadow-float); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* Long option labels give a select a wide min-content, which stretched the grid past the viewport. */
.form-grid .field, .field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
.form-grid .field { display: grid; gap: 6px; margin: 0; }
.form-grid .field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 46px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-input); color: var(--text); background: var(--canvas-2); font-size: 14px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: #fff; outline: none; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23536274' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.form-actions { margin-top: 18px; }
.form-actions .btn { width: 100%; }


.section { position: relative; padding: clamp(56px, 7vw, 100px) 0; scroll-margin-top: 76px; }
.section-dark { color: #fff; background: linear-gradient(180deg, var(--navy-2), var(--navy)); }
.section-dark .section-head p { color: rgba(255, 255, 255, .66); }
.section-dark .eyebrow { color: #bfe6ff; }
.section-dark .eyebrow::before { background: var(--cyan); }
.section-alt { background: var(--canvas-2); }

/* Business value — bento layout. Six equally weighted cards read as one flat texture with no entry
   point, so the strongest claim gets a lead card carrying a before/after queue and the remaining five
   drop to a lighter tile. Heights of the two columns are matched by content, not by stretching. */
.bento { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.bento-lead { padding: 28px 30px; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius-card); display: flex; flex-direction: column; background: linear-gradient(160deg, #fff 0%, #f4f9ff 100%); }
.bento-lead h3 { margin: 0 0 10px; font-family: var(--display); font-size: clamp(21px, 2vw, 27px); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
.bento-lead > p { margin: 0 0 22px; max-width: 46ch; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.swap { margin-top: 4px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.swap-col { display: grid; gap: 7px; }
.swap-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text); font-size: 13.5px; font-weight: 600; }
.swap-col > small { color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.swap-row { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 8px; background: #fff; font-size: 11.5px; }
.swap-col.manual .swap-row { color: #6b7683; background: #f6f7f9; text-decoration: line-through; text-decoration-color: rgba(107,118,131,.4); }
.swap-col.auto .swap-row { color: #17303f; border-color: #b9dfcb; background: #f4fdf8; font-weight: 550; }
.swap-col.auto .swap-row::before { content: ""; width: 14px; height: 14px; flex: 0 0 14px; border-radius: 50%; background: rgba(14,122,82,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7a52' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 9px no-repeat; }
.swap-arrow { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); box-shadow: 0 8px 18px rgba(37,136,255,.28); font-size: 15px; }
.bento-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.bento-tile { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-input); background: #fff; }
.bento-tile .t-icon { width: 34px; height: 34px; margin-bottom: 14px; border-radius: 10px; display: grid; place-items: center; background: #edf5ff; }
.bento-tile .t-icon img { width: 17px; height: 17px; }
.bento-tile h4 { margin: 0 0 5px; font-size: 14px; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
.bento-tile p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.bento-tile.wide { grid-column: span 2; }

/* Process — five steps, horizontal on desktop and vertical on phones. */
.process-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.process-step { padding: 22px 20px; border: 1px solid var(--line-dark); border-radius: var(--radius-card); background: rgba(255, 255, 255, .045); box-shadow: inset 0 1px rgba(255, 255, 255, .05); }
.process-step .step-n { display: block; margin-bottom: 16px; color: var(--cyan); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.process-step h3 { margin: 0 0 8px; font-size: 15px; font-weight: 650; line-height: 1.25; }
.process-step p { margin: 0; color: rgba(255, 255, 255, .6); font-size: 13px; line-height: 1.5; }

/* Integrations — the connector grid. */
.integration-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.integration-tile { min-height: 96px; padding: 16px 12px; border: 1px solid var(--line); border-radius: var(--radius-input); display: grid; place-items: center; align-content: center; gap: 10px; background: #fff; text-align: center; }
.integration-tile img { width: 26px; height: 26px; }
.integration-tile span { color: var(--muted); font-size: 11.5px; line-height: 1.3; }

/* Why ByLogic — expertise trimmed from six blocks to three; the two that repeated the integrations and
   customs sections are gone. */
/* Each card carries a small live visual built from the same product vocabulary as the interface screens
   instead of a stock illustration: a route chain, an exception queue and a rollout timeline. Rendered in
   markup, so it stays sharp at any density and can hold real labels. */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; background: #fff; }
/* Fixed, not min-height: the three visuals hold different amounts of content, and a min-height would
   leave the headings on different baselines across the row. */
.why-visual { height: 182px; padding: 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 10px; overflow: hidden; background: linear-gradient(180deg, #f8fbff, #eef4fa); }
.why-body { padding: 20px; }
.why-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.why-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* Card 1 — the route chain. */
.wf-chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 4px; }
.wf-node { display: grid; justify-items: center; gap: 8px; text-align: center; }
.wf-dot { position: relative; width: 100%; height: 22px; display: grid; place-items: center; }
.wf-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: #cddff0; }
.wf-node:first-child .wf-dot::before { left: 50%; }
.wf-node:last-child .wf-dot::before { right: 50%; }
.wf-dot i { position: relative; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px rgba(37, 136, 255, .22); }
.wf-node.is-open .wf-dot i { background: #fff; box-shadow: 0 0 0 2px #cddff0; }
.wf-node span { color: #3c4a5b; font-size: 10.5px; font-weight: 600; line-height: 1.25; }
.wf-node small { color: var(--faint); font-family: var(--mono); font-size: 9px; }
.wf-caption { margin-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--faint); font-size: 10px; }

/* Card 2 — the exception queue. */
.wf-queue { display: grid; gap: 7px; }
.wf-row { padding: 9px 10px; border: 1px solid #dde6f0; border-radius: 9px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; background: #fff; }
.wf-row b { overflow: hidden; color: #26313f; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wf-row small { grid-column: 1; color: var(--faint); font-family: var(--mono); font-size: 9px; }
.wf-tag { padding: 2px 6px; border-radius: 999px; font-size: 8.5px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.wf-tag.resolved { color: #0e7a52; background: #e3f7ec; box-shadow: 0 0 0 1px rgba(14, 122, 82, .18) inset; }
.wf-tag.review { color: #925a04; background: #fdf3dd; box-shadow: 0 0 0 1px rgba(146, 90, 4, .2) inset; }
.wf-tag.auto { color: #33459c; background: #e8ebff; box-shadow: 0 0 0 1px rgba(51, 69, 156, .16) inset; }

/* Card 3 — the rollout timeline. */
.wf-timeline { display: grid; gap: 9px; }
.wf-phase { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 10px; }
.wf-phase span { color: var(--faint); font-family: var(--mono); font-size: 9.5px; }
.wf-phase div { height: 22px; padding: 0 9px; border-radius: 6px; display: flex; align-items: center; color: #26313f; background: #dbe8f6; font-size: 10.5px; font-weight: 600; }
.wf-phase:nth-child(1) div { width: 62%; }
.wf-phase:nth-child(2) div { width: 82%; }
.wf-phase:nth-child(3) div { width: 100%; color: #fff; background: linear-gradient(90deg, var(--blue), #4aa3ff); }

/* Demo form. */
.booking-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.booking-list { margin: 26px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.booking-list li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255, 255, 255, .74); font-size: 14px; line-height: 1.5; }
.booking-list li::before { content: ""; width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; border-radius: 50%; background: rgba(95, 212, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fd4ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.booking-form { padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-frame); background: #fff; box-shadow: var(--shadow-float); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { color: var(--muted); font-size: 12px; font-weight: 600; }
.field input, .field textarea { min-height: 46px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-input); color: var(--text); background: var(--canvas-2); font-size: 14px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); background: #fff; outline: none; }
.booking-form .btn { width: 100%; }
.booking-note { margin: 14px 0 0; color: var(--faint); font-size: 12px; line-height: 1.5; }

/* FAQ. */
.faq-list { max-width: 860px; display: grid; gap: 12px; }
.faq-item { padding: 0; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; }
.faq-item summary { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15.5px; font-weight: 650; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--blue); font-size: 20px; font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Anchor targets kept for the global Services menu.
   Removing the service sections would break `#warehouse`, `#delivery`, `#linehaul` and `#automation`,
   which carry six inbound links each from every page's Services popover. The anchors now live on the
   catalogue cards, and :target highlights the one that was requested. */
/* A zero-height marker used where one section answers two Services entries: #integrations owns the
   section id, #automation rides on this span. scroll-margin keeps it clear of the fixed header. */
.anchor-target { display: block; height: 0; scroll-margin-top: 76px; }

/* Anchors live on the cards themselves in the static markup, so hash navigation works natively; this
   only keeps the target clear of the fixed header. */
.service-card { scroll-margin-top: 96px; }
.service-card:target, .service-card.is-targeted { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 136, 255, .16), var(--shadow-float); }

/* Ten modules do not divide by three, so the row is completed by a CTA that spans two columns instead of
   leaving a gap. It is a card so the grid rhythm holds, but reads as an invitation, not a module. */
.catalogue-cta { grid-column: span 2; justify-content: center; border-color: rgba(255, 255, 255, .16); color: #fff; background: linear-gradient(120deg, var(--navy-2), var(--navy)); }
.catalogue-cta h3 { font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.catalogue-cta p { color: rgba(255, 255, 255, .68); }
.catalogue-cta .service-more { color: var(--cyan); }
.catalogue-cta:hover { border-color: var(--cyan); }
.site-footer { padding: 46px 0; color: rgba(255, 255, 255, .5); background: var(--navy); font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer img { width: 132px; }

@media (max-width: 1080px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .integration-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .booking-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .why-grid, .process-grid { grid-template-columns: 1fr; }
  /* span 2 against a single-column grid creates an implicit second column sized to content, which
     pushed the page 19px wider than the viewport at 320px. */
  .catalogue-cta { grid-column: auto; }
  .swap { grid-template-columns: 1fr; gap: 10px; }
  .swap-arrow { transform: rotate(90deg); justify-self: center; }
  .bento-side { grid-template-columns: 1fr; }
  .bento-tile.wide { grid-column: auto; }
  .integration-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-row, .form-grid { grid-template-columns: 1fr; }
  .faq-item summary { padding: 17px 18px; font-size: 14.5px; }
  .faq-item p { padding: 0 18px 18px; }
}
@media (max-width: 380px) {
  .integration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


@media (max-width: 900px) {
  .services-popover { position: fixed; top: 76px; right: 20px; width: min(680px, calc(100vw - 40px)); }
}

@media (max-width: 720px) {
  .header-inner { gap: 14px; }
  .nav { margin-left: auto; }
  .header-cta { display: none; }
  .services-menu summary { height: 38px; min-height: 38px; line-height: 1; }
  .services-popover { position: fixed; top: 64px; left: 10px; right: 10px; width: auto; max-height: calc(100vh - 76px); overflow-y: auto; grid-template-columns: 1fr; transform: none; }
  .language { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0; line-height: 1; }
  .language a, .language-separator { display: none; }
  .language a:not(.is-active) { width: 38px; height: 38px; display: grid; place-items: center; font-size: 12px; }
  .footer-top, .footer-bottom, .cookie-banner { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 14px 18px; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}
@media (min-width: 1001px) {
  .site-footer { padding: 20px 0 12px; }
  .footer-top { padding-bottom: 12px; align-items: center; }
  .footer-brand p { display: none; }
  .footer-brand img { margin-bottom: 0; }
  .footer-bottom { padding-top: 10px; }
}

/* Variant A hero — Return Platform tonality: one dark stage, centred message, rotator at full width. */
.hero {
  padding: clamp(56px, 7vw, 92px) 0 clamp(64px, 8vw, 110px);
  color: #fff;
  background:
    radial-gradient(1200px 520px at 50% -8%, rgba(37, 136, 255, .28), transparent 62%),
    linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 58%, #050f1c 100%);
}
.hero-copy { max-width: 860px; margin: 0 auto; text-align: center; }
.hero-copy .eyebrow { color: #bfe6ff; }
.hero-copy h1 { text-wrap: balance; }
.hero-copy .lead { margin-inline: auto; max-width: 620px; color: rgba(255, 255, 255, .74); }
.hero-actions { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.hero .rotator { margin-top: clamp(34px, 4vw, 54px); }
.hero .rotator-head, .hero .rotator-title, .hero .rotator-pause { color: #fff; }
.hero .rotator-copy { color: rgba(255, 255, 255, .66); }
.hero .rotator-count { color: rgba(255, 255, 255, .5); }
@media (max-width: 760px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
