/* ══════════════════════════════════════════════════════════════════
   Cas d'estudi · AYUDOC
   ------------------------------------------------------------------
   Scoped stylesheet for casos/ayudoc.html. Everything is namespaced
   `--ay-*` / `.ay-*` so nothing leaks into site.css. The Punt Zero
   chrome (nav + footer) keeps its own tokens and fonts; only the case
   study body adopts the product's visual identity.

   Palette lifted from the live product
   (ayudoc.observatoriodelaaccesibilidad.es) and COCEMFE:
     #003865 deep blue · #005F88 mid blue · #F28C00 orange · #F1F6F9 paper
   Each analysis has its own colour, used the same way everywhere:
     accessibility → orange · language → magenta · images → teal
   Typeface: Atkinson Hyperlegible Next, drawn by the Braille Institute
   for readers with low vision. Body copy runs at 1.62 line height and
   every text colour clears 7:1 against its background: the page's own
   self-audit (section 08) measures both in the browser.
   ══════════════════════════════════════════════════════════════════ */

:root {
  --ay-blue:       #003865;
  --ay-blue-mid:   #005F88;
  --ay-blue-deep:  #002340;
  --ay-orange:     #F28C00;
  --ay-orange-txt: #7A4200;   /* 7.4:1 on paper */
  --ay-paper:      #F1F6F9;
  --ay-white:      #FFFFFF;
  --ay-ink:        #1C2329;   /* 14:1 on paper */
  --ay-smoke:      #3E4A54;   /* 8.4:1 on paper */
  --ay-on-dark:    #E8F0F5;
  --ay-on-dark-2:  #C3D3DF;   /* 8.7:1 on deep blue */

  /* The three analyses */
  --ay-acc:        #F28C00;
  --ay-acc-ink:    #1F1300;
  --ay-lang:       #A3175A;
  --ay-lang-lt:    #F58CC0;   /* on deep blue */
  --ay-img:        #0E6E70;
  --ay-img-lt:     #5DD8C4;   /* on deep blue */

  /* WCAG levels, as the product colours them */
  --ay-lv-a:       #E5484D;
  --ay-lv-aa:      #F28C8C;
  --ay-lv-aaa:     #F5D06A;

  --ay-ok:         #12704E;   /* 6.0:1 on paper */
  --ay-mint:       #5DD8A8;
  --ay-err:        #B3261E;

  --ay-line:       rgba(0, 56, 101, .16);
  --ay-line-soft:  rgba(0, 56, 101, .08);
  --ay-line-light: rgba(232, 240, 245, .2);

  --ay-font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible",
             system-ui, -apple-system, sans-serif;

  --ay-wrap: 1180px;
  --ay-wrap-wide: 1360px;
  --ay-pad:  clamp(16px, 4vw, 64px);
  --ay-ease: cubic-bezier(.16, 1, .3, 1);
  --ay-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ay-nav-h: 72px;
}

/* ── Base ─────────────────────────────────────────────────────────── */

.ay {
  background: var(--ay-paper);
  color: var(--ay-ink);
  font-family: var(--ay-font);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.62;
  overflow-x: clip;
}
.ay *, .ay *::before, .ay *::after { box-sizing: border-box; }
.ay [hidden] { display: none !important; }
.ay p { margin: 0; }
.ay ul, .ay ol { margin: 0; padding: 0; list-style: none; }
:where(.ay) button { font: inherit; color: inherit; }
.ay q { quotes: "«" "»"; }

.ay-wrap {
  width: 100%;
  max-width: var(--ay-wrap);
  margin-inline: auto;
  padding-inline: var(--ay-pad);
}
.ay-wrap--wide { max-width: var(--ay-wrap-wide); }

.ay-sec { padding-block: clamp(76px, 9.5vw, 140px); position: relative; }
.ay-sec--paper { background: var(--ay-paper); }
.ay-sec--deep  { background: var(--ay-blue); color: var(--ay-on-dark); }
.ay-sec--ink   { background: var(--ay-blue-deep); color: var(--ay-on-dark); }
.ay-sec--close { background: var(--ay-white); }

.ay-sr {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.ay-skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ay-orange); color: var(--ay-acc-ink);
  font: 700 15px/1 var(--ay-font); text-decoration: none;
  transition: top .2s var(--ay-ease);
}
.ay-skip:focus { top: 12px; }

/* Two tones, so the ring clears 3:1 on paper and on deep blue alike. */
.ay :focus-visible {
  outline: 3px solid var(--ay-blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--ay-orange);
  border-radius: 6px;
}

/* ── Type scale ───────────────────────────────────────────────────── */

.ay-kicker {
  font-family: var(--pz-font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ay-blue-mid);
  margin: 0 0 18px;
}
.ay-kicker--light { color: var(--ay-orange); }

.ay-h2 {
  font-family: var(--ay-font);
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -.025em;
  color: var(--ay-blue);
  margin: 0 0 clamp(22px, 3vw, 36px);
  max-width: 17ch;
  text-wrap: balance;
}
.ay-h2 em { font-style: normal; color: var(--ay-orange-txt); }
.ay-h2--light { color: var(--ay-white); }
.ay-h2--light em { color: var(--ay-orange); }

.ay-h3 {
  font-weight: 700;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.2;
  color: var(--ay-blue);
  margin: 0 0 18px;
}

.ay-lead {
  font-size: clamp(19px, 1.75vw, 24px);
  line-height: 1.55;
  max-width: 54ch;
  color: var(--ay-on-dark-2);
  margin-bottom: clamp(34px, 5vw, 64px);
}
.ay-lead--dark { color: var(--ay-smoke); }

.ay-p { max-width: 62ch; color: var(--ay-smoke); }
.ay-p + .ay-p { margin-top: 1.1em; }
.ay-p strong { color: var(--ay-ink); }
.ay-p--light { color: var(--ay-on-dark-2); }
.ay-p--light strong { color: var(--ay-white); }

.ay-mark {
  background: linear-gradient(transparent 58%, rgba(242, 140, 0, .55) 58%);
  color: var(--ay-white);
  padding-inline: 2px;
}

/* ── Buttons ──────────────────────────────────────────────────────── */

.ay-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 17px/1 var(--ay-font);
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ay-spring), background .25s, color .25s, border-color .25s;
}
.ay-btn svg { width: 18px; height: 18px; }
.ay-btn:hover { transform: translateY(-2px); }
.ay-btn--orange { background: var(--ay-orange); color: var(--ay-acc-ink); }
.ay-btn--orange:hover { background: #FFA42E; }
.ay-btn--line { border-color: rgba(232, 240, 245, .55); color: var(--ay-white); }
.ay-btn--line:hover { border-color: var(--ay-white); }
.ay-btn--solid { background: var(--ay-blue); color: var(--ay-white); }
.ay-btn--solid:hover { background: var(--ay-blue-mid); }
.ay-btn--ghost { border-color: var(--ay-line); color: var(--ay-blue); }
.ay-btn--ghost:hover { border-color: var(--ay-blue); }

/* ══ Hero ═════════════════════════════════════════════════════════ */

.ay-hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(0, 95, 136, .55), transparent 60%),
    var(--ay-blue);
  color: var(--ay-on-dark);
  padding-block: calc(var(--ay-nav-h) + clamp(40px, 7vh, 90px)) clamp(70px, 9vw, 120px);
  overflow: hidden;
}
.ay-hero::before {
  /* faint document ruling: a page waiting to be read */
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(transparent 0 37px, rgba(232, 240, 245, .05) 37px 38px);
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  pointer-events: none;
}
.ay-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.ay-hero__title {
  font-family: var(--ay-font);
  font-weight: 800;
  font-size: clamp(56px, 7.4vw, 112px);
  line-height: .9;
  letter-spacing: -.045em;
  color: var(--ay-white);
  margin: 0 0 clamp(18px, 2.4vw, 30px);
}
.ay-hero__claim {
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.45;
  color: var(--ay-on-dark);
  max-width: 30ch;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.ay-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 0 0 clamp(28px, 3.5vw, 40px);
  max-width: 520px;
}
.ay-meta__row { border-top: 1px solid var(--ay-line-light); padding-top: 10px; }
.ay-meta dt {
  font-family: var(--pz-font-mono);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ay-on-dark-2);
}
.ay-meta dd { margin: 4px 0 0; font-weight: 700; color: var(--ay-white); font-size: 17px; }
.ay-hero__acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Hero flow · upload → analyse → card ─────────────────────────── */

