/* QBMConnect.com - design system aligned with bisaim.com and qbmis.com. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --ink: #0f1a2a;
  --ink-2: #233247;
  --ink-deep: #08111f;
  --muted: #5e6b7b;
  --muted-2: #8693a3;
  --paper: #eff3f8;
  --paper-soft: #e1e8f1;
  --mist: #eff3f8;
  --mist-2: #e1e8f1;
  --white: #ffffff;
  --line: #d8e0eb;
  --line-2: #c1cedc;
  --navy: #143a5a;
  --navy-2: #1c4d72;
  --navy-3: #0e2940;
  --blue: #1f6fb2;
  --teal: #1c7388;
  --teal-deep: #14566c;
  --mint: #3aa8c2;
  --accent: #a06912;
  --accent-bright: #c98a2c;
  --accent-soft: #faecc4;
  --accent-tint: #fff7e3;
  --accent-rgb: 160, 105, 18;
  --amber: var(--accent-bright);
  --coral: #d95f43;
  --shadow-sm: 0 2px 8px rgba(21, 32, 51, 0.06), 0 1px 2px rgba(21, 32, 51, 0.04);
  --shadow-md: 0 12px 28px rgba(21, 32, 51, 0.10), 0 4px 8px rgba(21, 32, 51, 0.05);
  --shadow-lg: 0 28px 60px rgba(21, 32, 51, 0.16), 0 10px 20px rgba(21, 32, 51, 0.08);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max: 1220px;
  --grad-hero: radial-gradient(120% 80% at 100% 0%, rgba(31, 111, 178, 0.32) 0%, rgba(14, 41, 64, 0) 60%),
               radial-gradient(80% 60% at 0% 100%, rgba(var(--accent-rgb), 0.18) 0%, rgba(14, 41, 64, 0) 55%),
               linear-gradient(160deg, #0e2940 0%, #143a5a 45%, #1c4d72 100%);
  --grad-band: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
  --grad-navy: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  --grad-cta: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(242, 169, 59, 0.9);
  outline-offset: 3px;
}

p { margin: 0 0 16px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: 0; }
h1 { font-size: clamp(40px, 6vw, 70px); max-width: 920px; font-weight: 800; line-height: 1.04; }
h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; line-height: 1.08; }
h3 { font-size: 19px; font-weight: 700; }
h4 { font-size: 16px; }

ul { margin: 0; padding: 0; }

code {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ─── Topline ─────────────────────────────────────────────────────────── */
.topline {
  background: var(--navy-3);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.topline .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}
.topline a { color: inherit; }
.topline a:hover { color: var(--amber); }

/* ─── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(216, 224, 235, 0.6);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 210px;
  color: var(--ink);
  font-weight: 700;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.brand strong {
  display: block;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: 0;
}
.brand strong + span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
}
.main-nav a {
  padding: 10px 14px;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--navy); background: var(--mist); }
.main-nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--mist);
}
.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  content: "";
  border-radius: 2px;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-primary {
  color: var(--white);
  background: var(--grad-navy);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(20, 58, 90, 0.28);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--navy-2), var(--teal));
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 10px 26px rgba(21, 32, 51, 0.32);
}
.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover,
.btn-secondary:focus-visible { background: rgba(255, 255, 255, 0.14); color: var(--white); border-color: var(--white); }
.btn-outline {
  border-color: rgba(255, 255, 255, 0.56);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}
.btn-outline:hover,
.btn-outline:focus-visible { background: rgba(255, 255, 255, 0.22); color: var(--white); }
.btn-light {
  border-color: var(--line);
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover,
.btn-light:focus-visible {
  background: var(--paper);
  border-color: var(--line-2);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}

/* ─── Eyebrows & section heads ─────────────────────────────────────────── */
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}
.section-kicker { color: var(--accent); }
.hero .eyebrow { color: var(--amber); }

.section { padding: 96px 0; }
.section-muted { background: var(--mist); }
.section-dark { background: var(--navy-3); color: var(--white); }
.section-dark p,
.section-dark .section-head p { color: rgba(255, 255, 255, 0.78); }
.section-dark .eyebrow,
.section-dark .section-kicker { color: var(--amber); }

.section-head {
  max-width: 780px;
  margin-bottom: 44px;
}
.section-head p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 12px;
}

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  color: var(--white);
  background: var(--grad-hero);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.75;
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  padding: clamp(76px, 10vw, 116px) 0 clamp(72px, 8vw, 104px);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.05;
}
.hero-lead {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}
.hero-bullets li::before {
  content: "✓";
  color: var(--mint);
  font-weight: 800;
  margin-right: 6px;
}

