:root {
  color-scheme: light;
  --ink: #151719;
  --muted: #5d646d;
  --line: #dfe3e8;
  --paper: #f8fafc;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #0b5d56;
  --warm: #f7e6c6;
  --code: #111827;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  overflow-x: hidden;
}

main,
section,
.hero-copy,
.terminal,
.triage-panel,
.outcome,
.step {
  min-width: 0;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 min(6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, .94);
  backdrop-filter: blur(14px);
}

.brand {
  text-decoration: none;
  font-weight: 850;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta {
  color: var(--accent-dark);
  font-weight: 800;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: min(6vw, 72px);
  padding: 56px min(6vw, 72px);
  background:
    linear-gradient(120deg, rgba(15, 118, 110, .08), rgba(247, 230, 198, .45)),
    radial-gradient(circle at 76% 20%, rgba(15, 118, 110, .12), transparent 34%),
    var(--paper);
}

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

.lead-hero {
  min-height: calc(86vh - 64px);
}

.signal-hero {
  min-height: calc(82vh - 64px);
}

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

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

h1 {
  margin-bottom: 0;
  max-width: 850px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .95;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.lede {
  max-width: 710px;
  margin: 26px 0 0;
  color: #30363d;
  font-size: 20px;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

button.button {
  cursor: pointer;
  font: inherit;
}

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

.button.secondary {
  background: rgba(255, 255, 255, .76);
}

.button.is-disabled,
.button[aria-disabled="true"] {
  pointer-events: none;
  color: #7c8793;
  background: #edf2f7;
  border-color: #d8e0e8;
}

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

.microcopy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.terminal {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #1f2937;
  border-radius: 8px;
  background: var(--code);
  box-shadow: 0 24px 70px rgba(17, 24, 39, .2);
}

.terminal-top {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid #263244;
}

.terminal-top span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #f87171;
}

.terminal-top span:nth-child(2) {
  background: #fbbf24;
}

.terminal-top span:nth-child(3) {
  background: #34d399;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  color: #e5e7eb;
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.outcomes,
.triage,
.artifact-sample,
.demo-tool,
.strip,
.process,
.final {
  padding: 58px min(6vw, 72px);
  border-top: 1px solid var(--line);
}

.outcomes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  background: #fff;
}

.outcome {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.outcome h2 {
  font-size: 25px;
}

.outcome p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.58;
}

audio {
  width: 100%;
  margin: 4px 0 18px;
}

.sample-image {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.demo-tool {
  display: grid;
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
  gap: min(6vw, 72px);
  align-items: start;
  background: #f3f7f9;
}

.demo-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.demo-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.file-input {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px dashed #9aa8b5;
  border-radius: 7px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
}

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

.preview-frame {
  min-width: 0;
}

.preview-frame h3 {
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
}

.preview-frame canvas,
.preview-frame img {
  display: block;
  width: 100%;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
}

.preview-result {
  min-height: 48px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, .3);
  border-radius: 7px;
  background: #ecfdf5;
  color: #164e45;
  font-weight: 750;
  line-height: 1.45;
}

.preview-actions {
  margin-top: 0;
}

.outcome .button {
  margin-top: auto;
}

.triage {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(320px, 1fr);
  gap: min(7vw, 84px);
  align-items: start;
  background: #fff;
}

.triage-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.triage-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

label {
  color: #2f363d;
  font-size: 13px;
  font-weight: 850;
}

select,
textarea {
  width: 100%;
  border: 1px solid #cfd7df;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 176px;
  resize: vertical;
  padding: 12px;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.triage-result {
  min-height: 98px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.triage-result[data-status="fit"] {
  border-color: rgba(15, 118, 110, .5);
  background: #ecfdf5;
}

.triage-result[data-status="review"] {
  border-color: rgba(180, 83, 9, .5);
  background: #fffbeb;
}

.result-title {
  margin-bottom: 6px;
  font-weight: 900;
}

.result-body {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.result-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.result-table th,
.result-table td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.result-table th {
  color: #2f363d;
  font-weight: 850;
}

.triage-actions {
  margin-top: 2px;
}

.artifact-sample {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: min(6vw, 72px);
  align-items: start;
  background: #f3f7f9;
}

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

.sample-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.artifact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.artifact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, .28);
  border-radius: 7px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.work-order {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.queue-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #e6ebf0;
  border-radius: 7px;
  background: #f8fafc;
}

.queue-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--warm);
  font-weight: 900;
}

.queue-row h3 {
  margin-bottom: 4px;
}

.queue-row p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: min(7vw, 84px);
  background: var(--panel);
}

h2 {
  margin-bottom: 16px;
  font-size: 31px;
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li {
  color: var(--muted);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.plain li {
  color: #343a40;
  font-weight: 650;
}

.process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  background: #eef5f2;
}

.step {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--warm);
  font-weight: 900;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--panel);
}

.final h2 {
  max-width: 780px;
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .topbar {
    position: static;
    padding: 0 20px;
  }

  nav a:not(.nav-cta) {
    display: none;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    padding: 52px 20px;
    overflow: hidden;
  }

  .lead-hero .terminal,
  .signal-hero .terminal {
    display: none;
  }

  .hero-copy,
  .terminal {
    width: 100%;
    max-width: 350px;
  }

  h1 {
    max-width: 350px;
    font-size: 38px;
    line-height: 1;
  }

  .lede {
    max-width: 350px;
    font-size: 17px;
  }

  .microcopy {
    max-width: 350px;
  }

  .actions {
    width: 100%;
    max-width: 350px;
  }

  .actions .button,
  .final .button {
    width: 100%;
  }

  .outcomes,
  .triage,
  .artifact-sample,
  .demo-tool,
  .strip,
  .process,
  .final {
    grid-template-columns: 1fr;
    padding: 42px 20px;
  }

  .process,
  .final {
    display: grid;
  }

  .outcomes {
    display: grid;
    justify-items: start;
  }

  .outcome {
    width: min(320px, 100%);
    max-width: 320px;
    margin: 0;
  }

  .strip > div {
    width: 100%;
    max-width: 350px;
  }

  .sample-copy,
  .work-order {
    width: 100%;
    max-width: 350px;
  }

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

@media (max-width: 1120px) and (min-width: 861px) {
  .outcomes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-copy,
  .terminal,
  .actions,
  h1,
  .lede,
  .microcopy {
    width: 100%;
    max-width: 350px;
  }

  .actions .button {
    max-width: 350px;
  }

  pre {
    font-size: 12px;
  }
}
