:root {
  color-scheme: light;
  --ink: #15191e;
  --muted: #687380;
  --line: #d9e0e7;
  --surface: #ffffff;
  --page: #f3f6f8;
  --subtle: #eef3f5;
  --accent: #12695d;
  --accent-dark: #0b4e45;
  --blue: #285d8f;
  --amber: #91610d;
  --red: #9b2f2f;
  --shadow: 0 14px 30px rgba(18, 28, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--accent-dark);
  font-weight: 700;
}

.topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
  text-decoration: none;
}

nav a:hover {
  background: var(--subtle);
  color: var(--ink);
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 22px 24px 32px;
}

.site-footer a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 34px 24px 56px;
  width: 100%;
}

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

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

h1 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 8px;
}

h2 {
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 6px;
}

p,
.muted {
  color: var(--muted);
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.button {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.panel + .panel,
.workspace-grid + .panel {
  margin-top: 18px;
}

.panel-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-heading p {
  margin-bottom: 0;
}

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 112px;
  padding: 18px;
}

.stat-card span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.stat-card strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

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

.case-table th,
.case-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  vertical-align: middle;
}

.case-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.case-table tr:last-child td {
  border-bottom: 0;
}

.checklist-table {
  margin-top: 16px;
}

.checklist-table td {
  vertical-align: top;
}

.checklist-table small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.check-status {
  display: inline-flex;
  font-weight: 800;
  white-space: nowrap;
}

.check-status.submitted,
.check-status.provided {
  color: #166534;
}

.check-status.missing {
  color: var(--red);
}

.check-status.not-applicable {
  color: var(--muted);
}

.checklist-notice {
  background: #fff8eb;
  border-left: 3px solid var(--amber);
  color: #6d4808;
  margin-bottom: 16px;
  padding: 10px 12px;
}

.checklist-inline-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checklist-inline-form label {
  margin-bottom: 0;
}

.checklist-inline-form input,
.checklist-inline-form select {
  min-height: 40px;
}

.checklist-switch-form {
  margin-bottom: 6px;
}

.checklist-action-form {
  align-items: flex-end;
}

.checklist-action-form input {
  max-width: 220px;
}

.auth-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 18px;
}

.auth-form {
  display: grid;
  gap: 10px;
  margin: 0;
  max-width: 440px;
}

.auth-form h2 {
  margin-bottom: 2px;
}

.auth-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 42px;
  padding: 9px 11px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-note {
  font-size: 13px;
  margin-bottom: 0;
}

.notice {
  border-radius: 8px;
  font-weight: 700;
  margin: 16px 0;
  padding: 11px 13px;
}

.notice.success {
  background: #e8f5ef;
  border: 1px solid #b8dccb;
  color: #0b4e45;
}

.notice.alert {
  background: #fbefef;
  border: 1px solid #e2baba;
  color: var(--red);
}

.narrow-panel {
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
}

.subtle-panel {
  color: var(--muted);
}

.access-key {
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-block;
  font-family: Consolas, Monaco, monospace;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 8px 10px;
}

.borrower-doc-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.borrower-doc-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

.borrower-doc-list span,
.borrower-doc-list small {
  color: var(--muted);
  display: block;
}

.borrower-doc-list strong {
  display: block;
}

.error-panel {
  margin: 40px auto;
  max-width: 680px;
  text-align: left;
}

.auth-divider {
  color: var(--muted);
  font-weight: 800;
  margin: 18px 0;
}

.summary-points {
  margin: 0 0 18px;
  padding-left: 20px;
}

.summary-points li {
  margin-bottom: 8px;
}

.status-pill {
  background: #edf4f2;
  border: 1px solid #cfe0dc;
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 28px;
  padding: 5px 9px;
  white-space: nowrap;
}

