/* ==========================================================================
   Reel 02 — "Local Signal", second cut (/resources/ai-search-huntsville-madison/). Loaded after resources.css on that page only.
   Every rule is scoped to body.ai2 or an .ai2- class. Default CSS = the final, complete, visible state.
   One-shot pre-states exist only as  @media (prefers-reduced-motion: no-preference) { html.ready .x:not(.in) … }
   (pages.js adds .in to [data-io]); JS-dependent controls start [hidden] and are shown by /ai-local.js.
   Words never hide (text may dim to .35); nothing loops. Colour meanings on this page:
   teal = your article / your business / an opportunity · amber #FFB86B = crowded or mismatched · blue #3478D4 = a limit of the claim.
   No gold here: the only gold element is the shared diagnostic button.
   ========================================================================== */

/* ---------------------------------------------------------------- 1. tokens + helpers */
.ai2 { --ai2-lab: 500 max(.7rem, 11px)/1.4 var(--mono); --ai2-amber: #FFB86B; --ai2-amber-t: #FFCF99; --ai2-blue: #3478D4;
       --ai2-blue-t: color-mix(in srgb, #3478D4 62%, #fff); --ai2-panel: #0B0D10; }
.ai2 [hidden] { display: none !important; }
.ai2-lab { display: block; max-width: none; font: var(--ai2-lab); letter-spacing: .12em; text-transform: uppercase; color: var(--text2); }
.ai2 .resg-photo figcaption { font-size: max(.66rem, 11px); }
.ai2 .resg-photo-hud { font-size: max(.6rem, 11px); }

/* ---------------------------------------------------------------- 2. compact intertitles (nine cards, less scroll) */
.ai2 .res-card { min-height: clamp(200px, 26vh, 290px); padding: 60px 32px 58px; margin-bottom: clamp(32px, 5vh, 52px); }
.ai2 .res-num::before { font-size: clamp(7rem, 15vw, 12rem); }
@media (max-width: 699px) { .ai2 .res-card { min-height: 0; padding: 60px 20px 44px; } }

/* ---------------------------------------------------------------- 3. hero: a few crowded spots vs. the questions */
.ai2-qs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ai2-qs i { position: absolute; left: var(--x); top: var(--y); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  border: 1.5px solid rgba(25, 230, 207, .9); box-shadow: 0 0 6px rgba(25, 230, 207, .45); }
@media (max-width: 559px) { .ai2-qs i { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-width: 1px; } }
.ai2-pack { position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 0; height: 0; }
.ai2-pack-ring { position: absolute; left: 0; top: 0; width: clamp(50px, 8.4vw, 78px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px dashed var(--ai2-amber); background: radial-gradient(closest-side, rgba(255, 184, 107, .12), transparent); }
.ai2-spot { position: absolute; left: var(--dx); top: var(--dy); width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px; display: grid; place-items: center;
  border-radius: 50%; background: #ECEAE4; color: #0B0D10; font: 600 11px/1 var(--mono); box-shadow: 0 0 0 2px rgba(255, 184, 107, .55), 0 0 12px rgba(255, 184, 107, .35); }
.ai2-spot::before { content: attr(data-l); content: attr(data-l) / ""; }
@media (max-width: 559px) { .ai2-spot { left: calc(var(--dx) * .8); top: calc(var(--dy) * .8); } }
.ai2-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 0; max-width: none; font: var(--ai2-lab); letter-spacing: .14em; text-transform: uppercase; color: var(--text2); }
.ai2-key span { display: inline-flex; align-items: center; gap: 10px; }
.ai2-key span::after { content: attr(data-l); content: attr(data-l) / ""; }
.ai2-key-p::before { content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px dashed var(--ai2-amber); }
.ai2-key-q::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--teal); box-shadow: 0 0 6px rgba(25, 230, 207, .45); }
.ai2-scope > .cb.br { top: 0; bottom: auto; margin-top: calc(56.25% - 22px); }   /* sits on the frame, not on the legend */
@media (min-width: 1100px) {
  .ai2-key { justify-content: flex-end; padding-right: var(--gut); }
  .ai2-scope .res-plate-hud { padding-right: calc(var(--gut) + 30px); }   /* the right label clears the corner bracket */
}
@media (prefers-reduced-motion: no-preference) { html.res-motion .ai2-key { transform: translate3d(0, calc(var(--hp, 0) * 40px), 0); } }

/* ---------------------------------------------------------------- 4. intro: the short answer as four numbered actions; companion reel */
.ai2-n { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; margin: 0 .32em 0 .04em; vertical-align: .14em;
  border: 1px solid color-mix(in srgb, var(--teal) 70%, transparent); border-radius: 50%; font: 500 max(.48em, 11px)/1 var(--mono); color: var(--teal); }
.ai2-n::before { content: attr(data-n); content: attr(data-n) / ""; }
.ai2-pair { width: min(1040px, 100% - 32px); margin: 20px auto 0; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  max-width: none; border: 1px solid var(--line); border-left: 2px solid var(--teal); background: rgba(21, 25, 31, .45); }
.ai2-pair-k::before { content: attr(data-l); content: attr(data-l) / ""; font: var(--ai2-lab); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-t); }
.ai2-pair a { font: 400 clamp(1.08rem, 1rem + .35vw, 1.25rem)/1.3 var(--serif); color: var(--text); text-decoration: underline 1px var(--teal); text-underline-offset: 3px; }
.ai2-pair a:hover { color: var(--accent-t); }
.ai2-pair-s { font: 400 .95rem/1.5 var(--sans); color: var(--text2); }

