/* Discovery drove the visual design more than any style preference did:
 *
 *   "The agents really vary in their tech comfort level. Dave's been here since the
 *    Clinton administration and still prints his emails... We need something my
 *    mother could figure out. She's 73... Half our team is over 50. Clean, obvious,
 *    no hunting for buttons."
 *
 * Consequences, all deliberate:
 *   - 19px base type, not the 14-16px a denser tool would use.
 *   - One column, one screen. No tabs, no accordions holding required steps, no
 *     hamburger menu. Nothing an agent has to discover.
 *   - Verdicts carry a symbol and a word, never color alone. Color-blindness is
 *     roughly 1 in 12 men, and this team skews older; a red/green-only verdict
 *     would be unreadable to several of the 47 agents.
 *   - Contrast held well above the 4.5:1 WCAG AA floor throughout.
 *   - Large hit targets, always-visible focus rings, real keyboard support.
 */

:root {
  --ink: #13253f;
  --ink-soft: #526274;
  --line: #d5dee8;
  --bg: #f2f6fa;
  --panel: #ffffff;
  --navy: #12345a;
  --navy-deep: #0c2746;
  --blue: #1769aa;
  --blue-soft: #e8f2fb;
  --gold: #c59643;
  --shadow: 0 14px 40px rgba(23, 48, 79, .08);

  --pass-ink: #155b3b;
  --pass-bg: #e9f7ef;
  --pass-line: #2f7c57;

  --review-ink: #714900;
  --review-bg: #fff7e5;
  --review-line: #b4770c;

  --fail-ink: #8a2823;
  --fail-bg: #fff0ee;
  --fail-line: #c24a42;

  --focus: #0969c3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.5rem 4rem;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 2%, rgba(23, 105, 170, .1), transparent 28rem),
    linear-gradient(#f8fbfd 0, var(--bg) 34rem);
  color: var(--ink);
  font: 18px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

main, .page-header, .page-footer { max-width: 1120px; margin-inline: auto; }

.page-header { padding: 2.5rem 0 1rem; }
h1 { font-size: 2.4rem; margin: 0 0 .4rem; letter-spacing: -0.02em; }
.tagline { font-size: 1.15rem; color: var(--ink-soft); margin: 0; max-width: 60ch; }

.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.75rem 1.75rem;
  margin-bottom: 1.5rem;
}

.step h2 {
  font-size: 1.5rem;
  margin: 0 0 .35rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.step-number {
  flex: none;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
}

.step-help { margin: 0 0 1.25rem; color: var(--ink-soft); }

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.field { display: flex; flex-direction: column; gap: .35rem; }
label { font-weight: 600; }
.req { font-weight: 400; color: var(--ink-soft); }

input[type="text"] {
  font: inherit;
  padding: .7rem .8rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 3rem;
}
input[type="text"]:focus-visible,
.dropzone:focus-visible,
.btn:focus-visible,
.result:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
input::placeholder { color: #8a8a8a; }

.note {
  margin: 1.25rem 0 0;
  padding: .75rem 1rem;
  background: var(--bg);
  border-left: 4px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
}

/* Drop zone: the single obvious action on the page. Deliberately oversized. */
.dropzone {
  border: 3px dashed var(--line);
  border-radius: 12px;
  background: #fcfcfb;
  padding: 2.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.dropzone:hover, .dropzone.is-over {
  border-color: var(--focus);
  background: #f2f6fd;
}
.dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.dropzone-icon { font-size: 2.4rem; line-height: 1; color: var(--ink-soft); }
.dropzone-title { font-size: 1.35rem; font-weight: 600; }
.dropzone-or { color: var(--ink-soft); }
.dropzone-hint { color: var(--ink-soft); font-size: .95rem; }

.btn {
  font: inherit;
  font-weight: 600;
  border-radius: 8px;
  padding: .75rem 1.4rem;
  min-height: 3rem;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-soft); }

.csv-help { margin-top: 1.25rem; }
.csv-help summary {
  cursor: pointer;
  font-weight: 600;
  padding: .5rem 0;
}
.csv-help p { color: var(--ink-soft); max-width: 68ch; }
.csv-help pre, code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88rem;
}
.csv-help pre {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .9rem 1rem;
  overflow-x: auto;
}

.summary {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}
.results-toolbar { margin-bottom: 1.25rem; }

.results { display: flex; flex-direction: column; gap: .9rem; }

.result {
  border: 2px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.result.v-PASS   { border-color: var(--pass-line); }
.result.v-REVIEW { border-color: var(--review-line); }
.result.v-FAIL   { border-color: var(--fail-line); }

.result-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.1rem;
  flex-wrap: wrap;
}
.result.v-PASS   .result-head { background: var(--pass-bg); }
.result.v-REVIEW .result-head { background: var(--review-bg); }
.result.v-FAIL   .result-head { background: var(--fail-bg); }

/* Symbol + word together. Never color alone. */
.verdict {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .02em;
  flex: none;
}
.verdict-mark {
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
}
.result.v-PASS   .verdict { color: var(--pass-ink); }
.result.v-PASS   .verdict-mark { background: var(--pass-line); }
.result.v-REVIEW .verdict { color: var(--review-ink); }
.result.v-REVIEW .verdict-mark { background: var(--review-line); }
.result.v-FAIL   .verdict { color: var(--fail-ink); }
.result.v-FAIL   .verdict-mark { background: var(--fail-line); }

.result-name { font-weight: 600; flex: 1 1 auto; word-break: break-all; }
.result-timing { color: var(--ink-soft); font-size: .9rem; flex: none; }

.result-body { padding: .35rem 1.1rem 1.1rem; }

.checks, .result-notes { list-style: none; margin: 0; padding: 0; }
.checks li {
  padding: .8rem 0;
  border-bottom: 1px solid #ededed;
}
.checks li:last-child { border-bottom: 0; }

.check-line { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.check-mark { font-weight: 700; flex: none; width: 1.2rem; }
.check-mark.m-PASS   { color: var(--pass-line); }
.check-mark.m-REVIEW { color: var(--review-line); }
.check-mark.m-FAIL   { color: var(--fail-line); }
.check-label { font-weight: 600; flex: none; }
.check-rule { color: var(--ink-soft); font-size: .85rem; }
.check-note { margin: .3rem 0 0 1.8rem; color: var(--ink-soft); }

.compare {
  margin: .45rem 0 0 1.8rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .2rem .7rem;
  font-size: .95rem;
}
.compare dt { color: var(--ink-soft); }
.compare dd { margin: 0; font-weight: 600; word-break: break-word; }

.result-notes li {
  margin-top: .6rem;
  padding: .7rem .9rem;
  background: var(--bg);
  border-left: 4px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: .95rem;
}

.pending { color: var(--ink-soft); font-style: italic; padding: .6rem 0; }

.page-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .95rem;
}
.page-footer p { margin: .4rem 0; }
.footer-meta { font-size: .88rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 600px) {
  body { font-size: 18px; }
  h1 { font-size: 1.9rem; }
  .step { padding: 1.15rem 1rem 1.35rem; }
}

/* Submission polish */

button,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--blue);
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  border-radius: 8px;
  background: var(--navy-deep);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-header {
  padding: 1.25rem 0 2rem;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(19, 37, 63, .11);
}

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

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

.product-brand strong {
  font-size: 1rem;
  letter-spacing: -.01em;
}

.product-brand small {
  margin-top: .05rem;
  color: var(--ink-soft);
  font-size: .72rem;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.product-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  box-shadow: 0 6px 16px rgba(12, 39, 70, .18);
}

.product-mark svg {
  width: 1.9rem;
  height: 1.9rem;
  overflow: visible;
}

.product-mark path:first-child {
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
}

.product-mark-check {
  fill: none;
  stroke: #f4cb73;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.system-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .7rem;
  border: 1px solid #c8d7e6;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 700;
}

.status-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #2f8b61;
  box-shadow: 0 0 0 4px rgba(47, 139, 97, .12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2.8rem, 7vw, 5rem) 0 2.2rem;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.step-kicker,
.demo-kicker {
  margin: 0 0 .45rem;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  max-width: 18ch;
  margin: 0 0 1rem;
  font-size: clamp(2.55rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.052em;
}

.tagline {
  max-width: 62ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.4rem;
  margin: 1.65rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: .85rem;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.trust-list li::before {
  content: "";
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--gold);
}

.trust-list strong {
  color: var(--ink);
}

.demo-card {
  position: relative;
  overflow: hidden;
  padding: 1.7rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 110% -10%, rgba(244, 203, 115, .32), transparent 13rem),
    linear-gradient(145deg, var(--navy), var(--navy-deep));
  box-shadow: 0 22px 55px rgba(12, 39, 70, .22);
  color: #fff;
}

.demo-card::after {
  position: absolute;
  right: -2.5rem;
  bottom: -3.5rem;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow:
    0 0 0 1.8rem rgba(255, 255, 255, .035),
    0 0 0 3.6rem rgba(255, 255, 255, .025);
  content: "";
}

.demo-kicker {
  color: #f4cb73;
}

.demo-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 .65rem;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.demo-card p:not(.demo-kicker):not(.demo-status) {
  position: relative;
  z-index: 1;
  margin: 0 0 1.25rem;
  color: #dce7f2;
  font-size: .9rem;
}

.btn-demo {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .26);
  background: #fff;
  color: var(--navy-deep);
}

