/* ==========================================================================
   MAVIPA — Design System
   Remote Project Delivery for the Built & Industrial World
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --blue-900: #071E3B;
  --blue-800: #0B2E59;
  --blue-700: #103F73;
  --blue-600: #1666C1;
  --blue-500: #2A7DDB;
  --blue-100: #DCE9F8;
  --blue-050: #F2F7FD;

  --gray-900: #1F2937;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-300: #E5E7EB;
  --gray-100: #F5F7FA;
  --white: #FFFFFF;

  --accent-amber: #B45309;
  --accent-teal: #0F766E;

  --ff-sans: "Inter", "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
    Consolas, monospace;

  --container: 1200px;
  --container-narrow: 780px;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(11, 46, 89, 0.06);
  --shadow: 0 4px 16px rgba(11, 46, 89, 0.07);
  --shadow-lg: 0 18px 48px rgba(11, 46, 89, 0.12);

  --header-h: 74px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* The brief commits this site to a single light visual world; declaring the
     scheme keeps native controls and scrollbars consistent for every visitor. */
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--gray-900);
  font-family: var(--ff-sans);
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  color: var(--blue-900);
  font-weight: 680;
  line-height: 1.14;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 1.35rem + 2.7vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.5rem); letter-spacing: -0.026em; }
h3 { font-size: clamp(1.2rem, 1.06rem + 0.5vw, 1.4rem); }
h4 { font-size: 1.0625rem; font-weight: 660; letter-spacing: -0.012em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

strong { font-weight: 640; color: var(--blue-900); }

hr {
  border: 0;
  border-top: 1px solid var(--gray-300);
  margin: 2.5rem 0;
}

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

::selection { background: var(--blue-100); color: var(--blue-900); }

/* --- Layout primitives -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(56px, 3rem + 3.4vw, 104px); }
.section--tight { padding-block: clamp(44px, 2.4rem + 2.2vw, 76px); }
.section--gray { background: var(--gray-100); }
.section--blue {
  background: var(--blue-800);
  color: #E9EFF7;
  background-image:
    radial-gradient(900px 420px at 88% -10%, rgba(42, 125, 219, 0.32), transparent 68%),
    radial-gradient(700px 360px at 4% 110%, rgba(16, 63, 115, 0.65), transparent 70%);
}
.section--blue h2,
.section--blue h3,
.section--blue h4 { color: #FFFFFF; }
.section--blue a { color: #BFD8F5; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--blue-800);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* --- Typographic helpers ------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.section--blue .eyebrow { color: #8FBEF2; }

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.62;
  color: var(--gray-700);
}
.section--blue .lead { color: #C9DBF0; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 2rem + 1.4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }

.muted { color: var(--gray-500); }
.small { font-size: 0.9375rem; }
.xsmall { font-size: 0.8125rem; }
.mono {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9688rem;
  font-weight: 620;
  letter-spacing: -0.006em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease),
    color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }

.btn--dark {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: #fff;
}
.btn--dark:hover { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }

.btn--ghost {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--blue-800);
}
.btn--ghost:hover { border-color: var(--blue-600); color: var(--blue-700); background: var(--blue-050); }

.btn--onblue {
  background: #fff;
  border-color: #fff;
  color: var(--blue-800);
}
.btn--onblue:hover { background: var(--blue-050); color: var(--blue-900); }

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }

.btn--sm { padding: 9px 16px; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--blue-600);
}
.arrow-link svg { transition: transform 0.16s var(--ease); flex: none; }
.arrow-link:hover svg { transform: translateX(3px); }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-300);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--blue-900);
  flex: none;
}
.brand:hover { color: var(--blue-800); }
.brand-mark { flex: none; }
.brand-name {
  font-size: 1.2rem;
  font-weight: 730;
  letter-spacing: 0.06em;
}
.brand-sub {
  display: block;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 1px;
}

.nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--gray-700);
  white-space: nowrap;
  transition: color 0.14s var(--ease), background-color 0.14s var(--ease);
}
.nav-link:hover { color: var(--blue-800); background: var(--gray-100); }
.nav-link[aria-current="page"] { color: var(--blue-700); font-weight: 640; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}
.lang-switch a {
  padding: 6px 11px;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  transition: background-color 0.14s var(--ease), color 0.14s var(--ease);
}
.lang-switch a:hover { background: var(--gray-100); color: var(--blue-800); }
.lang-switch a[aria-current="true"] {
  background: var(--blue-800);
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  color: var(--blue-800);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--gray-300);
  background: var(--white);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0 18px; }
.mobile-nav li { margin: 0; }
.mobile-nav a {
  display: block;
  padding: 13px 24px;
  font-size: 1.0625rem;
  font-weight: 560;
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav a[aria-current="page"] { color: var(--blue-700); }
.mobile-nav .mobile-cta { padding: 18px 24px 4px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-actions { order: 3; }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .header-actions .btn { display: none; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue-900);
  color: #E9EFF7;
  background-image:
    radial-gradient(1100px 560px at 78% 0%, rgba(42, 125, 219, 0.38), transparent 62%),
    radial-gradient(760px 520px at 0% 100%, rgba(16, 63, 115, 0.85), transparent 68%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 520px at 30% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 520px at 30% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 3vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 3rem + 4vw, 104px);
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero-industries {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 20px;
  font-size: 0.875rem;
  font-weight: 620;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8FBEF2;
}
.hero-industries span:not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  color: rgba(143, 190, 242, 0.55);
}
.hero p.lead { color: #C4D8EF; max-width: 56ch; }
.hero .eyebrow { color: #8FBEF2; }

.hero-note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9375rem;
  color: #A9C4E4;
  max-width: 52ch;
}

.hero-visual { position: relative; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
}

/* --- Page hero (interior) ---------------------------------------------- */
.page-hero {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-300);
  padding-block: clamp(40px, 2.4rem + 2.6vw, 76px);
}
.page-hero--blue {
  background: var(--blue-800);
  border-bottom: 0;
  color: #DCE7F4;
  background-image: radial-gradient(900px 400px at 82% -20%, rgba(42, 125, 219, 0.34), transparent 66%);
}
.page-hero--blue h1 { color: #fff; }
.page-hero--blue .lead { color: #C4D8EF; }
.page-hero--blue .eyebrow { color: #8FBEF2; }
.page-hero .lead { max-width: 62ch; }
.page-hero h1 { margin-bottom: 14px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--gray-500);
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; opacity: 0.5; }
.breadcrumbs a { color: var(--gray-500); font-weight: 550; }
.breadcrumbs a:hover { color: var(--blue-700); }
.page-hero--blue .breadcrumbs,
.page-hero--blue .breadcrumbs a { color: #9DBBDE; }
.page-hero--blue .breadcrumbs a:hover { color: #fff; }

/* --- Grid systems ------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 3vw, 60px);
  align-items: center;
}
/* Five service cards: one row on wide screens, wrapping down gracefully. */
.grid--services {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 16px;
}
.grid--services .card { padding: 22px 20px; }
.grid--services .card h3 { font-size: 1.0625rem; }
.grid--services .card p { font-size: 0.9063rem; }
.grid--services .card-icon { width: 38px; height: 38px; margin-bottom: 14px; }

.grid--sidebar {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 3vw, 56px);
  align-items: start;
}

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Five service cards: one row on wide screens, wrapping down gracefully. */
.grid--services {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 16px;
}
.grid--services .card { padding: 22px 20px; }
.grid--services .card h3 { font-size: 1.0625rem; }
.grid--services .card p { font-size: 0.9063rem; }
.grid--services .card-icon { width: 38px; height: 38px; margin-bottom: 14px; }

.grid--sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* --- Cards -------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--gray-700); font-size: 0.9688rem; }
.card > :last-child { margin-bottom: 0; }
.card--link:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card--link .arrow-link { margin-top: auto; padding-top: 18px; }
.card--flat { border-color: var(--gray-300); background: var(--gray-100); }
.card--onblue {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.16);
  color: #D5E3F3;
}
.card--onblue p { color: #BCD2EA; }
.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: var(--blue-050);
  color: var(--blue-600);
  border: 1px solid var(--blue-100);
  flex: none;
}
.card--onblue .card-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #BFD8F5;
}
.card-num {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue-600);
  margin-bottom: 10px;
}