/* ---------------------------------------------------------------- 5. ch01: same question, three answers (illustration) */
.ai2-q { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 18px; max-width: none; }
.ai2-q-k { font: var(--ai2-lab); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-t); }
.ai2-q-t { font: italic 400 clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.35 var(--serif); color: var(--text); }
.ai2-cards { display: grid; gap: 14px; }
@media (min-width: 760px) { .ai2-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ai2-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; background: var(--ai2-panel);
  border: 1px solid var(--line2); border-radius: 6px; }
.ai2-card-k { max-width: none; font: var(--ai2-lab); letter-spacing: .12em; text-transform: uppercase; color: var(--text2); }
.ai2-lines { display: grid; gap: 7px; padding: 2px 0 6px; }
.ai2-lines i { display: block; height: 6px; border-radius: 3px; background: rgba(244, 243, 239, .12); }
.ai2-lines i:nth-child(1) { width: 94%; } .ai2-lines i:nth-child(2) { width: 80%; } .ai2-lines i:nth-child(3) { width: 58%; }
.ai2-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: none; }
.ai2-row-k { flex: 0 0 100%; font: var(--ai2-lab); letter-spacing: .12em; text-transform: uppercase; color: var(--text2); }
.ai2-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line2);
  background: rgba(244, 243, 239, .05); font: 500 .82rem/1.2 var(--sans); color: var(--text); }
.ai2-chip:empty { width: 40px; padding: 0; }
.ai2-chip.is-you { border-color: var(--teal); background: rgba(25, 230, 207, .12); box-shadow: 0 0 12px rgba(25, 230, 207, .22); }
.ai2-out { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 10px; max-width: none; border-top: 1px solid var(--line);
  font: 500 .92rem/1.4 var(--sans); color: var(--text); }
.ai2-out::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); transform: translateY(-1px); }
.ai2-card[data-state="none"] .ai2-out { color: var(--text2); }
.ai2-card[data-state="none"] .ai2-out::before { background: none; border: 1px solid var(--text2); box-shadow: none; }
@media (max-width: 759px) {
  .ai2-card { gap: 8px; padding: 14px; }
  .ai2-lines { display: none; }
  .ai2-row { flex-wrap: nowrap; }
  .ai2-row-k { flex: 0 0 84px; }
  .ai2-chip:empty { width: 28px; }
  .ai2-out { padding-top: 8px; }
}
.ai2-again { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.ai2-again-b, .ai2-copy { display: inline-flex; align-items: center; gap: .6em; min-height: 44px; padding: 0 18px; background: transparent; color: var(--text); cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--teal) 55%, transparent); border-radius: 0; font: var(--ai2-lab); letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s, border-color .3s; }
.ai2-again-b::before { content: '\21BB'; content: '\21BB' / ''; color: var(--teal); font-size: 1.1em; }
.ai2-again-b:hover, .ai2-again-b:focus-visible, .ai2-copy:hover, .ai2-copy:focus-visible { background: rgba(25, 230, 207, .08); border-color: var(--teal); }
.ai2-again-say, .ai2-ask-say { min-height: 1.5em; max-width: none; font: 400 .95rem/1.5 var(--sans); color: var(--text2); }
.ai2-three figcaption, .ai2-red figcaption { margin-top: 16px; max-width: none; font: 400 .92rem/1.55 var(--sans); color: var(--text2); }

