/* =========================================================
   07 The audit (Figma 292:421) — black section
   ========================================================= */
.audit { --audit-dot-on: #8fb6ef; --audit-dot-off: rgba(255,255,255,.16); }

.audit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 666px);
  column-gap: 60px;
  align-items: start;
}

/* ---------- intro (left) ---------- */
.audit__title { max-width: 620px; }
.audit__body  { max-width: 637px; margin-top: 14px; color: var(--w-50); }
.audit__cta   { margin-top: 24px; }
.audit__cta img { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.audit__cta:hover img { transform: translateX(3px); }

/* ---------- scorecard ---------- */
.audit__panel { padding-top: 12px; }
.audit__scorecard { max-width: 610px; }

.audit__table-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.audit__table-label { font-size: 14px; line-height: 1; letter-spacing: -0.02em; color: var(--w-50); }
.audit__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.audit__legend li {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; line-height: 1; letter-spacing: -0.02em; color: var(--w-70); white-space: nowrap;
}

/* three-dot rating indicator: data-level = number of lit dots */
.audit__dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.audit__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--audit-dot-off); }
.audit__dots[data-level="1"] i:nth-child(-n+1),
.audit__dots[data-level="2"] i:nth-child(-n+2),
.audit__dots[data-level="3"] i { background: var(--audit-dot-on); }

.audit__table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.audit__table th,
.audit__table td { padding: 0; font-weight: 400; vertical-align: middle; }
.audit__table thead th {
  height: 52px; font-size: 12px; line-height: 1; letter-spacing: -0.02em; color: var(--w-40);
  border-bottom: 1px solid var(--w-10);
}
/* Figma column x-positions: 786 / 1092 / 1174 / 1256 / 1330 (table width 610) */
.audit__table thead th:nth-child(1) { width: auto; }
.audit__table thead th:nth-child(2),
.audit__table thead th:nth-child(3) { width: 82px; }
.audit__table thead th:nth-child(4) { width: 74px; }
.audit__table thead th:nth-child(5) { width: 66px; }

.audit__table tbody tr + tr { border-top: 1px solid var(--w-10); }
.audit__table tbody th,
.audit__table tbody td { height: 64px; }
.audit__table tbody th { font-size: 18px; line-height: 1; letter-spacing: -0.02em; color: var(--white); }
.audit__num {
  display: inline-block; width: 34px; font-family: var(--font-mono); font-size: 16px; line-height: 1;
  color: rgba(255,255,255,.35);
}
.audit__table tbody tr { transition: background-color .25s var(--ease); }
.audit__table tbody tr:hover { background: rgba(255,255,255,.03); }

/* ---------- method / result + stats ---------- */
.audit__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  grid-auto-flow: column;
  column-gap: 40px;
  margin-top: 60px;
}
.audit__label {
  padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.18);
  font-size: 16px; line-height: 1; color: var(--white);
}
.audit__copy { padding-top: 19px; color: var(--w-50); }
.audit__stat { display: flex; flex-direction: column; gap: 6px; margin-top: 52px; }
.audit__stat-value { font-size: 36px; line-height: 1; letter-spacing: -0.03em; color: var(--white); }
.audit__stat-label { font-size: 16px; line-height: 1; color: var(--w-50); }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .audit__grid { grid-template-columns: minmax(0, 1fr); row-gap: 64px; }
  .audit__panel { padding-top: 0; }
  .audit__scorecard { max-width: none; }
}

/* ---------- mobile: rows become stacked cards ---------- */
@media (max-width: 720px) {
  .audit__grid { row-gap: 56px; }
  .audit__table-head { padding-bottom: 20px; }

  .audit__table, .audit__table tbody, .audit__table tr, .audit__table th, .audit__table td { display: block; }
  .audit__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .audit__table tbody tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; padding: 20px 0; }
  .audit__table tbody tr + tr { border-top: 1px solid var(--w-10); }
  .audit__table tbody tr:first-child { border-top: 0; }
  .audit__table tbody th { grid-column: 1 / -1; height: auto; font-size: 18px; }
  .audit__table tbody td { height: auto; display: flex; flex-direction: column; gap: 8px; }
  .audit__table tbody td::before {
    content: attr(data-label); font-size: 12px; line-height: 1; letter-spacing: -0.02em; color: var(--w-40);
  }

  .audit__details { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; margin-top: 40px; }
  .audit__stat { margin-top: 32px; }
  .audit__stat + .audit__label { margin-top: 48px; }
}
