/**
 * /ai/ai-automation-agency/ — service-inner-pages/page-services-ai-automation-agency.php
 *
 * Built from Figma YmLzL45Qaw4FJRduYrQQM1 node 91:6257 ("Automation"), the
 * dedicated frame for this page discovered 2026-09-22 (the page's own
 * docblock previously noted no such frame existed and reused the shared
 * hire/service family look instead — this stylesheet replaces that with a
 * page-specific dark visual system matching the real frame).
 *
 * Page-specific only: enqueued solely on this template (see functions.php).
 * The hero keeps the shared .hrf-hero component from css/service-inner-common.css
 * (only its copy changed); every section below is new and scoped to
 * body.page-template-page-services-ai-automation-agency so nothing here can
 * leak onto the ~30 sibling pages that share service-inner-common.css.
 */

body.page-template-page-services-ai-automation-agency .aaf-eyebrow {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.86px;
  text-transform: uppercase;
  color: #cab5ff;
  margin: 0 0 20px;
}

/* ===================== 1. TECH MARQUEE ===================== */

body.page-template-page-services-ai-automation-agency .aaf-tech {
  background-color: #ffffff;
  padding-block: clamp(56px, 8vw, 120px) clamp(40px, 6vw, 85px);
  overflow: hidden;
}

body.page-template-page-services-ai-automation-agency .aaf-tech__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

body.page-template-page-services-ai-automation-agency .aaf-tech__header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

body.page-template-page-services-ai-automation-agency .aaf-tech__header .aaf-eyebrow {
  color: #9a60fb;
  text-align: center;
}

/* 91:6797 — the work section sits on white, so its eyebrow takes the dark-surface purple. */
body.page-template-page-services-ai-automation-agency .aaf-work__header .aaf-eyebrow {
  color: #9a60fb;
}

body.page-template-page-services-ai-automation-agency .aaf-tech__heading {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 76px);
  letter-spacing: -0.0455em;
  line-height: calc(78 / 76);
  color: #171717;
  margin: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-tech__marquee {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.page-template-page-services-ai-automation-agency .aaf-tech__row {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 60px, black calc(100% - 60px), transparent);
  mask-image: linear-gradient(to right, transparent, black 60px, black calc(100% - 60px), transparent);
}

body.page-template-page-services-ai-automation-agency .aaf-tech__track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: aaf-tech-scroll 34s linear infinite;
}

/* 2026-09-29: each row now repeats four times in the template (it was twice,
   and a row of short names left the band empty on the right of any screen
   wider than about 1,100px). Half the track is now twice as long, so twice
   the duration keeps the pills moving at the old speed. */
body.page-template-page-services-ai-automation-agency .aaf-tech__track {
  animation-duration: 68s;
}

body.page-template-page-services-ai-automation-agency .aaf-tech__row:hover .aaf-tech__track {
  animation-play-state: paused;
}

body.page-template-page-services-ai-automation-agency .aaf-tech__row--reverse .aaf-tech__track {
  animation-direction: reverse;
}

body.page-template-page-services-ai-automation-agency .aaf-tech__pills {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-tech__pills li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid #dadada;
  background-color: rgba(245, 243, 248, 0.16);
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 14px;
  color: #171717;
  white-space: nowrap;
  line-height: normal;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

body.page-template-page-services-ai-automation-agency .aaf-tech__pills li img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-tech__pills li:hover {
  background-color: #9a60fb;
  border-color: #b96cff;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(185, 108, 255, 0.3), 0 8px 20px rgba(120, 60, 200, 0.35);
}

@keyframes aaf-tech-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  body.page-template-page-services-ai-automation-agency .aaf-tech__track {
    animation: none;
  }
}

/* ===================== 2. CONNECTED AUTOMATION (platform diagram) ===================== */
/* Copied from .automation-platform (css/automation.css, page-automation.php)
   — the same component, same content, verified working there already. */

body.page-template-page-services-ai-automation-agency .aaf-platform {
  position: relative;
  background-color: #020010;
  padding-block: clamp(56px, 8vw, 120px);
}

body.page-template-page-services-ai-automation-agency .aaf-platform__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

body.page-template-page-services-ai-automation-agency .aaf-platform__header {
  text-align: center;
  max-width: 1060px;
  margin: 0 auto clamp(32px, 4vw, 48px);
}