/* ---------------------------------------------------------------- 6. ch02: the research trail (stats at their own stations) */
.ai2-st { position: relative; display: grid; }
.ai2-stn { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 2px 0 26px 52px; }
.ai2-stn-n { position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--teal);
  background: repeating-radial-gradient(circle, transparent 0 5px, rgba(25, 230, 207, .16) 5px 6px), var(--ai2-panel); font: 500 .8rem/1 var(--mono); color: var(--teal); }
.ai2-stn::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; border-left: 1px dashed color-mix(in srgb, var(--teal) 55%, transparent);
  transform-origin: top; transition: transform .8s var(--ease) .1s; }
.ai2-stn.is-end::before { display: none; }
.ai2-stn-t { font: 400 clamp(1.15rem, 1rem + .5vw, 1.35rem)/1.25 var(--serif); color: var(--text); }
.ai2-stat { display: grid; gap: 4px; align-self: stretch; margin-top: 4px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(25, 230, 207, .04); }
.ai2-stat b { font: 400 clamp(2.2rem, 1.6rem + 2vw, 3rem)/1 var(--serif); letter-spacing: -.02em; color: var(--teal); }
.ai2-stat-t { font: 400 .92rem/1.45 var(--sans); color: var(--ink); }
.ai2-job { padding: 5px 10px; border: 1px solid color-mix(in srgb, var(--teal) 50%, transparent); border-radius: 999px;
  font: var(--ai2-lab); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.ai2-trail-note { position: relative; margin-top: 8px; padding: 12px 0 0 18px; max-width: none; border-top: 1px solid var(--line);
  font: 400 .92rem/1.5 var(--sans); color: #A9B9CC; }
.ai2-trail-note::before { content: ''; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--ai2-blue); box-shadow: 0 0 8px var(--ai2-blue); }
@media (min-width: 900px) {
  .ai2-st { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 22px; }
  .ai2-stn { padding: 50px 0 22px; }
  .ai2-stn::before { left: 42px; right: -18px; top: 17px; bottom: auto; border-left: 0; border-top: 1px dashed color-mix(in srgb, var(--teal) 55%, transparent); transform-origin: left; }
}

/* ---------------------------------------------------------------- 7. ch03: unfold the query */
.ai2-uf { display: grid; gap: 30px; }
.ai2-uf-s { position: relative; display: grid; gap: 10px; align-content: start; }
.ai2-uf-s + .ai2-uf-s::before { content: ''; position: absolute; left: 20px; top: -24px; width: 10px; height: 10px; border-right: 1px solid var(--teal); border-bottom: 1px solid var(--teal);
  transform: rotate(45deg); }
.ai2-uf-pill { position: relative; justify-self: start; padding: 8px 16px 8px 34px; border: 1px solid var(--line2); border-radius: 999px; background: #15191F;
  font: 400 1rem/1.3 var(--sans); color: var(--text); }
.ai2-uf-pill::before { content: ''; position: absolute; left: 13px; top: 50%; width: 13px; height: 13px; transform: translateY(-50%); background: var(--text2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat; }
.ai2-uf-bubble { position: relative; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--teal) 45%, transparent); border-radius: 14px 14px 14px 3px;
  background: rgba(25, 230, 207, .06); font: italic 400 clamp(1.1rem, 1rem + .4vw, 1.25rem)/1.4 var(--serif); color: var(--text); }