.btn-demo:hover {
  background: #f7fbff;
  transform: translateY(-1px);
}

.btn-demo[disabled] {
  cursor: wait;
  opacity: .75;
  transform: none;
}

.demo-status {
  min-height: 1.25rem;
  margin: .65rem 0 0;
  color: #dce7f2;
  font-size: .78rem;
}

.workflow-label {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 1rem 1rem;
  color: #6b7b8c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.workflow-label span {
  position: relative;
}

.workflow-label span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -20%;
  width: 40%;
  height: 1px;
  background: #cdd8e3;
  content: "";
}

.step {
  margin-bottom: 1.35rem;
  padding: clamp(1.35rem, 4vw, 2.2rem);
  border: 1px solid rgba(131, 151, 173, .32);
  border-radius: 20px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow);
}

.step-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.55rem;
}

.step-heading h2 {
  display: block;
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.step-heading .step-help {
  margin: .35rem 0 0;
}

.step-number {
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid #c4d8ea;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .7);
}

.step-kicker {
  margin-bottom: .25rem;
  font-size: .7rem;
}

.step-help {
  color: var(--ink-soft);
  font-size: .94rem;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.35rem;
}

.field {
  gap: .4rem;
}

label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 750;
}

.req {
  padding: .14rem .42rem;
  border-radius: 999px;
  background: #edf3f8;
  color: #5a6b7d;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

input[type="text"] {
  min-height: 3.15rem;
  padding: .7rem .85rem;
  border: 1.5px solid #cbd7e2;
  border-radius: 10px;
  background: #fbfdff;
  color: var(--ink);
  font-size: .95rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

input[type="text"]:hover {
  border-color: #aabac9;
  background: #fff;
}

input[type="text"]:focus {
  border-color: var(--focus);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(9, 105, 195, .1);
  outline: 0;
}

input::placeholder {
  color: #8793a0;
  opacity: 1;
}

.note {
  margin-top: 1.4rem;
}

.note-rule {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem .9rem;
  border: 1px solid #d7e3ed;
  border-left: 1px solid #d7e3ed;
  border-radius: 10px;
  background: #f5f9fc;
  color: var(--ink-soft);
}

.note-rule p {
  margin: 0;
  font-size: .88rem;
}

.note-rule strong {
  color: var(--ink);
}

.note-icon {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: Georgia, serif;
  font-size: .85rem;
  font-weight: 700;
}

.dropzone {
  padding: clamp(2rem, 7vw, 3.7rem) 1rem;
  border: 2px dashed #aebdcb;
  border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, .78), rgba(255, 255, 255, .78)),
    repeating-linear-gradient(135deg, #f3f7fa, #f3f7fa 10px, #eef4f8 10px, #eef4f8 20px);
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}

.dropzone:hover,
.dropzone.is-over {
  border-color: var(--blue);
  background: #f4f9fd;
  box-shadow: inset 0 0 0 4px rgba(23, 105, 170, .06);
}

.dropzone.is-over {
  transform: scale(1.005);
}

.dropzone-inner {
  gap: .45rem;
}

.dropzone-icon {
  display: grid;
  width: 3.3rem;
  height: 3.3rem;
  margin-bottom: .25rem;
  place-items: center;
  border-radius: 15px;
  background: var(--blue-soft);
  color: var(--blue);
}

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

.dropzone-title {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.dropzone-or {
  margin-bottom: .45rem;
  font-size: .86rem;
}

.dropzone-hint {
  margin-top: .35rem;
  font-size: .76rem;
}

.upload-status {
  min-height: 1.4rem;
  margin: .65rem 0 0;
  color: var(--ink-soft);
  font-size: .82rem;
}

.btn {
  justify-content: center;
  gap: .55rem;
  min-height: 2.8rem;
  padding: .65rem 1rem;
  border-radius: 9px;
  font-size: .86rem;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}

.btn-primary {
  background: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-deep);
}

.btn-secondary {
  border-color: #bdcad6;
  background: #fff;
  color: var(--navy);
}

.btn-secondary:hover {
  border-color: #8fa2b5;
  background: #f7fafc;
}

.btn-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--ink-soft);
}