.workspace-grid,
.library-grid {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-grid > .panel,
.library-grid > .panel {
  height: 100%;
  margin-top: 0;
}

.detail-list {
  display: grid;
  gap: 10px 18px;
  grid-template-columns: 150px 1fr;
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.field-group {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}

.field-group legend,
form label {
  color: var(--ink);
  display: block;
  font-weight: 800;
  margin-bottom: 10px;
}

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

.product-option {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 72px;
  padding: 13px;
}

.product-option input {
  margin-top: 4px;
}

.product-option strong,
.product-option small {
  display: block;
}

.product-option small {
  color: var(--accent-dark);
  font-weight: 800;
  margin-top: 2px;
}

.product-option.disabled {
  background: #f7f9fa;
  color: var(--muted);
  cursor: not-allowed;
}

.product-option.disabled small {
  color: var(--amber);
}

.form-grid {
  display: grid;
  gap: 10px 16px;
}

.form-grid.two {
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
}

.form-grid select,
.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="password"],
.form-grid input[type="tel"] {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 9px 12px;
  width: 100%;
}

input[type="file"] {
  background: #f9fbfc;
  border: 1px dashed #bcc8d3;
  border-radius: 8px;
  display: block;
  margin: 8px 0 16px;
  max-width: 100%;
  padding: 14px;
  width: 100%;
}

.support-list {
  display: grid;
  gap: 10px;
}

.support-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.support-row:last-child {
  border-bottom: 0;
}

.support-row strong {
  color: var(--blue);
  white-space: nowrap;
}

.steps-list,
.check-list {
  margin: 0;
  padding-left: 20px;
}

.steps-list li,
.check-list li {
  margin-bottom: 9px;
}

.alert-panel {
  border-color: #e0b8b8;
}

.landing-hero {
  background: #10231f;
  border-radius: 8px;
  color: #ffffff;
  max-width: 100%;
  overflow: hidden;
  padding: 54px;
  width: 100%;
}

.landing-hero .eyebrow,
.landing-hero p {
  color: #d7e7e2;
}

.landing-hero h1 {
  font-size: 44px;
  max-width: 820px;
}

.hero-lede {
  font-size: 18px;
  max-width: 760px;
}

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

.landing-hero .button.secondary {
  background: transparent;
  border-color: #88aaa0;
  color: #ffffff;
}

.hero-workflow {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
}

.hero-workflow div {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  min-height: 150px;
  padding: 24px 24px 0 0;
}

.hero-workflow div:last-child {
  border-right: 0;
}

.hero-workflow span,
.hero-workflow strong,
.hero-workflow small {
  display: block;
}

.hero-workflow span {
  color: #91c9bc;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-workflow strong {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 8px;
}

.hero-workflow small {
  color: #c1d7d0;
  font-size: 14px;
}

.landing-band,
.disclaimer-band {
  margin-top: 28px;
}

.landing-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
  padding: 32px;
  width: 100%;
}

.section-header.compact {
  margin-bottom: 18px;
}

.section-header.compact p {
  max-width: 820px;
}

.feature-grid,
.pricing-grid,
.checklist-layout {
  display: grid;
  gap: 16px;
}

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

.feature-card,
.pricing-card,
.checklist-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.feature-card h3,
.checklist-section h2 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card p,
.pricing-card p,
.checklist-section li {
  color: var(--muted);
}

.split-band {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: 0.9fr 1.1fr;
}

.process-list {
  counter-reset: process;
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-list li {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
}

.process-list strong {
  display: block;
}

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

.pricing-card span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pricing-card strong {
  display: block;
  font-size: 40px;
  line-height: 1;
  margin-bottom: 10px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 10px 0 0;
}

.disclaimer-band {
  background: #fff8eb;
  border: 1px solid #ead4a8;
  border-radius: 8px;
  max-width: 100%;
  padding: 24px 28px;
  width: 100%;
}

.disclaimer-band h2 {
  color: #6d4808;
}

.assessor-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
  padding: 30px;
  width: 100%;
}

.assessor-hero p {
  max-width: 780px;
}

.checklist-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.checklist-section ul {
  margin: 0;
  padding-left: 20px;
}

.checklist-section li {
  margin-bottom: 8px;
}

.checklist-section.wide {
  grid-column: 1 / -1;
}

@media (max-width: 780px) {
  .topbar,
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    gap: 14px;
    padding: 14px 18px;
  }

  nav {
    flex-wrap: wrap;
  }

  .page {
    padding: 24px 16px 44px;
  }

  .landing-hero,
  .landing-band,
  .disclaimer-band,
  .assessor-hero,
  .panel {
    max-width: calc(100vw - 32px);
    width: calc(100vw - 32px);
  }

  .page > *,
  .section-header > *,
  .landing-hero > *,
  .panel,
  .feature-card,
  .pricing-card,
  .checklist-section {
    min-width: 0;
  }

  .stats-grid,
  .workspace-grid,
  .library-grid,
  .product-grid,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .case-table {
    display: block;
    overflow-x: auto;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding: 34px 22px;
  }

  .landing-hero h1 {
    font-size: 32px;
  }

  .landing-hero h1,
  .landing-hero p,
  .assessor-hero h1,
  .assessor-hero p,
  .checklist-section li,
  .feature-card p,
  .hero-workflow small {
    display: block;
    max-width: calc(100vw - 76px);
    width: calc(100vw - 76px);
  }

  .hero-copy,
  .hero-workflow,
  .hero-workflow div {
    max-width: calc(100vw - 76px);
    width: calc(100vw - 76px);
  }

  .hero-workflow,
  .feature-grid,
  .split-band,
  .pricing-grid,
  .checklist-layout {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    justify-content: center;
    white-space: normal;
    width: 100%;
  }

  .hero-workflow div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 0;
    min-height: 0;
    padding: 20px 0;
  }

  .hero-workflow div:last-child {
    border-bottom: 0;
  }
}