/* Value prop tiles */
.value-card {
  padding: 26px 24px;
  border-top: 3px solid var(--blue-600);
  background: var(--white);
  border-right: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
  border-left: 1px solid var(--gray-300);
  border-radius: 0 0 var(--radius) var(--radius);
}
.value-card h3 { font-size: 1.125rem; margin-bottom: 6px; }
.value-card p { font-size: 0.9375rem; color: var(--gray-700); }

/* --- Lists -------------------------------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.9688rem;
  color: var(--gray-700);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.52em;
  width: 12px;
  height: 6px;
  border: 2px solid var(--blue-600);
  border-top: 0;
  border-right: 0;
  border-radius: 1px;
  transform: rotate(-45deg);
}
.section--blue .check-list li { color: #C6D8EE; }
.section--blue .check-list li::before { border-color: #6FA8EA; }

.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li {
  padding: 9px 0 9px 24px;
  border-bottom: 1px solid var(--gray-300);
  font-size: 0.9375rem;
  color: var(--gray-700);
  position: relative;
  margin: 0;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
}
.tick-list li:last-child { border-bottom: 0; }

.cross-list { list-style: none; padding: 0; margin: 0; }
.cross-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.9375rem;
  color: var(--gray-700);
}
.cross-list li::before {
  content: "×";
  position: absolute;
  left: 4px;
  top: -1px;
  font-size: 1.15rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--accent-amber);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 0 26px;
}

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip-row li { margin: 0; }
.chip {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  background: var(--white);
  font-size: 0.8438rem;
  font-weight: 550;
  color: var(--gray-700);
}
.section--blue .chip {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: #CFE0F3;
}
.chip--accent { border-color: var(--blue-100); background: var(--blue-050); color: var(--blue-700); }

/* --- Stat / metric ------------------------------------------------------ */
.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--gray-300);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
}
.metric {
  background: var(--white);
  padding: 22px 20px;
}
.metric dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.metric dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--blue-900);
  line-height: 1.4;
}

