/* ai page — copy v1.0 (Oct 2026) */

/* Hero: live chat card (replaces baked ai-chat.svg so text matches approved copy) */
.aichat { margin: 0; overflow: hidden; background: #fff; border: 1px solid #e6e6e3; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(25, 70, 41, .3); }
.aichat__top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.aichat__av { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--green-800); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 600; }
.aichat__av i { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #3fa34d; border: 2px solid #fff; }
.aichat__who strong { font-size: 18px; font-weight: 600; color: var(--ink); }
.aichat__ctx { margin-left: auto; font-size: 13px; font-weight: 600; color: #3a8f45; text-align: right; }
.aichat__body { padding: 18px 20px 16px; background: #e8f6dd; }
.aichat__name { font-size: 13px; color: #8a8f8b; }
.aichat__name--me { text-align: right; }
.aichat__q { margin: 6px 0 16px auto; max-width: 86%; padding: 14px 18px; border-radius: 20px 20px 6px 20px; background: var(--green-800); color: #fff; font-size: 15px; line-height: 1.45; }
.aichat__a { margin-top: 6px; max-width: 94%; padding: 16px 18px; border-radius: 6px 20px 20px 20px; background: #fff; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .25); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.aichat__a > p:first-child { font-size: 15px; color: var(--ink); }
.aichat__next { margin-top: 12px; font-weight: 600; color: var(--ink); }
.aichat__a ul { margin-top: 6px; display: grid; gap: 4px; }
.aichat__a li { position: relative; padding-left: 16px; }
.aichat__a li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); }
.aichat__ground { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.4; color: #6b716d; }
.aichat__ground .ico { flex: none; width: 16px; height: 16px; margin-top: 1px; color: #3a8f45; }
.aichat__label { padding: 12px 20px 14px; font-size: 12px; line-height: 1.4; color: #8a8f8b; border-top: 1px solid #ececeb; }

/* Agents: capabilities + outcome */
.agent { display: flex; flex-direction: column; }
.agent p + p { margin-top: 12px; }
.agent__label { margin-top: 28px !important; font-size: 13px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-800) !important; }
.agent__caps { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.agent__caps li { padding: 14px 16px; border-radius: 16px; background: var(--green-100); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.agent__caps b { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; color: var(--green-800); }
.agent__outcome { margin-top: auto !important; padding-top: 24px; font-size: 16px !important; color: var(--ink) !important; }
.agent__caps + .agent__outcome { margin-top: 0 !important; }
.agent__outcome b { color: var(--green-800); font-weight: 600; }

/* Roadmap */
.stages--ai .stages__sub { margin-top: 10px; font-size: 16px; font-weight: 500; color: var(--green-800); }
.stages--ai p:not(.stages__sub) { margin-top: 12px; font-size: 16px; line-height: 1.55; }
.ai-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 24px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Context */
.ai-example { margin-top: 40px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-800); }
.ai-example__label { margin-top: 8px; font-size: 15px; color: var(--muted); }
.ctx li p + p { margin-top: 6px; }

/* Controls kicker */
.controls__kicker { grid-column: 2; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-500); }
.controls .okdot { grid-row: span 3; align-self: start; margin-top: 2px; }

/* Customer-local AI */
.ai-local { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ai-local article { background: #fff; border-radius: var(--r-lg); padding: 28px 24px 32px; }
.ai-local h3 { margin-top: 24px; font-size: 20px; font-weight: 500; color: var(--green-900); }
.ai-local p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.ai-archnote { max-width: 760px; margin: 16px auto 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Supporting statements */
.ai-statement { max-width: 760px; margin: 48px auto 0; text-align: center; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); line-height: 1.4; font-weight: 500; color: var(--green-800); text-wrap: balance; }
.ai-statement--left { margin: 32px 0 0; text-align: left; }
.ai-statement--light { color: var(--green-100); }
.cta__inner p + p { margin-top: 12px; }

@media (max-width: 1100px) {
  .ai-local { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aichat { justify-self: center; }
}
@media (max-width: 560px) {
  .ai-local, .agent__caps { grid-template-columns: 1fr; }
  .aichat__top { flex-wrap: wrap; }
  .aichat__ctx { margin-left: 56px; text-align: left; width: 100%; }
}
.controls p.ai-statement { grid-column: auto; margin-top: 32px; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); line-height: 1.4; color: var(--green-800); }

/* ===== Designer fixes (Oct 2026), both languages ===== */
/* Hero */
.pg-ai .page-hero .h-page { color: var(--ink); }
.pg-ai .page-hero__split .txt { color: var(--muted); }
.pg-ai .page-hero__split .txt + .txt { margin-top: 12px; }
/* Section intros: label on its own line, heading and copy top-aligned, copy 20px muted */
.pg-ai .ai-head { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; }
.pg-ai .ai-head .h2 { max-width: 660px; }
.pg-ai .ai-head__txt { display: grid; gap: 12px; padding-top: 6px; }
.pg-ai .ai-head__txt .txt { padding-bottom: 0; font-size: 20px; line-height: 1.5; color: var(--muted); }
.pg-ai .on-dark .ai-head__txt .txt { color: #ececec; }
/* Agent cards: description, capability tiles and outcome line up across each row */
@supports (grid-template-rows: subgrid) {
  .pg-ai .agents { grid-auto-rows: auto; }
  .pg-ai .agent { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .pg-ai .agent__outcome { align-self: end; }
}
/* Why commercial context matters: copy in Ink */
.pg-ai .ctx .txt { color: var(--ink); }
.pg-ai .ctx .txt + .txt { margin-top: 12px; }
.pg-ai .ctx .quote { margin-top: 12px; }
/* AI acts within: heading sits at the top of the list */
.pg-ai .controls { align-items: start; }
/* From insight to action: cards alternate up / down */
.pg-ai .stairs--alt li:nth-child(odd) { margin-top: 0; }
.pg-ai .stairs--alt li:nth-child(even) { margin-top: 80px; }
@media (max-width: 1100px) {
  .pg-ai .ai-head { grid-template-columns: minmax(0, 1fr); }
  .pg-ai .agent { grid-row: auto; display: flex; }
}
@media (max-width: 900px) { .pg-ai .stairs--alt li:nth-child(even) { margin-top: 0; } }
@media (max-width: 640px) { .pg-ai .ai-head__txt .txt { font-size: 17px; } }
/* From insight to action: equal, near-square cards with centred content (Figma) */
@media (min-width: 901px) {
  .pg-ai .stairs--alt { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
  .pg-ai .stairs--alt li { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; aspect-ratio: 302 / 278; padding: 20px 28px; }
  .pg-ai .stairs--alt h3 { margin-top: 16px; }
  .pg-ai .stairs--alt p { margin-top: 12px; }
  .pg-ai .stairs--alt li .pill { align-self: flex-start; }
}

/* ===== Designer update 2 (Oct 2026) ===== */
/* Agents as switchable tabs */
.ai-tabs { margin-top: 24px; }
.ai-tabs__list { position: relative; z-index: 1; display: flex; width: max-content; max-width: 100%; margin: 0 auto -26px; padding: 6px; gap: 4px; border-radius: 999px; background: var(--green-800); overflow-x: auto; }
.ai-tabs__tab { flex: none; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 16px; cursor: pointer; transition: background .2s, color .2s; }
.ai-tabs__tab:hover { background: rgba(255, 255, 255, .12); }
.ai-tabs__tab[aria-selected="true"] { background: #fff; color: var(--green-800); }
.ai-tabs__tab:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; }
.ai-tabs__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; padding: 72px 60px 56px; border-radius: 32px; color: var(--ink); }
.ai-tabs__panel[hidden] { display: none; }
.ai-tabs__panel--gray { background: #e9edec; }
.ai-tabs__panel--beige { background: #f8f3ed; }
.ai-tabs__intro h3 { font-size: 24px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.ai-tabs__intro p { margin-top: 16px; font-size: 16px; font-weight: 400; line-height: 1.55; color: var(--ink); }
.ai-tabs__intro p + p { margin-top: 10px; }
.ai-tabs__lt { font-size: 20px; font-weight: 500; color: var(--ink); }
.ai-tabs__caps ul { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ai-tabs__caps li { padding: 16px 18px; border-radius: 16px; background: #fff; font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--ink); }
.ai-tabs__caps li b { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 500; color: var(--ink); }
/* Future direction: white section, green-100 cards, footnote */
#future .stages--ai { background: var(--green-100); }
#future .stages--ai li { background: transparent; }
.pg-ai .ai-note { display: block; margin-top: 20px; font-size: 20px; font-weight: 500; line-height: 1.5; color: var(--muted); }
/* Why commercial context matters */
.ctx2__quote { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; align-items: center; margin: 0; padding: 22px 28px; border-radius: 24px; background: #f9f9f9; }
.ctx2__qmark { grid-row: span 2; width: 48px; height: 40px; fill: none; stroke: var(--green-500); stroke-width: 2.2; stroke-linejoin: round; }
.ctx2__quote figcaption { font-size: 16px; font-weight: 400; color: var(--ink); }
.ctx2__quote blockquote { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.45; color: var(--ink); }
.ctx2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.ctx2__card { padding: 24px 24px 28px; border-radius: 28px; color: var(--ink); }
.ctx2__card--gray { background: #e9edec; }
.ctx2__card--green { background: var(--green-100); }
.ctx2__n { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; background: #fff; font-size: 18px; font-weight: 500; color: var(--ink); }
.ctx2__card h3 { margin-top: 20px; font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.ctx2__card p { margin-top: 12px; font-size: 16px; font-weight: 400; line-height: 1.55; color: var(--ink); }
/* Business stays in control */
.ai-ctrl { background: #f8f3ed; }
.ai-ctrl .eyebrow { color: var(--ink); }
.pg-ai .ai-ctrl p.ai-ctrl__st { font-size: 20px; font-weight: 500; color: var(--ink); }
.ai-ctrl .okdot { background: var(--green-800); }
.ai-ctrl .controls li { grid-template-columns: 28px 1fr; }
.ai-ctrl .okdot { grid-row: span 2; }
/* Customer-local footnote */
.pg-ai .ai-archnote { max-width: none; margin: 20px 0 0; text-align: start; font-size: 20px; font-weight: 400; line-height: 1.5; color: var(--muted); }
@media (max-width: 900px) {
  .ai-tabs__list { width: 100%; margin-bottom: 16px; }
  .ai-tabs__panel { grid-template-columns: minmax(0, 1fr); padding: 32px 22px; border-radius: 24px; }
  .ctx2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ai-tabs__caps ul { grid-template-columns: minmax(0, 1fr); }
  .ctx2__quote { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .ctx2__qmark { grid-row: auto; }
  .pg-ai .ai-note, .pg-ai .ai-archnote, .ctx2__quote blockquote { font-size: 17px; }
}
/* Nov 2026: Commercial / Implementation agent panels on Green 100; control section on Gray 50 */
.ai-tabs__panel--beige { background: var(--green-100); }
.ai-ctrl { background: var(--gray-50); }
