:root {
  --ink: #151713;
  --ink-soft: #565b52;
  --paper: #f3f1e9;
  --surface: #fbfaf5;
  --line: #d8d7cd;
  --line-strong: #b9bbb0;
  --lime: #b8f536;
  --lime-dark: #6f9e08;
  --red: #d33f2f;
  --amber: #c47a10;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 22px 70px rgba(25, 28, 22, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 0%, rgba(184, 245, 54, 0.12), transparent 24rem),
    var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(111, 158, 8, 0.3);
  outline-offset: 3px;
}

.page-shell {
  width: min(1420px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(21, 23, 19, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--ink);
  background: var(--lime);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.08em;
  transform: rotate(-3deg);
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.share-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-size: 11px;
  font-weight: 720;
}

.share-button:hover {
  background: var(--white);
}

.privacy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-dark);
  box-shadow: 0 0 0 4px rgba(111, 158, 8, 0.12);
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(50px, 8vw, 150px);
  align-items: center;
  padding: 74px clamp(12px, 4vw, 58px) 82px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span:first-child {
  padding: 7px 10px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 4px;
}

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

h1 {
  max-width: 950px;
  margin-bottom: 28px;
  font-size: clamp(54px, 7.2vw, 106px);
  line-height: 0.92;
  letter-spacing: -0.068em;
  font-weight: 760;
}