.ai2-uf-page { display: grid; gap: 8px; padding: 14px 16px 16px; border: 1px solid var(--line2); border-top: 16px solid #1A1F26; background: var(--ai2-panel); }
.ai2-uf-page b { padding-bottom: 8px; border-bottom: 1px solid var(--line); font: 400 1.25rem/1.25 var(--serif); color: var(--text); }
.ai2-uf-page i { position: relative; padding-left: 16px; font: normal 400 .95rem/1.45 var(--sans); color: var(--ink); }
.ai2-uf-page i::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--teal); }
@media (min-width: 900px) {
  .ai2-uf { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 0 40px; }
  .ai2-uf-s + .ai2-uf-s::before { left: -27px; top: 50%; transform: translateY(-50%) rotate(-45deg); }
}

/* ---------------------------------------------------------------- 8. ch04: the proof sheet + the service-area route */
.ai2-proof-g { display: grid; gap: 18px; }
@media (min-width: 700px) { .ai2-proof-g { grid-template-columns: 1fr 1fr; gap: 28px; } }
.ai2-proof-h { display: block; margin-bottom: 8px; font: var(--ai2-lab); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-t); }
.ai2-proof-c li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); font: 400 1rem/1.4 var(--sans); color: var(--text); }
.ai2-proof-c li::before { content: ''; position: absolute; left: 0; top: 12px; width: 13px; height: 13px; border: 1px solid var(--text2); border-radius: 2px; }   /* empty boxes: a list to gather, not a status */
.ai2-route .ai2-remote { fill: none; stroke: var(--accent-t); stroke-width: .7; stroke-dasharray: .1 1.7; stroke-linecap: round; opacity: .9; }
.ai2-route .res2-legend .rm::before { width: 22px; height: 0; border: 0; border-top: 2px dotted var(--accent-t); border-radius: 0; }

/* ---------------------------------------------------------------- 9. ch05: spoken → written (illustration) + the filming still */
.ai2-red-g { display: grid; gap: 14px; }
.ai2-red-say { padding: 16px 18px; background: #050607; border: 1px solid var(--line); }
.ai2-red-k { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; max-width: none; font: var(--ai2-lab); letter-spacing: .14em; text-transform: uppercase; color: var(--text2); }
.ai2-wave { display: inline-flex; align-items: center; gap: 2px; height: 18px; }
.ai2-wave i { display: block; width: 2px; height: 40%; border-radius: 1px; background: var(--teal); }
.ai2-wave i:nth-child(3n+1) { height: 75%; } .ai2-wave i:nth-child(4n+2) { height: 100%; } .ai2-wave i:nth-child(5n) { height: 55%; }
.ai2-red-tx { max-width: none; font: 500 1.02rem/1.65 var(--sans); color: var(--ink); }
.ai2-red-tx s { color: var(--text2); text-decoration: line-through 2px var(--ai2-amber); }
.ai2-red-arrow { position: relative; justify-self: center; width: 1px; height: 26px; background: var(--teal); }
.ai2-red-arrow::after { content: ''; position: absolute; left: -4px; bottom: 0; width: 8px; height: 8px; border-right: 1px solid var(--teal); border-bottom: 1px solid var(--teal); transform: rotate(45deg); }
.ai2-red-page { padding: 16px 20px 20px; background: var(--ai2-panel); border: 1px solid var(--line2); border-top: 16px solid #1A1F26; }
.ai2-red-h { margin-bottom: 10px; max-width: none; font: 400 clamp(1.3rem, 1.1rem + .6vw, 1.55rem)/1.2 var(--serif); color: var(--text); }
.ai2-red-p, .ai2-red-def, .ai2-red-qual { max-width: none; font: 400 1rem/1.6 var(--sans); color: var(--ink); }
.ai2-red-def, .ai2-red-qual { margin-top: 12px; padding: 10px 12px; }
.ai2-red-def { border-left: 2px solid var(--teal); background: rgba(25, 230, 207, .06); }
.ai2-red-def b { font-weight: 600; color: var(--text); }
.ai2-red-qual { border-left: 2px solid var(--ai2-blue); background: rgba(52, 120, 212, .09); }
.ai2-red-m { display: block; margin-bottom: 6px; }
.ai2-red-m::before { content: attr(data-l); content: attr(data-l) / ""; font: var(--ai2-lab); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-t); }
@media (min-width: 900px) {
  .ai2-red-g { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.15fr); align-items: start; gap: 0 12px; }
  .ai2-red-arrow { align-self: center; width: 34px; height: 1px; }
  .ai2-red-arrow::after { left: auto; right: 0; bottom: -4px; transform: rotate(-45deg); }
}
@media (max-width: 559px) {
  .ai2-red-say, .ai2-red-page { padding: 14px 14px 16px; }
  .ai2-red-def, .ai2-red-qual { padding: 8px 10px; }
}
.ai2-photo .resg-photo-frame img { object-position: 50% 42%; }

