/* ------------------------------------------------
  AI sections of the homepage (hero, models, methodology, custom-software divider).
  Every selector is scoped to .ai-* classes so the legacy template sections are untouched.
------------------------------------------------ */

.ai-section,
.ai-nav-item {
  --ai-navy: #1c1d3e;
  --ai-ink: #12132b;
  --ai-blue: #2575fc;          /* bars, large accents only */
  --ai-blue-text: #1453c8;     /* small text and links: 6.5:1 on white */
  --ai-blue-btn: #1a5fd6;      /* button fill: 5.7:1 with white text */
  --ai-text: #3d3f5c;
  --ai-muted: #565875;
  --ai-line: #e3e5f0;
  --ai-tint: #fafaff;
  --ai-bar-muted: #858ba3;     /* 3.4:1 on white, for non-text bars */
  --ai-dark-text: #c9cbe0;
  --ai-dark-link: #9cc1ff;
  --ai-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- base ---------- */

.ai-section {
  position: relative;
  padding: 96px 0;
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--ai-text);
  background: #fff;
  overflow-wrap: break-word;
  scroll-margin-top: 100px;
}
.ai-section.ai-tint { background: var(--ai-tint); }

.ai-section p { margin: 0; line-height: 1.6; }
.ai-section ul, .ai-section ol { list-style: none; margin: 0; padding: 0; }
.ai-section h1, .ai-section h2, .ai-section h3, .ai-section h4 {
  font-family: 'Nunito', sans-serif;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.ai-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.ai-wrap--narrow { max-width: 960px; }

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

/* anchor targets clear the sticky header (two rows tall on desktop widths where the menu wraps) */
#start-project { scroll-margin-top: 100px; }
@media (min-width: 993px) {
  .ai-section, #start-project { scroll-margin-top: 11em; }
}

/* ---------- type ---------- */

.ai-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ai-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ai-blue-text);
  margin-bottom: 16px !important;
}
.ai-eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: currentColor;
  flex: none;
}
.ai-eyebrow--dark { color: var(--ai-dark-link); }

.ai-section .ai-h1 {
  font-size: 60px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 24px;
}
.ai-section .ai-h2 {
  font-size: 44px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ai-navy);
  margin-bottom: 16px;
}
.ai-section .ai-h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--ai-navy);
}
.ai-section .ai-h4 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--ai-navy);
  margin-bottom: 6px;
}

.ai-lead {
  font-size: 19px;
  line-height: 1.6 !important;
  color: var(--ai-text);
  max-width: 64ch;
}
.ai-lead--dark { color: var(--ai-dark-text); }

.ai-head { max-width: 780px; margin-bottom: 48px; }
.ai-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ai-head--center .ai-lead { margin-left: auto; margin-right: auto; }

.ai-small {
  font-size: 14px;
  color: var(--ai-muted);
  margin-top: 20px !important;
  max-width: 80ch;
}

/* ---------- links, focus ---------- */

.ai-section a { color: var(--ai-blue-text); }
.ai-section a:hover { color: var(--ai-navy); }

