/* ==========================================================================
   PartsBot — landing page
   --------------------------------------------------------------------------
   Desktop (≥1200px) reproduces the 1774px-wide comps 1:1. Every desktop
   measurement is written in comp pixels and multiplied by --u, so the page
   is pixel-faithful at 1774px and scales proportionally down to 1200px.
   Tablet (760–1199px) and mobile (<760px) reflow the same content.
   Mobile-first: base rules → tablet → desktop composition.
   ========================================================================== */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: "Gantari";
  src: url("../fonts/gantari-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Gantari";
  src: url("../fonts/gantari-latin-ext-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------- tokens */
:root {
  /* one comp pixel (comps are 1774px wide) */
  --u: min(1px, 100vw / 1774);

  /* palette — sampled from the comps */
  --bg: #010204;
  --bg-band: #000609;
  --surface: #0b141c;
  --surface-2: #0e1b25;
  --line: rgb(150 180 210 / 0.14);
  --line-strong: rgb(150 180 210 / 0.24);
  --text: #fff;
  --text-2: #dde3ea;
  --text-3: #9eabb8;
  --blue: #0a80fa;
  --blue-bright: #2d97ff;
  --sky: #1792e6;
  --cyan: #00ccd0;
  --rule: #008acd;
  --card-edge: #0f6fc4;
  --green: #1fcf68;
  --amber: #f0c21e;
  --grad-cta: linear-gradient(180deg, #00a4fd 0%, #0a7dfd 52%, #005bfd 100%);

  --font: "Gantari", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --gutter: 20px;
  --header-h: 64px;
  --section-pad: 76px;
}

/* ----------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, table, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: normal; color: var(--blue); }

:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: #fff; color: #000; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.accent { color: var(--blue); }
.container { width: 100%; max-width: 1774px; margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------ eyebrows */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sky);
}
.eyebrow--hero { color: var(--cyan); font-weight: 500; letter-spacing: 0.08em; font-size: 0.75rem; }

/* ------------------------------------------------------------- buttons */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s, border-color 0.3s;
}
.btn .icon { width: 1.15em; height: 1.15em; stroke-width: 1.6; transition: transform 0.2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary { box-shadow: 0 0 0 1px rgb(90 175 255 / 0.3) inset, 0 8px 26px -8px rgb(0 110 255 / 0.75); }
.btn--primary::before,
.btn--primary::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; transition: opacity 0.35s var(--ease); }
.btn--primary::before { background: var(--grad-cta); }
.btn--primary::after { background: radial-gradient(120% 90% at 50% 110%, rgb(120 200 255 / 0.35), transparent 60%); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgb(140 200 255 / 0.5) inset, 0 12px 32px -8px rgb(0 120 255 / 0.95); }

.btn--outline {
  border-color: var(--blue);
  background: rgb(10 128 250 / 0.03);
  box-shadow: 0 0 22px -8px rgb(10 128 250 / 0.7), inset 0 0 18px -10px rgb(10 128 250 / 0.8);
}
.btn--outline .icon { color: var(--blue); }
.btn--outline:hover { background: rgb(10 128 250 / 0.14); box-shadow: 0 0 30px -6px rgb(10 128 250 / 0.85), inset 0 0 18px -10px rgb(10 128 250 / 0.8); }

/* ============================================================== HEADER */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgb(1 3 6 / 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgb(10 128 250 / 0.6);
}
.site-header.is-open { background: rgb(1 3 6 / 0.97); }
.header-bar {
  display: flex;
  align-items: center;
  height: var(--header-h);
  max-width: 1774px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  transition: height 0.35s var(--ease);
}
.brand img { width: 150px; }

.primary-nav, .header-cta { display: none; }
.primary-nav ul { display: flex; }
.primary-nav a {
  position: relative;
  display: block;
  padding-block: 6px;
  color: #fff;
  transition: color 0.2s;
}
.primary-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="true"]::after { transform: scaleX(1); }

