/* ------------------------------------------------
  AI sections of the homepage (hero, models, custom models, phone agents, custom-software divider).
  Visual language follows the site template: brand blue #0D72B9 / #2575fc -> #005bea bands with the
  molecule pattern (images/bg/01.png) and white wave edge (images/bg/11.png), grey molecules
  (images/desol*.svg) on white sections, template section titles (title-effect square, uppercase
  letter-spaced labels and h2), featured-item cards (7px radius, soft shadow, hover lift), template
  progress-bar style charts and pill buttons, line-awesome icons.
  Every selector is scoped to .ai-* classes (or the header nav fix at the end), so the legacy
  template sections are untouched.
------------------------------------------------ */

.ai-section,
.ai-nav-item {
  --ai-navy: #1c1d3e;          /* template heading colour */
  --ai-brand: #0D72B9;         /* template brand blue: text and links, 5.1:1 on white */
  --ai-blue: #2575fc;          /* template accent: bars, icons, borders (graphics only) */
  --ai-deep: #005bea;          /* template gradient end, 5.6:1 with white */
  --ai-text: #555766;
  --ai-muted: #636575;         /* 5.9:1 on white, 5.4:1 on the tint */
  --ai-line: #e8ebf5;
  --ai-tint: #f6f8fe;
  --ai-soft: #eef5fc;
  --ai-track: #eceff8;         /* template progress-bar track */
  --ai-bar-muted: #7a8099;     /* 3.9:1 on white, 3.4:1 on the track */
  --ai-shadow: 0 0 15px 0 rgba(72, 73, 121, .15);           /* template .box-shadow */
  --ai-shadow-hover: 0 20px 50px 0 rgba(72, 73, 121, .22);  /* template featured-item hover */
  --ai-icon-shadow: 0 12px 20px 0 rgba(117, 178, 240, .4);  /* template .step-num */
  --ai-gradient: linear-gradient(135deg, #0D72B9 0%, #0a63c9 55%, #005bea 100%);
}

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

.ai-section {
  position: relative;
  z-index: 0;
  padding: 100px 0;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .5px;
  color: var(--ai-text);
  background: #fff;
  overflow-wrap: break-word;
  scroll-margin-top: 100px;
}
.ai-section.ai-tint { background-color: var(--ai-tint); }

/* grey molecule pattern, as on the template's white sections (bg-effect / desol.svg) */
.ai-section:not(.ai-band)::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: min(70%, 900px);
  height: min(100%, 560px);
  background: url(../images/desol.svg) no-repeat left top / contain;
  pointer-events: none;
}
.ai-section.ai-tint::before {
  left: auto;
  right: 0;
  top: auto;
  bottom: 0;
  background-image: url(../images/desol2.svg);
  background-position: right bottom;
  transform: scaleX(-1);
}

.ai-section p { margin: 0; line-height: 1.7; }
.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 { margin: 0; }

.ai-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.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;
}

#start-project { scroll-margin-top: 100px; }
@media (min-width: 993px) {
  .ai-section, #start-project { scroll-margin-top: 8em; }
}

/* ---------- section titles (template .section-title) ---------- */

.ai-head { position: relative; max-width: 820px; margin-bottom: 56px; }
.ai-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ai-head--center .ai-lead { margin-left: auto; margin-right: auto; }

/* template animated square behind the label */
.ai-section .title-effect { top: 0; left: 0; }
.ai-head--center .title-effect { left: 50%; margin-left: -25px; }
.ai-band .title-effect .bar { background: #fff; }

.ai-section .ai-eyebrow {
  position: relative;
  display: inline-block;
  padding: 15px 0 15px 15px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ai-navy);
}
.ai-head--center .ai-eyebrow { padding: 15px 0; }
.ai-section .ai-eyebrow--dark { color: #fff; }

.ai-section .ai-h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 56px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
  margin-bottom: 24px;
}
/* h2 follows the template: uppercase, letter-spaced, navy */
.ai-section .ai-h2 {
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ai-navy);
  margin-bottom: 18px;
}
.ai-section .ai-h3 {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ai-navy);
}
.ai-section .ai-h4 {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--ai-navy);
  margin-bottom: 6px;
}