/* ---------------------------------------------------------------- 10. ch06: across that journey (link text + details that agree) */
.ai2-jr-path { display: grid; gap: 22px; }
.ai2-jr-n { position: relative; display: grid; gap: 10px; align-content: start; padding: 14px 16px; border: 1px solid var(--line2); background: var(--ai2-panel); }
.ai2-jr-n + .ai2-jr-n::before { content: ''; position: absolute; left: 26px; top: -22px; height: 22px; border-left: 1px solid var(--teal); }
.ai2-jr-n + .ai2-jr-n::after { content: ''; position: absolute; left: 22px; top: -9px; width: 7px; height: 7px; border-right: 1px solid var(--teal); border-bottom: 1px solid var(--teal); transform: rotate(45deg); }
.ai2-jr-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ai2-jr-link s { font: 400 .95rem/1.4 var(--sans); color: var(--text2); text-decoration: line-through 1px var(--text2); }
.ai2-jr-link b { font: 500 1rem/1.4 var(--sans); color: var(--text); text-decoration: underline 1px var(--teal); text-underline-offset: 3px; }
.ai2-jr-back { display: inline-flex; align-items: center; gap: 8px; font: var(--ai2-lab); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-t); }
.ai2-jr-back::before { content: '\21A9'; content: '\21A9' / ''; font-size: 1.15em; color: var(--teal); }
.ai2-agree { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.ai2-agree-v { position: relative; display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); background: rgba(244, 243, 239, .03);
  font: 400 .98rem/1.3 var(--sans); color: var(--text); transition: border-color .6s var(--ease) .5s, background .6s var(--ease) .5s, color .6s var(--ease) .5s; }
