/* Base: reset, type, links and focus, page frame, and each page's own sections.
   Colours and sizes come from tokens.css; components from components.css.
   DESIGN_SYSTEM_PLAN.md phase 6. */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface-page);
  line-height: 1.5;
  font-size: var(--text-md);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: inherit;
  color: var(--text-heading);
  letter-spacing: 0;
}

h1 {
  font-size: var(--text-3xl);
  line-height: 1.2;
  margin: 0 0 14px;
  font-weight: 700;
}

h2 {
  font-size: var(--text-2xl);
  line-height: 1.3;
  margin: 0 0 18px;
  font-weight: 700;
}

h3 {
  font-size: var(--text-xl);
  line-height: 1.4;
  margin: 0 0 6px;
  font-weight: 600;
}

button:focus-visible, input:focus-visible, summary:focus-visible, label:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface-page);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
}

.brand-word b {
  color: var(--brand);
  font-weight: 800;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header nav a {
  padding: 6px 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

.site-header nav a:hover {
  color: var(--primary-hover);
  background: var(--surface-soft);
}

.site-header nav a[aria-current="page"] {
  color: var(--text-heading);
  background: var(--surface-soft);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  color: var(--text-heading);
}

.nav-toggle:hover {
  background: var(--surface-soft);
}

.nav-toggle svg {
  display: block;
}

.nav-drawer {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.nav-drawer nav {
  display: flex;
  flex-direction: column;
}

.nav-drawer nav a {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.nav-drawer nav a:hover {
  background: var(--surface-soft);
  color: var(--primary-hover);
}

.auth-area-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px;
  font-size: var(--text-sm);
  color: var(--text);
}

.gsi-slot {
  width: 210px;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

.auth-area > .gsi-slot {
  flex: 0 0 210px;
}

.gsi-slot-loading {
  justify-content: center;
}

.gsi-loading-copy {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .brand-logo {
    height: 42px;
  }

  .brand-word {
    font-size: var(--text-xl);
  }

  .header-nav, #auth-area {
    display: none !important;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .site-header.nav-open .nav-drawer {
    display: flex;
  }
}

#result, #result-heading, .result-h {
  scroll-margin-top: 96px;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.upload-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 10px 30px var(--shadow-color-soft);
  width: 100%;
  justify-self: end;
}

.dropzone {
  border: 2px dashed var(--focus);
  border-radius: var(--radius-lg);
  background: var(--surface-page);
  text-align: center;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dropzone.dragover {
  background: var(--info-soft);
  border-color: var(--focus-deep);
}

.dropzone:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-color: var(--focus-deep);
}

.dropzone-label {
  display: block;
  padding: 34px 18px;
  cursor: pointer;
}

.dropzone-title {
  display: block;
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--focus-strong);
}

.dropzone-hint {
  display: block;
  margin-top: 6px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

#file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone + .btn {
  margin-top: 16px;
}

.email-row {
  margin: 16px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.fine-print {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 10px 0 0;
}

@media (max-width: 560px) {
  #result:not(:empty) {
    padding: 20px 18px;
  }
}

#result:focus {
  outline: none;
}

.result-h {
  font-size: var(--text-xl);
  margin: 0 0 18px;
}

.report-actions .btn {
  width: auto;
  padding: 9px 14px;
  font-size: var(--text-sm);
}

.result-col .buckets {
  grid-template-columns: 1fr;
}

.result-col .verdict {
  margin-top: 0;
}

.muted {
  color: var(--text-muted);
}

.remediable {
  text-align: center;
  padding: 0 6px;
}

.findings-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 760px) {
  .findings-list {
    grid-template-columns: 1fr;
  }
}

.finding {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 8px;
  padding: 12px 14px;
}

.finding.sev-critical {
  border-left-color: var(--severity-critical);
}

.finding.sev-serious {
  border-left-color: var(--severity-serious);
}

.finding.sev-moderate {
  border-left-color: var(--severity-moderate);
}

.finding.sev-minor {
  border-left-color: var(--severity-minor);
}

.finding .f-head {
  margin: 0 0 4px;
}

.f-exp {
  margin: 0 0 6px;
  font-size: var(--text-sm);
  color: var(--text);
}

.finding.finding-flag {
  border-left-color: var(--warning-bright);
  background: var(--warning-soft);
}

.buy-panel {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-page);
}

.pay-banner {
  margin: 16px 0;
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: var(--text-sm);
}

.auth-financial-hold {
  flex-basis: 100%;
  color: var(--focus);
  font-size: var(--text-sm);
}

.history {
  margin: 8px 0 6px;
}

.history:empty {
  display: none;
}

.hist-h {
  font-size: var(--text-md);
  margin: 0 0 10px;
}

.hist-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-card);
}

.grade-badge.hist-grade {
  width: 38px;
  height: 38px;
  min-width: 38px;
  font-size: var(--text-md);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hist-meta {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.hist-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hist-meta small {
  color: var(--text-muted);
}

.hist-open {
  width: auto;
  padding: 6px 14px;
  flex: 0 0 auto;
}

.hist-review {
  width: auto;
  padding: 6px 14px;
  flex: 0 0 auto;
}

.hist-job-dot {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-inverse);
  color: var(--text-on-inverse);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
}

.hist-job-open {
  width: auto;
  padding: 6px 14px;
  flex: 0 0 auto;
}

.hist-del {
  flex: 0 0 auto;
  font-size: var(--text-sm);
}

@media (max-width: 560px) {
  .hist-item {
    flex-wrap: wrap;
  }

  .hist-meta {
    flex-basis: 55%;
  }
}

.grade-badge {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--surface-card);
  border-radius: 8px;
  padding: 6px 20px;
  line-height: 1.2;
}

.grade-A, .grade-B {
  background: var(--success);
}

.grade-C {
  background: var(--warning);
}

.grade-D, .grade-F {
  background: var(--error);
}

.sev-tag {
  font-weight: 700;
  text-transform: capitalize;
}

.error-box {
  font-weight: 600;
}

.control-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--error);
  border-radius: 8px;
  background: var(--error-soft);
  font-weight: 600;
}

.band-alt {
  background: var(--surface-page);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--focus);
  color: var(--text-on-inverse);
  font-weight: 800;
  margin-bottom: 10px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  display: flex;
  flex-direction: column;
}

.pricing-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
}

@media (max-width: 560px) {
  .pricing-grid-2 {
    grid-template-columns: 1fr;
  }
}

.price-card-featured {
  border: 2px solid var(--focus);
}

.price {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-heading);
  margin: 4px 0 10px;
}

.price .per {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
}

.price-card p:last-child {
  font-size: var(--text-sm);
  color: var(--text);
}

.pricing-note {
  margin-top: 16px;
  font-weight: 600;
}

.pricing-examples {
  max-width: 560px;
  margin: 24px auto 0;
}

.pricing-examples h3 {
  font-size: var(--text-md);
  margin-bottom: 10px;
}

.pricing-examples table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pricing-examples th, .pricing-examples td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--surface-soft);
  text-align: left;
}

.pricing-examples tr:last-child td {
  border-bottom: 0;
}

.pricing-examples th:last-child, .pricing-examples td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.lede {
  font-size: var(--text-md);
  max-width: 720px;
}

.split-band {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

@media (max-width: 720px) {
  .split-band {
    display: block;
  }
}

.split-band p:last-child {
  flex: 0 0 auto;
  margin: 0;
}

.review-caps {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 30px;
  max-width: 920px;
}

@media (max-width: 640px) {
  .review-caps {
    grid-template-columns: 1fr;
  }
}

.review-caps li {
  padding-left: 28px;
  position: relative;
  color: var(--text);
}

.review-caps li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 800;
}

.review-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 720px;
}

.deadlines {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 860px;
}

