:root {
  --bg: #f4f6f2;
  --surface: #ffffff;
  --surface-soft: #f8faf7;
  --ink: #101712;
  --muted: #667168;
  --line: #dce3dd;
  --line-dark: #c8d2ca;
  --accent: #19a463;
  --accent-dark: #0c7040;
  --accent-soft: #e5f6ec;
  --warning: #b86114;
  --warning-soft: #fff1df;
  --danger: #aa3232;
  --danger-soft: #fdeaea;
  --shadow: 0 20px 60px rgba(19, 35, 23, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(25, 164, 99, 0.08), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 8px 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(138px, 16vw, 156px);
  height: auto;
}

.powered-pill,
.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  color: var(--muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(25, 164, 99, 0.12);
}

.hero {
  padding: 84px 0 54px;
  max-width: 920px;
}

.eyebrow,
.section-kicker {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.hero h1 {
  max-width: 900px;
  margin: 18px 0 22px;
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: var(--accent);
}

.hero-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

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

.hero-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.no-upload-note {
  color: var(--muted);
  font-size: 11px;
}

.proof-row {
  display: flex;
  gap: 38px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.proof-row div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proof-row strong {
  font-size: 15px;
}

.proof-row span {
  color: var(--muted);
  font-size: 13px;
}

.audit-card,
.investigation,
.results {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.audit-card {
  padding: 34px;
}

.section-heading,
.results-header,
.subsection-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.section-heading h2,
.results-header h2,
.subsection-heading h3,
.action-panel h3 {
  margin: 8px 0 0;
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: 32px;
}

.privacy-note {
  color: var(--muted);
  font-size: 13px;
}

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

.upload-zone {
  position: relative;
  min-height: 190px;
  border: 1.5px dashed var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  transition: 160ms ease;
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  font-weight: 800;
}

.upload-zone strong {
  font-size: 18px;
}

.file-label {
  color: var(--muted);
  font-size: 14px;
}

.upload-zone small {
  color: #879188;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 7px;
}

.controls-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-top: 22px;
}

.currency-control {
  width: 180px;
}

.currency-control label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.currency-control input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 0 14px;
  text-transform: uppercase;
  font-weight: 700;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.button {
  border: 0;
  border-radius: 13px;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 750;
  transition: 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.brand:focus-visible,
.upload-zone:focus-within,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(25, 164, 99, 0.3);
  outline-offset: 3px;
}

.button.primary {
  color: white;
  background: var(--ink);
  min-width: 190px;
}

.button.primary span {
  margin-left: 12px;
}

.button.secondary {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.investigation {
  padding: 46px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.investigation h2 {
  margin: 8px 0 14px;
  letter-spacing: -0.035em;
}

.investigation p {
  color: var(--muted);
  margin-bottom: 0;
}

.spinner {
  width: 54px;
  height: 54px;
  border: 5px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.progress-track {
  height: 7px;
  background: #edf1ed;
  border-radius: 999px;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 12%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 500ms ease;
}

.results {
  padding: 34px;
  margin-top: 28px;
}

.results-header {
  align-items: center;
}

.results-header h2 {
  font-size: 38px;
}

.results-header p {
  max-width: 710px;
  color: var(--muted);
  line-height: 1.65;
  margin: 12px 0 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.metric {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 16px;
}

.metric strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.035em;
  margin-bottom: 5px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  margin-top: 35px;
}

.priority-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.priority-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.priority-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.priority-number {
  color: #9ba49c;
  font-size: 13px;
  font-weight: 800;
}

.priority-card h4 {
  font-size: 21px;
  margin: 7px 0 6px;
  letter-spacing: -0.025em;
}

.impact-value {
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.impact-type {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
  text-align: right;
  text-transform: uppercase;
}

.urgency {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 9px;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.urgency.today {
  color: var(--danger);
  background: var(--danger-soft);
}

.urgency.this_week {
  color: var(--warning);
  background: var(--warning-soft);
}

.urgency.monitor {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.evidence {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 18px 0;
}

.recommendation {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 14px;
  line-height: 1.55;
}

.recommendation span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 5px;
}

.priority-details-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.priority-details {
  border-top: 1px solid var(--line);
  padding-top: 11px;
  color: var(--muted);
  font-size: 13px;
}

.priority-details summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.priority-details-content {
  padding: 6px 0 0 2px;
  line-height: 1.55;
}

.priority-details-content p {
  margin: 7px 0;
}

.action-panel {
  align-self: start;
  position: sticky;
  top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: white;
  padding: 24px;
}

.action-panel .section-kicker {
  color: #7ce4aa;
}

.action-panel h3 {
  font-size: 24px;
}

.action-group {
  margin-top: 22px;
}

.action-group strong {
  color: #9ba8a0;
  font-size: 11px;
  letter-spacing: 0.09em;
}

.action-group ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.action-group li {
  margin: 9px 0;
  color: #e6ebe7;
  line-height: 1.5;
  font-size: 13px;
}

.verified-signals {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 22px;
}

.verified-signals summary {
  cursor: pointer;
  font-weight: 750;
}

.signal-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.signal-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
}

.signal-row span {
  color: var(--muted);
  font-size: 12px;
}

.agent-trace {
  margin-top: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 17px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.agent-trace strong {
  display: block;
  margin-top: 4px;
}

.trace-model-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.trace-stage {
  min-width: 145px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.trace-stage span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.trace-stage strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.investigation-decision {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--ink);
  color: var(--surface);
}

.investigation-decision-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.investigation-decision-heading p {
  margin: 0;
  color: #b9c3bc;
  font-size: 12px;
}

.investigation-decision-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 0;
  border-top: 1px solid #334039;
}

.investigation-decision-grid div {
  padding: 16px 14px 0;
  border-left: 1px solid #334039;
}

.investigation-decision-grid div:first-child {
  padding-left: 0;
  border-left: 0;
}

.investigation-decision-grid dt {
  color: #9eaaa2;
  font-size: 11px;
}

.investigation-decision-grid dd {
  margin: 6px 0 0;
  color: var(--surface);
  font-size: 13px;
  font-weight: 750;
}

.rerun-button {
  margin-top: 20px;
}

.architecture-strip {
  margin: 46px 0;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 13px;
}

.architecture-strip b {
  color: var(--accent);
}

footer {
  padding: 28px 0 40px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}

.content-section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.content-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.content-heading h2,
.partner-section h2,
.orbio-section h2 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.content-heading p,
.partner-section p,
.orbio-section p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
}

.step-grid article {
  min-height: 230px;
  padding: 25px;
  border-right: 1px solid var(--line);
}

.step-grid article:last-child { border-right: 0; }
.step-grid article > span { color: var(--accent); font-size: 12px; font-weight: 800; }
.step-grid h3 { margin: 50px 0 10px; font-size: 24px; letter-spacing: -0.03em; }
.step-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: center;
}

.split-section .content-heading { margin: 0; }

.investigation-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.investigation-grid span,
.cost-aware-row span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
}

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

.mode-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.mode-card.featured { background: var(--ink); color: white; border-color: var(--ink); }
.mode-label { color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: 0.1em; }
.mode-card h3 { margin: 12px 0; font-size: 30px; letter-spacing: -0.04em; }
.mode-card p, .mode-card li { color: var(--muted); line-height: 1.65; }
.mode-card.featured p, .mode-card.featured li { color: #cbd3cd; }
.mode-card ul { padding-left: 18px; margin: 24px 0; }
.mode-card li { margin: 9px 0; font-size: 14px; }
.mode-card small { color: var(--accent); font-weight: 700; }

.architecture-section { text-align: center; }
.architecture-section .content-heading { margin-left: auto; margin-right: auto; }
.architecture-visual { max-width: 920px; margin: 0 auto; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); }
.architecture-node { padding: 15px 18px; border: 1px solid var(--line-dark); border-radius: 13px; background: var(--surface-soft); font-weight: 750; }
.root-node { width: min(280px, 100%); margin: 0 auto; background: var(--ink); color: white; border-color: var(--ink); }
.accent-node { background: var(--accent-soft); color: var(--accent-dark); border-color: rgba(25, 164, 99, 0.35); }
.connector-line { width: 1px; height: 28px; margin: 0 auto; background: var(--line-dark); }
.source-nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.architecture-flow { display: flex; align-items: center; justify-content: center; gap: 13px; }
.architecture-flow b { color: var(--accent); }

.partner-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.partner-section h2 { margin-bottom: 0; }
.partner-section p:first-child { margin-top: 0; }
.partner-section strong { color: var(--ink); }

.orbio-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  padding-left: 34px;
  padding-right: 34px;
  margin-bottom: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.orbio-mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #7ce4aa; font-size: 25px; font-weight: 900; }
.orbio-section h2 { max-width: 780px; }
.cost-aware-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 24px; }
.cost-aware-row span { background: var(--accent-soft); color: var(--accent-dark); border-color: transparent; font-size: 11px; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100% - 48px));
  padding: 15px 17px;
  border-radius: 13px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  z-index: 20;
}

.hidden {
  display: none !important;
}

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

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

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

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

  .action-panel {
    position: static;
  }

  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid article:nth-child(2) { border-right: 0; }
  .step-grid article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .split-section, .partner-section { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .powered-pill {
    font-size: 11px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .audit-card,
  .results {
    padding: 22px;
  }

  .section-heading,
  .results-header,
  .controls-row,
  .investigation-decision-heading,
  .agent-trace {
    flex-direction: column;
  }

  .investigation-decision-grid {
    grid-template-columns: 1fr 1fr;
  }

  .investigation-decision-grid div,
  .investigation-decision-grid div:first-child {
    padding: 14px 10px 0;
    border-left: 0;
  }

  .controls-row {
    align-items: stretch;
  }

  .currency-control {
    width: 100%;
  }

  .action-buttons {
    display: grid;
  }

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

  .priority-top {
    flex-direction: column;
  }

  .impact-type {
    text-align: left;
  }

  .investigation {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  footer {
    flex-direction: column;
  }

  .content-section { padding: 64px 0; }
  .step-grid, .mode-grid, .source-nodes { grid-template-columns: 1fr; }
  .step-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .step-grid article:last-child { border-bottom: 0; }
  .step-grid h3 { margin-top: 24px; }
  .architecture-visual { padding: 20px; }
  .architecture-flow { flex-direction: column; }
  .architecture-flow b { transform: rotate(90deg); }
  .orbio-section { grid-template-columns: 1fr; padding: 28px 22px; }
}


/* LEAKSCOUT V3 POLISH */

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

.hero h1 {
  max-width: 880px;
  font-size: clamp(48px, 6.2vw, 80px);
}

.platform-note {
  display: inline-flex;
  margin: 28px 0 0;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.upload-icon {
  width: auto;
  min-width: 46px;
  padding: 0 9px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.upload-zone.active .upload-icon {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.upload-zone.active .file-label {
  color: var(--accent-dark);
  font-weight: 700;
}

.file-chip {
  width: max-content;
  margin-top: 8px;
  padding: 5px 7px;
  border-radius: 7px;
  background: white;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.data-coverage-note {
  margin-top: 17px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
}

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

.data-coverage-note.full-ready {
  border-color: rgba(25, 164, 99, 0.3);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.demo-action {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.demo-currency-control {
  width: min(320px, 100%);
}

.demo-currency-control label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.demo-currency-control select {
  width: 100%;
  min-width: 260px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 0 36px 0 12px;
  font-weight: 700;
  cursor: pointer;
}

.demo-helper {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  margin-top: 8px;
}

.coverage-banner {
  margin-top: 22px;
  border: 1px solid #ead7ad;
  background: #fff9ea;
  color: #775b19;
  border-radius: 14px;
  padding: 15px 17px;
  font-size: 12px;
  line-height: 1.6;
}

.coverage-banner strong {
  display: block;
  margin-bottom: 3px;
  color: #604815;
}

.orbio-step {
  color: var(--accent-dark);
  font-weight: 800;
}

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

  .platform-note {
    border-radius: 13px;
  }

  .demo-action {
    width: 100%;
  }

  .demo-action .button {
    width: 100%;
  }

  .demo-currency-control select {
    min-width: 0;
  }
}


/* LEAKSCOUT V5 */

.currency-control select {
  width: 100%;
  min-width: 260px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 0 40px 0 14px;
  font-weight: 700;
  cursor: pointer;
}

.currency-control {
  width: min(320px, 100%);
}

.currency-help {
  display: block;
  max-width: 320px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

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

.inventory-insight-metric {
  min-width: 125px;
  text-align: right;
}

.inventory-insight-metric strong {
  display: block;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.inventory-insight-metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  .currency-control select {
    min-width: 0;
  }

  .inventory-insight-metric {
    text-align: left;
  }
}


/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 34px;
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) 2fr;
  gap: 64px;
  padding-bottom: 38px;
}

.footer-brand {
  max-width: 380px;
}

.footer-brand a {
  display: inline-block;
}

.footer-logo {
  display: block;
  width: 148px;
  height: auto;
}

.footer-brand p {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-links strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.footer-links a {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-dark);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding-top: 38px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    width: 140px;
  }
}

/* LEAKSCOUT TOP NAV */

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  margin-right: 24px;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: color 150ms ease;
}

.top-nav a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  list-style: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.mobile-menu nav {
  position: absolute;
  top: 52px;
  right: 0;
  width: 220px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 70;
}

.mobile-menu nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.mobile-menu nav a:hover {
  background: var(--surface-soft);
}

@media (max-width: 760px) {
  .top-nav,
  .desktop-orbio-pill {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu summary {
    display: flex;
  }

  .nav {
    min-height: 78px;
  }
}

/* LEAKSCOUT NAV REFINEMENT */

.nav {
  position: relative;
}

@media (min-width: 761px) {
  .top-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    gap: 28px;
  }

  .nav-actions {
    margin-left: auto;
  }
}


/* LEAKSCOUT MOBILE FULL MENU */

@media (max-width: 760px) {
  .mobile-menu nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    padding: 42px 24px 32px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background:
      radial-gradient(circle at top right, rgba(25, 164, 99, 0.08), transparent 24rem),
      var(--bg);
    box-shadow: none;
    z-index: 100;
  }

  .mobile-menu nav a {
    display: flex;
    align-items: center;
    min-height: 66px;
    padding: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.025em;
  }

  .mobile-menu nav a:hover {
    background: transparent;
    color: var(--accent-dark);
  }

  .mobile-menu nav a:last-child {
    margin-top: 20px;
    min-height: 48px;
    border-bottom: 0;
    color: var(--accent-dark);
    font-size: 14px;
  }
}


/* MOBILE MENU ORBIO FOOTER FINAL */

.mobile-menu-footer {
  display: none;
}

@media (max-width: 760px) {
  .mobile-orbio-pill {
    display: none !important;
  }

  .nav {
    min-height: 78px;
    align-items: center;
    padding-top: 0;
  }

  .mobile-menu nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    bottom: 104px;
    width: auto;
    padding: 42px 24px 24px;
    overflow-y: auto;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background:
      radial-gradient(circle at top right, rgba(25, 164, 99, 0.08), transparent 24rem),
      var(--bg);
    box-shadow: none;
    z-index: 100;
  }

  .mobile-menu nav a {
    min-height: 70px;
    display: flex;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 750;
  }

  .mobile-menu-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 101;
    padding: 18px 24px calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
  }

  .mobile-menu[open] .mobile-menu-footer {
    display: block;
  }

  .mobile-menu-orbio {
    width: 100%;
    min-height: 54px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
    font-size: 15px;
  }
}


/* LEAKSCOUT PREMIUM NAV FINAL */

/* Desktop: centered, evenly spaced navigation */
@media (min-width: 761px) {
  .top-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 46vw);
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .top-nav a {
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
  }

  .nav-actions {
    margin-left: auto;
  }
}


/* Mobile: fixed premium navigation sheet */
@media (max-width: 760px) {
  body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .nav {
    position: relative;
    min-height: 78px;
    align-items: center;
    padding-top: 0;
    z-index: 110;
  }

  .mobile-menu {
    position: relative;
    z-index: 120;
  }

  .mobile-menu[open]::before {
    content: "";
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    bottom: 0;
    background:
      radial-gradient(
        circle at top right,
        rgba(25, 164, 99, 0.08),
        transparent 26rem
      ),
      var(--bg);
    z-index: 98;
  }

  .mobile-menu summary {
    position: relative;
    z-index: 120;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    transition: 180ms ease;
  }

  .mobile-menu[open] summary span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-menu[open] summary span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu[open] summary span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-menu summary span {
    transition:
      transform 180ms ease,
      opacity 140ms ease;
  }

  .mobile-menu nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    bottom: 108px;
    width: auto;
    padding: 44px 30px 24px;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    z-index: 100;
  }

  .mobile-menu nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 76px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(16, 23, 18, 0.1);
    border-radius: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.025em;
  }

  .mobile-menu nav a::after {
    content: "›";
    margin-left: auto;
    color: var(--muted);
    font-size: 28px;
    font-weight: 400;
  }

  .mobile-menu nav a:hover {
    background: transparent;
    color: var(--accent-dark);
  }

  .mobile-menu-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 108px;
    display: none;
    align-items: center;
    justify-content: center;
    padding:
      18px
      28px
      calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(16, 23, 18, 0.1);
    background: transparent;
    z-index: 101;
  }

  .mobile-menu[open] .mobile-menu-footer {
    display: flex;
  }

  .mobile-menu-orbio {
    width: 100%;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 12px 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    box-shadow: none;
  }

  .mobile-menu-orbio .pulse-dot {
    width: 9px;
    height: 9px;
  }
}


/* AUDIT CONTROLS CLEANUP */

.audit-actions {
  width: 100%;
  justify-content: flex-end;
}

.audit-actions #audit-button {
  min-width: 220px;
}


/* FINAL BALANCED AUDIT CONTROLS */

.controls-row {
  align-items: flex-end;
}

.demo-currency-control {
  width: min(320px, 100%);
}

.demo-currency-control select {
  width: 100%;
  height: 48px;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.action-buttons .button {
  min-height: 48px;
}

.action-buttons #audit-button {
  min-width: 190px;
}

.audit-actions {
  width: auto;
  justify-content: initial;
}

@media (max-width: 620px) {
  .demo-currency-control,
  .demo-currency-control select,
  .action-buttons {
    width: 100%;
  }

  .action-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .action-buttons .button {
    width: 100%;
  }
}
