:root {
  --ink: #111827;
  --muted: #647067;
  --paper: #ffffff;
  --surface: #f7fbf7;
  --line: #d8e8cf;
  --line-strong: #bdd7b4;
  --green: #16a34a;
  --green-bright: #53d879;
  --green-dark: #166534;
  --green-deep: #142018;
  --green-soft: #edf9ef;
  --red: #dc3f35;
  --orange: #e58324;
  --blue: #2563d9;
  --shadow: 0 20px 60px rgba(36, 76, 43, 0.1);
  --shadow-soft: 0 10px 30px rgba(36, 76, 43, 0.07);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(225, 248, 229, 0.42) 0%, rgba(255, 255, 255, 0) 24%, rgba(244, 250, 236, 0.48) 76%, rgba(218, 246, 230, 0.42) 100%),
    linear-gradient(180deg, #fbfefb 0%, #ffffff 38%, #f8fcf8 100%);
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

:where(a, button, summary, input, select, textarea, table[tabindex]):focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
}

h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .brand, .score-value { letter-spacing: 0; }

.report-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 0 clamp(18px, 5vw, 76px);
  color: #f7fff9;
  background: rgba(13, 23, 17, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 30px rgba(12, 24, 16, 0.12);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #77ec9d;
  border: 1.5px solid #77ec9d;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
}

.report-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #d5e2d9;
  font-size: 12px;
  font-weight: 650;
}

.report-nav-links > a:not(.nav-action) { transition: color 160ms ease; }
.report-nav-links > a:not(.nav-action):hover { color: #ffffff; }

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid #63de8c;
  border-radius: 999px;
  color: #0c2314;
  background: #63de8c;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease;
}

