.demo-project-toolbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

/* Kill global site body radial (loads before this file) — must win over styles.css `body { background: ... }` */
html.demo-project-proposal-page,
body.demo-project-proposal-page {
  background-color: #ffffff !important;
  background-image: none !important;
}

body.demo-project-proposal-page .site-header {
  background: #ffffff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.demo-project-proposal-page .site-header.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
}

/* --------------------------------------------------------------------------
   Page-only atmosphere (avoid stacking global body gradient + hero gradient)
   -------------------------------------------------------------------------- */
body.demo-project-proposal-page .site-footer {
  margin-top: 0;
  border-top: none;
  padding-top: 56px;
  padding-bottom: 32px;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.55) 0%,
    rgba(255, 255, 255, 0.96) 42%,
    #ffffff 100%
  );
}

body.demo-project-proposal-page .site-footer .footer-inner {
  padding-top: 4px;
}

body.demo-project-proposal-page .demo-scorecard-scope {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 88%, rgba(248, 250, 252, 0.42) 96%, #ffffff 100%);
}

.demo-project-toolbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
}

.demo-project-crumb {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.demo-project-crumb a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.demo-project-crumb a:hover {
  text-decoration: underline;
}

.demo-project-crumb-sep {
  margin: 0 10px;
  opacity: 0.45;
}

.demo-project-crumb-current {
  color: var(--text);
  font-weight: 600;
}

:root {
  --bg: #f6f8fc;
  --bg-soft: #eef3ff;
  --panel: rgba(255, 255, 255, 0.94);
  --border: rgba(95, 120, 184, 0.18);
  --border-strong: rgba(88, 111, 176, 0.3);
  --text: #13203d;
  --text-muted: #4d5d84;
  --text-soft: #6f7fa5;
  --blue: #2d8cff;
  --cyan: #39b9ff;
  --purple: #7b4dff;
  --magenta: #eb4aa9;
  --green: #2daf8d;
  --shadow: 0 24px 70px rgba(40, 61, 115, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.demo-scorecard-scope {
  margin: 0;
  padding: 0 0 48px;
  min-height: 60vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #ffffff;
  width: 100%;
  max-width: none;
  overflow-x: hidden;
}

.demo-scorecard-hero-band {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 28px 0 48px;
  box-sizing: border-box;
  border-radius: 0;
  isolation: isolate;
  /* Single linear wash only (no stacked radial + linear “double band”) */
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 24%, #e8f0fb 52%, #f4f7fb 78%, #ffffff 100%);
}

.demo-scorecard-hero-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(72px, 22%);
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, #ffffff 100%);
  z-index: 0;
}

.demo-scorecard-hero-inner {
  position: relative;
  z-index: 1;
}

.demo-scorecard-hero-inner,
.content {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.demo-scorecard-hero-band .hero-copy.panel,
.demo-scorecard-hero-band .hero-summary.panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 36px rgba(40, 61, 115, 0.05);
  border-color: rgba(226, 232, 240, 0.95);
}

.demo-scorecard-scope img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  position: relative;
}

/* Global styles.css .hero adds its own gradient + borders; keep those site-wide, strip here only */
body.demo-project-proposal-page .demo-scorecard-hero-band header.hero {
  background: none;
  border-top: none;
  border-bottom: none;
  overflow: visible;
}

.hero {
  padding: 32px 0 0;
  margin: 0;
  width: 100%;
}

.hero-topline {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.brand-logo {
  width: 146px;
}

.eyebrow,
.section-label,
.kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 22px;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-copy,
.hero-summary,
.controls,
.scorecard,
.recommendation-card,
.methodology-explainer,
.methodology-sidebar {
  padding: 26px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 15ch;
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.2;
}

.lead,
.section-copy,
.summary-note,
.table-note,
.method-list,
.recommendation-summary,
.recommendation-meta,
.meta-chip,
.field span,
.checkbox span,
.detail-list,
.detail-content p,
.detail-content li {
  color: var(--text-muted);
}

.lead {
  margin-top: 18px;
  max-width: 64ch;
  font-size: 1.03rem;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag,
.pill,
.meta-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.tag {
  padding: 8px 12px;
  background: rgba(45, 140, 255, 0.05);
  color: var(--text);
  font-size: 0.84rem;
}

.section-label {
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--magenta);
}

.metric-grid,
.metrics-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-card {
  padding: 14px;
  border: 1px solid rgba(95, 120, 184, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(245, 248, 255, 0.82);
}

.metric-label {
  display: block;
  color: var(--text-soft);
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 1.04rem;
  line-height: 1.35;
}

.summary-note {
  margin-top: 18px;
  line-height: 1.7;
}

.content {
  padding-bottom: 48px;
}

.scorecard-section,
.recommendations {
  margin-top: 24px;
}

.methodology-section {
  margin-top: 12px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 16px;
}

.section-copy {
  max-width: 58ch;
  line-height: 1.7;
}

.action-button {
  border: 1px solid rgba(235, 74, 169, 0.82);
  border-radius: 999px;
  background: var(--magenta);
  color: #ffffff;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.action-button:hover {
  border-color: rgba(209, 55, 146, 0.95);
  background: #d13792;
}

.action-button:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(45, 140, 255, 0.12);
}

.methodology-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.method-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.85;
}

.effort-scale {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.effort-scale div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(95, 120, 184, 0.12);
  background: rgba(247, 249, 255, 0.94);
}

.effort-scale span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(123, 77, 255, 0.22), rgba(45, 140, 255, 0.24));
  color: var(--text);
  font-weight: 800;
}