.ai-section a.ai-claim {
  color: inherit;
  font-variant-numeric: tabular-nums;
  text-decoration: underline dotted var(--ai-blue-text);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.ai-section a.ai-claim:hover { color: var(--ai-blue-text); }

.ai-section a.ai-ref,
.ai-chart__meta a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ai-section a:focus-visible,
.ai-section summary:focus-visible,
.ai-section [tabindex]:focus-visible,
.ai-nav-item a:focus-visible {
  outline: 3px solid var(--ai-blue-text) !important;
  outline-offset: 3px;
  border-radius: 4px;
}
.ai-hero a:focus-visible,
.ai-dark a:focus-visible,
.ai-divider a:focus-visible {
  outline-color: var(--ai-dark-link) !important;
}

/* ---------- buttons ---------- */

.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.ai-actions--section { margin-top: 40px; }
.ai-actions--center { justify-content: center; }

.ai-section a.ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ai-section a.ai-btn.ai-btn--primary { background: var(--ai-blue-btn); color: #fff; }
.ai-section a.ai-btn.ai-btn--primary:hover { background: var(--ai-blue-text); color: #fff; }
.ai-section a.ai-btn.ai-btn--outline { border-color: var(--ai-blue-text); color: var(--ai-blue-text); background: transparent; }
.ai-section a.ai-btn.ai-btn--outline:hover { background: var(--ai-blue-text); color: #fff; }
.ai-section a.ai-btn.ai-btn--light { background: #fff; color: var(--ai-navy); }
.ai-section a.ai-btn.ai-btn--light:hover { background: #e3ecff; color: var(--ai-navy); }
.ai-section a.ai-btn.ai-btn--ghost-dark { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.ai-section a.ai-btn.ai-btn--ghost-dark:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- hero ---------- */

.ai-section.ai-hero {
  padding: 13em 0 48px; /* clears the header, which wraps to two rows at 1200-1440px; em so it grows with text size */
  color: var(--ai-dark-text);
  background:
    radial-gradient(ellipse 60% 70% at 85% 15%, rgba(37,117,252,.35), transparent 70%),
    linear-gradient(180deg, var(--ai-navy) 0%, var(--ai-ink) 100%);
  overflow: hidden;
}
.ai-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  pointer-events: none;
}
.ai-hero .ai-wrap { position: relative; }

.ai-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.ai-console {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  padding: 20px 24px 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.ai-console__bar { display: flex; gap: 6px; margin-bottom: 18px; }
.ai-console__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.ai-console__wave { display: block; width: 100%; height: 64px; color: #5b93ff; margin-bottom: 18px; }
.ai-console__rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed rgba(255,255,255,.12);
  font-family: var(--ai-mono);
  font-size: 14px;
}
.ai-console__in { color: var(--ai-dark-text); }
.ai-console__arrow { height: 2px; background: linear-gradient(90deg, rgba(91,147,255,.2), #5b93ff); position: relative; }
.ai-console__arrow::after {
  content: "";
  position: absolute; right: -1px; top: -4px;
  border: 5px solid transparent; border-left-color: #5b93ff; border-right: 0;
}
.ai-console__out {
  justify-self: start;
  color: #fff;
  background: rgba(37,117,252,.28);
  border: 1px solid rgba(91,147,255,.5);
  border-radius: 6px;
  padding: 2px 10px;
}
.ai-console__foot {
  margin-top: 14px !important;
  font-family: var(--ai-mono);
  font-size: 12px;
  color: #a9acc6;
  letter-spacing: .04em;
}

.ai-jump {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.ai-jump ul { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-section .ai-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #e4e6f3;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.ai-section .ai-jump a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); color: #fff; }

/* ---------- cards ---------- */

.ai-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15em), 1fr));
  font-size: 16px;
}
.ai-cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14em), 1fr)); }
.ai-cards > li { min-width: 0; }

.ai-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ai-line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(28,29,62,.04), 0 10px 30px rgba(28,29,62,.06);
}

.ai-tag {
  align-self: flex-start;
  font-family: var(--ai-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ai-blue-text);
  background: #eef3ff;
  border: 1px solid #cfdcfb;
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 18px !important;
}
.ai-model .ai-h3 { margin-bottom: 8px; }
.ai-card__text { color: var(--ai-muted); font-size: 16px; flex-grow: 1; }

.ai-stat {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ai-line);
}
.ai-stat__big {
  font-size: 40px;
  line-height: 1.1 !important;
  font-weight: 800;
  color: var(--ai-navy);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ai-stat__pre,
.ai-stat__unit {
  font-family: var(--ai-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ai-muted);
}
.ai-stat__ctx { margin-top: 8px !important; font-size: 15px; color: var(--ai-muted); }

.ai-section a.ai-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: 16px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
}
.ai-section a.ai-more::after { content: "\2192"; transition: transform .2s ease; }
.ai-section a.ai-more:hover::after { transform: translateX(3px); }

/* feature lists (no card chrome) */
.ai-section .ai-feats { margin-top: 56px; }
.ai-feat {
  border-top: 2px solid var(--ai-navy);
  padding-top: 16px;
}
.ai-feat p { font-size: 16px; color: var(--ai-muted); }

/* ---------- layouts ---------- */

.ai-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.ai-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.ai-stack { display: grid; gap: 16px; min-width: 0; }

/* ---------- charts (tables with bars) ---------- */

.ai-chart {
  margin: 0;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--ai-line);
  border-radius: 16px;
  padding: 24px 24px 16px;
}

.ai-scroll { max-width: 100%; overflow-x: auto; }

.ai-bars {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.ai-bars caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 14px;
  color: var(--ai-muted);
}
.ai-chart__title {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ai-navy);
}
.ai-chart__headline {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ai-navy);
}
.ai-chart__headline + .ai-chart__title { font-size: 15px; font-weight: 700; color: var(--ai-text); }
.ai-chart__meta { display: block; margin-top: 4px; font-size: 14px; color: var(--ai-muted); }
.ai-chart__meta strong { color: var(--ai-navy); font-weight: 800; }