.btn-quiet:hover {
  background: #edf3f8;
  color: var(--ink);
}

.csv-help {
  margin-top: .2rem;
  border-top: 1px solid #e0e7ee;
}

.csv-help summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem .15rem .35rem;
  color: var(--ink);
  font-size: .88rem;
  list-style: none;
}

.csv-help summary::-webkit-details-marker {
  display: none;
}

.csv-help summary::before {
  margin-right: .3rem;
  color: var(--blue);
  content: "+";
  font-size: 1.15rem;
  line-height: 1;
}

.csv-help[open] summary::before {
  content: "\2212";
}

.csv-help summary span:first-child {
  margin-right: auto;
}

.summary-action {
  color: var(--blue);
  font-size: .75rem;
  font-weight: 800;
}

.csv-help-body {
  padding: .2rem 0 .85rem 1.5rem;
}

.csv-help p {
  font-size: .86rem;
}

.csv-help pre {
  border-color: #d9e2ea;
  background: #f7fafc;
  font-size: .75rem;
}

.text-link {
  display: inline-block;
  margin-top: .3rem;
  font-size: .82rem;
  font-weight: 750;
  text-underline-offset: 3px;
}

.results-step {
  scroll-margin-top: 1rem;
}

.results-heading {
  margin-bottom: 1.25rem;
}

