:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #607080;
  --line: #d8e0e8;
  --panel: #ffffff;
  --page: #f4f7fa;
  --brand: #1266f1;
  --brand-dark: #0a45b5;
  --green: #138a58;
  --amber: #a36300;
  --red: #b3261e;
  --shadow: 0 18px 40px rgba(29, 48, 69, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
  min-height: 40px;
  padding: 0 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  padding: 8px 10px;
}

textarea {
  resize: vertical;
}

label {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.shell {
  min-height: 100vh;
}

.site {
  min-height: 100vh;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 2;
}

.site-brand {
  align-items: center;
  display: inline-flex;
  font-size: 20px;
  font-weight: 900;
  gap: 10px;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.site-nav a,
.button,
.agent-links a {
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a {
  color: #34485c;
  font-size: 14px;
  padding: 8px 10px;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  min-height: calc(100vh - 78px);
  padding: clamp(36px, 7vw, 92px) clamp(20px, 5vw, 72px);
}

.pricing-hero {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  padding: clamp(46px, 7vw, 88px) clamp(20px, 5vw, 72px);
}

.pricing-hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.96;
  margin-bottom: 22px;
}

.pricing-agent-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  padding: 20px;
}

.pricing-agent-card span {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-agent-card code {
  background: #101820;
  border-radius: 6px;
  color: #d8f3dc;
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding: 12px;
}

.pricing-agent-card p {
  color: #34485c;
  line-height: 1.55;
  margin: 0;
}

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

.hero h1 {
  font-size: clamp(48px, 8vw, 92px);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 22px;
}

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

.button {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
  padding: 0 16px;
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.secondary {
  background: #e8f0f8;
  color: #29435c;
}

.product-visual {
  min-width: 0;
}

.doc-card-large {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.doc-toolbar {
  align-items: center;
  background: #eef4fb;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
}

.doc-toolbar span {
  background: #8ea4ba;
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.doc-preview-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.85fr 1.15fr;
  padding: 20px;
}

.paper-preview {
  background:
    linear-gradient(90deg, rgba(18, 102, 241, 0.08) 1px, transparent 1px),
    linear-gradient(#ffffff, #f8fbff);
  background-size: 14px 14px, auto;
  border: 1px solid #c7d4e2;
  border-radius: 7px;
  display: grid;
  gap: 10px;
  min-height: 280px;
  padding: 18px;
}

.paper-logo {
  color: var(--brand-dark);
  font-weight: 900;
}

.paper-preview i,
.paper-table span {
  background: #d7e2ef;
  border-radius: 4px;
  display: block;
  min-height: 10px;
}

.paper-preview i:nth-of-type(1) {
  width: 82%;
}

.paper-preview i:nth-of-type(2) {
  width: 58%;
}

.paper-preview i:nth-of-type(3) {
  width: 72%;
}

.paper-preview i:nth-of-type(4) {
  width: 46%;
}

.paper-table {
  align-self: end;
  display: grid;
  gap: 8px;
  grid-template-columns: 1.4fr 0.75fr 0.75fr;
}

.json-preview {
  align-content: center;
  background: #101820;
  border-radius: 7px;
  color: #d8f3dc;
  display: grid;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  gap: 9px;
  overflow-wrap: anywhere;
  padding: 18px;
}

.feature-band,
.workflow-section,
.diligence-section,
.case-study-section,
.agent-section {
  padding: clamp(38px, 7vw, 88px) clamp(20px, 5vw, 72px);
}

.feature-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
}

.section-heading h2,
.workflow-section h2,
.diligence-section h2,
.case-study-section h2,
.agent-section h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  margin-bottom: 18px;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
}

.feature-grid article {
  border-left: 3px solid var(--brand);
  padding-left: 16px;
}

.feature-grid h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

.feature-grid p,
.workflow-section p,
.diligence-section p,
.case-study-section p,
.agent-section p {
  color: #34485c;
  line-height: 1.55;
  margin-bottom: 0;
}

.workflow-section,
.agent-section {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
}

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

.workflow-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.workflow-list strong {
  color: var(--brand-dark);
}

.workflow-list span {
  color: #34485c;
}

.case-study-section {
  background: #fff;
  border-top: 1px solid var(--line);
}

.diligence-section {
  background: #f7fbff;
  border-top: 1px solid var(--line);
}

.diligence-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
}

.diligence-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.diligence-grid span {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.diligence-grid h3 {
  font-size: 18px;
  margin: 0;
}

.diligence-grid code {
  background: #101820;
  border-radius: 6px;
  color: #d8f3dc;
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding: 10px;
}

.pricing-grid {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(38px, 7vw, 76px) clamp(20px, 5vw, 72px);
}

.pricing-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 24px;
}

.primary-pricing {
  border-color: rgba(18, 102, 241, 0.35);
  box-shadow: var(--shadow);
}

.pricing-card span {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-card h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  margin: 0;
}

.pricing-card p {
  color: #34485c;
  line-height: 1.55;
  margin: 0;
}

.pricing-card ul {
  color: #1d2a38;
  display: grid;
  gap: 10px;
  line-height: 1.45;
  margin: 4px 0 0;
  padding-left: 20px;
}

.pricing-detail-section {
  padding: clamp(38px, 7vw, 88px) clamp(20px, 5vw, 72px);
}

.pricing-detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
}

.pricing-detail-grid article {
  border-left: 3px solid var(--brand);
  padding-left: 16px;
}

.pricing-detail-grid h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

.pricing-detail-grid p {
  color: #34485c;
  line-height: 1.55;
  margin: 0;
}

.case-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 32px;
}