/* Hub visual that replaces the rotated-line orbit. */
.hub {
  position: relative;
  aspect-ratio: 1 / 0.92;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hub-svg { position: absolute; inset: 26px; width: calc(100% - 52px); height: calc(100% - 52px); }
.hub-svg line { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.5; stroke-dasharray: 4 6; }
.hub-node {
  position: absolute;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  min-width: 168px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  z-index: 2;
}
.hub-node:hover { transform: translateY(-2px); color: var(--ink); }
.hub-node img { width: 30px; height: 30px; margin-bottom: 4px; }
.hub-node-tag {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.hub-node strong { font-size: 15px; color: var(--navy); }
.hub-node small { color: var(--muted); font-size: 12px; }
.hub-center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--grad-navy);
  color: var(--white);
  text-align: left;
}
.hub-center:hover { color: var(--white); }
.hub-center strong, .hub-center .hub-node-tag { color: var(--white); }
.hub-center small { color: rgba(255, 255, 255, 0.82); }
.hub-tl { left: 4%; top: 6%; }
.hub-tr { right: 4%; top: 6%; }
.hub-bl { left: 4%; bottom: 6%; }
.hub-br { right: 4%; bottom: 6%; }

/* ─── Trust strip ─────────────────────────────────────────────────────── */
.trust-strip {
  background: var(--grad-band);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.trust-item {
  padding: 22px;
  background: var(--paper);
  text-align: center;
}
.trust-item strong {
  display: block;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 4px;
}
.trust-item span {
  color: var(--muted);
  font-size: 13.5px;
}

/* ─── Grids & cards ───────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 111, 178, 0.22);
  box-shadow: var(--shadow-md);
}
.card p { color: var(--muted); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(31, 111, 178, 0.10);
  color: var(--blue);
}
.card-icon img { width: 32px; height: 32px; }

.tag,
.module-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(31, 111, 178, 0.10);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.tag-mint { color: var(--teal); background: rgba(58, 168, 194, 0.12); }
.tag-amber { color: #b87a14; background: rgba(242, 169, 59, 0.16); }

.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.app-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.app-card-head img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
}
.app-card-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}
.app-card p { margin: 0; }
.app-card .btn { align-self: flex-start; margin-top: 6px; }

/* Feature list with mint bullet, used in split-section panels. */
.feature-list {
  display: grid;
  gap: 12px;
  list-style: none;
}
.feature-list > div,
.feature-list > li {
  position: relative;
  padding: 14px 16px 14px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.feature-list > div::before,
.feature-list > li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}
.feature-list strong {
  display: block;
  color: var(--navy);
  margin-bottom: 2px;
}
.feature-list span { color: var(--muted); font-size: 14.5px; }

.check-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin-top: 12px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(31, 111, 178, 0.12);
  color: var(--blue);
  font-weight: 800;
  font-size: 12px;
}

/* ─── Split section (copy + side panel) ───────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

/* ─── Visual / screenshot cards ───────────────────────────────────────── */
.visual-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.visual-frame img { width: 100%; height: auto; }

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.visual-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.visual-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.visual-card h3 { margin: 18px 18px 8px; color: var(--navy); }
.visual-card p { margin: 0 18px 18px; color: var(--muted); }

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.screenshot-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.screenshot-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.screenshot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.screenshot-card h3 { margin: 18px 18px 6px; color: var(--navy); }
.screenshot-card p { margin: 0 18px 18px; color: var(--muted); }

/* ─── Flow / numbered steps ───────────────────────────────────────────── */
.flow {
  display: grid;
  gap: 14px;
  counter-reset: step;
}
.flow-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.flow-step::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--grad-navy);
  color: var(--white);
  font-weight: 800;
}
.flow-step strong { display: block; color: var(--navy); margin-bottom: 4px; }
.flow-step span { color: var(--muted); font-size: 14.5px; }

/* ─── Tables ──────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
th, td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th { color: var(--navy); background: var(--paper-soft); font-weight: 700; }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* Access map keeps the public route and private customer side visually separate. */
.deployment-map {
  background: var(--paper);
}
.map-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}
.map-column {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.map-column h2 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 6px;
}
.map-column > div {
  background: var(--paper);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 14.5px;
}
.map-column.private > div { background: rgba(31, 111, 178, 0.10); }
.map-bridge {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: var(--grad-cta);
  color: var(--white);
  text-align: center;
  min-width: 160px;
}
.map-bridge span {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

/* ─── Note / quiet panels ─────────────────────────────────────────────── */
.note-panel {
  background: linear-gradient(180deg, #fffaf1, var(--accent-tint));
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.note-panel h2 { color: var(--navy); margin-bottom: 8px; font-size: 22px; }
.note-panel p { color: var(--ink); margin: 0; }

/* Proof section uses client marks and concise quotes without adding a heavy case-study page. */
.proof-section {
  background: var(--white);
}
.client-logo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}
.client-logo-row img {
  width: 100%;
  max-height: 82px;
  object-fit: contain;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.company-proof {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--white), var(--accent-tint));
  box-shadow: var(--shadow-sm);
}
.company-proof h3 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 22px;
}
.company-proof p {
  max-width: 760px;
  color: var(--muted);
  margin: 0;
}
.company-proof p a {
  color: var(--blue);
  font-weight: 800;
}
.company-proof .btn {
  flex: 0 0 auto;
}
.quote-grid,
.evidence-grid,
.role-grid,
.rule-grid,
.contact-grid {
  display: grid;
  gap: 22px;
}
.quote-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.quote-grid blockquote {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
}
.role-grid,
.rule-grid,
.evidence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rule-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.role-grid article,
.rule-grid article,
.evidence-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.role-grid h2,
.rule-grid h2,
.evidence-grid h3 {
  color: var(--navy);
  margin-bottom: 8px;
}
.role-grid p,
.rule-grid p,
.evidence-grid p {
  color: var(--muted);
  margin: 0;
}
.compact-list {
  margin: 0;
}

