/* ═══════════════════════════════════════════════════════════════
   DataVisions.ai Marketing Site — Design Tokens
   Mirrors the platform's industrial system: black + var(--accent),
   sharp corners (0 radius), Helvetica Neue, mono accents.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:           #000000;
  --bg-2:         #0a0a0a;
  --panel:        #141414;
  --panel-2:      #191919;
  --panel-3:      #1e1e1e;
  --border-d:     #303030;
  --border-d-2:   rgba(255,255,255,0.10);
  --hairline-d:   rgba(255,255,255,0.06);

  --light:        #f9f9f9;
  --light-2:      #f3f3f3;
  --pale:         #e9e9e9;
  --border-l:     #e5e7eb;
  --border-l-2:   #d9d9d9;

  --accent:       #C2A878;
  --accent-h:     #A88F62;
  --teal:         #004665;
  --teal-l:       #5cc8ff;
  --bluegray:     #17111b;
  --success:      #27AE60;
  --danger:       #dc2626;

  --t-on-dark:    #ffffff;
  --t-on-dark-2:  #d9d9d9;
  --t-on-dark-3:  #999999;
  --t-on-dark-4:  #6b6b6b;
  --t-on-light:   #1a1a1a;
  --t-on-light-2: #4b5563;
  --t-on-light-3: #6b7280;
  --t-on-light-4: #9ca3af;

  --sans: 'Helvetica Neue', helvetica, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Consolas', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--t-on-light);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── App shell ─────────────────────────────────────────────── */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; }

