:root {
  --bg: #f5f3ef;
  --panel: #ffffff;
  --ink: #1e2528;
  --muted: #667276;
  --line: #d9dedb;
  --accent: #176b63;
  --accent-strong: #0f4d48;
  --warning: #b75f12;
  --danger: #b43030;
  --ok: #28784d;
  --shadow: 0 18px 50px rgba(27, 37, 40, 0.08);
  --night: #11191b;
  --gold: #f0c56e;
  --aqua: #8bd8c9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 48px;
  padding: 0 20px;
  white-space: nowrap;
}

.landing-body {
  background:
    radial-gradient(circle at 78% 10%, rgba(139, 216, 201, 0.16), transparent 34%),
    linear-gradient(180deg, #0f1719 0%, #101819 54%, #f4f1ea 54%, #f4f1ea 100%);
  color: #f7f4eb;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(17, 25, 27, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  text-decoration: none;
}

.landing-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6d98f, #d9a742);
  color: #11191b;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(240, 197, 110, 0.2);
}

.landing-nav nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-nav nav a {
  color: #dce6e3;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.landing-nav .nav-pill {
  background: #f7f4eb;
  color: #11191b;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.landing-hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 0.86fr);
  align-items: center;
  gap: clamp(38px, 6vw, 92px);
  padding: clamp(58px, 7vw, 104px) clamp(24px, 5vw, 76px);
  overflow: hidden;
}

.hero-copy h1 {
  max-width: 920px;
  font-size: clamp(48px, 6.6vw, 92px);
  line-height: 0.95;
  color: #ffffff;
  text-wrap: balance;
}

.hero-lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: #d4dfdc;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

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

.hero-actions .primary-button {
  background: linear-gradient(135deg, #f6d98f, #d6a13b);
  color: #11191b;
  box-shadow: 0 20px 48px rgba(214, 161, 59, 0.24);
}

.hero-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #d7e2de;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.035);
}

.hero-product {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    #1b282a;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.46);
}

.product-top {
  display: flex;
  gap: 7px;
  padding-bottom: 18px;
}

.product-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.product-case {
  padding: 22px;
  border-radius: 8px;
  background: #f7f4eb;
  color: #11191b;
}

.product-case p {
  margin-bottom: 8px;
  color: #697474;
  font-weight: 900;
}

.product-case strong {
  display: block;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.05;
}

.score-line {
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: #dde2dd;
}

.score-line span {
  display: block;
  height: 100%;
  background: var(--accent);
}

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

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.case-header small {
  display: block;
  color: #9dafab;
  font-weight: 900;
}

.case-header strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
}

.case-header em {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(139, 216, 201, 0.16);
  color: #b7fff1;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.signal-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.signal-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
}

.signal-list span {
  color: #a9b9b6;
  font-weight: 800;
}

.signal-list strong {
  color: #ffffff;
  text-align: right;
}

.product-grid div,
.evidence-stack span {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
}

.product-grid small {
  display: block;
  color: #99aaa8;
  font-weight: 800;
}

.product-grid strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 20px;
}

.evidence-stack {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.evidence-stack span {
  color: #dce6e3;
  font-weight: 800;
}

.portal-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(24px, 5vw, 76px) clamp(46px, 6vw, 86px);
}

.portal-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 8px;
}

.portal-card h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.portal-card p {
  color: #526064;
  font-size: 17px;
  line-height: 1.5;
}

.victim-portal {
  background: #fbf8ef;
  color: #11191b;
  box-shadow: 0 24px 70px rgba(17, 25, 27, 0.12);
}

.firm-portal {
  background: #dceee9;
  color: #11191b;
}

.landing-steps {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 28px;
  padding: clamp(42px, 6vw, 84px) clamp(24px, 5vw, 76px);
  background: #f5f3ef;
  color: #11191b;
}

.landing-steps h2 {
  max-width: 520px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

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

.steps-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(17, 25, 27, 0.06);
}

.steps-grid span {
  color: var(--accent);
  font-weight: 900;
}

.steps-grid p {
  color: #526064;
  line-height: 1.5;
}

.landing-band {
  padding: clamp(48px, 7vw, 98px) clamp(24px, 5vw, 76px);
  background: #172326;
  color: #ffffff;
}

.landing-band h2 {
  max-width: 930px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
}