.ai-lead {
  font-size: 18px;
  line-height: 1.7 !important;
  color: var(--ai-text);
  max-width: 64ch;
}
.ai-section .ai-lead--dark { color: #fff; }

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

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

.ai-section a:focus-visible,
.ai-section [tabindex]:focus-visible,
.ai-nav-item a:focus-visible {
  outline: 3px solid var(--ai-brand) !important;
  outline-offset: 3px;
  border-radius: 4px;
}
.ai-band a:focus-visible { outline-color: #fff !important; }
.ai-band .ai-proof a:focus-visible,
.ai-band .ai-step a:focus-visible { outline-color: var(--ai-brand) !important; }

/* ---------- buttons (template .btn .btn-circle with shadow) ---------- */

.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.ai-actions--section { margin-top: 48px; }
.ai-actions--center { justify-content: center; }

.ai-section a.ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  max-width: 100%;
  padding: 13px 30px;
  border: 2px solid transparent;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--ai-shadow);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.ai-section a.ai-btn:hover { transform: translateY(-3px); }

/* section CTA on white: brand gradient pill */
.ai-section a.ai-btn.ai-btn--outline,
.ai-section a.ai-btn.ai-btn--primary {
  background: var(--ai-gradient);
  color: #fff;
  box-shadow: 0 10px 22px rgba(13, 114, 185, .28);
}
.ai-section a.ai-btn.ai-btn--outline:hover,
.ai-section a.ai-btn.ai-btn--primary:hover { color: #fff; box-shadow: 0 16px 30px rgba(13, 114, 185, .38); }

/* on blue bands: template .btn-theme (white, brand text) and a white outline */
.ai-section a.ai-btn.ai-btn--light { background: #fff; color: var(--ai-brand); box-shadow: 0 10px 24px rgba(0, 30, 80, .2); }
.ai-section a.ai-btn.ai-btn--light:hover { background: #fff; color: var(--ai-deep); box-shadow: 0 16px 32px rgba(0, 30, 80, .28); }
.ai-section a.ai-btn.ai-btn--ghost-dark { border-color: rgba(255, 255, 255, .8); color: #fff; background: transparent; box-shadow: none; }
.ai-section a.ai-btn.ai-btn--ghost-dark:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

/* ---------- blue bands (template hero: brand blue + molecule pattern) ---------- */

.ai-section.ai-band {
  color: #fff;
  background: var(--ai-gradient);
  overflow: hidden;
}
/* molecule pattern at half strength keeps white text above 4.5:1 everywhere */
.ai-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -10%;
  right: -6%;
  width: min(62%, 860px);
  height: 120%;
  background: url(../images/bg/01.png) no-repeat right top / contain;
  opacity: .5;
  pointer-events: none;
}
.ai-band .ai-h2, .ai-band .ai-h3 { color: #fff; }
.ai-section.ai-band a:not(.ai-btn) { color: #fff; }

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

.ai-section.ai-hero {
  padding: 12em 0 150px; /* clears the absolute header; em so it grows with text size */
}
/* white wave into the next section (template images/bg/11.png) */
.ai-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  background: url(../images/bg/11.png) no-repeat center bottom / 100% 100%;
  pointer-events: none;
}

.ai-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.ai-hero__copy { position: relative; }
.ai-hero .ai-lead { font-size: 19px; }

.ai-hero__panel { position: relative; }
.ai-section .ai-hero__spinner {
  left: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  opacity: .55;
  z-index: 0;
}

.ai-console {
  position: relative;
  z-index: 1;
  border-radius: 7px;
  background: #fff;
  padding: 22px 26px 24px;
  box-shadow: 0 30px 60px rgba(0, 25, 70, .28);
  color: var(--ai-navy);
}
.ai-console__bar { display: flex; gap: 6px; margin-bottom: 18px; }
.ai-console__bar span { width: 10px; height: 10px; border-radius: 50%; background: #dfe4f0; }
.ai-console__bar span:first-child { background: var(--ai-blue); }
.ai-console__wave { display: block; width: 100%; height: 64px; color: var(--ai-blue); margin-bottom: 14px; }
.ai-console__rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--ai-line);
  font-size: 15px;
  font-weight: 600;
}
.ai-console__in { color: var(--ai-text); }
.ai-console__arrow { height: 2px; background: linear-gradient(90deg, rgba(37, 117, 252, .15), var(--ai-blue)); position: relative; }
.ai-console__arrow::after {
  content: "";
  position: absolute; right: -1px; top: -4px;
  border: 5px solid transparent; border-left-color: var(--ai-blue); border-right: 0;
}
.ai-console__out {
  justify-self: start;
  color: var(--ai-brand);
  background: var(--ai-soft);
  border-radius: 30px;
  padding: 2px 14px;
  font-weight: 700;
}
.ai-console__foot {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid var(--ai-line);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--ai-muted);
}

.ai-jump { margin-top: 56px; }
.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 20px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 30px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.ai-section .ai-jump a:hover { background: #fff; border-color: #fff; color: var(--ai-brand); }

/* ---------- cards (template featured-item) ---------- */

.ai-cards {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15em), 1fr));
}
.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-radius: 7px;
  border-bottom: 3px solid var(--ai-blue);
  padding: 40px 28px 30px;
  box-shadow: var(--ai-shadow);
  transition: box-shadow .3s ease, transform .3s ease;
}
.ai-card:hover { box-shadow: var(--ai-shadow-hover); transform: translateY(-5px); }

