/* The A2Z AI-Test page (public/ai-test.html): the hero with the two hands, the live sample question, the random draw, the five steps, the program and person cards, the promises and the identity cards.
   Loaded after site.css and experts.css. Site tokens only (navy, amber, blue, green); the page reuses page-hero, sec-h, pillars, card, faq and cta from site.css. */

/* ---- the sample question: laid out like a test item ---- */
.ait-sample { display: grid; gap: 2.4rem; align-items: start; }
@media (min-width: 960px) { .ait-sample { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3.6rem; } .ait-sample-text { position: sticky; top: 96px; } }
.ait-notes { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.ait-notes li { position: relative; padding-left: 1.5rem; color: var(--text-dim); font-size: 0.95rem; }
.ait-notes li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.65rem; height: 0.65rem; background: var(--accent); border-radius: 2px; }

.ait-q { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); overflow: hidden; min-width: 0; }
.ait-q-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 0.9rem; background: var(--ink2); padding: 0.8rem 1.1rem; }
.ait-q-top .mono { color: var(--accent); }
.ait-q-top .ait-q-name { color: var(--ddim); }
.ait-pips { display: inline-flex; gap: 4px; }
.ait-pips i { width: 14px; height: 5px; border-radius: 2px; background: rgba(237, 242, 247, 0.2); }
.ait-pips i:nth-child(-n + 3) { background: rgba(237, 242, 247, 0.6); }
.ait-pips i.on { background: var(--accent); }
.ait-q-body { padding: 1.3rem 1.2rem 1.2rem; display: grid; gap: 1rem; }
.ait-prompt { margin: 0; font-weight: 600; color: var(--text); }
.ait-doc, .ait-ai { margin: 0; padding: 0.9rem 1rem; border-radius: 4px; font-size: 0.95rem; line-height: 1.55; overflow-wrap: anywhere; }
.ait-doc { background: var(--enterprise-soft); border-left: 3px solid var(--enterprise); color: var(--enterprise-ink); }
.ait-ai { background: var(--accent-soft); border-left: 3px solid var(--accent); color: var(--accent-ink); }
.ait-doc .mono, .ait-ai .mono { display: block; margin-bottom: 0.35rem; font-size: 10.5px; }
.ait-doc .mono { color: var(--enterprise); }
.ait-ai .mono { color: var(--accent-dark); }

.ait-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.ait-field legend { padding: 0; margin: 0 0 0.55rem; font-family: var(--font-head); font-weight: 600; color: var(--text); }
.ait-opt { display: flex; align-items: center; gap: 0.75rem; min-height: 46px; padding: 0.6rem 0.9rem; margin: 0 0 0.45rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.ait-opt:hover { border-color: var(--accent); }
.ait-opt input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent-dark); }
.ait-opt.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.ait-opt:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.ait-opt.good { border-color: var(--ok); background: #E3F6EE; box-shadow: 0 0 0 1px var(--ok) inset; color: #064E34; }
.ait-opt.miss { border-color: var(--accent-dark); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-dark) inset; }
.ait-opt.locked { cursor: default; }
.ait-why { margin: 0.2rem 0 0.4rem; padding: 0.7rem 0.9rem; border-radius: 4px; font-size: 0.93rem; background: var(--enterprise-soft); color: var(--enterprise-ink); border-left: 3px solid var(--enterprise); }
.ait-why strong { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.2rem; }
.ait-field.right .ait-why { background: #E3F6EE; border-left-color: var(--ok); color: #064E34; }
.ait-field.wrong .ait-why { background: var(--accent-soft); border-left-color: var(--accent-dark); color: var(--accent-ink); }
.ait-q-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; }
.ait-saved { margin-right: auto; display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ok); opacity: 0; transition: opacity 0.3s ease; }
.ait-saved.show { opacity: 1; }
.ait-saved::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ait-q-foot .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.ait-result { padding: 0.9rem 1rem; border-radius: 6px; background: var(--enterprise-soft); color: var(--enterprise-ink); font-size: 0.93rem; display: grid; gap: 0.25rem; }
.ait-result strong { font-family: var(--font-head); font-size: 1.15rem; }
.ait-q [hidden] { display: none !important; }