/* Contact panel gives every page a direct buyer/support route. */
.contact-section {
  background: var(--paper);
}
.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
}
.contact-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.contact-card a {
  color: var(--blue);
  font-weight: 800;
}
.contact-card span {
  color: var(--muted);
}
.erp-cta {
  background: var(--grad-cta);
}

/* ─── Product page hero (sub-pages) ───────────────────────────────────── */
.page-hero {
  color: var(--white);
  background: var(--grad-hero);
  padding: clamp(56px, 9vw, 96px) 0 clamp(40px, 6vw, 64px);
}
.page-hero h1 { color: var(--white); }
.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.5vw, 19px);
  margin-top: 14px;
}
.page-hero .eyebrow { color: var(--amber); }
.breadcrumb {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--amber); }

.product-hero { padding-top: clamp(56px, 8vw, 84px); padding-bottom: clamp(48px, 7vw, 72px); }
.product-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.product-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin-bottom: 18px;
  background: var(--white);
  padding: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* In-hero device mock used on product pages. */
.screen-preview, .clock-preview {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.screen-topbar { display: flex; gap: 6px; margin-bottom: 14px; }
.screen-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.metric-row, .clock-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.clock-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-row div, .clock-status div {
  background: var(--paper);
  border-radius: 8px;
  padding: 12px;
}
.metric-row small, .clock-status small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.metric-row strong, .clock-status strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
}
.chart-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 140px;
  padding: 14px;
  background: var(--paper);
  border-radius: 8px;
}
.chart-bars span {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--blue), var(--mint));
}
.report-tabs { display: flex; gap: 8px; margin-top: 12px; }
.report-tabs span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 111, 178, 0.10);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.clock-face {
  background: var(--grad-navy);
  border-radius: 10px;
  padding: 22px;
  color: var(--white);
  text-align: center;
  margin-bottom: 14px;
}
.clock-face small { color: rgba(255, 255, 255, 0.7); display: block; font-size: 12px; }
.clock-face strong {
  display: block;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  margin: 4px 0;
}
.clock-face span { color: var(--accent-bright); font-size: 13px; font-weight: 700; }
.preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius);
  background: var(--grad-navy);
  color: var(--white);
  font-weight: 800;
}

/* ─── CTA band ────────────────────────────────────────────────────────── */
.cta-band {
  padding: 56px 0;
  color: var(--white);
  background: var(--grad-cta);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-inner h2 { color: var(--white); margin-bottom: 8px; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, 0.85); }

/* ─── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  padding: 64px 0 30px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(170px, 0.6fr));
  gap: 48px;
}
.site-footer h3, .site-footer h4 {
  color: var(--white);
  margin-bottom: 12px;
}
.site-footer h3 { font-size: 22px; letter-spacing: 0; }
.site-footer h4 {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.site-footer p { color: rgba(255, 255, 255, 0.70); }
.footer-links {
  display: grid;
  gap: 9px;
  list-style: none;
}
.footer-links a { color: rgba(255, 255, 255, 0.82); }
.footer-links a:hover { color: var(--amber); }
.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero .container,
  .product-hero .container,
  .split,
  .map-wrap,
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .client-logo-row,
  .role-grid,
  .rule-grid,
  .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .section { padding: 84px 0; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-actions { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(21, 32, 51, 0.08);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 24px; width: 100%; }
  .main-nav a[aria-current="page"] { border-bottom: 0; background: rgba(31, 111, 178, 0.10); }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .topline .container { flex-direction: column; gap: 4px; padding: 10px 20px; text-align: center; }
  .visual-grid,
  .screenshot-grid,
  .screenshot-grid-wide,
  .quote-grid,
  .client-logo-row,
  .company-proof,
  .role-grid,
  .rule-grid,
  .evidence-grid,
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .company-proof { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 560px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .section { padding: 70px 0; }

  h1,
  h2,
  h3,
  p,
  li,
  a,
  span,
  strong,
  small {
    overflow-wrap: break-word;
  }

  .topline .container {
    align-items: center;
    padding: 8px 16px;
  }

  .topline span {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .hero .container {
    display: block;
    padding: 56px 0 60px;
  }

  .hero .container > *,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .hero-bullets {
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  .hero h1 { font-size: 32px; }

  .hero-lead {
    max-width: 100%;
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn,
  .btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .hero-bullets {
    display: grid;
    gap: 8px;
  }

  .trust-item {
    padding: 22px 16px;
  }

  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .hub { display: none; }
  .metric-row, .clock-status { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .hub-node:hover { transform: none; }
}