/* --- Steps -------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
  border-top: 2px solid var(--gray-300);
}
.step {
  position: relative;
  padding: 30px 26px 8px 0;
  counter-increment: step;
}
.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 46px;
  height: 2px;
  background: var(--blue-600);
}
.step-num {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-600);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.step p { font-size: 0.9375rem; color: var(--gray-700); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* --- Problem list ------------------------------------------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 1px;
  background: var(--gray-300);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
}
.problem {
  background: var(--white);
  padding: 20px 22px;
  font-size: 0.9375rem;
  color: var(--gray-700);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.problem svg { flex: none; color: var(--accent-amber); margin-top: 2px; }

/* --- Pricing ------------------------------------------------------------ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 1080px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.plan--featured {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 1px var(--blue-600), var(--shadow);
}
.plan-badge {
  position: absolute;
  top: -11px;
  left: 22px;
  background: var(--blue-600);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.plan { position: relative; }
.plan-name {
  font-size: 0.8125rem;
  font-weight: 660;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.plan-price {
  margin-bottom: 0;
  font-variant-numeric: tabular-nums;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--blue-900);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.plan-price small {
  display: block;
  font-size: 0.8125rem;
  font-weight: 550;
  letter-spacing: 0;
  color: var(--gray-500);
  margin-top: 4px;
}
.plan-from {
  margin-bottom: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  display: block;
  margin-bottom: 4px;
}
.plan-desc {
  margin: 16px 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-300);
  font-size: 0.9375rem;
  color: var(--gray-700);
}
.plan .check-list { margin-bottom: 22px; }
.plan .check-list li { font-size: 0.9063rem; }
.plan .btn { margin-top: auto; }

/* Keep name, price, description, features and CTA on a shared baseline across
   the row. Subgrid where supported; a min-height fallback otherwise. */