.site-header.is-scrolled .header-cta { border-color: var(--blue); box-shadow: 0 0 20px -8px rgb(10 128 250 / 0.8); }
.site-header.is-scrolled .header-cta::before,
.site-header.is-scrolled .header-cta::after { opacity: 0; }
.site-header.is-scrolled .header-cta .icon { color: var(--blue); }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-left: auto;
  margin-right: -10px;
  border-radius: 10px;
}
.nav-toggle .icon { grid-area: 1 / 1; width: 26px; height: 26px; stroke-width: 1.75; transition: opacity 0.2s, transform 0.3s var(--ease); }
.nav-toggle .icon--close { opacity: 0; transform: rotate(-45deg); }
.site-header.is-open .icon--open { opacity: 0; transform: rotate(45deg); }
.site-header.is-open .icon--close { opacity: 1; transform: none; }

.mobile-menu {
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 4px var(--gutter) 28px;
  border-top: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.25rem;
}
.mobile-menu .btn { width: 100%; margin-top: 24px; height: 52px; }

/* ================================================================ HERO */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 28px);
  overflow: clip;
  background: var(--bg);
}
.hero-inner { display: flex; flex-direction: column; }
.hero-copy { padding-inline: var(--gutter); }
.hero-title {
  margin-top: 14px;
  font-size: clamp(2.5rem, 10.6vw, 3.75rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.hero-lede {
  margin-top: 18px;
  max-width: 40em;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-2);
}
.hero-media { position: relative; margin-top: 4px; }
.hero-media img {
  width: 100%;
  aspect-ratio: 800 / 673;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%);
}
.hero-side { padding: 0 var(--gutter) 64px; }
.hero-claims {
  font-size: clamp(1.25rem, 5.4vw, 1.625rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.01em;
}
.supplier-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 12px;
  align-items: center;
  justify-items: center;
}
.supplier-grid img { width: calc(var(--w) * 0.66px); }

