/* ============================================================
   AI WEBSITES v3 — selectors prefixed ai3-
   Builds on the shared shell, buttons, crumbs, logos, reviews, FAQ
   and contact form in css/styles.css.
   Photos: Unsplash, see img/stock/ai/README.md.
   Demo screens (made-up data): img/screens/ai/README.md.
   Anything drawn on top of a demo screen uses fixed colours, because
   the screen itself does not change with the site theme.
   ============================================================ */

.ai3-page {
  --ink: var(--deep);
  --ink-line: var(--deep-line);
  --ink-muted: var(--deep-muted);
  --ai3-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.45);
  --ai3-card-shadow: 0 22px 48px -22px rgba(0, 0, 0, 0.42);
  --ai3-good: #178a4c;
  --ai3-bad: #c93c25;
  --ai3-busy: #c58a12;
  --ai3-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ai3-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.8 8.3l2.7 2.7L12.2 5.3' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
}
html[data-theme="wpx-dark"] .ai3-page {
  --ai3-good: #3ddc84;
  --ai3-bad: #ff6b55;
  --ai3-busy: #f2b84b;
}

.ai3-js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}
.ai3-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---- Shared bits ---- */
.ai3-sec { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); background: var(--bg); scroll-margin-top: var(--header-h, 72px); }
.ai3-sec.svc-alt { background: var(--bg-alt); }

.ai3-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px 56px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.ai3-head .section-label { margin-bottom: 18px; }
.ai3-head h2,
.ai3-scope-copy h2 {
  max-width: 20ch;
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.ai3-head-aside { justify-self: end; max-width: 40ch; }
.ai3-head-aside p { font-size: var(--fz-16); line-height: 1.55; color: var(--muted); }
.ai3-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.ai3-cta-note { font-size: var(--fz-15); color: var(--muted); }
.ai3-cta-note b { color: var(--text); font-weight: 600; }
.ai3-note { margin-top: 14px; font-size: var(--fz-13-5); color: var(--muted); }

.ai3-card {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--ai3-card-shadow);
}
.ai3-card > span { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ai3-card > b { font-size: 16.5px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.ai3-card > small { font-size: 12.5px; color: var(--muted); }

/* Logo tile: always white, so monochrome marks stay visible on every theme */
.ai3-logo { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1px solid #e3e3de; background: #fff; }
.ai3-logo img { display: block; width: 62%; height: 62%; object-fit: contain; }

.ai3-checks,
.ai3-incl { list-style: none; }
.ai3-checks { display: grid; gap: 9px; }
.ai3-checks li,
.ai3-incl li { position: relative; padding-left: 27px; font-size: var(--fz-15); line-height: 1.45; }
.ai3-checks li::before,
.ai3-incl li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.725em - 8.5px);
  width: 17px;
  height: 17px;
  border: 1px solid var(--text);
  border-radius: 50%;
}
.ai3-checks li::after,
.ai3-incl li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(0.725em - 5.5px);
  width: 4px;
  height: 7px;
  border: solid var(--text);
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}

.ai3-win { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--ai3-shadow); overflow: hidden; }
.ai3-win-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.ai3-win-bar i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--text) 16%, transparent); }
.ai3-win-bar span { min-width: 0; margin: 0 auto; padding: 3px 18px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.25s; }
.ai3-win-lg .ai3-win-bar { height: 40px; }

.ai3-marquee { display: flex; overflow: hidden; }
.ai3-marquee-track { display: flex; align-items: center; flex-shrink: 0; margin: 0; padding: 0; list-style: none; animation: ai3-marq var(--dur, 60s) linear infinite; }
.ai3-marquee:hover .ai3-marquee-track { animation-play-state: paused; }

@keyframes ai3-marq { to { transform: translateX(-100%); } }
@keyframes ai3-zoom { from { transform: scale(1.08); } }
@keyframes ai3-mark { from { background-size: 0 0.3em; } }
@keyframes ai3-blink { 50% { opacity: 0; } }
@keyframes ai3-ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); } 100% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } }
@keyframes ai3-pulse { 50% { opacity: 0.25; } }
@keyframes ai3-ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.1); opacity: 0; } }
@keyframes ai3-shimmer { to { background-position: -300% 0; } }
@keyframes ai3-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes ai3-pop { from { opacity: 0; transform: translateY(6px); } }
@keyframes ai3-flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 90%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes ai3-bar { from { transform: scaleX(0); } }

/* ============================================================
   HERO — photo plus a looping build console
   ============================================================ */
