/* ============================================================
   AI SERVICES  —  /ai-services/ and /ai-services/{slug}/
   ------------------------------------------------------------
   Loaded after services.css, which supplies .section, .sec-head, .title,
   .faq-*, .cta and the ink-panel treatment. Only what is specific to this
   section lives here.

   The one idea: these pages are read by people who are nervous about AI, so
   the page is ordered reassurance-first. The hero carries a fixed "how we
   start" card instead of a decorative image, and the ink panel is spent on the
   "where this goes wrong" section rather than on a sales block. Everything is
   in tokens so both light sections and the ink panel stay correct.
   ============================================================ */

/* ---------- hero ---------- */
.ais-hero {
  padding-top: clamp(116px, 18vw, 188px);
  padding-bottom: clamp(40px, 6vw, 84px);
}
.ais-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(32px, 4.5vw, 88px);
  align-items: start;
  margin-top: clamp(18px, 2vw, 30px);
}
.ais-h1 {
  font-size: clamp(38px, 4.4vw, 70px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-top: clamp(14px, 1.5vw, 22px);
}
.ais-hero-copy .lead {
  max-width: 46ch;
  color: var(--gray-1);
  margin-top: clamp(18px, 1.8vw, 26px);
}
.ais-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(24px, 2.6vw, 38px);
}

/* the reassurance card: deliberately text, not an image. Someone deciding
   whether to trust an AI supplier wants the method, not a stock photograph. */
.ais-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.4vw, 36px);
}
.ais-card-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: clamp(16px, 1.6vw, 22px);
}
.ais-steps {
  list-style: none;
  counter-reset: ais;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 20px);
}
.ais-steps li {
  counter-increment: ais;
  position: relative;
  padding-left: 38px;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--gray-1);
}
.ais-steps li::before {
  content: counter(ais, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--gray-3);
  letter-spacing: 0.04em;
}
.ais-steps li b { color: var(--ink); font-weight: var(--fw-bold); }
.ais-card-foot {
  margin-top: clamp(18px, 1.8vw, 26px);
  padding-top: clamp(16px, 1.6vw, 22px);
  border-top: 1px solid var(--line-strong);
  font-size: var(--fs-md);
  color: var(--gray-2);
}

/* ---------- intro statement ---------- */
.ais-intro { padding-block: clamp(48px, 7vw, 104px); }
.ais-statement {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: var(--fw-light);
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 30ch;
}

/* ---------- the job it does ---------- */
.ais-job-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1px, 0.1vw, 2px);
  margin-top: clamp(32px, 4vw, 64px);
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ais-job {
  background: var(--paper);
  padding: clamp(26px, 2.8vw, 46px);
}
.ais-job-n {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  color: var(--gray-3);
  margin-bottom: clamp(14px, 1.4vw, 20px);
}
.ais-job h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: var(--fw-regular);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.ais-job p { color: var(--gray-1); max-width: 46ch; }

/* ---------- what you get ---------- */
.ais-deliver-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 4.5vw, 88px);
  align-items: start;
}
.ais-deliver-head p {
  color: var(--gray-1);
  max-width: 38ch;
  margin-top: clamp(16px, 1.6vw, 24px);
}
.ais-deliver-head .ulink { margin-top: clamp(20px, 2vw, 28px); display: inline-block; }
.ais-deliver-list { list-style: none; display: flex; flex-direction: column; }
.ais-deliver-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: clamp(16px, 1.6vw, 22px) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
}
.ais-deliver-list li:first-child { border-top: 1px solid var(--line); }
.ais-deliver-list .tk {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--tick);
  margin-top: 1px;
}
.ais-deliver-list .tk svg { width: 14px; height: 14px; }

/* ---------- where it goes wrong (ink) ---------- */
.ais-pitfalls-note {
  max-width: 44ch;
  color: rgba(255,255,255,0.62);
  align-self: end;
}
.ais-pit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 2.6vw, 44px);
  margin-top: clamp(32px, 4vw, 64px);
}
.ais-pit {
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: clamp(20px, 2vw, 30px);
}
.ais-pit h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: var(--fw-regular);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: #fff;
}
.ais-pit p { color: rgba(255,255,255,0.66); max-width: 46ch; }