.nav-action:hover,
.button:hover { transform: translateY(-1px); background: #79e59d; }

.report-hero {
  display: grid;
  grid-template-columns: minmax(350px, 0.9fr) minmax(440px, 1.1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  min-height: 596px;
  padding: 64px clamp(18px, 6vw, 96px) 72px;
  background:
    radial-gradient(circle at 12% 18%, rgba(105, 219, 135, 0.14), transparent 34%),
    linear-gradient(90deg, #eaf8ed 0%, #fbfdf7 50%, #e6f7ee 100%);
}

.kicker,
.section-label,
.status-label,
.micro-label {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.kicker::before,
.section-label::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin: 0 9px 3px 0;
  background: currentColor;
}

.report-hero h1 {
  max-width: 690px;
  margin-top: 17px;
  font-size: clamp(38px, 3.6vw, 52px);
  line-height: 1.08;
}

.report-hero-copy > p {
  max-width: 625px;
  margin-top: 20px;
  color: #435248;
  font-size: 16px;
  line-height: 1.68;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.meta-row span { position: relative; padding-left: 13px; }
.meta-row span::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.hero-dashboard {
  padding: 18px;
  border: 1px solid rgba(188, 216, 178, 0.86);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 5px 15px;
}

.dashboard-head h2 { font-size: 18px; }
.dashboard-head p { margin-top: 4px; color: var(--muted); font-size: 12px; }

.evidence-badge {
  height: fit-content;
  padding: 7px 10px;
  border: 1px solid #b9dfc2;
  border-radius: 999px;
  color: var(--green-dark);
  background: #effaf1;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 14px;
}

.score-panel,
.signal-panel {
  min-height: 236px;
  padding: 22px;
  border-radius: 20px;
}

.score-panel {
  display: grid;
  justify-items: center;
  align-content: center;
  color: #ffffff;
  background: var(--green-deep);
}

.score-arc {
  position: relative;
  display: grid;
  place-items: center;
  width: 156px;
  height: 92px;
  overflow: hidden;
}

.score-arc::before,
.score-arc::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 11px solid rgba(255, 255, 255, 0.16);
  border-bottom: 0;
  border-radius: 160px 160px 0 0;
}

.score-arc::after {
  border-color: #57da7d;
  border-right-color: rgba(255, 255, 255, 0.16);
  transform: rotate(-5deg);
  transform-origin: 50% 100%;
}

.score-value {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  font-size: 47px;
  line-height: 1;
  font-weight: 800;
}

.score-panel > strong { margin-top: 11px; color: #86edaa; font-size: 13px; }
.score-panel > small { margin-top: 4px; color: #b8c9be; font-size: 9px; text-align: center; }

.signal-panel {
  background: #ffffff;
  border: 1px solid var(--line);
}

.signal-panel > strong { display: block; margin-bottom: 10px; font-size: 13px; }

.signal-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 9px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid #e7efe3;
}

.signal-row > span:first-child {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
}

.signal-row.high > span:first-child { color: var(--red); }
.signal-row.medium > span:first-child { color: var(--orange); }
.signal-row.good > span:first-child { color: var(--green); }
.signal-row p { font-size: 11px; line-height: 1.46; }
.signal-row small { color: var(--muted); font-size: 9px; font-weight: 700; }

.hero-proof-strip {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  overflow: hidden;
  padding: 9px 12px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}
.hero-proof-strip img { display: block; width: 112px; height: 70px; border-radius: 10px; object-fit: cover; object-position: top; }
.hero-proof-strip span { display: grid; gap: 4px; }
.hero-proof-strip small { color: var(--green-dark); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.hero-proof-strip strong { font-size: 12px; line-height: 1.4; }
.hero-proof-strip b { color: var(--green-dark); font-size: 10px; white-space: nowrap; }

.report-section {
  padding: 68px clamp(18px, 6vw, 96px);
  border-top: 1px solid rgba(216, 232, 207, 0.78);
  background: rgba(255, 255, 255, 0.82);
}

.report-section.soft {
  background:
    linear-gradient(90deg, #eef9f0 0%, #fdfdf9 51%, #edf8f3 100%),
    #f8fcf8;
}

.report-section.dark { color: #ffffff; background: var(--green-deep); }

.section-head {
  display: grid;
  grid-template-columns: 150px minmax(300px, 0.9fr) minmax(260px, 0.65fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head.stacked { display: block; max-width: 900px; }
.section-head.stacked h2 { margin-top: 15px; }
.section-head.stacked > p { max-width: 760px; margin-top: 14px; }

.section-head h2 { font-size: clamp(28px, 2.7vw, 34px); line-height: 1.18; font-weight: 700; }
.section-head > p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.dark .section-label { color: #79e39c; }
.dark .section-head h2 { color: #ffffff; }
.dark .section-head > p { color: #b8cbc0; }

.finding-list { display: grid; gap: 12px; }
.finding-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(240px, 0.8fr) minmax(300px, 1.2fr) 105px;
  gap: 22px;
  align-items: start;
  overflow: hidden;
  padding: 23px 24px 23px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.finding-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--green);
}
.finding-row:has(.finding-id.high)::before { background: var(--red); }
.finding-row:has(.finding-id.medium)::before { background: var(--orange); }

.finding-id {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}
.finding-id.high { color: var(--red); }
.finding-id.medium { color: var(--orange); }
.finding-id.good { color: var(--green); }
.finding-row h3 { font-size: 17px; line-height: 1.42; font-weight: 650; }
.finding-row p { color: var(--muted); font-size: 13px; line-height: 1.62; }

.priority-chip {
  justify-self: end;
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.priority-chip.high { color: var(--red); }
.priority-chip.medium { color: #b76615; }
.priority-chip.good { color: var(--green-dark); }

.evidence-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 20px;
  align-items: stretch;
}

.evidence-figure {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}
.evidence-figure img { display: block; width: 100%; height: auto; }
.evidence-figure figcaption { padding: 13px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }

.quick-win-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  color: #ffffff;
  border-radius: var(--radius);
  background: var(--green-deep);
  box-shadow: var(--shadow-soft);
}
.quick-win-panel > span { color: #7ce49e; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.quick-win-panel h3 { margin-top: 22px; font-size: 24px; line-height: 1.28; }
.quick-win-panel > p { margin-top: 13px; color: #bfd0c5; font-size: 13px; line-height: 1.62; }
.quick-win-panel > div { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.quick-win-panel strong { display: block; color: #7ce49e; font-size: 10px; text-transform: uppercase; }
.quick-win-panel small { display: block; margin-top: 7px; color: #d4e2d8; font-size: 12px; line-height: 1.55; }

.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.guidance-grid, .metric-grid, .renewal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guidance-item, .metric-item, .renewal-item {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}
.guidance-item > span, .renewal-item > span { color: var(--green-dark); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.guidance-item h3, .renewal-item h3 { margin-top: 26px; font-size: 17px; line-height: 1.42; font-weight: 650; }
.guidance-item p, .renewal-item p { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.58; }

.quick-win {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 25px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}
.quick-win span { color: var(--green-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.quick-win strong { max-width: 800px; font-size: 19px; line-height: 1.5; }

.locked-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.locked-list > div {
  min-height: 108px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}
.locked-list strong { display: block; font-size: 13px; }
.locked-list p { margin-top: 6px; color: #aac1b5; font-size: 12px; line-height: 1.55; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 38px clamp(18px, 6vw, 96px);
  color: #ffffff;
  background: #0c321f;
}
.cta-band h2 { font-size: 25px; }
.cta-band p { max-width: 680px; margin-top: 7px; color: #bdd0c3; font-size: 13px; line-height: 1.55; }

.methodology { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 30px; }
.formula-box {
  padding: 27px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--green-soft);
}
.formula-box code { display: block; color: var(--green-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.7; white-space: normal; }
.method-list { display: grid; gap: 9px; }
.method-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff; }
.method-list strong { font-size: 13px; }
.method-list p { color: var(--muted); font-size: 13px; line-height: 1.58; }

.delta-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.delta-item {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}
.delta-item > span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.delta-item strong { display: block; margin-top: 26px; font-size: 28px; }
.delta-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.delta-item.good strong { color: var(--green-dark); }
.delta-item.warn strong { color: #b76615; }
.delta-item.bad strong { color: var(--red); }

.year-track { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin: 38px 0 10px; }
.year-point { display: grid; gap: 4px; }
.year-point span { color: var(--muted); font-size: 10px; }
.year-point strong { font-size: 37px; }
.year-line { position: relative; height: 4px; border-radius: 999px; background: #ccebd8; }
.year-line::before, .year-line::after { content: ""; position: absolute; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); }
.year-line::before { left: 0; }
.year-line::after { right: 0; }

.ledger-table, .competitor-table, .evidence-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  font-size: 12px;
  box-shadow: var(--shadow-soft);
}
.ledger-table th, .competitor-table th, .evidence-table th { padding: 13px 12px; border-bottom: 1px solid var(--line-strong); color: var(--muted); background: #f4faf3; font-size: 9px; text-align: left; text-transform: uppercase; }
.ledger-table td, .competitor-table td, .evidence-table td { padding: 15px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger-table tr:last-child td, .competitor-table tr:last-child td, .evidence-table tr:last-child td { border-bottom: 0; }
.table-status { font-size: 9px; font-weight: 800; text-transform: uppercase; }
.table-status.resolved { color: var(--green-dark); }
.table-status.open { color: #b76615; }
.table-status.new, .table-status.regressed { color: var(--red); }

.bar-list { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 180px 1fr 60px; gap: 14px; align-items: center; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff; }
.bar-row span { font-size: 12px; }
.bar-row small { color: var(--muted); font-size: 10px; text-align: right; }
.bar { height: 7px; overflow: hidden; border-radius: 999px; background: #e2e9e4; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.bar.warn i { background: var(--orange); }
.bar.bad i { background: var(--red); }

.roadmap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.roadmap > div { min-height: 230px; padding: 24px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.035); }
.roadmap span { color: #70dda0; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.roadmap h3 { margin-top: 42px; font-size: 17px; }
.roadmap p { margin-top: 9px; color: #b8cec2; font-size: 13px; line-height: 1.58; }

.report-footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px clamp(18px, 6vw, 96px); color: #c2d0c8; background: #07130e; font-size: 11px; }

@media (max-width: 1000px) {
  .report-hero, .section-head, .methodology { grid-template-columns: 1fr; }
  .report-hero { min-height: 0; }
  .report-hero-copy { max-width: 790px; }
  .guidance-grid, .metric-grid, .renewal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finding-row { grid-template-columns: 48px 1fr 1fr; }
  .priority-chip { grid-column: 2 / -1; justify-self: start; }
  .roadmap, .delta-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .report-nav { min-height: 62px; padding: 0 14px; }
  .report-nav-links { gap: 10px; }
  .report-nav-links > a:not(.nav-action) { display: none; }
  .brand { font-size: 16px; }
  .nav-action { min-height: 38px; padding: 0 13px; }
  .report-hero { padding: 46px 15px 56px; }
  .report-hero h1 { font-size: 34px; }
  .report-hero-copy > p { font-size: 15px; }
  .hero-dashboard { padding: 12px; border-radius: 20px; }
  .dashboard-head { flex-direction: column; }
  .evidence-badge { width: fit-content; }
  .dashboard-body { grid-template-columns: 1fr; }
  .score-panel, .signal-panel { min-height: 0; }
  .score-panel { min-height: 220px; }
  .hero-proof-strip { grid-template-columns: 86px 1fr; }
  .hero-proof-strip img { width: 86px; height: 62px; }
  .hero-proof-strip b { display: none; }
  .report-section { padding: 58px 15px; }
  .section-head { gap: 12px; }
  .section-head h2 { font-size: 28px; }
  .finding-row { grid-template-columns: 40px 1fr; gap: 13px; padding: 21px 18px; }
  .finding-row > p, .priority-chip { grid-column: 2; }
  .evidence-action-grid, .two-up, .guidance-grid, .metric-grid, .renewal-grid, .locked-list, .delta-strip, .roadmap { grid-template-columns: 1fr; }
  .quick-win-panel h3 { font-size: 21px; }
  .quick-win { grid-template-columns: 1fr; gap: 12px; }
  .cta-band { align-items: flex-start; flex-direction: column; }
  .button { width: 100%; }
  .method-list > div { grid-template-columns: 1fr; gap: 7px; }
  .ledger-table, .competitor-table, .evidence-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: var(--line-strong) transparent;
    touch-action: pan-x;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .bar-row { grid-template-columns: 1fr; gap: 7px; }
  .bar-row small { text-align: left; }
  .year-point strong { font-size: 29px; }
  .report-footer { flex-direction: column; }
}

@media print {
  .report-nav, .cta-band { display: none; }
  .report-section, .report-hero { break-inside: avoid; }
  body { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