/* round icon with the template's rotating dashed ring on hover */
.ai-icon-badge {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--ai-icon-shadow);
  color: var(--ai-blue);
  font-size: 38px;
  line-height: 1;
}
.ai-icon-badge::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed transparent;
  transition: border-color .3s ease;
}
.ai-card:hover .ai-icon-badge::after { border-color: var(--ai-blue); animation: rotateme 9s linear infinite; }

.ai-model { align-items: center; text-align: center; }
.ai-section .ai-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ai-brand);
  background: var(--ai-soft);
  border-radius: 30px;
  padding: 3px 14px;
  margin-bottom: 14px;
}
.ai-model .ai-h3 { margin-bottom: 10px; font-size: 19px; }
.ai-card__text { color: var(--ai-muted); font-size: 15px; flex-grow: 1; }

.ai-stat {
  align-self: stretch;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--ai-line);
}
.ai-section .ai-stat__big {
  font-family: 'Nunito', sans-serif;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ai-brand);
  font-variant-numeric: tabular-nums;
}
.ai-stat__pre,
.ai-stat__unit {
  font-family: 'Heebo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ai-muted);
}
.ai-section .ai-stat__ctx { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--ai-muted); }

.ai-section a.ai-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 14px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-decoration: none;
}
.ai-section a.ai-more::after {
  content: "\f112";
  content: "\f112" / "";
  font-family: LineAwesome;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--ai-shadow);
  font-size: 15px;
  transition: background-color .3s ease, color .3s ease;
}
.ai-section a.ai-more:hover::after { background: var(--ai-deep); color: #fff; }

/* feature lists: template check list */
.ai-section .ai-feats { margin-top: 64px; gap: 28px 30px; }
.ai-feat { position: relative; padding-left: 54px; }
.ai-feat::before {
  content: "\f17b";
  content: "\f17b" / "";
  font-family: LineAwesome;
  position: absolute;
  left: 0;
  top: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--ai-icon-shadow);
  color: var(--ai-deep);
  font-size: 18px;
}
.ai-feat p { font-size: 15px; color: var(--ai-muted); }

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

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

/* ---------- charts (tables drawn as template progress bars; full track = scale from zero) ---------- */

.ai-chart {
  margin: 0;
  min-width: 0;
  background: #fff;
  border-radius: 7px;
  padding: 30px 30px 22px;
  box-shadow: var(--ai-shadow);
}
.ai-scroll { max-width: 100%; overflow-x: auto; }

.ai-bars,
.ai-err__table {
  --ai-valw: 3.6em;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}
#tts .ai-bars { --ai-valw: 7.4em; }

.ai-bars caption,
.ai-err__table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 18px;
  color: var(--ai-muted);
}
.ai-chart__title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .5px;
  color: var(--ai-navy);
}
.ai-chart__headline {
  display: block;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ai-line);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .5px;
  color: var(--ai-navy);
}
/* focal relative-difference figure above a chart headline (decorative; the headline states it) */
.ai-chart__figure {
  display: block;
  margin-bottom: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ai-brand);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ai-chart__headline + .ai-chart__title { font-size: 15px; font-weight: 600; color: var(--ai-text); }
.ai-chart__meta { display: block; margin-top: 2px; font-size: 14px; color: var(--ai-muted); }
.ai-chart__meta strong { color: var(--ai-navy); font-weight: 700; }

.ai-bars thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  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 thead th:last-child { text-align: right; }

