/* ── HERO ── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--teal-mid);
  padding: 5rem 2.5rem;
}
.hero--inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-light);
  border: 1px solid var(--teal-mid);
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--teal);
}
.hero-sub {
  font-size: 1.025rem;
  color: var(--grey-700);
  line-height: 1.7;
  max-width: 430px;
  margin-bottom: 1.75rem;
}
.hero-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.hero-links a {
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.hero-links a:hover {
  text-decoration: underline;
}
.hero-links .sep {
  color: var(--grey-200);
}
.hero-demo-note {
  display: inline-flex;
  gap: 8px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 12px;
  color: var(--warn-text);
  max-width: 430px;
}
.hero-demo-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--warn-primary);
}

/* ── UPLOAD CARD ── */
.upload-card {
  background: var(--off-white);
  border: 1px solid var(--teal-mid);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 2px 20px rgba(31, 107, 94, 0.08);
}

.upload-card > *:not(:last-child) {
  margin-bottom: 1rem;
}

.upload-card-header {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 1rem;
}

.upload-zone {
  position: relative;
  background: var(--teal-light);
  border: 2px dashed var(--teal-mid);
  border-radius: 10px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.upload-zone:hover {
  border-color: var(--teal);
  background: #d3e9e4;
}

.upload-zone:focus-within,
.upload-zone.is-dragover {
  outline: 4px solid var(--blue-uswds-focus);
  outline-offset: 3px;
}

#input-pdf {
  scroll-margin-top: 100px;
}

/*
  The real file input fills the upload zone.
  It is invisible, but it is still the real focusable form control.
*/
.upload-file-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/*
  Keep the visual content behind the real input.
*/
.upload-icon,
#upload-empty-state,
#upload-selected-state {
  position: relative;
  z-index: 0;
}

.upload-icon {
  width: 46px;
  height: 46px;
  background: var(--teal);
  border-radius: 10px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-icon svg {
  width: 22px;
  height: 22px;
  color: white;
}

/*
  The remove button needs to sit above the invisible file input.
*/
.upload-clear {
  position: relative;
  z-index: 2;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

.upload-zone:not(.has-file) #upload-icon-empty,
.upload-zone.has-file #upload-icon-file {
  display: initial;
}

.upload-zone.has-file #upload-icon-empty,
.upload-zone:not(.has-file) #upload-icon-file {
  display: none;
}

.upload-selected-file {
  font-weight: 700;
  word-break: break-word;
}

.upload-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-600);
}
.upload-divider::before,
.upload-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--teal-mid);
}
.upload-url {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--dark);
  outline: none;
}
.upload-url::placeholder {
  color: var(--grey-500);
}
.upload-submit {
  width: 100%;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0.75rem;
  outline-offset: 4px;
}
.upload-submit:hover {
  background: var(--teal-d);
}
.upload-note {
  font-size: 11px;
  color: var(--grey-700);
  text-align: center;
}

/* ── INTRO ── */
.intro {
  background: var(--teal);
  padding: 2.25rem 2.5rem;
}
.intro p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.975rem;
  color: var(--white);
  line-height: 1.7;
  text-align: center;
}
.intro strong,
.intro a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

/* ── SCALE ── */
.scale {
  background: var(--dark);
  padding: 4.5rem 2.5rem;
}
.scale--inner {
  max-width: 1080px;
  margin: 0 auto;
}
.scale-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
}
.scale h2 {
  font-family: var(--serif);
  font-size: 1.875rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.scale-sub {
  font-size: 0.95rem;
  color: var(--grey-200);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.scale-sub strong {
  color: var(--white);
}
.scale-sub a {
  color: var(--white);
}
.scale-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.scale-btns [class^="btn-"] {
  padding: 10px 22px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  text-decoration: none;
}
.btn-teal {
  background: var(--teal);
  color: white;
  border: none;
}
.btn-ghost {
  background: transparent;
  color: var(--grey-200);
  border: 1px solid var(--grey-500);
}
.code-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem 1.625rem;
  font-family: monospace;
  font-size: 13px;
  line-height: 2;
}
.c-comment {
  color: var(--grey-200);
}
.c-cmd {
  color: #7dd4c4;
}
.c-str {
  color: var(--yellow);
}
.c-kw {
  color: #c0a0e0;
}
.c-plain {
  color: var(--off-white);
}

.triage-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.triage-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 1.375rem 1.25rem;
}
.tc-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
}
.tc-icon.r {
  background: rgba(198, 40, 40, 0.2);
}
.tc-icon.y {
  background: rgba(176, 120, 0, 0.2);
}
.tc-icon.g {
  background: rgba(46, 125, 50, 0.2);
}
.tc-icon svg {
  width: 16px;
  height: 16px;
}
.tc-icon.r svg {
  color: #f48a8a;
}
.tc-icon.y svg {
  color: #e5c060;
}
.tc-icon.g svg {
  color: #7dd4c4;
}
.tc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.tc-desc {
  font-size: 12px;
  color: var(--grey-200);
  line-height: 1.55;
}

/* ── CHECKS ── */
.checks {
  background: var(--off-white);
  border-bottom: 1px solid var(--grey-100);
  padding: 4.5rem 2.5rem;
}
.section-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.section-h {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.section-sub {
  font-size: 0.95rem;
  color: var(--grey-600);
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.checks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.125rem;
}
.check-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 11px;
  padding: 1.375rem 1.25rem;
}
.check-card:hover {
  border-color: var(--teal-mid);
}
.cc-icon {
  width: 38px;
  height: 38px;
  background: var(--teal-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
}
.cc-icon svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}
.cc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}
.cc-desc {
  font-size: 13px;
  color: var(--grey-600);
  line-height: 1.55;
}

/* ── RESULTS PREVIEW ── */
.preview {
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  padding: 4.5rem 2.5rem;
}
.preview--inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.preview h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.preview p {
  font-size: 0.95rem;
  color: var(--grey-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--dark);
  line-height: 1.5;
}
.checklist li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 13px;
}

/* ── REPORT WIDGET ── */
.report-widget {
  background: var(--off-white);
  border: 1px solid var(--grey-200);
  border-radius: 13px;
  padding: 1.5rem;
}
.rw-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.125rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--grey-200);
}
.rw-filename {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.rw-sub {
  font-size: 12px;
  color: var(--grey-600);
  margin-top: 2px;
}
.rw-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 100px;
}
.rw-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 1.125rem;
}
.rw-stat {
  background: var(--white);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  border: 1px solid var(--grey-100);
}
.rw-stat .n {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.rw-stat .n.g {
  color: var(--pass-primary);
}
.rw-stat .n.y {
  color: var(--warn-primary);
}
.rw-stat .n.r {
  color: var(--fail-primary);
}
.rw-stat .l {
  font-size: 11px;
  color: var(--grey-600);
  margin-top: 3px;
  font-weight: 500;
}
.rw-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--grey-100);
  font-size: 13px;
}
.rw-row:last-child {
  border: none;
  padding-bottom: 0;
}
.rw-row .cat {
  color: var(--grey-700);
}
.pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 100px;
}

/* ── MEDIA QUERIES ── */

@media (max-width: 880px) {
  .hero--inner,
  .preview--inner,
  .oss--inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .upload-card,
  .report-widget {
    max-width: 550px;
  }

  .scale-top {
    display: block;
  }

  .code-block {
    display: none;
  }

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

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