.case-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.case-grid span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-grid h3 {
  font-size: 18px;
  margin: 0;
}

.case-grid code {
  align-self: end;
  background: #101820;
  border-radius: 7px;
  color: #d8f3dc;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
  padding: 10px;
}

.agent-section {
  background: #f8fbff;
  border-top: 1px solid var(--line);
}

.agent-callout {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  padding: 18px;
}

.agent-callout span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.agent-callout code {
  background: #101820;
  border-radius: 7px;
  color: #d8f3dc;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
  padding: 12px;
}

.agent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agent-links a {
  border: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: 13px;
  padding: 8px 10px;
}

.gate-shell {
  align-items: center;
  display: grid;
  padding: 36px;
}

.query-gate {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 860px;
  padding: clamp(24px, 5vw, 44px);
  width: 100%;
}

.query-gate h1 {
  margin-bottom: 0;
}

.gate-command {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.gate-command span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.gate-command code {
  background: #101820;
  border-radius: 7px;
  color: #d8f3dc;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
  padding: 12px;
}

.gate-form {
  display: grid;
  gap: 12px;
}

.gate-form button {
  justify-self: start;
}

.gate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gate-links a {
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}

.login-view {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  min-height: 100vh;
  padding: 48px clamp(24px, 6vw, 96px);
}

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

.brand-row {
  align-items: center;
  display: flex;
  gap: 14px;
}

.brand-row.compact h1 {
  font-size: 24px;
}

.brand-mark {
  align-items: center;
  background: var(--brand);
  border-radius: 8px;
  color: #fff;
  display: grid;
  flex: 0 0 auto;
  font-weight: 900;
  height: 44px;
  place-items: center;
  width: 44px;
}

.eyebrow {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  margin-bottom: 18px;
}

h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.lede {
  color: #34485c;
  font-size: 20px;
  line-height: 1.5;
  max-width: 650px;
}

.product-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.agent-request-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  margin-top: 26px;
  max-width: 680px;
  padding: 18px;
}

.agent-request-card h2,
.agent-request-card p {
  margin-bottom: 0;
}

.agent-request-card p:not(.eyebrow) {
  color: #34485c;
  line-height: 1.45;
}

.agent-request-card code {
  background: #101820;
  border-radius: 7px;
  color: #d8f3dc;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
  padding: 10px 12px;
}

.product-points span,
.status-pill {
  background: #eaf2ff;
  border: 1px solid #c8dcff;
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 24px;
}

.login-panel button,
.primary {
  background: var(--brand);
  color: #fff;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 0;
}

.portal-view {
  padding: 18px;
}

.topbar {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 14px 16px;
}

.topbar h1,
.topbar p {
  margin-bottom: 0;
}

.topbar-actions,
.modal-actions,
.decision-bar {
  display: flex;
  gap: 10px;
}

.secondary {
  background: #e8f0f8;
  color: #29435c;
}

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: #34485c;
}

.danger {
  background: #fee9e7;
  color: var(--red);
}

.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.metric-grid article,
.agent-bridge,
.queue-panel,
.review-panel,
.activity-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-grid article {
  display: grid;
  gap: 6px;
  min-height: 90px;
  padding: 16px;
}

.metric-grid span,
.confidence span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-grid strong {
  font-size: 30px;
}

.agent-bridge {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(240px, 1.2fr) minmax(260px, 1fr) minmax(220px, 0.8fr);
  margin-bottom: 14px;
  padding: 16px;
}

.agent-bridge h2,
.agent-bridge p {
  margin-bottom: 0;
}

.agent-bridge p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
}

.agent-endpoints {
  display: grid;
  gap: 8px;
}

.agent-endpoints code,
.agent-response {
  background: #101820;
  border-radius: 7px;
  color: #d8f3dc;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.agent-endpoints code {
  overflow-wrap: anywhere;
  padding: 8px 10px;
}