.ai2-agree-v.is-bar i { display: block; flex: 1; max-width: 70%; height: 7px; border-radius: 4px; background: rgba(244, 243, 239, .16); }
.ai2-agree-v.is-bar::after { content: '\2713'; content: '\2713' / ''; margin-left: auto; color: var(--teal); }
.ai2-agree-v.is-off { border-color: var(--ai2-amber); background: rgba(255, 184, 107, .08); color: var(--ai2-amber-t); }
.ai2-agree-v.is-off::after { content: '\2260'; content: '\2260' / ''; margin-left: auto; font-size: 1.15em; color: var(--ai2-amber); }
@media (min-width: 900px) {
  .ai2-jr-path { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 46px; }
  .ai2-jr-n + .ai2-jr-n::before { left: -40px; top: 50%; width: 34px; height: 0; border-left: 0; border-top: 1px solid var(--teal); }
  .ai2-jr-n + .ai2-jr-n::after { left: -13px; top: calc(50% - 3.5px); transform: rotate(-45deg); }
}
@media (max-width: 559px) {
  .ai2-agree { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .ai2-agree-h:first-child { display: none; }
  .ai2-agree-k { grid-column: 1 / -1; margin-top: 8px; }
}

/* ---------------------------------------------------------------- 11. ch07: the checklist to send to your website provider (real controls) */
.ai2-ask { padding-top: 24px; }
.ai2-ask-f { min-width: 0; margin: 0; padding: 0; border: 0; }
.ai2-ask-h { padding: 0; margin-bottom: 6px; font: 400 clamp(1.4rem, 1.15rem + .9vw, 1.8rem)/1.2 var(--serif); color: var(--text); }
.ai2-ask-lede { max-width: none; margin-bottom: 12px; font: 400 .95rem/1.55 var(--sans); color: var(--text2); }
.ai2-ask-l li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); }
.ai2-ask-l li.is-sep { margin-top: 10px; padding-top: 34px; border-top: 1px dashed var(--line2); }
.ai2-ask-sep { position: absolute; left: 38px; top: 10px; }
.ai2-ask-sep::before { content: attr(data-l); content: attr(data-l) / ""; font: var(--ai2-lab); letter-spacing: .14em; text-transform: uppercase; color: #A9B9CC; }
.ai2-ask-l input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal); cursor: pointer; }
.ai2-ask-l label { min-height: 26px; font: 400 1rem/1.5 var(--sans); color: var(--text); cursor: pointer; }
.ai2-ask-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.ai2-copy::before { content: ''; flex: none; margin-right: 4px; width: 12px; height: 14px; border: 1px solid var(--teal); border-radius: 2px; box-shadow: 3px -3px 0 -1px #0F1217, 3px -3px 0 0 var(--teal); }
.ai2-ask-more { margin-top: 6px; max-width: none; }

/* ---------------------------------------------------------------- 12. ch08: the example log (one question, three checks) + the path referral data cannot see */
.ai2-log-q { margin-bottom: 10px; }
.ai2-log-t { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.ai2-log-t th, .ai2-log-t td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.ai2-log-t tbody tr:last-child > * { border-bottom: 0; }
.ai2-log-t thead th { padding-top: 8px; border-bottom-color: var(--line2); font: var(--ai2-lab); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-t); }
.ai2-log-t thead th:first-child { width: 34%; }
.ai2-log-t thead th:nth-child(2) { width: 18%; }
.ai2-log-t thead th:nth-child(3) { width: 20%; }
.ai2-log-t tbody th { font: 500 .95rem/1.35 var(--sans); color: var(--text); }
.ai2-log-t td { font: 400 .95rem/1.35 var(--sans); color: var(--ink); }
.ai2-yes::before, .ai2-no::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; vertical-align: .05em; }
.ai2-yes::before { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.ai2-no::before { border: 1px solid var(--text2); }
@media (max-width: 559px) {
  .ai2-log-t th, .ai2-log-t td { padding: 10px 4px; }
  .ai2-log-t thead th { letter-spacing: .04em; }
  .ai2-log-t tbody th, .ai2-log-t td { font-size: .88rem; }
  .ai2-yes::before, .ai2-no::before { margin-right: 5px; }
}
.ai2-hp-l { display: grid; gap: 22px; }
.ai2-hp-n { position: relative; padding: 12px 14px; border: 1px solid var(--line2); background: var(--ai2-panel); }
.ai2-hp-n b { font: 400 1.08rem/1.3 var(--serif); color: var(--text); }
.ai2-hp-n.is-unseen { border-style: dashed; }
.ai2-hp-n + .ai2-hp-n::before { content: ''; position: absolute; left: 24px; top: -22px; height: 22px; border-left: 1px solid var(--teal); }
.ai2-hp-n:nth-child(2)::before { border-left-style: dashed; border-left-color: var(--text2); }   /* the hop referral data may not see */
.ai2-hp-ask { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 14px; max-width: none; border: 1px solid color-mix(in srgb, var(--teal) 50%, transparent);
  border-radius: 14px 14px 14px 3px; font: 400 1rem/1.4 var(--sans); color: var(--text); }
.ai2-hp-ask::before { content: '?'; content: '?' / ''; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--teal); font: 500 11px/1 var(--mono); color: var(--teal); }
@media (min-width: 760px) {
  .ai2-hp-l { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 34px; }
  .ai2-hp-n + .ai2-hp-n::before { left: -30px; top: 50%; width: 26px; height: 0; border-left: 0; border-top: 1px solid var(--teal); }
  .ai2-hp-n:nth-child(2)::before { border-top-style: dashed; border-top-color: var(--text2); }
}