@media (max-width: 720px) {
  .deadlines {
    grid-template-columns: 1fr;
  }
}

.deadlines li {
  background: var(--surface-soft);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  border-left: 4px solid var(--focus);
}

.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 720px) {
  .scope-grid {
    grid-template-columns: 1fr;
  }
}

.scope-col {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--line);
}

.scope-in {
  border-top: 4px solid var(--success);
}

.scope-out {
  border-top: 4px solid var(--warning);
}

.scope-col ul {
  padding-left: 20px;
}

.scope-col li {
  margin: 6px 0;
}

.sample-report-band {
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid var(--line);
  padding-top: 8px;
  padding-bottom: 8px;
}

.dev-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px dashed var(--line);
}

.dev-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.dev-box .btn {
  width: auto;
  display: inline-block;
  margin: 0 6px 8px 0;
  text-decoration: none;
}

#dev-remediate {
  background: var(--success);
}

#dev-remediate:hover {
  background: var(--primary-hover);
}

.dev-remediation {
  margin-top: 14px;
}

.dev-remediation h3 {
  font-size: var(--text-md);
  margin: 18px 0 6px;
  color: var(--text-heading);
}

.dev-remediation .muted {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 2px 0 8px;
}

.dev-remediation ul.mani {
  margin: 0 0 6px;
  padding-left: 20px;
}

.dev-remediation ul.mani li {
  margin: 3px 0;
}

.at-stream {
  margin: 0;
  padding: 12px 16px 12px 34px;
  background: var(--surface-page);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 340px;
  overflow-y: auto;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.at-stream li {
  margin: 2px 0;
  color: var(--text);
}

.at-stream li.at-h {
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 8px;
}

.dev-remediation .verdict {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-heading);
  margin: 6px 0;
}

.dev-remediation .tech {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 2px 0 8px;
}

.dev-remediation ul.breaks {
  margin: 4px 0;
  padding-left: 20px;
}

.dev-remediation ul.breaks li {
  margin: 4px 0;
  color: var(--text);
  font-size: var(--text-sm);
}

.dev-remediation .cost {
  background: var(--surface-soft);
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-block;
}

.dev-actions {
  margin-top: 14px;
}

.dev-final {
  margin-top: 12px;
  font-size: var(--text-md);
}

.site-footer a {
  color: var(--focus-strong);
}

.verdict {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--text-muted);
  border-radius: var(--radius-lg);
  background: var(--surface-page);
}

.verdict-standard {
  border-left-color: var(--success);
}

.verdict-headline {
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text-heading);
}

.buckets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 0 12px;
}

@media (max-width: 560px) {
  .buckets {
    grid-template-columns: 1fr;
  }
}

.bucket h4 {
  margin: 0 0 6px;
  font-size: var(--text-sm);
}

.bucket ul {
  margin: 0;
  padding-left: 18px;
  font-size: var(--text-sm);
  color: var(--text);
}

.bucket-fix h4 {
  color: var(--success);
}

.bucket-flag h4 {
  color: var(--warning);
}

.verdict-note {
  font-size: var(--text-sm);
  color: var(--text);
  margin: 6px 0 0;
}

.consent {
  display: block;
  font-size: var(--text-sm);
  color: var(--text);
  margin: 6px 0 10px;
}

.consent input {
  margin-right: 6px;
}

.job-main {
  padding-top: 48px;
  padding-bottom: 72px;
}

.job-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  box-shadow: 0 10px 30px var(--shadow-color-soft);
}

.job-kicker {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.job-status-head h1 {
  margin-bottom: 0;
  font-size: var(--text-3xl);
}

.job-message {
  margin: 0 0 12px;
  color: var(--text-strong);
  font-size: var(--text-md);
}

.job-progress {
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 18px 0 12px;
}

.job-progress span {
  display: block;
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

.job-meta {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

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

.job-action {
  width: auto;
  text-decoration: none;
}

@media (max-width: 560px) {
  .job-main {
    padding-top: 28px;
  }

  .job-card {
    padding: 22px 18px;
  }

  .job-status-head {
    display: block;
  }

  .job-action {
    width: 100%;
    text-align: center;
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-hover);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.trust-line span::before {
  content: "✓";
  color: var(--success);
  font-weight: 900;
}

.dropzone {
  background: var(--surface-soft);
  border-color: var(--line-strong);
  border-radius: var(--radius-lg);
  min-height: 236px;
  display: grid;
  place-items: center;
}

.mini-benefits {
  padding: 0 20px 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-card .number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--success-line);
  color: var(--success);
  font-weight: 900;
  margin-bottom: 14px;
}

.mini-card h2 {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 6px;
}

.mini-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.sample-demo {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.sample-demo-inner {
  padding-top: 38px;
  padding-bottom: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
}

.sample-demo h2 {
  margin-bottom: 8px;
}

.sample-demo p {
  max-width: 680px;
  margin: 0;
  color: var(--text-muted);
}

.sample-demo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.my-pdfs-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 26px;
  margin-bottom: 26px;
}

.my-pdfs-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-md);
}

.page-action {
  width: auto;
  text-decoration: none;
  text-align: center;
  flex: 0 0 auto;
}

.pdf-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.pdf-list-head h2 {
  margin: 0 0 4px;
  font-size: var(--text-2xl);
}

.pdf-list-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.pdf-tabs {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pdf-tab span {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.pdf-list {
  display: grid;
  gap: 12px;
}

.pdf-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-page);
  padding: 16px;
}

.pdf-card-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pdf-grade {
  width: 42px;
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  padding: 0;
  font-size: var(--text-lg);
}

.pdf-title-block {
  min-width: 0;
}

.pdf-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.pdf-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text-heading);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.pdf-meta span:not(:last-child)::after {
  content: "";
}

.pdf-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pdf-actions .btn, .pdf-action {
  width: auto;
  white-space: nowrap;
  text-decoration: none;
}

.pdf-actions .btn {
  padding: 9px 13px;
  font-size: var(--text-sm);
}

.pdf-remove {
  white-space: nowrap;
  font-size: var(--text-sm);
}

.empty-state {
  text-align: center;
  padding: 54px 18px;
}

.empty-state h2 {
  margin-bottom: 8px;
}

.empty-state p {
  margin: 0 auto 18px;
  max-width: 460px;
  color: var(--text-muted);
}

.empty-filter {
  padding: 34px 18px;
}

.sample-hero {
  padding-top: 56px;
  padding-bottom: 30px;
}