@media (min-width: 621px) {
  .plan-name { min-height: 3.3em; }
  .plan-desc { min-height: 6.6em; }
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 621px) {
    .pricing-grid { grid-template-rows: repeat(6, auto); }
    .plan { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; }
    .plan-name, .plan-desc { min-height: 0; }
    .plan .btn { align-self: end; }
  }
}

.price-note {
  margin-top: 26px;
  padding: 18px 22px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9063rem;
  color: var(--gray-700);
}

/* --- On-demand engagement band ------------------------------------------ */
.ondemand {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin-top: 22px;
  padding: clamp(24px, 2vw, 34px);
  border: 1px solid var(--gray-300);
  border-left: 3px solid var(--blue-800);
  border-radius: var(--radius);
  background: var(--gray-100);
}
.ondemand h3 { margin-bottom: 10px; }
.ondemand h4 {
  font-size: 0.75rem;
  font-weight: 660;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.ondemand p { color: var(--gray-700); }
.ondemand-price {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.026em;
  color: var(--blue-900);
  line-height: 1.15;
  margin-bottom: 16px;
}
.ondemand-price small {
  display: block;
  margin-top: 5px;
  font-size: 0.8125rem;
  font-weight: 550;
  letter-spacing: 0;
  color: var(--gray-500);
}
.ondemand .btn-row { margin-top: 22px; }
.ondemand-side .tick-list li { border-bottom-color: #DDE3EC; }
@media (max-width: 860px) { .ondemand { grid-template-columns: 1fr; } }

/* --- Comparison table --------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-300); border-radius: var(--radius); }
table.data {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--white);
}
table.data th,
table.data td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--gray-300);
  vertical-align: top;
}
table.data thead th {
  background: var(--gray-100);
  font-size: 0.75rem;
  font-weight: 660;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-800);
  white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody th { font-weight: 600; color: var(--blue-900); }

/* --- Operating model diagram ------------------------------------------- */
.opmodel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  justify-items: center;
  text-align: center;
}
.opmodel-node {
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius);
  padding: 18px 22px;
}
.opmodel-node--client {
  background: var(--white);
  border: 1px solid var(--gray-300);
}
.opmodel-node--mavipa {
  background: var(--blue-800);
  color: #fff;
  border: 1px solid var(--blue-700);
  box-shadow: var(--shadow);
}
.opmodel-node--mavipa .opmodel-title { color: #fff; }
.opmodel-node--mavipa .opmodel-sub { color: #B9D2EE; }
.opmodel-title {
  font-size: 0.75rem;
  font-weight: 680;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 6px;
}
.opmodel-sub { font-size: 0.9375rem; color: var(--gray-700); }
.opmodel-arrow {
  width: 2px;
  height: 34px;
  background: linear-gradient(var(--gray-300), var(--blue-500));
  position: relative;
}
.opmodel-arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--blue-500);
}
.opmodel-exec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 900px;
}
.opmodel-exec div {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 13px 10px;
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--gray-700);
}