/* ---- the draw: ten tiles for you, ten for someone else, out of a pool ---- */
.ait-draw, .ait-cta { position: relative; overflow: hidden; background: var(--ink); }
.ait-draw .bg, .ait-cta .bg { position: absolute; inset: 0; background: var(--ink2) center / cover no-repeat; }
.ait-draw .bg { background-image: url(/assets/video/ait-sphere-poster.jpg); }
.ait-cta .bg { background-image: url(/assets/video/ait-waves-poster.jpg); }
.ait-draw .bg video, .ait-cta .bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ait-draw::before, .ait-cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7, 11, 20, 0.88), rgba(7, 11, 20, 0.7) 55%, rgba(7, 11, 20, 0.88)); }
.ait-draw .container, .ait-cta .container { position: relative; z-index: 2; }
.ait-pool-wrap { padding: 1.2rem; border: 1px solid var(--dline2); border-radius: 12px; background: rgba(7, 11, 20, 0.66); }
.ait-pool { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 5px; }
.ait-pool i { aspect-ratio: 1; border-radius: 3px; background: rgba(237, 242, 247, 0.09); transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease; }
.ait-pool i.me { background: var(--accent); box-shadow: 0 0 14px rgba(255, 176, 0, 0.6); transform: scale(1.12); }
.ait-pool i.you { background: var(--ait-blue); box-shadow: 0 0 14px rgba(74, 124, 240, 0.65); transform: scale(1.12); }
.ait-pool i.me.you { background: linear-gradient(135deg, var(--accent) 50%, var(--ait-blue) 50%); }
.ait-draw { --ait-blue: #4A7CF0; }   /* the site's blue, brightened to show on the dark band */
.ait-pool-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1.4rem; margin-top: 1.1rem; }
.ait-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem; margin: 0; padding: 0; list-style: none; color: var(--dtext); font-size: 0.92rem; }
.ait-legend .k { display: inline-block; width: 12px; height: 12px; margin-right: 0.5rem; border-radius: 3px; vertical-align: -1px; }
.ait-legend .k.me { background: var(--accent); }
.ait-legend .k.you { background: var(--ait-blue); }
.ait-legend .k.both { background: linear-gradient(135deg, var(--accent) 50%, var(--ait-blue) 50%); }
.ait-legend b { color: var(--accent); font-family: var(--font-mono); }
.ait-pool-note { margin: 0.8rem 0 0; font-size: 0.85rem; color: var(--ddim); }
.ait-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.ait-chips li { padding: 0.45rem 0.9rem; border: 1px solid var(--dline2); border-radius: 999px; background: rgba(7, 11, 20, 0.6); color: var(--dtext); font-size: 0.9rem; }
@media (max-width: 760px) { .ait-pool { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; } }