.sample-hero h1 {
  max-width: 760px;
  font-size: var(--text-3xl);
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.sample-lede {
  max-width: 760px;
  color: var(--text-muted);
  font-size: var(--text-md);
}

.sample-scope-note {
  max-width: 760px;
  margin-top: 14px;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.sample-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
}

.sample-demo-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sample-demo-cta > span {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.sample-source-link {
  color: var(--text);
  font-weight: 700;
  text-underline-offset: 3px;
}

.sample-source-link span {
  color: var(--text-muted);
  font-weight: 500;
}

.sample-audit-grid, .sample-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.sample-grade {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.sample-grade h2, .sample-price h2, .sample-columns h2, .sample-findings h2 {
  font-size: var(--text-xl);
  margin-bottom: 10px;
}

.sample-grade p, .sample-price p {
  margin: 0 0 8px;
  color: var(--text-muted);
}

.sample-findings {
  margin-top: 18px;
}

.sample-audit-cta {
  margin-top: 42px;
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.sample-audit-cta h2 {
  margin-bottom: 8px;
  font-size: var(--text-2xl);
}

.sample-audit-cta p:last-child {
  margin: 0;
  color: var(--text-muted);
}

.sample-audit-cta .btn {
  width: auto;
  flex: 0 0 auto;
  text-decoration: none;
}

@media (max-width: 860px) {
  .hero-grid, .mini-benefits, .sample-audit-grid, .sample-columns {
    grid-template-columns: 1fr;
  }

  .my-pdfs-hero, .pdf-list-head {
    display: block;
  }

  .my-pdfs-hero .page-action, .pdf-list-head .pdf-tabs {
    margin-top: 18px;
  }

  .pdf-tabs {
    justify-content: flex-start;
  }

  .pdf-card {
    grid-template-columns: 1fr;
  }

  .pdf-actions {
    justify-content: flex-start;
  }

  .sample-demo-inner {
    display: block;
  }

  .sample-demo-actions {
    margin-top: 18px;
  }

  .sample-audit-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 38px;
  }

  .hero-actions .btn, .sample-demo-actions .btn, .sample-actions .btn, .sample-audit-cta .btn, .my-pdfs-hero .page-action, .empty-state .page-action, .pdf-actions .btn, .pdf-action {
    width: 100%;
    text-align: center;
  }

  .dropzone {
    min-height: 210px;
  }

  .sample-grade {
    display: block;
  }

  .sample-grade .grade-badge {
    display: inline-flex;
    margin-bottom: 14px;
  }

  .my-pdfs-main {
    padding-top: 34px;
  }

  .my-pdfs-shell {
    padding: 18px;
  }

  .pdf-card-main {
    align-items: flex-start;
  }

  .pdf-card-head {
    display: block;
  }

  .pdf-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sample-demo-cta {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }
}

.review-status .gate-badge {
  margin-left: 8px;
}

.queue {
  max-width: 720px;
  margin: 0 auto;
}

.queue h2 {
  color: var(--text-heading);
  font-size: var(--text-xl);
  margin-bottom: 14px;
}

.mode-tabs button.active {
  background: var(--text-heading);
  color: var(--surface-card);
  border-color: var(--text-heading);
}

.wiz-head {
  text-align: center;
  margin-bottom: 14px;
}

.wiz-head h2 {
  font-size: var(--text-xl);
  color: var(--text-heading);
  margin: 0 0 4px;
}

.wiz-head p {
  color: var(--text-muted);
  margin: 0;
}

.wiz-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 14px 0 22px;
}

.wiz-progress i {
  width: 26px;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  display: block;
}

.wiz-progress i.done {
  background: var(--success);
}

.wiz-progress i.current {
  background: var(--focus);
}

.wiz-thumb {
  float: right;
  width: 190px;
  margin: 0 0 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: var(--surface-page);
}

.wiz-thumb img {
  width: 100%;
  display: block;
}

.wiz-reason {
  background: var(--warning-soft);
  border: 1px solid var(--warning-line);
  color: var(--warning);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: var(--text-sm);
  margin-bottom: 14px;
}

.wiz-reason b {
  display: block;
  margin-bottom: 3px;
}

.wiz-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ed-page .hl {
  position: absolute;
  border: 2px solid var(--focus);
  background: var(--focus-ring);
  border-radius: 3px;
  pointer-events: none;
  transition: left .12s ease, top .12s ease, width .12s ease, height .12s ease;
}

.unit-card.flagged {
  border-left: 4px solid var(--warning);
}

.unit-card.reviewed {
  border-left: 4px solid var(--success);
}

.unit-card.skipped {
  color: var(--text-muted);
  background: var(--surface-page);
}

.unit-card.figure {
  background: var(--surface-soft);
}

.u-role.heading {
  background: var(--text-heading);
}

.u-role.figure {
  background: var(--focus);
}

.u-alt-origin.edited {
  color: var(--success);
  background: var(--success-soft);
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--line);
  flex: none;
  border-top-color: var(--focus);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.u-role.table {
  background: var(--surface-strong);
  color: var(--text-heading);
}

.ready-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.unified-review-card.table-check-list {
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: stretch;
}

.blocked-item .btn {
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

.blocked-checklist .acceptance-internal-details {
  margin-top: 18px;
}

@media (max-width: 720px) {
  .blocked-item .btn {
    width: 100%;
    white-space: normal;
  }
}

.busy-progress .progress-track {
  margin: 6px 0 0;
}

.busy-progress .progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width 240ms ease;
}

html {
  background: var(--surface-page);
}

body {
  color: var(--text);
  background: var(--surface-page);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.5;
}

h1, h2, h3, h4 {
  color: var(--text-heading);
  font-family: inherit;
  letter-spacing: 0;
}

h1 {
  font-size: var(--text-3xl);
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: var(--text-2xl);
  line-height: 1.3;
  font-weight: 700;
}

h3 {
  font-size: var(--text-xl);
  line-height: 1.4;
  font-weight: 600;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, label:focus-visible, [contenteditable]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.container {
  width: min(100% - 40px, 1200px);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.site-header {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-translucent);
}

.header-row {
  min-height: 72px;
  padding-block: 8px;
  gap: 24px;
}

.brand-logo-link {
  gap: 10px;
  color: var(--text-heading);
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-word {
  color: var(--text-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.dev-label {
  letter-spacing: 0;
}

.brand-word b {
  color: var(--brand);
}

.brand-word span {
  color: var(--brand-accent);
}

.site-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text);
  font-weight: 600;
}

.site-header nav a:hover, .site-header nav a[aria-current="page"] {
  color: var(--primary-hover);
  background: var(--primary-soft);
}

.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  color: var(--text-heading);
}

.nav-drawer {
  background: var(--surface-card);
}

.nav-drawer nav a {
  min-height: 48px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.cf-turnstile {
  margin: 12px 0;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--primary-hover);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: var(--text-3xl);
  line-height: 1.13;
  font-weight: 700;
  letter-spacing: 0;
}

.upload-card {
  width: 100%;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.upload-card h2 {
  margin-bottom: 4px;
  font-size: var(--text-xl);
}

.dropzone {
  min-height: 205px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-page);
}

.dropzone.dragover, .dropzone:focus-within {
  border-color: var(--focus);
  background: var(--info-soft);
}

.dropzone:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.dropzone-label {
  width: 100%;
  padding: 28px 20px;
}

.dropzone-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--primary);
  background: var(--primary-soft);
}

.dropzone-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone-title {
  color: var(--text-heading);
  font-size: var(--text-md);
  font-weight: 700;
}

.dropzone-hint {
  max-width: 340px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.file-selection {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--surface-soft);
}

.file-selection[hidden] {
  display: none;
}

.file-selection > div {
  min-width: 0;
}

.file-selection strong, .file-selection span {
  display: block;
}

.file-selection strong {
  color: var(--text-heading);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-selection span {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.dropzone + .file-selection + .cf-turnstile, .dropzone + .file-selection + .btn, .cf-turnstile + .btn, .file-selection + .btn {
  margin-top: 16px;
}

.fine-print {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.upload-privacy {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.upload-privacy p {
  margin-bottom: 6px;
}

.upload-privacy p:last-child {
  margin-bottom: 0;
}

.results-wrap {
  width: min(100% - 40px, 1200px);
}

#result:not(:empty) {
  margin: 30px 0 64px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.result-h {
  margin-bottom: 10px;
  font-size: var(--text-sm);
  line-height: 1.5;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-hover);
}

.upload-outcome {
  width: min(100%, 760px);
  border-left: 4px solid var(--warning);
}

.upload-outcome .eyebrow {
  margin-bottom: 6px;
  color: var(--warning);
}

.upload-outcome-heading {
  margin: 0 0 10px;
  font-size: var(--text-xl);
  line-height: 1.25;
}

.upload-outcome-detail {
  color: var(--text-muted);
}

.upload-outcome-detail p {
  margin: 0 0 8px;
}

.upload-outcome-detail p:last-child {
  margin-bottom: 0;
}

.audit-result {
  max-width: 1040px;
  margin-inline: auto;
}

.audit-outcome h2 {
  margin-bottom: 8px;
  font-size: var(--text-3xl);
}

.audit-outcome p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-md);
}

.audit-stats div {
  min-width: 0;
}

.report-actions {
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audit-panel {
  padding-top: 28px;
}

.audit-panel[hidden] {
  display: none;
}

.audit-severity-summary {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.grade-badge {
  min-width: 58px;
  height: 58px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: var(--text-2xl);
}

.report-actions .btn {
  min-height: 44px;
  padding: 10px 14px;
}

.scope-heading .eyebrow {
  margin-bottom: 4px;
}

.verdict {
  border: 0;
  border-top: 4px solid var(--success);
  border-radius: 0;
  padding: 18px 0 0;
  background: transparent;
}

.buckets {
  gap: 32px;
}

.bucket {
  min-width: 0;
}

.bucket h4 {
  font-size: var(--text-md);
}

.bucket ul {
  color: var(--text);
}

.consent {
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-card);
}

.findings-list {
  display: block;
}

.finding {
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

.finding.finding-flag {
  border-left: 0;
  background: transparent;
}

.finding .f-head {
  margin-bottom: 6px;
  color: var(--text-heading);
}

.finding .f-clauses, .finding .f-exp, .finding .f-fix, .finding .f-tag {
  max-width: 820px;
}

.finding .f-tag {
  width: fit-content;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  font-size: var(--text-sm);
  font-weight: 700;
}

.finding .f-tag-flag {
  background: var(--warning-soft);
}

.buy-panel, .remediation-started, .pay-banner {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-card);
}

.buy-panel {
  margin-top: 12px;
}

.buy-panel h4 {
  margin: 0 0 14px;
  font-size: var(--text-xl);
}

.checkout-summary {
  margin: 0 0 16px;
  border-block: 1px solid var(--line);
}

.checkout-summary div {
  min-height: 44px;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.checkout-summary div:last-child {
  border-bottom: 0;
}

.checkout-summary dt {
  color: var(--text-muted);
}

.checkout-summary dd {
  margin: 0;
  color: var(--text-heading);
  font-weight: 700;
  text-align: right;
}

.buy-panel .buy-credit {
  width: 100%;
}

.buy-opts .btn {
  width: 100% !important;
}

.audit-view .hero, .audit-view .hero-proof, .audit-view .hero-scope, .audit-view .pdf-layers, .audit-view .sample-demo, .audit-view .faq-compact {
  display: none;
}

.audit-view .results-wrap {
  width: 100%;
}

.audit-view #result:not(:empty) {
  margin: 0;
}

.audit-document-context {
  padding: 20px max(20px, calc((100% - 1200px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface-card);
}

.audit-document-context > * {
  max-width: 1200px;
  margin-inline: auto;
}

.audit-document-title {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.audit-document-title > div {
  min-width: 0;
}

.audit-document-title strong, .audit-document-title span {
  display: block;
}

.audit-document-title strong {
  overflow: hidden;
  color: var(--text-heading);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-document-title span {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.audit-lifecycle {
  margin-block: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
}

.audit-lifecycle li {
  --node-radius: 5px;
  --previous-node-radius: 5px;
  position: relative;
  padding: 18px 8px 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-align: center;
}

.audit-lifecycle li::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-card);
  transform: translateX(-50%);
}

.audit-lifecycle li::after {
  content: "";
  position: absolute;
  right: calc(50% + var(--node-radius));
  top: 5px;
  z-index: 1;
  width: calc(100% - var(--previous-node-radius) - var(--node-radius));
  height: 2px;
  background: var(--line);
  transform: translateY(-50%);
}

.audit-lifecycle li:first-child::after {
  display: none;
}

.audit-lifecycle li.done, .audit-lifecycle li.current {
  color: var(--text-heading);
}

.audit-lifecycle li.done::before {
  border-color: var(--success);
  background: var(--success);
}

.audit-lifecycle li.done::after, .audit-lifecycle li.current::after {
  background: var(--success);
}

.audit-lifecycle li.current::before {
  width: 14px;
  height: 14px;
  top: -2px;
  border: 4px solid var(--primary-soft);
  background: var(--primary);
}

.audit-lifecycle li.current {
  --node-radius: 7px;
}

.audit-lifecycle li.current + li {
  --previous-node-radius: 7px;
}

.audit-mobile-step {
  display: none;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.audit-result {
  width: min(100% - 40px, 1200px);
  max-width: none;
  margin: 46px auto 72px;
}

.audit-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
  grid-template-areas: "outcome order"
    "report order";
  column-gap: 48px;
  align-items: start;
}

.audit-outcome {
  grid-area: outcome;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 18px;
}

.audit-outcome > div {
  max-width: 760px;
}

.audit-outcome .eyebrow {
  margin-bottom: 8px;
}

.audit-outcome h1 {
  margin: 0 0 8px;
  font-size: var(--text-3xl);
  line-height: 1.22;
}

.audit-outcome p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-md);
}

.audit-outcome .grade-badge {
  width: 64px;
  min-width: 64px;
  height: 64px;
  font-size: var(--text-2xl);
}

.audit-report-body {
  grid-area: report;
  min-width: 0;
}

.audit-order-panel {
  position: sticky;
  top: 20px;
  grid-area: order;
}

.audit-order-panel .eyebrow {
  margin-bottom: 6px;
}

.audit-order-panel h2 {
  margin: 0 0 6px;
  font-size: var(--text-xl);
}

.audit-order-panel > p:not(.eyebrow) {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.audit-order-panel > #do-remediate + .audit-report-actions {
  margin-top: 10px;
  margin-bottom: 16px;
}

.audit-order-price {
  display: block;
  margin-bottom: 8px;
  color: var(--text-heading);
  font-size: var(--text-3xl);
  line-height: 1.2;
}

.audit-order-panel > .btn-primary, .buy-panel > .btn-primary {
  width: 100%;
}

.customer-context-card {
  margin: 0;
  padding: 0;
}

.customer-context-card h2 {
  margin-top: 0;
}

.customer-context-card > p:not(.eyebrow) {
  color: var(--text);
  font-size: var(--text-sm);
}

.customer-context-card fieldset {
  margin: 16px 0;
  padding: 0;
  border: 0;
}

.customer-context-card legend {
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text-heading);
}

.customer-context-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

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

.customer-context-option label {
  cursor: pointer;
}

.customer-context-option label strong, .customer-context-option label span {
  display: block;
}

.customer-context-option label span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.customer-context-card #save-customer-context {
  width: 100%;
}

.customer-context-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.customer-context-actions .btn {
  width: 100%;
}

.audit-order-benefits {
  margin: 18px 0 0;
  padding: 16px 0 0 20px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: var(--text-sm);
}

.audit-order-benefits li + li {
  margin-top: 6px;
}

.audit-report-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.audit-report-actions .btn {
  width: 100%;
  padding-inline: 10px;
}

.audit-report-actions .btn[aria-busy="true"] {
  cursor: wait;
  opacity: 0.78;
}

.audit-report-progress {
  min-height: 46px;
  padding: 10px 0 0;
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  border-top: 1px solid var(--line-soft);
}

.audit-report-progress > div {
  min-width: 0;
}

.audit-report-progress [role="status"], .audit-report-progress [role="alert"] {
  display: block;
  color: var(--text-heading);
  font-size: var(--text-sm);
  font-weight: 700;
}

.audit-report-progress small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1.4;
}

.audit-report-progress.is-ready [role="status"] {
  color: var(--success);
}

.audit-report-progress.is-error [role="alert"] {
  color: var(--error);
}

.audit-report-spinner {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: audit-report-spin 800ms linear infinite;
}

@keyframes audit-report-spin {
  to { transform: rotate(360deg); }
}

.audit-stats dd {
  order: -1;
}

.audit-stats > div {
  display: flex;
  flex-direction: column;
}

.audit-stats dt {
  margin-top: 4px;
}

.audit-panel > h2 {
  margin: 0 0 6px;
  font-size: var(--text-xl);
}

.audit-panel-lede {
  margin: 0 0 20px;
  color: var(--text-muted);
}

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

/* With nothing excluded there is no second column to balance against. */
.audit-scope-columns.single {
  grid-template-columns: minmax(0, 1fr);
}

.audit-document-profile {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.audit-document-profile > h2 {
  margin-bottom: 4px;
  font-size: var(--text-xl);
}

.audit-document-profile > p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.audit-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--line);
}