.summary {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 260px);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d3dee8;
  border-radius: 12px;
  background: #f6f9fc;
  font-size: .9rem;
}

.summary-copy {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .6rem;
  align-items: baseline;
}

.summary-copy strong {
  color: var(--ink);
  font-size: 1rem;
}

#summary-detail {
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 500;
}

.progress-track {
  overflow: hidden;
  height: .45rem;
  border-radius: 999px;
  background: #dfe8f0;
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #4b91c8);
  transition: width .2s ease;
}

.results-controls {
  position: sticky;
  z-index: 4;
  top: .55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  margin: 0 0 1rem;
  padding: .7rem;
  border: 1px solid rgba(185, 199, 212, .8);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 25px rgba(20, 45, 76, .08);
  backdrop-filter: blur(12px);
}

.filter-group,
.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.45rem;
  padding: .45rem .7rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: .76rem;
  font-weight: 750;
}

.filter-btn:hover {
  background: #f0f5f9;
  color: var(--ink);
}

.filter-btn.is-active {
  border-color: #c5d4e2;
  background: var(--blue-soft);
  color: var(--navy);
}

.filter-count {
  display: grid;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 .25rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(19, 37, 63, .08);
  font-size: .67rem;
}

.results-actions .btn {
  min-height: 2.45rem;
  padding: .45rem .72rem;
  font-size: .76rem;
}