.ai3-hero { padding: clamp(20px, 3vw, 36px) 0 0; background: var(--bg); overflow: hidden; }
.ai3-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: center;
}
.ai3-hero-copy .section-label { margin: clamp(28px, 5vw, 64px) 0 22px; }
.ai3-h1 { font-size: clamp(46px, 5.8vw, 88px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.97; }
.ai3-mark { background: linear-gradient(var(--accent), var(--accent)) 0 88% / 100% 0.3em no-repeat; }
.ai3-js .ai3-mark { animation: ai3-mark 0.9s var(--ease) 0.9s both; }
.ai3-lede { max-width: 46ch; margin-top: 26px; font-size: var(--fz-18); line-height: 1.5; color: var(--muted); }

.ai3-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  margin-top: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--line);
  list-style: none;
}
.ai3-facts li { display: grid; gap: 6px; padding: 20px 28px 0; border-left: 1px solid var(--line); }
.ai3-facts li:first-child { padding-left: 0; border-left: 0; }
.ai3-facts b { font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ai3-facts li > span { font-size: var(--fz-13-5); color: var(--muted); }

.ai3-stage { position: relative; height: clamp(540px, calc(100vh - var(--header-h) - 150px), 680px); margin-top: clamp(16px, 3vw, 40px); }
.ai3-hero-photo { position: absolute; top: 0; right: 0; width: 84%; height: 74%; margin: 0; overflow: hidden; background: var(--bg-alt); box-shadow: var(--ai3-shadow); }
.ai3-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.ai3-js .ai3-hero-photo.is-in img { animation: ai3-zoom 2.4s var(--ease) both; }

.ai3-console {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: min(470px, 74%);
  border: 1px solid #2a2a27;
  background: #121211;
  color: #f1f0ea;
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.75);
}
.ai3-con-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid #2a2a27; background: #181817; }
.ai3-con-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a37; }
.ai3-con-bar span { margin-left: auto; font: 500 11.5px/1 var(--ai3-mono); color: #8f8f88; }
.ai3-con-body { display: grid; gap: 14px; padding: 16px; transition: opacity 0.4s; }
.ai3-console.is-fade .ai3-con-body { opacity: 0; }
.ai3-con-prompt { display: grid; gap: 9px; padding: 12px 14px; border: 1px solid #2a2a27; background: #0a0a09; }
.ai3-con-k { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #8f8f88; }
.ai3-con-models { display: flex; gap: 4px; }
.ai3-con-models .ai3-logo { width: 22px; height: 22px; border-color: #2a2a27; }
.ai3-con-text { min-height: 2.9em; font: 500 14px/1.45 var(--ai3-mono); color: #f1f0ea; }
.ai3-caret { display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--accent); animation: ai3-blink 1s steps(1) infinite; }
.ai3-con-draft { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 12px; color: #8f8f88; }
.ai3-con-draft i { position: relative; height: 4px; background: #2a2a27; overflow: hidden; }
.ai3-con-draft em { position: absolute; inset: 0; background: var(--accent); transform-origin: left; }
.ai3-con-draft b { font-weight: 600; color: #f1f0ea; font-variant-numeric: tabular-nums; }
.ai3-con-gates { display: grid; border-top: 1px solid #2a2a27; list-style: none; }
.ai3-con-gates li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid #2a2a27; font-size: 13.5px; }
.ai3-con-gates b { font-weight: 600; }
.ai3-con-gates small { font-size: 12px; color: #8f8f88; }
.ai3-tick { position: relative; width: 18px; height: 18px; border: 1px solid #4a4a46; transition: background 0.3s, border-color 0.3s; }
.ai3-tick::after { content: ""; position: absolute; inset: 1px; background: var(--accent-ink); -webkit-mask: var(--ai3-tick) center / contain no-repeat; mask: var(--ai3-tick) center / contain no-repeat; transform: scale(0); transition: transform 0.35s var(--ease); }
.is-done .ai3-tick { border-color: var(--accent); background: var(--accent); }
.is-done .ai3-tick::after { transform: none; }
.ai3-con-live { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; border: 1px solid rgba(61, 220, 132, 0.5); background: rgba(61, 220, 132, 0.1); font-size: 13.5px; }
.ai3-con-live i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; animation: ai3-ping 1.6s infinite; }
.ai3-con-live span { margin-left: auto; font-size: 12px; color: #a9d9bd; }

.ai3-js .ai3-con-draft em { transform: scaleX(0); transition: transform 1.1s var(--ease); }
.ai3-js .ai3-console.is-drafting .ai3-con-draft em { transform: none; }
.ai3-js .ai3-con-draft b { opacity: 0; transition: opacity 0.3s 0.9s; }
.ai3-js .ai3-console.is-drafting .ai3-con-draft b { opacity: 1; }
.ai3-js .ai3-con-gates li { opacity: 0.4; transition: opacity 0.3s; }
.ai3-js .ai3-con-gates li.is-done { opacity: 1; }
.ai3-js .ai3-con-live { opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.ai3-js .ai3-con-live.is-done { opacity: 1; transform: none; }

.ai3-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 40px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.ai3-hero-foot p { font-size: var(--fz-14); color: var(--muted); }
.ai3-hero-foot b { color: var(--text); font-weight: 600; }
.ai3-hero-credit { font-size: 12.5px !important; }

/* ---- Tool strip ---- */
.ai3-strip { border-top: 1px solid var(--line); background: var(--bg-alt); overflow: hidden; }
.ai3-strip-in { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 32px; }
.ai3-strip-k { padding: 22px 32px 22px 0; border-right: 1px solid var(--line); font-size: 13px; line-height: 1.35; color: var(--muted); white-space: nowrap; }
.ai3-strip-k b { font-weight: 600; color: var(--text); }
.ai3-strip .ai3-marquee { -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ai3-strip .ai3-marquee-track { --dur: 55s; }
.ai3-strip li { display: inline-flex; align-items: center; gap: 10px; margin-right: 44px; font-size: var(--fz-15); font-weight: 600; white-space: nowrap; }
.ai3-strip img { width: 24px; height: 24px; object-fit: contain; }
html[data-theme="wpx-dark"] .ai3-strip img.is-mono { filter: invert(1); }

/* ============================================================
   RACE — same prompt, two lanes on one timeline
   ============================================================ */
.ai3-race { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--ai3-shadow); }
.ai3-race-prompt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.ai3-race-k { padding: 5px 8px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ai3-race-q { font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.ai3-race-models { display: flex; gap: 4px; }
.ai3-race-models .ai3-logo { width: 32px; height: 32px; }

.ai3-race-ctrl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.ai3-play { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; background: var(--text); color: var(--bg); cursor: pointer; transition: transform 0.3s var(--ease); }
.ai3-play:hover { transform: scale(1.06); }
.ai3-play:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.ai3-play svg { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ai3-play[data-state="play"] .is-play,
.ai3-play[data-state="pause"] .is-pause,
.ai3-play[data-state="replay"] .is-replay { display: block; }
.ai3-scrub { display: grid; gap: 4px; min-width: 0; }
.ai3-scrub input { --v: 0%; display: block; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.ai3-scrub input:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.ai3-scrub input::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(var(--text), var(--text)) 0 0 / var(--v) 100% no-repeat, var(--line); }
.ai3-scrub input::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; border: 2px solid var(--text); background: var(--accent); -webkit-appearance: none; appearance: none; }
.ai3-scrub input::-moz-range-track { height: 4px; background: var(--line); }
.ai3-scrub input::-moz-range-progress { height: 4px; background: var(--text); }
.ai3-scrub input::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid var(--text); border-radius: 0; background: var(--accent); }
.ai3-scrub-days { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ai3-race-day { display: grid; justify-items: end; gap: 3px; min-width: 92px; }
.ai3-race-day span { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ai3-race-day b { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }

.ai3-race-tabs { display: none; }
.ai3-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ai3-lane { display: grid; align-content: start; gap: 16px; min-width: 0; padding: 22px; }
.ai3-lane + .ai3-lane { border-left: 1px solid var(--line); }
.ai3-lane.is-wpx { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.ai3-lane-h { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.ai3-lane-av { display: block; width: 52px; height: 52px; object-fit: cover; }
.ai3-lane-who h3 { font-size: var(--fz-18); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.ai3-lane-who p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.ai3-lane-who b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

.ai3-status { display: grid; justify-items: end; }
.ai3-status > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.ai3-status > span.is-cur { opacity: 1; transform: none; }
.ai3-status > span::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.ai3-status > .is-busy::before { background: var(--ai3-busy); animation: ai3-pulse 1s infinite; }
.ai3-status > .is-good { border-color: color-mix(in srgb, var(--ai3-good) 50%, transparent); color: var(--ai3-good); }
.ai3-status > .is-good::before { background: var(--ai3-good); }
.ai3-status > .is-bad { border-color: color-mix(in srgb, var(--ai3-bad) 50%, transparent); color: var(--ai3-bad); }
.ai3-status > .is-bad::before { background: var(--ai3-bad); }

.ai3-win-body { --p: 0; position: relative; aspect-ratio: 1600 / 1046; overflow: hidden; background: var(--bg-alt); }
.ai3-skel { position: absolute; inset: 0; display: grid; align-content: start; gap: 5%; padding: 4% 6%; }
.ai3-skel i {
  display: block;
  height: 26px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--text) 6%, transparent) 30%, color-mix(in srgb, var(--text) 13%, transparent) 50%, color-mix(in srgb, var(--text) 6%, transparent) 70%) 0 0 / 300% 100%;
  animation: ai3-shimmer 1.6s linear infinite;
}
.ai3-skel i:nth-child(1) { width: 100%; height: 14px; }
.ai3-skel i:nth-child(2) { width: 62%; height: 64px; margin-top: 6%; }
.ai3-skel i:nth-child(3) { width: 44%; height: 16px; }
.ai3-skel i:nth-child(4) { width: 100%; height: 90px; margin-top: 4%; }
.ai3-shot { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; clip-path: inset(0 0 calc(100% - var(--p) * 100%) 0); }
.ai3-scan { position: absolute; left: 0; right: 0; top: calc(var(--p) * 100%); z-index: 3; height: 2px; background: var(--accent); box-shadow: 0 0 18px 4px color-mix(in srgb, var(--accent) 70%, transparent); opacity: 0; transition: opacity 0.2s; }
.ai3-win-body.is-scanning .ai3-scan { opacity: 1; }
.ai3-gen { position: absolute; left: 50%; top: 50%; z-index: 4; padding: 8px 14px; background: var(--deep); color: var(--deep-text); font-size: 13px; font-weight: 600; translate: -50% -50%; opacity: 0; transition: opacity 0.3s; }
.ai3-gen.is-on { opacity: 1; }

.ai3-pin { position: absolute; left: var(--x); top: var(--y); z-index: 5; translate: -50% -50%; opacity: 0; scale: 0.4; pointer-events: none; transition: opacity 0.3s, scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ai3-pin.is-on { opacity: 1; scale: 1; pointer-events: auto; }
.ai3-pin i { position: relative; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #d4442e; color: var(--deep-text); font-size: 12px; font-style: normal; font-weight: 700; box-shadow: 0 0 0 3px color-mix(in srgb, var(--deep-text) 92%, transparent), 0 6px 14px rgba(0, 0, 0, 0.3); }
.ai3-pin.is-cur i::after { content: ""; position: absolute; inset: -3px; border: 2px solid #d4442e; border-radius: 50%; animation: ai3-ring 1.4s var(--ease) infinite; }
.ai3-pin em {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  width: max-content;
  max-width: 210px;
  padding: 7px 10px;
  border-left: 3px solid #d4442e;
  background: #fff;
  color: var(--text);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
  translate: 0 -50%;
  opacity: 0;
  transform: translateX(-6px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.35s var(--ease);
}
.ai3-pin.is-l em { left: auto; right: calc(100% + 10px); border-left: 0; border-right: 3px solid #d4442e; transform: translateX(6px); }
.ai3-pin.is-cur em,
.ai3-pin:hover em { opacity: 1; transform: none; }

.ai3-wire {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: 9% 1fr 15% 22%;
  gap: 3%;
  padding: 3% 4%;
  background: #f5f1ea;
  opacity: 0;
  transition: opacity 0.4s;
}
.ai3-wire.is-on { opacity: 1; }
.ai3-wire span { display: grid; place-items: center; padding: 4px; border: 1.5px dashed #8fb0a6; background: rgba(13, 107, 94, 0.04); color: #0d6b5e; font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; opacity: 0; transform: scale(0.94); transition: opacity 0.4s, transform 0.5s var(--ease); }
.ai3-wire.is-on span { opacity: 1; transform: none; }
.ai3-wire.is-on span:nth-child(2) { transition-delay: 0.12s; }
.ai3-wire.is-on span:nth-child(3) { transition-delay: 0.24s; }
.ai3-wire.is-on span:nth-child(4) { transition-delay: 0.36s; }
.ai3-wire.is-on span:nth-child(5) { transition-delay: 0.48s; }
.ai3-wire-nav { grid-column: 1 / -1; }
.ai3-wire-photo { grid-column: 2; grid-row: 2 / 4; }
.ai3-wire-trust { grid-column: 1; grid-row: 3; }
.ai3-wire-cards { grid-column: 1 / -1; }

.ai3-gates { position: absolute; left: 3%; right: 3%; bottom: 4%; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: color-mix(in srgb, var(--deep-text) 96%, transparent); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.35); list-style: none; opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.ai3-gates.is-on { opacity: 1; transform: none; }
.ai3-gates li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #e3e3de; color: #8a8a84; font-size: 12px; font-weight: 600; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.ai3-gates li::before { content: ""; width: 12px; height: 12px; border: 1px solid currentColor; }
.ai3-gates li.is-on { border-color: #1f9d55; background: #e7f6ee; color: #11653a; }
.ai3-gates li.is-on::before { border: 0; background: #1f9d55; -webkit-mask: var(--ai3-tick) center / contain no-repeat; mask: var(--ai3-tick) center / contain no-repeat; }

.ai3-livebadge { position: absolute; left: 3%; bottom: 4%; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--deep); color: var(--deep-text); font-size: 12.5px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.ai3-livebadge.is-on { opacity: 1; transform: none; }
.ai3-livebadge i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; animation: ai3-ping 1.6s infinite; }
.ai3-livebadge b { font-variant-numeric: tabular-nums; }

.ai3-toast { position: absolute; right: 3%; top: 16%; z-index: 6; display: grid; gap: 2px; padding: 9px 14px 9px 38px; border-left: 3px solid #1f9d55; background: #fff; color: var(--text); font-size: 12px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45); opacity: 0; transform: translateX(24px); transition: opacity 0.35s, transform 0.5s var(--ease); }
.ai3-toast::before { content: ""; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #1f9d55; }
.ai3-toast::after { content: ""; position: absolute; left: 15px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: #fff; -webkit-mask: var(--ai3-tick) center / contain no-repeat; mask: var(--ai3-tick) center / contain no-repeat; }
.ai3-toast.is-on { opacity: 1; transform: none; }
.ai3-toast b { font-size: 13px; font-weight: 700; }
.ai3-toast span { color: #6b6b66; }

.ai3-log {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 172px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  list-style: none;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 38%);
  mask: linear-gradient(to bottom, transparent, #000 38%);
}
.ai3-log li { display: none; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--muted); }
.ai3-log li.is-on { display: grid; animation: ai3-in 0.5s var(--ease) both; }
.ai3-log li.is-cur { color: var(--text); }
.ai3-log b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

.ai3-score { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.ai3-score div { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 12px 14px; }
.ai3-score div + div { border-left: 1px solid var(--line); }
.ai3-score dt { font-size: 11.5px; line-height: 1.25; color: var(--muted); }
.ai3-score dd { font-size: clamp(19px, 1.8vw, 25px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; transition: color 0.3s; }
.ai3-score.is-on { animation: ai3-flash 0.9s var(--ease); }
.is-diy .ai3-score.is-on dd { color: var(--ai3-bad); }
.is-wpx .ai3-score.is-on dd { color: var(--ai3-good); }
.ai3-race-note { padding: 12px 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ============================================================
   SCOPE — what sits under the first screen
   ============================================================ */
.ai3-scope { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.ai3-scope-copy { position: sticky; top: calc(var(--header-h, 72px) + 40px); }
.ai3-scope-copy h2 { max-width: 14ch; margin-top: 18px; }
.ai3-scope-copy h2 + p { max-width: 42ch; margin-top: 20px; font-size: var(--fz-17); line-height: 1.55; color: var(--muted); }

.ai3-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 30px; padding: 4px; border: 1px solid var(--line); background: var(--surface); }
.ai3-switch button { position: relative; z-index: 1; padding: 11px 22px; border: 0; background: none; color: var(--muted); font: inherit; font-size: var(--fz-15); font-weight: 600; cursor: pointer; transition: color 0.3s; }
.ai3-switch button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.ai3-switch button[aria-pressed="true"] { color: var(--bg); }
.ai3-switch i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--text); transition: transform 0.5s var(--ease), background 0.3s; }
[data-mode="wpx"] .ai3-switch i { transform: translateX(100%); background: var(--accent); }
[data-mode="wpx"] .ai3-switch button[aria-pressed="true"] { color: var(--accent-ink); }

.ai3-scope-count { display: flex; align-items: baseline; gap: 14px; margin-top: 34px; }
.ai3-scope-count b { font-size: clamp(56px, 6vw, 84px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.ai3-scope-count span { max-width: 15ch; font-size: var(--fz-15); line-height: 1.35; color: var(--muted); }
.ai3-scope-meter { max-width: 360px; height: 6px; margin-top: 16px; background: var(--line); }
.ai3-scope-meter i { display: block; width: calc(var(--cov, 1) / 9 * 100%); height: 100%; background: var(--text); transition: width 0.9s var(--ease); }

.ai3-stack { display: grid; gap: 8px; list-style: none; }
.ai3-layer { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 15px 18px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color 0.4s, background 0.4s; }
.ai3-layer > :not(.ai3-fill) { position: relative; z-index: 1; }
.ai3-layer-n { font-size: 12.5px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.ai3-layer p { display: grid; gap: 3px; min-width: 0; }
.ai3-layer b { font-size: var(--fz-17); font-weight: 600; letter-spacing: -0.015em; transition: color 0.3s; }
.ai3-layer small { font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.ai3-layer em { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12.5px; font-style: normal; font-weight: 600; white-space: nowrap; }
.ai3-layer em::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.ai3-layer em.is-bad { color: var(--ai3-bad); border-color: color-mix(in srgb, var(--ai3-bad) 45%, transparent); }
.ai3-layer em.is-bad::before { background: var(--ai3-bad); }
.ai3-layer em.is-ok { border-color: var(--text); background: var(--text); color: var(--bg); }
.ai3-layer em.is-ok::before { width: 11px; height: 11px; border-radius: 0; background: var(--accent); -webkit-mask: var(--ai3-tick) center / contain no-repeat; mask: var(--ai3-tick) center / contain no-repeat; }
.ai3-fill { position: absolute; inset: 0; z-index: 0; background: color-mix(in srgb, var(--accent) 24%, var(--surface)); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease) calc(var(--i) * 80ms); }
[data-mode="wpx"] .ai3-fill { transform: none; }
[data-mode="diy"] .ai3-layer:not(.is-top) { border-style: dashed; background: transparent; }
[data-mode="diy"] .ai3-layer:not(.is-top) b { color: var(--muted); }
[data-mode="diy"] .is-wpx,
[data-mode="wpx"] .is-diy { display: none !important; }
.ai3-js .ai3-layer small,
.ai3-js .ai3-layer em,
.ai3-js .ai3-water span { animation: ai3-pop 0.45s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 120ms); }
.ai3-water { position: relative; display: flex; justify-content: center; height: 0; margin: 12px 0; border-top: 1.5px dashed var(--faint); }
.ai3-water span { position: relative; top: -0.8em; padding: 0 12px; background: var(--bg-alt); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   WHAT WE BUILD — tabbed showcase
   ============================================================ */
.ai3-show { display: grid; grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.6fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.ai3-show-tabs { display: grid; border-top: 1px solid var(--line); }
.ai3-show-tab { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 20px 4px 20px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ai3-show-tab:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.ai3-show-n { padding-top: 5px; font-size: 13px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.ai3-show-txt { display: grid; gap: 6px; }
.ai3-show-txt b { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--muted); transition: color 0.3s; }
.ai3-show-txt small { font-size: var(--fz-15); line-height: 1.45; color: var(--muted); }
.ai3-show-tab.is-on .ai3-show-n,
.ai3-show-tab.is-on b,
.ai3-show-tab:hover b { color: var(--text); }
.ai3-show-more { display: grid; gap: 10px; justify-items: start; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.5s var(--ease), opacity 0.4s, margin 0.4s; }
.ai3-show-tab.is-on .ai3-show-more { max-height: 140px; margin-top: 6px; opacity: 1; }
.ai3-show-incl { font-size: 13.5px; line-height: 1.4; color: var(--text); }
.ai3-show-more em { padding: 5px 9px; background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-style: normal; font-weight: 700; }
.ai3-show-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); transform: scaleX(0); transform-origin: left; }
.ai3-show-tab.is-on .ai3-show-bar { transform: none; }
.ai3-show.is-auto .ai3-show-tab.is-on .ai3-show-bar { animation: ai3-bar 7s linear both; }
.ai3-show.is-auto.is-paused .ai3-show-tab.is-on .ai3-show-bar { animation-play-state: paused; }

.ai3-show-stage { position: sticky; top: calc(var(--header-h, 72px) + 24px); min-width: 0; }
.ai3-show-body { position: relative; aspect-ratio: 1600 / 1046; overflow: hidden; background: var(--bg-alt); }
.ai3-show-p { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0s 0.6s; }
.ai3-show-p.is-on { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease); }
.ai3-show-p img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.ai3-show-p.is-on img { transform: none; }
.ai3-show-card { position: absolute; left: 16px; bottom: 16px; max-width: 290px; opacity: 0; transform: translateY(12px); transition: opacity 0.5s 0.25s, transform 0.6s var(--ease) 0.25s; }
.ai3-show-p.is-on .ai3-show-card { opacity: 1; transform: none; }

/* ============================================================
   PROCESS — dark, sticky media, steps on scroll
   ============================================================ */
.ai3-dark { background: var(--ink); border-top-color: var(--ink); color: var(--deep-text); }
.ai3-dark .section-label { color: var(--accent); }
.ai3-dark .ai3-head-aside p { color: var(--ink-muted); }
.ai3-steps { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ai3-steps-media { position: sticky; top: calc(var(--header-h, 72px) + 40px); aspect-ratio: 5 / 4; background: #1a1a19; }
.ai3-steps-media figure { position: absolute; inset: 0; margin: 0; overflow: hidden; opacity: 0; transition: opacity 0.7s var(--ease); }
.ai3-steps-media figure.is-on { opacity: 1; }
.ai3-steps-media img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.ai3-steps-media figure.is-on img { transform: none; }
.ai3-steps-media .is-screen img { object-position: top left; }
.ai3-steps-media figcaption { position: absolute; left: 18px; bottom: 18px; max-width: 320px; opacity: 0; transform: translateY(12px); transition: opacity 0.5s 0.2s, transform 0.6s var(--ease) 0.2s; }
.ai3-steps-media figure.is-on figcaption { opacity: 1; transform: none; }
.ai3-steps-dots { position: absolute; right: 18px; top: 18px; z-index: 2; display: flex; gap: 6px; }
.ai3-steps-dots i { width: 22px; height: 3px; background: color-mix(in srgb, var(--deep-text) 40%, transparent); transition: background 0.3s; }
.ai3-steps-dots i.is-on { background: var(--accent); }

.ai3-steps-list { position: relative; border-left: 1px solid var(--ink-line); list-style: none; }
.ai3-steps-list::before { content: ""; position: absolute; left: -1px; top: 0; width: 2px; height: calc(var(--p, 0) * 100%); background: var(--accent); }
.ai3-step { position: relative; display: grid; align-content: center; gap: 14px; min-height: 56vh; padding: 40px 0 40px clamp(24px, 3vw, 44px); opacity: 0.35; transition: opacity 0.5s; }
.ai3-step.is-on { opacity: 1; }
.ai3-step::before { content: ""; position: absolute; left: -6px; top: 50%; width: 11px; height: 11px; margin-top: -6px; border: 1px solid var(--ink-line); background: var(--ink); transition: background 0.4s, border-color 0.4s; }
.ai3-step.is-on::before { border-color: var(--accent); background: var(--accent); }
.ai3-step-day { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.ai3-step h3 { font-size: clamp(28px, 3vw, 42px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.ai3-step h3 + p { max-width: 44ch; font-size: var(--fz-17); line-height: 1.5; color: color-mix(in srgb, var(--deep-text) 78%, transparent); }
.ai3-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 8px; border: 1px solid var(--ink-line); background: var(--ink-line); }
.ai3-split div { display: grid; align-content: start; gap: 6px; padding: 14px 16px; background: var(--ink); }
.ai3-split dt { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.ai3-split dt::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; }
.ai3-split .is-human dt { color: var(--accent); }
.ai3-split .is-human dt::before { background: currentColor; }
.ai3-split dd { font-size: 14.5px; line-height: 1.45; color: color-mix(in srgb, var(--deep-text) 86%, transparent); }
.ai3-step-photo { display: none; }

/* ============================================================
   BEFORE / AFTER
   ============================================================ */
.ai3-ba-body { position: relative; aspect-ratio: 1600 / 1046; overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ai3-ba-body img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.ai3-ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ai3-ba-range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; -webkit-appearance: none; appearance: none; }
.ai3-ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14); pointer-events: none; }
.ai3-ba-line i { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 48px; height: 48px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); translate: -50% -50%; }
.ai3-ba-line svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ai3-ba-range:focus-visible ~ .ai3-ba-line i { outline: 2px solid var(--deep-text); outline-offset: 3px; }
.ai3-ba-tag { position: absolute; top: 14px; z-index: 3; padding: 6px 10px; background: rgba(15, 15, 14, 0.85); color: var(--deep-text); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; }
.ai3-ba-tag.is-l { left: 14px; }
.ai3-ba-tag.is-r { right: 14px; background: var(--accent); color: var(--accent-ink); }

.ai3-ba-wrap { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.75fr); gap: 32px clamp(32px, 4vw, 56px); align-items: center; }
.ai3-fix { display: grid; column-gap: 24px; border-top: 1px solid var(--line); list-style: none; }
.ai3-fix li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 3px 10px; align-content: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ai3-fix span { grid-row: 1 / 3; padding-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.ai3-fix b { font-size: var(--fz-18); font-weight: 600; letter-spacing: -0.02em; }
.ai3-fix p { font-size: var(--fz-15); line-height: 1.45; color: var(--muted); }
.ai3-ba-side .ai3-cta { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; }

/* ============================================================
   TOOLBOX
   ============================================================ */
.ai3-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.ai3-tool-col { min-width: 0; padding: 22px 22px 8px; }
.ai3-tool-col + .ai3-tool-col { border-left: 1px solid var(--line); }
.ai3-tool-k { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: var(--fz-16); font-weight: 600; letter-spacing: -0.01em; }
.ai3-tool-k span { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ai3-tool-col ul { display: grid; list-style: none; }
.ai3-tool-col li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; }
.ai3-tool-col li + li { border-top: 1px dashed var(--line); }
.ai3-tool-col li .ai3-logo { width: 40px; height: 40px; transition: transform 0.4s var(--ease), border-color 0.3s; }
.ai3-tool-col li:hover .ai3-logo { border-color: var(--deep); transform: translateY(-3px) rotate(-4deg); }
.ai3-tool-col li p { display: grid; gap: 2px; min-width: 0; }
.ai3-tool-col li p b { font-size: var(--fz-15); font-weight: 600; }
.ai3-tool-col li p span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.ai3-gatebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; margin-top: 16px; padding: 18px 22px; background: var(--ink); color: var(--deep-text); }
.ai3-gatebar p { font-size: var(--fz-16); font-weight: 600; }
.ai3-gatebar ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.ai3-gatebar li { position: relative; padding-left: 26px; font-size: var(--fz-15); line-height: 1.45; color: color-mix(in srgb, var(--deep-text) 86%, transparent); }
.ai3-gatebar li::before { content: ""; position: absolute; left: 0; top: calc(0.725em - 8.5px); width: 17px; height: 17px; border: 1px solid var(--deep-text); border-radius: 50%; }
.ai3-gatebar li::after { content: ""; position: absolute; left: 6px; top: calc(0.725em - 5.5px); width: 4px; height: 7px; border: solid var(--deep-text); border-width: 0 1px 1px 0; transform: rotate(45deg); }

/* ============================================================
   PRICING
   ============================================================ */
.ai3-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ai3-tier { position: relative; display: grid; align-content: start; gap: 14px; padding: 28px; border: 1px solid var(--line); background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.3s; }
.ai3-tier:hover { border-color: var(--text); transform: translateY(-4px); }
.ai3-tier.is-pop { border-color: var(--text); box-shadow: inset 0 4px 0 var(--accent); }
.ai3-tier-badge { position: absolute; top: -12px; left: 28px; padding: 5px 10px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ai3-tier-k { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ai3-tier h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.ai3-tier-price { display: flex; align-items: baseline; gap: 8px; font-size: clamp(44px, 4.4vw, 60px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.ai3-tier-price small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.ai3-tier-best { padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: var(--fz-15); line-height: 1.5; color: var(--muted); }
.ai3-tier-time { font-size: 14px; color: var(--muted); }
.ai3-tier-time b { font-weight: 600; color: var(--text); }
.ai3-tier .btn { justify-self: start; margin-top: 6px; }
.ai3-incl { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 26px; }

/* ============================================================
   RELATED + MEGA STRIP
   ============================================================ */
.ai3-rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.ai3-rel a { display: grid; align-content: start; gap: 8px; height: 100%; padding-bottom: 24px; border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: border-color 0.3s, transform 0.4s var(--ease); }
.ai3-rel a:hover { border-color: var(--text); transform: translateY(-4px); }
.ai3-rel a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.ai3-rel figure { margin: 0 0 10px; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.ai3-rel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.8s var(--ease); }
.ai3-rel a:hover img { transform: scale(1.04); }
.ai3-rel-k,
.ai3-rel b,
.ai3-rel p { padding: 0 22px; }
.ai3-rel-k { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ai3-rel b { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fz-20); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.ai3-rel b::after { content: "→"; flex: none; transition: transform 0.3s var(--ease); }
.ai3-rel a:hover b::after { transform: translateX(4px); }
.ai3-rel p { font-size: var(--fz-15); line-height: 1.45; color: var(--muted); }

.ai3-mega { padding: 28px 0; border-top: 1px solid var(--line); background: var(--bg-alt); overflow: hidden; }
.ai3-mega-item { display: inline-flex; align-items: center; gap: 18px; padding: 0 28px; font-size: clamp(28px, 4vw, 48px); font-weight: 600; letter-spacing: -0.045em; white-space: nowrap; color: var(--text); }
.ai3-mega-item i { font-style: normal; font-weight: 400; color: var(--muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .ai3-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai3-tool-col:nth-child(3) { border-left: 0; }
  .ai3-tool-col:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ai3-lane { padding: 18px; }
  .ai3-score dd { font-size: 19px; }
}

@media (max-width: 1080px) {
  .ai3-hero-grid { grid-template-columns: 1fr; }
  .ai3-stage { height: auto; }
  .ai3-hero-photo { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .ai3-console { position: relative; width: min(520px, calc(100% - 24px)); margin: -96px 0 0 12px; }
  .ai3-show { grid-template-columns: 1fr; }
  .ai3-show-stage { position: relative; top: 0; order: -1; }
  .ai3-show-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .ai3-scope { grid-template-columns: 1fr; }
  .ai3-scope-copy { position: relative; top: 0; }
  .ai3-ba-wrap { grid-template-columns: 1fr; }
  .ai3-fix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai3-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .ai3-head { grid-template-columns: 1fr; }
  .ai3-head-aside { justify-self: start; }
  .ai3-race-prompt { grid-template-columns: 1fr; }
  .ai3-race-k { justify-self: start; }
  .ai3-race-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 18px 0; }
  .ai3-race-tabs button { padding: 11px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: var(--fz-15); font-weight: 600; cursor: pointer; }
  .ai3-race-tabs button.is-on { border-color: var(--text); background: var(--text); color: var(--bg); }
  .ai3-lanes { grid-template-columns: 1fr; }
  .ai3-lane { display: none; }
  .ai3-lane.is-show { display: grid; }
  .ai3-lane + .ai3-lane { border-left: 0; }
  .ai3-steps { grid-template-columns: 1fr; }
  .ai3-steps-media { display: none; }
  .ai3-step { min-height: 0; padding: 0 0 48px 28px; opacity: 1; }
  .ai3-step::before { top: 0; margin-top: 0; border-color: var(--accent); background: var(--accent); }
  .ai3-steps-list::before { display: none; }
  .ai3-step-photo { display: block; margin: 0 0 8px; aspect-ratio: 16 / 10; overflow: hidden; }
  .ai3-step-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .ai3-step-photo.is-screen img { object-position: top left; }
  .ai3-tiers { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 640px) {
  .ai3-h1 { font-size: clamp(42px, 12vw, 56px); }
  .ai3-lede { font-size: var(--fz-17); }
  .ai3-cta .btn { width: 100%; }
  .ai3-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai3-facts li { padding: 16px 12px 0; }
  .ai3-facts b { font-size: 22px; }
  .ai3-facts li > span { font-size: 12.5px; }
  .ai3-console { width: calc(100% - 16px); margin: -48px 0 0 8px; }
  .ai3-con-gates small { display: none; }
  .ai3-strip-in { grid-template-columns: 1fr; gap: 0; }
  .ai3-strip-k { padding: 16px 0 6px; border-right: 0; }
  .ai3-strip-k br { display: none; }
  .ai3-strip .ai3-marquee { padding-bottom: 16px; }
  .ai3-race { margin: 0 calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
  .ai3-race-prompt,
  .ai3-race-ctrl { padding-left: 16px; padding-right: 16px; }
  .ai3-race-ctrl { grid-template-columns: auto minmax(0, 1fr); }
  .ai3-race-day { grid-column: 1 / -1; grid-row: 1; justify-items: start; grid-auto-flow: column; align-items: baseline; gap: 10px; }
  .ai3-race-tabs { padding: 12px 16px 0; }
  .ai3-lane { padding: 16px; }
  .ai3-lane-h { grid-template-columns: 44px minmax(0, 1fr); }
  .ai3-lane-av { width: 44px; height: 44px; }
  .ai3-status { grid-column: 1 / -1; justify-items: start; }
  .ai3-pin em { max-width: 150px; font-size: 11.5px; }
  .ai3-gates li { padding: 4px 7px; font-size: 11px; }
  .ai3-toast { padding: 7px 10px 7px 32px; }
  .ai3-toast::before { left: 9px; }
  .ai3-toast::after { left: 12px; }
  .ai3-gen,
  .ai3-wire span { font-size: 10.5px; }
  .ai3-log { height: 196px; }
  .ai3-log li { grid-template-columns: 52px minmax(0, 1fr); font-size: 13.5px; }
  .ai3-score { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai3-score div:nth-child(3) { border-left: 0; }
  .ai3-score div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ai3-race-note { padding: 12px 16px; }
  .ai3-layer { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 13px 14px; }
  .ai3-layer-n { display: none; }
  .ai3-layer em { padding: 4px 8px; font-size: 11.5px; }
  .ai3-switch { display: grid; width: 100%; }
  .ai3-switch button { padding: 11px 10px; }
  .ai3-show-tabs { grid-template-columns: 1fr; }
  .ai3-show-card { left: 10px; bottom: 10px; max-width: 220px; padding: 9px 11px; }
  .ai3-show-card b { font-size: 14px; }
  .ai3-show-card small { display: none; }
  .ai3-split { grid-template-columns: 1fr; }
  .ai3-ba-line i { width: 40px; height: 40px; }
  .ai3-ba-tag { top: 8px; padding: 4px 7px; font-size: 10.5px; }
  .ai3-ba-tag.is-l { left: 8px; }
  .ai3-ba-tag.is-r { right: 8px; }
  .ai3-fix { grid-template-columns: 1fr; }
  .ai3-tools { grid-template-columns: 1fr; }
  .ai3-tool-col + .ai3-tool-col { border-left: 0; border-top: 1px solid var(--line); }
  .ai3-tier { padding: 24px 20px; }
  .ai3-tier .btn { width: 100%; justify-self: stretch; }
  .ai3-rel { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ai3-show-card { display: none; }
  .ai3-pin i { width: 20px; height: 20px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .ai3-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ai3-js .ai3-mark,
  .ai3-js .ai3-hero-photo.is-in img,
  .ai3-marquee-track,
  .ai3-caret,
  .ai3-skel i,
  .ai3-pin.is-cur i::after,
  .ai3-con-live i,
  .ai3-livebadge i,
  .ai3-status > .is-busy::before,
  .ai3-log li.is-on,
  .ai3-score.is-on,
  .ai3-js .ai3-layer small,
  .ai3-js .ai3-layer em,
  .ai3-js .ai3-water span,
  .ai3-show.is-auto .ai3-show-tab.is-on .ai3-show-bar { animation: none; }
  .ai3-fill,
  .ai3-show-p,
  .ai3-show-p img,
  .ai3-steps-media figure,
  .ai3-steps-media img { transition: none; }
}

/* Dark surfaces: buttons on them take the dark palette's action colour */
.ai3-dark,
.ai3-split div,
.ai3-gatebar {
  --cta: var(--deep-accent);
  --cta-hover: var(--deep-accent-hover);
  --cta-ink: var(--deep-accent-ink);
}