.audit-profile-grid > div {
  min-width: 0;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
}

.audit-profile-grid > div:first-child {
  padding-left: 0;
}

.audit-profile-grid > div:last-child {
  border-right: 0;
}

.audit-profile-grid dt {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.audit-profile-grid dd {
  margin: 0;
  color: var(--text-strong);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.audit-preserved-feature-scope {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--primary-soft);
}

.audit-preserved-feature-scope h3 {
  margin: 0 0 5px;
  font-size: var(--text-md);
}

.audit-preserved-feature-scope p {
  margin: 0;
  color: var(--text);
  font-size: var(--text-sm);
}

.audit-preserved-feature-scope ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 12px 0;
  padding-left: 20px;
  color: var(--text-strong);
  font-size: var(--text-sm);
}

.audit-preserved-feature-limit {
  color: var(--text-muted) !important;
}

.audit-scope-section {
  min-width: 0;
}

.audit-scope-section.attention {
  padding: 18px 20px;
  border: 2px solid var(--warning-bright);
  border-radius: var(--radius-md);
  background: var(--warning-soft);
}

.audit-scope-section h2 {
  margin: 0 0 6px;
  font-size: var(--text-xl);
}

.audit-scope-section > p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

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

.audit-scope-section li {
  margin: 0 0 10px;
}