/* ── Top bar (announcement / sub-nav) ───────────────────────── */
.topbar {
  background: #000;
  color: var(--t-on-dark-2);
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-d);
}
.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 7px 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar-mark { width: 3px; height: 12px; background: var(--accent); }
.topbar-text strong { color: var(--accent); font-weight: 700; }
.topbar-spacer { flex: 1; }
.topbar-link {
  color: var(--t-on-dark-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}
.topbar-link:hover { color: var(--accent); }
.topbar-sep { color: var(--border-d); }

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  background: #000;
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  height: 112px;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.logo-mark {
  width: 8px;
  height: 32px;
  background: var(--accent);
  flex-shrink: 0;
}
.logo-text {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  line-height: 1.1;
}
.logo-text .dot { color: var(--accent); }
.logo-image {
  height: 88px;
  width: auto;
  aspect-ratio: 720 / 220;
  display: block;
  flex-shrink: 0;
}
.logo-image.footer { height: 100px; }
.logo-sub {
  font-size: 9px;
  font-family: var(--mono);
  color: var(--t-on-dark-3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}
.nav-items {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 16px;
}
.nav-item {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--t-on-dark-2);
  cursor: pointer;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: -0.1px;
}
.nav-item:hover { color: var(--accent); }
.nav-item.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.nav-item-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav-caret {
  display: inline-block;
  margin-left: 5px;
  font-size: 9px;
  transform: translateY(-1px);
  transition: transform 0.15s;
}
.nav-item-wrap:hover .nav-caret,
.nav-item-wrap.open .nav-caret { transform: translateY(-1px) rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  border: 1px solid #303030;
  border-top: 2px solid var(--accent);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.nav-item-wrap:hover .nav-dropdown,
.nav-item-wrap.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-item {
  padding: 10px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid transparent;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.nav-dropdown-item:hover {
  background: #0a0a0a;
  border-left-color: var(--accent);
}
.nav-dropdown-item .nav-dropdown-label {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.1px;
}
.nav-dropdown-item:hover .nav-dropdown-label { color: var(--accent); }
.nav-dropdown-item.active .nav-dropdown-label { color: var(--accent); }
.nav-dropdown-item.active { border-left-color: var(--accent); }
.nav-dropdown-item .nav-dropdown-sub {
  font-size: 10px;
  font-family: var(--mono);
  color: #6b7280;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.nav-spacer { flex: 1; }
.nav-cta {
  padding: 10px 18px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.1px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover { background: var(--accent-h); }
.nav-cta-ghost {
  padding: 10px 16px;
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-d);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.nav-cta-ghost:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle { display: none; }

/* ── Section primitives ────────────────────────────────────── */
.section { padding: 140px 0 96px; }
.section.compact { padding: 96px 0 64px; }
.section + .section { padding-top: 140px; } /* keep consistent top gap between consecutive sections */
.section.compact + .section.compact { padding-top: 96px; }
.section.dark { background: #000; color: var(--t-on-dark-2); }
.section.light { background: var(--light); color: var(--t-on-light-2); }
.section.white { background: #fff; color: var(--t-on-light-2); }
.section.panel { background: var(--panel-2); color: var(--t-on-dark-2); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.container.narrow { max-width: 1040px; }
.container.tight { max-width: 880px; }

/* Section H2 — signature yellow-underline style */
.h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #000;
  display: inline-block;
  max-width: min(100%, 920px);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  margin-bottom: 24px;
  line-height: 1.15;
}
.section.dark .h2, .section.panel .h2 { color: #fff; }

.h3 {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.section.dark .h3, .section.panel .h3 { color: #fff; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--accent);
}

.lede {
  font-size: 17px;
  line-height: 1.6;
  max-width: 720px;
  color: var(--t-on-light-2);
}
.section.dark .lede, .section.panel .lede { color: var(--t-on-dark-2); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.1px;
  cursor: pointer;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #000;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent-h); border-color: var(--accent-h); }
.btn.ghost { background: transparent; color: #000; border-color: #000; }
.btn.ghost:hover { background: #000; color: var(--accent); border-color: #000; }
.section.dark .btn.ghost, .section.panel .btn.ghost {
  color: #fff; border-color: rgba(255,255,255,0.4);
}
.section.dark .btn.ghost:hover, .section.panel .btn.ghost:hover {
  background: #fff; color: #000; border-color: #fff;
}
.btn.lg { padding: 14px 24px; font-size: 15px; }
.btn-arrow {
  width: 14px; height: 14px; display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border-l);
  padding: 28px;
  position: relative;
}
.card.top-bar { border-top: 3px solid var(--accent); }
.card.left-bar { border-left: 3px solid var(--accent); padding-left: 28px; }
.card.dark {
  background: var(--panel-2);
  border: 1px solid var(--border-d);
  color: var(--t-on-dark-2);
}
.card.dark.top-bar { border-top: 3px solid var(--accent); }
.card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.card.dark h4 { color: #fff; }
.card p { font-size: 14px; line-height: 1.6; color: var(--t-on-light-2); }
.card.dark p { color: var(--t-on-dark-2); }

/* ── Tags / chips ──────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border: 1px solid var(--border-l);
  background: #fff;
  color: var(--t-on-light-2);
}
.chip.yellow { background: var(--accent); border-color: var(--accent); color: #000; }
.chip.green { background: transparent; border-color: var(--success); color: var(--success); }
.chip.blue { background: transparent; border-color: var(--teal); color: var(--teal); }
.chip.dark { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.15); color: var(--t-on-dark-2); }
.chip.dark.yellow { background: var(--accent); border-color: var(--accent); color: #000; }
.chip.solid-dark { background: #000; color: var(--accent); border-color: #000; }
.chip-dot {
  width: 6px; height: 6px; background: currentColor;
}

/* ── Code blocks ───────────────────────────────────────────── */
.code-block {
  background: #000;
  color: var(--t-on-dark-2);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  padding: 24px 28px;
  border-left: 4px solid var(--accent);
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}
.code-block .kw { color: var(--accent); }
.code-block .str { color: var(--success); }
.code-block .cmt { color: #777; font-style: italic; }
.code-block .fn { color: var(--accent); }
.code-block .dec { color: var(--accent); }
.code-block .ty { color: var(--teal-l); }
.code-block .num { color: #f59e0b; }
.code-block .punct { color: #888; }
.code-inline {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--light-2);
  border: 1px solid var(--border-l);
  padding: 1px 6px;
  color: #000;
}
.section.dark .code-inline, .section.panel .code-inline {
  background: rgba(20,184,166,0.12);
  border-color: rgba(20,184,166,0.3);
  color: var(--accent);
}

/* ── Tables ────────────────────────────────────────────────── */
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-l);
  font-size: 13px;
}
.tbl th {
  background: #000;
  color: var(--accent);
  text-align: left;
  padding: 12px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent);
  font-family: var(--mono);
}
.tbl td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-l);
  vertical-align: top;
  color: var(--t-on-light-2);
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #fffaeb; }
.section.dark .tbl, .section.panel .tbl { border-color: var(--border-d); }
.section.dark .tbl td, .section.panel .tbl td {
  border-bottom-color: var(--border-d);
  color: var(--t-on-dark-2);
}
.section.dark .tbl tr:hover td, .section.panel .tbl tr:hover td { background: rgba(20,184,166,0.04); }

/* ── Grids ─────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: #000;
  color: var(--t-on-dark-3);
  border-top: 3px solid var(--accent);
  padding: 64px 0 32px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(6, 1fr);
  gap: 28px;
}
.footer-col h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--t-on-dark-2);
  font-size: 13px;
  cursor: pointer;
}
.footer-col a:hover { color: var(--accent); }
.footer-brand p {
  font-size: 13px;
  color: var(--t-on-dark-3);
  margin: 12px 0 16px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border-d);
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t-on-dark-4);
  letter-spacing: 0.5px;
}
.footer-bottom .sep { color: var(--border-d); }

/* ── Striped placeholder (for industrial photography) ──────── */
.placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      #1c1c1c 0 8px,
      #131313 8px 16px
    );
  border: 1px solid var(--border-d);
  color: var(--t-on-dark-3);
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
}
.placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(20,184,166,0.10), transparent 40%),
    radial-gradient(circle at 75% 70%, rgba(0,70,101,0.18), transparent 45%);
  pointer-events: none;
}
.placeholder .ph-label {
  background: #000;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  z-index: 1;
}
.placeholder.light {
  background:
    repeating-linear-gradient(
      135deg,
      #ededed 0 8px,
      #e3e3e3 8px 16px
    );
  border-color: var(--border-l-2);
  color: var(--t-on-light-2);
}
.placeholder.light .ph-label {
  background: #fff;
  color: #000;
  border-color: #000;
}

/* ── Architecture diagram (dark, mono labels, chips, connector lines) ── */
.arch {
  background: #000;
  border: 1px solid var(--border-d);
  padding: 32px;
  position: relative;
}
.arch-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
}
.arch-row:last-child { margin-bottom: 0; }
.arch-tier-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.arch-block {
  background: var(--panel-2);
  border: 1px solid var(--border-d);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--t-on-dark-2);
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.arch-block:hover { border-color: var(--accent); background: var(--panel-3); }
.arch-block.accent { border-left: 3px solid var(--accent); }
.arch-block.teal { border-left: 3px solid var(--teal-l); }
.arch-block .at {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.arch-block .title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: -0.1px;
  margin-bottom: 4px;
}
.arch-block .desc {
  color: var(--t-on-dark-3);
  font-size: 11px;
  font-family: var(--sans);
  line-height: 1.5;
}
.arch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}
.arch-chip {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  background: rgba(20,184,166,0.08);
  color: var(--accent);
  border: 1px solid rgba(20,184,166,0.25);
}
.arch-connector {
  height: 14px;
  position: relative;
  margin: -2px 0;
}
.arch-connector::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--accent);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20,184,166,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,184,166,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 70% 30%, rgba(0,0,0,1) 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, rgba(0,0,0,1) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Hero photo variant ─────────────────────────────────────── */
.hero--image { min-height: 640px; }
.hero--image .hero-grid-bg { opacity: 0.35; }
.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('images/home-hero.png');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Photo visible on the left; solid black on the right where text sits */
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.20) 0%,
      rgba(0,0,0,0.20) 32%,
      rgba(0,0,0,0.55) 46%,
      rgba(0,0,0,0.92) 58%,
      #000 70%,
      #000 100%
    ),
    linear-gradient(180deg,
      rgba(0,0,0,0.35) 0%,
      rgba(0,0,0,0) 22%,
      rgba(0,0,0,0) 78%,
      rgba(0,0,0,0.55) 100%
    );
}
.hero-inner--right {
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px) 40px;
  gap: 0;
  align-items: center;
}
.hero-inner--right .hero-content {
  grid-column: 2 / 3;
}
.hero-inner {
  position: relative;
  padding: 96px 32px 88px;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: 60px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero h1 .strike {
  position: relative;
  white-space: nowrap;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--t-on-dark-2);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-d);
}
.hero-meta-item .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero-meta-item .v {
  font-size: 13px;
  color: var(--t-on-dark-2);
  font-weight: 500;
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-art {
  position: relative;
}

/* Page header (non-hero pages) */
.page-header {
  background: #000;
  color: #fff;
  border-bottom: 4px solid var(--accent);
  padding: 72px 0 56px;
}
.page-header h1 {
  font-size: 48px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: #fff;
  margin-bottom: 18px;
  max-width: 900px;
}
.page-header h1 em { font-style: normal; color: var(--accent); }
.page-header .sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--t-on-dark-2);
  max-width: 720px;
}
.page-header-meta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ── Pillar grid (4 column) ────────────────────────────────── */
.pillar {
  padding: 28px;
  background: var(--panel-2);
  border: 1px solid var(--border-d);
  border-top: 3px solid var(--accent);
  position: relative;
}
.pillar .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.pillar h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
  line-height: 1.2;
}
.pillar p {
  color: var(--t-on-dark-2);
  font-size: 13px;
  line-height: 1.6;
}