.ai-bars thead th {
  font-family: var(--ai-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ai-muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--ai-line);
  vertical-align: bottom;
  text-align: left;
}
.ai-bars tbody th,
.ai-bars tbody td {
  padding: 4px 12px;
  border-bottom: 1px solid #f0f1f7;
  vertical-align: middle;
}
.ai-bars tbody tr:last-child th,
.ai-bars tbody tr:last-child td { border-bottom: 0; }
.ai-bars tbody th {
  width: 40%;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ai-text);
  text-align: left;
}
.ai-bars--cost tbody th { width: 34%; }
.ai-bars--pair tbody th { width: 28%; }

.ai-bar {
  display: inline-block;
  vertical-align: middle;
  width: calc(var(--v) * 0.72);
  min-width: 4px;
  height: 20px;
  margin-right: 10px;
  border-radius: 0 5px 5px 0;
  background: var(--ai-bar-muted);
}
.ai-section .ai-val {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  min-height: 44px;
  min-width: 44px;
  font-weight: 700;
  color: var(--ai-text);
  white-space: nowrap;
}

/* our model: highlighted row; competitors stay muted */
.ai-bars tr.is-ours th,
.ai-bars tr.is-ours td { background: #eef3ff; }
.ai-bars tr.is-ours th { color: var(--ai-navy); font-weight: 800; border-radius: 8px 0 0 8px; }
.ai-bars tr.is-ours td:last-child { border-radius: 0 8px 8px 0; }
.ai-bars .is-ours .ai-bar,
.ai-bars td.is-ours .ai-bar { background: var(--ai-blue); }
.ai-section .ai-bars .is-ours .ai-val { color: var(--ai-navy); font-weight: 800; }

/* ---------- callouts, notes, tiles ---------- */

.ai-delta,
.ai-note,
.ai-tile {
  min-width: 0;
  border-radius: 16px;
  padding: 24px;
}
.ai-delta { background: var(--ai-navy); color: var(--ai-dark-text); }
.ai-delta__label,
.ai-note__label,
.ai-tile__label {
  font-family: var(--ai-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px !important;
}
.ai-delta__label { color: var(--ai-dark-link); }
.ai-delta__figs {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2 !important;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ai-section .ai-delta a.ai-claim { text-decoration-color: var(--ai-dark-link); }
.ai-section .ai-delta a.ai-claim:hover { color: #fff; }
.ai-delta__from { color: #a9acc6; }
.ai-delta__arrow { color: #5b93ff; padding: 0 4px; }
.ai-delta__unit { font-family: var(--ai-mono); font-size: 14px; font-weight: 600; color: #a9acc6; }
.ai-delta__ctx { margin-top: 8px !important; font-size: 15px; }

.ai-note {
  background: #f4f5fb;
  border-left: 4px solid var(--ai-bar-muted);
  border-radius: 0 16px 16px 0;
}
.ai-tint .ai-note { background: #fff; }
.ai-note__label { color: var(--ai-muted); }
.ai-note p:not(.ai-note__label) { font-size: 16px; }
.ai-note--wide { margin-top: 32px; }

.ai-tile { background: #fff; border: 1px solid var(--ai-line); }
.ai-tile--accent { border-left: 4px solid var(--ai-blue); border-radius: 0 16px 16px 0; }
.ai-tile__label { color: var(--ai-blue-text); }
.ai-tile__text { font-size: 17px; color: var(--ai-text); }
.ai-tile .ai-claim { font-weight: 800; color: var(--ai-navy); }

/* full-width callout: label and context left, figures right */
.ai-delta--wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label figs" "ctx figs";
  align-items: center;
  gap: 0 40px;
  margin-top: 24px;
  padding: 28px 32px;
}
.ai-delta--wide .ai-delta__label { grid-area: label; }
.ai-delta--wide .ai-delta__figs { grid-area: figs; font-size: 44px; }
.ai-delta--wide .ai-delta__ctx { grid-area: ctx; margin-top: 0 !important; }

/* side column with a single note: the note fills the column height */
.ai-stack--fill { align-self: stretch; }
.ai-stack--fill .ai-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px;
}
.ai-stack--fill .ai-note p:not(.ai-note__label) { font-size: 19px; line-height: 1.5; color: var(--ai-navy); font-weight: 700; }

/* error-share chart (data extraction): grouped before/after bars, our model in blue */
.ai-err__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}
.ai-err__table caption { caption-side: top; text-align: left; padding: 0 0 8px; color: var(--ai-muted); }
.ai-err__group th {
  padding: 18px 12px 6px;
  font-family: var(--ai-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ai-navy);
}
.ai-err__table tbody th[scope="row"] {
  width: 32%;
  padding: 6px 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  color: var(--ai-text);
}
.ai-err__table tbody td { padding: 6px 12px; vertical-align: middle; }
.ai-err .ai-bar { width: calc(var(--v) * 0.78); height: 24px; }
.ai-section .ai-err .ai-val { min-height: 36px; font-size: 18px; font-weight: 800; color: var(--ai-navy); }
.ai-err__f1 {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  font-family: var(--ai-mono);
  font-size: 13px;
  color: var(--ai-muted);
}
.ai-err tr.is-ours > * { background: #eef3ff; }
.ai-err tr.is-ours > th { color: var(--ai-navy); font-weight: 800; border-radius: 8px 0 0 8px; }
.ai-err tr.is-ours > td:last-child { border-radius: 0 8px 8px 0; }
.ai-err tr.is-ours .ai-bar { background: var(--ai-blue); }

/* STT cost block */
.ai-cost {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  grid-template-areas: "intro table" "small small";
  gap: 0 40px;
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--ai-line);
}
.ai-cost__intro { grid-area: intro; }
.ai-cost .ai-chart { grid-area: table; }
.ai-cost .ai-small { grid-area: small; }
.ai-cost__intro .ai-h3 { margin-bottom: 12px; }
.ai-cost__headline {
  margin-top: 20px !important;
  font-size: 22px;
  line-height: 1.4 !important;
  font-weight: 800;
  color: var(--ai-navy);
}
.ai-bars--cost .ai-num .ai-val { font-weight: 600; }

/* ---------- custom models (dark) ---------- */

.ai-section.ai-dark {
  color: var(--ai-dark-text);
  background:
    radial-gradient(ellipse 50% 60% at 10% 0%, rgba(37,117,252,.25), transparent 70%),
    linear-gradient(180deg, var(--ai-navy) 0%, var(--ai-ink) 100%);
}
.ai-dark .ai-h2, .ai-dark .ai-h3, .ai-dark .ai-h4 { color: #fff; }
.ai-section.ai-dark a { color: var(--ai-dark-link); }
.ai-section.ai-dark a.ai-claim { color: #fff; text-decoration-color: var(--ai-dark-link); }
.ai-section.ai-dark a.ai-claim:hover { color: var(--ai-dark-link); }

.ai-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15em), 1fr));
  counter-reset: ai-step;
  font-size: 16px;
}
.ai-step {
  min-width: 0;
  counter-increment: ai-step;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}
.ai-step::before {
  content: "Step " counter(ai-step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-family: var(--ai-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ai-dark-link);
}
.ai-step p { font-size: 15px; color: var(--ai-dark-text); }

.ai-proof {
  margin-top: 48px;
  padding: 32px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}
.ai-proof .ai-h3 { margin-bottom: 24px; }
.ai-proof__list {
  display: grid;
  gap: 20px 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24em), 1fr));
  font-size: 16px;
}
.ai-proof__list li { min-width: 0; border-left: 3px solid #5b93ff; padding-left: 16px; }
.ai-proof__list p { color: #e4e6f3; }
.ai-proof__name {
  font-family: var(--ai-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ai-dark-link) !important;
  margin-bottom: 6px !important;
}

.ai-closing {
  margin-top: 40px !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5 !important;
  color: #fff;
  max-width: 60ch;
}
.ai-closing--light { color: var(--ai-navy); }

/* ---------- voice agents ---------- */

.ai-usecase .ai-icon {
  width: 48px;
  height: 48px;
  padding: 10px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #eef3ff;
  fill: none;
  stroke: var(--ai-blue-text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ai-usecase p { font-size: 16px; color: var(--ai-muted); }

/* ---------- custom software divider ---------- */

.ai-section.ai-divider {
  padding: 96px 0 176px; /* the legacy service strip below overlaps this band by 100px */
  color: var(--ai-dark-text);
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(37,117,252,.3), transparent 70%),
    linear-gradient(180deg, var(--ai-ink) 0%, var(--ai-navy) 100%);
}
.ai-divider .ai-h2 { color: #fff; }
.ai-divider .ai-head { margin-bottom: 0; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .ai-cost { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "table" "small"; }
  .ai-cost__intro { margin-bottom: 28px; }
}

@media (max-width: 992px) {
  .ai-section { padding: 72px 0; }
  .ai-section.ai-hero { padding: 132px 0 40px; }
  .ai-section.ai-divider { padding: 72px 0; }
  .ai-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ai-hero__panel { max-width: 520px; }
  .ai-grid-2, .ai-split { grid-template-columns: minmax(0, 1fr); }
  .ai-section .ai-h1 { font-size: 48px; }
  .ai-section .ai-h2 { font-size: 36px; }
}

@media (max-width: 767px) {
  .ai-hero__panel { display: none; }
  .ai-jump { margin-top: 40px; }
}

@media (max-width: 576px) {
  .ai-section { padding: 56px 0; font-size: 16px; }
  .ai-section.ai-hero { padding: 116px 0 32px; }
  .ai-section.ai-divider { padding: 56px 0; }
  .ai-wrap { padding: 0 20px; }
  .ai-section .ai-h1 { font-size: 38px; }
  .ai-section .ai-h2 { font-size: 30px; }
  .ai-lead { font-size: 17px; }
  .ai-head { margin-bottom: 32px; }
  .ai-card, .ai-delta, .ai-note, .ai-tile { padding: 20px; }
  .ai-chart { padding: 18px 12px 10px; border-radius: 12px; }
  .ai-bars tbody th, .ai-bars tbody td, .ai-bars thead th { padding-left: 8px; padding-right: 8px; }
  .ai-proof { padding: 22px; }
  .ai-cost { margin-top: 48px; padding-top: 40px; }
  /* charts: each row stacks, label on its own line, bar + value full width */
  .ai-bars, .ai-bars thead, .ai-bars tbody, .ai-bars caption { display: block; }
  .ai-bars tr { display: grid; grid-template-columns: minmax(0, 1fr); }
  .ai-bars--cost tr, .ai-bars--pair tr { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .ai-bars thead th:first-child,
  .ai-bars:not(.ai-bars--cost):not(.ai-bars--pair) thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .ai-bars tbody tr { border-bottom: 1px solid #f0f1f7; padding: 4px 0; }
  .ai-bars tbody tr:last-child { border-bottom: 0; }
  .ai-bars tbody th,
  .ai-bars tbody td { border-bottom: 0; }
  .ai-bars tbody th { grid-column: 1 / -1; width: auto; padding-top: 10px; }
  .ai-bars--cost tbody th, .ai-bars--pair tbody th { width: auto; }
  .ai-section .ai-val { white-space: normal; }
  .ai-bars tr.is-ours { background: #eef3ff; border-radius: 8px; }
  .ai-bars tr.is-ours th, .ai-bars tr.is-ours td { background: transparent; border-radius: 0; }
  .ai-actions .ai-btn { width: 100%; }
  .ai-delta--wide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "figs" "ctx"; padding: 20px; }
  .ai-delta--wide .ai-delta__figs { font-size: 36px; margin-bottom: 8px !important; }
  .ai-stack--fill .ai-note { padding: 20px; }
  .ai-err__table, .ai-err__table tbody, .ai-err__table caption { display: block; }
  .ai-err__table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; }
  .ai-err__table tbody th[scope="row"] { grid-column: 1 / -1; width: auto; padding: 8px 8px 0; }
  .ai-err__group th { grid-column: 1 / -1; padding: 14px 8px 4px; }
  .ai-err__table tbody td { padding: 2px 8px 6px; }
  .ai-err__table tbody td:not(.ai-err__f1) { display: flex; align-items: center; min-width: 0; }
  .ai-err .ai-bar { flex: 0 1 auto; width: calc(var(--v) * 0.8); }
  .ai-section .ai-err .ai-val { flex: none; white-space: nowrap; }
  .ai-err__f1 { width: auto; }
  .ai-err tr.is-ours { background: #eef3ff; border-radius: 8px; }
  .ai-err tr.is-ours > * { background: transparent; border-radius: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-section *,
  .ai-section *::before,
  .ai-section *::after,
  .ai-nav-item a {
    transition: none !important;
    animation: none !important;
  }
}

/* header nav: tighter item spacing so the extra AI items still fit on one row */
@media (min-width: 1200px) {
  #main-menu > .nav-item { margin: 0 2px; }
  #main-menu > .nav-item > .nav-link { padding-left: 3px !important; padding-right: 3px !important; }
}
