/* ==========================================================================
   Digital Crafters — main stylesheet
   Sections: tokens · base · layout · buttons · header · hero · logos ·
   connect · platforms · stack builder · services · AI · cases ·
   testimonials · why/process · pricing · FAQ · contact · footer ·
   animations · responsive
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #f7f6f2;
  --white: #ffffff;
  --ink: #0b1426;
  --ink-soft: #1d2638;
  --text: #4a5263;
  --muted: #6b7385;
  --line: #e7e4dd;
  --line-strong: #d9d5cc;

  --blue: #0a5fb4;
  --blue-dark: #084e94;
  --sky: #4da3ff;
  --sky-soft: #8fc3ff;

  --navy: #0b1426;
  --navy-2: #131f38;
  --navy-3: #1a2745;
  --navy-line: #263452;
  --navy-text: #a9b3c7;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(11, 20, 38, .04);
  --shadow: 0 10px 30px -12px rgba(11, 20, 38, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 20, 38, .35);

  --container: 1176px;
  --gutter: 24px;
  --header-h: 76px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure, blockquote { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--white); }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--xs { width: 13px; height: 13px; }

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--blue);
}
.section--dark .serif,
.contact .serif { color: var(--sky); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 120px; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--navy); color: var(--navy-text); }
.section--dark h2,
.section--dark h3 { color: var(--white); }

.eyebrow {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--light { color: var(--sky); }
.eyebrow--muted { margin: 0; color: var(--navy-text); }
.eyebrow--white { color: rgba(255, 255, 255, .85); }

.h2 {
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.h2 .serif { font-size: 1.08em; }

.h3 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.045em;
}

.section-head { margin-bottom: 56px; }
.section-head--split {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 48px;
  align-items: end;
}
.section-head--split .h2 { max-width: 720px; }
.section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.section-head__aside { max-width: 360px; justify-self: end; font-size: 16px; }
.section--dark .section-head__aside { color: var(--navy-text); }

.card-grid { display: grid; gap: 18px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-align: center;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--lg { min-height: 58px; padding: 16px 26px; font-size: 17px; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); box-shadow: 0 12px 24px -10px rgba(10, 95, 180, .6); }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #1c2742; color: var(--white); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.hero .btn--outline { border-color: var(--line-strong); background: var(--white); }
.btn--outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.btn--sky { background: var(--sky); color: var(--ink); font-size: 15px; }
.btn--sky:hover { background: var(--sky-soft); color: var(--ink); }

.btn--ghost-light { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn--ghost-light:hover { color: var(--ink); background: var(--white); border-color: var(--white); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}
.link-arrow::after {
  content: "→";
  transition: transform .25s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--light { color: var(--white); }
.link-arrow--light:hover { color: var(--white); }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.pill--sky { background: var(--sky); color: var(--ink); }

/* App icon squares (SH, ZC …) */
.app-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}
.app-icon--white { background: var(--white); color: var(--ink); }
.app-icon--blue { background: var(--blue); color: var(--white); }
.app-icon--yellow { background: #f4b740; color: var(--ink); }
.app-icon--green { background: #e3f3d8; color: #2c5f12; }
.app-icon--purple { background: #efe5fb; color: #6b2fb3; }
.app-icon--slate { background: #e5edf6; color: #1d4e85; }
.app-icon--red { background: #fde7e3; color: #b0341c; }
.app-icon--amber { background: #fdf1d0; color: #8a6200; }
.app-icon--teal { background: #def3ee; color: #136b57; }
.app-icon--orange { background: #ffe6da; color: #c2410c; }

/* Checklist */
.checklist { display: grid; gap: 12px; margin-bottom: 40px; }
.checklist li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 6px;
  width: 15px; height: 8px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.checklist--light li { color: var(--white); font-weight: 500; }
.checklist--light li::before { border-color: var(--sky); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
/* blur lives on a pseudo-element so it doesn't trap the fixed mobile menu */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 246, 242, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: background-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(11, 20, 38, .25); }
.site-header.is-scrolled::before { background: rgba(247, 246, 242, .96); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.site-header.is-scrolled .site-header__inner { height: 64px; }

.logo img { width: 120px; height: auto; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav__list { display: flex; align-items: center; gap: 2px; }
.nav-item { display: flex; align-items: center; }
.nav-link {
  position: relative;
  display: block;
  padding: 8px 12px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.has-mega .nav-link { padding-right: 4px; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.has-mega .nav-link::after { right: 4px; }
.nav-link:hover::after,
.nav-link[aria-current]::after { transform: scaleX(1); }
.nav-link:hover { color: var(--ink); }

.nav-caret {
  display: grid;
  place-items: center;
  width: 26px; height: 32px;
  margin-right: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  transition: transform .3s var(--ease), color .2s;
}
.nav-caret .icon { stroke-width: 2.2; }
.has-mega:hover .nav-caret,
.has-mega.is-open .nav-caret { color: var(--ink); transform: rotate(180deg); }

/* Mega menu panel */
.mega {
  position: absolute;
  left: 0; right: 0; top: 100%;
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 30px 50px -30px rgba(11, 20, 38, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega,
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.mega__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.mega__title {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mega__col ul { display: grid; gap: 2px; }
.mega__col a {
  display: block;
  margin-left: -10px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color .2s, color .2s;
}
.mega__col a:hover { background: var(--bg); color: var(--blue); }
.mega__feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--navy-text);
  transition: transform .3s var(--ease);
}
.mega__feature:hover { color: var(--navy-text); transform: translateY(-3px); }
.mega__feature-title { font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: var(--white); }
.mega__feature-text { flex: 1; font-size: 14.5px; line-height: 1.5; }
.mega__feature .link-arrow { font-size: 15px; color: var(--sky); }
.main-nav__cta-mobile { display: none; }

.site-header__cta { min-height: 46px; padding: 10px 20px; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  right: -10%; top: -20%;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 163, 255, .14), transparent 65%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 5px 14px 5px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.badge__tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sky);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.hero__title {
  margin-bottom: 28px;
  font-size: clamp(44px, 6.4vw, 78px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
}
.hero__title .serif { font-size: 1.04em; line-height: 1.05; letter-spacing: -.02em; }

.hero__lead {
  max-width: 560px;
  margin-bottom: 28px;
  font-size: 19px;
  line-height: 1.6;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero__stats {
  display: flex;
  gap: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line-strong);
  max-width: 590px;
}
.stat dd:first-of-type {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--ink);
  line-height: 1.1;
}
.stat__label { font-size: 14px; color: var(--muted); }

/* Hero flow card */
.flow-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--navy);
  box-shadow: var(--shadow-lg);
}
.flow-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sky);
}
.live-dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sky);
  animation: pulse 1.8s infinite;
}

.flow-card__list { display: grid; gap: 22px; }

.flow-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  background: var(--navy-2);
  color: var(--white);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.flow-item.is-in { opacity: 1; transform: none; }
.flow-item--1 { margin-right: 12%; }
.flow-item--2 { margin-left: 7%; margin-right: 3%; }
.flow-item--3 { margin-left: 14%; }
.flow-item--ai {
  display: block;
  margin-left: 3.5%;
  margin-right: 3.5%;
  border: 0;
  background: var(--blue);
}

/* connector lines */
.flow-item::after {
  content: "";
  position: absolute;
  left: 38px;
  top: 100%;
  width: 2px;
  height: 22px;
  background: linear-gradient(var(--sky), rgba(77, 163, 255, .2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s .35s var(--ease);
}
.flow-item.is-in::after { transform: scaleY(1); }
.flow-item--ai::after { display: none; }

.flow-item__text { display: grid; gap: 2px; min-width: 0; }
.flow-item__meta { font-size: 13px; color: var(--navy-text); }
.flow-item__meta--ai {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--white);
}
.flow-item strong { font-size: 16.5px; font-weight: 700; line-height: 1.4; }

/* ---------- Logos ---------- */
.logos {
  padding: 56px 0 52px;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.logos__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 36px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
}
.logos__title::before,
.logos__title::after {
  content: "";
  width: 96px;
  height: 1px;
  background: var(--line-strong);
}

.logos__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.logo-tile {
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: 16px;
  border-right: 1px solid var(--line);
  transition: background-color .3s;
}
.logo-tile:last-child { border-right: 0; }
.logo-tile img {
  width: auto;
  height: auto;
  max-width: 120px;
  max-height: 44px;
  object-fit: contain;
  /* uniform grey look; multiply hides white logo backgrounds */
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply;
  opacity: .7;
  transition: opacity .3s, filter .3s, transform .3s var(--ease);
}
/* logos whose files include extra padding */
.logo-tile--lg img { max-width: 150px; max-height: 72px; }
/* logos supplied on black backgrounds: invert to dark-on-white */
.logo-tile--invert img { filter: grayscale(1) invert(1) contrast(1.2); }
.logo-tile:hover { background: var(--bg); }
.logo-tile:hover img { opacity: 1; filter: none; transform: scale(1.05); }
.logo-tile--invert:hover img { filter: grayscale(1) invert(1) contrast(1.2); }

/* ---------- Connected system ---------- */
.connect { padding-block: 120px; overflow: hidden; }
.connect .section-head { margin-bottom: 64px; }

.pipeline { position: relative; }

.pipeline__track {
  position: absolute;
  left: 10%; right: 10%;
  top: 44px;
  height: 2px;
  background: var(--navy-line);
}
.pipeline__progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transition: width .7s var(--ease);
}
.pipeline__packet {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 6px rgba(77, 163, 255, .2), 0 0 24px var(--sky);
  transition: left .7s var(--ease);
}

.pipeline__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}
.pipeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy-text);
  text-align: center;
}
.pipeline__icon {
  display: grid;
  place-items: center;
  width: 90px; height: 90px;
  margin-bottom: 14px;
  border: 1px solid var(--navy-line);
  border-radius: 20px;
  background: var(--navy-2);
  color: var(--white);
  transition: background-color .35s, border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.pipeline__icon svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pipeline__step:hover .pipeline__icon { transform: translateY(-4px); border-color: var(--sky); }
.pipeline__step.is-done .pipeline__icon { border-color: rgba(77, 163, 255, .5); }
.pipeline__step.is-active .pipeline__icon {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 8px rgba(10, 95, 180, .18), 0 18px 40px -12px rgba(10, 95, 180, .8);
}
.pipeline__name { font-size: 17px; font-weight: 700; color: var(--white); }
.pipeline__tools { font-size: 14px; }

.step-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 36px 32px;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  background: var(--navy-2);
  animation: panelIn .5s var(--ease);
}
.step-panel[hidden] { display: none; }
.step-panel__num {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--sky);
}
.step-panel__tools {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy-text);
}
.step-panel__title {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.step-panel p:last-child { font-size: 17px; color: #c8d0df; }

/* ---------- Platforms ---------- */
.p-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.p-card .app-icon { margin-bottom: 4px; }
.p-card__title { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.p-card p { flex: 1; font-size: 15.5px; line-height: 1.55; }
.p-card .link-arrow { font-size: 15.5px; }

.p-card--cta {
  border-color: var(--blue);
  background: var(--blue);
  color: rgba(255, 255, 255, .88);
}
.p-card--cta .p-card__title { color: var(--white); font-size: 23px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.p-card--cta p { color: rgba(255, 255, 255, .88); }

/* ---------- Stack builder ---------- */
.stack-builder {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  margin-top: 112px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
}
.stack-builder .h3 { margin-bottom: 36px; max-width: 460px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip-group legend {
  width: 100%;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color .25s, color .25s, border-color .25s, transform .2s;
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 700; }
.chip.is-on::before { content: "✓"; }

.stack-result {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--navy);
}
.stack-result__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.stack-result__list { display: grid; gap: 12px; margin-bottom: 24px; flex: 1; align-content: start; }
.wf {
  display: grid;
  gap: 2px;
  padding: 16px;
  border: 1px solid var(--navy-line);
  border-radius: 12px;
  background: var(--navy-2);
  font-size: 15.5px;
  color: #e3e8f1;
  animation: wfIn .45s var(--ease) both;
}
.wf__route { font-size: 14.5px; font-weight: 700; color: var(--sky); }
.wf--empty { color: var(--navy-text); border-style: dashed; background: transparent; }

/* ---------- Growth services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
}
.service {
  display: flex;
  gap: 14px;
  padding: 36px 24px 44px 0;
  border-bottom: 1px solid var(--line-strong);
}
.service__icon {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 4px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service h3 { margin-bottom: 6px; font-size: 18px; font-weight: 600; }
.service h3 a { color: var(--ink); background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.service h3 a:hover { background-size: 100% 2px; }
.service p { font-size: 15.5px; line-height: 1.55; }

.offer-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--blue);
  color: var(--white);
}
.offer-card__title {
  margin-bottom: 18px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--white);
}
.offer-card p:not(.eyebrow) { margin-bottom: 18px; font-size: 16px; font-weight: 500; line-height: 1.55; }

/* ---------- AI section ---------- */
.ai { padding-block: 88px 112px; }
.ai__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: center;
}

.phone {
  padding: 8px;
  border-radius: 34px;
  background: #1e2a46;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.phone__screen {
  padding: 16px 14px 14px;
  border-radius: 28px;
  background: var(--white);
  color: var(--ink);
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.chat__head strong { display: block; font-weight: 600; }
.chat__avatar {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sky);
}
.chat__status { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: #2b8a3e; }
.chat__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2b8a3e; }

.chat__body { display: grid; gap: 10px; padding: 16px 6px; min-height: 380px; align-content: start; }
.msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.chat-ready .msg { opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.chat-ready .msg.is-in { opacity: 1; transform: none; }
.msg--user { justify-self: end; background: var(--blue); color: var(--white); font-weight: 500; border-bottom-right-radius: 4px; }
.msg--bot { justify-self: start; background: #f0efea; border-bottom-left-radius: 4px; }
.msg--typing { display: inline-flex; gap: 5px; justify-self: start; padding: 12px 16px; background: #f0efea; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: typing 1.2s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }

.product {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.product__thumb { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; }
.product__thumb--yellow { background: #f4b740; }
.product__thumb--blue { background: #dbe6fb; }
.product__info { display: grid; flex: 1; font-size: 13px; color: var(--muted); }
.product__info strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.product__add {
  padding: 6px 12px;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color .25s;
}
.product__add.is-added { background: #2b8a3e; }

.chat__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
}
.chat__send { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--white); }
.chat__send .icon { stroke-width: 2.4; }

.ai__content .h2 { margin-bottom: 22px; }
.ai__lead { max-width: 560px; margin-bottom: 34px; font-size: 18px; }

.ai-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.ai-card {
  padding: 22px 20px;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  background: var(--navy-2);
  transition: border-color .3s, transform .3s var(--ease), background-color .3s;
}
.ai-card:hover { border-color: var(--sky); transform: translateY(-4px); background: var(--navy-3); }
.ai-card h3 { margin-bottom: 6px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.ai-card h3 a { color: var(--white); }
.ai-card p { font-size: 15.5px; line-height: 1.5; }

.ai__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Case studies ---------- */
.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-card__media {
  position: relative;
  display: grid;
  place-items: center;
  height: 230px;
  overflow: hidden;
}
.case-card__media--blue { background: #e2ebfa; }
.case-card__media--sky { background: #e6eef9; }
.case-card__media--sand { background: #efebe0; }

/* CSS-only device mockups (placeholders for real screenshots) */
.device { position: relative; transition: transform .6s var(--ease); }
.case-card:hover .device--laptop { transform: translateY(-6px) scale(1.03); }
.device--laptop {
  width: 62%;
  aspect-ratio: 16 / 10;
  padding: 6px;
  border-radius: 10px 10px 0 0;
  background: #1b1f27;
}
.device--laptop::after {
  content: "";
  position: absolute;
  left: -9%; right: -9%; bottom: -8px;
  height: 8px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(#cfd3da, #9aa0aa);
}
.device--small { width: 48%; }
.device--tilt { width: 70%; transform: perspective(700px) rotateY(-14deg) rotateX(6deg); }
.case-card:hover .device--tilt { transform: perspective(700px) rotateY(-8deg) rotateX(4deg) translateY(-6px); }
.device--phone {
  position: absolute;
  right: 16%;
  bottom: 22px;
  width: 15%;
  aspect-ratio: 9 / 19;
  padding: 3px;
  border-radius: 9px;
  background: #1b1f27;
}
.device--left { right: auto; left: 18%; }
.device__screen {
  display: grid;
  grid-template-rows: 14% 1fr auto;
  gap: 6%;
  height: 100%;
  padding: 6%;
  overflow: hidden;
  border-radius: 4px;
  background: var(--white);
}
.device__screen span { border-radius: 3px; }
.device__screen span:nth-child(1) { background: #e6e9ef; }
.device__screen span:nth-child(3) { height: 10px; width: 50%; }
.device--phone .device__screen { grid-template-rows: 12% 1fr; border-radius: 6px; }
.screen--upmarket span:nth-child(2) { background: linear-gradient(135deg, #1747d6, #3b82f6 60%, #f5c518); }
.screen--upmarket span:nth-child(3) { background: #1747d6; }
.screen--tooltribe span:nth-child(2) { background: linear-gradient(135deg, #111827, #374151 55%, #84cc16); }
.screen--tooltribe span:nth-child(3) { background: #84cc16; }
.screen--docket span:nth-child(2) { background: linear-gradient(135deg, #1f3a5f, #4a6fa5 60%, #cbd5e1); }
.screen--docket span:nth-child(3) { background: #1f3a5f; }

.case-card__body { display: flex; flex-direction: column; flex: 1; padding: 30px 26px 28px; }
.case-card__type { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.case-card__title { margin-bottom: 10px; font-size: 23px; font-weight: 800; letter-spacing: -.04em; }
.case-card__body > p:not(.case-card__type) { flex: 1; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; }

.metrics { display: flex; gap: 28px; padding-top: 22px; }
.metrics dt { font-size: 34px; font-weight: 800; letter-spacing: -.05em; line-height: 1.15; color: var(--blue); }
.metrics dt.metrics__dark,
.metrics div:nth-child(2) dt { color: var(--ink); }
.metrics dd { font-size: 13.5px; color: var(--text); }

/* ---------- Testimonials ---------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.testimonials .eyebrow { margin-bottom: 18px; }
.quote-feature__mark { width: 44px; height: 33px; margin-bottom: 18px; fill: var(--blue); }
.quote-feature blockquote p {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.035em;
  color: var(--ink);
}

.person { display: flex; align-items: center; gap: 14px; }
.person strong { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.person span span { font-size: 14px; color: var(--text); }
.person--sm strong { font-size: 15px; }
.person--sm span span { font-size: 13px; }

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
}
.person--sm .avatar { width: 40px; height: 40px; font-size: 14px; }
.avatar--blue { background: #dbe6fb; color: var(--blue); }
.avatar--green { background: #e3f3d8; color: #2c5f12; }
.avatar--yellow { background: #fdf1d0; color: #8a6200; }

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 778px;
  margin-top: 44px;
}
.quote-card {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.quote-card blockquote p { margin-bottom: 18px; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }

.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 34px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--white);
}
.video-card::before {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 163, 255, .25), transparent 70%);
}
.video-card:hover { color: var(--white); }
.video-card__play {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--blue);
  transition: transform .3s var(--ease);
}
.video-card__play::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--blue);
  animation: ring 2.2s infinite;
}
.video-card__play svg { width: 24px; height: 24px; margin-left: 3px; }
.video-card:hover .video-card__play { transform: scale(1.08); }
.video-card__title { position: relative; font-size: 18px; font-weight: 700; line-height: 1.45; }

/* ---------- Why + process ---------- */
.why__title { max-width: 760px; margin-bottom: 48px; }
.why-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-card h3 { margin-bottom: 8px; font-size: 18px; font-weight: 600; }
.why-card p { font-size: 15.5px; line-height: 1.55; }

.process__title {
  margin: 80px 0 28px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding-top: 30px;
}
.process::before,
.process::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 2px;
}
.process::before { right: 0; background: var(--line-strong); }
.process::after { width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.process.is-in::after { transform: scaleX(1); }

.process__step { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.process.is-in .process__step { opacity: 1; transform: none; }
.process.is-in .process__step:nth-child(2) { transition-delay: .15s; }
.process.is-in .process__step:nth-child(3) { transition-delay: .3s; }
.process.is-in .process__step:nth-child(4) { transition-delay: .45s; }
.process.is-in .process__step:nth-child(5) { transition-delay: .6s; }
.process.is-in .process__step:nth-child(6) { transition-delay: .75s; }

.process__num { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 700; color: var(--blue); }
.process h4 { margin-bottom: 8px; font-size: 17px; font-weight: 600; }
.process p { font-size: 14.5px; line-height: 1.5; }

/* ---------- Pricing ---------- */
.pricing__grid { margin-top: 44px; }
.price-card {
  display: flex;
  flex-direction: column;
  padding: 40px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card h3 { margin-bottom: 18px; font-size: 25px; font-weight: 800; letter-spacing: -.045em; }
.price-card > p { margin-bottom: 18px; font-size: 17px; line-height: 1.5; }
.price-card .price-card__best { flex: 1; margin-bottom: 22px; font-size: 14.5px; }
.price-card__best strong { color: var(--ink); }
.price-card--featured { border-color: var(--navy); background: var(--navy); color: #c8d0df; }
.price-card--featured h3,
.price-card--featured .price-card__best strong { color: var(--white); }

.strip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 16px;
  color: var(--ink-soft);
}
.strip strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 300px 1fr; gap: 68px; }
.faq__intro .h2 { margin-bottom: 26px; }
.faq__intro p:last-child { font-size: 16px; }
.faq__intro a { text-decoration: underline; text-underline-offset: 3px; }

.faq__list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  position: relative;
  display: block;
  padding: 24px 48px 24px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--blue);
  transition: transform .3s var(--ease);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item__body { overflow: hidden; }
.faq-item__body p { max-width: 680px; padding-bottom: 24px; font-size: 16.5px; }

/* ---------- Contact ---------- */
.contact { padding: 0 0 112px; }
.contact .container { max-width: calc(1240px + var(--gutter) * 2); }
.contact__box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 64px;
  align-items: center;
  padding: 72px 72px;
  overflow: hidden;
  border-radius: 36px;
  background: var(--navy);
  color: var(--navy-text);
}
.contact__box::before {
  content: "";
  position: absolute;
  left: -160px; bottom: -220px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 95, 180, .35), transparent 65%);
  pointer-events: none;
}
.contact__content { position: relative; }
.contact__title { margin-bottom: 26px; color: var(--white); font-size: clamp(36px, 4.6vw, 60px); }
.contact__content > p { max-width: 470px; margin-bottom: 30px; font-size: 18px; }
.contact .checklist { margin-bottom: 0; }

.lead-form {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
}
.lead-form__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.lead-form__step { font-size: 14px; font-weight: 600; }
.lead-form__dots { display: flex; gap: 6px; }
.lead-form__dots span { width: 32px; height: 4px; border-radius: 4px; background: var(--line); transition: background-color .3s; }
.lead-form__dots span.is-on { background: var(--blue); }

.form-step { animation: panelIn .45s var(--ease); }
.form-step[hidden] { display: none; }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: #8a909c; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 95, 180, .14); }
.field.has-error input { border-color: #c53030; }
.field__error { min-height: 0; font-size: 13px; font-weight: 500; color: #c53030; }
.field__error:empty { display: none; }

.consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; font-size: 14px; color: var(--text); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.consent a { text-decoration: underline; }
.consent__error { display: block; margin-bottom: 12px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.lead-form__actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 16px; }
.lead-form__actions .btn--outline { padding-inline: 22px; }

.form-success { padding: 24px 0 8px; text-align: center; animation: panelIn .5s var(--ease); }
.form-success[hidden] { display: none; }
.form-success__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #e3f3d8; }
.form-success__icon svg { width: 30px; height: 30px; fill: none; stroke: #2b8a3e; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .2s var(--ease) forwards; }
.form-success h3 { margin-bottom: 8px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.form-success p { font-size: 16px; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { padding: 80px 0 40px; background: var(--navy); color: var(--navy-text); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr .8fr; gap: 40px; margin-bottom: 48px; }
.footer__brand .logo img { margin-bottom: 18px; }
.footer__brand > p { max-width: 340px; margin-bottom: 18px; font-size: 15.5px; color: #c8d0df; }
.footer__email { font-size: 16px; font-weight: 600; color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.footer__email:hover { color: var(--sky-soft); }

.newsletter { margin-top: 40px; }
.newsletter label { display: block; margin-bottom: 12px; font-size: 15px; font-weight: 700; color: var(--white); }
.newsletter__row { display: flex; gap: 8px; max-width: 340px; }
.newsletter input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  background: var(--navy-2);
  color: var(--white);
  font-size: 15px;
}
.newsletter input::placeholder { color: #7d889e; }
.newsletter input:focus { outline: none; border-color: var(--sky); }
.newsletter__msg { margin-top: 8px; font-size: 14px; color: var(--sky); }

.footer__col h2 { margin-bottom: 16px; font-size: 16px; font-weight: 700; color: var(--white); }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { font-size: 15.5px; color: #c8d0df; transition: color .2s; }
.footer__col a:hover { color: var(--white); }

.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.badges li {
  padding: 10px 16px;
  border: 1px solid var(--navy-line);
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--white);
}

.footer__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--navy-line);
  font-size: 14.5px;
}
.footer__base ul { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__base a { color: var(--navy-text); text-decoration: underline; text-underline-offset: 3px; }
.footer__base a:hover { color: var(--white); }

.footer__grid--5 { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer__contact { display: grid; gap: 6px; margin-bottom: 8px; font-style: normal; font-size: 15px; }
.footer__contact a { color: var(--sky); font-weight: 600; }
.footer__contact a:hover { color: var(--sky-soft); }
.footer__contact span { color: var(--navy-text); }

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: 28px; font-size: 14px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; color: var(--line-strong); font-size: 16px; }
.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: 40px 0 88px; overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute;
  right: -12%; top: -30%;
  width: 680px; height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 163, 255, .13), transparent 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.page-hero__title {
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.05em;
}
.page-hero__title .serif { font-size: 1.06em; letter-spacing: -.02em; }
.page-hero__title--md { font-size: clamp(32px, 4vw, 48px); }
.page-hero__lead { max-width: 580px; margin-bottom: 32px; font-size: 19px; line-height: 1.6; }
.proof-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.proof-chips li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  color: var(--text);
}
.proof-chips strong { font-size: 16px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.flow-card--page .flow-item { opacity: 1; transform: none; }
.flow-card--page .flow-item::after { transform: scaleY(1); }
.js-anim .flow-card--page .flow-item { opacity: 0; transform: translateY(14px); }
.js-anim .flow-card--page .flow-item::after { transform: scaleY(0); }
.js-anim .flow-card--page .flow-item.is-in { opacity: 1; transform: none; }
.js-anim .flow-card--page .flow-item.is-in::after { transform: scaleY(1); }

.page-hero--simple { padding-bottom: 72px; }
.page-hero__simple { max-width: 820px; }
.page-hero__simple .page-hero__lead { max-width: 680px; margin-bottom: 0; }
.page-hero__simple .hero__actions { margin-top: 32px; }

.logos--compact { padding: 40px 0; }
.logos--compact .logos__title { margin-bottom: 24px; }
.logos--compact .logo-tile { min-height: 88px; }

/* ---------- Answer box ---------- */
.answer-section { padding: 72px 0 0; }
.answer {
  position: relative;
  max-width: 920px;
  padding: 36px 40px 32px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.answer::before {
  content: "";
  position: absolute;
  left: 0; top: 28px; bottom: 28px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--blue);
}
.answer__text { margin-bottom: 14px; font-size: 21px; line-height: 1.55; letter-spacing: -.01em; color: var(--ink); }
.answer__meta { font-size: 13.5px; color: var(--muted); }

/* ---------- Pain points ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain {
  display: flex;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.section--white .pain { background: var(--bg); border-color: transparent; }
.pain__icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fde7e3; color: #b0341c; }
.pain__icon .icon { stroke-width: 2.4; }
.pain h3 { margin-bottom: 6px; font-size: 17px; font-weight: 600; }
.pain p { font-size: 15px; line-height: 1.55; }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.section--white .svc-card { background: var(--bg); border-color: transparent; }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 12px; background: #e6eef9; color: var(--blue); }
.svc-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.svc-card h3 a { color: var(--ink); }
.svc-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.svc-card p { flex: 1; font-size: 15.5px; line-height: 1.55; }
.svc-card__more { font-size: 15px; }

/* ---------- Use cases ---------- */
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; counter-reset: use; }
.use { padding: 26px 0; border-top: 1px solid var(--line-strong); }
.use__num { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--blue); }
.use h3 { margin-bottom: 6px; font-size: 18px; font-weight: 600; }
.use p { font-size: 15.5px; line-height: 1.55; }

/* ---------- Tech stack ---------- */
.stack-section { padding-block: 104px; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tech {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--navy-line);
  border-radius: 12px;
  background: var(--navy-2);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--white);
  transition: border-color .3s, transform .3s var(--ease);
}
.tech:hover { border-color: var(--sky); transform: translateY(-3px); }
.tech__mono { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--navy-3); color: var(--sky); font-size: 12px; font-weight: 800; letter-spacing: .02em; }

/* ---------- Process (inner) ---------- */
.process h3 { margin-bottom: 8px; font-size: 17px; font-weight: 600; }
.process__out { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--blue); }

/* ---------- Case feature ---------- */
.case-feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
}
.section--white .case-feature { background: var(--bg); }
.case-feature .case-card__media { height: 100%; min-height: 360px; }
.case-feature__body { padding: 44px; }
.case-feature__title { margin-bottom: 18px; font-size: 32px; font-weight: 800; letter-spacing: -.045em; }
.case-feature__cs { display: grid; gap: 16px; margin-bottom: 8px; }
.case-feature__cs dt { margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.case-feature__cs dd { font-size: 15.5px; line-height: 1.6; }
.case-feature .metrics { margin-bottom: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.case-card__media--upmarket { background: #e2ebfa; }
.case-card__media--tooltribe { background: #e6eef9; }
.case-card__media--docket { background: #efebe0; }
.case-card__media--bartender { background: #ece6f7; }
.screen--bartender span:nth-child(2) { background: linear-gradient(135deg, #1a1033, #6d28d9 55%, #f59e0b); }
.screen--bartender span:nth-child(3) { background: #6d28d9; }
.case-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.case-card__link:hover { color: inherit; }
.case-card.is-hidden { display: none; }

/* ---------- Why / quotes / related ---------- */
.why-grid { display: grid; gap: 18px; }
.why-grid--4 { grid-template-columns: repeat(4, 1fr); }
.why-grid--3 { grid-template-columns: repeat(3, 1fr); }
.section--white .why-card { background: var(--bg); border-color: transparent; }
.why-card__check { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 50%; background: #e6eef9; color: var(--blue); }
.why-card__check .icon { stroke-width: 2.4; }

.quote-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-row .quote-card { display: flex; background: var(--white); border: 1px solid var(--line); }
.section--white .quote-row .quote-card { background: var(--bg); border-color: transparent; }
.quote-row figure { display: flex; flex-direction: column; justify-content: space-between; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.link-card a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.section--white .link-card a { background: var(--bg); border-color: transparent; }
.link-card a:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--text); }
.link-card__title { font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.link-card__text { flex: 1; font-size: 15px; line-height: 1.55; }
.link-card .link-arrow { font-size: 15px; }

/* ---------- Bands ---------- */
.band { padding-block: 72px; }
.band__inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.band__links { display: grid; gap: 10px; }
.band__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--navy-line);
  border-radius: 14px;
  background: var(--navy-2);
  font-weight: 600;
  color: var(--white);
  transition: border-color .3s, transform .3s var(--ease);
}
.band__links a:hover { border-color: var(--sky); transform: translateX(4px); color: var(--white); }
.band__links .icon { color: var(--sky); }
.hire-band { padding: 0 0 8px; }
.hire-band + .section { padding-top: 104px; }
.strip--wide { padding: 24px 28px; border: 1px solid var(--line); background: var(--white); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.cmp-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15.5px; }
.cmp-table th,
.cmp-table td { padding: 16px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table thead th { background: var(--navy); color: var(--white); font-size: 14.5px; font-weight: 700; }
.cmp-table tbody th { font-weight: 600; color: var(--ink); }
.cmp-table tbody tr:last-child > * { border-bottom: 0; }
.cmp-table tbody tr:hover > * { background: #f2f6fc; }

/* ---------- Steps / workflows ---------- */
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.flow-step {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.section--white .flow-step { background: var(--bg); border-color: transparent; }
.flow-step__num { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 800; }
.flow-step h3 { margin-bottom: 6px; font-size: 17px; font-weight: 600; }
.flow-step p { font-size: 15px; line-height: 1.55; }

.wf-diagrams { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.wf-diagram { padding: 26px; border-radius: var(--radius-lg); background: var(--navy); }
.wf-diagram h3 { margin-bottom: 18px; font-size: 18px; font-weight: 700; color: var(--white); }
.wf-diagram ol { display: grid; gap: 10px; }
.wf-diagram__node {
  position: relative;
  padding: 12px 14px;
  border: 1px solid var(--navy-line);
  border-radius: 10px;
  background: var(--navy-2);
  font-size: 14.5px;
  color: #dbe2ee;
}
.wf-diagram__node span { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-text); }
.wf-diagram__node + .wf-diagram__node::before {
  content: "";
  position: absolute;
  left: 22px; top: -11px;
  width: 2px; height: 10px;
  background: var(--sky);
}
.wf-diagram__node--trigger { border-color: var(--sky); }
.wf-diagram__node--trigger span { color: var(--sky); }
.wf-diagram__node--out { border: 0; background: var(--blue); color: var(--white); }
.wf-diagram__node--out span { color: rgba(255, 255, 255, .8); }

/* ---------- Checklist block ---------- */
.checklist-block { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.checklist-block .section-head { margin-bottom: 20px; }
.checklist-block__intro { margin-bottom: 28px; font-size: 17px; }
.checklist--cols {
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin: 0;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.section--white .checklist--cols { background: var(--bg); border-color: transparent; }

/* ---------- Integration / mini FAQ / prose ---------- */
.integration { scroll-margin-top: calc(var(--header-h) + 20px); }
.mini-faq { max-width: 860px; margin-top: 24px; border-top: 1px solid var(--line-strong); }
.mini-faq .faq-item summary { font-size: 16.5px; padding-block: 18px; }
.prose-block .h2 { max-width: 760px; margin-bottom: 28px; }
.prose { max-width: 760px; }
.prose p { margin-bottom: 18px; font-size: 17.5px; line-height: 1.7; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: 40px 0 14px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- Architecture ---------- */
.arch { display: grid; gap: 10px; max-width: 900px; counter-reset: arch; }
.arch__layer {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--navy-line);
  border-radius: 14px;
  background: var(--navy-2);
}
.arch__layer:nth-child(2) { margin-left: 4%; }
.arch__layer:nth-child(3) { margin-left: 8%; }
.arch__layer:nth-child(4) { margin-left: 12%; }
.arch__layer:nth-child(5) { margin-left: 16%; }
.arch__num { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: var(--white); font-weight: 800; }
.arch h3 { margin-bottom: 4px; font-size: 17px; font-weight: 700; }
.arch p { font-size: 15px; color: #c8d0df; }

/* ---------- Hire pages ---------- */
.level-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.level { padding: 26px 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.section--white .level { background: var(--bg); border-color: transparent; }
.level__years { margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.level h3 { margin-bottom: 8px; font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.level p { font-size: 15px; line-height: 1.55; }
.price-card__hours { margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--blue); }
.price-card--featured .price-card__hours { color: var(--sky); }

.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.two-col .h2 { margin-bottom: 20px; }
.two-col__lead { margin-bottom: 24px; font-size: 18px; }
.section--dark .two-col__lead { color: var(--navy-text); }
.feature-list { display: grid; gap: 14px; }
.feature-list li {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--navy-line);
  border-radius: 14px;
  background: var(--navy-2);
}
.feature-list .icon { flex: none; color: var(--sky); }
.feature-list h3 { margin-bottom: 4px; font-size: 17px; font-weight: 700; }
.feature-list p { font-size: 15px; }

.partner-form {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
}
.section--white .partner-form { background: var(--bg); border-color: transparent; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.partner-form__msg { margin-top: 12px; font-size: 15px; font-weight: 600; color: #2b8a3e; }
.partner-form__msg:empty { display: none; }

/* ---------- Company pages ---------- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stats-row li { padding: 26px 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.section--white .stats-row li { background: var(--bg); border-color: transparent; }
.stats-row strong { display: inline; font-size: 40px; font-weight: 800; letter-spacing: -.05em; color: var(--blue); }
.stats-row li > span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--text); }

.leader { display: flex; gap: 32px; align-items: flex-start; max-width: 900px; padding: 36px; border-radius: var(--radius-xl); background: var(--bg); }
.leader__avatar { display: grid; place-items: center; flex: none; width: 120px; height: 120px; border-radius: 28px; background: var(--navy); color: var(--sky); font-size: 36px; font-weight: 800; letter-spacing: -.04em; }
.leader h3 { font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.leader__role { margin-bottom: 14px; font-weight: 600; color: var(--blue); }
.leader p:last-child { font-size: 16.5px; line-height: 1.7; }

.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.office { display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: var(--radius-lg); background: var(--bg); }
.office .icon { width: 28px; height: 28px; color: var(--blue); }
.office h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.office p { flex: 1; font-size: 16px; }

.contact-page { display: grid; grid-template-columns: 1fr 520px; gap: 64px; align-items: start; }
.contact-page__info .h3 { margin-bottom: 32px; }
.contact-methods { display: grid; gap: 22px; margin-bottom: 32px; }
.contact-methods li { display: flex; gap: 16px; }
.contact-methods .icon { flex: none; width: 24px; height: 24px; margin-top: 2px; color: var(--blue); }
.contact-methods h3 { margin-bottom: 2px; font-size: 16px; font-weight: 700; }
.contact-methods a:not(.link-arrow) { font-size: 17px; font-weight: 600; }
.contact-page__form .lead-form { border: 1px solid var(--line); box-shadow: var(--shadow); }

.role-list { border-top: 1px solid var(--line-strong); }
.role { display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line-strong); }
.role h3 { margin-bottom: 4px; font-size: 19px; font-weight: 700; }
.role p { font-size: 15px; }
.role__meta { font-size: 14px; font-weight: 600; color: var(--muted); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-bar a.chip { text-decoration: none; }
.filter-bar a.chip.is-on::before { content: none; }

.empty-state { max-width: 640px; margin: 0 auto; padding: 56px 40px; border-radius: var(--radius-xl); background: var(--bg); text-align: center; }
.empty-state__icon { width: 44px; height: 44px; margin: 0 auto 18px; color: var(--blue); }
.empty-state .h3 { margin-bottom: 14px; }
.empty-state p { margin-bottom: 28px; }
.newsletter--inline { margin: 0 auto; max-width: 440px; }
.newsletter--inline .newsletter__row { max-width: none; }
.newsletter--inline input { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.newsletter--inline input::placeholder { color: var(--muted); }
.newsletter--inline .newsletter__msg { color: var(--blue); }

.case-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.case-hero__logo { width: auto; max-width: 180px; max-height: 48px; margin-bottom: 22px; filter: grayscale(1); mix-blend-mode: multiply; }
.case-hero__visual .case-card__media { height: 360px; border-radius: var(--radius-xl); }
.case-facts { display: grid; gap: 12px; margin-top: 28px; }
.case-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.case-facts dt { font-size: 14px; font-weight: 700; color: var(--ink); }
.case-facts dd { font-size: 15.5px; }

.legal { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); }
.legal__toc ol { display: grid; gap: 8px; font-size: 15px; }
.legal__toc a { color: var(--text); }
.legal__toc a:hover { color: var(--blue); }
.legal__note { padding: 14px 18px; border-radius: 10px; background: #fdf1d0; font-size: 15px !important; color: #6b4e00; }

.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 32px; }
.sitemap-group h2 { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 18px; font-weight: 800; }
.sitemap-group ul { display: grid; gap: 8px; }
.sitemap-group a { font-size: 15px; color: var(--text); }
.sitemap-group a:hover { color: var(--blue); }
.sitemap-group .is-hub a { font-weight: 700; color: var(--ink); }

/* Sticky mobile CTA bar (shown < 768px) */
.mobile-bar { display: none; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .flow-item { opacity: 1; transform: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(77, 163, 255, .7); }
  70% { box-shadow: 0 0 0 10px rgba(77, 163, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 163, 255, 0); }
}
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .35; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes ring {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes wfIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal,
  .flow-item,
  .process__step { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .services__grid { grid-template-columns: 1fr; }
  .offer-card { max-width: 520px; }
  .contact__box { grid-template-columns: 1fr 460px; padding: 56px; gap: 48px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .section { padding-block: 96px; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 99;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    padding: 24px var(--gutter) 40px;
    background: var(--bg);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .4s var(--ease), visibility .4s;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav__list { flex-direction: column; gap: 0; }
  .main-nav { overflow-y: auto; }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; padding: 16px 0; font-size: 21px; font-weight: 600; }
  .nav-link::after { display: none; }
  .nav-caret { width: 44px; height: 44px; margin: 0; }
  .has-mega:hover .nav-caret { transform: none; }
  .has-mega.is-open .nav-caret { transform: rotate(180deg); }
  .mega {
    position: static;
    display: none;
    flex-basis: 100%;
    padding: 0 0 18px;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .has-mega:hover .mega,
  .has-mega:focus-within .mega { display: none; }
  .has-mega.is-open .mega { display: block; }
  .mega .container { padding: 0; }
  .mega__inner,
  .mega__cols { grid-template-columns: 1fr; gap: 18px; }
  .mega__col a { font-size: 16.5px; margin-left: 0; padding: 8px 0; }
  .mega__feature { display: none; }
  .main-nav__cta-mobile { display: flex; min-height: 54px; }
  .site-header__cta { display: none; }
  .nav-toggle { display: block; }
  body.nav-open { overflow: hidden; }

  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .flow-card { max-width: 560px; }

  .section-head--split { grid-template-columns: 1fr; gap: 20px; }
  .section-head__aside { justify-self: start; }

  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .logos__grid { grid-template-columns: repeat(4, 1fr); }
  .logo-tile { border-bottom: 1px solid var(--line); }
  .logo-tile:nth-child(4n) { border-right: 0; }

  .stack-builder { grid-template-columns: 1fr; padding: 36px; margin-top: 80px; }

  .ai__grid { grid-template-columns: 1fr; }
  .phone { max-width: 380px; margin-inline: auto; order: 2; }

  .card-grid--3 { grid-template-columns: 1fr 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .video-card { max-width: 420px; margin-top: 0; }

  .process { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .faq__grid { grid-template-columns: 1fr; gap: 32px; }

  .contact__box { grid-template-columns: 1fr; padding: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --header-h: 60px; }
  body { font-size: 17px; padding-bottom: 76px; }
  .section { padding-block: 72px; }
  .section-head { margin-bottom: 36px; }
  .section-head--row { flex-direction: column; align-items: flex-start; }

  .logo img { width: 116px; }
  .hero { padding: 44px 0 64px; }
  .hero__title { font-size: clamp(40px, 11vw, 54px); }
  .hero__lead { font-size: 18px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stats { gap: 20px; justify-content: space-between; }
  .stat dd:first-of-type { font-size: 28px; }
  .stat__label { font-size: 13px; }

  .flow-card { padding: 20px; border-radius: var(--radius-lg); }
  .flow-item { padding: 14px; }
  .flow-item--1,
  .flow-item--2,
  .flow-item--3,
  .flow-item--ai { margin-inline: 0; }
  .flow-item strong { font-size: 15px; }

  .logos__title::before,
  .logos__title::after { width: 24px; }
  .logos__grid { grid-template-columns: repeat(2, 1fr); }
  .logo-tile:nth-child(4n) { border-right: 1px solid var(--line); }
  .logo-tile:nth-child(2n) { border-right: 0; }
  .logo-tile:last-child { grid-column: 1 / -1; border-bottom: 0; }

  .connect { padding-block: 72px; }
  .pipeline__track { display: none; }
  .pipeline__steps {
    display: flex;
    gap: 10px;
    margin: 0 calc(var(--gutter) * -1) 28px;
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .pipeline__steps::-webkit-scrollbar { display: none; }
  .pipeline__step { flex: 0 0 120px; scroll-snap-align: start; }
  .pipeline__icon { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 8px; }
  .pipeline__name { font-size: 15px; }
  .pipeline__tools { font-size: 12px; }
  .step-panel { grid-template-columns: 1fr; gap: 14px; padding: 26px 22px; }
  .step-panel__num { font-size: 44px; }
  .step-panel__title { font-size: 23px; }

  .card-grid--4,
  .card-grid--3 { grid-template-columns: 1fr; }

  .stack-builder { padding: 24px 18px; border-radius: var(--radius-lg); margin-top: 64px; }
  .stack-result { padding: 22px 18px; }

  .service-list { grid-template-columns: 1fr; }
  .service { padding: 24px 0; }

  .ai { padding-block: 72px; }
  .ai-cards { grid-template-columns: 1fr; }
  .ai__actions .btn { flex: 1 1 100%; white-space: normal; }

  .quote-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip { flex-direction: column; align-items: flex-start; }

  .contact { padding-bottom: 72px; }
  .contact__box { padding: 36px 20px 20px; border-radius: var(--radius-lg); gap: 32px; }
  .lead-form { padding: 22px 18px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__base { flex-direction: column; align-items: flex-start; }

  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(110%);
    transition: transform .35s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 48px; }
}

/* ---------- Responsive: inner pages & mega menu ---------- */
@media (max-width: 1240px) and (min-width: 1025px) {
  .site-header__inner { gap: 20px; }
  .site-header__cta { padding-inline: 16px; font-size: 14.5px; }
  .nav-link { padding-inline: 8px; font-size: 15px; }
  .mega__inner { grid-template-columns: 1fr 260px; }
}

@media (max-width: 1200px) {
  .footer__grid--5 { grid-template-columns: repeat(4, 1fr); }
  .footer__grid--5 .footer__brand { grid-column: 1 / -1; }
  .contact-page { grid-template-columns: 1fr 460px; gap: 48px; }
}

@media (max-width: 1024px) {
  .page-hero__grid,
  .case-hero,
  .two-col,
  .checklist-block,
  .band__inner,
  .contact-page,
  .legal { grid-template-columns: 1fr; gap: 40px; }
  .flow-card--page { max-width: 560px; }
  .pain-grid,
  .svc-grid,
  .use-grid,
  .related-grid,
  .quote-row,
  .why-grid--3 { grid-template-columns: 1fr 1fr; }
  .why-grid--4,
  .level-grid,
  .flow-steps,
  .stats-row { grid-template-columns: 1fr 1fr; }
  .case-feature { grid-template-columns: 1fr; }
  .case-feature .case-card__media { min-height: 260px; }
  .legal__toc { position: static; }
  .contact-page__form { max-width: 560px; }
}

@media (max-width: 767px) {
  .page-hero { padding: 24px 0 56px; }
  .page-hero__title { font-size: clamp(34px, 9.5vw, 44px); }
  .page-hero__lead { font-size: 17.5px; }
  .proof-chips li { font-size: 13px; padding: 6px 12px; }
  .breadcrumb { margin-bottom: 20px; font-size: 13px; }
  .answer-section { padding-top: 48px; }
  .answer { padding: 26px 22px 22px 26px; }
  .answer__text { font-size: 18px; }
  .pain-grid,
  .svc-grid,
  .use-grid,
  .related-grid,
  .quote-row,
  .why-grid--3,
  .why-grid--4,
  .level-grid,
  .flow-steps,
  .office-grid,
  .field-row,
  .checklist--cols { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats-row li { padding: 18px 16px; }
  .stats-row strong { font-size: 30px; }
  .stack-section { padding-block: 72px; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .tech { padding: 12px; font-size: 14px; }
  .case-feature__body { padding: 26px 22px; }
  .case-feature__title { font-size: 26px; }
  .arch__layer { margin-left: 0 !important; }
  .band { padding-block: 56px; }
  .leader { flex-direction: column; padding: 24px; }
  .leader__avatar { width: 84px; height: 84px; font-size: 26px; border-radius: 20px; }
  .role { grid-template-columns: 1fr; gap: 8px; }
  .partner-form { padding: 22px 18px; }
  .empty-state { padding: 40px 20px; }
  .case-hero__visual .case-card__media { height: 240px; }
  .case-facts div { grid-template-columns: 1fr; gap: 2px; }
  .footer__grid--5 { grid-template-columns: 1fr 1fr; }
  .wf-diagrams { grid-template-columns: 1fr; }
}

/* =========================================================
   Responsive fixes (audit of all pages at 320–1366px)
   ========================================================= */

/* Grid items may shrink below their content width instead of pushing the page sideways */
.page-hero__grid > *,
.stack-builder > *,
.logo-tile,
.tech,
.stats-row li { min-width: 0; }
.logo-tile img { max-width: min(120px, 100%); }
.pill { white-space: nowrap; }
.stack-result__head { gap: 12px; }
/* Case-card stats: equal columns so every card lines up the same way */
.metrics > div { flex: 1 1 0; min-width: 0; }

/* ---------- Tablet (768–1024px) ---------- */
@media (max-width: 1024px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .flow-card--page { max-width: none; }
  .case-feature .case-card__media { height: auto; min-height: 0; padding: 48px 24px 56px; }
  .case-feature .device--laptop { width: min(62%, 420px); }
  .footer__base { flex-direction: column; align-items: flex-start; }
  .footer__base ul { gap: 10px 20px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  /* 2-column grids: an odd last card spans the full row instead of leaving a gap */
  .pain-grid > :last-child:nth-child(odd),
  .svc-grid > :last-child:nth-child(odd),
  .use-grid > :last-child:nth-child(odd),
  .related-grid > :last-child:nth-child(odd),
  .quote-row > :last-child:nth-child(odd),
  .why-grid--3 > :last-child:nth-child(odd),
  .why-grid--4 > :last-child:nth-child(odd),
  .card-grid--3 > :last-child:nth-child(odd),
  .card-grid--4 > :last-child:nth-child(odd),
  .level-grid > :last-child:nth-child(odd),
  .stats-row > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Phone (up to 767px) ---------- */
@media (max-width: 767px) {
  .logos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-tile { padding: 14px 10px; }
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tech { gap: 10px; padding: 10px 12px; }
  .tech__mono { width: 28px; height: 28px; font-size: 12px; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-row li { overflow-wrap: break-word; }
  .stack-builder { grid-template-columns: minmax(0, 1fr); }

  /* Comparison & data-flow tables: each row becomes a card with labelled cells */
  .table-wrap { overflow: visible; border: 0; border-radius: 0; background: none; }
  .cmp-table { min-width: 0; font-size: 15px; }
  .cmp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cmp-table,
  .cmp-table tbody,
  .cmp-table tr,
  .cmp-table th,
  .cmp-table td { display: block; width: 100%; }
  .cmp-table tr { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
  .cmp-table tbody th { padding: 14px 18px; border: 0; background: var(--navy); color: var(--white); }
  .cmp-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
  .cmp-table tbody tr > td:last-child { border-bottom: 0; }
  .cmp-table tbody tr:last-child > td:not(:last-child) { border-bottom: 1px solid var(--line); }
  .cmp-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
  .cmp-table tbody tr:hover > td { background: none; }

  /* Newsletter box on the blog: stack the field and button */
  .newsletter--inline .newsletter__row { flex-direction: column; }
  .newsletter--inline .newsletter__row .btn,
  .newsletter--inline .newsletter__row button { width: 100%; }
}
@media (max-width: 560px) {
  /* Process timelines: one step per row so headings don't break awkwardly */
  .process { grid-template-columns: 1fr; row-gap: 24px; }
}
@media (max-width: 359px) {
  .tech-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  /* Long button labels wrap instead of running past the screen edge */
  .btn { white-space: normal; }
  .btn--lg { padding-inline: 20px; }
}

/* ---------- ROI calculator (template-parts/sections/roi-calculator.php) ---------- */
.roi { position: relative; overflow: hidden; background: #050b18; }
.roi::before,
.roi::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
}
.roi::before { top: -160px; right: 22%; width: 480px; height: 480px; background: rgba(37, 99, 235, .14); }
.roi::after { bottom: -80px; left: 20%; width: 400px; height: 400px; background: rgba(99, 102, 241, .12); }
.roi .container { position: relative; z-index: 1; }

.roi__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.roi__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(77, 163, 255, .25);
  border-radius: 999px;
  background: rgba(77, 163, 255, .08);
  color: var(--sky);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.roi__title { color: var(--white); }
.roi__grad {
  display: block;
  background: linear-gradient(90deg, #60a5fa, #a5b4fc 50%, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.roi__intro { max-width: 620px; margin: 18px auto 0; font-size: 17px; color: var(--navy-text); }

.roi__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.roi__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  background: var(--navy-2);
  color: var(--navy-text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.roi__tab svg { color: var(--sky); }
.roi__tab:hover { color: var(--white); border-color: rgba(255, 255, 255, .16); }
.roi__tab.is-on { background: #2563eb; border-color: rgba(147, 197, 253, .35); color: var(--white); box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .55); }
.roi__tab.is-on svg { color: var(--white); }

.roi__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.roi__panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, .75);
}
.roi__output { position: sticky; top: calc(var(--header-h) + 20px); border-color: rgba(77, 163, 255, .28); background: linear-gradient(180deg, rgba(19, 31, 56, .95), rgba(11, 20, 38, .95)); box-shadow: 0 30px 70px -30px rgba(37, 99, 235, .45); }

.roi__panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.roi__kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.roi__kicker--green { color: #34d399; }
.roi__panel-title { margin-top: 6px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--white); }
.roi__pill { padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; background: rgba(255, 255, 255, .04); font-size: 12px; color: var(--navy-text); white-space: nowrap; }
.roi__live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--sky-soft); }
.roi__dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: roi-pulse 2s infinite; }
@keyframes roi-pulse { 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.roi__group { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.roi__label { display: block; margin-bottom: 12px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-text); }
.roi__bottlenecks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.roi__bn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  background: rgba(19, 31, 56, .7);
  color: var(--navy-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.roi__bn:hover { color: var(--white); background: var(--navy-3); }
.roi__bn.is-on { border-color: rgba(77, 163, 255, .55); background: rgba(37, 99, 235, .16); color: var(--white); }
.roi__bn-tag { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.roi__bn.is-on .roi__bn-tag::after { content: "\2713"; font-size: 12px; letter-spacing: 0; }

.roi__slider { margin-bottom: 16px; padding: 18px; border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--radius); background: rgba(11, 20, 38, .6); }
.roi__slider-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.roi__slider-head label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--white); }
.roi__slider-head label svg { color: var(--sky); flex: none; }
.roi__slider--rate .roi__slider-head label svg { color: #34d399; }
.roi__value { padding: 5px 12px; border: 1px solid rgba(77, 163, 255, .35); border-radius: 8px; background: rgba(37, 99, 235, .14); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; font-weight: 700; color: var(--white); white-space: nowrap; }
.roi__slider--hours .roi__value { border-color: rgba(129, 140, 248, .4); background: rgba(99, 102, 241, .15); }
.roi__slider--rate .roi__value { border-color: rgba(52, 211, 153, .35); background: rgba(16, 185, 129, .12); }

.roi__slider input[type="range"] {
  --fill: 50%;
  --thumb: #3b82f6;
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(to right, var(--thumb) var(--fill), #334155 var(--fill));
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.roi__slider--hours input[type="range"] { --thumb: #818cf8; }
.roi__slider--rate input[type="range"] { --thumb: #10b981; }
.roi__slider input[type="range"]::-webkit-slider-thumb { width: 18px; height: 18px; border: 3px solid #0b1426; border-radius: 50%; background: var(--thumb); box-shadow: 0 0 0 1px var(--thumb); -webkit-appearance: none; appearance: none; }
.roi__slider input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid #0b1426; border-radius: 50%; background: var(--thumb); box-shadow: 0 0 0 1px var(--thumb); }
.roi__slider input[type="range"]:focus-visible { outline: 2px solid var(--sky); outline-offset: 6px; }
.roi__ticks { display: flex; justify-content: space-between; margin-top: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; color: var(--muted); }

.roi__solution { margin-top: 20px; padding: 16px 18px; border: 1px dashed rgba(77, 163, 255, .3); border-radius: var(--radius); background: rgba(37, 99, 235, .06); }
.roi__solution p { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--white); }

.roi__big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 2px; font-size: clamp(40px, 5vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: var(--white); }
.roi__big small { margin-left: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--navy-text); }
.roi__basis { margin-top: 8px; font-size: 13px; color: var(--navy-text); }

.roi__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.roi__stat { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); background: rgba(11, 20, 38, .6); }
.roi__stat-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.roi__stat strong { font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--white); }
.roi__stat strong small { margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--navy-text); }
.roi__stat--green .roi__stat-label,
.roi__stat--green strong { color: #34d399; }
.roi__stat-note { font-size: 12px; color: var(--muted); }

.roi__trust { display: grid; gap: 10px; margin: 0 0 22px; padding: 0 0 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); list-style: none; }
.roi__trust li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #cbd5e1; }
.roi__trust li svg { flex: none; color: #34d399; }
.roi__trust li:nth-child(2) svg { color: var(--sky); }
.roi__trust li:nth-child(3) svg { color: #c084fc; }

.roi__form { position: relative; }
.roi__form-title { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); }
.roi__form-row { display: flex; gap: 10px; }
.roi__form-row input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(5, 11, 24, .7);
  color: var(--white);
  font: inherit;
  font-size: 15px;
}
.roi__form-row input::placeholder { color: var(--muted); }
.roi__form-row input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(77, 163, 255, .2); }
.roi__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.roi__submit:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(79, 70, 229, .7); }
.roi__submit:disabled { opacity: .7; cursor: wait; transform: none; }
.roi__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.roi__error { margin-top: 8px; font-size: 13px; color: #fca5a5; }
.roi__form-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.roi__form-foot a,
.roi__done a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.roi__form-foot a:hover,
.roi__done a:hover { color: var(--white); }
.roi__done { padding: 20px; border: 1px solid rgba(52, 211, 153, .3); border-radius: var(--radius); background: rgba(16, 185, 129, .08); text-align: center; }
.roi__done-icon { width: 32px; height: 32px; margin: 0 auto 10px; color: #34d399; }
.roi__done h4 { font-size: 18px; color: var(--white); }
.roi__done p { margin: 8px 0 12px; font-size: 14px; color: #cbd5e1; }

@media (max-width: 1024px) {
  .roi__grid { grid-template-columns: minmax(0, 1fr); }
  .roi__output { position: static; }
}
@media (max-width: 767px) {
  .roi__panel { padding: 20px; }
  .roi__bottlenecks { grid-template-columns: 1fr; }
  .roi__tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .roi__tab { flex: none; }
  .roi__form-row { flex-direction: column; }
  .roi__submit { justify-content: center; }
  .roi__stat strong { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .roi__dot { animation: none; }
}
