/* ==========================================================================
   Report dashboard — /r/<slug>
   Sales-first: hero -> review gap -> reputation -> money leaks -> plan
   -> offer -> closed [Techniczny deep dive] -> footer.
   Mobile-first from 320px to 1440px. No external assets.
   ========================================================================== */

.report {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px var(--pad-x) 48px;
}

.report__root {
  display: grid;
  gap: 16px;
}

.report__skeleton {
  display: grid;
  gap: 16px;
}

/* business header -------------------------------------------------------- */

.biz {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 2px;
}

.biz__name {
  font-size: clamp(24px, 6vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.biz__address {
  font-size: 14.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.biz__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 6px;
  font-size: 13.5px;
}

/* shared card block ------------------------------------------------------ */

.block {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.block__head {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.block__title {
  font-size: clamp(20px, 5vw, 25px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.block__sub {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   HERO — the sales hook
   -------------------------------------------------------------------------- */

.hero {
  --hero-accent: var(--warn);
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 22px 18px 20px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--hero-accent);
}

.hero--red {
  --hero-accent: var(--bad);
  border-color: #f5c9c4;
  background: linear-gradient(168deg, #ffffff 8%, #fff7f6 62%, #fdeceb 100%);
}

.hero--orange {
  --hero-accent: var(--warn);
  border-color: #f2d8b0;
  background: linear-gradient(168deg, #ffffff 8%, #fffaf2 62%, #fff1e0 100%);
}

.hero--green {
  --hero-accent: var(--good);
  border-color: #bfe7d3;
  background: linear-gradient(168deg, #ffffff 8%, #f6fdf9 62%, #e8f8ef 100%);
}

.hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--hero-accent);
}

.hero--orange .hero__chip,
.hero--green .hero__chip {
  color: #fff;
}

.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.hero__tier {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  font-size: clamp(25px, 6.6vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero__subtitle {
  max-width: 54ch;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__facts {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.hero__fact {
  position: relative;
  padding: 10px 12px 10px 24px;
  border: 1px solid rgba(11, 18, 32, 0.07);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.hero__fact::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hero-accent);
}

/* --------------------------------------------------------------------------
   REVIEW GAP — you vs the district leader
   -------------------------------------------------------------------------- */

.gap__numbers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}

.gap__side {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.gap__side--leader {
  justify-items: end;
  text-align: right;
}

.gap__side-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gap__value {
  font-size: clamp(34px, 10.5vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.gap__side--you .gap__value {
  color: var(--ink);
}

.gap__side--leader .gap__value {
  color: var(--brand);
}

.gap__side-unit {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted-2);
  overflow-wrap: anywhere;
}

.gap__delta {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 4px 8px 7px;
  border-radius: var(--r-sm);
  background: var(--bad-soft);
  color: #b42318;
  white-space: nowrap;
}

.gap__delta-value {
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.gap__delta-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b42318;
  opacity: 0.75;
}

.gap__bars {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.gap__bar-row {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.gap__bar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  font-size: 12.5px;
}

.gap__bar-label {
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  color: var(--ink-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gap__bar-count {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.gap__bar {
  height: 10px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: #e9eff7;
}

.gap__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.gap__bar-fill--you {
  background: var(--ink);
}

.gap__bar-fill--leader {
  background: linear-gradient(90deg, #005ae6 0%, #2f7bff 100%);
}

.gap__rating {
  font-size: 12.5px;
  color: var(--muted);
}

.gap__pace {
  padding: 11px 13px;
  border: 1px solid #cfe0fb;
  border-radius: var(--r-sm);
  background: #f2f7ff;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--brand-dark);
}

.gap__summary {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   REPUTATION — stacked 1..5 star bars
   -------------------------------------------------------------------------- */

.rep__people {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.rep__person {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rep__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.rep__name {
  min-width: 0;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.rep__badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: #f1f4f9;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.rep__badge--leader {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.rep__bar {
  display: flex;
  width: 100%;
  height: 20px;
  overflow: hidden;
  border-radius: 7px;
  background: #eef2f8;
}

.rep__seg {
  display: block;
  height: 100%;
  min-width: 0;
}

.rep__seg--1,
.rep__swatch--1 {
  background: #f04438;
}

.rep__seg--2,
.rep__swatch--2 {
  background: #f79009;
}

.rep__seg--3,
.rep__swatch--3 {
  background: #fdc84b;
}

.rep__seg--4,
.rep__swatch--4 {
  background: #84d99f;
}

.rep__seg--5,
.rep__swatch--5 {
  background: #12b76a;
}

.rep__seg--empty {
  background: #eef2f8;
}

.rep__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: -4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.rep__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rep__swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.rep__compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rep__stat {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fbfdff;
}

.rep__stat--leader {
  border-color: #cfe0fb;
  background: #f4f8ff;
}

.rep__stat-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.rep__stat-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.rep__stat--leader .rep__stat-value {
  color: var(--brand-dark);
}

.rep__stat-note {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted-2);
}

.rep__summary {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   MONEY LEAKS
   -------------------------------------------------------------------------- */

.leaks__list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.leak {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: var(--r-md);
  background: #fff;
}

.leak--critical {
  border-left-color: var(--bad);
  background: linear-gradient(180deg, #fff8f7 0%, #ffffff 46%);
}

.leak__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.leak__title {
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.leak__points {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--bad-soft);
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.leak--warning .leak__points {
  background: var(--warn-soft);
  color: #b54708;
}

.leak__detail {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.leak__action {
  padding: 9px 11px;
  border: 1px solid #e2ecfa;
  border-radius: var(--r-xs);
  background: #f5f9ff;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

.leak__action-label {
  margin-right: 6px;
  font-weight: 800;
  color: var(--brand-dark);
}

.leaks__more {
  justify-self: start;
}

.leaks__total {
  font-size: 12.5px;
  color: var(--muted);
}

.leaks__total b {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   PLAN 30-90 DNI
   -------------------------------------------------------------------------- */

.plan__list {
  display: grid;
  min-width: 0;
}

.plan__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  min-width: 0;
  padding: 11px 0 11px 14px;
  border-top: 1px solid var(--line);
}

.plan__row:first-child {
  border-top: 0;
  padding-top: 4px;
}

.plan__row::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  bottom: 14px;
  width: 3px;
  border-radius: var(--r-pill);
  background: var(--warn);
}

.plan__row--good::before {
  background: var(--good);
}

.plan__row--critical::before {
  background: var(--bad);
}

.plan__label {
  min-width: 0;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.plan__now,
.plan__target {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.plan__target {
  color: var(--brand-dark);
  font-weight: 700;
}

.plan__caption {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.plan__how {
  grid-column: 1 / -1;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}

.plan__note {
  padding: 10px 12px;
  border-radius: var(--r-xs);
  background: var(--bg);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   OFFER
   -------------------------------------------------------------------------- */

.offer {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 22px 18px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: radial-gradient(130% 130% at 100% 0%, #0a58e8 0%, #0b1220 62%);
  color: #eaf1ff;
  box-shadow: var(--shadow-md);
  scroll-margin-top: 80px;
}

.offer::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.offer__kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9dbdff;
}

.offer__headline {
  font-size: clamp(20px, 5.2vw, 27px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.offer__body {
  font-size: 14px;
  line-height: 1.5;
  color: #c9d8f6;
  text-wrap: pretty;
}

.offer__cta {
  justify-self: start;
  margin-top: 2px;
  background: #fff;
  color: var(--ink);
}

.offer__cta:hover {
  background: #eaf1ff;
}

.offer__upgrade {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
}

.offer__upgrade-text {
  font-size: 13px;
  line-height: 1.45;
  color: #dbe6ff;
}

.offer__upgrade-btn {
  justify-self: start;
  background: #ffd166;
  border-color: transparent;
  color: #231a00;
  box-shadow: 0 12px 26px -16px rgba(255, 209, 102, 0.9);
}

.offer__upgrade-btn:hover {
  background: #ffdf8a;
}

.offer__status {
  min-height: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #9dbdff;
}

.offer__status.is-error,
.panel__status.is-error {
  color: #ffb3ad;
}

.offer__actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.offer__actions .btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.offer__actions .btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}

.offer__note {
  min-height: 18px;
  font-size: 12.5px;
  color: #9dbdff;
}

/* --------------------------------------------------------------------------
   TECH DEEP DIVE (closed <details>)
   -------------------------------------------------------------------------- */

.deep {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 76px;
}

.deep__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 16px;
  list-style: none;
  cursor: pointer;
}

.deep__summary::-webkit-details-marker {
  display: none;
}

.deep__summary:hover .deep__label {
  color: var(--brand);
}

.deep__label {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.deep__hint {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: right;
  color: var(--muted-2);
}

.deep__chev {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.deep[open] .deep__chev {
  transform: rotate(-135deg);
}

.deep__body {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 4px 14px 18px;
  border-top: 1px solid var(--line);
}

.deep__body > * {
  min-width: 0;
}

.deep .card,
.deep .panel {
  box-shadow: none;
}

.deep .panel {
  padding: 16px 14px;
  background: #fcfdff;
}

/* panel (also used by the express score lock) ---------------------------- */

.panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.panel__head {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.panel__title {
  font-size: clamp(17px, 4.2vw, 20px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.panel__sub {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.panel__cta {
  justify-self: start;
}

.panel__status {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.panel--locked {
  gap: 10px;
  border-style: dashed;
  border-color: #c9d8f0;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

/* score grid: gauge + radar ---------------------------------------------- */

.score-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.gauge-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 16px 20px;
  text-align: center;
  background: #fcfdff;
}

.gauge-card__scale {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.gauge-wrap {
  width: min(100%, 250px);
}

.gauge {
  width: 100%;
  height: auto;
  overflow: visible;
}

.gauge__track {
  stroke: #e7edf6;
}

.gauge__value {
  fill: var(--ink);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.gauge__unit {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.gauge-card__grade {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 800;
}

.gauge-card__verdict {
  max-width: 32ch;
  font-size: 14px;
  color: var(--ink-2);
}

/* radar ------------------------------------------------------------------ */

.radar-card {
  display: grid;
  gap: 10px;
  padding: 16px 10px 18px;
  background: #fcfdff;
}

.radar-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 6px;
}

.radar-card__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.radar-card__hint {
  font-size: 12px;
  color: var(--muted-2);
}

.radar {
  width: min(100%, 360px);
  margin: 0 auto;
}

.radar__ring {
  fill: none;
  stroke: #e7edf6;
  stroke-width: 1;
}

.radar__axis {
  stroke: #dfe7f2;
  stroke-width: 1;
}

.radar__area {
  stroke-width: 2.5;
  stroke-linejoin: round;
  transform-box: view-box;
  transform-origin: 170px 165px;
  animation: radar-in 0.7s var(--ease) both;
}

.radar__dots {
  transform-box: view-box;
  transform-origin: 170px 165px;
  animation: radar-in 0.7s var(--ease) both;
}

.radar__dot {
  stroke: #fff;
  stroke-width: 1.5;
}

.radar__label {
  fill: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
}

.radar__value {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

@keyframes radar-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* per-category breakdown under the radar */

.cats {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.cats__item {
  display: grid;
  gap: 5px;
}

.cats__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.cats__label {
  font-weight: 600;
  color: var(--ink-2);
}

.cats__score {
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cats__bar {
  height: 6px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: #e9eff7;
}

.cats__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.cats__fill--good {
  background: var(--good);
}

.cats__fill--warning {
  background: var(--warn);
}

.cats__fill--critical {
  background: var(--bad);
}

/* metric tiles ----------------------------------------------------------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.metric {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding: 11px 11px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  border-radius: var(--r-md);
  background: #fff;
}

.metric__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric__value {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.metric__hint {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted-2);
}

.metric--good {
  border-left-color: var(--good);
}

.metric--good .metric__value {
  color: #067647;
}

.metric--warning {
  border-left-color: var(--warn);
}

.metric--warning .metric__value {
  color: #b54708;
}

.metric--critical {
  border-left-color: var(--bad);
}

.metric--critical .metric__value {
  color: #b42318;
}

.metric--neutral .metric__value {
  color: var(--ink);
}

/* findings checklist ----------------------------------------------------- */

.findings {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.findings__group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.findings__group:first-child {
  margin-top: 0;
}

.findings__count {
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: #eef2f8;
  color: var(--ink-2);
  font-size: 10.5px;
  letter-spacing: 0;
}

.finding {
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  border-radius: var(--r-md);
  background: #fff;
}

.finding--critical {
  border-left-color: var(--bad);
  background: linear-gradient(180deg, #fff8f7 0%, #ffffff 42%);
}

.finding--warning {
  border-left-color: var(--warn);
}

.finding--ok {
  border-left-color: var(--good);
}

.finding__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  list-style: none;
  cursor: pointer;
}

.finding__summary::-webkit-details-marker {
  display: none;
}

.finding__summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.finding[open] .finding__summary::after {
  transform: rotate(-135deg);
}

.finding__title {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.finding__points {
  grid-row: 1;
  grid-column: 2;
  justify-self: end;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--bad-soft);
  color: #b42318;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.finding__points--ok {
  background: var(--good-soft);
  color: #067647;
}

.finding__summary::after {
  grid-row: 1;
  grid-column: 3;
}

.finding__body {
  display: grid;
  gap: 8px;
  padding: 0 13px 13px;
}

.finding__detail {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.finding__action {
  padding: 9px 11px;
  border: 1px solid #e2ecfa;
  border-radius: var(--r-xs);
  background: #f5f9ff;
  font-size: 13px;
  line-height: 1.45;
}

.finding__action-label {
  font-weight: 800;
  color: var(--brand-dark);
}

.finding__cat {
  font-size: 11.5px;
  color: var(--muted-2);
}

/* benchmark -------------------------------------------------------------- */

.bench-summary {
  padding: 10px 12px;
  border: 1px solid #e2ecfa;
  border-radius: var(--r-xs);
  background: #f5f9ff;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

.bench {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

/* mobile: every row becomes a card, labels come from data-label */
.bench,
.bench thead,
.bench tbody,
.bench tfoot,
.bench tr,
.bench th,
.bench td {
  display: block;
}

.bench thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.bench tr {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}

.bench tr:last-child {
  margin-bottom: 0;
}

.bench th,
.bench td {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border: 0;
  text-align: right;
}

.bench td::before {
  content: attr(data-label);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.bench .bench__name {
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef3fa;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bench__you {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.bench__reviews {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.bench__bar {
  display: block;
  width: 72px;
  height: 5px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: #e9eff7;
}

.bench__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.bench__row--you td,
.bench__row--you th {
  background: #f4f8ff;
}

.bench__row--you .bench__bar > span {
  background: var(--ink);
}

.bench__row--median {
  color: var(--muted);
  background: #f7fafd;
}

.bench__flag {
  font-weight: 700;
}

.bench__flag--yes {
  color: #067647;
}

.bench__flag--no {
  color: #b42318;
}

/* tablet and up: back to a real comparison table */
@media (min-width: 700px) {
  .bench {
    display: table;
    table-layout: fixed;
  }

  .bench thead {
    display: table-header-group;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  .bench tbody {
    display: table-row-group;
  }

  .bench tfoot {
    display: table-row-group;
  }

  .bench tr {
    display: table-row;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .bench th,
  .bench td {
    display: table-cell;
    padding: 11px 10px;
    border-bottom: 1px solid #eef3fa;
    text-align: left;
    vertical-align: middle;
  }

  .bench thead th {
    padding: 0 10px 9px;
    border-bottom: 1px solid var(--line);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
  }

  .bench thead th:nth-child(2),
  .bench thead th:nth-child(3),
  .bench thead th:nth-child(4),
  .bench thead th:nth-child(5) {
    text-align: center;
  }

  .bench tbody td {
    text-align: center;
  }

  .bench td::before {
    content: none;
  }

  .bench .bench__name {
    display: table-cell;
    padding: 11px 10px;
    border-bottom: 1px solid #eef3fa;
    font-size: 13px;
  }

  .bench tfoot .bench__name {
    font-size: 12px;
  }

  .bench__reviews {
    justify-content: center;
  }

  .bench tr:last-child {
    margin-bottom: 0;
  }
}

/* link checks ------------------------------------------------------------ */

.checks {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.check {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  border-radius: var(--r-md);
  background: #fff;
}

.check--good {
  border-left-color: var(--good);
}

.check--warning {
  border-left-color: var(--warn);
}

.check--critical {
  border-left-color: var(--bad);
}

.check__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}

.check__label {
  font-size: 13px;
  font-weight: 800;
}

.check__badge {
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: #eef2f8;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.check--good .check__badge {
  background: var(--good-soft);
  color: #067647;
}

.check--warning .check__badge {
  background: var(--warn-soft);
  color: #b54708;
}

.check--critical .check__badge {
  background: var(--bad-soft);
  color: #b42318;
}

.check__url {
  font-size: 11.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.check__reason {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* raw card data ---------------------------------------------------------- */

.techdata {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
}

.techdata__row {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #eef3fa;
  border-radius: var(--r-xs);
  background: #fff;
}

.techdata dt {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.techdata dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.report__foot {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 22px 4px 8px;
  border-top: 1px solid var(--line);
}

.report__brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.report__meta {
  font-size: 13px;
  color: var(--muted);
}

.report__short {
  font-size: 12.5px;
  word-break: break-all;
}

.report__legal {
  max-width: 62ch;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* error / expired state -------------------------------------------------- */

.report__state {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 460px;
  margin: 8vh auto 0;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.state__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.state__text {
  font-size: 14.5px;
  color: var(--muted);
}

.state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* skeleton blocks -------------------------------------------------------- */

.sk-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}

.sk-card--center {
  justify-items: center;
}

.sk-bar {
  height: 14px;
  width: 100%;
}

.sk-bar--short {
  width: 120px;
}

.sk-bar--mid {
  width: 60%;
}

.sk-title {
  height: 30px;
  width: 62%;
}

.sk-circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
}

.sk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sk-tile {
  height: 84px;
  border-radius: var(--r-md);
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 420px) {
  .hero {
    padding: 24px 20px 22px 24px;
  }

  .deep__body {
    padding: 6px 16px 20px;
  }
}

@media (min-width: 520px) {
  .offer__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gauge-card {
    padding: 22px 20px 24px;
  }

  .techdata {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .report {
    padding-top: 28px;
  }

  .block {
    padding: 24px 22px;
  }

  .block__sub {
    font-size: 14px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__fact {
    font-size: 14px;
  }

  .panel {
    padding: 22px 20px 24px;
  }

  .offer {
    padding: 28px 26px;
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sk-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gap__numbers {
    gap: 16px;
  }

  .gap__delta-value {
    font-size: 19px;
  }

  .plan__row {
    grid-template-columns: 1.05fr 1.15fr 1.3fr 1.4fr;
    align-items: baseline;
    gap: 4px 14px;
    padding: 12px 0 12px 16px;
  }

  .plan__row:first-child {
    padding-top: 6px;
  }

  .plan__now,
  .plan__target {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    justify-content: flex-start;
    text-align: left;
  }

  .plan__how {
    grid-column: auto;
  }
}

@media (min-width: 900px) {
  .report {
    max-width: 960px;
    padding-top: 32px;
  }

  .report__root {
    gap: 20px;
  }

  .report__skeleton {
    gap: 20px;
  }

  .score-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: stretch;
  }

  .gauge-card {
    align-content: center;
  }

  .radar-card {
    padding: 18px 20px 20px;
  }

  .deep__body {
    gap: 20px;
  }

  .hero {
    padding: 28px 26px 24px 30px;
  }
}

@media (max-width: 419px) {
  .deep__hint {
    display: none;
  }
}