.ay-flow { margin: 0; }
.ay-flow__app {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas:
    "top  top"
    "warn warn"
    "drop doc"
    "card doc";
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: var(--ay-paper);
  color: var(--ay-ink);
  box-shadow: 0 40px 80px rgba(0, 20, 40, .45), 0 0 0 1px rgba(255, 255, 255, .08);
  font-size: 13px;
  line-height: 1.35;
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
}
.ay-flow__top {
  grid-area: top;
  display: flex; align-items: center; gap: 12px;
  padding: 2px 4px 6px;
  border-bottom: 1px solid var(--ay-line-soft);
}
.ay-flow__brand { font-weight: 800; color: var(--ay-blue); letter-spacing: .02em; }
.ay-flow__crumb {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  background: #DCE8F0; color: var(--ay-blue);
}
.ay-flow__warn {
  grid-area: warn;
  padding: 7px 10px;
  border-radius: 8px;
  background: #FFF4D6;
  border: 1px solid #F2D58A;
  color: #4A3500;
  font-size: 11.5px;
}
.ay-flow__drop {
  grid-area: drop;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 176px;
  padding: 14px 10px 18px;
  border: 2px dashed rgba(0, 95, 136, .35);
  border-radius: 14px;
  background: var(--ay-white);
  text-align: center;
  overflow: hidden;
  transition: border-color .4s, background .4s;
}
.ay-flow__file {
  width: 34px; height: 42px; color: var(--ay-blue);
  transition: transform .9s var(--ay-ease), opacity .4s;
}
.ay-flow__file svg { width: 100%; height: 100%; }
.ay-flow__drop-t { font-weight: 700; color: var(--ay-blue); font-size: 13px; }
.ay-flow__checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.ay-flow__check {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px 3px 4px;
  border: 1px solid var(--ay-line);
  border-radius: 6px;
  font-size: 11px;
  color: var(--ay-smoke);
  transition: border-color .3s, color .3s;
}
.ay-flow__check i {
  width: 13px; height: 13px; border-radius: 3px;
  border: 1.6px solid var(--ay-blue-mid);
  position: relative;
  transition: background .25s;
}
.ay-flow__check i::after {
  content: ""; position: absolute; left: 3.5px; top: .5px;
  width: 3.5px; height: 7px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .3s var(--ay-spring);
}
.ay-flow__check.is-on { color: var(--ay-ink); border-color: var(--ay-blue-mid); }
.ay-flow__check.is-on i { background: var(--ay-blue-mid); }
.ay-flow__check.is-on i::after { transform: rotate(45deg) scale(1); }

.ay-flow__state {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .94);
  font-weight: 700; color: var(--ay-blue); font-size: 14px;
  opacity: 0; transition: opacity .35s;
}
.ay-flow__state > span { grid-area: 1 / 1; opacity: 0; transition: opacity .3s; }
.ay-flow__prog {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  height: 5px; border-radius: 5px; background: var(--ay-line-soft);
  overflow: hidden; opacity: 0; transition: opacity .3s;
}
.ay-flow__prog span {
  display: block; height: 100%; width: 100%;
  background: var(--ay-blue-mid);
  transform-origin: left; transform: scaleX(0);
}