.ai-bars tbody th,
.ai-bars tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f3f9;
  vertical-align: middle;
}
.ai-bars tbody tr:last-child th,
.ai-bars tbody tr:last-child td { border-bottom: 0; }
.ai-bars tbody th,
.ai-err__table tbody th[scope="row"] {
  width: 38%;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ai-text);
  text-align: left;
}
.ai-bars--cost tbody th { width: 36%; }

/* bar cell: grey track spans the full scale, value sits right in its own column */
.ai-bars tbody td:last-child,
.ai-err__table tbody td:not(.ai-err__f1) {
  position: relative;
  height: 3em;
  padding-right: calc(22px + var(--ai-valw));
  background-image: linear-gradient(var(--ai-track), var(--ai-track));
  background-origin: content-box;
  background-size: 100% 12px;
  background-position: left center;
  background-repeat: no-repeat;
}
.ai-bars--cost .ai-num { width: 1%; white-space: nowrap; }

.ai-bar {
  display: block;
  width: var(--v);
  min-width: 4px;
  height: 12px;
  border-radius: 30px;
  background: var(--ai-bar-muted);
}
.ai-section .ai-val {
  font-weight: 700;
  color: var(--ai-text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ai-section .ai-bar + .ai-val {
  position: absolute;
  top: 50%;
  right: 12px;
  width: var(--ai-valw);
  transform: translateY(-50%);
  text-align: right;
}

/* our model: highlighted row and brand gradient bar; competitors stay grey */
.ai-bars tr.is-ours > *,
.ai-err tr.is-ours > * { background-color: var(--ai-soft); }
.ai-bars tr.is-ours > th,
.ai-err tr.is-ours > th { color: var(--ai-navy); font-weight: 700; border-radius: 7px 0 0 7px; }
.ai-bars tr.is-ours > td:last-child,
.ai-err tr.is-ours > td:last-child { border-radius: 0 7px 7px 0; }
.ai-bars .is-ours .ai-bar,
.ai-err .is-ours .ai-bar {
  background: linear-gradient(90deg, var(--ai-blue), var(--ai-deep));
  box-shadow: 0 4px 10px rgba(37, 117, 252, .35);
}
.ai-section .is-ours .ai-val { color: var(--ai-navy); }

/* error-share chart (data extraction) */
.ai-err__group th {
  padding: 20px 12px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: left;
  color: var(--ai-brand);
}
.ai-err__table tbody th[scope="row"] { width: 30%; padding: 8px 12px; }
.ai-err__table tbody td { padding: 8px 12px; vertical-align: middle; }
.ai-section .ai-err .ai-val { font-size: 17px; color: var(--ai-navy); }
.ai-err__f1 {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--ai-muted);
}

/* ---------- callouts and tiles (template contact-media / blue blocks) ---------- */

.ai-delta,
.ai-note,
.ai-tile {
  position: relative;
  min-width: 0;
  border-radius: 7px;
  padding: 30px;
}
.ai-delta__label,
.ai-note__label,
.ai-tile__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px !important;
}

/* blue gradient blocks with the molecule pattern */
.ai-delta,
.ai-tile.ai-tile--accent,
.ai-stack--fill .ai-note {
  z-index: 0;
  overflow: hidden;
  background: var(--ai-gradient);
  color: #fff;
  box-shadow: 0 16px 34px rgba(13, 114, 185, .28);
}
.ai-delta::before,
.ai-tile--accent::before,
.ai-stack--fill .ai-note::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -12%;
  width: 70%;
  height: 160%;
  background: url(../images/bg/01.png) no-repeat right top / contain;
  opacity: .5;
  pointer-events: none;
}