.controls {
  margin-top: 22px;
}

.control-row {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span,
.checkbox span {
  font-size: 0.82rem;
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: rgba(45, 140, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(45, 140, 255, 0.1);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 4px;
}

.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.scorecard {
  margin-top: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tbody tr {
  cursor: pointer;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

tbody tr:hover,
tbody tr.active {
  background: rgba(45, 140, 255, 0.05);
}

tbody td {
  padding: 16px 10px 16px 0;
  border-top: 1px solid rgba(95, 120, 184, 0.1);
  vertical-align: top;
  font-size: 0.94rem;
}

tbody td:first-child {
  min-width: 280px;
}

.opportunity-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subtext {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.score-badge,
.effort-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  text-align: center;
}

.score-badge {
  background: linear-gradient(90deg, rgba(235, 74, 169, 0.13), rgba(45, 140, 255, 0.16));
  border: 1px solid rgba(88, 111, 176, 0.14);
}

.effort-badge {
  border: 1px solid var(--border);
  background: rgba(246, 248, 255, 0.95);
}

.table-note {
  margin-top: 16px;
  line-height: 1.7;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.recommendation-card {
  position: relative;
  min-height: 240px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.recommendation-card:hover {
  transform: translateY(-3px);
  border-color: rgba(88, 111, 176, 0.28);
}

.recommendation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pill {
  min-width: 72px;
  justify-content: center;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(90deg, rgba(235, 74, 169, 0.12), rgba(45, 140, 255, 0.12));
}

.recommendation-rank {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.recommendation-summary {
  margin-top: 12px;
  line-height: 1.7;
}

.recommendation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.meta-chip {
  padding: 8px 10px;
  background: rgba(244, 247, 255, 0.95);
  font-size: 0.78rem;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.detail-header p {
  margin-top: 10px;
  line-height: 1.7;
}

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

.detail-metric {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(95, 120, 184, 0.12);
  background: rgba(246, 248, 255, 0.92);
}

.detail-metric span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-metric strong {
  font-size: 1rem;
}

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

.detail-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(95, 120, 184, 0.12);
  background: rgba(248, 250, 255, 0.96);
}

.detail-card h3 {
  margin-bottom: 10px;
}

.detail-card p,
.detail-card li {
  line-height: 1.7;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
}

.empty-state {
  padding: 26px 0;
  color: var(--text-muted);
  text-align: center;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-shell.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 32, 61, 0.42);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(88vh, 980px);
  overflow: auto;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(95, 120, 184, 0.18);
  box-shadow: 0 30px 90px rgba(34, 52, 103, 0.18);
}

.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 1080px) {
  .hero-grid,
  .methodology-layout,
  .recommendation-grid,
  .control-row {
    grid-template-columns: 1fr;
  }

  .detail-metrics,
  .detail-grid,
  .metric-grid,
  .metrics-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .demo-scorecard-hero-inner,
  .content {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .demo-scorecard-hero-band {
    padding: 20px 0 40px;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-copy,
  .hero-summary,
  .controls,
  .scorecard,
  .recommendation-card,
  .methodology-explainer,
  .methodology-sidebar {
    padding: 20px;
  }

  .hero-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    max-width: none;
  }

  .metric-grid,
  .metrics-inline,
  .detail-metrics,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  tbody td:first-child {
    min-width: 220px;
  }

  .modal-shell {
    padding: 12px;
  }

  .modal-card {
    padding: 20px;
  }
}