.landing-band p {
  max-width: 720px;
  color: #d6ebe6;
  font-size: 19px;
  line-height: 1.5;
}

.feature-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: #4d595d;
  line-height: 1.5;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: #172326;
  color: #f7f7f4;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f1c36d;
  color: #172326;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.brand span,
.sidebar-note,
.eyebrow,
.metric span {
  color: var(--muted);
}

.sidebar .brand span,
.sidebar-note {
  color: #bdc8c9;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-list a {
  color: #e9eeee;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 8px;
}

.nav-list a.active,
.nav-list a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-note {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: #f1c36d;
  flex: 0 0 auto;
}

.main {
  padding: 32px;
  display: grid;
  gap: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
}

h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.metric,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
}

.metric span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.metric strong {
  font-size: 22px;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.panel {
  padding: 22px;
}

.panel-heading {
  margin-bottom: 20px;
}

.section-copy {
  max-width: 860px;
  color: #526064;
  line-height: 1.55;
}

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

label {
  display: grid;
  gap: 7px;
  color: #394447;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 11px 12px;
}

textarea {
  resize: vertical;
  margin-top: 14px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checklist legend {
  padding: 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checklist label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}

.checklist input {
  width: auto;
}

.upload-zone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-zone label {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed #91a09c;
  border-radius: 8px;
  background: #f9faf8;
  cursor: pointer;
}

.upload-zone span {
  color: var(--muted);
  font-weight: 500;
}

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

button {
  border: 0;
  border-radius: 8px;
  padding: 13px 20px;
  cursor: pointer;
  font-weight: 800;
  min-height: 48px;
  line-height: 1.2;
}

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

.secondary-button,
.ghost-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.primary-button,
.secondary-button,
.ghost-button {
  padding-left: 20px;
  padding-right: 20px;
  line-height: 1.2;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.ai-panel {
  position: sticky;
  top: 24px;
}

.score-ring {
  width: 148px;
  height: 148px;
  margin: 0 auto 18px;
  border: 12px solid #dfe7e3;
  border-top-color: var(--accent);
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-align: center;
}

.score-ring span {
  display: block;
  font-size: 42px;
  font-weight: 900;
}

.score-ring small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.result-block {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 15px;
}

.result-block p,
.result-block li,
.dossier-layout li,
.dossier-layout p {
  color: #4d595d;
  line-height: 1.55;
}

ul {
  padding-left: 18px;
}

.dossier-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 20px;
}

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

.path-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.path-card p {
  color: #526064;
  line-height: 1.5;
}

.path-card strong {
  margin-top: auto;
  font-size: 22px;
}

.path-card.highlighted {
  border-color: rgba(23, 107, 99, 0.45);
  background: #eef7f4;
}

.investigation-card {
  border-color: rgba(183, 95, 18, 0.38);
  background: #fff7eb;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #172326;
  color: #ffffff;
  font-weight: 900;
}

.payment-box {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: #172326;
  color: #ffffff;
}

.payment-box p {
  margin-bottom: 0;
  color: #cdd7d8;
  line-height: 1.5;
}

.case-table {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.table-row {
  min-width: 760px;
  display: grid;
  grid-template-columns: 0.75fr 1fr 0.75fr 1fr 1.3fr;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-row.header {
  background: #edf2ef;
  color: #536064;
  font-size: 13px;
  font-weight: 900;
}

.badge-high {
  color: var(--danger);
}

.badge-medium {
  color: var(--warning);
}

.badge-low {
  color: var(--ok);
}

@media (max-width: 980px) {
  .landing-nav {
    position: static;
    align-items: flex-start;
  }

  .landing-nav,
  .landing-nav nav,
  .hero-actions,
  .trust-row {
    display: grid;
  }

  .landing-hero,
  .portal-section,
  .landing-steps,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
  }

  .hero-product {
    max-width: 620px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .workbench,
  .overview-grid,
  .path-grid,
  .dossier-layout {
    grid-template-columns: 1fr;
  }

  .ai-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .landing-nav,
  .landing-hero,
  .portal-section,
  .landing-steps,
  .landing-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .portal-card {
    min-height: 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .main,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .actions,
  .payment-box {
    display: grid;
  }

  .field-grid,
  .checklist {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 30px;
  }
}
