/* ==========================================================
   AI demo (demo.js): the client's chat on the left, its logic
   on the right. Shared by the home page and /ai/.
   ========================================================== */
.aid { --acc: #e9b44c; --acc-ink: #16161a; --chat-h: 600px; display: grid; gap: 16px; min-width: 0; }

.aid__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.aid__tabs::-webkit-scrollbar { display: none; }
.aid__tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 99px;
  font-size: 0.9rem; color: var(--text-2); border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.aid__tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.aid__tab:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.aid__tab[aria-selected="true"] { color: var(--text); border-color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); }
.aid__tab[aria-selected="true"] svg { color: var(--acc); }

.aid__stage { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.86fr); gap: 16px; height: var(--chat-h); }

/* --- the client's own website, in a browser window --- */
.aid__site { position: relative; min-width: 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--border-strong); background: #f4f4f2; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7); }
.aid__browser { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #e9e9e6; border-bottom: 1px solid #d9d9d5; }
.aid__browser i { width: 11px; height: 11px; border-radius: 50%; background: #d0d0cc; }
.aid__browser i:nth-child(1) { background: #ff5f57; }
.aid__browser i:nth-child(2) { background: #febc2e; }
.aid__browser i:nth-child(3) { background: #28c840; }
.aid__url { display: flex; align-items: center; gap: 6px; width: min(340px, 52%); margin-inline: auto; padding: 4px 12px; border-radius: 7px; background: #fff; font-size: 0.74rem; color: #55555c; }
.aid__url svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.aid__domain { font-weight: 500; filter: blur(3.5px); user-select: none; }
.aid__page { position: absolute; inset: 38px 0 0; }
.aid__shot { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.aid__page::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, rgba(10, 10, 14, 0.22)); pointer-events: none; }

/* --- the assistant, docked on that site like a live chat widget --- */
.aid__chat {
  position: absolute; z-index: 2; top: 52px; right: 14px; bottom: 14px; width: min(372px, 58%);
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; min-height: 0; overflow: hidden;
  border-radius: 16px; background: #fbfbfa; color: #1b1b1f; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}
.aid__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--acc); color: var(--acc-ink); }
.aid__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--acc-ink) 16%, transparent); }
.aid__avatar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.aid__head b { display: block; font-size: 0.98rem; font-weight: 600; }
.aid__head small { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; opacity: 0.85; }
.aid__head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 2px color-mix(in srgb, var(--acc-ink) 25%, transparent); }
.aid__live { margin-left: auto; font: 0.66rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: color-mix(in srgb, var(--acc-ink) 14%, transparent); }
.aid__who { padding: 9px 16px; font-size: 0.76rem; color: #6b6b75; background: #f2f2f0; border-bottom: 1px solid #e8e8e5; }
.aid__log { display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }

.aid-msg { display: grid; gap: 6px; max-width: 86%; justify-items: start; animation: aid-in 0.32s var(--ease-out) both; }
.aid-msg__bubble { padding: 10px 13px; border-radius: 16px; font-size: 0.88rem; line-height: 1.45; background: #ececef; border-bottom-left-radius: 5px; }
.aid-msg__bubble b { font-weight: 650; }
.aid-msg--user { align-self: flex-end; justify-items: end; }
.aid-msg--user .aid-msg__bubble { background: var(--acc); color: var(--acc-ink); border-radius: 16px; border-bottom-right-radius: 5px; }
.aid-msg--person .aid-msg__bubble { background: #e3f4ea; border: 1px solid #c4e6d2; }
.aid-msg__who { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: 0.7rem; font-weight: 650; color: #17804a; letter-spacing: 0.02em; }
.aid-msg__who::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #17804a; }
.aid-msg--event { align-self: center; max-width: 100%; }
.aid-msg--event span { display: block; padding: 5px 12px; border-radius: 99px; font-size: 0.72rem; color: #6b6b75; background: #efefec; text-align: center; }
.aid-msg--typing .aid-msg__bubble { display: flex; gap: 4px; padding: 13px 14px; }
.aid-msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: #9a9aa3; animation: aid-dot 1s infinite; }
.aid-msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.aid-msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes aid-dot { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes aid-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.aid-card { width: min(320px, 100%); display: grid; gap: 8px; padding: 12px 13px; border-radius: 13px; background: #fff; border: 1px solid #e4e4e0; box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.25); font-size: 0.82rem; }
.aid-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aid-card__top b { font-weight: 650; font-size: 0.86rem; }
.aid-card__pill { flex: none; padding: 3px 8px; border-radius: 99px; font-size: 0.68rem; font-weight: 650; background: #efefec; color: #4a4a52; white-space: nowrap; }
.aid-card__meta { color: #6b6b75; font-size: 0.78rem; }
.aid-card__rows { display: grid; gap: 5px; border-top: 1px solid #efefec; padding-top: 8px; }
.aid-card__rows div { display: flex; justify-content: space-between; gap: 12px; }
.aid-card__rows dt { color: #6b6b75; }
.aid-card__rows dd { text-align: right; font-weight: 550; }
.aid-card__steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; }
.aid-card__steps li { position: relative; padding-top: 12px; font-size: 0.66rem; color: #9a9aa3; }
.aid-card__steps li::before { content: ""; position: absolute; top: 2px; left: 0; right: 0; height: 4px; border-radius: 4px; background: #e8e8e5; }
.aid-card__steps li.is-done, .aid-card__steps li.is-now { color: #1b1b1f; }
.aid-card__steps li.is-done::before { background: var(--acc); }
.aid-card__steps li.is-now::before { background: linear-gradient(90deg, var(--acc) 50%, #e8e8e5 50%); }
.aid-card--ok .aid-card__pill { background: #def5e6; color: #13703f; }
.aid-card--warn .aid-card__pill { background: #fdf0d8; color: #9a5b00; }
.aid-card--alert { border-color: #f3c7c0; background: #fff7f5; }
.aid-card--alert .aid-card__pill { background: #fde2dd; color: #b42318; }
.aid-card--info .aid-card__pill { background: #e2ecfd; color: #1d4fb8; }
.aid-card--handoff { border-color: #c4e6d2; background: #f4fbf7; }
.aid-card--handoff .aid-card__pill { background: #def5e6; color: #13703f; }
.aid-card--draft { border-style: dashed; border-color: #d8c79a; background: #fffcf3; }
.aid-card--draft .aid-card__pill { background: #fbefcf; color: #8a6100; }

.aid-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.aid-choices button, .aid__chips button {
  padding: 7px 12px; border-radius: 99px; font-size: 0.8rem; font-weight: 550; color: #1b1b1f;
  border: 1px solid color-mix(in srgb, var(--acc) 55%, #d6d6d2); background: #fff; transition: background 0.15s, border-color 0.15s;
}
.aid-choices button:hover:not(:disabled), .aid__chips button:hover { background: color-mix(in srgb, var(--acc) 14%, #fff); border-color: var(--acc); }
.aid-choices button:disabled { opacity: 0.45; cursor: default; }
.aid__chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 16px 2px; min-height: 44px; }
.aid__chips::-webkit-scrollbar { display: none; }
.aid__chips button { flex: none; }
.aid__form { display: flex; gap: 8px; padding: 10px 12px 12px; }
.aid__form input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 99px; border: 1px solid #e0e0dc; background: #fff; color: #1b1b1f; font: inherit; font-size: 0.88rem; }
.aid__form input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent); }
.aid__form button { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); }
.aid__form button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- the logic: dark, like a console --- */
.aid__brain {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--border-strong); background: linear-gradient(180deg, #0d0d13, #08080c);
}
.aid__brain-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--border); font: 600 0.74rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.aid__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); }
.aid__count { margin-left: auto; color: var(--text-3); letter-spacing: 0.08em; }
.aid__trace { list-style: none; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }

.aid-step { --k: var(--text-3); display: grid; grid-template-columns: 86px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 8px 6px; border-radius: 8px; animation: aid-in 0.3s var(--ease-out) both; transition: opacity 0.3s; }
.aid-step.is-past { opacity: 0.42; }
.aid-step__kind { grid-row: span 2; align-self: start; justify-self: start; padding: 3px 7px; border-radius: 5px; font: 600 0.62rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--k); background: color-mix(in srgb, var(--k) 14%, transparent); }
.aid-step b { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.aid-step__detail { font: 0.74rem/1.45 var(--font-mono); color: var(--text-2); overflow-wrap: anywhere; }
.aid-step--understand { --k: #7cb4ff; }
.aid-step--check { --k: #4fd1c5; }
.aid-step--rule { --k: #e9b44c; }
.aid-step--act { --k: #5ee08f; }
.aid-step--guard { --k: #ff7a6b; }
.aid-step--person { --k: #f39bd2; }
.aid-step--learn { --k: #b49cff; }
.aid-step--head { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; padding: 8px 6px 4px; border-top: 1px solid var(--border); font: 0.68rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.aid-step--head:first-child { margin-top: 0; border-top: 0; }
.aid-step--head q { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 0.8rem; color: var(--text-2); }
.aid-step--empty { display: block; margin: auto 0; padding: 24px 10px; text-align: center; font-size: 0.86rem; line-height: 1.55; color: var(--text-3); }

.aid__meter { display: grid; gap: 8px; padding: 14px 18px 16px; border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.015); }
.aid__bill { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin-bottom: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.05); }
.aid__bill button { padding: 6px 10px; border-radius: 99px; font-size: 0.74rem; color: var(--text-3); white-space: nowrap; transition: color 0.2s, background 0.2s; }
.aid__bill button:hover { color: var(--text); }
.aid__bill button[aria-pressed="true"] { color: var(--bg); background: var(--blue); font-weight: 600; }
.aid__meter-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.78rem; color: var(--text-3); }
.aid__meter-row b { font: 500 0.78rem var(--font-mono); color: var(--text); }
.aid__bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.aid__bar i { display: block; height: 100%; border-radius: inherit; background: #5ee08f; transition: width 0.5s var(--ease-out), background 0.3s; }
.aid__meter.is-capped .aid__bar i { background: #ff7a6b; }
.aid__meter.is-capped .aid__spend { color: #ff7a6b; }
.aid__ctrl { display: flex; gap: 8px; margin-top: 4px; }
.aid__ctrl button { padding: 7px 12px; border-radius: 99px; font-size: 0.76rem; color: var(--text-2); border: 1px solid var(--border-strong); transition: color 0.2s, border-color 0.2s; }
.aid__ctrl button:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.32); }
.aid__cap[aria-pressed="true"] { color: #ff7a6b; border-color: rgba(255, 122, 107, 0.5); }
.aid__restore { border-color: #ff7a6b !important; }

.aid__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.aid__pitch { color: var(--text); font-size: 0.98rem; max-width: 62ch; }
.aid__plan { margin-top: 4px; font-size: 0.82rem; color: var(--blue); }
.aid__build {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 99px;
  font-size: 0.92rem; font-weight: 600; background: var(--blue); color: var(--bg); transition: background 0.2s;
}
.aid__build:hover { background: var(--yellow); }
.aid__build span { transition: transform 0.25s var(--ease-out); }
.aid__build:hover span { transform: translateX(4px); }
.aid__note { font-size: 0.8rem; color: var(--text-3); }

@media (max-width: 900px) {
  .aid__stage { grid-template-columns: minmax(0, 1fr); height: auto; }
  .aid__site { height: 660px; }
  .aid__chat { top: 150px; left: auto; width: min(400px, calc(100% - 28px)); }
  .aid__brain { height: 400px; }
  .aid-step { grid-template-columns: 76px minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .aid__site { height: 640px; border-radius: 14px; }
  .aid__chat { top: 118px; right: 10px; bottom: 10px; width: calc(100% - 20px); border-radius: 14px; }
  .aid__brain { border-radius: 14px; }
  .aid-msg { max-width: 92%; }
  .aid__build { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .aid-msg, .aid-step { animation: none; }
  .aid-msg--typing i { animation: none; }
}

/* home page section */
.aix__more { margin-top: 24px; }

/* ==========================================================
   /ai/ page
   ========================================================== */
.ai { padding-top: 132px; }
.ai-kick { font: 0.72rem var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); }
.ai-hero { display: grid; gap: 18px; padding-bottom: 40px; }
.ai-hero h1 {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.5rem, 6.4vw, 5.4rem); line-height: 0.95; max-width: 14ch; text-wrap: balance;
}
.ai-hero h1 em { font-style: normal; color: var(--blue); }
.ai-lede { max-width: 60ch; color: var(--text-2); font-size: 1.08rem; }
.ai-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ai-trust li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: 0.86rem; color: var(--text); border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.02); }
.ai-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.ai-demo { padding-bottom: clamp(64px, 9vw, 112px); }

.ai-sec { border-top: 1px solid var(--border); padding-block: clamp(64px, 9vw, 112px); }
.ai-sec__head { display: grid; gap: 12px; max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.ai-sec__head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.06; text-wrap: balance; }
.ai-sec__head p:not(.ai-kick) { color: var(--text-2); }

/* how it thinks: the same colours as the logic panel */
.ai-loop { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: loop; }
.ai-loop li { --k: var(--blue); position: relative; display: grid; gap: 8px; align-content: start; padding: 18px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); counter-increment: loop; }
.ai-loop li::before { content: "0" counter(loop); font: 0.7rem var(--font-mono); color: var(--text-3); }
.ai-loop li::after { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; border-radius: 2px; background: var(--k); }
.ai-loop b { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--k); }
.ai-loop p { font-size: 0.86rem; color: var(--text-2); line-height: 1.5; }
.ai-loop code { font: 0.72rem/1.5 var(--font-mono); color: var(--text-3); }

/* the rules: each card carries its proof from the demos, in the logic panel's colours */
.ai-guards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; }
.ai-guards > li {
  --k: var(--blue); position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 20px;
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface); overflow: hidden;
}
.ai-guards > li::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--k); }
.ai-guard__kind { align-self: flex-start; padding: 3px 8px; border-radius: 5px; font: 600 0.64rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--k); background: color-mix(in srgb, var(--k) 14%, transparent); }
.ai-guards h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.15; }
.ai-guards > li > p:not(.ai-guard__kind) { font-size: 0.9rem; color: var(--text-2); line-height: 1.55; }

.ai-proof { display: grid; gap: 6px; margin-top: 4px; padding: 12px; border-radius: 12px; background: #08080c; border: 1px solid var(--border); font-size: 0.8rem; line-height: 1.45; }
.ai-proof__me, .ai-proof__ai { max-width: 88%; padding: 7px 10px; border-radius: 12px; }
.ai-proof__me { justify-self: end; color: var(--bg); background: var(--text-2); border-bottom-right-radius: 4px; }
.ai-proof__ai { justify-self: start; color: var(--text); background: rgba(255, 255, 255, 0.07); border-bottom-left-radius: 4px; }
.ai-proof__event { justify-self: center; padding: 4px 10px; border-radius: 99px; font-size: 0.72rem; color: var(--text-2); background: rgba(255, 255, 255, 0.06); }
.ai-proof__pill { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 99px; font-size: 0.68rem; font-weight: 600; color: #e9b44c; border: 1px dashed rgba(233, 180, 76, 0.6); }
.ai-proof__step { display: flex; align-items: baseline; gap: 8px; padding-top: 7px; margin-top: 2px; border-top: 1px solid var(--border); font: 0.72rem/1.4 var(--font-mono); color: var(--text-2); }
.ai-proof__step b { flex: none; padding: 2px 6px; border-radius: 4px; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--k); background: color-mix(in srgb, var(--k) 14%, transparent); }

.ai-guard__try { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.ai-guard__try button {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; font-size: 0.8rem; font-weight: 500;
  color: var(--text); border: 1px solid var(--border-strong); transition: border-color 0.2s, background 0.2s;
}
.ai-guard__try button:hover { border-color: var(--k); background: color-mix(in srgb, var(--k) 10%, transparent); }
.ai-guard__try span { color: var(--k); transition: transform 0.25s var(--ease-out); }
.ai-guard__try button:hover span { transform: translateX(3px); }
.aid { scroll-margin-top: 84px; }

.ai-pay { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ai-pay li { display: grid; gap: 10px; align-content: start; padding: 24px 22px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.ai-pay li.is-hl { border-color: rgba(233, 180, 76, 0.45); background: linear-gradient(180deg, rgba(233, 180, 76, 0.08), var(--surface) 60%); }
.ai-pay__tag { font: 0.68rem var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.ai-pay h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; }
.ai-pay p:not(.ai-pay__tag) { font-size: 0.92rem; color: var(--text-2); line-height: 1.55; }
.ai-pay code { margin-top: 4px; font: 0.74rem var(--font-mono); color: var(--text-3); }

.ai-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
.ai-shot { display: grid; gap: 10px; color: inherit; }
.ai-shot .fit { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); background: #08080c; transition: border-color 0.25s, transform 0.35s var(--ease-out); }
.ai-shot:hover .fit { border-color: rgba(233, 180, 76, 0.5); transform: translateY(-2px); }
.ai-shot b { font-weight: 500; font-size: 0.95rem; }
.ai-shot span:last-child { font-size: 0.86rem; color: var(--text-3); }
.ai-more { display: inline-flex; gap: 8px; margin-top: 28px; font-size: 0.9rem; color: var(--blue); }

.ai-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 20px; counter-reset: st; }
.ai-steps li { display: grid; gap: 6px; align-content: start; padding-top: 18px; border-top: 2px solid var(--border-strong); counter-increment: st; }
.ai-steps li::before { content: counter(st); font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--blue); }
.ai-steps h3 { font-size: 1rem; font-weight: 600; }
.ai-steps p { font-size: 0.88rem; color: var(--text-2); line-height: 1.5; }

.ai-close { display: grid; gap: 16px; justify-items: start; padding-block: clamp(72px, 10vw, 120px); border-top: 1px solid var(--border); }
.ai-close h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1; max-width: 18ch; }
.ai-close__jobs { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-close__jobs button { padding: 10px 16px; border-radius: 99px; font-size: 0.9rem; color: var(--text-2); border: 1px solid var(--border-strong); transition: color 0.2s, border-color 0.2s; }
.ai-close__jobs button:hover { color: var(--text); border-color: rgba(233, 180, 76, 0.55); }
.ai-close .bp-start, .ai-start {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 99px;
  font-size: 0.95rem; font-weight: 600; background: var(--blue); color: var(--bg); transition: background 0.2s;
}
.ai-start:hover { background: var(--yellow); }

@media (max-width: 1000px) {
  .ai-loop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-guards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
}
@media (max-width: 700px) {
  .ai { padding-top: 104px; }
  .ai-loop, .ai-guards, .ai-shots, .ai-pay { grid-template-columns: minmax(0, 1fr); }
  .ai-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-steps { grid-template-columns: minmax(0, 1fr); }
  .ai-start { width: 100%; justify-content: center; }
}