/* --- Control tower ------------------------------------------------------ */
.tower-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.tower-item {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 16px 16px 14px;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.tower-item:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.tower-item .mono { color: #8FBEF2; display: block; margin-bottom: 8px; }
.tower-item strong { display: block; color: #fff; font-size: 0.9688rem; font-weight: 600; }
.tower-item span { font-size: 0.8438rem; color: #A9C4E4; }

/* --- Logos / tech ------------------------------------------------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--gray-300);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
}
.tech-item {
  background: var(--white);
  padding: 18px 14px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--gray-700);
}

/* --- Callout ------------------------------------------------------------ */
.callout {
  border-left: 3px solid var(--blue-600);
  background: var(--blue-050);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
  color: var(--blue-900);
}
.callout--warn {
  border-left-color: var(--accent-amber);
  background: #FEF6EC;
  color: #6B3A05;
}
.callout strong { color: inherit; }

.statement {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 620;
  line-height: 1.34;
  letter-spacing: -0.02em;
  color: var(--blue-900);
  max-width: 22ch;
}
.section--blue .statement { color: #fff; }

.pull-quote {
  margin: 0;
  padding: 0;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 560;
  line-height: 1.45;
  letter-spacing: -0.016em;
  color: var(--blue-800);
}

/* --- Article / prose ---------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { color: var(--gray-700); }
.prose .callout { margin: 1.8em 0; }
.prose table.data { min-width: 0; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 0.8438rem;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.article-meta .chip { font-size: 0.75rem; padding: 3px 10px; }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--gray-100);
}
.toc h2 {
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 9px; }
.toc a { font-size: 0.9063rem; font-weight: 540; color: var(--gray-700); }
.toc a:hover { color: var(--blue-700); }

.insight-card { padding: 0; overflow: hidden; }
.insight-card .insight-body { padding: 24px 26px; display: flex; flex-direction: column; flex: 1; }
.insight-card .insight-top {
  height: 6px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
}
.insight-card--soon .insight-top { background: var(--gray-300); }
.insight-card--soon { background: var(--gray-100); }

/* --- Forms -------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 7px;
}
.field .req { color: var(--blue-600); }
.field .hint { font-size: 0.8125rem; color: var(--gray-500); margin-top: 6px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-size: 0.9688rem;
  color: var(--gray-900);
  transition: border-color 0.14s var(--ease), box-shadow 0.14s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%236B7280' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(22, 102, 193, 0.16);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #B42318; }
.field .error {
  font-size: 0.8125rem;
  color: #B42318;
  margin-top: 6px;
  font-weight: 550;
}

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--gray-700);
}
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue-600); }

.form-status {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  border: 1px solid;
}
.form-status--ok { background: #ECFDF3; border-color: #A6E9C2; color: #05603A; }
.form-status--err { background: #FEF3F2; border-color: #FDA29B; color: #912018; }

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 30px;
}
fieldset legend {
  padding: 0;
  font-size: 0.75rem;
  font-weight: 680;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 16px;
}

/* --- Assessment box ----------------------------------------------------- */
.assess {
  border: 1px solid var(--blue-100);
  background: var(--blue-050);
  border-radius: var(--radius);
  padding: 28px;
}
.assess ul { columns: 2; column-gap: 26px; }
@media (max-width: 620px) { .assess ul { columns: 1; } }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  background: var(--blue-800);
  color: #DCE7F4;
  background-image:
    radial-gradient(760px 340px at 85% -30%, rgba(42, 125, 219, 0.4), transparent 66%),
    radial-gradient(620px 300px at 0% 130%, rgba(7, 30, 59, 0.7), transparent 70%);
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #C4D8EF; max-width: 60ch; }
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 32px;
  align-items: center;
  padding-block: clamp(44px, 2.4rem + 2.6vw, 76px);
}
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--blue-900);
  color: #9FBADB;
  font-size: 0.9063rem;
  padding-block: clamp(44px, 2.4rem + 2vw, 68px) 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand-sub { color: #7FA0C6; }
.footer-desc { margin: 16px 0 0; max-width: 34ch; color: #9FBADB; font-size: 0.9063rem; }

.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 660;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #9FBADB; }
.site-footer a:not(.btn) { color: #BBD1EB; }
.site-footer a:not(.btn):hover { color: #fff; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8438rem;
  color: #7FA0C6;
}
.footer-bottom .lang-switch {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}
.footer-bottom .lang-switch a { color: #9FBADB; }
.footer-bottom .lang-switch a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.footer-bottom .lang-switch a[aria-current="true"] { background: rgba(255, 255, 255, 0.14); color: #fff; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: #9FBADB; }
.footer-bottom a:hover { color: #fff; }
.footer-spacer { margin-left: auto; }
@media (max-width: 700px) { .footer-spacer { margin-left: 0; } }

/* --- Visual widgets (SVG wrappers) -------------------------------------- */
.viz {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.viz--light {
  border-color: var(--gray-300);
  background: var(--white);
  box-shadow: var(--shadow);
}
.viz svg { display: block; width: 100%; height: auto; }

.viz-caption {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: #A9C4E4;
  text-align: center;
}
.viz--light .viz-caption { color: var(--gray-500); }

/* --- Hero console entrance sequence --------------------------------------
   Runs once on load (not scroll-triggered, since the hero is visible
   immediately). Frame fades up, then KPIs, gantt rows and the S-curve
   draw in in sequence; the LIVE badge and the curve's latest-data dot
   keep a slow, continuous pulse afterwards. All of it collapses under
   prefers-reduced-motion via the existing global rule. */
.hero-visual .viz { animation: cxFadeUp 0.7s var(--ease) both; }
@keyframes cxFadeUp {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.cx-kpi {
  opacity: 0;
  animation: cxFadeUp 0.5s var(--ease) both;
  animation-delay: calc(0.35s + var(--i, 0) * 0.09s);
}
.cx-row {
  opacity: 0;
  animation: cxFadeUp 0.45s var(--ease) both;
  animation-delay: calc(0.8s + var(--i, 0) * 0.12s);
}
.cx-bar-fill {
  transform-box: fill-box;
  transform-origin: 0% 50%;
  transform: scaleX(0);
  animation: cxGrow 0.6s var(--ease) both;
  animation-delay: calc(1.05s + var(--i, 0) * 0.12s);
}
@keyframes cxGrow { to { transform: scaleX(1); } }
.cx-diamond {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: cxPop 0.35s var(--ease) both;
  animation-delay: calc(1.3s + var(--i, 0) * 0.12s);
}
@keyframes cxPop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}
.cx-today { opacity: 0; animation: cxFadeUp 0.5s var(--ease) 1.9s both; }
.cx-curve-line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: cxDraw 1.2s var(--ease) 2.1s both;
}
@keyframes cxDraw { to { stroke-dashoffset: 0; } }
.cx-curve-fade {
  opacity: 0;
  animation: cxFadeIn 0.6s var(--ease) 2.5s both;
}
@keyframes cxFadeIn { to { opacity: 0.72; } }
.cx-live-dot, .cx-curve-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: cxPulse 2.2s ease-in-out infinite;
}
.cx-live-dot { animation-delay: 1s; }
.cx-curve-dot { opacity: 0; animation: cxPop 0.35s var(--ease) 3.3s forwards,
  cxPulse 2.2s ease-in-out 3.65s infinite; }
@keyframes cxPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* --- Reveal animation --------------------------------------------------- */
/* Content is visible by default. The entrance transition is only applied when
   scripting is available, so nothing is ever hidden by a failed script.
   --i (set per-item in the markup) staggers siblings so groups of cards
   appear one after another instead of all at once. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --- Card hover + ambient motion ----------------------------------------- */
.value-card, .card--flat, .plan, .tech-item {
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.value-card:hover, .card--flat:hover, .tech-item:hover, .plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
/* A very slow, subtly offset breathing motion on card icons — reads as
   "alive" without competing with the text for attention. Off entirely
   under prefers-reduced-motion via the global rule below. */
.card-icon {
  animation: iconBreathe 5.5s ease-in-out calc(var(--i, 0) * 0.4s) infinite;
}
@keyframes iconBreathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

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

/* --- Utilities ---------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 44px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.text-center { text-align: center; }
.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;
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
}
