/* ==========================================================================
   Sample Dashboard v2 — Snapshot (.sn-) + Action Plan (.ap-) compositions.
   Tokens/primitives come from base.css. Motion stays on transform/opacity.
   Cards stack at 880px max-width per the shell; refine further at 640px.
   ========================================================================== */

/* ==========================================================================
   SNAPSHOT
   ========================================================================== */

/* ---------- hero ---------- */
.sn-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 34px 36px;
}
.sn-hero__left {
  display: grid;
  gap: 16px;
  max-width: 46ch;
}
.sn-hero__eyebrow {
  margin: 0;
}
.sn-hero__headline {
  margin: 0;
}
.sn-hero__line {
  display: block;
}
.sn-hero__line:last-child {
  color: var(--muted);
}
.sn-hero__explainer {
  margin: 0;
  max-width: 42ch;
}
.sn-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.sn-hero__right {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.sn-hero__ring-caption {
  margin: 0;
  text-align: center;
  max-width: 20ch;
}

/* ---------- metric strip ---------- */
.sn-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.sn-metric-card {
  padding: 18px 18px 16px;
}

/* ---------- two-up: what's working / what's blocking ---------- */
.sn-twoup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  align-items: stretch;
}
.sn-good,
.sn-block {
  display: flex;
  flex-direction: column;
}
.sn-item {
  display: grid;
  gap: 6px;
}
.sn-item__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.sn-review-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

/* ---------- the 7 checks ---------- */
.sn-checks {
  margin-top: 20px;
}
.sn-checks__rows {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.sn-checks__row {
  display: grid;
  grid-template-columns: 168px 1fr 40px;
  align-items: center;
  gap: 16px;
}
.sn-checks__label {
  color: var(--ink);
}
.sn-checks__score {
  color: var(--muted-2);
  text-align: right;
}

/* ---------- how we tested ---------- */
.sn-method {
  margin-top: 20px;
}
.sn-method__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 14px;
}
.sn-method__stat {
  display: grid;
  gap: 3px;
}
.sn-method__num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.sn-method__label {
  margin: 0;
}
.sn-method__engines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.sn-method__note {
  margin: 14px 0 0;
}
.sn-method__link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 550;
}
.sn-method__link:hover {
  text-decoration: underline;
}

/* ---------- compliance footer ---------- */
.sn-compliance {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
}
.sn-compliance__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
}
.sn-compliance p {
  margin: 0;
}

/* ==========================================================================
   ACTION PLAN
   ========================================================================== */

/* ---------- header ---------- */
.ap-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 34px 36px;
}
.ap-hero__left {
  display: grid;
  gap: 14px;
  max-width: 46ch;
}
.ap-hero__headline {
  margin: 0;
}
.ap-hero__sub {
  margin: 0;
  max-width: 44ch;
}
.ap-hero__right {
  display: grid;
  gap: 18px;
  min-width: 260px;
}
.ap-progress {
  display: grid;
  gap: 8px;
}
.ap-progress__label {
  margin: 0;
  color: var(--muted);
}
.ap-progress__bar {
  height: 6px;
}
.ap-progress__minis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

/* ---------- top priorities ---------- */
.ap-top {
  margin-top: 28px;
}
.ap-top__heading {
  margin: 0 0 14px;
}
.ap-top__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.ap-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ap-card__chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ap-card__time {
  margin-left: auto;
}
.ap-card__title {
  margin: 0;
  line-height: 1.3;
}
.ap-card__why {
  margin: 0;
}
.ap-card__meta {
  display: grid;
  gap: 10px;
}
.ap-card__meta-row {
  display: grid;
  grid-template-columns: 18px auto 1fr;
  align-items: start;
  gap: 8px;
}
.ap-card__meta-icon {
  color: var(--accent-bright);
  display: grid;
  place-items: center;
  padding-top: 1px;
}
.ap-card__meta-row .micro {
  white-space: nowrap;
  padding-top: 1px;
}
.ap-card__status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}
.ap-card__status .chip {
  opacity: 0.55;
}
.ap-card__status .chip.chip--amber,
.ap-card__status .chip.chip--blue,
.ap-card__status .chip.chip--green {
  opacity: 1;
}
.ap-card__status button.chip {
  cursor: pointer;
  transition: opacity 120ms ease;
}
.ap-card__status button.chip:hover {
  opacity: 0.85;
}
.ap-card__status button.chip:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  opacity: 1;
}

/* ---------- next up ---------- */
.ap-next {
  margin-top: 28px;
}
.ap-next__heading {
  margin: 0 0 14px;
}
.ap-next__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ap-next-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px 18px 16px;
}
.ap-next-card__title {
  margin: 4px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}
.ap-next-card__why {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ap-next-card__footer {
  margin: 4px 0 0;
}

/* ---------- success / why two-up ---------- */
.ap-twoup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
  align-items: stretch;
}
.ap-success,
.ap-why {
  display: flex;
  flex-direction: column;
}
.ap-success__list {
  display: grid;
  gap: 12px;
}
.ap-success__row {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
}
.ap-success__check {
  color: var(--green);
  display: grid;
  place-items: center;
  padding-top: 1px;
}
.ap-why__copy {
  margin: 0;
}

/* ---------- escalation desk ---------- */
.ap-esc {
  margin-top: 28px;
}
.ap-esc__heading {
  margin: 0 0 4px;
}
.ap-esc__sub {
  margin: 0 0 14px;
}
.ap-esc__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ap-esc-tile {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.ap-esc-tile__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-bright);
}
.ap-esc-tile__team {
  margin: 2px 0 0;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ---------- footer ---------- */
.ap-footer {
  margin: 28px 0 4px;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .sn-hero,
  .ap-hero {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 24px;
  }
  .sn-hero__right {
    justify-self: start;
  }
  .ap-hero__right {
    width: 100%;
  }
  .sn-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .sn-twoup,
  .ap-twoup {
    grid-template-columns: 1fr;
  }
  .sn-method__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .ap-top__grid {
    grid-template-columns: 1fr;
  }
  .ap-next__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ap-esc__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sn-hero,
  .ap-hero {
    padding: 26px 22px;
  }
  .sn-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .sn-checks__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .sn-checks__score {
    text-align: left;
  }
  .sn-method__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .ap-progress__minis {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .ap-next__grid {
    grid-template-columns: 1fr;
  }
  .ap-card__chips {
    row-gap: 6px;
  }
  .ap-card__time {
    margin-left: 0;
  }
}