.audit-finding-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.audit-finding-row {
  display: grid;
  grid-template-columns: 92px 78px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.audit-finding-row:first-child {
  border-top: 1px solid var(--line);
}

.audit-finding-page {
  padding-top: 3px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.audit-finding-copy {
  min-width: 0;
}

.audit-finding-copy h3 {
  margin: 0 0 4px;
  font-size: var(--text-md);
}

.audit-finding-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.audit-finding-copy p + p {
  margin-top: 8px;
}

.audit-finding-clauses {
  font-size: var(--text-xs) !important;
}

.audit-finding-next strong {
  color: var(--text-strong);
}

.audit-scope-tag, .audit-evidence-status {
  width: fit-content;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}

.audit-scope-tag.included, .audit-evidence-status.pass {
  color: var(--success);
  background: var(--success-soft);
}

.audit-scope-tag.attention, .audit-evidence-status.fail {
  color: var(--warning);
  background: var(--warning-soft);
}

.audit-scope-tag.attention {
  border: 1px solid currentcolor;
}

.checkout-scope-notice {
  margin: 16px 0;
  padding: 16px 18px;
  border: 2px solid var(--warning-bright);
  border-radius: var(--radius-md);
  color: var(--text);
  background: var(--warning-soft);
}

.checkout-scope-notice strong {
  display: block;
  color: var(--text-heading);
}

.checkout-scope-notice p {
  margin: 8px 0 0;
}

.audit-evidence-status.unknown {
  color: var(--info);
  background: var(--info-soft);
}

.audit-evidence-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-card);
}

.audit-evidence-scroll:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.audit-evidence-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

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

.audit-evidence-table thead th {
  color: var(--text-strong);
  background: var(--surface-soft);
}

.audit-evidence-table tbody tr:last-child th, .audit-evidence-table tbody tr:last-child td {
  border-bottom: 0;
}

.audit-loading-state {
  width: min(100% - 40px, 760px);
  margin: 72px auto;
}

.audit-loading-state h1 {
  margin-bottom: 8px;
  font-size: var(--text-3xl);
}

.audit-loading-state p:not(.eyebrow) {
  max-width: 620px;
  color: var(--text-muted);
}

.buy-panel h3 {
  margin: 0 0 14px;
  font-size: var(--text-lg);
}

.audit-order-panel .buy-panel {
  margin-top: 16px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.buy-panel .start-remediation, .buy-panel .cancel-order-review {
  width: 100%;
}

.buy-panel .cancel-order-review {
  margin-top: 6px;
}

.sample-demo {
  padding: 60px 0;
  border-block: 1px solid var(--line);
  background: var(--surface-card);
}

.sample-demo-inner {
  padding-block: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 54px;
  align-items: center;
}

.sample-demo-copy p {
  max-width: 620px;
  color: var(--text-muted);
}

.sample-demo-actions {
  margin-top: 22px;
}

.sample-workbench {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(240px, 1.2fr);
  gap: 24px;
  align-items: center;
}

.sample-page-preview {
  position: relative;
  max-width: 330px;
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  background: var(--surface-card);
}

.sample-page-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.sample-page-highlight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sample-page-highlight rect {
  fill: var(--focus-ring);
  stroke: var(--focus);
  stroke-width: 3px;
  vector-effect: non-scaling-stroke;
}

.sample-reading-order {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sample-order;
}

.sample-reading-order li {
  position: relative;
  min-height: 66px;
  padding: 14px 12px 14px 54px;
  border-bottom: 1px solid var(--line);
  counter-increment: sample-order;
}

.sample-reading-order li::before {
  content: counter(sample-order);
  position: absolute;
  left: 10px;
  top: 13px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-heading);
  background: var(--surface-soft);
  font-size: var(--text-sm);
  font-weight: 700;
}

.sample-reading-order li.active {
  border-left: 4px solid var(--focus);
  background: var(--info-soft);
}

.sample-reading-order b, .sample-reading-order small {
  display: block;
}

.sample-reading-order small {
  color: var(--text-muted);
}

.faq-compact {
  padding: 60px 0 72px;
}

.faq-inner {
  max-width: 860px;
}

.site-footer {
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  background: var(--surface-page);
  font-size: var(--text-sm);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 18px 30px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  flex-basis: 100%;
  order: 3;
}

.auth-area, .auth-area-mobile {
  color: var(--text-muted);
}

.auth-user {
  color: var(--text);
}

.review-page {
  min-height: 100vh;
  background: var(--surface-page);
}

.review-context .eyebrow {
  margin-bottom: 4px;
}

.ready {
  max-width: 860px;
  margin: 0;
  padding: 0;
}

.wiz-label {
  letter-spacing: 0;
}

.ready-match, .ready-audit-scope {
  border-radius: var(--radius-md);
}

section.ready-standards-evidence.warn, .ready-capability-delivery-scope.warn, .ready-form-delivery-scope.warn {
  border-color: var(--warning-bright);
  background: var(--warning-soft);
}

.ready-standards-scope {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
}

.ready-note.warn, .ready-audit-scope {
  border-color: var(--warning-bright);
  color: var(--text);
  background: var(--warning-soft);
}

.ready-actions {
  padding-top: 6px;
}

.ready-primary-decision .outcome-review-choice {
  margin-top: 0;
}

.ready-primary-decision .ready-actions {
  padding-top: 12px;
}

.wiz-head {
  max-width: 720px;
  text-align: left;
}

.wiz-head h2 {
  font-size: var(--text-2xl);
}

.hl, .page-highlight {
  display: none;
}