/* ── Feature row (icon + text) ─────────────────────────────── */
.feat {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-d);
}
.feat:last-child { border-bottom: none; }
.feat-mark {
  width: 24px; height: 24px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 800;
  font-family: var(--mono);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.feat h5 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.1px;
}
.feat.light h5 { color: #000; }
.feat p {
  font-size: 13px;
  color: var(--t-on-dark-2);
  line-height: 1.55;
}
.feat.light p { color: var(--t-on-light-2); }
.feat.light { border-bottom-color: var(--border-l); }

/* ── Callout ───────────────────────────────────────────────── */
.callout {
  padding: 20px 24px;
  background: var(--light-2);
  border-left: 4px solid var(--accent);
  font-size: 14px;
  line-height: 1.6;
  color: var(--t-on-light);
  margin: 24px 0;
}
.section.dark .callout, .section.panel .callout {
  background: var(--bluegray);
  color: var(--t-on-dark-2);
}
.callout strong { color: #000; }
.section.dark .callout strong, .section.panel .callout strong { color: #fff; }

/* ── Big stat / pricing ────────────────────────────────────── */
.price-card {
  background: #fff;
  border: 1px solid var(--border-l);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.price-card.featured {
  background: #000;
  color: #fff;
  border-color: #000;
}
.price-card.featured h3 { color: #fff; }
.price-card.featured .feature-line { color: var(--t-on-dark-2); }
.price-card .ribbon {
  position: absolute;
  top: 0; right: 0;
  background: var(--accent);
  color: #000;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.price-card h3 {
  font-size: 14px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}
.price-card .price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 6px;
  line-height: 1;
}
.price-card .price .unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--t-on-light-3);
  letter-spacing: 0;
}
.price-card.featured .price .unit { color: var(--t-on-dark-3); }
.price-card .price-sub {
  font-size: 13px;
  color: var(--t-on-light-3);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-l);
}
.price-card.featured .price-sub {
  color: var(--t-on-dark-3);
  border-bottom-color: var(--border-d);
}
.feature-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  font-size: 13px;
  color: var(--t-on-light-2);
  line-height: 1.5;
}
.feature-line::before {
  content: '';
  width: 12px; height: 12px;
  margin-top: 4px;
  flex-shrink: 0;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12l5 5L20 6' stroke='%23000' stroke-width='3' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12l5 5L20 6' stroke='%23000' stroke-width='3' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.price-cta { margin-top: auto; padding-top: 24px; }

/* ── Logo strip ────────────────────────────────────────────── */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--border-d);
  border-bottom: 1px solid var(--border-d);
}
.logo-strip-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--t-on-dark-4);
  text-transform: uppercase;
  flex-shrink: 0;
}
.logo-tile {
  height: 32px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--t-on-dark-3);
  border: 1px solid var(--border-d);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Mobile demo / module preview frame ────────────────────── */
