/* ==========================================================================
   Sample Dashboard v2 — V1→V2 merge round compositions.
   .hv- = Snapshot hero (ported V1 hero + 3-tile readout strip).
   .pd- = Profile Match identity composition ("His details don't match").
   Motion: transform/opacity only. Stacks ≤880px, refines ≤640px.
   ========================================================================== */

/* ---------- Snapshot hero (.hv-) ---------- */

.hv-hero {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 40px;
  align-items: start;
}

.hv-hero__left {
  display: grid;
  gap: 16px;
  align-content: start;
  padding-top: 2px;
}

.hv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hv-pulse-dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  flex: none;
}
.hv-pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-bright);
  opacity: 0.5;
  animation: hv-pulse 2.2s var(--ease-out) infinite;
}
@keyframes hv-pulse {
  0% { transform: scale(0.6); opacity: 0.55; }
  70% { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

.hv-chip-text {
  text-transform: uppercase;
  font-size: 10.5px;
  font-family: var(--font-mono);
}

.hv-brand-icon {
  width: 30px;
  height: 30px;
  margin-top: 4px;
}

.hv-mono-line {
  letter-spacing: 0.12em;
}

.hv-headline {
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.06;
  color: var(--ink);
}
.hv-headline__accent {
  color: var(--muted-2);
}

.hv-paragraph {
  max-width: 52ch;
  font-size: 1rem;
}

.hv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* ---------- Right panel ---------- */

.hv-hero__right {
  display: grid;
}

.hv-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.hv-panel .divider {
  width: 100%;
  margin: 4px 0;
}

.hv-panel__eyebrow {
  text-align: center;
}

.hv-ring-caption {
  text-align: center;
  margin-top: -4px;
}

.hv-reviews {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hv-review-tile {
  display: grid;
  gap: 4px;
  text-align: center;
  padding: 4px 2px;
}

.hv-review-tile__rating {
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--ink);
}

.hv-review-tile__star {
  color: var(--accent-bright);
  font-weight: 650;
}

.hv-review-tile__label {
  line-height: 1.4;
}

.hv-stat-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
}

.hv-stat-cell {
  display: grid;
  gap: 4px;
  align-content: start;
}

.hv-stat-cell__tick {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--r-pill);
}

.hv-stat-cell__value {
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.hv-stat-cell__label {
  line-height: 1.35;
}

.hv-engine-label {
  width: 100%;
  text-align: left;
}

.hv-engine-strip {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hv-engine-tile {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel-2);
}

.hv-engine-tile__icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.hv-engine-tile__name {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Readout strip (3 tiles) ---------- */

.hv-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.hv-readout__tile .metric {
  gap: 6px;
}

/* ---------- responsive: hero + readout ---------- */

@media (max-width: 880px) {
  .hv-hero {
    grid-template-columns: 1fr;
  }
  .hv-readout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hv-reviews {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .hv-stat-grid {
    gap: 14px 8px;
  }
}

/* ==========================================================================
   Profile Match — identity composition (.pd-)
   ========================================================================== */

.pd-heading {
  display: grid;
  gap: 10px;
  margin: 8px 0 20px;
}

.pd-heading__subhead {
  max-width: 62ch;
}

.pd-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.pd-panel__title {
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-top: 4px;
}

/* ---------- "What AI sees" inset ---------- */

.pd-signals {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.pd-signals__avatar {
  width: 72px;
  height: 72px;
  flex: none;
}

.pd-signals__body {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.pd-signals__title {
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--ink);
}

.pd-signals__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}

.pd-signals__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pd-signals__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
  margin-top: 6px;
}

.pd-signals__text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .pd-signals {
    flex-direction: column;
  }
  .pd-signals__list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Surfaces grid ---------- */

.pd-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

@media (max-width: 880px) {
  .pd-grid {
    grid-template-columns: 1fr;
  }
}

.pd-card {
  padding: 0;
  overflow: hidden;
}

.pd-card__band {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-2);
  padding: 10px 14px;
  border-radius: 14px 14px 0 0;
}

.pd-card__icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
  flex: none;
}

.pd-card__monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  flex: none;
}

.pd-card__platform {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pd-card__body {
  padding: 4px 16px 12px;
}

.pd-card__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
}

.pd-card__divider {
  margin: 0;
}

.pd-card__field-label {
  width: 84px;
  flex: none;
}

.pd-card__field-value {
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.4;
}

/* ---------- Result strip ---------- */

.pd-result {
  background: var(--red-soft);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.pd-result__label {
  color: var(--red);
}

.pd-result__text {
  color: var(--muted);
}

/* ---------- Issues meta row (who / fix / evidence) ---------- */

.pm-issue-row__body {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.pd-issue__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.pd-issue__who {
  flex: none;
}

.pd-issue__fix {
  flex: 1 1 auto;
  min-width: 160px;
}

.pd-issue__ref {
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--muted-2);
}

.pd-issue__evidence {
  flex: none;
}