/* on the light hub page the same grid is used for the approach steps, so the
   note needs its light-section colour back */
.ais-hub-list .ais-pitfalls-note { color: var(--gray-1); }

/* ---------- other AI services ---------- */
.ais-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1vw, 16px);
  margin-top: clamp(28px, 3.4vw, 52px);
}
.ais-more-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: clamp(16px, 1.6vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.ais-more-card:hover { border-color: var(--line-strong); background: var(--paper-2); }
.ais-more-ic {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.ais-more-ic svg { width: 21px; height: 21px; }
.ais-more-tx b {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--fs-3xl);
  display: block;
  line-height: 1.15;
}
.ais-more-tx small {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  color: var(--gray-2);
  margin-top: 3px;
}
.ais-more-go { color: var(--gray-3); font-size: var(--fs-xl); }

/* ---------- hub ---------- */
.ais-hub-head { max-width: 62ch; margin-top: clamp(18px, 2vw, 30px); }
.ais-hub-head .lead { max-width: 52ch; color: var(--gray-1); margin-top: clamp(18px, 1.8vw, 26px); }
.ais-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.4vw, 22px);
  margin-top: clamp(32px, 4vw, 64px);
}
.ais-hub-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.ais-hub-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.ais-hub-ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  margin-bottom: clamp(18px, 1.8vw, 26px);
}
.ais-hub-ic svg { width: 22px; height: 22px; }
.ais-hub-card h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: var(--fw-regular);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.ais-hub-card p { color: var(--gray-1); font-size: var(--fs-lg); flex: 1; }
.ais-hub-go {
  margin-top: clamp(18px, 1.8vw, 26px);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-2);
  transition: color 0.3s var(--ease);
}
.ais-hub-card:hover .ais-hub-go { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ais-hero-grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  .ais-deliver-grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  .ais-hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .ais-job-grid { grid-template-columns: 1fr; }
  .ais-pit-grid { grid-template-columns: 1fr; }
  .ais-more-grid { grid-template-columns: 1fr; }
  .ais-hub-grid { grid-template-columns: 1fr; }
  .ais-cta .btn { width: 100%; justify-content: center; }
}

/* "Also sold as" note. Deliberately quiet: it helps a reader who knows the
   service by another name, and it is not a keyword list. */
.ais-aka {
  margin-top: clamp(18px, 1.8vw, 26px);
  max-width: 62ch;
  font-size: var(--fs-lg);
  color: var(--gray-2);
  padding-top: clamp(14px, 1.4vw, 20px);
  border-top: 1px solid var(--line);
}

/* ---------- optional explainer (agent patterns) ----------
   Three columns of teaching, not selling. Uses a definition list because the
   two facts under each pattern genuinely are term-and-definition pairs, which
   also reads correctly to a screen reader. */
.ais-explain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1px, 0.1vw, 2px);
  margin-top: clamp(32px, 4vw, 64px);
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ais-explain-card { background: var(--paper); padding: clamp(24px, 2.6vw, 40px); }
.ais-explain-n {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  color: var(--gray-3);
  margin-bottom: clamp(14px, 1.4vw, 20px);
}
.ais-explain-card h3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 1.9vw, 30px);
  font-weight: var(--fw-regular);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.ais-explain-what { color: var(--gray-1); margin-bottom: clamp(18px, 1.8vw, 26px); }
.ais-explain-meta { margin: 0; }
.ais-explain-meta dt {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-top: clamp(12px, 1.2vw, 16px);
}
.ais-explain-meta dd {
  margin: 4px 0 0;
  font-size: var(--fs-lg);
  color: var(--gray-1);
  line-height: var(--lh-snug);
}
.ais-explain-link { display: inline-block; margin-top: clamp(24px, 2.4vw, 36px); }
@media (max-width: 900px) {
  .ais-explain-grid { grid-template-columns: 1fr; }
}