/* ---------------------------------------------------------------- 13. ch09: this week */
.ai2-wk-l { display: grid; }
.ai2-wk-l li { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ai2-wk-l li:first-child { border-top: 0; }
.ai2-g { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--teal) 55%, transparent); }
.ai2-g::before { content: ''; width: 16px; height: 16px; background: var(--teal); -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }
.ai2-wk-l span { font: 400 1rem/1.4 var(--sans); color: var(--text); }
.ai2-g[data-g="q"] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M5.6 5.8a2.5 2.5 0 1 1 3.6 2.2c-.8.4-1.2.9-1.2 1.8'/%3E%3Ccircle cx='8' cy='12.6' r='.4' fill='%23000'/%3E%3C/svg%3E"); }
.ai2-g[data-g="rec"] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'%3E%3Crect x='5.6' y='1.8' width='4.8' height='8' rx='2.4'/%3E%3Cpath d='M3.4 8a4.6 4.6 0 0 0 9.2 0M8 12.6v2'/%3E%3C/svg%3E"); }
.ai2-g[data-g="ex"] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='12' height='10' rx='1'/%3E%3Cpath d='M2.6 11.4 6 8l2.4 2.4 1.6-1.6 3.4 3.2'/%3E%3Ccircle cx='10.6' cy='6' r='1'/%3E%3C/svg%3E"); }
.ai2-g[data-g="page"] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M4 1.8h5.4L12.4 5v9.2H4z'/%3E%3Cpath d='M6.2 7h4M6.2 9.4h4M6.2 11.8h2.6'/%3E%3C/svg%3E"); }
.ai2-g[data-g="share"] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.4' y='1.8' width='7.2' height='12.4' rx='1.4'/%3E%3Cpath d='M6.8 11.8h2.4'/%3E%3C/svg%3E"); }
@media (min-width: 900px) {
  .ai2-wk-l { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 18px; }
  .ai2-wk-l li { grid-template-columns: 1fr; align-content: start; align-items: start; padding: 0; border-top: 0; }
  .ai2-wk-l li + li::before { content: ''; position: absolute; left: -14px; top: 19px; width: 10px; height: 1px; background: var(--teal); }
}

