/* AI Shelf Audit page (/ai-shelf-audit/). Builds on site-shell.css and service-pages.css tokens.
   Brand data colours (Tide orange, Persil violet) stay fixed in both themes so the chart reads the same. */
.sa { --sa-tide: #f97316; --sa-tide-ink: #1a0a00; --sa-persil: #a78bfa; --sa-persil-ink: #1d0f3a; }
.sa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sa .service-hero { max-width: none; padding-bottom: 0; }
.sa .lede strong { color: var(--zinc-100); font-weight: 600; }
.sa-scope { color: var(--zinc-400); font-size: 15px; max-width: 42rem; margin: -12px 0 0; }

.sa-split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px; align-items: start; margin-top: 40px; padding-bottom: 56px;
}
.sa-figs { display: grid; gap: 20px; }
.sa-panel {
  background: var(--white-5); border: 1px solid var(--white-10);
  border-radius: 16px; padding: 20px 22px;
}
.sa-panel h2, .sa-panel h3 { font-size: 21px; line-height: 1.2; margin: 0; color: var(--zinc-100); }
.sa-panel h2 small { font: 500 14px var(--font-body); color: var(--zinc-400); margin-left: 6px; }
.sa-bar {
  display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 4.6em; gap: 12px;
  align-items: center; margin-top: 12px; font-size: 14px; color: var(--zinc-400);
}
.sa-track { height: 12px; border-radius: 6px; background: var(--white-10); overflow: hidden; }
.sa-track span { display: block; height: 100%; border-radius: 6px; }
.sa-bar b { color: var(--zinc-100); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.sa-verdict { font-size: 15px; color: var(--zinc-300); margin: 14px 0 0; line-height: 1.6; }
.sa-verdict q { color: var(--zinc-100); }
.sa .cta-row { margin-top: 4px; }

.sa-shelf { margin: 0; }
.sa-shelf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 14px; }
.sa-shelf-head p { margin: 0; font-size: 14px; color: var(--zinc-400); }
.sa-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--zinc-400); }
.sa-key span { display: inline-flex; align-items: center; gap: 6px; }
.sa-key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sa-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; font-size: 13px; margin: 0 -4px; }
.sa-grid col.q { width: 33%; }
.sa-grid thead th { font-weight: 400; color: var(--zinc-400); font-size: 13px; padding-bottom: 2px; }
.sa-grid tbody th { text-align: left; font-weight: 400; color: var(--zinc-400); padding-right: 6px; line-height: 1.25; }
.sa-grid tbody td {
  border-radius: 6px; background: var(--zinc-800); color: var(--zinc-300);
  padding: 6px 4px; text-align: center; line-height: 1.15; height: 34px;
  border-bottom: 3px solid var(--white-10);
}
.sa-grid tbody td.tide { background: var(--sa-tide); color: var(--sa-tide-ink); font-weight: 600; border-bottom-color: #b84f05; }
.sa-grid tbody td.persil { background: var(--sa-persil); color: var(--sa-persil-ink); font-weight: 600; border-bottom-color: #7c5fc9; }
.sa-shelf figcaption { font-size: 13px; line-height: 1.6; color: var(--zinc-400); margin-top: 14px; }

.sa-measures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.sa-m { border-top: 1px solid var(--white-10); padding-top: 18px; }
.sa-m.lead { border-top: 2px solid var(--sa-tide); }
.sa-m em { font-style: normal; display: block; margin-bottom: 6px; font: 700 11px var(--font-ui); letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange-400); }
.sa-m h3, .sa-card h3, .sa-step h3 { font-size: 19px; line-height: 1.25; margin: 0; color: var(--zinc-100); }
.sa-m p, .sa-card p, .sa-step p, .sa-panel p.body { color: var(--zinc-300); font-size: 15px; line-height: 1.6; margin: 8px 0 0; }

.sa-wide { padding-block: 40px; border-top: 1px solid var(--white-10); scroll-margin-top: 112px; }
.sa-wide > h2.section { margin-bottom: 12px; }
.sa-intro { color: var(--zinc-300); max-width: 66ch; margin: 0 0 28px; }
.sa-report { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
.sa-paper {
  background: #f7f6f2; color: #16161a; border-radius: 14px; padding: clamp(20px, 3vw, 34px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6); border: 1px solid rgba(47, 36, 54, 0.12);
}
.sa-paper .meta { font-size: 13px; color: #5c5c66; border-bottom: 1px solid #d9d7d0; padding-bottom: 10px; margin: 0 0 16px; }
.sa-paper h3 { font-size: 24px; line-height: 1.15; margin: 0 0 8px; color: #16161a; }
.sa-paper p { font-size: 15px; color: #33333a; margin: 0; line-height: 1.6; }
.sa-paper .moves { margin-top: 4px; font-weight: 600; color: #16161a; }
.sa-paper ol { margin: 10px 0 0; padding-left: 20px; font-size: 15px; color: #33333a; line-height: 1.6; }
.sa-paper li { margin-bottom: 8px; }
.sa-paper .fade { font-size: 13px; color: #5c5c66; margin-top: 12px; border-top: 1px dashed #cfccc3; padding-top: 10px; }
.sa-tbl { overflow-x: auto; margin: 16px 0; }
.sa-tbl table { border-collapse: collapse; width: 100%; font-size: 14px; }
.sa-tbl th, .sa-tbl td { padding: 7px 8px; border-bottom: 1px solid #e2e0d9; text-align: left; white-space: nowrap; }
.sa-tbl th { font-weight: 600; color: #5c5c66; font-size: 13px; }
.sa-tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.sa-tbl tr.hl td { background: #fff1e6; font-weight: 600; }
.sa-reads { display: grid; gap: 14px; }

.sa-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sa-card { background: var(--white-5); border: 1px solid var(--white-10); border-radius: 16px; padding: 20px; }
.sa-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: sa-step; }
.sa-step { position: relative; padding-top: 46px; }
.sa-step::before {
  counter-increment: sa-step; content: counter(sa-step); position: absolute; top: 0; left: 0;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--purple-500);
  display: grid; place-items: center; font: 600 14px var(--font-ui); color: var(--purple-300);
}

.sa-close {
  margin-top: 40px; border-radius: 24px; border: 1px solid var(--white-10); padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.55) 0%, rgba(46, 16, 101, 0.5) 55%, rgba(234, 88, 12, 0.26) 100%);
}
.sa-close h2.section { max-width: 24ch; }
.sa-close p.body { margin-top: 14px; }
.sa-close .sa-mail { color: var(--zinc-300); font-size: 15px; align-self: center; }
.sa-close .sa-mail a { color: var(--zinc-100); text-decoration: underline; text-underline-offset: 3px; }
.sa-disclaimer { font-size: 13px; color: var(--zinc-400); margin: 24px 0 0; max-width: 70ch; }

:root[data-theme="light"] .sa-close {
  background: linear-gradient(135deg, var(--light-lavender) 0%, var(--light-blush) 55%, var(--light-apricot) 100%);
  border-color: var(--light-rule);
}
:root[data-theme="light"] .sa-grid td.tide,
:root[data-theme="light"] .sa-grid td.persil { border-bottom-color: rgba(47, 36, 54, 0.28); }
:root[data-theme="light"] .sa-paper { box-shadow: var(--light-shadow); }

@media (prefers-reduced-motion: no-preference) {
  .sa-grid td.tide { animation: sa-lit 0.5s ease-out both; animation-delay: calc(var(--d, 0) * 40ms); }
  @keyframes sa-lit { from { background: var(--zinc-800); color: var(--zinc-300); } }
}
@media (max-width: 1023px) {
  .sa-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sa-shelf { order: -1; }
  .sa-report { grid-template-columns: minmax(0, 1fr); }
  .sa-measures, .sa-who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sa-measures, .sa-who, .sa-steps { grid-template-columns: minmax(0, 1fr); }
  .sa-grid { font-size: 12px; border-spacing: 3px; }
  .sa-grid tbody td { padding: 5px 2px; height: 32px; }
  .sa-panel { padding: 18px; }
  .sa-tbl table { font-size: 13px; }
  .sa-tbl th, .sa-tbl td { padding: 6px 5px; }
}