.frame {
  background: var(--panel-2);
  border: 1px solid var(--border-d);
  overflow: hidden;
}
.frame-bar {
  background: #000;
  border-bottom: 1px solid var(--border-d);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t-on-dark-3);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.frame-bar-dot {
  width: 8px; height: 8px;
  background: var(--accent);
}
.frame-body { padding: 20px; }

/* ── Comparison ────────────────────────────────────────────── */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-l);
}
.compare-col { padding: 24px 28px; }
.compare-col + .compare-col { border-left: 1px solid var(--border-l); }
.compare-col.dark { background: #000; color: var(--t-on-dark-2); }
.compare-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
}
.compare-col.dark h5 { color: var(--accent); }
.compare-col.light h5 { color: #000; }
.compare-col ul { list-style: none; }
.compare-col li {
  padding: 6px 0 6px 22px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
}
.compare-col li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 12px; height: 2px;
  background: currentColor;
  opacity: 0.4;
}
.compare-col.dark li { color: var(--t-on-dark-2); }
.compare-col.light li { color: var(--t-on-light-2); }

/* ── Tweaks panel: keep yellow chrome ──────────────────────── */
.tweaks-panel .tweaks-header { background: #000; border-bottom-color: var(--accent); }
.tweaks-panel { border-color: var(--border-d) !important; }

/* ── Misc ─────────────────────────────────────────────────── */
.text-mono { font-family: var(--mono); }
.text-accent { color: var(--accent); }
.muted { color: var(--t-on-light-3); }
.section.dark .muted, .section.panel .muted { color: var(--t-on-dark-3); }
.spacer-sm { height: 16px; }
.spacer-md { height: 32px; }
.spacer-lg { height: 48px; }

/* ── FAQ (SEO content pages) ───────────────────────────────── */
.faq { border: 1px solid var(--border-l); }
.section.dark .faq, .section.panel .faq { border-color: var(--border-d); }
.faq details { border-bottom: 1px solid var(--border-l); }
.section.dark .faq details, .section.panel .faq details { border-bottom-color: var(--border-d); background: var(--panel-2); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: #000;
}
.section.dark .faq summary, .section.panel .faq summary { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-a { padding: 0 24px 22px; color: var(--t-on-light-2); font-size: 14.5px; line-height: 1.6; }
.section.dark .faq .faq-a, .section.panel .faq .faq-a { color: var(--t-on-dark-2); }

/* ── Big stat (SEO content pages) ──────────────────────────── */
.seo-stat { background: var(--panel-2); border: 1px solid var(--border-d); padding: 26px; }
.section.white .seo-stat, .section.light .seo-stat { background: var(--light-2); border-color: var(--border-l); }
.seo-stat .n { font-family: var(--mono); font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1; }
.seo-stat .n.green { color: var(--success); }
.seo-stat .l { font-size: 13.5px; color: var(--t-on-light-3); margin-top: 10px; line-height: 1.5; }
.section.dark .seo-stat .l, .section.panel .seo-stat .l { color: var(--t-on-dark-3); }

/* inline text link (in-app navigation within prose) */
.ilink { color: var(--accent); cursor: pointer; border-bottom: 1px solid transparent; }
.ilink:hover { border-bottom-color: var(--accent); }

/* ── Integrations section (per industry page) ──────────────── */
.dv-int-capsule { background: var(--panel); border: 1px solid var(--border-d); border-left: 3px solid var(--accent); padding: 16px 20px; margin: 14px 0 30px; font-size: 15.5px; line-height: 1.6; color: var(--t-on-dark-2); max-width: 78ch; }
.dv-int-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .dv-int-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .dv-int-grid { grid-template-columns: 1fr; } }
.dv-int-card { background: var(--panel); border: 1px solid var(--border-d); padding: 18px; transition: border-color 0.16s, transform 0.16s; display: flex; flex-direction: column; gap: 8px; }
.dv-int-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.dv-int-card .dv-int-name { font-weight: 700; font-size: 15.5px; color: #fff; text-decoration: none; line-height: 1.25; }
.dv-int-card:hover .dv-int-name { color: var(--accent); }
.dv-int-card .dv-int-cat { font-family: var(--mono); font-size: 10px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--t-on-dark-3); }
.dv-int-card .dv-int-links { margin-top: auto; display: flex; gap: 14px; font-family: var(--mono); font-size: 11px; padding-top: 6px; }
.dv-int-card .dv-int-links a { color: var(--t-on-dark-4); text-decoration: none; }
.dv-int-card .dv-int-links a:hover { color: var(--accent); }
.dv-int-foot { margin-top: 22px; font-family: var(--mono); font-size: 11.5px; color: var(--t-on-dark-4); line-height: 1.7; }

/* ── Doc / sitemap groups ──────────────────────────────────── */
.doc-group {
  border: 1px solid var(--border-d);
  background: var(--panel-2);
  padding: 24px 26px;
  position: relative;
}
.doc-group.light { background: #fff; border-color: var(--border-l); }
.doc-group h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.doc-group .group-desc {
  font-size: 12px;
  color: var(--t-on-dark-3);
  margin-bottom: 16px;
  line-height: 1.5;
}
.doc-group.light .group-desc { color: var(--t-on-light-3); }
.doc-group ul { list-style: none; }
.doc-group li {
  padding: 5px 0;
  font-size: 13px;
  color: var(--t-on-dark-2);
  display: flex;
  gap: 10px;
  align-items: baseline;
  cursor: pointer;
  transition: color 0.15s;
}
.doc-group.light li { color: var(--t-on-light-2); }
.doc-group li:hover { color: var(--accent); }
.doc-group.light li:hover { color: #000; font-weight: 600; }
.doc-group.light li:hover .n { color: #000; }
.doc-group li .n {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t-on-dark-4);
  letter-spacing: 0.5px;
  min-width: 22px;
  transition: color 0.15s;
}
.doc-group.light li .n { color: var(--t-on-light-4); }

/* ── Docs drawer (section detail) ──────────────────────────── */
.doc-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.doc-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.doc-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 560px;
  max-width: 92vw;
  background: #fff;
  border-left: 3px solid var(--accent);
  z-index: 801;
  transform: translateX(100%);
  transition: transform 0.28s var(--carousel-ease, cubic-bezier(0.22, 1, 0.36, 1));
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(0,0,0,0.35);
}
.doc-drawer.open { transform: translateX(0); }
.doc-drawer-head {
  background: #000;
  color: #fff;
  padding: 22px 28px;
  border-bottom: 3px solid var(--accent);
}
.doc-drawer-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.doc-drawer-group {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}
.doc-drawer-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t-on-dark-3);
  letter-spacing: 1px;
}
.doc-drawer-close {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--border-d);
  color: var(--t-on-dark-2);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.doc-drawer-close:hover { border-color: var(--accent); color: var(--accent); }