.ai-delta__label { color: #fff; }
.ai-delta__figs {
  font-family: 'Nunito', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2 !important;
  letter-spacing: 0;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ai-delta__from { opacity: .8; }
.ai-delta__arrow { padding: 0 6px; }
.ai-delta__unit { font-family: 'Heebo', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 1.5px; color: #fff; }
.ai-section .ai-delta__ctx { margin-top: 8px; font-size: 16px; color: #fff; }

.ai-delta--wide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 40px;
  margin-top: 30px;
  padding: 34px 40px;
}
.ai-delta--wide .ai-delta__label { flex: 1 1 100%; }
.ai-section .ai-delta--wide .ai-delta__ctx { order: 2; flex: 1 1 14em; margin-top: 0; }
.ai-delta--wide .ai-delta__figs { order: 3; flex: 0 1 auto; font-size: 50px; }
.ai-delta__unit { white-space: nowrap; }

.ai-tile {
  background: #fff;
  border-bottom: 3px solid var(--ai-blue);
  box-shadow: var(--ai-shadow);
}
.ai-tile__label { color: var(--ai-brand); }
.ai-tile__text { font-size: 17px; color: var(--ai-text); }
.ai-tile .ai-claim { font-weight: 700; color: var(--ai-navy); }
.ai-tile.ai-tile--accent { border-bottom: 0; }
.ai-tile--accent .ai-tile__label,
.ai-tile--accent .ai-tile__text,
.ai-tile--accent .ai-claim { color: #fff; }

.ai-note { background: #fff; box-shadow: var(--ai-shadow); }
.ai-note__label { color: var(--ai-brand); }

.ai-stack--fill { align-self: stretch; }
.ai-stack--fill .ai-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 34px;
}
.ai-stack--fill .ai-note__label { color: #fff; }
.ai-section .ai-stack--fill .ai-note p:not(.ai-note__label) { font-size: 20px; line-height: 1.55; font-weight: 700; color: #fff; }

/* STT cost block */
.ai-cost {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 0 50px;
  align-items: center;
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1px solid var(--ai-line);
}
.ai-cost__intro .ai-h3 { margin-bottom: 14px; }
.ai-section .ai-cost__headline {
  margin-top: 22px;
  padding-left: 18px;
  border-left: 3px solid var(--ai-blue);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ai-navy);
}

/* ---------- custom models (blue band) ---------- */

.ai-steps {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15em), 1fr));
  counter-reset: ai-step;
}
.ai-step {
  min-width: 0;
  counter-increment: ai-step;
  padding: 30px 26px;
  border-radius: 7px;
  background: #fff;
  color: var(--ai-text);
  box-shadow: 0 16px 34px rgba(0, 25, 70, .2);
}
/* template .step-num circle */
.ai-step::before {
  content: counter(ai-step, decimal-leading-zero);
  content: counter(ai-step, decimal-leading-zero) / "";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--ai-icon-shadow);
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ai-deep);
}
.ai-band .ai-step .ai-h4 { color: var(--ai-navy); }
.ai-step p { font-size: 15px; color: var(--ai-muted); }

.ai-proof {
  margin-top: 60px;
  padding: 40px;
  border-radius: 7px;
  background: #fff;
  color: var(--ai-text);
  box-shadow: 0 16px 34px rgba(0, 25, 70, .2);
}
.ai-band .ai-proof .ai-h3 { color: var(--ai-navy); margin-bottom: 26px; }
.ai-proof__list {
  display: grid;
  gap: 26px 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22em), 1fr));
}
.ai-proof__list li { min-width: 0; border-left: 3px solid var(--ai-blue); padding-left: 18px; }
.ai-proof__list p { font-size: 16px; color: var(--ai-text); }
.ai-proof__list .ai-claim { font-weight: 700; color: var(--ai-navy); }
.ai-section .ai-proof__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ai-brand);
  margin-bottom: 6px;
}

.ai-section .ai-closing {
  margin-top: 48px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
  color: #fff;
  max-width: 60ch;
}

/* ---------- phone agents ---------- */

.ai-usecase { align-items: center; text-align: center; }
.ai-usecase p { font-size: 15px; color: var(--ai-muted); }
.ai-usecase .ai-h4 { margin-bottom: 10px; }

/* ---------- custom software divider (template hero; the legacy card strip overlaps it by 100px) ---------- */

.ai-section.ai-divider { padding: 100px 0 190px; }
.ai-divider .ai-head { margin-bottom: 0; }

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

@media (max-width: 1199px) {
  .ai-section .ai-h1 { font-size: 50px; }
  .ai-section .ai-h2 { font-size: 30px; }
  .ai-section.ai-hero { padding-top: 15.5em; } /* header wraps to two rows here */
}

@media (max-width: 1100px) {
  .ai-cost { grid-template-columns: minmax(0, 1fr); }
  .ai-cost__intro { margin-bottom: 30px; }
}

@media (max-width: 992px) {
  .ai-section { padding: 80px 0; }
  .ai-section.ai-hero { padding: 8.5em 0 130px; }
  .ai-section.ai-divider { padding: 80px 0; }
  .ai-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .ai-hero__panel { max-width: 520px; }
  .ai-grid-2, .ai-split { grid-template-columns: minmax(0, 1fr); }
  .ai-section .ai-h1 { font-size: 44px; }
}