.results {
  gap: .75rem;
}

.result {
  border-width: 1px;
  border-color: #cfdae4;
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(20, 45, 76, .045);
}

.result[hidden] {
  display: none;
}

.result-head {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content 1.2rem;
  gap: .8rem;
  align-items: center;
  padding: .85rem 1rem;
  cursor: pointer;
  list-style: none;
}

.result-head::-webkit-details-marker {
  display: none;
}

.result-head:hover {
  filter: brightness(.985);
}

.verdict {
  gap: .4rem;
  font-size: .82rem;
  letter-spacing: 0;
}

.verdict-mark {
  width: 1.45rem;
  height: 1.45rem;
  font-size: .78rem;
}

.result-name {
  overflow: hidden;
  font-size: .86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.result-timing {
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.result-caret {
  width: .55rem;
  height: .55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--ink-soft);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .15s;
}

.result[open] .result-caret {
  transform: rotate(225deg) translate(-1px, -1px);
}

.result-body {
  padding: .25rem 1rem 1rem;
  border-top: 1px solid rgba(19, 37, 63, .07);
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .8rem 0 .15rem;
}

.result-meta span {
  padding: .2rem .5rem;
  border-radius: 999px;
  background: #eef3f7;
  color: #607083;
  font-size: .68rem;
  font-weight: 700;
}

.checks li {
  padding: .7rem 0;
}

.check-line {
  gap: .45rem;
}

.check-label {
  font-size: .84rem;
}

.check-rule {
  font-size: .7rem;
}

.check-note,
.compare,
.result-notes li {
  font-size: .78rem;
}

.compare {
  grid-template-columns: 7.5rem 1fr;
}

.result-notes li {
  border-left-color: #aebdcb;
  background: #f5f8fa;
}

.pending {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .8rem .2rem;
  font-size: .84rem;
}

.pending::before {
  width: 1rem;
  height: 1rem;
  border: 2px solid #c4d2df;
  border-top-color: var(--blue);
  border-radius: 50%;
  content: "";
  animation: spin .8s linear infinite;
}

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

.page-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top-color: #d0dae4;
}

.privacy-callout {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  max-width: 72ch;
}

.privacy-callout p {
  margin: 0;
  font-size: .83rem;
}

.privacy-callout strong {
  color: var(--ink);
}

.privacy-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: #e5edf4;
  color: var(--navy);
}

.privacy-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.footer-meta {
  margin-top: .7rem !important;
  font-size: .74rem;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2.5rem;
  }

  .hero-copy {
    max-width: none;
  }

  .demo-card {
    max-width: 620px;
  }

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

  .results-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .results-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 620px) {
  body {
    padding: 0 .85rem 2.5rem;
    font-size: 17px;
  }

  .page-header {
    padding-top: .85rem;
  }

  .header-bar {
    align-items: flex-start;
  }

  .system-badge {
    padding: .4rem .55rem;
    font-size: .68rem;
  }

  .product-brand small {
    display: none;
  }

  .hero {
    padding-top: 2.15rem;
  }

  h1 {
    font-size: 2.55rem;
  }

  .trust-list {
    align-items: flex-start;
    flex-direction: column;
    gap: .45rem;
  }

  .workflow-label {
    display: none;
  }

  .step {
    padding: 1.2rem 1rem 1.35rem;
    border-radius: 15px;
  }

  .step-heading {
    gap: .75rem;
  }

  .step-number {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 11px;
  }

  .dropzone {
    padding: 2.25rem .75rem;
  }

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

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

  .filter-btn {
    justify-content: space-between;
  }

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

  .result-head {
    grid-template-columns: max-content minmax(0, 1fr) 1rem;
    gap: .6rem;
  }

  .result-timing {
    display: none;
  }

  .compare {
    grid-template-columns: 1fr;
    gap: .05rem;
  }

  .compare dd {
    margin-bottom: .4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pending::before {
    animation: none;
  }
}