body.page-template-page-services-ai-automation-agency .aaf-platform__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 76px);
  letter-spacing: -0.0455em;
  line-height: calc(86.24 / 76);
  color: #ffffff;
  margin: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__panel {
  position: relative;
  border: 1px solid rgba(185, 108, 255, 0.6);
  border-radius: 30px;
  background-color: #070211;
  overflow: hidden;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__diagram {
  position: relative;
  display: grid;
  grid-template-columns: 283.38px minmax(0, 1fr) 283.38px;
  align-items: stretch;
  gap: 0;
  padding: 50px 52px 70px;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px;
  border-radius: 12px;
  background-color: #09030f;
  box-shadow: inset 0 0 0 1px rgba(185, 108, 255, 0.2);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__item--alt {
  background-color: #09020f;
  border-color: #2c183f;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__item:hover {
  background-color: #150a24;
  box-shadow: inset 0 0 0 1px rgba(185, 108, 255, 0.5);
}

body.page-template-page-services-ai-automation-agency .aaf-platform__item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background-color: #271531;
  border: 1px solid rgba(184, 108, 254, 0.5);
  padding: 11px;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__item-icon img {
  width: 34px;
  height: 34px;
  transition: transform 0.25s ease;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__item:hover .aaf-platform__item-icon img {
  transform: scale(1.15) rotate(-8deg);
}

body.page-template-page-services-ai-automation-agency .aaf-platform__item-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  flex: 1 0 0;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__item-title {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 14px;
  line-height: 28px;
  color: #ffffff;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__item-desc {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0.88;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__wires,
body.page-template-page-services-ai-automation-agency .aaf-platform__flow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  pointer-events: none;
  z-index: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__wires--left,
body.page-template-page-services-ai-automation-agency .aaf-platform__flow--left {
  right: calc(50% + 193px);
  width: 163px;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__wires--right,
body.page-template-page-services-ai-automation-agency .aaf-platform__flow--right {
  left: calc(50% + 186px);
  width: 170px;
}

/* 91:5623 — five 12px dots, 20px pitch, under the three steps. */
body.page-template-page-services-ai-automation-agency .aaf-platform__core-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 92px;
  height: 12px;
  margin: 26px auto 0;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__mobile-connector,
body.page-template-page-services-ai-automation-agency .aaf-platform__mobile-connector-svg {
  display: none;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__core {
  position: relative;
  z-index: 1;
  width: min(330px, 92%);
  padding: 30px 20px;
  border-radius: 16px;
  border: 1px solid #aa74db;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  background-image: radial-gradient(52% 40% at 50% 20%, rgba(128, 51, 162, 0.7) 0%, rgba(47, 19, 60, 0.7) 100%);
  background-color: #2f133c;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__core-label {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #cd95f0;
  margin: 0 0 22px;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__core-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 15px;
  background-color: #321042;
  border: 1px solid #ac3bff;
  padding: 16px;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__core-icon img {
  width: 26px;
  height: 26px;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__core-title {
  font-family: var(--font-base);
  font-weight: 900;
  font-size: 24px;
  color: #ffffff;
  margin: 0 0 22px;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__core-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__core-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background-color: #31143e;
  border: 1px solid #744888;
  text-align: left;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__core-step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #aa61cc;
  color: #aa61cc;
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 10px;
  margin-top: 1px;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__core-step-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__core-step-title {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 12px;
  color: #ffffff;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__core-step-desc {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.page-template-page-services-ai-automation-agency .aaf-platform__diagram {
    grid-template-columns: 1fr;
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__wires,
  body.page-template-page-services-ai-automation-agency .aaf-platform__flow {
    display: none;
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__mobile-connector {
    display: block;
    position: relative;
    width: 2px;
    height: 48px;
    margin-inline: auto;
    background: linear-gradient(180deg, rgba(185, 108, 255, 0.05), rgba(185, 108, 255, 0.6));
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__mobile-connector--bottom {
    background: linear-gradient(180deg, rgba(185, 108, 255, 0.6), rgba(185, 108, 255, 0.05));
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__center {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__core {
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  body.page-template-page-services-ai-automation-agency .aaf-platform__panel {
    border-radius: 16px;
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__diagram {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 10px;
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__wires,
  body.page-template-page-services-ai-automation-agency .aaf-platform__flow {
    display: none;
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__center {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__mobile-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    margin-inline: auto;
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__item {
    padding: 10px;
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__item-icon {
    width: 40px;
    height: 40px;
    border-radius: 7px;
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__item-icon img {
    width: 24px;
    height: 24px;
  }
  /* line-height has to come down WITH the font-size. The desktop rule sets
     14px/28px, which is a 2.0 ratio that never shows because at 14px these
     titles are all one line. At 11px the 28px was inherited unchanged — a 2.55
     ratio — and the six titles that DO wrap here ("CRM & Business Data",
     "Forms & Emails", "Website Events", "APIs & Databases", "Microsoft Teams",
     "Google Workspace", "+9,000 Integrations") got a 28px gap between their two
     lines, so each read as two detached labels rather than one. Measured
     2026-09-24: those titles were 36px tall against 8px for a single-line one.
     15px keeps the two lines as one block and still clears the 40px of content
     height the 60px tile leaves after its 10px padding. */
  body.page-template-page-services-ai-automation-agency .aaf-platform__item-title {
    font-size: 11px;
    line-height: 15px;
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__item-desc {
    display: none;
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__core {
    width: 100%;
    padding: 20px 16px;
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__core-title {
    font-size: 22px;
    margin-bottom: 18px;
  }
}

/* ===================== 3. IMPACT STATS BAND ===================== */

body.page-template-page-services-ai-automation-agency .aaf-impact {
  background-color: #100c19;
  padding-block: clamp(40px, 6vw, 55px);
}

body.page-template-page-services-ai-automation-agency .aaf-impact__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  justify-content: space-between;
}

body.page-template-page-services-ai-automation-agency .aaf-impact__intro {
  max-width: 380px;
}

body.page-template-page-services-ai-automation-agency .aaf-impact__desc {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: #aaa5b3;
  margin: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-impact__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 35px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 260px;
}

body.page-template-page-services-ai-automation-agency .aaf-impact__stat {
  border-left: 1px solid rgba(160, 100, 255, 0.3);
  padding-left: 24px;
  max-width: 260px;
}

body.page-template-page-services-ai-automation-agency .aaf-impact__stat:first-child {
  border-left: none;
  padding-left: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-impact__value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 44px;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1;
}

body.page-template-page-services-ai-automation-agency .aaf-impact__label {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #aaa5b3;
  margin: 0;
}

@media (max-width: 767px) {
  body.page-template-page-services-ai-automation-agency .aaf-impact__list {
    flex-direction: column;
    gap: 20px;
  }
  body.page-template-page-services-ai-automation-agency .aaf-impact__stat {
    max-width: none;
  }
}

/* ===================== 4. OUR AUTOMATION WORK ===================== */

body.page-template-page-services-ai-automation-agency .aaf-work {
  background-color: #ffffff;
  padding-block: clamp(56px, 8vw, 120px);
}

body.page-template-page-services-ai-automation-agency .aaf-work__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

body.page-template-page-services-ai-automation-agency .aaf-work__header {
  margin-bottom: 32px;
}

body.page-template-page-services-ai-automation-agency .aaf-work__aside {
  position: sticky;
  top: calc(var(--header-height, 76px) + 32px);
  align-self: start;
}

body.page-template-page-services-ai-automation-agency .aaf-work__heading {
  font-family: 'Inter', var(--font-base);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 76px);
  letter-spacing: -0.0455em;
  line-height: calc(79 / 76);
  color: #171717;
  margin: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-work__heading em {
  font-style: normal;
  font-family: 'Inter', var(--font-base);
  font-weight: 300;
  color: #9a60fb;
}

body.page-template-page-services-ai-automation-agency .aaf-work__grid {
  display: grid;
  grid-template-columns: minmax(0, 473fr) minmax(0, 920fr);
  gap: 47px;
  align-items: start;
}

body.page-template-page-services-ai-automation-agency .aaf-work__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 405.434px;
}

body.page-template-page-services-ai-automation-agency .aaf-work__nav-item {
  appearance: none;
  background: none;
  border: none;
  border-top: 1px solid rgba(23, 23, 23, 0.12);
  padding: 16px 0 16px 20px;
  position: relative;
  text-align: left;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 16px;
  color: rgba(23, 23, 23, 0.48);
  cursor: pointer;
  transition: color 0.25s ease;
}

body.page-template-page-services-ai-automation-agency .aaf-work__nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 5.543px;
  background-color: #9a60fa;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.page-template-page-services-ai-automation-agency .aaf-work__nav-item.is-active {
  color: #171717;
  font-weight: 500;
}

body.page-template-page-services-ai-automation-agency .aaf-work__nav-item.is-active::before {
  opacity: 1;
}

body.page-template-page-services-ai-automation-agency .aaf-work__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.page-template-page-services-ai-automation-agency .aaf-work__card {
  border-radius: 24px;
  padding: 24px;
  scroll-margin-top: calc(var(--header-height, 76px) + 24px);
}

body.page-template-page-services-ai-automation-agency .aaf-work__card-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

body.page-template-page-services-ai-automation-agency .aaf-work__card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1.5px solid #b96cff;
  filter: drop-shadow(0 10px 12px rgba(124, 58, 237, 0.25));
}

body.page-template-page-services-ai-automation-agency .aaf-work__card-icon img {
  width: 22px;
  height: 22px;
}

body.page-template-page-services-ai-automation-agency .aaf-work__card-eyebrow {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8b8497;
  margin: 0 0 6px;
}

body.page-template-page-services-ai-automation-agency .aaf-work__card-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -1px;
  color: #ffffff;
  margin: 0;
  line-height: 1.15;
}

body.page-template-page-services-ai-automation-agency .aaf-work__card-desc {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 18px;
}

/* ---- workflow diagram exported from the Figma frame (nodes 91:6834 /
   91:6873 / 91:6910 / 91:6948, 2x PNG -> WebP). The frame draws these as
   layered illustrations rather than composable UI, so they ship as images
   at their native 872x395 card ratio. ---- */
body.page-template-page-services-ai-automation-agency .aaf-work__figure {
  margin: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-work__diagram {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 872 / 395;
  object-fit: cover;
  border-radius: 14px;
}

body.page-template-page-services-ai-automation-agency .aaf-work__card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

body.page-template-page-services-ai-automation-agency .aaf-work__impact {
  flex: 0 0 auto;
  width: 300px;
  height: 159px;
  padding: 22px;
  border-radius: 14px;
  background-color: #27173f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
}

body.page-template-page-services-ai-automation-agency .aaf-work__impact-label {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 6px;
}

body.page-template-page-services-ai-automation-agency .aaf-work__impact-value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 56px;
  letter-spacing: -2.24px;
  color: #b96cff;
  margin: 3px 0 8px;
  line-height: 1;
}

body.page-template-page-services-ai-automation-agency .aaf-work__impact-desc {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 15px;
  line-height: 21px;
  color: #ffffff;
  margin: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-work__bullets {
  flex: 1 1 260px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-content: center;
}

body.page-template-page-services-ai-automation-agency .aaf-work__bullets li {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: #ffffff;
}

body.page-template-page-services-ai-automation-agency .aaf-work__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #8d5de8;
}

@media (max-width: 1023px) {
  body.page-template-page-services-ai-automation-agency .aaf-work__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body.page-template-page-services-ai-automation-agency .aaf-work__aside {
    position: static;
  }
  body.page-template-page-services-ai-automation-agency .aaf-work__nav {
    max-width: none;
  }
  body.page-template-page-services-ai-automation-agency .aaf-work__nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  /* The track was rgba(255,255,255,.12) — WHITE, on this section's own white
     background (.aaf-work is #fff), so it has never been visible at any width
     it applied to and the strip rendered as bare labels with a purple bar under
     one of them. Exactly the bug css/content.css records for
     .usecases__nav-item on 2026-09-22, in the same component, unfixed here
     until 2026-09-24. #e6e6e6 is the value that pass settled on. */
  body.page-template-page-services-ai-automation-agency .aaf-work__nav-item {
    border-top: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
    padding: 10px 4px;
    white-space: nowrap;
  }
  body.page-template-page-services-ai-automation-agency .aaf-work__nav-item::before {
    left: 0;
    right: 0;
    top: auto;
    bottom: -2px;
    width: auto;
    height: 2px;
  }
  /* The frame has no mobile artboard for these diagrams. Scaled to a phone
     width their labels are unreadable, so below the desktop grid they scroll
     horizontally at a legible width — same pattern as .aaf-work__nav above. */
  body.page-template-page-services-ai-automation-agency .aaf-work__grid,
  body.page-template-page-services-ai-automation-agency .aaf-work__list,
  body.page-template-page-services-ai-automation-agency .aaf-work__card {
    min-width: 0;
  }
  body.page-template-page-services-ai-automation-agency .aaf-work__figure {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
  }
  body.page-template-page-services-ai-automation-agency .aaf-work__diagram {
    min-width: 680px;
    border-radius: 0;
  }
}

@media (max-width: 767px) {
  /* Mobile portfolio card - Figma YmLzL45Qaw4FJRduYrQQM1 node 244:7070
     ("case-1", 362x657), 2026-09-23; the same card as .usecase-card on the
     home page. Replaces the 640px block that was here (padding 20, 1-column
     bullets) and, below 768px, the 680px side-scrolling diagram from the
     1023px block above: that scroller existed because the frame had no mobile
     artboard, and 244:7070 now draws the image fitted to the card as a 154px
     band with 6px corners. Card fills (inline, alternating) and the #27173f
     impact box are left as they are.
     Stack: head -> desc 16, desc -> figure 20, figure -> impact 20,
     impact -> bullets 20; no divider rule. The value's trim is already set
     page-wide further down. */
  body.page-template-page-services-ai-automation-agency .aaf-work__card {
    padding: 24px 16px;
    border-radius: 24px;
  }

  /* 20, not the frame's 16: the description below the head is hidden on
     phones (2026-09-25), so this is now the head -> figure gap. */
  body.page-template-page-services-ai-automation-agency .aaf-work__card-head {
    gap: 11px;
    margin-bottom: 20px;
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__card-icon {
    width: 34px;
    height: 34px;
    border-width: 1.095px;
    border-radius: 10.216px;
    filter: drop-shadow(0 7.297px 9.121px rgba(124, 58, 237, 0.25));
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__card-icon img {
    width: 16px;
    height: 16px;
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__card-eyebrow {
    font-size: 12px;
    line-height: normal;
    margin-bottom: 11px;
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__card-title {
    font-size: 24px;
    line-height: 31.2px;
    letter-spacing: -1.36px;
  }

  /* 244:7081's description paragraph is hidden on phones (user request
     2026-09-25), on all four portfolio card families. */
  body.page-template-page-services-ai-automation-agency .aaf-work__card-desc {
    display: none;
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__figure {
    height: 154px;
    overflow: hidden;
    border-radius: 6px;
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__diagram {
    min-width: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__card-footer {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 20px;
    margin-top: 20px;
    padding-top: 0;
    border-top: 0;
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__impact {
    width: 100%;
    height: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__impact-label {
    font-size: 12px;
    line-height: normal;
    margin: 0;
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__impact-value {
    font-size: 42px;
    line-height: 56px;
    margin: 0;
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__impact-desc {
    font-weight: 500;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__bullets {
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__bullets li {
    line-height: 21.75px;
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__bullets li::before {
    top: 8px;
    height: 7.5px;
    border-radius: 50px;
  }
}

/* ===================== 5. CTA BANDS (shared by two mid-page CTAs) ===================== */

body.page-template-page-services-ai-automation-agency .aaf-cta {
  background-color: #020010;
  padding-block: clamp(40px, 6vw, 96px);
}

body.page-template-page-services-ai-automation-agency .aaf-cta__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

body.page-template-page-services-ai-automation-agency .aaf-cta__panel {
  position: relative;
  border: 1px solid rgba(120, 82, 186, 0.5);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(19, 12, 35, 0.92) 0%, rgba(12, 8, 25, 0.94) 100%);
  padding: clamp(40px, 6vw, 65px);
  text-align: center;
}

body.page-template-page-services-ai-automation-agency .aaf-cta__eyebrow {
  justify-content: center;
  text-align: center;
}

body.page-template-page-services-ai-automation-agency .aaf-cta__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 70px);
  letter-spacing: -0.0450em;
  line-height: calc(70 / 70);
  color: #ffffff;
  max-width: 720px;
  margin: 0 auto 20px;
}

body.page-template-page-services-ai-automation-agency .aaf-cta__desc {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: #aab1c0;
  max-width: 600px;
  margin: 0 auto 32px;
}

body.page-template-page-services-ai-automation-agency .aaf-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f7e934;
  color: #151515;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
}

body.page-template-page-services-ai-automation-agency .aaf-cta__btn img,
body.page-template-page-services-ai-automation-agency .aaf-cta__btn svg {
  width: 12px;
  height: 12px;
}

/* ===================== 6. WHY TBI ===================== */

body.page-template-page-services-ai-automation-agency .aaf-why {
  background-color: #020010;
  padding-block: clamp(56px, 8vw, 120px) 3px;
}

body.page-template-page-services-ai-automation-agency .aaf-why__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

body.page-template-page-services-ai-automation-agency .aaf-why__top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 48px;
}

body.page-template-page-services-ai-automation-agency .aaf-why__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 86.4px);
  letter-spacing: -0.0550em;
  line-height: calc(82.08 / 86.4);
  color: #ecebea;
  margin: 0;
  flex: 1 1 320px;
}

body.page-template-page-services-ai-automation-agency .aaf-why__copy {
  flex: 1 1 420px;
  max-width: 560px;
}

body.page-template-page-services-ai-automation-agency .aaf-why__copy p {
  font-family: var(--font-base);
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 20px;
}

body.page-template-page-services-ai-automation-agency .aaf-why__copy p:first-child {
  font-weight: 600;
  color: #ecebea;
}

body.page-template-page-services-ai-automation-agency .aaf-why__copy p:last-child {
  font-weight: 400;
  color: #b9b5c0;
  margin-bottom: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-why__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #261f4e;
  border-bottom: 1px solid #261f4e;
}

body.page-template-page-services-ai-automation-agency .aaf-why__stat {
  padding: 32px;
  border-left: 1px solid #261f4e;
}

body.page-template-page-services-ai-automation-agency .aaf-why__stat:first-child {
  border-left: none;
}

body.page-template-page-services-ai-automation-agency .aaf-why__stat-value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 44px;
  color: #ecebea;
  margin: 0 0 12px;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

body.page-template-page-services-ai-automation-agency .aaf-why__stat-value span {
  font-family: var(--font-base);
  font-size: 16px;
  letter-spacing: 2px;
  color: #ff3434;
}

body.page-template-page-services-ai-automation-agency .aaf-why__stat-label {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 14px;
  color: #aaa5b3;
  margin: 0;
}

/* .aaf-why__strip (the four-column principles strip) was deleted 2026-09-24
   with its markup, on the tester's "Remove section" (QA item 8). The media
   queries below were SHARED selectors (".aaf-why__stats, .aaf-why__strip");
   only the strip halves were removed — the stats rules are still live. */

@media (max-width: 1023px) {
  body.page-template-page-services-ai-automation-agency .aaf-why__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  body.page-template-page-services-ai-automation-agency .aaf-why__stat:nth-child(2) {
    border-left: none;
  }
}

@media (max-width: 640px) {
  body.page-template-page-services-ai-automation-agency .aaf-why__stats {
    grid-template-columns: 1fr;
  }
  body.page-template-page-services-ai-automation-agency .aaf-why__stat {
    border-left: none;
    border-top: 1px solid #261f4e;
    padding: 24px 0;
  }
  body.page-template-page-services-ai-automation-agency .aaf-why__stat:first-child {
    border-top: none;
  }
}

/* ===================== 7. WHERE ARE YOU LOSING TIME ===================== */

body.page-template-page-services-ai-automation-agency .aaf-losing {
  background-color: #020010;
  padding-block: clamp(56px, 8vw, 100px);
}

body.page-template-page-services-ai-automation-agency .aaf-losing__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
  display: grid;
  grid-template-columns: minmax(280px, 486px) 1fr;
  gap: 80px;
}

body.page-template-page-services-ai-automation-agency .aaf-losing__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 76px);
  letter-spacing: -0.0658em;
  line-height: calc(78.3 / 76);
  color: #ffffff;
  margin: 20px 0 0;
}

body.page-template-page-services-ai-automation-agency .aaf-losing__heading em {
  font-style: normal;
  color: #b96cff;
}

body.page-template-page-services-ai-automation-agency .aaf-losing__desc {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 28px 0 0;
}

body.page-template-page-services-ai-automation-agency .aaf-losing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-content: start;
}

body.page-template-page-services-ai-automation-agency .aaf-losing__card {
  background-color: #100a21;
  border: 1px solid rgba(168, 114, 216, 0.3);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}
body.page-template-page-services-ai-automation-agency .aaf-losing__card:before {
    content: '';
    position: absolute;
    opacity: 0;
    pointer-events: none;
    inset: 0px;
    border-radius: inherit;
    background: linear-gradient(rgba(185, 108, 255, 0) 17.42%, rgba(185, 108, 255, 0.043) 38.96%, rgba(185, 108, 255, 0.086) 51.42%, rgba(185, 108, 255, 0.32) 100%);
    transition: opacity 0.3s ease-out;
}
body.page-template-page-services-ai-automation-agency .aaf-losing__card:hover:before {
    opacity: 1;
}

body.page-template-page-services-ai-automation-agency .aaf-losing__card-bar {
  display: block;
  width: 35px;
  height: 3px;
  background-color: #b96cff;
  margin-bottom: 16px;
}

body.page-template-page-services-ai-automation-agency .aaf-losing__card-title {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 22px;
  color: #f1eff3;
  margin: 0 0 16px;
}

body.page-template-page-services-ai-automation-agency .aaf-losing__card-desc {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

@media (max-width: 1023px) {
  body.page-template-page-services-ai-automation-agency .aaf-losing__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  body.page-template-page-services-ai-automation-agency .aaf-losing__grid {
    grid-template-columns: 1fr;
  }
  body.page-template-page-services-ai-automation-agency .aaf-losing__card {
    padding: 24px;
  }
}

/* ===================== 8. WHERE THE TIME GOES (calculator) ===================== */

body.page-template-page-services-ai-automation-agency .aaf-calc {
  background-color: #ffffff;
  padding-block: clamp(56px, 8vw, 120px);
}

body.page-template-page-services-ai-automation-agency .aaf-calc__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

body.page-template-page-services-ai-automation-agency .aaf-calc__header {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__intro {
  max-width: 700px;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__eyebrow {
  color: #9a60fb;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 74.88px);
  letter-spacing: -0.0500em;
  line-height: calc(77.875 / 74.88);
  color: #171717;
  margin: 12px 0 0;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__heading em {
  font-style: normal;
  color: #9a60fa;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__desc {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(23, 23, 23, 0.7);
  margin: 18px 0 0;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate {
  flex: 0 0 auto;
  width: 460px;
  max-width: 100%;
  padding: 20px 24px;
  border-radius: 12px;
  background-color: #faf9fc;
  border: 1px solid #e2ddea;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate-label {
  display: block;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  margin: 0 0 2px;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate-desc {
  display: block;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 14px;
  color: #171717;
  margin: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate-value {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #9a60fa;
  white-space: nowrap;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate-slider {
  width: 100%;
  accent-color: #9a60fa;
}

/* ---- department rows (white "product mockup" panel on the dark section) ---- */
body.page-template-page-services-ai-automation-agency .aaf-calc__rows {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(154, 96, 250, 0.15);
  margin-bottom: 14px;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__row {
  background-color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(154, 96, 250, 0.15);
}

body.page-template-page-services-ai-automation-agency .aaf-calc__row:last-child {
  border-bottom: none;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__row-head {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 0 0 auto;
  width: 190px;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__row-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 8px;
  background-color: #ebdffe;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__row-icon img {
  width: 22px;
  height: 22px;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__row-dept {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  color: #171717;
  margin: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__row-hours {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 13px;
  color: rgba(23, 23, 23, 0.7);
  margin: 3px 0 0;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 220px;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__row-tags span {
  padding: 4px 10px;
  border-radius: 6px;
  background-color: #f2f2f3;
  font-family: var(--font-base);
  font-size: 12px;
  color: rgba(23, 23, 23, 0.7);
  white-space: nowrap;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__row-bars {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__bar-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-base);
  font-size: 13px;
  color: rgba(23, 23, 23, 0.7);
}

body.page-template-page-services-ai-automation-agency .aaf-calc__bar-line span:first-child {
  flex: 0 0 54px;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__bar-line span:last-child {
  flex: 0 0 32px;
  text-align: right;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__bar-track {
  flex: 1;
  height: 8px;
  border-radius: 30px;
  background-color: rgba(217, 217, 217, 0.6);
  overflow: hidden;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__bar-track--recovered {
  background-color: rgba(154, 96, 250, 0.1);
}

body.page-template-page-services-ai-automation-agency .aaf-calc__bar-fill {
  display: block;
  height: 100%;
  border-radius: 30px;
  background-color: #9a60fa;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__row-capacity {
  flex: 0 0 auto;
  text-align: right;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__row-capacity-value {
  font-family: var(--font-serif);
  font-size: 24px;
  color: #9a60fa;
  display: block;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__row-capacity-label {
  font-family: var(--font-base);
  font-size: 13px;
  color: rgba(23, 23, 23, 0.7);
}

body.page-template-page-services-ai-automation-agency .aaf-calc__summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__summary-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e2ddea;
  background-color: #faf9fc;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__summary-card--highlight {
  background: linear-gradient(90deg, #180829 0%, #34105c 100%);
  border-color: rgba(216, 209, 217, 0.4);
}

body.page-template-page-services-ai-automation-agency .aaf-calc__summary-label {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  margin: 0 0 8px;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__summary-card--highlight .aaf-calc__summary-label {
  color: #cab5ff;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__summary-value {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 29px;
  color: #9a60fa;
  margin: 0 0 6px;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__summary-card--highlight .aaf-calc__summary-value {
  color: #ffffff;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__summary-desc {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 12px;
  color: rgba(23, 23, 23, 0.7);
  margin: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__summary-card--highlight .aaf-calc__summary-desc {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
  body.page-template-page-services-ai-automation-agency .aaf-calc__row {
    flex-direction: column;
    align-items: flex-start;
  }
  body.page-template-page-services-ai-automation-agency .aaf-calc__row-capacity {
    text-align: left;
  }
}

@media (max-width: 640px) {
  body.page-template-page-services-ai-automation-agency .aaf-calc__summary {
    grid-template-columns: 1fr;
  }
  body.page-template-page-services-ai-automation-agency .aaf-calc__header {
    align-items: flex-start;
  }
  body.page-template-page-services-ai-automation-agency .aaf-calc__rate {
    width: 100%;
  }
}

/* ===================== 9. LESS MANUAL WORK / 4-step process ===================== */

body.page-template-page-services-ai-automation-agency .aaf-process {
  background-color: #020010;
  padding-block: clamp(56px, 8vw, 100px);
}

body.page-template-page-services-ai-automation-agency .aaf-process__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

body.page-template-page-services-ai-automation-agency .aaf-process__header {
  text-align: center;
  max-width: 1046px;
  margin: 0 auto 48px;
}

body.page-template-page-services-ai-automation-agency .aaf-process__eyebrow {
  justify-content: center;
  text-align: center;
}

body.page-template-page-services-ai-automation-agency .aaf-process__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 5.5vw, 76px);
  letter-spacing: -0.0455em;
  line-height: calc(78.34 / 76);
  color: #ffffff;
  margin: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 19px;
  margin-bottom: 64px;
}

body.page-template-page-services-ai-automation-agency .aaf-process__card {
  background-color: #0f0821;
  border: 1px solid rgba(185, 108, 255, 0.32);
  border-radius: 25px;
  padding: 20px 16px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

body.page-template-page-services-ai-automation-agency .aaf-process__visual {
  margin-bottom: 28px;
}

body.page-template-page-services-ai-automation-agency .aaf-process__illus {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 309.89 / 380.76;
  object-fit: contain;
}

body.page-template-page-services-ai-automation-agency .aaf-process__visual img {
  max-width: 100%;
  max-height: 100%;
}

body.page-template-page-services-ai-automation-agency .aaf-process__num {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1.86px;
  text-transform: uppercase;
  color: #cab5ff;
  margin: 0 0 12px;
}

body.page-template-page-services-ai-automation-agency .aaf-process__title {
  font-family: var(--font-base);
  font-weight: 900;
  font-size: 20px;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.3;
}

body.page-template-page-services-ai-automation-agency .aaf-process__desc {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* mini mock-UI chips reused across all four card visuals */
body.page-template-page-services-ai-automation-agency .aaf-process__num {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1.86px;
  text-transform: uppercase;
  color: #cab5ff;
  margin: 0 0 12px;
}

body.page-template-page-services-ai-automation-agency .aaf-process__title {
  font-family: var(--font-base);
  font-weight: 900;
  font-size: 20px;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.3;
}

body.page-template-page-services-ai-automation-agency .aaf-process__desc {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* mini mock-UI chips reused across all four card visuals */
body.page-template-page-services-ai-automation-agency .aaf-process__inline-cta {
  background-color: #0f0821;
  border: 1px solid rgba(185, 108, 255, 0.32);
  border-radius: 25px;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

body.page-template-page-services-ai-automation-agency .aaf-process__inline-cta-heading {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -1px;
  color: #ffffff;
  margin: 0 0 12px;
}

body.page-template-page-services-ai-automation-agency .aaf-process__inline-cta-desc {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  max-width: 620px;
}

body.page-template-page-services-ai-automation-agency .aaf-process__inline-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f7e934;
  color: #151515;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 14px;
  padding: 16px 28px;
}

@media (max-width: 1023px) {
  body.page-template-page-services-ai-automation-agency .aaf-process__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body.page-template-page-services-ai-automation-agency .aaf-process__grid {
    grid-template-columns: 1fr;
  }
  body.page-template-page-services-ai-automation-agency .aaf-process__inline-cta {
    padding: 28px;
    text-align: center;
    justify-content: center;
  }
}

/* ===================================================================
   CTA2 ("What's taking your team too long?") — page-scoped corrections.

   .automate is the sitewide banner from css/figma-pages-base.css and is
   shared with other Figma-built pages, so nothing there is edited; this
   frame just specifies a different box for it. Figma 91:7085 / 91:7087:
   section 1520x751 on #FFFFFF, card 1265x511 inset 120px top and bottom
   (x=127 -> ~127px side gutters, not the shared 1440 max-width).
   Text values from 91:7093 / 91:7095 / 91:7097.
   =================================================================== */
body.page-template-page-services-ai-automation-agency .automate {
  background: #ffffff;
  padding-block: 120px;
}

body.page-template-page-services-ai-automation-agency .automate__card {
  max-width: 1265px;
  min-height: 0;
  aspect-ratio: 1265 / 511;
  background: #ffffff;
}

body.page-template-page-services-ai-automation-agency .automate__eyebrow {
  font-size: 12px;
  letter-spacing: 2.86px;
  line-height: 1.19;
}

body.page-template-page-services-ai-automation-agency .automate__heading {
  line-height: calc(71 / 63);
}

body.page-template-page-services-ai-automation-agency .automate__desc {
  line-height: calc(28 / 16);
  color: rgba(255, 255, 255, 0.8);
}

/* CTA2 on phones (< 768px), fixed 2026-09-24. INTERPRETED: this frame has no
   mobile version. The desktop ratio + min-height: 0 above load after
   figma-pages-base.css, so they also beat that file's own < 768px release
   (aspect-ratio: auto). On a phone the card was held at 1265:511, about
   145px tall at 390 against ~357px of content. The flex column is centred,
   so the eyebrow, the heading's first line and the button were all clipped
   by overflow: hidden. Here the card sizes to its content again, the
   section takes the shared component's phone padding instead of 120px. The
   art keeps its shared 511px height, and so its usual centred crop; a plain
   height: 100% zoomed it out far enough at 600-767 to slide the paper plane
   under the heading. min-height only lets it grow if the card ever gets
   taller than 511px, so the white card fill can never show. From 768px up
   this block does nothing. */
@media (max-width: 767px) {
  body.page-template-page-services-ai-automation-agency .automate {
    padding-block: 64px 56px;
  }

  body.page-template-page-services-ai-automation-agency .automate__card {
    aspect-ratio: auto;
  }

  body.page-template-page-services-ai-automation-agency .automate__bgimg {
    min-height: 100%;
  }
}

/* Figma marks these nodes text-box-trim / text-box-edge (91:6271, 91:6278,
   91:6844). Honour it rather than compensating with a smaller line-height —
   without it the trimmed leading shows up as extra block height. */
body.page-template-page-services-ai-automation-agency .aaf-tech__heading,
body.page-template-page-services-ai-automation-agency .aaf-work__impact-value,
body.page-template-page-services-ai-automation-agency .hrf-hero__heading {
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}


/* =====================================================================
 * CONNECTED AUTOMATION - flow animation. Added 2026-09-23 on request:
 * "animation arrows dots start from the left side items and end right
 * side ... and also in the middle card 5 dots should be animation".
 *
 * WHY THERE IS AN EXTRA <svg> RATHER THAN AN ANIMATED connectors-*.svg.
 * The wires ship as <img src="connectors-left|right.svg">, and an <img>
 * is opaque as far as this page's CSS and JS are concerned - nothing
 * inside it can be selected or animated. The artwork is therefore left
 * byte-for-byte as it was, and .aaf-platform__flow is a transparent
 * overlay carrying one invisible motion track per wire, positioned by
 * the same rules as the <img> and sharing its viewBox, so the two
 * register pixel-for-pixel.
 *
 * WHERE THE TRACK PATHS COME FROM. The paths inside connectors-*.svg are
 * filled OUTLINES of the wires (each also carrying its own start dot and
 * arrowhead), not strokable centre lines - animating a dot along one
 * would send it around the outline's perimeter and back. Each track was
 * derived from the real geometry instead: for an outlined stroke,
 * walking 0 -> L/2 traces one edge and L/2 -> L traces the other in
 * reverse, so the centre is mean(P(t), P(L-t)). Those samples were
 * chained from the start dot to the arrowhead and simplified (RDP,
 * 0.12px) to 21-52 points each, then verified by stroking them over the
 * original artwork - they sit on the wires exactly. Do not hand-edit a
 * `d` in the markup; regenerate it the same way if the artwork moves.
 *
 * THE DOT IS A ZERO-LENGTH DASH with a round cap: `stroke-dasharray: 0
 * 100` over `pathLength="100"` renders a single disc whose position is
 * `stroke-dashoffset`, so 0 -> -100 walks it start to end on every wire
 * regardless of that wire's real length (they run 173-278 units). That
 * is why pathLength sits on the markup instead of a per-wire dasharray.
 * ===================================================================== */

body.page-template-page-services-ai-automation-agency .aaf-platform__flow {
  overflow: visible;
  z-index: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-platform__flow-dot {
  fill: none;
  stroke: #e6dcff;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  stroke-dashoffset: 0;
  /* drop-shadow composites; an animated box-shadow would repaint */
  filter: drop-shadow(0 0 4px rgba(185, 108, 255, 0.95));
  animation: aaf-flow-run 3.2s linear infinite, aaf-flow-fade 3.2s linear infinite;
  /* --i staggers the six wires; --phase puts the right-hand set half a
     cycle behind the left, so a dot leaves the core as one arrives. */
  animation-delay: calc(var(--i) * -0.42s + var(--phase, 0s));
}

@keyframes aaf-flow-run {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -100; }
}

/* Without this the dot would pop out of existence at the arrowhead and
   reappear on the source dot in the same frame. */
@keyframes aaf-flow-fade {
  0%, 6%     { opacity: 0; }
  16%, 84%  { opacity: 1; }
  95%, 100% { opacity: 0; }
}

body.page-template-page-services-ai-automation-agency .aaf-platform__core-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #543582;
  opacity: 0.1;
  animation: aaf-core-dot 5s linear infinite;
  animation-delay: calc(var(--i) * 1s);
}

/* One dot lit at a time, cycling 1 -> 5. Lit and resting values are
   engine-dots.svg's own: #543582 at full opacity and at 0.1. */
@keyframes aaf-core-dot {
  0%, 15%   { opacity: 1; }
  22%, 100% { opacity: 0.1; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-template-page-services-ai-automation-agency .aaf-platform__flow {
    display: none;
  }
  body.page-template-page-services-ai-automation-agency .aaf-platform__core-dot {
    animation: none;
  }
  /* falls back to exactly what engine-dots.svg drew: first dot lit */
  body.page-template-page-services-ai-automation-agency .aaf-platform__core-dot:first-child {
    opacity: 1;
  }
}

/* ===================== STATS BAND — MOBILE (Figma 256:18) =====================
   2026-09-24. This band ("eyebrow + paragraph, then three numbers on rules")
   is built on every Figma page family under a different class name —
   hrf-stats (figma-pages-base.css), aaf-impact, agentic .impact, aib-impact,
   aids-proof and abt-stats — and Figma 256:18 is the single 390px mobile frame
   for all of them: section padding 64/14, intro stacked 32px above a 2-column
   grid (12px gaps) of stats, each hanging off a 1px #453361 rule with 16px /
   24px / 24px padding; Gelasio 42/56 numerals, Inter 14/21 captions, 12/28
   intro copy. Appended last so it wins on source order; the stat selectors
   carry :nth-child(n) to outrank the per-item desktop measures above. */
@media (max-width: 767px) {
  body.page-template-page-services-ai-automation-agency .aaf-impact {
    padding: 64px 0;
    min-height: 0;
    background-color: #100c19;
  }

  body.page-template-page-services-ai-automation-agency .aaf-impact__container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 32px;
    width: 100%;
    max-width: none;
    padding: 0 14px;
  }

  body.page-template-page-services-ai-automation-agency .aaf-impact__intro {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: none;
  }

  body.page-template-page-services-ai-automation-agency .aaf-impact .aaf-eyebrow {
    max-width: none;
    margin: 0;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.19;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #cab5ff;
  }

  body.page-template-page-services-ai-automation-agency .aaf-impact__desc {
    max-width: none;
    margin: 0;
    font-family: var(--font-base);
    font-weight: 400;
    font-size: 12px;
    line-height: 28px;
    color: #aaa5b3;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }

  body.page-template-page-services-ai-automation-agency .aaf-impact__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    flex: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body.page-template-page-services-ai-automation-agency .aaf-impact__list .aaf-impact__stat:nth-child(n) {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 12px;
    width: auto;
    height: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0 24px 24px 16px;
    border-left: 1px solid #453361;
  }

  body.page-template-page-services-ai-automation-agency .aaf-impact__list .aaf-impact__stat:nth-child(n) .aaf-impact__value {
    position: static;
    top: auto;
    margin: 0;
    padding: 0;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 42px;
    line-height: 56px;
    color: #ffffff;
    white-space: normal;
    overflow-wrap: break-word;
    text-box-trim: none;
  }

  body.page-template-page-services-ai-automation-agency .aaf-impact__list .aaf-impact__stat:nth-child(n) .aaf-impact__label {
    width: auto;
    max-width: none;
    margin: 0;
    font-family: var(--font-base);
    font-weight: 400;
    font-size: 12px; /* 2026-09-29: 12px as on About Us (was 14px) */
    line-height: 21px;
    color: #aaa5b3;
    text-box-trim: none;
  }
}

/* ===================== WHY-TBI STATS — MOBILE (About Us numbers pattern) =====================
   2026-09-24. The three "Why TBI" figures (15+ / 5.0 stars / 100+) stacked
   one under another on phones, ~450px of scroll for three numbers. They now
   use the same 2-column number grid as the About Us "By the numbers" band
   (Figma 256:18): 12px gaps, each figure hanging off a 1px #453361 rule with
   16 / 24 / 24 padding, Gelasio 42/56 numerals, 14/21 captions. Appended
   last; :nth-child(n) outranks the :first-child / sibling-rule borders above. */
@media (max-width: 767px) {
  body.page-template-page-services-ai-automation-agency .aaf-why__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    width: 100%;
    margin-inline: 0;
    padding: 0;
    list-style: none;
    border: 0;
  }

  body.page-template-page-services-ai-automation-agency .aaf-why__stats .aaf-why__stat:nth-child(n) {
    display: flex;
    flex: none;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    width: auto;
    min-width: 0;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0 24px 24px 16px;
    border: 0;
    border-left: 1px solid #453361;
  }

  /* flex-wrap is the fix for a real 320px page overflow, found 2026-09-24.
     This row is `display: flex` with the Clutch rating as an anonymous text
     item and the five stars in a <span>. "★★★★★" carries no space, so its
     min-content width IS its full width (76.6px) and it cannot shrink — while
     the anonymous "5.0" can, and did: measured 51.4px wide at 390px but only
     16.4px at 320px, i.e. the NUMBER was being crushed while the stars punched
     5px out of the viewport (the single offender in the 320px overflow audit).
     Shrinking the stars cannot fix it — at 320 the column leaves 94px of
     content width and the number alone wants ~60px, so there is no width at
     which five stars still fit beside it. Letting the row wrap gives the number
     its full width and drops the stars to their own line only when they do not
     fit, so 430px+ still renders them inline exactly as now.
     The stars are #ff3434 on purpose — that is Clutch's own brand red, not a
     stray colour. Do not "correct" it. */
  body.page-template-page-services-ai-automation-agency .aaf-why__stats .aaf-why__stat:nth-child(n) .aaf-why__stat-value {
    margin: 0;
    padding: 0;
    font-size: 42px;
    line-height: 56px;
    white-space: normal;
    overflow-wrap: break-word;
    text-box-trim: none;
    flex-wrap: wrap;
  }

  body.page-template-page-services-ai-automation-agency .aaf-why__stats .aaf-why__stat:nth-child(n) .aaf-why__stat-label {
    max-width: none;
    margin: 0;
    font-size: 14px;
    line-height: 21px;
    text-box-trim: none;
  }
}

/* =====================================================================
 * TESTER QA PASS — 2026-09-24, against Figma YmLzL45Qaw4FJRduYrQQM1 node
 * 249:5576 ("Automation", the current revision of 91:6257). One block per
 * item in the tester's automation-page doc; every value is the node's own.
 * Appended last so it settles the cascade on load order. Items handled in
 * markup or other files: 8 (strip removed - template + the deleted rules
 * above), 9 (card hover - css/hover-system.css, button hover -
 * css/button-hover.css), 11 (icons - assets/icons/automation/), 14 (FAQ
 * breaks - template), 3 (slider behaviour - js/ai-automation-agency.js).
 * ===================================================================== */

/* ---- QA 1: hero line breaks (249:5587). The shared .hrf-hero component
   caps the heading at 539px and the copy at 573px for the hire family, so
   this page's heading ran to four lines and its copy to four. The frame's
   box is 751px, heading 691px: three lines each. The heading also opts out
   of Inter's optical-size axis, as page-home.php already does - at 64px
   `auto` renders the Display cut, ~8% narrower than Figma's text cut, which
   moves the break. Content starts at x=40, the same inset as every other
   section of this frame (the family's 71px belongs to its avatar hero). */
@media (min-width: 1024px) {
  body.page-template-page-services-ai-automation-agency .hrf-hero__stage {
    padding-left: 40px;
  }

  body.page-template-page-services-ai-automation-agency .hrf-hero__content {
    max-width: 751px;
  }

  body.page-template-page-services-ai-automation-agency .hrf-hero__heading {
    max-width: 691px;
    font-optical-sizing: none;
  }

  body.page-template-page-services-ai-automation-agency .hrf-hero__desc {
    max-width: 751px;
  }
}

/* ---- QA 2: "The small tasks add up." on one line, rate card centred on
   the intro (249:6571 is `items-center justify-between`; the build
   bottom-aligned it). The heading box (900px) is wider than its 765px
   column in the frame itself, so it is held on one line rather than
   widened into the card. Card: 24px padding round a 414px body, #d8d1d9
   hairline on rgba(255,255,255,.5). From 1200px only: below that the one-line
   heading (~487px at 1024) + gap + the 464px card is wider than the
   container, so the existing wrapping layout (card under the intro) stays. */
@media (min-width: 1200px) {
  body.page-template-page-services-ai-automation-agency .aaf-calc__header {
    flex-wrap: nowrap;
    align-items: center;
  }

  body.page-template-page-services-ai-automation-agency .aaf-calc__intro {
    flex: 0 1 765px;
    max-width: 765px;
  }

  body.page-template-page-services-ai-automation-agency .aaf-calc__heading {
    white-space: nowrap;
  }

  body.page-template-page-services-ai-automation-agency .aaf-calc__rate {
    width: 464px;
  }
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate {
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.5);
  border-color: #d8d1d9;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate-row {
  margin-bottom: 5px;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate-value {
  font-size: 24px;
  letter-spacing: -1.3824px;
}

/* ---- QA 3: the slider. It shipped `disabled` (the script that drove it was
   deleted with the retired template on 2026-09-22), which also greyed it
   out. It is live again (js/ai-automation-agency.js) and drawn as 249:6587:
   a 6.7px #9A60FA track at 10%, filled solid up to the handle, and a
   13.85px #9A60FA handle. The fill width is --aaf-rate-pct, set by the
   script on every input (a native range input cannot colour its filled
   half cross-browser; Firefox gets ::-moz-range-progress instead). */
body.page-template-page-services-ai-automation-agency .aaf-calc__rate-slider {
  --aaf-rate-pct: 28.57%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 14px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate-slider::-webkit-slider-runnable-track {
  height: 6.7px;
  border-radius: 3.35px;
  background:
    linear-gradient(#9a60fa, #9a60fa) 0 0 / var(--aaf-rate-pct) 100% no-repeat,
    rgba(154, 96, 250, 0.1);
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13.85px;
  height: 13.85px;
  margin-top: -3.575px;
  border: 0;
  border-radius: 50%;
  background-color: #9a60fa;
  transition: box-shadow 0.2s ease;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate-slider::-moz-range-track {
  height: 6.7px;
  border-radius: 3.35px;
  background-color: rgba(154, 96, 250, 0.1);
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate-slider::-moz-range-progress {
  height: 6.7px;
  border-radius: 3.35px;
  background-color: #9a60fa;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate-slider::-moz-range-thumb {
  width: 13.85px;
  height: 13.85px;
  border: 0;
  border-radius: 50%;
  background-color: #9a60fa;
  transition: box-shadow 0.2s ease;
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate-slider:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(154, 96, 250, 0.16);
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate-slider:hover::-moz-range-thumb {
  box-shadow: 0 0 0 5px rgba(154, 96, 250, 0.16);
}

body.page-template-page-services-ai-automation-agency .aaf-calc__rate-slider:focus-visible {
  outline: 2px solid #9a60fa;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---- QA 4: the task chips sit two-and-one (249:6446): Figma pins chips 1+2
   on one line and chip 3 under them, 5px apart and 8px between lines, each
   chip 24.48px tall. That is a fixed grouping, not a wrap - "Classifying
   requests" + "Routing support tickets" run past the frame's own 264.757px
   column - so it is a two-column grid with chip 3 spanning both, not a
   width that would re-wrap per row. The four row columns are then spread
   `justify-between` as in the frame (head / chips / bars / capacity), which
   puts the capacity back at the right edge. Desktop only: below 901px the
   row turns into a column. */
body.page-template-page-services-ai-automation-agency .aaf-calc__row-tags span {
  padding: 0 10px;
  line-height: 24.48px;
}

@media (min-width: 901px) {
  body.page-template-page-services-ai-automation-agency .aaf-calc__row {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  /* 249:6533 is whitespace-nowrap: "Customer Support" stays on one line. */
  body.page-template-page-services-ai-automation-agency .aaf-calc__row-head {
    width: auto;
    min-width: 190px;
  }

  body.page-template-page-services-ai-automation-agency .aaf-calc__row-dept {
    white-space: nowrap;
  }

  body.page-template-page-services-ai-automation-agency .aaf-calc__row-tags {
    flex: 0 0 290px;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: start;
    gap: 8px 5px;
  }

  body.page-template-page-services-ai-automation-agency .aaf-calc__row-tags span:nth-child(n + 3) {
    grid-column: 1 / -1;
    justify-self: start;
  }

  body.page-template-page-services-ai-automation-agency .aaf-calc__row-bars {
    flex: 0 1 303px;
  }
}

/* Found while checking QA 4 at 390px, and present on staging before this
   pass: below 901px the row is `flex-direction: column`, so the chips'
   `flex: 1 1 220px` and the bars' `1 1 260px` sized their HEIGHT - 220px
   and 260px tall blocks, each chip stretched to ~107px, the bars squeezed
   to 122px wide and ~300px of empty card under every department. */
@media (max-width: 900px) {
  body.page-template-page-services-ai-automation-agency .aaf-calc__row-tags,
  body.page-template-page-services-ai-automation-agency .aaf-calc__row-bars {
    flex: none;
    width: 100%;
  }

  body.page-template-page-services-ai-automation-agency .aaf-calc__row-bars {
    max-width: 360px;
  }

  /* Also pre-existing: the three summary cards stayed three-across down to
     641px, where "~$5,800/month" (~240px, one word) cannot fit a third of
     the row - the grid ran 158px past its container and the page scrolled
     sideways by 118px at 641. They stack from here, as the rows above do. */
  body.page-template-page-services-ai-automation-agency .aaf-calc__summary {
    grid-template-columns: 1fr;
  }
}

/* ---- QA 5: the recovered hours (10h / 8h / 6h / 5h) are #9A60FA in the
   frame (249:6464), not the grey of the "Manual" line above them. */
body.page-template-page-services-ai-automation-agency .aaf-calc__bar-line + .aaf-calc__bar-line > span:last-child {
  color: #9a60fa;
}

/* ---- QA 7: Why TBI - heading left, copy RIGHT (249:6318: one row,
   70px gap, the copy a fixed 827px column, centred on each other), which
   breaks the heading onto its three Figma lines "Practical AI. / Proven /
   Engineering.". The build wrapped the copy underneath a one-line heading.
   Copy is Inter 20/33 (SemiBold #ecebea, then Regular #b9b5c0), 24px apart.
   Below 1024px the existing stacked layout is kept. */
@media (min-width: 1024px) {
  body.page-template-page-services-ai-automation-agency .aaf-why__top {
    flex-wrap: nowrap;
    align-items: center;
    gap: 70px;
  }

  /* The flex item is the heading's wrapper <div> (eyebrow + h2), not the h2. */
  body.page-template-page-services-ai-automation-agency .aaf-why__top > :first-child {
    flex: 1 1 380px;
    min-width: 0;
  }

  body.page-template-page-services-ai-automation-agency .aaf-why__copy {
    flex: 0 1 827px;
    max-width: 827px;
  }

  body.page-template-page-services-ai-automation-agency .aaf-why__copy p {
    font-size: 20px;
    line-height: 33px;
    margin-bottom: 24px;
  }

  body.page-template-page-services-ai-automation-agency .aaf-why__copy p:last-child {
    margin-bottom: 0;
  }
}

/* ---- QA 10: arrow direction. Both yellow buttons reuse
   hire-common/arrow-right-diag.svg, which is drawn pointing UP; the frame
   rotates it 90deg (249:6786, 249:6309) so it points right. Its box is
   10 x 17.5 (inline CTA) and 10 x 13.38 (mid CTA) before the turn; the
   margins give the turned glyph its own width in the row. 6px gap, per
   both nodes. The closing .automate button already turns its arrow. */
body.page-template-page-services-ai-automation-agency .aaf-process__inline-cta-btn,
body.page-template-page-services-ai-automation-agency .aaf-cta__btn {
  gap: 6px;
}

body.page-template-page-services-ai-automation-agency .aaf-process__inline-cta-btn img,
body.page-template-page-services-ai-automation-agency .aaf-cta__btn img {
  flex-shrink: 0;
}

body.page-template-page-services-ai-automation-agency .aaf-process__inline-cta-btn img {
  width: 10px;
  height: 17.5px;
  margin: -3.75px 3.75px;
  transform: rotate(90deg);
}

body.page-template-page-services-ai-automation-agency .aaf-cta__btn img {
  width: 10px;
  height: 13.38px;
  margin: -1.69px 1.69px;
  transform: rotate(90deg);
}

/* ---- QA 12: every "Our Automation Work" card has its own surface in the
   frame. Radial glows are the nodes' own gradientTransform ellipses,
   axis-aligned. Impact tiles follow their card (249:6160 / 6198 / 6237 /
   6275). The AI SEO card is the odd one out in Figma too: a rust linear
   gradient, 18px radius, a soft drop shadow and a violet-gradient tile. */
body.page-template-page-services-ai-automation-agency .aaf-work__card--sales {
  background: radial-gradient(226px 168px at 98.3% 0%, rgba(219, 206, 251, 0.18), rgba(234, 226, 250, 0)), #1a1026;
}

body.page-template-page-services-ai-automation-agency .aaf-work__card--procurement {
  background: radial-gradient(392px 327px at 94.1% 5.4%, #163249, rgba(22, 50, 73, 0)), #091521;
}

body.page-template-page-services-ai-automation-agency .aaf-work__card--seo {
  background: linear-gradient(122.36deg, #30180e 0%, #21100d 56%, #351510 100%);
  border-radius: 18px;
  box-shadow: 0 10px 11px rgba(15, 8, 24, 0.24);
}

body.page-template-page-services-ai-automation-agency .aaf-work__card--assessment {
  background: radial-gradient(572px 260px at 93.6% 3.6%, #331c33, rgba(35, 19, 39, 0)), #1e1121;
}

body.page-template-page-services-ai-automation-agency .aaf-work__card--procurement .aaf-work__impact,
body.page-template-page-services-ai-automation-agency .aaf-work__card--assessment .aaf-work__impact {
  background-color: rgba(185, 108, 255, 0.12);
}

body.page-template-page-services-ai-automation-agency .aaf-work__card--seo .aaf-work__impact {
  background: linear-gradient(123.33deg, rgba(130, 57, 255, 0.06) 0%, rgba(87, 51, 166, 0.2) 100%);
  border-color: rgba(179, 108, 255, 0.25);
  border-radius: 10px;
}

/* ---- QA 13: the marquee now sits outside .aaf-tech__container (template)
   and runs the full width of the screen, like the tech marquee on every
   other page. The section's own overflow: hidden clips the tracks. */
body.page-template-page-services-ai-automation-agency .aaf-tech__marquee {
  width: 100%;
}

/* ==========================================================================
   AAF-WORK — mobile portfolio strip brought in line with the home page's Use
   Cases portfolio. Added 2026-09-24 on request ("the automation page should be
   same mobile responsive as home page portfolio section").

   The tab component itself was already correct: initScrollSpyNav puts it in tab
   mode below 1024px and shows one case at a time. Three things were missing
   against home, and all three are supplied here plus the two opt-in attributes
   on the <nav> in page-services-ai-automation-agency.php:

     1. the track was invisible (white on white) — fixed in the 1023px block
        above, not here, because it is a plain bug at every mobile width;
     2. no progress fill, so nothing showed the tab was timed;
     3. no auto-advance and no swipe.

   The bar REUSES .aaf-work__nav-item::before rather than adding ::after. That
   pseudo-element already exists as this component's purple active bar, already
   spans the tab and is already #9a60fa — so it only needs a scaleX instead of
   an opacity flip. js/main.js accepts the animationend from either pseudo
   because of this; see the comment at that guard before "simplifying" it.

   Sizing follows home (6px track, #e6e6e6, #9a60fa fill) rather than this
   page's own 2px, because the request was explicitly for parity and this strip
   has no mobile artboard of its own — the 1023px block above says so for the
   sibling diagrams, and the card below it was already matched to the home
   card's Figma node 244:7070 on 2026-09-23 for the same reason.

   The swipe needs NO rules here: css/content.css keys its deck CSS off the
   generic .is-swipeable / .is-swipe-* classes that initScrollSpyNav writes.
   ========================================================================== */

@media (max-width: 767px) {
  body.page-template-page-services-ai-automation-agency .aaf-work__nav-item {
    border-bottom-width: 6px;
  }

  /* Painted on every tab and hidden by scaleX(0) rather than by opacity, so the
     fill has something to grow from. The desktop opacity transition has to go:
     it would fight the animation on every tab change. */
  body.page-template-page-services-ai-automation-agency .aaf-work__nav-item::before {
    bottom: -6px;
    height: 6px;
    opacity: 1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: none;
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__nav[data-scrollspy-autoplay] .aaf-work__nav-item.is-active::before {
    animation: tbi-uc-tab-progress var(--uc-progress-duration, 5000ms) linear forwards;
  }

  /* Same three holds as the home strip. A paused animation never fires
     animationend, so each of these pauses the advance itself, not just the bar. */
  body.page-template-page-services-ai-automation-agency .aaf-work__nav[data-scrollspy-autoplay].is-autoplay-paused .aaf-work__nav-item.is-active::before,
  body.page-template-page-services-ai-automation-agency .aaf-work__nav[data-scrollspy-autoplay].is-dragging .aaf-work__nav-item.is-active::before,
  body.page-template-page-services-ai-automation-agency .aaf-work__nav[data-scrollspy-autoplay]:focus-within .aaf-work__nav-item.is-active::before {
    animation-play-state: paused;
  }
}

/* Reduced motion: no bar, no auto-advance (no animation means no animationend),
   and the active tab keeps the solid purple bar it has today. Swiping still
   changes the case — that is a gesture the visitor made, not motion. */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  body.page-template-page-services-ai-automation-agency .aaf-work__nav-item::before {
    animation: none;
    transform: scaleX(0);
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__nav-item.is-active::before {
    transform: scaleX(1);
  }
}

/* ===================== PROCESS — inline CTA box on phones =====================
   Figma 264:231 (390 frame 264:42, 2026-09-25). No card any more: an open,
   left-aligned block under a 1px top rule, 24/16 padding, heading -> 16 ->
   copy -> 24 -> full-width button. Replaces the centred card from the
   max-width: 640px block above. Same box as .hrf-ai__cta in
   figma-pages-base.css; keep the five copies in step (see the note there). */
@media (max-width: 767px) {
  body.page-template-page-services-ai-automation-agency .aaf-process__inline-cta {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    padding: 24px 16px;
    text-align: left;
    background-color: transparent;
    border: 0;
    border-top: 1px solid rgba(185, 108, 255, 0.32);
    border-radius: 0;
    font-optical-sizing: none;
  }

  /* 32px from the slider's dot rail to the rule (block flow, so this margin
     collapses with the dots' own 24px). */
  body.page-template-page-services-ai-automation-agency .tbi-mslider__dots.is-on + .aaf-process__inline-cta {
    margin-top: 32px;
  }

  body.page-template-page-services-ai-automation-agency .aaf-process__inline-cta-heading {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: normal;
    letter-spacing: -1px;
  }

  body.page-template-page-services-ai-automation-agency .aaf-process__inline-cta-desc {
    max-width: none;
    font-size: 14px;
    line-height: 24px;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }

  body.page-template-page-services-ai-automation-agency .aaf-process__inline-cta-btn {
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 16px 20px;
    font-size: 16px;
    line-height: normal;
    text-transform: uppercase;
    white-space: normal;
    text-align: center;
  }

  body.page-template-page-services-ai-automation-agency .aaf-process__inline-cta-btn img {
    width: 10.5px;
    height: 18.008px;
    margin: -4.004px 3.504px;
  }
}

/* ===================== IMPACT CALCULATOR — same section as AI in Your Business =====================
   2026-09-29, on the owner's instruction ("the page should have the same
   section as AI in your business"). The template's "Where The Time Goes"
   calculator (.aaf-calc*) is replaced by a copy of section 6 of
   ai-pages/page-ai-in-business.php, which keeps that page's aib-calc__*
   classes. The rules below are that page's calculator rules from
   css/ai-in-business.css (§6 "IMPACT CALCULATOR", its RESPONSIVE blocks and
   the 2026-09-28 summary cards), copied in the same order with the scope
   changed to this template; the page wrapper's gutter and
   font-optical-sizing, and the shared container and eyebrow, are applied to
   the section only. Keep the two copies in step. The .aaf-calc* rules
   earlier in this file now match nothing and are left as they were. */
body.page-template-page-services-ai-automation-agency .aib-calc {
  --aib-gutter: var(--container-padding-inline, 40px);
  font-optical-sizing: none;
}

body.page-template-page-services-ai-automation-agency .aib-calc .aib-container {
  max-width: var(--container-max-width, 1520px);
  margin: 0 auto;
  padding: 0 var(--aib-gutter);
  box-sizing: border-box;
}

body.page-template-page-services-ai-automation-agency .aib-calc .aib-eyebrow {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.19;
  letter-spacing: 2.86px;
  text-transform: uppercase;
  color: #cab5ff;
}

body.page-template-page-services-ai-automation-agency .aib-calc .aib-eyebrow--light {
  color: #9a60fb;
}

body.page-template-page-services-ai-automation-agency .aib-calc {
  background: #fff;
  padding: 120px 0;
}

body.page-template-page-services-ai-automation-agency .aib-calc__head {
  display: flex;
  align-items: center;
  gap: 77px;
}

body.page-template-page-services-ai-automation-agency .aib-calc__intro {
  flex: none;
  width: 900px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

body.page-template-page-services-ai-automation-agency .aib-calc__heading {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 74.88px;
  line-height: 77.875px;
  letter-spacing: -3.744px;
  color: #171717;
}

body.page-template-page-services-ai-automation-agency .aib-calc__heading span {
  color: #9a60fa;
}

body.page-template-page-services-ai-automation-agency .aib-calc__lede {
  margin: -6px 0 0;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 17.28px;
  line-height: 30.24px;
  color: rgba(23, 23, 23, .7);
}

body.page-template-page-services-ai-automation-agency .aib-calc__rate {
  flex: none;
  padding: 24px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid #d8d1d9;
  border-radius: 12px;
}

body.page-template-page-services-ai-automation-agency .aib-calc__rate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 414px;
  max-width: 100%;
  margin-bottom: 5px;
}

body.page-template-page-services-ai-automation-agency .aib-calc__rate-kicker {
  display: block;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .5);
}

body.page-template-page-services-ai-automation-agency .aib-calc__rate-title {
  display: block;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  color: #171717;
  cursor: pointer;
}

body.page-template-page-services-ai-automation-agency .aib-calc__rate-value {
  flex: none;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: normal;
  letter-spacing: -1.3824px;
  text-align: right;
  color: #9a60fa;
}

body.page-template-page-services-ai-automation-agency .aib-calc__slider {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 414px;
  max-width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 30px;
  background: linear-gradient(#9a60fa, #9a60fa) 0 / var(--aib-slider-pct, 28.57%) 100% no-repeat, rgba(154, 96, 250, .18);
  cursor: pointer;
}

body.page-template-page-services-ai-automation-agency .aib-calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13.85px;
  height: 13.85px;
  border: 0;
  border-radius: 50%;
  background: #9a60fa;
}

body.page-template-page-services-ai-automation-agency .aib-calc__slider::-moz-range-thumb {
  width: 13.85px;
  height: 13.85px;
  border: 0;
  border-radius: 50%;
  background: #9a60fa;
}

/* 2026-09-29, "slider doesn't work that well on mobile": the input was 6px
   tall, so a finger landing a little off the line scrolled the page, and the
   13.85px dot was a small target. The input is now a 32px touch strip (the
   margins give the extra 26px back, so nothing moves) with the 6px track and
   fill drawn on the track pseudo-elements, and the thumb is a 28px hit area
   that paints the same 13.85px dot. js/ai-in-business.js lets the thumb
   glide while the rate still moves in $5 steps. Same block in
   css/ai-in-business.css. */
body.page-template-page-services-ai-automation-agency .aib-calc__slider {
  height: 32px;
  margin: -13px 0;
  border-radius: 0;
  background: transparent;
  touch-action: pan-y;
}

body.page-template-page-services-ai-automation-agency .aib-calc__slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 30px;
  /* The fill ends under the dot's centre: 14px is half the 28px thumb. */
  background: linear-gradient(#9a60fa, #9a60fa) 0 / calc(14px + (100% - 28px) * var(--aib-slider-frac, .2857)) 100% no-repeat, rgba(154, 96, 250, .18);
}

body.page-template-page-services-ai-automation-agency .aib-calc__slider::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -11px;
  background: radial-gradient(circle, #9a60fa 6.4px, rgba(154, 96, 250, 0) 7.4px);
}

body.page-template-page-services-ai-automation-agency .aib-calc__slider::-moz-range-track {
  height: 6px;
  border-radius: 30px;
  background: rgba(154, 96, 250, .18);
}

body.page-template-page-services-ai-automation-agency .aib-calc__slider::-moz-range-progress {
  height: 6px;
  border-radius: 30px;
  background: #9a60fa;
}

body.page-template-page-services-ai-automation-agency .aib-calc__slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: radial-gradient(circle, #9a60fa 6.4px, rgba(154, 96, 250, 0) 7.4px);
}

body.page-template-page-services-ai-automation-agency .aib-calc__tabs {
  display: inline-flex;
  gap: 18px;
  margin: 48px 0 0;
  padding: 6px 8px;
  background: #fff;
  border: .824px solid #f0e7fe;
  border-radius: 10px;
}

body.page-template-page-services-ai-automation-agency .aib-calc__tab {
  width: 96px;
  height: 44px;
  padding: 0 16px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  letter-spacing: -1.1384px;
  color: #4f5666;
}

body.page-template-page-services-ai-automation-agency .aib-calc__tab.is-active {
  background: #ece7f5;
  font-weight: 500;
  color: #6c4eaa;
}

body.page-template-page-services-ai-automation-agency .aib-calc__table {
  margin-top: 24px;
}

body.page-template-page-services-ai-automation-agency .aib-calc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 40px;
  background: #fff;
  border: 1px solid rgba(154, 96, 250, .15);
}

body.page-template-page-services-ai-automation-agency .aib-calc__row + .aib-calc__row {
  margin-top: -1px;
}

body.page-template-page-services-ai-automation-agency .aib-calc__row:first-child {
  border-radius: 20px 20px 0 0;
}

body.page-template-page-services-ai-automation-agency .aib-calc__row:last-child {
  border-radius: 0 0 20px 20px;
}

body.page-template-page-services-ai-automation-agency .aib-calc__row-main {
  display: flex;
  align-items: center;
  gap: 79px;
}

body.page-template-page-services-ai-automation-agency .aib-calc__row-id {
  flex: none;
  width: 240px;
  display: flex;
  align-items: center;
  gap: 16px;
}

body.page-template-page-services-ai-automation-agency .aib-calc__row-icon {
  flex: none;
  width: 45.375px;
  height: 45.375px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ebdffe;
  border-radius: 7.992px;
}

body.page-template-page-services-ai-automation-agency .aib-calc__row-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: normal;
  letter-spacing: -1.3824px;
  color: #171717;
}

body.page-template-page-services-ai-automation-agency .aib-calc__row-compare {
  flex: none;
  width: 428px;
  display: flex;
  align-items: center;
  gap: 20px;
}

body.page-template-page-services-ai-automation-agency .aib-calc__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

body.page-template-page-services-ai-automation-agency .aib-calc__col-arrow {
  flex: none;
}

body.page-template-page-services-ai-automation-agency .aib-calc__col-kicker {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 10px;
  line-height: 13px;
  letter-spacing: 1.86px;
  text-transform: uppercase;
  color: #9a60fb;
}

body.page-template-page-services-ai-automation-agency .aib-calc__col-text {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(23, 23, 23, .7);
}

body.page-template-page-services-ai-automation-agency .aib-calc__row-bars {
  flex: none;
  width: 303px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.page-template-page-services-ai-automation-agency .aib-calc__bar {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-template-page-services-ai-automation-agency .aib-calc__bar-label {
  flex: none;
  width: 71px;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 14px;
  color: rgba(23, 23, 23, .7);
}

body.page-template-page-services-ai-automation-agency .aib-calc__track {
  position: relative;
  flex: none;
  width: 156px;
  height: 8px;
  border-radius: 30px;
  background: rgba(217, 217, 217, .6);
}

body.page-template-page-services-ai-automation-agency .aib-calc__track--rec {
  background: rgba(154, 96, 250, .1);
}

body.page-template-page-services-ai-automation-agency .aib-calc__fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 8px;
  border-radius: 30px;
  background: #9a60fa;
}

body.page-template-page-services-ai-automation-agency .aib-calc__bar-hrs {
  flex: none;
  width: 48px;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 14px;
  color: rgba(23, 23, 23, .7);
}

body.page-template-page-services-ai-automation-agency .aib-calc__bar-hrs--rec {
  color: #9a60fa;
}

body.page-template-page-services-ai-automation-agency .aib-calc__row-value {
  flex: none;
  width: 108px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  text-align: right;
}

body.page-template-page-services-ai-automation-agency .aib-calc__money {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: normal;
  letter-spacing: -1.3824px;
  color: #9a60fa;
}

body.page-template-page-services-ai-automation-agency .aib-calc__money-label {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 14px;
  color: rgba(23, 23, 23, .7);
  white-space: nowrap;
}

@media (max-width: 1439px) {
  body.page-template-page-services-ai-automation-agency .aib-calc__head {
    gap: 48px;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__intro {
    flex: 1 1 auto;
    width: auto;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__rate {
    flex: none;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__row {
    padding: 30px 24px;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__row-main {
    gap: 32px;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__row-compare {
    width: auto;
    flex: 1 1 auto;
  }
}

@media (max-width: 1279px) {
  body.page-template-page-services-ai-automation-agency .aib-calc__heading {
    font-size: 56px;
    line-height: 60px;
    letter-spacing: -2.4px;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__row {
    flex-wrap: wrap;
    gap: 20px;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__row-main {
    flex: 1 1 100%;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__row-bars {
    flex: 1 1 auto;
  }
}

@media (max-width: 1023px) {
  body.page-template-page-services-ai-automation-agency .aib-calc__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__rate,
  body.page-template-page-services-ai-automation-agency .aib-calc__rate-top,
  body.page-template-page-services-ai-automation-agency .aib-calc__slider {
    width: 100%;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__rate {
    box-sizing: border-box;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__tabs {
    display: flex;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__tab {
    flex: 1 0 auto;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__row-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__row-id,
  body.page-template-page-services-ai-automation-agency .aib-calc__row-compare {
    width: 100%;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__row-value {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 767px) {
  body.page-template-page-services-ai-automation-agency .aib-calc {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__heading {
    font-size: 40px;
    line-height: 46px;
    letter-spacing: -1.4px;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__row {
    padding: 24px 18px;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__row-compare {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__col-arrow {
    transform: rotate(90deg);
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__bar-label {
    width: 64px;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__track {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 599px) {
  body.page-template-page-services-ai-automation-agency .aib-calc__heading {
    font-size: 32px;
    line-height: 38px;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__bar {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__track {
    order: 3;
    flex: 1 1 100%;
  }
}

body.page-template-page-services-ai-automation-agency .aib-calc__summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

body.page-template-page-services-ai-automation-agency .aib-calc__summary-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e2ddea;
  background-color: #faf9fc;
}

body.page-template-page-services-ai-automation-agency .aib-calc__summary-card--highlight {
  background: linear-gradient(90deg, #180829 0%, #34105c 100%);
  border-color: rgba(216, 209, 217, 0.4);
}

body.page-template-page-services-ai-automation-agency .aib-calc__summary-label {
  margin: 0 0 8px;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 10px;
  line-height: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

body.page-template-page-services-ai-automation-agency .aib-calc__summary-card--highlight .aib-calc__summary-label {
  color: #cab5ff;
}

body.page-template-page-services-ai-automation-agency .aib-calc__summary-value {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 29px;
  line-height: normal;
  color: #9a60fa;
}

body.page-template-page-services-ai-automation-agency .aib-calc__summary-card--highlight .aib-calc__summary-value {
  color: #ffffff;
}

body.page-template-page-services-ai-automation-agency .aib-calc__summary-desc {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 12px;
  line-height: normal;
  color: rgba(23, 23, 23, 0.7);
}

body.page-template-page-services-ai-automation-agency .aib-calc__summary-card--highlight .aib-calc__summary-desc {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1023px) {
  body.page-template-page-services-ai-automation-agency .aib-calc__summary-value {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  body.page-template-page-services-ai-automation-agency .aib-calc__summary {
    grid-template-columns: 1fr;
  }
}

/* The one deliberate difference from the AI in Your Business copy. Its head
   row needs 900 (intro) + 77 (gap) + 464 (rate card) = 1441px, but the
   container's content box is only 1360-1440px wide from 1440 to 1520px, so
   the rate card runs up to 41px past the right edge. That page hides the
   overrun with `overflow-x: clip` on .aib-page, which cuts the card and its
   "~$50/hr" off; here it would scroll the page sideways. The <=1439px rules
   above (48px gap, a flexible intro) are extended to 1520px, where the
   desktop layout fits again. */
@media (min-width: 1440px) and (max-width: 1520px) {
  body.page-template-page-services-ai-automation-agency .aib-calc__head {
    gap: 48px;
  }

  body.page-template-page-services-ai-automation-agency .aib-calc__intro {
    flex: 1 1 auto;
    width: auto;
  }
}

/* Tester QA 88 (2026-09-30, "complete bar does not display as on home
   page"): below 1024px the case-study tabs' track was still
   rgba(255, 255, 255, .12), white on this section's white background, so
   the idle tabs had no visible bar and the strip read as bare labels. Both
   comments above (at the 1023px tab rule and the 767px progress block) say
   the track was meant to be home's #e6e6e6, but the value was never
   changed. It is now, so every tab shows the grey track and the active one
   fills it in purple, as on the home Use Cases strip. */
@media (max-width: 1023px) {
  body.page-template-page-services-ai-automation-agency .aaf-work__nav-item {
    border-bottom-color: #e6e6e6;
  }
}

/* Tester QA 89 (2026-09-30, "when moving slider text wrap up along with it"):
   the capacity-rate label and its live value share one flex row, so as the
   value changed width while dragging (~$10/hr to ~$150/hr, 72-84px at the
   phone's 20px) the label's space changed with it. On an iPhone, where the
   label sits right at its wrap point, it jumped between one and two lines on
   every step. The value now always takes the width of the widest one
   (~$150/hr, about 4.15em), right-aligned, so the label's line breaks never
   move. */
body.page-template-page-services-ai-automation-agency .aib-calc__rate-value {
  min-width: 4.3em;
}

/* Tester QA, new list item 21 (2026-09-30, "AI Automation page slider", an
   Android screenshot boxing a dark grey stripe on the case-study tab bar):
   the stripe is the browser's overlay scrollbar. Below 1024px the tab strip
   scrolls sideways (overflow-x: auto, the 1023px block above) and, unlike
   the home Use Cases, hrf-work and Agentic strips, it never hid its
   scrollbar, so Android draws the thumb over the bottom of the bar each
   time the strip moves, which the 5 s auto-advance does on its own. Hidden
   the same way as those strips. The calculator's Sales / Marketing / ...
   tab row is the same kind of sideways strip and gets the same rule. */
@media (max-width: 1023px) {
  body.page-template-page-services-ai-automation-agency .aaf-work__nav,
  body.page-template-page-services-ai-automation-agency .aib-calc__tabs {
    scrollbar-width: none;
  }

  body.page-template-page-services-ai-automation-agency .aaf-work__nav::-webkit-scrollbar,
  body.page-template-page-services-ai-automation-agency .aib-calc__tabs::-webkit-scrollbar {
    display: none;
  }
}