.doc-drawer-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-top: 10px;
}
.doc-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}
.doc-drawer-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--t-on-light-2);
  margin-bottom: 24px;
}
.doc-drawer-section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #000;
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.doc-drawer-section-label::before {
  content: '';
  width: 16px; height: 2px;
  background: #000;
}
.doc-drawer-covers {
  list-style: none;
  padding: 0;
}
.doc-drawer-covers li {
  padding: 5px 0 5px 22px;
  font-size: 13px;
  color: var(--t-on-light-2);
  line-height: 1.55;
  position: relative;
}
.doc-drawer-covers li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 2px;
  background: #000;
}
.doc-drawer-form {
  background: var(--light-2);
  border: 1px solid var(--border-l);
  padding: 22px;
  margin-top: 12px;
}
.doc-drawer-form h5 {
  font-size: 15px;
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.doc-drawer-form p {
  font-size: 13px;
  color: var(--t-on-light-2);
  line-height: 1.55;
  margin-bottom: 14px;
}
.doc-drawer-form .field { margin-bottom: 10px; }
.doc-drawer-form input {
  width: 100%; padding: 11px 12px;
  font-size: 13px;
  font-family: var(--sans);
  background: #fff;
  border: 1px solid var(--border-l);
  outline: none;
  transition: border-color 0.15s;
  color: #000;
}
.doc-drawer-form input:focus { border-color: #000; }
.doc-drawer-form input::placeholder { color: var(--t-on-light-4); }
.doc-drawer-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.doc-drawer-form button {
  width: 100%;
  padding: 13px 16px;
  background: #000;
  color: var(--accent);
  border: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.1px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.15s;
}
.doc-drawer-form button:hover { background: #1a1a1a; }
.doc-drawer-form .fine {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t-on-light-3);
  margin-top: 10px;
  letter-spacing: 0.3px;
  line-height: 1.5;
}
.doc-drawer-success {
  padding: 24px;
  background: #000;
  color: #fff;
  border-left: 4px solid var(--accent);
}
.doc-drawer-success h5 {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-family: var(--mono);
  margin-bottom: 8px;
}
.doc-drawer-success p {
  font-size: 14px;
  color: var(--t-on-dark-2);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .doc-drawer { width: 100vw; max-width: 100vw; }
  .doc-drawer-form .field-row { grid-template-columns: 1fr; }
}

/* ── Module card (for /modules style listing) ─────────────── */
.module-card {
  background: #fff;
  border: 1px solid var(--border-l);
  border-top: 3px solid var(--accent);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.module-card .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.module-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.2px;
}
.module-card .slug {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t-on-light-3);
  margin-top: 4px;
}
.module-card p {
  font-size: 13px;
  color: var(--t-on-light-2);
  line-height: 1.55;
  flex: 1;
}
.module-card .meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border-l);
}