/* ============================================================== MANUAL */
.manual { position: relative; background: var(--bg); overflow: clip; }
.manual-media img {
  width: 100%;
  aspect-ratio: 700 / 477;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.manual-copy { padding: 8px var(--gutter) var(--section-pad); }
.manual-title {
  font-size: clamp(2rem, 8.4vw, 3rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.manual-lede {
  margin-top: 18px;
  max-width: 36em;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-2);
}

/* ======================================================== HOW IT WORKS */
.how {
  position: relative;
  padding: 56px var(--gutter) var(--section-pad);
  background: var(--bg-band);
}
.how-rule {
  position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, var(--rule) calc(50% - 98px), transparent calc(50% - 98px), transparent calc(50% + 98px), var(--rule) calc(50% + 98px));
}
.eyebrow--rule {
  position: absolute; left: 50%; top: 1px;
  transform: translate(-50%, -50%);
  padding-left: 0.25em; /* balance trailing letter-spacing */
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  white-space: nowrap;
}
.how-title {
  text-align: center;
  font-size: clamp(2rem, 8.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.005em;
}

.steps {
  display: grid;
  gap: 48px 24px;
  max-width: 560px;
  margin: 48px auto 0;
}
.step { position: relative; }
.step-card {
  position: relative;
  aspect-ratio: 396 / 204;
  border: 1.5px solid var(--card-edge);
  border-radius: 6px;
  background: #01111c;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.4), 0 14px 40px -18px rgb(0 120 255 / 0.45);
}
.step-num {
  position: absolute; z-index: 2;
  left: -6px; top: -18px;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2f9bff, #0a7ff8 55%, #0566e0);
  box-shadow: 0 0 0 4px var(--bg-band), 0 0 18px rgb(10 128 250 / 0.55);
  font-size: 1.5rem; font-weight: 700; line-height: 1;
  color: #fff;
}
.step-card--photo picture, .step-card--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.step-title {
  margin-top: 16px;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.step-text {
  margin-top: 4px;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-2);
}

/* step 2 — DMS mock (all sizes in container-relative em) */
.step-card--dms, .step-card--build, .step-card--quote { container-type: inline-size; overflow: hidden; }
.dms {
  display: grid;
  grid-template-columns: 34.5% 1fr;
  height: 100%;
  font-family: var(--font-ui);
  font-size: 3.8cqi;
}
.dms-nav {
  padding: 2.1em 0.45em 0;
  background: linear-gradient(180deg, #0c1a24, #0a1620);
  border-right: 1px solid rgb(255 255 255 / 0.04);
}
.dms-nav li {
  display: flex; align-items: center; gap: 0.55em;
  height: 2.12em;
  padding: 0 0.5em;
  border-radius: 0.4em;
  color: #c9d3dc;
  white-space: nowrap;
}
.dms-nav li.is-active { background: rgb(255 255 255 / 0.08); color: #fff; }
.dms-nav .icon { width: 1.05em; height: 1.05em; stroke-width: 1.7; opacity: 0.75; }
.dms-main {
  position: relative;
  display: grid; place-items: center;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.035) 0 11%, transparent 11%),
    radial-gradient(60% 55% at 45% 52%, rgb(10 128 250 / 0.14), transparent 70%);
}
.dms-button {
  position: relative;
  left: -6%;
  padding: 0.7em 1.35em;
  border-radius: 0.5em;
  background: linear-gradient(180deg, #2a9bff, #0a76f2);
  box-shadow: 0 0 0 1px rgb(160 215 255 / 0.55) inset, 0 0 1.6em rgb(20 135 255 / 0.85), 0 0 3.4em rgb(20 135 255 / 0.4);
  font-family: var(--font);
  font-size: 1.55em;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
}
.dms-cursor {
  position: absolute;
  left: 58%; top: 55%;
  width: 2.6em; height: auto;
  fill: #08121a; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.6));
}

/* step 3 — line items */
.build-list {
  display: grid; gap: 2.1cqi;
  height: 100%;
  padding: 8.4cqi 2.4cqi 3cqi;
  font-family: var(--font-ui);
  font-size: 4.6cqi;
}
.build-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 0.95em;
  border-radius: 0.38em;
  background: var(--surface-2);
  color: #fff;
  white-space: nowrap;
}
.build-list li span:last-child { display: inline-flex; align-items: center; gap: 0.6em; font-variant-numeric: tabular-nums; }
.build-check { width: 1.4em; height: 1.4em; color: var(--green); margin-right: -0.3em; }

/* step 4 — customer estimate */
.step-card--quote { background: #f7fafd; border-color: #4a98ea; }
.quote {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 3.95cqi;
  color: #10161c;
}
.quote caption {
  padding: 3.3cqi 0 1.3cqi max(15.5cqi, 50px);
  text-align: left;
  font-size: 1.24em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.quote th, .quote td { padding: 0.21em 0.5em; line-height: 1.12; white-space: nowrap; }
.quote th:first-child, .quote td:first-child { padding-left: 1.3em; text-align: left; }
.quote th:nth-child(2), .quote td:nth-child(2) { text-align: center; }
.quote th:last-child, .quote td:last-child { padding-right: 1.3em; text-align: right; font-variant-numeric: tabular-nums; }
.quote thead th { font-weight: 700; }
.quote thead tr { background: #edf1f5; }
.quote tbody tr { border-bottom: 1px solid #e3e8ee; }
.quote tfoot th, .quote tfoot td { font-weight: 800; background: #f0f3f6; }
.quote thead tr, .quote tbody tr, .quote tfoot tr { box-shadow: inset 0.8em 0 0 #f7fafd, inset -0.8em 0 0 #f7fafd; }

/* ========================================================== SECTIONS */
.section { position: relative; padding-block: var(--section-pad); overflow: clip; }
.section-title {
  margin-top: 12px;
  font-size: clamp(2rem, 8.4vw, 3rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.section-lede {
  margin-top: 18px;
  max-width: 40em;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-2);
}

/* ------------------------------------------------------------ benefits */
.benefit-grid { margin-top: 36px; display: grid; }
.benefit {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.benefit-icon { width: 52px; height: 52px; color: var(--blue); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3, .role h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.benefit p, .role p { margin-top: 6px; font-size: 1.0625rem; font-weight: 300; line-height: 1.5; color: var(--text-2); }

/* -------------------------------------------------------- integrations */
.integration-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.integration {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  min-height: 132px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #0d1821, #0a1219);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.03);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.integration:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04), 0 16px 34px -20px rgb(10 128 250 / 0.6); }
.integration-brand {
  display: flex; align-items: center; justify-content: center; gap: 0.4em;
  font-size: 1.5rem; font-weight: 600; line-height: 1;
  white-space: nowrap;
}
.integration-brand .mark { width: 1.6em; height: 1.2em; color: #fff; fill: currentColor; stroke: none; }
.brand-cdk { font-weight: 400; font-size: 1.5rem; gap: 0.3em; }
.brand-cdk strong { font-size: 1.45em; font-weight: 700; letter-spacing: 0.01em; }
.brand-xtime { font-size: 2.1rem; font-weight: 300; letter-spacing: 0.01em; }
.brand-mykaarma { font-weight: 700; }
.brand-mykaarma .mark { width: 1.25em; height: 1.25em; }
.brand-generic { font-size: 1.125rem; font-weight: 600; }
.brand-generic .mark { width: 1.75em; height: 1.75em; }
.status {
  display: flex; align-items: center; gap: 0.5em;
  font-size: 1.0625rem; font-weight: 500;
}
.status .icon { width: 1.35em; height: 1.35em; }
.status--live .icon { color: var(--green); }
.status--progress { color: var(--amber); }
.status--progress .icon { stroke-width: 2.2; }

.supplier-strip {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 16px;
  align-items: center;
  justify-items: center;
}
.supplier-strip img {
  width: calc(var(--w) * 0.56px);
  filter: grayscale(1) brightness(2.3) contrast(1.05);
  opacity: 0.78;
  transition: filter 0.35s, opacity 0.35s;
}
.supplier-strip li:hover img { filter: none; opacity: 1; }

/* ----------------------------------------------------------- customers */
.customers-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 70% 50%;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.customers { padding-top: 0; }
.customers .container { margin-top: -12px; position: relative; }
.role-list { margin-top: 32px; display: grid; gap: 4px; }
.role { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 16px 0; }
.role-icon { width: 44px; height: 44px; color: var(--blue); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------- about */
.about { padding-top: 24px; padding-bottom: 56px; }
.about-media {
  position: relative;
  width: 64%; max-width: 300px;
  margin: 0 auto -28%;
  pointer-events: none;
}
.about-media img {
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 82%), linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 45%, transparent 82%), linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-composite: intersect;
}
.about .container { position: relative; }
.about .section-title { max-width: 11em; }
.about-copy { margin-top: 20px; display: grid; gap: 14px; max-width: 36em; }
.about-copy p { font-size: 1.0625rem; font-weight: 300; line-height: 1.55; color: var(--text-2); }
.about-cta { margin-top: 28px; height: 56px; padding: 0 26px; font-size: 1.125rem; font-weight: 600; border-radius: 14px; gap: 0.9em; }
.contact-row { margin-top: 48px; display: grid; gap: 22px; }
.contact-row li { display: flex; align-items: center; gap: 14px; font-size: 1.0625rem; font-weight: 300; color: var(--text-2); }
.contact-row .icon { width: 28px; height: 28px; stroke-width: 1.5; color: #fff; }
.contact-row a { transition: color 0.2s; }
.contact-row a:hover { color: var(--blue-bright); }

/* -------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 22px; padding-block: 36px 44px; }
.brand--footer img { width: 140px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.9375rem; color: var(--text-2); }
.footer-nav a:hover { color: #fff; }
.footer-legal { font-size: 0.875rem; color: var(--text-3); }

/* ===================================================== DEMO BOOKING */
/* CTA while Calendly's widget is being fetched */
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] .icon { animation: busy-nudge 0.7s ease-in-out infinite; }
@keyframes busy-nudge { 50% { transform: translateX(5px); } }

/* Calendly popup (widget.css is injected later, so these use an html prefix to win) */
html .calendly-overlay {
  background: rgb(1 3 6 / 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
html .calendly-overlay .calendly-popup {
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgb(10 128 250 / 0.35), 0 30px 80px -20px rgb(0 0 0 / 0.85), 0 0 70px -24px rgb(10 128 250 / 0.6);
}
html .calendly-overlay .calendly-popup-close { border-radius: 4px; }
html .calendly-overlay .calendly-popup-close:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 6px; }
@media (max-width: 975px) {
  /* Calendly caps the sheet at 700px with !important, leaving a gap on tall phones */
  html .calendly-overlay .calendly-popup { border-radius: 16px 16px 0 0; max-height: none !important; }
}

/* ========================================================= ANIMATION */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* step 2: cursor glides in and presses the button */
.js .step-card--dms .dms-cursor { opacity: 0; transform: translate(70%, 60%); }
.js .step.is-visible .dms-cursor { animation: cursor-in 1.2s 0.5s var(--ease) forwards; }
.js .step.is-visible .dms-button { animation: press 0.5s 1.55s var(--ease), glow 3.2s 2.2s ease-in-out infinite; }
@keyframes cursor-in { to { opacity: 1; transform: none; } }
@keyframes press { 40% { transform: scale(0.95); filter: brightness(1.25); } }
@keyframes glow { 50% { box-shadow: 0 0 0 1px rgb(160 215 255 / 0.7) inset, 0 0 2.2em rgb(20 135 255 / 1), 0 0 4.6em rgb(20 135 255 / 0.55); } }

/* step 3: rows populate one by one, then the check pops */
.js .build-list li { opacity: 0; transform: translateX(-8px); }
.js .step.is-visible .build-list li { animation: row-in 0.5s var(--ease) forwards; }
.js .step.is-visible .build-list li:nth-child(1) { animation-delay: 0.45s; }
.js .step.is-visible .build-list li:nth-child(2) { animation-delay: 0.7s; }
.js .step.is-visible .build-list li:nth-child(3) { animation-delay: 0.95s; }
.js .step.is-visible .build-list li:nth-child(4) { animation-delay: 1.2s; }
.js .build-check { transform: scale(0); }
.js .step.is-visible .build-check { animation: pop 0.45s 1.75s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
@keyframes row-in { to { opacity: 1; transform: none; } }
@keyframes pop { to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .build-list li, .js .build-check, .js .step-card--dms .dms-cursor { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js .dms-button { animation: none !important; }
  .btn[aria-busy="true"] .icon { animation: none; opacity: 0.4; }
}

/* ===================================================== TABLET ≥760px */
@media (min-width: 760px) {
  :root { --gutter: 40px; --header-h: 72px; --section-pad: 104px; }

  .brand img { width: 170px; }

  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-inner {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    grid-template-areas: "copy media" "side side";
    column-gap: 8px;
  }
  .hero-copy { grid-area: copy; align-self: center; padding-right: 0; }
  .hero-title { font-size: clamp(2.75rem, 5.6vw, 4rem); }
  .hero-media { grid-area: media; margin: 0 calc(var(--gutter) * -1) 0 0; align-self: center; }
  .hero-media img {
    -webkit-mask-image: radial-gradient(75% 70% at 55% 55%, #000 55%, transparent 100%);
    mask-image: radial-gradient(75% 70% at 55% 55%, #000 55%, transparent 100%);
  }
  .hero-side { grid-area: side; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 32px; padding-bottom: 96px; }
  .hero-claims { font-size: clamp(1.25rem, 2.6vw, 1.75rem); }
  .supplier-grid { margin-top: 0; }
  .supplier-grid img { width: calc(var(--w) * 0.7px); }

  .manual-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .manual-media img {
    aspect-ratio: 700 / 560;
    -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent);
    mask-image: linear-gradient(90deg, #000 70%, transparent);
  }
  .manual-copy { padding: 40px var(--gutter) 40px 24px; }

  .how { padding-top: 72px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; gap: 56px 32px; margin-top: 56px; }

  .benefit-grid { grid-template-columns: 1fr 1fr; margin-top: 52px; }
  .benefit { padding: 34px 28px 34px 0; }
  .benefit:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }

  .integration-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
  .supplier-strip { grid-template-columns: repeat(6, 1fr); margin-top: 56px; }

  .customers { padding-top: var(--section-pad); }
  .customers-media { position: absolute; inset: 0 0 0 auto; width: 52%; }
  .customers-media img {
    height: 100%; aspect-ratio: auto;
    object-position: 72% 40%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 55%), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    mask-composite: intersect;
    opacity: 0.85;
  }
  .customers .container { margin-top: 0; }
  .customers .section-title, .role-list { max-width: min(560px, 56%); }

  .about { padding-top: var(--section-pad); }
  .about-media { position: absolute; right: 0; top: 40px; margin: 0; width: 36vw; max-width: 380px; }
  .about-media img {
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent), linear-gradient(90deg, transparent, #000 30%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, #000 60%, transparent), linear-gradient(90deg, transparent, #000 30%);
    mask-composite: intersect;
    opacity: 0.9;
  }
  .about .section-title, .about-copy { max-width: min(36em, 60%); }
  .contact-row { grid-template-columns: repeat(3, auto); justify-content: start; gap: 48px; }

  .footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-nav { justify-content: flex-end; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ====================================== FULL NAV ≥1024px (pre-desktop) */
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .nav-toggle, .mobile-menu { display: none !important; }
  .primary-nav { display: block; margin-left: 52px; }
  .primary-nav ul { gap: 30px; }
  .primary-nav a { font-size: 15px; }
  .header-cta { display: inline-flex; margin-left: auto; height: 46px; font-size: 15px; padding: 0 18px; }
  .brand img { width: 184px; }

  .integration-grid { grid-template-columns: repeat(3, 1fr); }
  .supplier-strip { display: flex; justify-content: space-between; gap: 16px; }
  .supplier-strip img { width: calc(var(--w) * 0.5px); }
}

/* ======================================== DESKTOP COMPOSITION ≥1200px */
@media (min-width: 1200px) {
  :root {
    --gutter: calc(94 * var(--u));
    --header-h: calc(105 * var(--u));
    --section-pad: calc(130 * var(--u));
  }
  .line { display: block; }
  .eyebrow { font-size: calc(19 * var(--u)); letter-spacing: 0.3em; }

  /* header — comp: logo x88, links x501 / gap 53, CTA 254×67 at x1457 */
  .header-bar { padding: 0 calc(63 * var(--u)) 0 calc(88 * var(--u)); }
  .site-header.is-scrolled .header-bar { height: calc(84 * var(--u)); }
  .brand img { width: calc(291 * var(--u)); }
  .primary-nav { margin-left: calc(122 * var(--u)); }
  .primary-nav ul { gap: calc(53 * var(--u)); }
  .primary-nav a { font-size: calc(21 * var(--u)); top: calc(-2 * var(--u)); }
  .header-cta {
    height: calc(67 * var(--u));
    padding: 0 calc(28 * var(--u));
    border-radius: calc(17 * var(--u));
    font-size: calc(22.5 * var(--u));
    gap: calc(6 * var(--u));
  }
  .header-cta .icon { width: 0.95em; height: 0.95em; }
  .site-header.is-scrolled .header-cta { height: calc(58 * var(--u)); }

  /* hero — absolute composition over the clean plate */
  .hero { height: calc(887 * var(--u)); padding: 0; }
  .hero-inner { position: relative; display: block; height: 100%; max-width: 1774px; margin-inline: auto; }
  .hero-media { position: absolute; inset: 0; margin: 0; }
  .hero-media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; -webkit-mask-image: none; mask-image: none; }
  .hero-copy, .hero-claims, .supplier-grid { position: absolute; z-index: 1; }
  .hero-copy { left: calc(94 * var(--u)); top: calc(154 * var(--u)); width: calc(720 * var(--u)); padding: 0; }
  .eyebrow--hero { font-size: calc(22.5 * var(--u)); line-height: 1; letter-spacing: 0.06em; }
  .hero-title {
    margin-top: calc(9 * var(--u));
    font-size: calc(89.8 * var(--u));
    line-height: calc(74 * var(--u));
    letter-spacing: -0.03em;
  }
  .hero-lede {
    margin-top: calc(6.7 * var(--u));
    width: calc(700 * var(--u));
    max-width: none;
    font-size: calc(25.4 * var(--u));
    line-height: calc(33.6 * var(--u));
    color: #fff;
  }
  .hero-side { display: contents; }
  .hero-claims {
    left: calc(1110 * var(--u)); top: calc(124.4 * var(--u));
    font-size: calc(35.2 * var(--u));
    line-height: calc(36.7 * var(--u));
    letter-spacing: 0.005em;
    white-space: nowrap;
  }
  .supplier-grid {
    left: calc(1222 * var(--u)); top: calc(433 * var(--u));
    margin: 0;
    grid-template-columns: repeat(6, calc(86 * var(--u)));
    grid-auto-rows: calc(72 * var(--u));
    gap: 0;
  }
  .supplier-grid li { grid-column: span 2; }
  .supplier-grid li:nth-child(13) { grid-column: 1 / 4; justify-self: end; margin-right: calc(15 * var(--u)); }
  .supplier-grid li:nth-child(14) { grid-column: 4 / 7; justify-self: start; margin-left: calc(34 * var(--u)); }
  .supplier-grid img { width: calc(var(--w) * var(--u)); }

  /* manual — comp: 1774×477 plate, copy at x1002 */
  .manual { height: calc(477 * var(--u)); }
  .manual-inner { position: relative; display: block; height: 100%; max-width: 1774px; margin-inline: auto; }
  .manual-media { position: absolute; inset: 0; }
  .manual-media img { height: 100%; aspect-ratio: auto; -webkit-mask-image: none; mask-image: none; }
  .manual-copy { position: absolute; left: calc(1001 * var(--u)); top: calc(113 * var(--u)); width: calc(740 * var(--u)); padding: 0; }
  .manual-title { font-size: calc(64.4 * var(--u)); line-height: calc(61 * var(--u)); letter-spacing: 0; }
  .manual-lede {
    margin-top: calc(21.9 * var(--u));
    max-width: none;
    font-size: calc(26.9 * var(--u));
    line-height: calc(33.3 * var(--u));
    color: #fff;
  }

  /* how it works — comp: band y477–887, cards 396×204 at y550 */
  .how { padding: calc(12 * var(--u)) 0 calc(48 * var(--u)); }
  .how-rule {
    height: calc(2 * var(--u));
    background: linear-gradient(90deg, var(--rule) calc(50% - 116 * var(--u)), transparent calc(50% - 116 * var(--u)), transparent calc(50% + 104 * var(--u)), var(--rule) calc(50% + 104 * var(--u)));
  }
  .eyebrow--rule { top: calc(3.5 * var(--u)); font-size: calc(18 * var(--u)); letter-spacing: 0.25em; margin-left: calc(-6 * var(--u)); }
  .how-title { font-size: calc(54 * var(--u)); line-height: 1; letter-spacing: 0.007em; }
  .steps {
    max-width: none;
    margin: calc(6.8 * var(--u)) calc(48 * var(--u)) 0 calc(36 * var(--u));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 calc(36 * var(--u));
  }
  .step-card { border-width: calc(1.6 * var(--u)); border-radius: calc(6 * var(--u)); }
  .step-num {
    left: calc(-2 * var(--u)); top: calc(-19 * var(--u));
    width: calc(56 * var(--u)); height: calc(56 * var(--u));
    font-size: calc(30 * var(--u));
    box-shadow: 0 0 0 calc(4 * var(--u)) var(--bg-band), 0 0 calc(22 * var(--u)) rgb(10 128 250 / 0.55);
  }
  .step-title {
    margin-top: calc(8.6 * var(--u));
    font-size: calc(24 * var(--u));
    line-height: calc(26 * var(--u));
    letter-spacing: 0.03em;
    padding-left: calc(10 * var(--u));
  }
  .step .line { white-space: nowrap; }
  .step-text {
    margin-top: 0;
    padding-left: calc(10 * var(--u));
    font-size: calc(22.5 * var(--u));
    line-height: calc(26 * var(--u));
  }

  /* sections from the Bottomlanding comp, on the same type scale */
  .section-title { margin-top: calc(22 * var(--u)); font-size: calc(64 * var(--u)); line-height: calc(66 * var(--u)); }
  .section-lede { margin-top: calc(30 * var(--u)); max-width: calc(1180 * var(--u)); font-size: calc(26 * var(--u)); line-height: 1.45; }

  .benefit-grid { margin-top: calc(84 * var(--u)); }
  .benefit {
    grid-template-columns: calc(100 * var(--u)) 1fr;
    gap: calc(44 * var(--u));
    align-items: start;
    padding: calc(62 * var(--u)) calc(60 * var(--u)) calc(62 * var(--u)) calc(40 * var(--u));
    border-top: 0;
  }
  .benefit:nth-child(-n + 2) { border-bottom: 1px solid var(--line-strong); }
  .benefit:nth-child(even) { padding-left: calc(84 * var(--u)); border-left: 1px solid var(--line-strong); }
  .benefit-icon { width: calc(100 * var(--u)); height: calc(100 * var(--u)); stroke-width: 1.5; }
  .benefit h3, .role h3 { font-size: calc(34 * var(--u)); }
  .benefit p, .role p { margin-top: calc(12 * var(--u)); font-size: calc(25 * var(--u)); max-width: calc(480 * var(--u)); }
  .role p { max-width: calc(800 * var(--u)); }

  .integration-grid { margin-top: calc(64 * var(--u)); gap: calc(32 * var(--u)); }
  .integration {
    min-height: calc(250 * var(--u));
    gap: calc(30 * var(--u));
    padding: calc(40 * var(--u));
    border-radius: calc(22 * var(--u));
  }
  .integration-brand { font-size: calc(42 * var(--u)); }
  .brand-cdk { font-size: calc(42 * var(--u)); }
  .brand-xtime { font-size: calc(62 * var(--u)); }
  .brand-generic { font-size: calc(32 * var(--u)); }
  .status { font-size: calc(28 * var(--u)); }
  .supplier-strip { margin-top: calc(110 * var(--u)); gap: calc(24 * var(--u)); }
  .supplier-strip img { width: calc(var(--w) * 0.74 * var(--u)); }

  .customers { padding-block: calc(130 * var(--u)) calc(150 * var(--u)); }
  .customers-media { width: 49%; max-width: calc(880 * var(--u)); right: max(0px, (100% - 1774px) / 2); }
  .customers-media img { object-position: 60% 45%; }
  .customers .section-title { max-width: none; }
  .role-list { margin-top: calc(70 * var(--u)); max-width: calc(940 * var(--u)); gap: calc(14 * var(--u)); }
  .role { grid-template-columns: calc(76 * var(--u)) 1fr; gap: calc(40 * var(--u)); padding: calc(24 * var(--u)) 0; }
  .role-icon { width: calc(76 * var(--u)); height: calc(76 * var(--u)); stroke-width: 1.5; }
  .role h3 { font-size: calc(32 * var(--u)); }

  .about { padding-block: calc(130 * var(--u)) calc(120 * var(--u)); }
  .about-media { top: calc(60 * var(--u)); right: max(0px, (100% - 1774px) / 2); width: calc(640 * var(--u)); max-width: none; }
  .about .section-title { max-width: none; }
  .about-copy { margin-top: calc(34 * var(--u)); gap: calc(22 * var(--u)); max-width: calc(1080 * var(--u)); }
  .about-copy p { font-size: calc(26 * var(--u)); line-height: 1.5; }
  .about-cta {
    margin-top: calc(56 * var(--u));
    height: calc(84 * var(--u));
    padding: 0 calc(44 * var(--u));
    border-radius: calc(18 * var(--u));
    font-size: calc(28 * var(--u));
    gap: calc(26 * var(--u));
  }
  .contact-row { margin-top: calc(130 * var(--u)); grid-template-columns: repeat(3, 1fr); gap: calc(40 * var(--u)); }
  .contact-row li { flex-direction: column; align-items: flex-start; gap: calc(22 * var(--u)); font-size: calc(26 * var(--u)); }
  .contact-row .icon { width: calc(52 * var(--u)); height: calc(52 * var(--u)); stroke-width: 1.4; }

  .footer-inner { padding-block: calc(52 * var(--u)) calc(60 * var(--u)); gap: calc(24 * var(--u)); }
  .brand--footer img { width: calc(200 * var(--u)); }
  .footer-nav { gap: calc(44 * var(--u)); font-size: calc(19 * var(--u)); }
  .footer-legal { font-size: calc(17 * var(--u)); }
}

/* ============================== ULTRA-WIDE ≥1775px: keep plates centred */
@media (min-width: 1775px) {
  .hero-media img, .manual-media img {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }
}