/* ---------------------------------------------------------------- 14. one-shot reveals (decoration only; text dims, never hides) */
@media (prefers-reduced-motion: no-preference) {
  /* hero: keyed to the plate's own .in, so on phones the questions ping when the plate is seen */
  .ai2-pack { transition: opacity .9s var(--ease) .45s; }
  html.ready.res-motion .ai2-scope:not(.in) .ai2-pack { opacity: 0; }
  html.ready.res-motion .ai2-scope:not(.in) .ai2-qs i { opacity: 0; }
  html.ready.res-motion .ai2-scope.in .ai2-qs i { animation: ai2Ping 1.1s var(--ease) calc(1.25s + var(--b) * 2.4s / 360) both; }
  /* ch01 */
  .ai2-card { transition: opacity .7s var(--ease) calc(var(--k, 0) * .2s + .15s), transform .7s var(--ease) calc(var(--k, 0) * .2s + .15s); }
  html.ready .ai2-three:not(.in) .ai2-card { opacity: .35; transform: translateY(10px); }
  .ai2-card.is-run .ai2-lines i { animation: ai2Shimmer .6s var(--ease) both; }
  /* ch02 */
  .ai2-stn > :not(.ai2-stn-n) { transition: opacity .7s var(--ease) .15s; }
  html.ready .ai2-stn:not(.in) > :not(.ai2-stn-n) { opacity: .35; }
  html.ready .ai2-stn:not(.in)::before { transform: scaleY(0); }
  /* ch03 */
  .ai2-uf-s { transition: opacity .7s var(--ease) calc(var(--k, 0) * .15s), transform .7s var(--ease) calc(var(--k, 0) * .15s); }
  html.ready .ai2-uf-s:not(.in) { opacity: .35; transform: translateY(8px); }
  /* ch04 */
  .ai2-proof-c li { transition: opacity .6s var(--ease); }
  html.ready .ai2-proof-c:not(.in) li { opacity: .35; }
  .ai2-proof-c li:nth-child(2) { transition-delay: .12s; } .ai2-proof-c li:nth-child(3) { transition-delay: .24s; } .ai2-proof-c li:nth-child(4) { transition-delay: .36s; } .ai2-proof-c li:nth-child(5) { transition-delay: .48s; }
  .ai2-route .ai2-remote { transition: opacity .8s var(--ease) 1.2s; }
  html.ready .ai2-route:not(.in) .ai2-remote { opacity: 0; }
  /* ch05: the strike-throughs draw in, then the page side brightens */
  .ai2-red-tx s { transition: text-decoration-color .6s var(--ease) .5s, color .6s var(--ease) .5s; }
  html.ready .ai2-red:not(.in) .ai2-red-tx s { text-decoration-color: transparent; color: var(--ink); }
  .ai2-red-def, .ai2-red-qual { transition: opacity .7s var(--ease) 1s; }
  html.ready .ai2-red:not(.in) .ai2-red-def, html.ready .ai2-red:not(.in) .ai2-red-qual { opacity: .35; }
  /* ch06 */
  .ai2-jr-n { transition: opacity .7s var(--ease) calc(var(--k, 0) * .18s); }
  html.ready .ai2-jr-n:not(.in) { opacity: .35; }
  html.ready .ai2-agree:not(.in) .ai2-agree-v.is-off { border-color: var(--line); background: rgba(244, 243, 239, .03); color: var(--text); }
  /* ch08 */
  .ai2-log-t tbody tr { transition: opacity .6s var(--ease) calc(var(--k, 0) * .15s + .2s); }
  html.ready .ai2-log:not(.in) tbody tr { opacity: .35; }
  .ai2-hp-n { transition: opacity .7s var(--ease) calc(var(--k, 0) * .15s); }
  html.ready .ai2-hp-n:not(.in) { opacity: .35; }
  /* ch09 */
  .ai2-wk-l li { transition: opacity .6s var(--ease) calc(var(--k, 0) * .12s), transform .6s var(--ease) calc(var(--k, 0) * .12s); }
  html.ready .ai2-wk-l li:not(.in) { opacity: .35; transform: translateY(8px); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  html.ready .ai2-stn:not(.in)::before { transform: scaleX(0); }
}
@keyframes ai2Ping { 0% { opacity: 0; transform: scale(.3); } 22% { opacity: 1; transform: scale(1.7); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ai2Shimmer { 0% { opacity: .2; transform: scaleX(.4); transform-origin: left; } 100% { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- 15. reduced motion (belt and braces) */
@media (prefers-reduced-motion: reduce) {
  .ai2 [class*="ai2-"], .ai2 [class*="ai2-"]::before, .ai2 [class*="ai2-"]::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- 16. forced colours */
@media (forced-colors: active) {
  .ai2-chip.is-you, .ai2-agree-v.is-off { border-width: 2px; }
  .ai2-agree-v.is-off { border-style: dashed; }
  .ai2-n, .ai2-stn-n, .ai2-g { border-color: CanvasText; }
  .ai2-yes::before { forced-color-adjust: none; background: Highlight; }
}

/* ---------------------------------------------------------------- 17. print */
@media print {
  .ai2-key, .ai2-pair-k, .ai2-n, .ai2-trail, .ai2-unfold, .ai2-proof, .ai2-jr, .ai2-hp, .ai2-wk, .ai2-again, .ai2-ask-acts, .ai2-lines, .ai2-wave,
  .ai2-red-arrow, .ai2-ask-more { display: none !important; }
  .ai2-pair, .ai2-three, .ai2-red, .ai2-ask, .ai2-log { width: auto; margin-inline: 0; background: none !important; border-color: #999 !important; }
  .ai2-card, .ai2-red-say, .ai2-red-page { background: none !important; border-color: #999 !important; break-inside: avoid; }
  .ai2-q-t, .ai2-out, .ai2-chip, .ai2-red-tx, .ai2-red-h, .ai2-red-p, .ai2-red-def, .ai2-red-qual, .ai2-ask-h, .ai2-ask-l label, .ai2-log-t th, .ai2-log-t td,
  .ai2-three figcaption, .ai2-red figcaption, .ai2-pair a, .ai2-pair-s { color: #000 !important; }
  .ai2-chip.is-you { border: 2px solid #000 !important; box-shadow: none; }
}