/* ── Step / numbered flow ──────────────────────────────────── */
.step-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline-d);
}
.step-row.light { border-bottom-color: var(--border-l); }
.step-row:last-child { border-bottom: none; }
.step-num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -1px;
}
.step-row h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.step-row.light h4 { color: #000; }
.step-row p {
  font-size: 13px;
  color: var(--t-on-dark-2);
  line-height: 1.55;
}
.step-row.light p { color: var(--t-on-light-2); }

/* ── Banner CTA ────────────────────────────────────────────── */
.banner-cta {
  background: var(--accent);
  color: #000;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.banner-cta h3 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.banner-cta p {
  font-size: 15px;
  color: #000;
  max-width: 580px;
  line-height: 1.5;
}
.banner-cta-btns { display: flex; gap: 10px; }
.banner-cta .btn-dark {
  background: #000;
  color: var(--accent);
  border-color: #000;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.banner-cta .btn-dark:hover { background: #1a1a1a; }

/* ── Anchor headings inside long pages ─────────────────────── */
.subsection { padding: 56px 0; }
.subsection + .subsection { border-top: 1px solid var(--border-l); }
.section.dark .subsection + .subsection, .section.panel .subsection + .subsection { border-top-color: var(--border-d); }

/* ════════════════════════════════════════════════════════════
   LIGHT-SURFACE THEME — yellow is never used as text/lines on white.
   Solid yellow blocks (CTAs, chips, marks) are still allowed; only
   thin yellow accents on light surfaces are swapped for black.
   ════════════════════════════════════════════════════════════ */
.section.light .h2,
.section.white .h2 { border-bottom-color: #000; }

.section.light .eyebrow,
.section.white .eyebrow { color: #000; }
.section.light .eyebrow::before,
.section.white .eyebrow::before { background: #000; }

.section.light .card.top-bar,
.section.white .card.top-bar,
.section.light .module-card,
.section.white .module-card { border-top-color: #000; }

.section.light .card.left-bar,
.section.white .card.left-bar,
.section.light .callout,
.section.white .callout { border-left-color: #000; }

.section.light .price-card,
.section.white .price-card { border-top: 3px solid #000; }
.section.light .price-card.featured,
.section.white .price-card.featured { border-top-color: #000; }
.section.light .price-card h3,
.section.white .price-card h3 { color: #000; }

.section.light .step-num,
.section.white .step-num,
.section.panel .step-num { color: #000; }

.section.panel .step-row h4 { color: #000; }
.section.panel .step-row p  { color: #4b5563; }
.section.panel .step-row    { border-bottom-color: #e5e7eb; }

.section.light .doc-group.light h4 { color: #000; }
.section.light .compare-col.light li::before,
.section.white .compare-col.light li::before { background: #000; }

/* Solid yellow blocks on light = OK (they have black text inside) */
.section.light .feat-mark,
.section.white .feat-mark { background: #000; color: var(--accent); }

/* Code-block accent rail switches to black when placed on a light bg */
.section.light .code-block,
.section.white .code-block { border-left-color: #000; }

/* Inline-styled cards that mimic .card.top-bar / .card.left-bar — fixed
   to use the same black accent on light. Component classes preferred. */
.card-onlight-topbar { border-top: 3px solid #000 !important; }
.card-onlight-leftbar { border-left: 4px solid #000 !important; }
.dot-onlight { color: #000 !important; }
.mono-num-onlight { color: #000 !important; }

/* ── Headline-swap pattern: short label = big, longer statement = sub ── */
.bigtitle {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.02;
  color: #000;
  display: inline-block;
  max-width: min(100%, 1100px);
  padding-bottom: 14px;
  border-bottom: 3px solid var(--accent);
  margin-bottom: 20px;
  text-transform: none;
}
.section.dark .bigtitle, .section.panel .bigtitle { color: #fff; }
.section.light .bigtitle, .section.white .bigtitle { border-bottom-color: #000; }

.subtitle-sm {
  font-size: 20px;
  line-height: 1.5;
  color: var(--t-on-light-2);
  max-width: 760px;
  font-weight: 500;
  letter-spacing: -0.1px;
}
.section.dark .subtitle-sm, .section.panel .subtitle-sm { color: var(--t-on-dark-2); }

@media (max-width: 900px) {
  .bigtitle { font-size: 44px; letter-spacing: -1px; }
  .subtitle-sm { font-size: 17px; }
}
@media (max-width: 720px) {
  .bigtitle { font-size: 34px; }
}

/* ── Services full catalog list ───────────────────────────── */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
}
.services-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 4px;
  padding: 18px 22px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  background: #fff;
  transition: background 0.12s, padding 0.12s;
  text-decoration: none;
  color: inherit;
}
.services-list-item:hover {
  background: #fafaf7;
  padding-left: 28px;
}
.services-list-item:hover .services-list-name {
  color: var(--accent);
}
.services-list-item:hover .services-list-arrow {
  color: var(--accent);
  transform: translateX(4px);
}
.services-list-name {
  font-size: 15px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.2px;
  line-height: 1.25;
  transition: color 0.12s;
}
.services-list-desc {
  grid-column: 1 / 2;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.5;
}
.services-list-arrow {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
  align-self: start;
  color: #9ca3af;
  font-weight: 700;
  font-size: 16px;
  transition: color 0.12s, transform 0.12s;
}
@media (max-width: 900px) {
  .services-list { grid-template-columns: 1fr; }
}

/* ── Industries Served ─────────────────────────────────────── */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid #e5e7eb;
}
.industry-card {
  padding: 28px 32px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.15s, transform 0.15s;
  position: relative;
}
.industry-card:hover {
  background: #fafaf7;
}
.industry-card:hover .industry-card-arrow {
  color: var(--accent);
  transform: translateX(4px);
}
.industry-card:nth-child(2n) { border-right: none; }
.industry-card:nth-last-child(-n+2) { border-bottom: none; }
.industry-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.industry-card-meta {
  flex: 1;
  min-width: 0;
}
.industry-card-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: #6b7280;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.industry-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #000;
  letter-spacing: -0.4px;
  margin: 0;
  line-height: 1.1;
}
.industry-card-desc {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.industry-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  font-family: var(--mono);
  font-size: 11px;
  color: #6b7280;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.industry-card-arrow {
  color: #000;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--sans);
  font-size: 13px;
  transition: color 0.15s, transform 0.15s;
}

/* Integration logo grid (text-only — no real logos) */
.industry-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid #303030;
}
.industry-logo-cell {
  padding: 24px 20px;
  border-right: 1px solid #303030;
  border-bottom: 1px solid #303030;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  min-height: 84px;
  text-align: center;
}
.industry-logo-cell:nth-child(4n) { border-right: none; }
.industry-logo-name {
  font-family: var(--mono);
  font-size: 12px;
  color: #d9d9d9;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Pill row for "other industries" cross-link */
.industry-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.industry-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  transition: border-color 0.15s, color 0.15s;
}
.industry-pill:hover {
  border-color: var(--accent);
  color: #000;
}
.industry-pill-code {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  background: var(--accent);
  color: #000;
  padding: 3px 7px;
  font-weight: 800;
}
.industry-pill-arrow {
  color: var(--accent);
  font-weight: 700;
}
.industry-pill-all {
  background: #000;
  color: #fff;
  border-color: #000;
}
.industry-pill-all:hover {
  color: var(--accent);
}
.industry-pill-all .industry-pill-arrow {
  color: var(--accent);
}

@media (max-width: 900px) {
  .industry-grid { grid-template-columns: 1fr; }
  .industry-card { border-right: none !important; }
  .industry-card:last-child { border-bottom: none !important; }
  .industry-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-logo-cell:nth-child(4n) { border-right: 1px solid #303030; }
  .industry-logo-cell:nth-child(2n) { border-right: none; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .container { padding: 0 32px; }
  .section { padding: 110px 0 80px; }
  .section.compact { padding: 80px 0 56px; }
  /* Hero photo: on tablet, push photo behind a heavier overlay so text reads */
  .hero--image .hero-photo { background-position: 30% center; }
  .hero-photo-overlay {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.85) 100%);
  }
  .hero-inner--right { grid-template-columns: 1fr; }
  .hero-inner--right .hero-content { grid-column: 1 / -1; }
  .section + .section { padding-top: 110px; }
  .section.compact + .section.compact { padding-top: 80px; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 48px; }
  .nav-items { display: none; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid var(--border-d);
    color: #fff;
    cursor: pointer;
  }
  .nav-mobile-open .nav-items {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    background: #000;
    padding: 16px 32px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border-d);
  }
}
@media (max-width: 720px) {
  .section { padding: 72px 0 56px; }
  .section.compact { padding: 56px 0 40px; }
  .section + .section { padding-top: 72px; }
  .section.compact + .section.compact { padding-top: 56px; }
  .container { padding: 0 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 38px; letter-spacing: -1px; }
  .page-header h1 { font-size: 34px; }
  .h2 { font-size: 26px; }
  .banner-cta { grid-template-columns: 1fr; padding: 36px 28px; }
  .banner-cta h3 { font-size: 24px; }
  .hero-inner { padding: 64px 20px; }
  .topbar-inner { padding: 7px 20px; flex-wrap: wrap; }
  .nav-inner { padding: 0 20px; }
}