.wiz-progress-copy {
  margin: 18px 0 4px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.wiz-progress {
  justify-content: flex-start;
  margin: 8px 0 18px;
}

textarea.u-edit {
  border-color: var(--line-strong);
  border-radius: var(--radius-md);
}

.ed-toolbar .accept-all-changes {
  margin-left: auto;
}

.ed-toolbar .accept-all-changes:disabled {
  max-width: 280px;
  white-space: normal;
}

.unit-card.selected {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.ed-page .hl {
  border-color: var(--focus);
  background: var(--focus-ring);
}

.review-tool-status .blocked dd, .review-tool-status .attention dd {
  color: var(--warning);
  font-weight: 700;
}

.review-tool-status .unavailable dd {
  color: var(--text-muted);
}

.ocr-inspector-heading .gate-badge {
  max-width: 270px;
  white-space: normal;
  text-align: right;
}

.ocr-inspector-overlay.selected {
  z-index: 4;
  border: 3px solid var(--focus);
  background: var(--focus-ring);
}

.ocr-inspector-overlay-unverified {
  z-index: 2;
  border-color: var(--warning-bright);
  background: var(--overlay-warning);
}

.ocr-inspector-overlay-missing, .ocr-inspector-overlay-uncovered {
  z-index: 3;
  border-color: var(--error);
  background: var(--overlay-error);
}

.ocr-inspector-overlay-unreadable, .ocr-inspector-overlay-ungrounded {
  z-index: 2;
  border-style: dashed;
  border-color: var(--accent);
  background: var(--overlay-accent);
}

.ocr-review-item.selected {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.review-topline .supporting {
  max-width: 720px;
  margin: 0;
}

.unified-review-overview {
  max-width: 920px;
}

.unified-review-overview > h2 {
  margin-bottom: 6px;
}

.unified-review-queue {
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.unified-review-card {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.unified-review-card h3, .unified-review-card p {
  margin: 0;
}

.unified-review-card p {
  margin-top: 4px;
  color: var(--text-muted);
}

.unified-review-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.guided-review {
  max-width: none;
}

@keyframes page-image-spin {
  to {
    transform: rotate(360deg);
  }
}

.page-highlight {
  position: absolute;
  border: 3px solid var(--focus);
  background: var(--focus-ring);
  pointer-events: none;
}

#review-item-state {
  min-height: 0;
  padding: 28px;
  overflow: visible;
}

.review-reading-order li.changed {
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
}

.review-reading-order li.changed .order-number {
  color: var(--text-on-inverse);
  background: var(--primary);
}

.field {
  margin-bottom: 18px;
}

.field:last-child {
  margin-bottom: 0;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.document-context {
  border-bottom: 1px solid var(--line);
  background: var(--surface-card);
}

.document-context-inner {
  padding-block: 16px 18px;
}

.document-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.document-name {
  min-width: 0;
}

.document-name strong, .document-name span {
  display: block;
}

.document-name strong {
  overflow: hidden;
  color: var(--text-heading);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-name span {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.job-context-action {
  width: auto;
  flex: 0 0 auto;
}

.mobile-step {
  display: none;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.flow-main, .job-main {
  padding: 48px 0 72px;
}

.processing-shell, .job-card {
  width: min(100% - 40px, 760px);
  max-width: 760px;
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.processing-header h1 {
  margin-bottom: 10px;
  font-size: var(--text-3xl);
  overflow-wrap: anywhere;
}

.job-kicker {
  letter-spacing: 0;
}

.job-reassurance {
  max-width: 680px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text-muted);
  background: transparent;
  font-size: var(--text-md);
}

.processing-status {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
}

.job-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
}

.job-status-head h2 {
  margin: 0;
  font-size: var(--text-xl);
}

.job-message {
  margin: 0;
  color: var(--text-strong);
}

.progress-track, .job-progress {
  height: 10px;
  margin: 18px 0 8px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}

.progress-bar, .job-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 300ms ease;
}

.job-progress-failed .job-progress span {
  background: var(--error);
}

.job-meta, .supporting {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.job-meta {
  margin: 0;
}

.processing-status > .supporting {
  margin: 8px 0 0;
}

.process-stages {
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.process-stage {
  --stage-node-size: 24px;
  --stage-node-top: 4px;
  --stage-node-center: 20px;
  position: relative;
  isolation: isolate;
  min-height: 62px;
  padding: 5px 0 18px 46px;
}

.process-stage::before {
  content: "";
  position: absolute;
  left: var(--stage-node-center);
  top: var(--stage-node-top);
  z-index: 2;
  box-sizing: border-box;
  width: var(--stage-node-size);
  height: var(--stage-node-size);
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-card);
  transform: translateX(-50%);
}

.process-stage::after {
  content: "";
  position: absolute;
  left: calc(var(--stage-node-center) - 1px);
  top: calc(var(--stage-node-top) + var(--stage-node-size));
  bottom: calc(0px - var(--stage-node-top));
  z-index: 1;
  width: 2px;
  background: var(--line);
}

.process-stage:last-child::after {
  display: none;
}

.process-stage.done::before {
  content: "\2713";
  display: grid;
  place-items: center;
  border-color: var(--success);
  color: var(--text-on-inverse);
  background: var(--success);
  font-size: var(--text-sm);
  font-weight: 700;
}

.process-stage.done::after {
  background: var(--success);
}

.process-stage.current::before {
  border: 6px solid var(--primary-soft);
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.process-stage.current.failed::before {
  border-color: var(--error-soft);
  background: var(--error);
  box-shadow: 0 0 0 2px var(--error);
}

.process-stage strong, .process-stage span {
  display: block;
}

.process-stage strong {
  color: var(--text-heading);
}

.process-stage span {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.button-row, .job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.job-actions {
  margin-top: 22px;
}

.job-action {
  width: auto;
}

.job-details {
  margin-top: 28px;
}

.job-details h2 {
  margin-bottom: 10px;
  font-size: var(--text-lg);
}

.job-facts {
  margin: 0;
  border-block: 1px solid var(--line);
}

.job-fact {
  min-height: 46px;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.job-fact:last-child {
  border-bottom: 0;
}

.job-fact dt {
  color: var(--text-muted);
}

.job-fact dd {
  margin: 0;
  color: var(--text-heading);
  font-weight: 700;
  text-align: right;
}

.ready-callout {
  margin-top: 28px;
}

.ready-callout h2 {
  margin-bottom: 6px;
  font-size: var(--text-xl);
}

.ready-callout p {
  margin: 0 0 16px;
}

.stage-main {
  min-height: 520px;
}

.accept-shell, .complete-shell {
  max-width: 820px;
  margin-inline: auto;
}

.stage-heading {
  max-width: 760px;
}

.stage-heading h1, .success-heading h1 {
  margin-bottom: 10px;
  font-size: var(--text-3xl);
}

.stage-heading .lede, .complete-shell > .lede {
  max-width: 740px;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-md);
}

.stage-loading {
  margin: 30px 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  color: var(--text-muted);
}

.stage-error, .deleted-state {
  margin-top: 28px;
}

.stage-error h2, .deleted-state h2 {
  margin-bottom: 8px;
  font-size: var(--text-xl);
}

.stage-status, .download-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--text-muted);
}

.download-status.working::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: audit-report-spin 800ms linear infinite;
}

.stage-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.accept-review-level {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  border: 0;
}

.accept-review-level legend {
  margin-bottom: 10px;
  color: var(--text-strong);
  font-size: var(--text-xl);
  font-weight: 800;
}

.accept-review-option {
  min-height: 64px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--surface-card);
}

.accept-review-option:hover {
  border-color: var(--text-heading);
  background: var(--surface-soft);
}

.accept-review-option:has(input:checked) {
  border-color: var(--text-heading);
  box-shadow: 0 0 0 1px var(--text-heading);
  background: var(--info-soft);
}

.accept-review-option input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

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

.accept-review-option small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.accept-primary-actions {
  margin-top: 14px;
}

.remaining-section {
  margin-top: 32px;
}

.remaining-section h2 {
  margin-bottom: 6px;
  font-size: var(--text-xl);
}

.remaining-section > p {
  max-width: 720px;
  color: var(--text-muted);
}

.remaining-list {
  margin: 20px 0 28px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.remaining-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.remaining-list li > p {
  margin: 6px 0 0;
  color: var(--text);
}

.remaining-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
}

.remaining-source {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

.remaining-empty {
  margin: 20px 0 28px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  color: var(--success);
  font-weight: 700;
}

.accept-notice, .retention-notice {
  margin-top: 26px;
}

.accept-notice h2 {
  margin-bottom: 6px;
  font-size: var(--text-xl);
}

.accept-notice p, .retention-notice p {
  margin: 0;
}

.success-heading {
  display: flex;
  gap: 14px;
  align-items: center;
}

.success-heading .eyebrow {
  margin-bottom: 2px;
}

.success-heading h1 {
  margin-bottom: 0;
}

.success-mark {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--text-on-inverse);
  background: var(--success);
}

.download-list {
  margin: 30px 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.download-row {
  padding: 18px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.download-copy {
  min-width: 0;
}

.download-copy strong, .download-copy span {
  display: block;
}

.download-copy span {
  overflow-wrap: anywhere;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.stage-delete-action {
  margin-left: auto;
  color: var(--error);
}

.stage-delete-action:hover {
  color: var(--error);
  background: var(--error-soft);
}

.stage-delete-confirm {
  color: var(--text-on-inverse);
  border: 1px solid var(--error);
  background: var(--error);
}

.stage-delete-confirm:hover {
  color: var(--text-on-inverse);
  background: var(--error-strong);
}

.my-pdfs-main {
  padding: 46px 0 72px;
}

.my-pdfs-hero {
  align-items: flex-end;
  margin-bottom: 30px;
}

.my-pdfs-hero h1 {
  margin-bottom: 8px;
  font-size: var(--text-3xl);
  line-height: 1.2;
  letter-spacing: 0;
}

.my-pdfs-shell {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pdf-list-head {
  padding-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.pdf-tab.is-active span {
  color: var(--text-muted);
}

.pdf-list {
  gap: 0;
}

.pdf-card {
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.pdf-grade {
  border-radius: var(--radius-md);
}

.pdf-card h3 {
  font-size: var(--text-md);
}

.pdf-actions .btn {
  min-height: 44px;
}

.empty-state {
  padding: 56px 18px;
}

.sample-page {
  padding-bottom: 72px;
}

.sample-hero h1 {
  font-size: var(--text-3xl);
  line-height: 1.2;
  letter-spacing: 0;
}

.sample-grade, .sample-price, .sample-columns article, .sample-findings {
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.sample-page .sample-findings {
  padding-inline: 22px;
}

.policy-main {
  padding: 48px 0 80px;
}

.policy-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 780px);
  justify-content: center;
  align-items: start;
  column-gap: 64px;
  row-gap: 30px;
}

.policy-toc {
  position: sticky;
  top: 104px;
  grid-column: 1;
  grid-row: 2;
}

.policy-toc h2 {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.policy-toc nav {
  display: flex;
  flex-direction: column;
}

.policy-toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.policy-toc a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.policy-article {
  min-width: 0;
  grid-column: 2;
  grid-row: 2;
}

.policy-heading {
  grid-column: 2;
  grid-row: 1;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.policy-heading h1 {
  margin: 0 0 10px;
  font-size: var(--text-3xl);
  line-height: 1.2;
}

.policy-updated {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.policy-lede {
  max-width: 68ch;
  margin: 0;
  color: var(--text);
  font-size: var(--text-lg);
  line-height: 1.6;
}

.policy-summary {
  margin-top: 0;
}

.policy-summary h2 {
  margin: 0 0 12px;
  font-size: var(--text-xl);
}

.policy-summary ul, .policy-section ul {
  margin: 0;
  padding-left: 24px;
}

.policy-summary li, .policy-section li {
  margin: 8px 0;
}

.policy-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.policy-article > .policy-section:first-child {
  padding-top: 0;
}

.policy-section h2, .policy-contact h2 {
  margin: 0 0 16px;
  font-size: var(--text-xl);
  line-height: 1.3;
}

.policy-section h3 {
  margin: 24px 0 8px;
  font-size: var(--text-md);
  line-height: 1.4;
}

.policy-section p {
  max-width: 72ch;
  margin: 0 0 16px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-contact {
  padding-top: 32px;
}

.policy-contact p {
  margin: 0;
}

@media (max-width: 960px) {
  .hero-grid, .sample-demo-inner, .sample-workbench {
    grid-template-columns: 1fr;
  }

  .home-copy, .upload-card, .home-promises {
    grid-column: auto;
    grid-row: auto;
  }

  .home-promises {
    margin-top: 0;
  }

  .sample-page-preview {
    max-width: 390px;
  }

  #review-item-state {
    overflow: visible;
  }

  .policy-layout {
    grid-template-columns: minmax(0, 780px);
    gap: 32px;
  }

  .policy-heading, .policy-toc, .policy-article {
    grid-column: auto;
    grid-row: auto;
  }

  .policy-toc {
    position: static;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }

  .policy-toc nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

@media (max-width: 720px) {
  .sample-page .sample-findings {
    padding-inline: 16px;
  }

  body {
    font-size: var(--text-md);
  }

  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-xl);
  }

  .container, .results-wrap {
    width: min(100% - 32px, 1200px);
  }

  .site-header, .header-row {
    min-height: 64px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-word {
    font-size: var(--text-md);
  }

  .hero {
    padding: 34px 0 48px;
  }

  .hero-grid {
    gap: 30px;
  }

  .hero h1 {
    font-size: var(--text-3xl);
    line-height: 1.2;
  }

  .hero-copy {
    font-size: var(--text-md);
  }

  .ocr-inspector-heading .gate-badge {
    max-width: none;
    text-align: left;
  }

  .home-promises {
    display: none;
  }

  .dropzone {
    min-height: 170px;
  }

  .file-selection {
    grid-template-columns: 1fr;
  }

  .file-selection .btn {
    width: 100%;
  }

  .sample-demo {
    padding: 46px 0;
  }

  .sample-demo-actions, .sample-demo-actions .btn {
    width: 100%;
  }

  .sample-workbench {
    gap: 18px;
  }

  #review-item-state {
    padding-inline: 20px;
  }

  .review-actions .btn, .review-actions .btn-link, .review-footer-actions .btn, .review-footer-actions .btn-link {
    width: 100%;
  }

  .review-footer-actions > .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .review-context h1 {
    font-size: var(--text-xl);
  }

  .ready-actions, .ready-actions .btn, .wiz-actions .btn {
    width: 100% !important;
  }

  .wiz-thumb {
    width: 100%;
    margin: 0 0 16px;
    float: none;
  }

  .audit-outcome {
    gap: 16px;
  }

  .audit-outcome h2 {
    font-size: var(--text-2xl);
  }

  .audit-stats div, .audit-stats div:first-child {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .audit-tabs {
    max-width: calc(100vw - 32px);
    overflow-x: auto;
  }

  .audit-tabs button {
    flex: 0 0 auto;
  }

  .remediable {
    text-align: left;
  }

  .report-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .report-actions .btn, .verdict .btn {
    width: 100%;
  }

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

  .site-footer .container {
    display: block;
  }

  .site-footer p {
    margin-bottom: 10px;
  }

  .job-main {
    padding-top: 32px;
  }

  .job-card {
    padding: 0;
  }

  .my-pdfs-hero h1, .sample-hero h1 {
    font-size: var(--text-3xl);
  }

  .policy-main {
    padding: 32px 0 56px;
  }

  .policy-heading h1 {
    font-size: var(--text-3xl);
  }

  .policy-lede {
    font-size: var(--text-md);
  }
}

@media (max-width: 560px) {
  .policy-toc nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .audit-flow-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "outcome"
      "order"
      "report";
    row-gap: 26px;
  }

  .audit-order-panel {
    position: static;
  }

  .audit-order-panel > .btn-primary {
    width: 100%;
  }

  .audit-report-body .audit-stats {
    margin-top: 4px;
  }
}

@media (max-width: 720px) {
  .document-context-inner {
    padding-block: 14px 16px;
  }

  .document-title-row {
    margin-bottom: 0;
  }

  .document-title-row .btn {
    padding-inline: 10px;
  }

  .mobile-step {
    display: block;
    margin-top: 10px;
  }

  .flow-main, .job-main {
    padding: 32px 0 56px;
  }

  .processing-shell, .job-card {
    width: min(100% - 32px, 760px);
  }

  .processing-header h1 {
    font-size: var(--text-2xl);
  }

  .processing-status {
    padding: 20px;
  }

  .job-status-head {
    display: block;
  }

  .stack-mobile, .job-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stack-mobile .btn, .job-actions .btn, .job-actions .job-action {
    width: 100%;
  }

  .job-fact {
    align-items: flex-start;
  }

  .stage-heading h1, .success-heading h1 {
    font-size: var(--text-2xl);
  }

  .stage-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stage-actions .btn {
    width: 100%;
  }

  .stage-delete-action {
    margin-left: 0;
  }

  .remaining-item-head {
    display: block;
  }

  .remaining-source {
    display: block;
    margin-top: 3px;
  }

  .download-row {
    grid-template-columns: 1fr;
  }

  .download-row .btn {
    width: 100%;
  }

  .audit-document-context {
    padding: 16px;
  }

  .audit-document-title {
    margin-bottom: 8px;
  }

  .audit-document-title .btn {
    flex: 0 0 auto;
    padding-inline: 10px;
  }

  .audit-lifecycle {
    display: none;
  }

  .audit-mobile-step {
    display: block;
  }

  .audit-result {
    width: min(100% - 32px, 1200px);
    margin: 32px auto 56px;
  }

  .audit-outcome {
    display: block;
  }

  .audit-outcome .grade-badge {
    width: 54px;
    min-width: 54px;
    height: 54px;
    margin-bottom: 14px;
    font-size: var(--text-2xl);
  }

  .audit-outcome h1 {
    font-size: var(--text-2xl);
  }

  .audit-order-panel > #do-remediate {
    margin-top: 10px;
  }

  .audit-order-benefits {
    display: none;
  }

  .audit-report-actions {
    grid-template-columns: 1fr;
  }

  .audit-scope-columns {
    grid-template-columns: 1fr;
  }

  .audit-profile-grid {
    grid-template-columns: 1fr;
  }

  .audit-profile-grid > div, .audit-profile-grid > div:first-child {
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .audit-profile-grid > div:last-child {
    border-bottom: 0;
  }

  .audit-scope-section.attention {
    padding: 18px;
    border: 2px solid var(--warning-bright);
  }

  .audit-finding-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
  }

  .audit-finding-row > .sev-pill {
    grid-column: 1;
  }

  .audit-finding-page {
    grid-column: 2;
  }

  .audit-finding-copy, .audit-scope-tag {
    grid-column: 1 / -1;
  }

  .audit-loading-state {
    width: min(100% - 32px, 760px);
    margin-block: 48px;
  }
}

@media (forced-colors: active) {
  .grade-badge, .audit-scope-tag, .audit-evidence-status, .audit-lifecycle li::before, .process-stage::before, .progress-track {
    border: 1px solid CanvasText;
    forced-color-adjust: auto;
  }

  .audit-lifecycle li::after, .process-stage::after {
    background: CanvasText;
    forced-color-adjust: none;
  }

  .audit-lifecycle li.done::after, .audit-lifecycle li.current::after, .process-stage.done::after {
    background: Highlight;
  }

  .audit-report-spinner {
    border-color: CanvasText;
    border-top-color: Highlight;
    forced-color-adjust: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .audit-report-spinner {
    animation: none;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 760px) {
  .unified-review-queue {
    grid-template-columns: 1fr;
  }

  .unified-review-card {
    align-items: stretch;
    flex-direction: column;
  }

  .unified-review-card .btn {
    width: 100%;
  }
}

.processing-shell, .job-card {
  width: min(100% - 40px, var(--content-narrow));
  max-width: var(--content-narrow);
}

.accept-shell, .complete-shell, .stage-heading {
  max-width: var(--content-narrow);
}

body[data-review-mode="ready"] .ready {
  max-width: none;
}

body[data-review-mode="ready"] .ready :is(.ready-sub, .ready-did, .ready-primary-decision, .ready-faq, .ready-fine, .ready-disclaimer, .refund-disclosure, .blocked-checklist, .look-list) {
  max-width: none;
}

.accept-notice, .retention-notice, .stage-status.acceptance-advisory, .sample-scope-note, .audit-caveat-note, .ready-callout, .deleted-state, .review-operation-status.success, .ready-note.warn, .customer-context-why, .decline-box, .stage-error, .job-outcome-failed, .review-operation-status.error, .error-box, .review-acceptance-note.blocked, .review-operation-status.working, .stage-status.acceptance-blocked, .policy-summary {
  margin: 12px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--info);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text);
  background: var(--info-soft);
}

.ready-callout, .deleted-state, .review-operation-status.success {
  border-left-color: var(--success);
  background: var(--success-soft);
}

.ready-note.warn, .customer-context-why, .decline-box {
  border-left-color: var(--warning);
  background: var(--warning-soft);
}

.stage-error, .job-outcome-failed, .review-operation-status.error, .error-box {
  border-left-color: var(--error);
  background: var(--error-soft);
}

.review-acceptance-note.blocked, .review-operation-status.working, .stage-status.acceptance-blocked, .policy-summary {
  border-left-color: var(--primary);
  background: var(--primary-soft);
}

.upload-card, .audit-order-panel, .buy-panel, .pay-banner, .sample-findings, .sample-grade, .sample-price, .sample-columns article, .price-card, .unified-review-card, .mini-card, .upload-outcome {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: none;
}

.upload-outcome {
  border-left: 4px solid var(--warning);
}

.audit-stats {
  margin: 24px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-block: 1px solid var(--line);
}

.audit-stats div, .audit-stats > div, .ready-metric.warn, .ready-metric.ok, .ready-metric.warn, .ready-metric.ok {
  min-width: 0;
  padding: 14px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.audit-stats div:first-child {
  padding-left: 0;
}

.audit-stats div:last-child {
  border-right: 0;
}

.audit-stats dt {
  display: block;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: none;
}

.audit-stats dd {
  display: block;
  margin: 4px 0 0;
  color: var(--text-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.2;
}

.ready-metric.warn strong {
  color: var(--warning);
}

.audit-tabs, .pdf-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.audit-tabs button, .pdf-tab {
  min-height: 44px;
  margin-bottom: -1px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--text-muted);
  background: transparent;
  font: inherit;
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.review-nav button:hover:not(.active), .audit-tabs button:hover {
  color: var(--text-heading);
  background: var(--surface-soft);
}

.review-nav button.active, .review-nav button.active, .audit-tabs button[aria-selected="true"], .pdf-tab.is-active {
  border-bottom-color: var(--primary);
  color: var(--text-heading);
  background: transparent;
}

.email-row input, .field textarea, .field select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  background: var(--surface-card);
  font: inherit;
  font-size: var(--text-md);
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

.field label, .email-row label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-strong);
  font-size: var(--text-sm);
  font-weight: 700;
}

@media (max-width: 720px) {
  .audit-stats {
    grid-template-columns: 1fr;
  }

  .audit-stats div, .audit-stats > div, .ready-metric.warn, .ready-metric.ok, .ready-metric.warn, .ready-metric.ok {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .audit-stats div:last-child {
    border-bottom: 0;
  }
}