@media (max-width: 767px) {
  .ai-hero__panel { display: none; }
  .ai-jump { margin-top: 40px; }
  .ai-band::before { width: 100%; right: -30%; }
}

@media (max-width: 576px) {
  .ai-section { padding: 64px 0; font-size: 15px; }
  .ai-section.ai-hero { padding: 7.5em 0 100px; }
  .ai-section.ai-divider { padding: 64px 0; }
  .ai-hero::after { height: 50px; }
  .ai-wrap { padding: 0 20px; }
  .ai-section .ai-h1 { font-size: 36px; }
  .ai-section .ai-h2 { font-size: 24px; letter-spacing: 1px; }
  .ai-lead, .ai-hero .ai-lead { font-size: 16px; }
  .ai-head { margin-bottom: 36px; }
  .ai-cards { gap: 24px; }
  .ai-card { padding: 32px 22px 24px; }
  .ai-delta, .ai-note, .ai-tile, .ai-stack--fill .ai-note { padding: 24px 22px; }
  .ai-chart { padding: 22px 14px 14px; }
  .ai-chart__figure { font-size: 52px; }
  .ai-proof { padding: 26px 22px; }
  .ai-step { padding: 26px 22px; }
  .ai-cost { margin-top: 56px; padding-top: 48px; }
  .ai-section .ai-feats { margin-top: 48px; }
  .ai-actions .ai-btn { width: 100%; }
  .ai-delta--wide .ai-delta__figs { font-size: 38px; }

  /* charts: each row stacks, label on its own line, bar + value full width */
  .ai-bars, .ai-bars thead, .ai-bars tbody, .ai-bars caption,
  .ai-err__table, .ai-err__table tbody, .ai-err__table caption { display: block; }
  .ai-bars tr { display: grid; grid-template-columns: minmax(0, 1fr); }
  .ai-bars--cost tr { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 8px; }
  .ai-section .ai-bars--cost .ai-num .ai-val { white-space: normal; }
  .ai-bars thead th:first-child,
  .ai-bars:not(.ai-bars--cost) 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--cost thead th { padding: 6px 8px; border-bottom: 0; }
  .ai-bars tbody tr, .ai-err__table tbody tr:not(.ai-err__group) { border-bottom: 1px solid #f1f3f9; 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: 10px 8px 0; }
  .ai-bars tbody td { padding: 6px 8px; }
  .ai-bars tbody td:last-child,
  .ai-err__table tbody td:not(.ai-err__f1) { height: 2.6em; padding-right: calc(16px + var(--ai-valw)); }
  .ai-bars--cost .ai-num { width: auto; display: flex; align-items: center; }
  .ai-section .ai-bar + .ai-val { right: 8px; }
  .ai-bars tr.is-ours, .ai-err tr.is-ours { background: var(--ai-soft); border-radius: 7px; }
  .ai-bars tr.is-ours > *, .ai-err tr.is-ours > * { background-color: transparent; border-radius: 0 !important; }

  .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: 10px 8px 0; }
  .ai-err__group th { grid-column: 1 / -1; padding: 16px 8px 4px; }
  .ai-err__table tbody td { padding: 6px 8px; }
  .ai-err__f1 { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-section *,
  .ai-section *::before,
  .ai-section *::after,
  .ai-nav-item a {
    transition: none !important;
    animation: none !important;
  }
  .ai-section .ai-card:hover,
  .ai-section a.ai-btn:hover { transform: none; }
  /* the template's title square is drawn by its animation; show it static instead */
  .ai-section .title-effect { animation: none; }
  .ai-section .title-effect .bar { transform: none; }
}

/* ---------- header nav ---------- */
/* tighter item spacing so the extra AI items 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; }
}
/* 1200-1439px: the EU funding banner scales with the viewport instead of a fixed 300px,
   and the links are a little tighter; every item stays visible on one row */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  #main-menu > .uemob { flex: none; width: clamp(190px, calc(190px + (100vw - 1200px) * .45), 300px); }
  #main-menu > .uemob img { display: block; width: 100%; height: auto; }
  #main-menu > .nav-item { margin: 0 1px; }
  #main-menu > .nav-item > .nav-link { font-size: 14px; letter-spacing: .5px; }
}