.ay-flow__doc {
  grid-area: doc;
  position: relative;
  border-radius: 12px;
  background: var(--ay-white);
  box-shadow: 0 0 0 1px var(--ay-line-soft), 0 10px 24px rgba(0, 56, 101, .08);
  overflow: hidden;
  min-height: 300px;
}
.ay-flow__page {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 9px;
  padding: 10% 10%;
}
.ay-flow__page .l { display: block; height: 7px; border-radius: 4px; background: #C9D6DF; }
.ay-flow__page .l--h { height: 13px; width: 70%; background: var(--ay-blue); margin-bottom: 4px; }
.ay-flow__page .l--g { width: 56%; background: #E1E7EB; }
.ay-flow__page .l--s { width: 62%; }
.ay-flow__page .l--w { width: 88%; }
.ay-flow__page .ph {
  display: block; height: 22%; width: 45%; margin-block: 6px;
  border-radius: 8px; background: linear-gradient(135deg, #CFE0EA, #E6EEF3);
}
.ay-flow__beam {
  position: absolute; left: 0; right: 0; top: 0; height: 18%;
  opacity: 0;
  background: linear-gradient(180deg, transparent, var(--c) 92%, transparent);
  mix-blend-mode: multiply;
}
.ay-flow__beam::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8%;
  height: 2px; background: var(--c); box-shadow: 0 0 12px var(--c);
}
.ay-flow__beam[data-lens="acc"]  { --c: rgba(242, 140, 0, .45); }
.ay-flow__beam[data-lens="lang"] { --c: rgba(163, 23, 90, .35); }
.ay-flow__beam[data-lens="img"]  { --c: rgba(14, 110, 112, .4); }
.ay-flow__beam.is-run { animation: ay-beam 1.5s var(--ay-ease) forwards; }
@keyframes ay-beam {
  0%   { opacity: 0; transform: translateY(-100%); }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(560%); }
}
.ay-flow__pin {
  position: absolute;
  left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border: 2px solid var(--c);
  border-radius: 5px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  opacity: 0; transform: scale(.9);
  transition: opacity .35s, transform .45s var(--ay-spring);
}
.ay-flow__pin[data-lens="acc"]  { --c: var(--ay-acc); }
.ay-flow__pin[data-lens="lang"] { --c: var(--ay-lang); }
.ay-flow__pin[data-lens="img"]  { --c: var(--ay-img); }
.ay-flow__pin.is-on { opacity: 1; transform: none; }

.ay-flow__card {
  grid-area: card;
  display: grid; gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ay-white);
  box-shadow: 0 0 0 1px var(--ay-line-soft), 0 12px 26px rgba(0, 56, 101, .1);
  opacity: .35;
  transform: translateY(6px);
  transition: opacity .5s, transform .6s var(--ay-ease), box-shadow .5s;
}
.ay-flow__date { font-size: 11px; color: var(--ay-smoke); }
.ay-flow__name { font-weight: 800; color: var(--ay-blue); font-size: 13px; word-break: break-all; }
.ay-flow__counts { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.ay-flow__count { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; }
.ay-flow__count b {
  display: grid; place-items: center;
  min-width: 30px; height: 30px; border-radius: 50%;
  font-size: 13px; font-variant-numeric: tabular-nums;
}
.ay-flow__count[data-lens="acc"] b  { background: #F9C6B8; color: #5A1A00; }
.ay-flow__count[data-lens="lang"] b { background: #F7D9A8; color: #4A2D00; }
.ay-flow__count[data-lens="img"] b  { background: #BFE6DA; color: #0B3D33; }
.ay-flow__more { font-size: 12px; font-weight: 700; color: var(--ay-orange-txt); text-decoration: underline; text-underline-offset: 3px; }

/* phases, set by JS on .ay-flow (default = finished, for no-JS / reduced) */
.ay-flow[data-phase="checks"] .ay-flow__card,
.ay-flow[data-phase="upload"] .ay-flow__card,
.ay-flow[data-phase="analyze"] .ay-flow__card { opacity: .35; }
.ay-flow[data-phase="upload"] .ay-flow__drop,
.ay-flow[data-phase="analyze"] .ay-flow__drop { border-color: var(--ay-blue-mid); background: #F4F9FC; }
.ay-flow[data-phase="upload"] .ay-flow__state,
.ay-flow[data-phase="analyze"] .ay-flow__state { opacity: 1; }
.ay-flow[data-phase="upload"] .ay-flow__state-up,
.ay-flow[data-phase="analyze"] .ay-flow__state-an { opacity: 1; }
.ay-flow[data-phase="upload"] .ay-flow__prog { opacity: 1; }
.ay-flow[data-phase="upload"] .ay-flow__prog span { transform: scaleX(1); transition: transform 1.6s cubic-bezier(.4, 0, .2, 1); }
.ay-flow[data-phase="analyze"] .ay-flow__state-an { animation: ay-pulse 1.2s ease-in-out infinite; }
.ay-flow[data-phase="done"] .ay-flow__card,
.ay-flow:not([data-phase]) .ay-flow__card {
  opacity: 1; transform: none;
  box-shadow: 0 0 0 2px var(--ay-orange), 0 16px 32px rgba(0, 56, 101, .16);
}
.ay-flow:not([data-phase]) .ay-flow__pin { opacity: 1; transform: none; }
.ay-flow:not([data-phase]) .ay-flow__check i { background: var(--ay-blue-mid); }
.ay-flow:not([data-phase]) .ay-flow__check i::after { transform: rotate(45deg) scale(1); }
@keyframes ay-pulse { 50% { opacity: .45; } }

.ay-flow__cap {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--ay-on-dark-2);
  max-width: 56ch;
}

@media (max-width: 980px) {
  .ay-hero__grid { grid-template-columns: 1fr; }
  .ay-flow__app { transform: none; }
}
@media (max-width: 520px) {
  .ay-flow__app {
    grid-template-columns: 1fr;
    grid-template-areas: "top" "warn" "drop" "card" "doc";
  }
  .ay-flow__doc { min-height: 240px; }
  .ay-meta { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
}

/* ══ Client ═══════════════════════════════════════════════════════ */

.ay-client { background: var(--ay-white); padding-block: clamp(56px, 7vw, 96px); }
.ay-client__inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.ay-client__logo { width: min(320px, 100%); height: auto; display: block; }
.ay-client__full { margin-top: 16px; color: var(--ay-smoke); font-size: 16px; max-width: 34ch; }
.ay-client__desc { color: var(--ay-smoke); max-width: 58ch; }
.ay-client__figs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; margin: 28px 0;
}
.ay-client__figs li { border-top: 3px solid var(--ay-orange); padding-top: 12px; }
.ay-client__figs b { display: block; font-size: clamp(28px, 3.2vw, 40px); line-height: 1; color: var(--ay-blue); font-weight: 800; }
.ay-client__figs span { display: block; margin-top: 6px; font-size: 15px; color: var(--ay-smoke); line-height: 1.4; }
.ay-client__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--ay-blue); text-underline-offset: 4px;
}
.ay-client__link svg { width: 16px; height: 16px; }
@media (max-width: 820px) {
  .ay-client__inner { grid-template-columns: 1fr; }
  .ay-client__figs { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
}

/* ══ 01 · Challenge ═══════════════════════════════════════════════ */

.ay-h2 em { font-style: normal; }
.ay-repte {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.ay-quote {
  margin: clamp(52px, 7vw, 96px) 0 0;
  padding-left: clamp(18px, 2.4vw, 32px);
  border-left: 4px solid var(--ay-orange);
  max-width: 34ch;
}
.ay-quote p {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.3; font-weight: 700;
  color: var(--ay-blue);
  text-wrap: balance;
}
@media (max-width: 900px) { .ay-repte { grid-template-columns: 1fr; } }

/* ══ The sample document (shared by scenes 02, 03 and the viewer) ══ */

.ay-doc {
  position: relative;
  background: var(--ay-white);
  color: #1F2A33;
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0, 20, 40, .35), 0 0 0 1px rgba(0, 56, 101, .08);
  font-family: "Helvetica Neue", Arial, sans-serif;
  container-type: inline-size;
}
.ay-doc__chrome {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #E3EAEF;
  background: #F6F9FB;
  border-radius: 10px 10px 0 0;
  font: 600 12.5px/1.2 var(--ay-font);
  color: var(--ay-smoke);
}
.ay-doc__file { position: relative; display: inline-grid; }
.ay-doc__file > span { grid-area: 1 / 1; transition: opacity .4s; }
.ay-doc__page { padding: 7cqi 7cqi 8cqi; }
.ay-doc__eyebrow {
  font-size: max(11px, 2.6cqi);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.6cqi;
}
.ay-doc__eyebrow--weak { color: #B5B5B5; }   /* 2.05:1 — the finding */
.ay-doc__h {
  font-size: max(18px, 5.4cqi);
  line-height: 1.12;
  font-weight: 800;
  color: #003865;
  margin: 0 0 3cqi;
  letter-spacing: -.01em;
}
.ay-doc__p {
  font-size: max(12px, 3.05cqi);
  line-height: 1.5;
  color: #2B3640;
}
.ay-doc__p--tight { line-height: 1.19; }      /* the finding */
.ay-doc__fig { display: flex; align-items: center; gap: 4cqi; margin: 4cqi 0; }
.ay-doc__img { width: 62%; height: auto; display: block; border-radius: 8px; }
.ay-doc__icon { width: 15%; height: auto; display: block; }
.ay-doc__q { border-radius: 3px; }

.ay-hit {
  position: absolute;
  left: var(--x); top: calc(var(--y) + 38px); width: var(--w); height: var(--h);
  border: 2.5px solid var(--c);
  border-radius: 6px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  opacity: 0;
  transform: scale(.94);
  transition: opacity .4s var(--ay-ease), transform .5s var(--ay-spring);
  pointer-events: none;
}
.ay-hit[data-lens="acc"]  { --c: var(--ay-acc);  --t: var(--ay-acc-ink); }
.ay-hit[data-lens="lang"] { --c: var(--ay-lang); --t: #fff; }
.ay-hit[data-lens="img"]  { --c: var(--ay-img);  --t: #fff; }
.ay-hit__tag {
  position: absolute;
  left: -2px; bottom: calc(100% + 4px);
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--c);
  color: var(--t);
  font: 700 12px/1.2 var(--ay-font);
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}
.ay-hit--top .ay-hit__tag { bottom: auto; top: calc(100% + 4px); }
.ay-hit--right .ay-hit__tag { left: auto; right: -2px; }
.ay-hit--side .ay-hit__tag { left: calc(100% + 6px); bottom: auto; top: 50%; transform: translateY(-50%); }

/* ══ 01 · The loupe (perception simulator) ═══════════════════════ */

.ay-loupe {
  margin: 0;
  padding: clamp(14px, 2vw, 22px);
  border-radius: 22px;
  background: var(--ay-white);
  box-shadow: 0 0 0 1px var(--ay-line-soft), 0 24px 48px rgba(0, 56, 101, .08);
}
.ay-loupe__row { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 14px; align-items: start; }
.ay-loupe__dock { display: grid; gap: 10px; }
.ay-lupa {
  --c: var(--ay-blue);
  position: relative;
  display: grid; justify-items: center; gap: 6px;
  padding: 8px 4px 10px;
  border: 0; border-radius: 14px;
  background: transparent;
  cursor: pointer;
  transition: background .25s, transform .4s var(--ay-spring);
}
.ay-lupa[data-mode="sr"] { --c: #0E6E70; }
.ay-lupa[data-mode="crowd"] { --c: #A3175A; }
.ay-lupa:hover { background: var(--ay-paper); }
.ay-lupa__ring {
  position: relative;
  width: 52px; height: 52px; border-radius: 50%;
  border: 4px solid var(--c);
  display: grid; place-items: center;
  color: var(--c);
  background: var(--ay-white);
  transition: transform .45s var(--ay-spring), opacity .3s;
}
.ay-lupa__ring::after {
  content: ""; position: absolute; right: -12px; bottom: -8px;
  width: 18px; height: 6px; border-radius: 3px; background: var(--c);
  transform: rotate(45deg);
}
.ay-lupa__ring svg { width: 24px; height: 24px; }
.ay-lupa__k {
  position: absolute; top: 4px; left: 8px;
  font: 700 11px/1 var(--pz-font-mono); color: var(--ay-smoke);
}
.ay-lupa__t { font-weight: 700; font-size: 12.5px; line-height: 1.2; color: var(--ay-ink); text-align: center; }
/* the lens in use has left the dock: an empty seat stays behind */
.ay-lupa[aria-pressed="true"] .ay-lupa__ring { transform: scale(.7); opacity: .28; border-style: dashed; }
.ay-lupa[aria-pressed="true"] .ay-lupa__t { color: var(--c); }
.ay-loupe__stage {
  position: relative;
  --lx: 50%; --ly: 42%; --r: 0px;
  cursor: none;
  touch-action: pan-y;
}
.ay-loupe__stage .ay-doc { box-shadow: 0 0 0 1px var(--ay-line-soft); }
.ay-loupe__base .ay-doc__page,
.ay-loupe__lens .ay-doc__page { padding: 6cqi 6cqi 7cqi; }
.ay-loupe__lens {
  position: absolute; inset: 0;
  clip-path: circle(var(--r) at var(--lx) var(--ly));
  opacity: 0;
  transition: opacity .35s;
}
.ay-loupe__stage[data-mode="vision"] .ay-loupe__lens[data-mode="vision"],
.ay-loupe__stage[data-mode="crowd"] .ay-loupe__lens[data-mode="crowd"],
.ay-loupe__stage[data-mode="sr"] .ay-loupe__lens[data-mode="sr"] { opacity: 1; }
.ay-loupe__ring {
  position: absolute;
  left: var(--lx); top: var(--ly);
  width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1);
  border-radius: 50%;
  border: 5px solid var(--lc, var(--ay-blue));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 18px 36px rgba(0, 35, 64, .35), inset 0 0 0 2px rgba(255, 255, 255, .6);
  pointer-events: none;
  transition: border-color .3s;
}
.ay-loupe__stage[data-mode="sr"] { --lc: #0E6E70; }
.ay-loupe__stage[data-mode="crowd"] { --lc: #A3175A; }
.ay-loupe__glyph {
  position: absolute; right: -44px; bottom: -44px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--lc, var(--ay-blue));
}
/* the caption travels with the lens */
.ay-loupe__tag {
  position: absolute;
  left: var(--lx); top: calc(var(--ly) - var(--r) - 12px);
  transform: translate(-50%, -100%);
  padding: 4px 10px; border-radius: 999px;
  background: var(--lc, var(--ay-blue)); color: #fff;
  font: 700 12.5px/1.2 var(--ay-font);
  white-space: nowrap;
  pointer-events: none;
}
.ay-loupe__ring::after {
  /* the handle */
  content: ""; position: absolute;
  right: -30px; bottom: -30px; width: 42px; height: 12px;
  border-radius: 6px; background: var(--lc, var(--ay-blue));
  transform: rotate(45deg); transform-origin: left center;
}
/* how each mode re-draws the page, inside the lens only */
.ay-sim--vision .ay-doc__page { filter: blur(2.6px) contrast(.55) brightness(1.12); }
.ay-sim--vision .ay-doc__eyebrow--weak { color: #E9E9E9; }
.ay-sim--crowd .ay-doc__p--tight { line-height: .92; letter-spacing: -.02em; }
.ay-loupe.is-live:not(.is-paused) .ay-loupe__stage[data-mode="crowd"] .ay-sim--crowd .ay-doc__p--tight { animation: ay-crowd 2.4s ease-in-out infinite; }
.ay-sim--crowd .ay-doc__p { word-spacing: -.12em; }
@keyframes ay-crowd {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(.6px, -1.2px); }
  50% { transform: translate(-.8px, .9px); }
  75% { transform: translate(.4px, 1.4px); }
}
.ay-loupe__sr { background: #0B1620; color: #E8F0F5; font-family: var(--pz-font-mono); }
.ay-sr-say { display: grid; gap: 1.6cqi; padding: 6cqi; counter-reset: say; }
.ay-sr-say li {
  counter-increment: say;
  display: grid; grid-template-columns: 2.4em 1fr; gap: .6em;
  font-size: max(11px, 2.7cqi); line-height: 1.35; color: #C3D3DF;
}
.ay-sr-say li::before { content: "▶ " counter(say); color: #5DD8C4; font-size: .8em; padding-top: .15em; }
.ay-sr-say b { color: #fff; }
.ay-sr-say li:first-child b { color: #FFB27A; }
.ay-sr-say li.is-void b { color: #F58CC0; letter-spacing: .08em; }
.ay-loupe__notes { display: grid; gap: 8px; margin-top: 16px; }
.ay-loupe__note {
  display: grid; gap: 2px;
  padding: 8px 12px; border-radius: 12px;
  border-left: 4px solid transparent;
  font-size: 15px; line-height: 1.5; color: var(--ay-smoke);
  transition: background .3s, border-color .3s;
}
.ay-loupe__note b { color: var(--ay-ink); font-size: 14px; }
.ay-loupe__note.is-on { background: var(--ay-paper); border-color: var(--lc, var(--ay-blue)); }
.ay-loupe__note[data-mode="sr"] { --lc: #0E6E70; }
.ay-loupe__note[data-mode="crowd"] { --lc: #A3175A; }
.ay-loupe__cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13.5px; color: var(--ay-smoke); font-family: var(--pz-font-mono); }
@media (max-width: 560px) {
  .ay-loupe__row { grid-template-columns: 1fr; }
  .ay-loupe__dock { grid-template-columns: repeat(3, 1fr); }
}

/* ── Pause: every looping scene can be stopped ──────────────────── */

.ay-pause {
  flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1.5px solid currentColor; background: transparent; cursor: pointer;
  color: inherit;
}
.ay-pause svg { width: 16px; height: 16px; fill: currentColor; }
.ay-pause__b { display: none; }
.ay-pause[aria-pressed="true"] .ay-pause__a { display: none; }
.ay-pause[aria-pressed="true"] .ay-pause__b { display: inline; }
.ay-flow__cap { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

/* ══ 02 · Lens console ════════════════════════════════════════════ */

.ay-console {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.ay-console__lenses { display: grid; gap: 12px; }
.ay-lenscard {
  --c: var(--ay-acc);
  padding: 16px 18px 18px;
  border-radius: 18px;
  border: 1.5px solid var(--ay-line-light);
  background: rgba(232, 240, 245, .04);
  cursor: pointer;
  transition: border-color .3s, background .3s, transform .45s var(--ay-spring);
}
.ay-lenscard[data-lens="lang"] { --c: var(--ay-lang-lt); }
.ay-lenscard[data-lens="img"]  { --c: var(--ay-img-lt); }
.ay-lenscard.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.ay-lenscard.is-ping { transform: translateX(8px); }
.ay-lenscard__toggle {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; background: none; padding: 0; cursor: pointer;
  font-weight: 800; font-size: 15px; letter-spacing: .02em;
  color: var(--ay-white);
}
.ay-lenscard__toggle i {
  width: 22px; height: 22px; border-radius: 6px;
  border: 2.5px solid var(--c);
  position: relative;
  transition: background .2s;
}
.ay-lenscard__toggle i::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 6px; height: 11px;
  border: solid var(--ay-blue-deep); border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .3s var(--ay-spring);
}
.ay-lenscard__toggle[aria-pressed="true"] i { background: var(--c); }
.ay-lenscard__toggle[aria-pressed="true"] i::after { transform: rotate(45deg) scale(1); }
.ay-lenscard__t { margin: 10px 0 6px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; color: var(--ay-white); font-weight: 800; }
.ay-lenscard__d { color: var(--ay-on-dark-2); font-size: 16px; line-height: 1.55; }
.ay-console__all { color: var(--ay-on-dark-2); font-size: 15.5px; padding: 6px 4px 0; }

.ay-stage { margin: 0; position: relative; }
.ay-stage .ay-doc { overflow: visible; }
.ay-stage .ay-hit { visibility: hidden; transition: opacity .4s var(--ay-ease), transform .5s var(--ay-spring), visibility 0s .4s; }
.ay-stage[data-acc] .ay-hit[data-lens="acc"],
.ay-stage[data-lang] .ay-hit[data-lens="lang"],
.ay-stage[data-img] .ay-hit[data-lens="img"] { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.ay-stage__sweep {
  position: absolute; left: 0; right: 0; top: 38px; height: 22%;
  pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--c, #F28C00) 30%, transparent));
  border-bottom: 3px solid var(--c, #F28C00);
  box-shadow: 0 10px 24px -8px var(--c, #F28C00);
}
.ay-stage__sweep.is-run { animation: ay-sweep 1.1s var(--ay-ease) forwards; }
@keyframes ay-sweep {
  0% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(360%); }
}
.ay-stage__cap { margin-top: 18px; font-size: 14.5px; color: var(--ay-on-dark-2); max-width: 52ch; }
@media (max-width: 900px) {
  .ay-console { grid-template-columns: 1fr; }
  .ay-stage { order: -1; }
  .ay-hit__tag { font-size: 10.5px; padding: 2px 6px; }
}

/* ══ 03 · Detect → explain → fix (before / after) ════════════════ */

.ay-fix { background: var(--ay-white); }
.ay-fix__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.ay-fix__phases { display: grid; gap: 10px; margin-bottom: 20px; }
.ay-fix__phase {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--ay-line-soft);
  color: var(--ay-smoke);
  font-size: 16px; line-height: 1.5;
  transition: border-color .4s, background .4s;
}
.ay-fix__phase b { display: block; font-size: 18.5px; color: var(--ay-blue); margin-bottom: 2px; }
.ay-fix__phase.is-on { border-color: var(--ay-orange); background: #FFF8EE; }
.ay-fix__n {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ay-paper); color: var(--ay-blue);
  font-weight: 800; font-size: 17px;
  transition: background .3s, color .3s;
}
.ay-fix__phase.is-on .ay-fix__n { background: var(--ay-orange); color: var(--ay-acc-ink); }

.ay-fixcards { position: relative; }
.ay-fixcard {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--ay-paper);
  border-left: 4px solid var(--fc, var(--ay-orange));
  font-size: 14.5px; line-height: 1.5;
  animation: ay-cardin .45s var(--ay-ease);
}
.ay-fixcard[data-card="3"] { --fc: var(--ay-img); }
.ay-fixcard[data-card="4"], .ay-fixcard[data-card="5"] { --fc: var(--ay-lang); }
.ay-fixcard--intro { --fc: var(--ay-blue); }
@keyframes ay-cardin { from { opacity: 0; transform: translateY(8px); } }
.ay-fixcard__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ay-fixcard__t { font-weight: 800; color: var(--ay-blue); flex: 1; line-height: 1.25; font-size: 16px; }
.ay-fixcard__lead { margin-top: 6px; color: var(--ay-smoke); }
.ay-fixcard__dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.ay-fixcard__dl dt { font-weight: 700; color: var(--ay-ink); font-size: 13.5px; }
.ay-fixcard__dl dd { margin: 0; color: var(--ay-smoke); font-size: 14px; }
.ay-fixcard__dl .ay-alts li { font-size: 13.5px; }

.ay-fix__visual { position: relative; }
.ay-doc--fix { max-width: 600px; }
.ay-doc--fix .ay-doc__eyebrow--fix { color: var(--fix-eyebrow, #B5B5B5); transition: color .6s; }
.ay-doc--fix .ay-doc__p--fix { line-height: var(--fix-lh, 1.19); transition: line-height .6s var(--ay-ease); }
.ay-doc__alt {
  flex: 1;
  font: 600 max(11px, 2.4cqi)/1.4 var(--ay-font);
  color: #0B3D33;
  background: #DDF5EE;
  border: 1.5px solid var(--ay-img);
  border-radius: 8px;
  padding: 2cqi;
  opacity: 0; transform: translateX(-10px);
  transition: opacity .4s, transform .5s var(--ay-ease);
}
.ay-doc__alt b { display: inline-block; margin-right: 4px; padding: 1px 5px; border-radius: 4px; background: var(--ay-img); color: #fff; font-size: .85em; }
.ay-doc--fix.is-alt .ay-doc__alt { opacity: 1; transform: none; }
/* language fixes read like a tracked change: struck original, new text */
.ay-swap__from { text-decoration: none; }
.ay-swap__to { display: none; text-decoration: none; color: var(--ay-lang); font-weight: 700; }
.ay-swap.is-fixed .ay-swap__from { text-decoration: line-through; text-decoration-color: var(--ay-lang); text-decoration-thickness: 2px; color: #7C8790; }
.ay-swap.is-fixed .ay-swap__to { display: inline; background: #FBE6F0; border-radius: 3px; padding: 0 2px; animation: ay-ins .5s var(--ay-ease); }
@keyframes ay-ins { from { opacity: 0; } }
.ay-fixbtn {
  opacity: 1; transform: none;
  padding: 0; cursor: pointer;
  pointer-events: auto;
  font: inherit;
  transition: border-color .4s, background .4s, box-shadow .3s;
}
.ay-fixbtn:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.ay-fixbtn.is-current { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 30%, transparent); }
.ay-fixbtn.is-first:not(.is-fixed) { animation: ay-firsthit 1.6s ease-in-out 3; }
@keyframes ay-firsthit { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 30%, transparent); } }
.ay-fixbtn__note {
  position: absolute; right: 8px; bottom: calc(100% + 4px);
  padding: 2px 8px; border-radius: 6px;
  background: var(--ay-ok); color: #fff;
  font: 700 11.5px/1.3 var(--ay-font);
  white-space: nowrap;
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s, transform .4s var(--ay-ease);
}
.ay-fixbtn.is-fixed .ay-fixbtn__note { opacity: 1; transform: none; }
.ay-doc--fix .ay-hit.is-fixed { --c: var(--ay-ok); background: transparent; }
.ay-doc--fix .ay-hit.is-fixed::after {
  content: "✓";
  position: absolute; right: -11px; top: -11px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ay-ok); color: #fff;
  font: 800 13px/1 var(--ay-font);
  animation: ay-tick .45s var(--ay-spring);
}
@keyframes ay-tick { from { transform: scale(0); } }

.ay-ba__hint { margin-top: 10px; font-size: 14px; color: var(--ay-smoke); }
.ay-fix__count { margin-top: 14px; font-size: 15px; color: var(--ay-smoke); }
.ay-fix__count b { color: var(--ay-blue); font-size: 20px; font-variant-numeric: tabular-nums; }
.ay-fix__count.is-done b { color: var(--ay-ok); }

@media (max-width: 900px) {
  .ay-fix__grid { grid-template-columns: 1fr; }
  .ay-fix__visual { order: -1; }
  /* on one column the explanation sits right under the page it explains */
  .ay-fix__copy { display: contents; }
  .ay-fixcards { order: 0; }
  .ay-fix__phases { order: 1; margin: 0; }
}

/* ══ 04 · Report replica ══════════════════════════════════════════ */

.ay-demo {
  font-family: var(--pz-font-mono);
  font-size: 13px; letter-spacing: .06em;
  color: var(--ay-blue-mid);
  margin-bottom: 22px;
}
.ay-rep {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 18px;
  padding: clamp(14px, 2vw, 24px);
  border-radius: 24px;
  background: #EEF3F7;
  box-shadow: 0 0 0 1px var(--ay-line-soft), 0 40px 80px rgba(0, 56, 101, .12);
  font-size: 15.5px;
  line-height: 1.45;
}
.ay-rep__main { min-width: 0; }
.ay-rep__crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ay-rep__crumbs span {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: #D7E4EE; color: var(--ay-blue);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ay-rep__h { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; color: var(--ay-blue); margin: 0 0 14px; }
.ay-rep__head {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--ay-white);
  box-shadow: 0 0 0 1px var(--ay-line-soft);
  margin-bottom: 16px;
}
.ay-rep__lvlk { font-weight: 800; color: var(--ay-blue); }
.ay-rep__dots { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; margin: 4px 0 8px; }
.ay-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ay-dot--a { background: var(--ay-lv-a); }
.ay-dot--aa { background: var(--ay-lv-aa); margin-left: 6px; }
.ay-dot--aaa { background: var(--ay-lv-aaa); margin-left: 6px; }
.ay-rep__sum { color: var(--ay-smoke); font-size: 14.5px; }
.ay-rep__grade {
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--ay-orange); color: var(--ay-acc-ink);
  font-weight: 800; font-size: 15px;
  box-shadow: 0 10px 24px rgba(242, 140, 0, .35);
}
.ay-rep__tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1.5px solid var(--ay-blue);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.ay-rep__tabs button {
  border: 0; border-left: 1.5px solid var(--ay-blue);
  background: var(--ay-white); color: var(--ay-blue);
  padding: 10px 6px; font-weight: 700; font-size: 13.5px; line-height: 1.2;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.ay-rep__tabs button:first-child { border-left: 0; }
.ay-rep__tabs button.is-on { background: var(--ay-blue); color: var(--ay-white); }
.ay-rep__listhead { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ay-rep__count { font-weight: 800; color: var(--ay-blue); font-size: 17px; }
.ay-rep__rev { font-size: 13px; color: var(--ay-smoke); }
.ay-rep__revn { color: var(--ay-ink); font-variant-numeric: tabular-nums; }

.ay-issues { display: grid; gap: 8px; }
.ay-issue {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--ay-white);
  box-shadow: 0 0 0 1px var(--ay-line-soft);
  transition: box-shadow .25s, background .25s;
}
.ay-issue.is-lit { box-shadow: 0 0 0 2px var(--ay-ok); }
.ay-issue.is-done { background: #F2FAF6; }
.ay-issue__ico {
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  background: #EEF3F7; color: var(--ay-blue); font-weight: 800;
}
.ay-issue__ico--meta { font-style: italic; font-family: Georgia, serif; }
.ay-issue__ico--lang { background: #FBE6F0; color: var(--ay-lang); font-size: 13px; }
.ay-issue__thumb { width: 34px; height: 34px; border-radius: 6px; overflow: hidden; background: #EEF3F7; display: block; }
.ay-issue__thumb svg { width: 100%; height: 100%; display: block; }
.ay-issue__thumb--icon { padding: 4px; }
.ay-issue__open {
  display: grid; gap: 1px;
  text-align: left;
  border: 0; background: none; padding: 2px 0; cursor: pointer;
  min-width: 0;
}
.ay-issue__name { font-weight: 700; color: var(--ay-ink); font-size: 14.5px; line-height: 1.3; }
.ay-issue__open:hover .ay-issue__name { text-decoration: underline; text-underline-offset: 3px; }
.ay-issue__loc { font-size: 12.5px; color: var(--ay-smoke); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ay-issue__spacer { width: 0; }
.ay-issue__eye, .ay-issue__ok {
  width: 36px; height: 36px; border-radius: 9px;
  border: 0; display: grid; place-items: center; cursor: pointer;
  background: #E4ECF2; color: var(--ay-blue);
  transition: background .2s, color .2s, transform .3s var(--ay-spring);
}
.ay-issue__eye svg, .ay-issue__ok svg { width: 19px; height: 19px; }
.ay-issue__eye:hover, .ay-issue__ok:hover { background: #D3E1EB; }
.ay-issue.is-lit .ay-issue__eye { background: var(--ay-blue); color: #fff; }
.ay-issue__ok[aria-pressed="true"] { background: var(--ay-ok); color: #fff; transform: scale(1.05); }

.ay-lvl {
  display: inline-grid; place-items: center;
  min-width: 38px; height: 24px; padding: 0 7px;
  border-radius: 6px;
  font: 800 11.5px/1 var(--ay-font);
  color: #2B1400;
}
.ay-lvl--a   { background: var(--ay-lv-a); color: #fff; background: #C9353A; }
.ay-lvl--aa  { background: var(--ay-lv-aa); }
.ay-lvl--aaa { background: var(--ay-lv-aaa); }
.ay-sev { display: inline-grid; place-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font: 800 11.5px/1 var(--ay-font); }
.ay-sev--mid { background: #F4B6B0; color: #4D0E09; }

.ay-rep__prose { display: grid; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--ay-white); box-shadow: 0 0 0 1px var(--ay-line-soft); color: var(--ay-ink); }
.ay-rep__note { margin-top: 10px; font-size: 13.5px; color: var(--ay-smoke); }
.ay-rep__ai {
  padding: 10px 14px; border-radius: 12px;
  background: #E3F0F9; border: 1px solid #B9D6EA;
  font-size: 13.5px; color: var(--ay-ink);
  margin-bottom: 12px;
}
.ay-rep__ai b { color: var(--ay-blue); }

.ay-det {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--ay-white);
  box-shadow: 0 0 0 1px var(--ay-line-soft);
  outline: none;
}
.ay-det__back {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; padding: 4px 0; margin-bottom: 8px;
  color: var(--ay-blue); font-weight: 700; font-size: 14px; cursor: pointer;
}
.ay-det__back svg { width: 16px; height: 16px; }
.ay-det__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ay-det__head h4 { margin: 0; font-size: 19px; line-height: 1.25; color: var(--ay-blue); font-weight: 800; }
.ay-det__dl { margin: 0; display: grid; grid-template-columns: minmax(110px, 160px) 1fr; }
.ay-det__dl dt, .ay-det__dl dd { padding: 9px 0; border-top: 1px solid var(--ay-line-soft); font-size: 14.5px; }
.ay-det__dl dt { font-weight: 700; color: var(--ay-ink); padding-right: 14px; }
.ay-det__dl dd { margin: 0; color: var(--ay-smoke); }
.ay-det__dl a { color: var(--ay-blue); font-weight: 700; text-underline-offset: 3px; }
.ay-alts { display: grid; gap: 6px; }
.ay-alts li { padding: 6px 10px; border-radius: 8px; background: #FBE6F0; color: #4F0A2B; font-weight: 600; }
.ay-badge { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 800; }
.ay-badge--bad { background: #F6C9C4; color: #5A0F09; }
.ay-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ay-cmp__box { display: grid; gap: 4px; padding: 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--ay-line-soft); font: 700 13px/1.3 Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.ay-cmp__box small { font: 700 12px/1 var(--ay-font); letter-spacing: 0; text-transform: none; color: var(--ay-smoke); }
.ay-cmp__box--bad span { color: #B5B5B5; }
.ay-cmp__box--good span { color: #7A4200; }
.ay-det__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.ay-det__mark, .ay-det__fp, .ay-det__help, .ay-det__prev, .ay-det__next {
  display: inline-flex; align-items: center; min-height: 36px;
  padding: 0 12px; border-radius: 9px; border: 0;
  font-weight: 700; font-size: 13.5px; text-decoration: none; cursor: pointer;
}
.ay-det__mark { background: #E4ECF2; color: var(--ay-blue); }
.ay-det__mark[aria-pressed="true"] { background: var(--ay-ok); color: #fff; }
.ay-det__fp { background: #FFF4D6; color: #4A3500; cursor: default; }
.ay-det__help { background: #0E7C7B; color: #fff; }
.ay-det__nav { display: inline-flex; gap: 6px; margin-left: auto; }
.ay-det__prev, .ay-det__next { background: #E4ECF2; color: var(--ay-blue); }

/* viewer */
.ay-view {
  position: sticky; top: calc(var(--ay-nav-h) + 16px);
  align-self: start;
  border-radius: 16px;
  background: var(--ay-white);
  box-shadow: 0 0 0 1px var(--ay-line-soft);
  overflow: hidden;
}
.ay-view__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px;
  font-size: 13px; color: var(--ay-smoke);
  border-bottom: 1px solid var(--ay-line-soft);
}
.ay-view__pager { display: inline-flex; align-items: center; gap: 6px; }
.ay-view__btn {
  width: 30px; height: 30px; border-radius: 8px; border: 0;
  background: #EEF3F7; color: var(--ay-blue); font-size: 18px; line-height: 1; cursor: pointer;
}
.ay-view__sheet { position: relative; padding: 12px; background: #DDE5EB; }
.ay-view__page { animation: ay-pagein .45s var(--ay-ease); }
@keyframes ay-pagein { from { opacity: 0; transform: translateY(8px); } }
.ay-view__hl {
  position: absolute;
  border: 2.5px solid var(--ay-orange);
  background: rgba(242, 140, 0, .16);
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, left .45s var(--ay-ease), top .45s var(--ay-ease), width .45s var(--ay-ease), height .45s var(--ay-ease);
}
.ay-view__hl.is-on { opacity: 1; }
/* the eye zooms the page onto the finding and dims the rest, as if read
   through the loupe; the frame keeps the loupe's blue rim */
.ay-view__sheet { overflow: hidden; }
.ay-view__page { transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform .5s var(--ay-ease); }
.ay-view__sheet.is-zoom .ay-view__page { transform: scale(1.55); }
.ay-view__sheet.is-zoom .ay-view__hl {
  border: 4px solid var(--ay-blue);
  background: transparent;
  border-radius: 10px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 2000px rgba(0, 35, 64, .38);
}
.ay-hint {
  justify-self: end;
  font: 700 11px/1 var(--pz-font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ay-orange-txt);
  padding: 4px 7px; border-radius: 6px; background: #FFF0DA;
}
.ay-issue--hint { grid-template-columns: 34px minmax(0, 1fr) auto auto auto auto; }
.ay-rep.is-used .ay-hint { display: none; }
.ay-rep.is-used .ay-issue--hint { grid-template-columns: 34px minmax(0, 1fr) auto auto auto; }
.ay-rep__tabs button:focus-visible { outline-offset: -6px; box-shadow: none; }
.ay-doc--mini { box-shadow: none; border-radius: 4px; aspect-ratio: 1 / 1.25; }
.ay-cover {
  position: relative;
  aspect-ratio: 1 / 1.25;
  display: flex; flex-direction: column; gap: 4%;
  padding: 9% 8%;
  background: #003865; color: #fff;
  border-radius: 4px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  container-type: inline-size;
}
.ay-cover__brand { font-size: 3.6cqi; letter-spacing: .14em; font-weight: 700; color: #F28C00; }
.ay-cover__t { font-size: 10cqi; font-weight: 800; line-height: 1.02; margin-top: 8%; }
.ay-cover__s { font-size: 4.4cqi; color: #C3D3DF; }
.ay-cover__p { font-size: 3.3cqi; line-height: 1.1; color: #DCE6EE; }
.ay-cover__art { width: 72%; margin-top: auto; }
.ay-cover__foot { font-size: 2.3cqi; color: #8FA5B6; }

@media (max-width: 980px) {
  .ay-rep { grid-template-columns: 1fr; }
  .ay-view { position: relative; top: 0; max-width: 420px; justify-self: center; width: 100%; }
}
@media (max-width: 560px) {
  .ay-rep { padding: 10px; border-radius: 18px; }
  .ay-rep__head { grid-template-columns: 1fr; }
  .ay-rep__grade { width: 84px; height: 84px; font-size: 13.5px; }
  .ay-rep__tabs { grid-template-columns: 1fr 1fr; }
  .ay-rep__tabs button:nth-child(3) { border-left: 0; }
  .ay-rep__tabs button:nth-child(n+3) { border-top: 1.5px solid var(--ay-blue); }
  .ay-issue { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .ay-issue .ay-lvl, .ay-issue .ay-sev, .ay-issue__spacer { display: none; }
  .ay-issue__ico, .ay-issue__thumb { width: 30px; height: 30px; }
  .ay-issue__eye { display: none; }
  .ay-det__dl { grid-template-columns: 1fr; }
  .ay-det__dl dt { border-top: 1px solid var(--ay-line-soft); padding-bottom: 0; }
  .ay-det__dl dd { border-top: 0; }
  .ay-cmp { grid-template-columns: 1fr; }
}

/* ══ 05 · Assistant ═══════════════════════════════════════════════ */

.ay-chatgrid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.ay-chat {
  border-radius: 22px;
  background: var(--ay-white);
  color: var(--ay-ink);
  box-shadow: 0 40px 80px rgba(0, 15, 30, .4);
  overflow: hidden;
  font-size: 15.5px; line-height: 1.5;
}
.ay-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #0E7C7B; color: #fff; }
.ay-chat__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0E7C7B; font-weight: 800; font-size: 13px; }
.ay-chat__who { font-weight: 800; }
.ay-chat__ctx { padding: 9px 18px; background: #E6F4F3; color: #0A4645; font-size: 13.5px; }
.ay-chat__thread { display: grid; gap: 14px; padding: 18px; }
.ay-bubble { max-width: 92%; padding: 12px 15px; border-radius: 16px; }
.ay-bubble--me { justify-self: end; background: var(--ay-blue); color: #fff; border-bottom-right-radius: 4px; }
.ay-bubble--bot { justify-self: start; background: #F1F5F8; border-bottom-left-radius: 4px; position: relative; }
.ay-dots { display: none; gap: 5px; padding: 4px 2px; }
.ay-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ay-smoke); animation: ay-dot 1s infinite ease-in-out; }
.ay-dots i:nth-child(2) { animation-delay: .15s; }
.ay-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ay-dot { 50% { transform: translateY(-4px); opacity: .4; } }
.ay-chat.is-typing .ay-dots { display: inline-flex; }
.ay-chat.is-typing .ay-bubble__body { display: none; }
.ay-chat.is-waiting .ay-bubble--bot,
.ay-chat.is-waiting .ay-bubble--me { opacity: 0; transform: translateY(10px); }
.ay-bubble { transition: opacity .5s, transform .6s var(--ay-ease); }
.ay-bubble__body > * + * { margin-top: 10px; }
.ay-swatches { display: grid; gap: 6px; }
.ay-sw {
  width: 100%; border: 0; text-align: left; font: inherit; color: inherit;
  display: grid; grid-template-columns: 26px auto 1fr auto; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 10px; background: #fff;
  box-shadow: 0 0 0 1px var(--ay-line-soft);
  font-size: 14px;
  cursor: pointer;
  transition: box-shadow .2s;
}
.ay-sw.is-pick { box-shadow: 0 0 0 2px var(--ay-blue); }
.ay-sw i { width: 26px; height: 26px; border-radius: 7px; }
.ay-sw code { font-family: var(--pz-font-mono); font-size: 13px; }
.ay-sw__r { font-variant-numeric: tabular-nums; }
.ay-sw__v { font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #E4ECF2; color: var(--ay-blue); }
.ay-sw__v--bad { background: #F6C9C4; color: #5A0F09; }
.ay-sw__v--good { background: #CDEFE0; color: #0B3D2A; }
.ay-preview { padding: 12px 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--ay-line-soft); }
.ay-preview__line { font: 700 15px/1.3 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--pv, #7A4200); transition: color .5s; }
.ay-steps__k { font-weight: 800; color: var(--ay-blue); }
.ay-steps { display: grid; gap: 6px; counter-reset: st; }
.ay-steps li { counter-increment: st; display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 14.5px; }
.ay-steps li::before {
  content: counter(st);
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ay-blue); color: #fff; font-weight: 800; font-size: 12.5px;
}
.ay-chat__note { margin-top: 26px; font-size: 14.5px; color: var(--ay-on-dark-2); max-width: 72ch; }
@media (max-width: 900px) { .ay-chatgrid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .ay-sw { grid-template-columns: 22px 1fr auto; }
  .ay-sw code { display: none; }
  .ay-sw i { width: 22px; height: 22px; }
}

/* ══ 06 · Why it matters · figures that come into focus ══════════ */

.ay-why__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ay-why__item {
  margin: 0;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: 20px;
  background: rgba(232, 240, 245, .05);
  border: 1px solid var(--ay-line-light);
  display: flex; flex-direction: column; gap: 14px;
}
.ay-why__nwrap { position: relative; align-self: flex-start; max-width: 100%; font-size: clamp(40px, 4.6vw, 66px); }
.ay-why__nwrap--date { font-size: clamp(30px, 3.3vw, 46px); }
.ay-why__n {
  margin: 0;
  font-size: 1em;
  line-height: 1; font-weight: 800; letter-spacing: -.03em;
  color: var(--ay-white);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  filter: blur(9px);
  opacity: .28;
  transition: filter 1s var(--ay-ease) .55s, opacity .9s var(--ay-ease) .55s;
}
.ay-why__item.is-in .ay-why__n { filter: blur(0); opacity: 1; }
.ay-why__lens {
  /* the loupe that brings each figure into focus as it passes */
  position: absolute; top: 50%; left: 0;
  width: 1.25em; height: 1.25em; margin-top: -.625em;
  border-radius: 50%;
  border: 4px solid var(--ay-orange);
  box-shadow: 0 0 0 2px rgba(0, 35, 64, .6), 0 0 30px rgba(242, 140, 0, .35);
  opacity: 0;
  pointer-events: none;
}
.ay-why__item.is-in .ay-why__lens { animation: ay-focus 1.5s var(--ay-ease) .1s both; }
@keyframes ay-focus {
  0%   { opacity: 0; left: -.4em; transform: scale(.7); }
  20%  { opacity: 1; transform: none; }
  80%  { opacity: 1; }
  100% { opacity: 0; left: calc(100% - .8em); transform: scale(1.05); }
}
.ay-why__item:nth-child(3n+2) .ay-why__n { transition-delay: .75s; }
.ay-why__item .ay-why__n { will-change: filter; }
.ay-why__item:nth-child(3n+2) .ay-why__lens { animation-delay: .3s; }
.ay-why__item:nth-child(3n) .ay-why__n { transition-delay: .95s; }
.ay-why__item:nth-child(3n) .ay-why__lens { animation-delay: .5s; }
.ay-why__item figcaption { display: grid; gap: 10px; margin-top: auto; }
.ay-why__t { color: var(--ay-on-dark); font-size: 16.5px; line-height: 1.5; }
.ay-why__src {
  font-family: var(--pz-font-mono); font-size: 12.5px;
  color: var(--ay-on-dark-2);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(195, 211, 223, .4);
}
.ay-why__src:hover { color: var(--ay-white); }
.ay-why__close {
  margin-top: clamp(30px, 4vw, 52px);
  max-width: 60ch;
  font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5;
  color: var(--ay-white);
  padding-left: 20px; border-left: 4px solid var(--ay-orange);
}
@media (max-width: 1000px) { .ay-why__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ay-why__grid { grid-template-columns: 1fr; } }

/* ══ 07 · Trust ═══════════════════════════════════════════════════ */

.ay-trust {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ay-tcard {
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(18px, 2.2vw, 28px);
  border-radius: 22px;
  background: var(--ay-white);
  box-shadow: 0 0 0 1px var(--ay-line-soft), 0 18px 40px rgba(0, 56, 101, .06);
}
.ay-tcard__t { margin: 6px 0 0; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.2; color: var(--ay-blue); font-weight: 800; }
.ay-tcard__d { color: var(--ay-smoke); font-size: 16.5px; }
.ay-tcard__viz {
  min-height: 132px;
  border-radius: 14px;
  background: var(--ay-paper);
  padding: 14px;
  font-size: 13.5px;
  display: grid; align-content: center; gap: 8px;
}

.ay-tv-human__row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 10px; background: #fff;
  box-shadow: 0 0 0 1px var(--ay-line-soft);
}
.ay-tv-human__t { font-weight: 700; color: var(--ay-ink); line-height: 1.3; }
.ay-tv-human__b {
  flex: none; font-weight: 800; font-size: 12px; padding: 4px 9px; border-radius: 7px;
  transform: scale(0); transition: transform .5s var(--ay-spring);
}
.ay-tcard.is-in .ay-tv-human__b { transform: none; }
.ay-tcard.is-in .ay-tv-human__row:nth-child(2) .ay-tv-human__b { transition-delay: .5s; }
.ay-tv-human__b--ok { background: var(--ay-ok); color: #fff; }
.ay-tv-human__b--fp { background: #FFF4D6; color: #4A3500; box-shadow: 0 0 0 1px #F2D58A; }

.ay-tv-rules__k { font-weight: 800; color: var(--ay-blue); font-size: 12.5px; }
.ay-tv-rules__line {
  display: block; min-height: 54px; padding: 9px 11px; border-radius: 10px;
  background: #fff; box-shadow: 0 0 0 1px var(--ay-line); color: var(--ay-ink);
}
.ay-tv-rules__type { display: inline; }
.ay-tv-rules__save {
  justify-self: end; padding: 6px 12px; border-radius: 999px;
  background: var(--ay-blue); color: #fff; font-weight: 700; font-size: 12.5px;
}

.ay-tv-log { position: relative; padding-left: 26px !important; gap: 7px; }
.ay-tv-log::before { content: ""; position: absolute; left: 19px; top: 18px; bottom: 18px; width: 2px; background: var(--ay-line); }
.ay-tv-log li {
  position: relative; display: flex; gap: 10px; align-items: baseline;
  color: var(--ay-ink); font-weight: 600;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .4s, transform .5s var(--ay-ease);
}
.ay-tv-log li::before { content: ""; position: absolute; left: -11px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--ay-orange); box-shadow: 0 0 0 3px var(--ay-paper); }
.ay-tcard.is-in .ay-tv-log li { opacity: 1; transform: none; }
.ay-tcard.is-in .ay-tv-log li:nth-child(2) { transition-delay: .25s; }
.ay-tcard.is-in .ay-tv-log li:nth-child(3) { transition-delay: .5s; }
.ay-tcard.is-in .ay-tv-log li:nth-child(4) { transition-delay: .75s; }
.ay-tv-log__time { font-family: var(--pz-font-mono); font-size: 12.5px; color: var(--ay-smoke); font-weight: 500; }

.ay-tv-priv { grid-template-columns: 52px 1fr; align-items: center; color: var(--ay-ok); }
.ay-tv-priv svg { width: 48px; height: 48px; }
.ay-tv-priv span { color: #4A3500; background: #FFF4D6; border: 1px solid #F2D58A; padding: 9px 11px; border-radius: 10px; font-weight: 600; }

.ay-norms-wrap { margin-top: clamp(40px, 5vw, 64px); }
.ay-norms { display: flex; flex-wrap: wrap; gap: 10px; }
.ay-norms li {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--ay-white); box-shadow: 0 0 0 1px var(--ay-line-soft);
  font-weight: 800; color: var(--ay-blue); font-size: 15.5px;
}
.ay-norms li span { font-weight: 500; color: var(--ay-smoke); font-size: 13.5px; }
.ay-norms__help { margin-top: 18px; color: var(--ay-smoke); max-width: 70ch; font-size: 16.5px; }
@media (max-width: 760px) { .ay-trust { grid-template-columns: 1fr; } }

/* ══ 08 · Self audit ══════════════════════════════════════════════ */

.ay-audit__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.ay-audit__run { margin-top: 28px; }
.ay-audit__run[aria-busy="true"] { opacity: .7; cursor: progress; }
.ay-audit__panel {
  position: relative;
  border-radius: 22px;
  background: var(--ay-white);
  color: var(--ay-ink);
  box-shadow: 0 40px 80px rgba(0, 15, 30, .4);
  overflow: hidden;
}
.ay-audit__panel::after {
  /* the scan */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 70px;
  background: linear-gradient(180deg, transparent, rgba(242, 140, 0, .22), transparent);
  opacity: 0; pointer-events: none;
}
.ay-audit__panel.is-scan::after { animation: ay-scan 1.1s linear infinite; }
@keyframes ay-scan { 0% { opacity: 1; transform: translateY(-70px); } 100% { opacity: 1; transform: translateY(560px); } }
.ay-audit__top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--ay-line-soft); background: #F6F9FB;
  font-size: 14px;
}
.ay-audit__file { font-family: var(--pz-font-mono); font-size: 13px; color: var(--ay-smoke); }
.ay-audit__score { color: var(--ay-smoke); }
.ay-audit__score b { color: var(--ay-blue); font-size: 18px; font-variant-numeric: tabular-nums; }
.ay-audit__list { display: grid; }
.ay-audit__list li {
  display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 12px;
  padding: 11px 18px; border-top: 1px solid var(--ay-line-soft);
  font-size: 15px;
}
.ay-audit__list li:first-child { border-top: 0; }
.ay-audit__st {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--ay-line);
  display: grid; place-items: center;
  font: 800 12px/1 var(--ay-font);
  transition: background .3s, border-color .3s, transform .4s var(--ay-spring);
}
.ay-audit__list li.is-pass .ay-audit__st { background: var(--ay-ok); border-color: var(--ay-ok); color: #fff; transform: scale(1.1); }
.ay-audit__list li.is-pass .ay-audit__st::after { content: "✓"; }
.ay-audit__list li.is-fail .ay-audit__st { background: var(--ay-err); border-color: var(--ay-err); color: #fff; }
.ay-audit__list li.is-fail .ay-audit__st::after { content: "!"; }
.ay-audit__list li.is-busy .ay-audit__st { border-color: var(--ay-orange); border-top-color: transparent; animation: ay-spin .7s linear infinite; }
@keyframes ay-spin { to { transform: rotate(360deg); } }
.ay-audit__t { font-weight: 700; line-height: 1.3; }
.ay-audit__v { font-family: var(--pz-font-mono); font-size: 13px; color: var(--ay-smoke); text-align: right; }
@media (max-width: 900px) { .ay-audit__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .ay-audit__list li { grid-template-columns: 24px 1fr auto; padding: 10px 12px; }
  .ay-audit__v { grid-column: 2; text-align: left; }
}

/* ══ Closing ══════════════════════════════════════════════════════ */

.ay-close { text-align: center; display: grid; justify-items: center; }
.ay-close__t { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: var(--ay-blue); margin: 0 0 18px; }
.ay-close__p { max-width: 52ch; color: var(--ay-smoke); }
.ay-close__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ══ Reduced motion: every scene in its finished state ════════════ */

@media (prefers-reduced-motion: reduce) {
  .ay *, .ay *::before, .ay *::after { animation: none !important; transition: none !important; }
  .ay-flow__app { transform: none; }
  .ay-why__n { filter: none; opacity: 1; }
  .ay-loupe__stage { cursor: crosshair; }
}
