:root {
  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-strong: #f8f9fc;
  --ink: #1a1a2e;
  --muted: #5c6370;
  --line: #d6dbe4;
  --accent: #001385;
  --accent-dark: #00085a;
  --accent-light: #1a3aad;
  --blue-mid: #2952cc;
  --blue-soft: rgba(15, 27, 76, 0.08);
  --shadow: 0 4px 24px rgba(15, 27, 76, 0.08);
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;0,900;1,700;1,900&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Roboto", sans-serif;
  font-weight: 500;
}

a {
  color: var(--accent-light);
}

.landing-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.hero {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.sidebar,
.content,
.actor-card,
.card,
.table-card,
.header-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel {
  border-radius: 16px;
  padding: 32px;
}

.hero-copy h1,
.brand,
.header-card h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.95;
  margin: 12px 0 20px;
}

.hero-copy p,
.sidebar-copy,
.header-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.metric-card,
.card {
  border-radius: 12px;
  padding: 20px;
}

.metric-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.metric-card strong,
.card strong {
  display: block;
  font-size: 1.8rem;
  margin-top: 6px;
  color: var(--accent);
}

.time-saved-banner {
  background: linear-gradient(135deg, #001385 0%, #2952cc 100%);
  color: #fff;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.time-saved-banner strong {
  color: #fff;
  font-size: 1.05rem;
}

a.card-link {
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

a.card-link:hover {
  box-shadow: 0 4px 12px rgba(0, 19, 133, 0.15);
  transform: translateY(-2px);
}

.metric-label,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--blue-mid);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 700;
  font-family: "Roboto", sans-serif;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-light);
}

.button-secondary,
.button:not(.button-primary) {
  color: var(--accent);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.button-secondary:hover,
.button:not(.button-primary):hover {
  background: var(--blue-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
}

.sidebar {
  border-radius: 0;
  border-right: 1px solid var(--line);
  border-top: none;
  border-bottom: none;
  border-left: none;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: none;
  background: var(--surface);
}

.brand {
  margin: 6px 0 14px;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--accent);
}

.nav {
  display: grid;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  font-weight: 500;
}

.nav a:hover {
  background: var(--blue-soft);
  color: var(--accent);
}

.actor-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-strong);
}

.actor-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.content {
  border-radius: 0;
  padding: 28px 32px;
  border: none;
  box-shadow: none;
  background: var(--bg);
}

.header-card,
.table-card {
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 18px;
}

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

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 18px;
}

.section-heading,
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.meta-row {
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
}

.table-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-remove {
  background: none;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-remove:hover {
  background: rgba(220, 53, 69, 0.1);
  border-color: #c0392b;
  color: #c0392b;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
  background: var(--blue-soft);
  color: var(--accent);
}

.pill-ready,
.pill-active {
  background: rgba(34, 139, 34, 0.12);
  color: #1a6b1a;
}

.pill-processing,
.pill-queued {
  background: rgba(59, 91, 219, 0.12);
  color: var(--blue-mid);
}

.pill-closed,
.pill-archived,
.pill-retry {
  background: rgba(220, 53, 69, 0.10);
  color: #a02030;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.split-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
}

.stack-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--blue-mid);
  outline-offset: 1px;
  border-color: var(--blue-mid);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.timeline-item span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.flash {
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 700;
}

.flash-success {
  background: rgba(34, 139, 34, 0.10);
  color: #1a6b1a;
}

.flash-error {
  background: rgba(220, 53, 69, 0.10);
  color: #a02030;
}

/* ── Report display ─────────────────────────────── */

.report-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  min-width: 110px;
  text-align: center;
  line-height: 1.3;
}

.score-badge .score-number {
  font-size: 1.4rem;
}

.score-badge .score-label {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.9;
}

.badge-strong   { background: #0d7a3e; }
.badge-good     { background: #1a8c5b; }
.badge-possible { background: #d4880f; }
.badge-weak     { background: #c0392b; }
.badge-not-fit  { background: #8b0000; }

.report-content .report-section-head {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent);
  margin: 1.4rem 0 0.5rem;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--line);
}

.report-content .report-section-head:first-child {
  margin-top: 0;
}

.report-content .report-subhead {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.8rem 0 0.3rem;
}

.report-content .report-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0.3rem 0;
}

.report-content .report-bullet {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink);
  padding: 2px 0 2px 16px;
}

.report-content .report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0 1rem;
  font-size: 0.88rem;
}

.report-content .report-table thead th {
  background: var(--accent);
  color: #fff;
  padding: 8px 10px;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
}

.report-content .report-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.report-content .report-table tbody tr:nth-child(even) {
  background: var(--surface-strong);
}

.report-content .status-met {
  color: #0d7a3e;
  font-weight: 700;
}

.report-content .status-not-met {
  color: #c0392b;
  font-weight: 700;
}

.report-content .status-unclear {
  color: #d4880f;
  font-weight: 700;
}

.report-content .report-question {
  margin: 0.7rem 0;
  padding: 10px 14px;
  background: var(--surface-strong);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.report-content .report-question strong {
  font-size: 0.92rem;
  display: block;
  color: var(--ink);
}

.report-content .report-listen-for {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.report-content .report-hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1rem 0;
}

@media (max-width: 960px) {
  .page-shell,
  .hero,
  .split-layout,
  .header-card {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding: 0;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .content {
    padding: 16px;
  }
}