h1 em,
.wedge h2 em {
  color: var(--lime-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero-subtitle {
  max-width: 670px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.hero-actions,
.toolbar-actions,
.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.buyer-qualifier {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 720;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

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

.button-primary {
  min-height: 54px;
  padding: 0 22px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 12px 26px rgba(111, 158, 8, 0.16);
}

.button-primary:hover {
  background: #c4ff43;
}

.text-link,
.sample-link {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.text-link {
  padding: 12px;
  text-decoration-color: var(--line-strong);
}

.hero-proof {
  align-self: end;
  margin-bottom: 12px;
  padding-left: 24px;
  border-left: 1px solid var(--line-strong);
}

.proof-number {
  margin-bottom: 4px;
  font-size: 42px;
  font-weight: 760;
  letter-spacing: -0.07em;
}

.hero-proof > p {
  max-width: 180px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.proof-rule {
  height: 1px;
  margin-bottom: 19px;
  background: var(--line);
}

.hero-proof ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.hero-proof li {
  display: flex;
  gap: 8px;
}

.hero-proof li span {
  color: var(--lime-dark);
}

.workspace,
.results {
  margin-bottom: 96px;
  padding: clamp(28px, 4vw, 60px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.results.is-blocked .metric-grid,
.results.is-blocked .verification-note,
.results.is-blocked .findings-panel {
  display: none;
}

.results.is-blocked .success-index {
  color: var(--red);
}

.results.is-blocked .success-index span {
  background: var(--red);
}

.section-heading,
.results-heading,
.findings-toolbar,
.quality-panel summary,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.section-heading {
  margin-bottom: 32px;
}

.section-index {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.button-quiet {
  color: var(--ink-soft);
  background: transparent;
  border-color: var(--line);
  font-size: 12px;
}

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

.upload-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.upload-card.has-file {
  border-color: rgba(111, 158, 8, 0.55);
  box-shadow: inset 0 0 0 1px rgba(111, 158, 8, 0.12);
}

.upload-card.is-dragging {
  border-color: var(--lime-dark);
  box-shadow: 0 0 0 5px rgba(184, 245, 54, 0.16);
}

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

.step-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--ink);
  background: var(--paper);
  font-size: 10px;
  font-weight: 800;
}

.file-role {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.drop-target {
  min-height: 186px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #f8f8f2;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.drop-target:hover {
  border-color: var(--lime-dark);
  background: #fbfdea;
}

.upload-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
}

.drop-target strong {
  margin-bottom: 6px;
  font-size: 15px;
}

.drop-target > span:last-child {
  color: var(--ink-soft);
  font-size: 12px;
}

.file-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.has-file .status-dot {
  background: var(--lime-dark);
  box-shadow: 0 0 0 4px rgba(111, 158, 8, 0.1);
}

.schema-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 25px;
  margin-bottom: 14px;
}

.schema-row span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-soft);
  background: var(--surface);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.sample-link {
  display: inline-flex;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  text-decoration-color: var(--line-strong);
}

.run-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  color: var(--paper);
  background: var(--ink);
}

.run-copy {
  display: flex;
  align-items: center;
  gap: 13px;
}

.run-copy p {
  margin: 0;
  color: #aaada4;
  font-size: 11px;
  line-height: 1.45;
}

.run-copy strong {
  color: var(--surface);
}

.lock-icon {
  color: var(--lime);
  font-size: 10px;
}

.button-run {
  min-width: 205px;
  color: var(--ink);
  background: var(--lime);
}

.results {
  scroll-margin-top: 22px;
  animation: reveal 360ms ease both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-heading {
  align-items: flex-end;
  margin-bottom: 34px;
}

.success-index {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lime-dark);
}

.success-index span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-dark);
}

.audit-stamp {
  margin: 0;
  color: var(--ink-soft);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
  text-align: right;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.metric-card {
  min-width: 0;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: var(--white);
}

.metric-card p {
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  overflow: hidden;
  font-size: clamp(30px, 3vw, 49px);
  line-height: 1;
  letter-spacing: -0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card span {
  color: var(--ink-soft);
  font-size: 10px;
}

.metric-primary {
  color: var(--ink);
  background: var(--lime);
}

.metric-primary p,
.metric-primary span {
  color: rgba(21, 23, 19, 0.72);
}

.verification-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 13px 16px;
  border: 1px solid #ead9b4;
  border-radius: 10px;
  background: #fff8e8;
}

.verification-note > span {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6e4713;
  background: #f4d99c;
  font-size: 11px;
  font-weight: 900;
}

.verification-note p {
  margin: 0;
  color: #6e5734;
  font-size: 11px;
  line-height: 1.4;
}

.findings-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.findings-toolbar {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.filter-chip {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.filter-chip span {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 5px;
  background: var(--paper);
  font-size: 9px;
}

.filter-chip.is-active {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.search-box {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: var(--surface);
}

.search-box input {
  width: 130px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
}

.button-export {
  min-height: 36px;
  padding: 0 12px;
  color: var(--surface);
  background: var(--ink);
  font-size: 10px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid #ecece5;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--ink-soft);
  background: #f8f8f3;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

th button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

th.numeric,
td.numeric {
  text-align: right;
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover {
  background: #fbfced;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.account-cell strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.account-cell span,
.invoice-count {
  color: var(--ink-soft);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 9px;
}

.issue-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.issue-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.issue-missing_invoice {
  color: #a42d22;
  background: #fff0ed;
}

.issue-underbilled {
  color: #93600d;
  background: #fff6df;
}

.opportunity-value {
  color: var(--red);
  font-weight: 800;
}

.details-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.empty-findings {
  padding: 40px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 12px;
}

.quality-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.quality-panel summary {
  padding: 15px 17px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.quality-panel summary span:last-child {
  color: var(--ink-soft);
  font-weight: 600;
}

#quality-list {
  display: grid;
  gap: 8px;
  padding: 0 17px 16px;
}

.quality-item {
  display: grid;
  grid-template-columns: 70px 58px 1fr;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 7px;
  color: var(--ink-soft);
  background: var(--paper);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 9px;
}

.quality-item.is-error {
  color: #8d2a20;
  background: #fff1ef;
}

.quality-clean {
  color: var(--ink-soft);
  font-size: 11px;
}

.wedge {
  padding: 20px clamp(12px, 4vw, 58px) 110px;
}

.wedge-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(40px, 9vw, 150px);
  align-items: end;
  margin: 28px 0 62px;
}

.wedge h2 {
  font-size: clamp(40px, 5.2vw, 76px);
}

.wedge-grid > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.expansion-line {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  gap: 13px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.expansion-line i {
  height: 1px;
  background: var(--line-strong);
}

.expansion-line span {
  white-space: nowrap;
}

.expansion-line .is-now {
  color: var(--ink);
}

.expansion-line small {
  margin-left: 5px;
  padding: 4px 5px;
  border-radius: 4px;
  color: var(--ink);
  background: var(--lime);
  font-size: 7px;
}

.partner-cta {
  margin: 0 clamp(12px, 4vw, 58px) 100px;
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: clamp(34px, 8vw, 120px);
  align-items: center;
  border-radius: 26px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(184, 245, 54, 0.18), transparent 16rem),
    var(--ink);
  box-shadow: var(--shadow);
}

.partner-cta .section-index {
  color: var(--lime);
}

.partner-cta h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 4.6vw, 68px);
}

.partner-cta p:not(.section-index) {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.65;
}

.partner-cta-action {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 13px;
}

.partner-cta-action .button {
  text-decoration: none;
}

.partner-cta-action small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  line-height: 1.5;
}

footer {
  min-height: 100px;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 10px;
}

footer p {
  margin: 0;
}

.brand-footer {
  font-size: 16px;
}

.brand-footer .brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 14px;
}

dialog {
  width: min(580px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.24);
}

dialog::backdrop {
  background: rgba(19, 22, 17, 0.6);
  backdrop-filter: blur(4px);
}

.dialog-shell {
  padding: 26px;
}

.dialog-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.dialog-kicker {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dialog-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-size: 20px;
}

.dialog-account {
  margin-bottom: 6px;
  font-size: 31px;
  letter-spacing: -0.045em;
}

.dialog-meta {
  margin-bottom: 25px;
  color: var(--ink-soft);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.evidence-grid div {
  padding: 15px;
  background: var(--white);
}

.evidence-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-grid strong {
  font-size: 18px;
  letter-spacing: -0.04em;
}

.evidence-copy,
.action-copy {
  padding: 15px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
}

.evidence-copy {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: var(--white);
}

.action-copy {
  margin: 0;
  color: #3d5311;
  background: #eff9d8;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100% - 44px));
  padding: 13px 16px;
  border-radius: 10px;
  color: var(--surface);
  background: var(--ink);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-proof {
    display: none;
  }

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

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

  .partner-cta {
    grid-template-columns: 1fr;
  }

  .expansion-line {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .expansion-line i {
    display: none;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1420px);
  }

  .topbar {
    min-height: 68px;
  }

  .privacy-pill {
    font-size: 0;
    padding: 10px;
  }

  .share-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }

  .hero {
    padding: 55px 8px 64px;
  }

  h1 {
    font-size: clamp(45px, 14vw, 70px);
  }

  .hero-actions,
  .findings-toolbar,
  .toolbar-actions,
  .run-bar,
  .section-heading,
  .results-heading,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .text-link {
    text-align: center;
  }

  .workspace,
  .results {
    padding: 22px 14px;
    border-radius: 18px;
  }

  .upload-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .button-run {
    width: 100%;
  }

  .filter-group {
    overflow-x: auto;
  }

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

  .search-box input {
    width: 100%;
  }

  .metric-card {
    min-height: 150px;
  }

  .table-wrap {
    max-width: 100%;
    overflow-x: hidden;
  }

  table {
    table-layout: fixed;
  }

  th,
  td {
    padding: 11px 6px;
    white-space: normal;
  }

  th:nth-child(2),
  td:nth-child(2),
  th:nth-child(4),
  td:nth-child(4),
  th:nth-child(5),
  td:nth-child(5) {
    display: none;
  }

  th:nth-child(1) { width: 32%; }
  th:nth-child(3) { width: 31%; }
  th:nth-child(6) { width: 24%; }
  th:nth-child(7) { width: 13%; }

  .issue-badge {
    gap: 4px;
    padding: 5px;
    font-size: 7px;
  }

  .opportunity-value {
    font-size: 10px;
  }

  .details-button {
    width: 27px;
    height: 27px;
  }

  .wedge {
    padding-bottom: 70px;
  }

  .partner-cta {
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 70px;
    padding: 30px 22px;
    border-radius: 20px;
  }

  footer {
    padding: 28px 0;
    gap: 15px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