.agent-ping {
  align-items: end;
  display: grid;
  gap: 10px;
}

.agent-response {
  grid-column: 1 / -1;
  line-height: 1.45;
  margin: 0;
  max-height: 220px;
  min-height: 52px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.workbench {
  display: grid;
  gap: 14px;
  grid-template-columns: 310px minmax(0, 1fr) 290px;
}

.queue-panel,
.activity-panel,
.review-panel {
  min-height: calc(100vh - 176px);
}

.panel-title {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.panel-title h2 {
  margin-bottom: 0;
}

.panel-title select {
  max-width: 132px;
}

.document-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.doc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
  text-align: left;
}

.doc-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px #dceaff;
}

.doc-card strong {
  display: block;
  font-size: 14px;
}

.doc-card span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: #f0f3f6;
  border-radius: 999px;
  color: #3c5064;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 7px;
}

.tag.review {
  background: #fff1d8;
  color: var(--amber);
}

.tag.fraud {
  background: #fee9e7;
  color: var(--red);
}

.tag.match {
  background: #e7f6ee;
  color: var(--green);
}

.review-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.document-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.document-header h2 {
  font-size: 26px;
  margin: 8px 0 4px;
}

.document-header p:not(.status-pill) {
  color: var(--muted);
  margin-bottom: 0;
}

.confidence {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 114px;
  padding: 10px;
  text-align: right;
}

.confidence strong {
  font-size: 26px;
}

.review-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
  padding: 14px;
}

.document-preview,
.fields-panel,
.line-items-panel {
  background: #f9fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.document-preview {
  display: grid;
  min-height: 342px;
  padding: 18px;
  place-items: center;
}

.invoice-paper {
  aspect-ratio: 0.72;
  background:
    linear-gradient(90deg, rgba(18, 102, 241, 0.08) 1px, transparent 1px),
    linear-gradient(#ffffff, #f8fbff);
  background-size: 16px 16px, auto;
  border: 1px solid #c7d4e2;
  border-radius: 6px;
  box-shadow: 0 18px 26px rgba(40, 60, 80, 0.15);
  display: grid;
  gap: 16px;
  max-height: 300px;
  padding: 20px;
  width: min(100%, 210px);
}

.invoice-logo {
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 900;
}

.invoice-lines {
  display: grid;
  gap: 7px;
}

.invoice-lines span,
.invoice-table span,
.invoice-total {
  background: #d7e2ef;
  border-radius: 4px;
  min-height: 8px;
}

.invoice-lines span:nth-child(1) {
  width: 80%;
}

.invoice-lines span:nth-child(2) {
  width: 62%;
}

.invoice-lines span:nth-child(3) {
  width: 72%;
}

.invoice-lines span:nth-child(4) {
  width: 48%;
}

.invoice-table {
  display: grid;
  gap: 8px;
  grid-template-columns: 1.4fr 0.55fr 0.55fr 0.7fr;
}

.invoice-total {
  justify-self: end;
  min-height: 14px;
  width: 54%;
}

.fields-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.field-row {
  display: grid;
  gap: 6px;
}

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

.line-items-panel {
  margin: 0 14px 14px;
  overflow: hidden;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  padding: 10px 14px;
  text-align: left;
}

th {
  background: #f3f7fb;
  color: #42576d;
}

.json-view {
  background: #101820;
  color: #d8f3dc;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  max-height: 260px;
  overflow: auto;
  padding: 14px;
}

.decision-bar {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  margin-top: auto;
  padding: 14px;
}

.activity-log {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.activity-item {
  border-left: 3px solid var(--brand);
  padding-left: 10px;
}

.activity-item strong {
  display: block;
  font-size: 13px;
}

.activity-item span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 3px;
}

.modal {
  align-items: center;
  background: rgba(13, 28, 43, 0.42);
  display: grid;
  inset: 0;
  padding: 20px;
  place-items: center;
  position: fixed;
}

.modal-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 440px;
  padding: 22px;
  width: 100%;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.45;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 20px;
}

@media (max-width: 1120px) {
  .hero,
  .pricing-hero,
  .workflow-section,
  .agent-section {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .workbench {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .activity-panel {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .doc-preview-grid,
  .diligence-grid,
  .pricing-detail-grid,
  .pricing-grid,
  .case-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .login-view,
  .workbench,
  .review-grid,
  .agent-bridge,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .login-view {
    gap: 28px;
    padding: 24px;
  }

  .topbar,
  .document-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .topbar-actions,
  .decision-bar {
    flex-wrap: wrap;
  }

  .queue-panel,
  .review-panel,
  .activity-panel {
    min-height: auto;
  }
}