/* ---- the five steps: a line that fills as the section comes into view ---- */
.ait-tl { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.ait-tl::before, .ait-tl::after { content: ""; position: absolute; left: 22px; top: 21px; height: 2px; }
.ait-tl::before { right: 22px; background: var(--border); }
.ait-tl::after { width: 0; max-width: calc(100% - 44px); background: var(--accent); transition: width 2s cubic-bezier(0.4, 0, 0.2, 1); }
.ait-tl.on::after { width: 100%; }
.ait-tl li { position: relative; padding-top: 60px; min-width: 0; }
.ait-n { position: absolute; top: 0; left: 0; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--border); background: #fff; color: var(--text); font-weight: 600; transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease; }
.ait-tl.on li .ait-n { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.ait-tl.on li:nth-child(2) .ait-n { transition-delay: 0.4s; }
.ait-tl.on li:nth-child(3) .ait-n { transition-delay: 0.8s; }
.ait-tl.on li:nth-child(4) .ait-n { transition-delay: 1.2s; }
.ait-tl.on li:nth-child(5) .ait-n { transition-delay: 1.6s; }
.ait-tl h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.ait-tl p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
@media (max-width: 960px) {
  .ait-tl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ait-tl::before, .ait-tl::after { left: 21px; top: 22px; width: 2px; }
  .ait-tl::before { right: auto; bottom: 22px; }
  .ait-tl::after { height: 0; max-width: none; transition: height 2s cubic-bezier(0.4, 0, 0.2, 1); }
  .ait-tl.on::after { width: 2px; height: calc(100% - 44px); }
  .ait-tl li { padding: 0 0 1.7rem 66px; min-height: 44px; }
  .ait-tl li:last-child { padding-bottom: 0; }
}

/* ---- a program marks, a person decides: one photo, cut in two ---- */
.ait-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 800px) { .ait-split { grid-template-columns: minmax(0, 1fr); } }
.ait-half { display: flex; flex-direction: column; border: 1px solid var(--dline2); border-radius: 12px; overflow: hidden; background: var(--ink2); }
.ait-half-img { aspect-ratio: 16 / 9; background: var(--enterprise-soft) url(/assets/gfx/ait-robot-reaching.webp) no-repeat; background-size: 200% auto; }
.ait-machine .ait-half-img { background-position: 0% 40%; }
.ait-human .ait-half-img { background-position: 100% 60%; }
.ait-half-text { padding: 1.4rem 1.5rem 1.6rem; }
.ait-half-text .chip { background: transparent; border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.2rem 0.6rem; margin: 0 0 0.9rem; }
.ait-half-text h3 { margin: 0 0 0.5rem; }
.ait-half-text p { margin: 0 0 0.8rem; }
.ait-half-text .more { color: var(--accent); }

/* ---- the promises ---- */
.ait-promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; margin: 2.2rem 0 0; padding: 0; list-style: none; }
@media (max-width: 760px) { .ait-promises { grid-template-columns: minmax(0, 1fr); } }
.ait-promises li { position: relative; padding: 1.1rem 0 1.1rem 2.3rem; border-top: 1px solid var(--wline); }
.ait-promises li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 20px; height: 20px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.ait-promises strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--wtext); }
.ait-promises span { color: var(--wdim); font-size: 0.95rem; }

/* ---- who is answering ---- */
.ait-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .ait-who { grid-template-columns: minmax(0, 1fr); } }
.ait-who .n { color: var(--accent-dark); }
.ait-who .card h3 { margin-top: 0.6rem; }
.ait-who .card p { color: var(--text-dim); }

/* ---- reduced motion: the still versions ---- */
@media (prefers-reduced-motion: reduce) {
  .ait-draw .bg video, .ait-cta .bg video { display: none; }
  .ait-tl::after, .ait-n, .ait-pool i, .ait-opt { transition: none; }
}

/* ---- NOT LIVE YET: the recording and AI-help check (see the note above its section in ai-test.html). Kept at the end, in the same commit as the section, so a revert takes both. ---- */
.ait-person { position: relative; overflow: hidden; }
.ait-person::before { content: ""; position: absolute; right: -160px; top: 50%; width: 520px; height: 520px; margin-top: -260px; border-radius: 50%; border: 1px solid rgba(255, 176, 0, 0.28); box-shadow: 0 0 0 60px rgba(255, 176, 0, 0.04), 0 0 0 120px rgba(255, 176, 0, 0.025); pointer-events: none; }
.ait-person .container { position: relative; z-index: 1; }
.ait-person-grid { display: grid; gap: 2.4rem; }
@media (min-width: 960px) { .ait-person-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3.6rem; align-items: center; } }
.ait-say { margin: 0.4rem 0 1.2rem; font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; color: var(--accent); }
section.ink .ait-say { color: var(--accent); }
.ait-person-list { display: grid; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.ait-person-list li { padding: 1.1rem 1.3rem; border: 1px solid var(--dline2); border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.ait-person-list strong { display: block; margin-bottom: 0.25rem; color: #fff; font-family: var(--font-head); font-size: 1.05rem; }
.ait-person-list span { color: var(--ddim); font-size: 0.95rem; }

