:root {
  --ink: #172033;
  --muted: #657084;
  --line: #dbe1ea;
  --paper: #ffffff;
  --wash: #f5f7fa;
  --blue: #1f5f9f;
  --blue-dark: #174872;
  --green: #24705a;
  --amber: #9a5d15;
  --red: #a13b3b;
  --shadow: 0 18px 55px rgba(23, 32, 51, 0.12);
  color-scheme: light;
}

* {
  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(--wash);
  letter-spacing: 0;
}

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

button,
a.primary-button,
a.secondary-button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 225, 234, 0.86);
  background: rgba(245, 247, 250, 0.92);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
}

.brand-logo {
  display: block;
  width: 178px;
  height: auto;
}

.hero-logo {
  display: block;
  width: min(320px, 78vw);
  height: auto;
  margin-bottom: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a,
.footer-links a {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.7rem 0.85rem;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.footer-links a:hover {
  color: var(--ink);
  background: rgba(219, 225, 234, 0.55);
}

.nav-links .nav-cta {
  color: white;
  background: var(--ink);
  margin-left: 0.55rem;
  padding-inline: 1rem;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
  color: white;
  background: var(--blue-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 4rem;
  align-items: center;
  padding: 4.5rem 0 3rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.94;
  max-width: 9ch;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 5vw, 5.2rem);
  line-height: 1;
}

.lede {
  max-width: 620px;
  color: #405067;
  font-size: 1.12rem;
  line-height: 1.65;
  margin: 1.4rem 0 0;
}

.hero-safety-note {
  max-width: 680px;
  color: #405067;
  border-left: 4px solid var(--blue);
  background: #f4f9fd;
  padding: 0.9rem 1rem;
  border-radius: 0 6px 6px 0;
  line-height: 1.55;
  margin: 1.1rem 0 0;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.primary-button,
.secondary-button,
.review-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
  font-weight: 850;
}

.primary-button {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.primary-button:hover:not(:disabled) {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.primary-button:disabled {
  cursor: not-allowed;
  color: #94a0b4;
  background: #edf1f6;
  border-color: var(--line);
}

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

.secondary-button:hover {
  border-color: #b9c3d2;
}

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

.workspace-frame {
  border: 1px solid #cdd7e4;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
}

.workspace-topbar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.workspace-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b9c3d2;
}

.workspace-topbar strong {
  margin-left: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 410px;
}

.source-list {
  border-right: 1px solid var(--line);
  background: #f9fbfd;
  padding: 1rem;
}

.panel-title {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.source-row {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #526176;
  font-size: 0.78rem;
}

.source-row b {
  color: var(--ink);
}

.source-row.selected {
  background: white;
  border-color: #c7d7ec;
  box-shadow: 0 6px 18px rgba(31, 95, 159, 0.08);
}

.review-panel {
  position: relative;
  padding: 1.3rem;
}

.timeline-line {
  position: absolute;
  left: 2.1rem;
  top: 4rem;
  bottom: 5rem;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.8rem;
  align-items: start;
  margin: 1rem 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.46rem;
  top: 0.42rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px white;
}

.timeline-item span {
  padding-left: 1.6rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.timeline-item p {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #334056;
  font-size: 0.86rem;
  background: white;
}

.timeline-item.alert p,
.gap-card {
  border-color: #efc6a1;
  background: #fff7ed;
}

.gap-card {
  margin-top: 1.2rem;
  padding: 0.9rem;
  border-radius: 6px;
  color: #703f10;
  font-size: 0.88rem;
  font-weight: 750;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-band article {
  background: white;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #c7d7ec;
  border-radius: 6px;
  color: var(--blue);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.feature-icon-img {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

.feature-band h2,
.method-stack h2,
.protocol-grid h2,
.contact-panel h2,
.sandbox-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.feature-band p,
.method-stack p,
.protocol-grid p,
.contact-panel p,
.sandbox-card p {
  margin: 0;
  color: #526176;
  line-height: 1.6;
}

.page-shell,
.sandbox-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 2rem;
}

.section-heading h1,
.pilot-layout h1,
.sandbox-header h1 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.section-heading p:not(.eyebrow),
.pilot-layout p {
  color: #405067;
  line-height: 1.65;
  font-size: 1.03rem;
}

.method-stack {
  display: grid;
  gap: 0.75rem;
}

.method-stack article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.method-stack span {
  color: var(--blue);
  font-weight: 900;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.protocol-grid article,
.contact-panel,
.sandbox-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 1.35rem;
}

.pilot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 2rem;
  align-items: start;
}

.pilot-layout .primary-button {
  margin-top: 1rem;
}

.contact-line {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.contact-line span,
.fine-print,
.contact-notice {
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-notice {
  max-width: 620px;
  margin-top: 1rem;
  border: 1px solid #c7d7ec;
  border-radius: 6px;
  background: #f4f9fd;
  color: var(--ink);
  padding: 1rem;
  font-weight: 760;
}

.sandbox-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sandbox-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.warning-panel {
  border-left: 4px solid var(--amber);
  background: #fff7e8;
  color: #704611;
  padding: 1rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.step-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.8rem;
  margin-bottom: 0.4rem;
}

.step-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  border-radius: 6px;
  padding: 0.55rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 850;
}

.step-tabs button.active {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.step-tabs button.locked {
  cursor: not-allowed;
  color: #9aa5b5;
  background: #eef2f6;
}

.step {
  display: none;
  min-height: 330px;
}

.step.active,
.final-step.active {
  display: block;
}

.final-step {
  display: none;
  min-height: 330px;
}

code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8fafc;
  padding: 0.12rem 0.32rem;
  color: var(--ink);
}

.file-list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem;
}

.file-list strong {
  color: var(--green);
  font-size: 0.76rem;
}

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

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.82rem;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

td:first-child {
  color: var(--blue);
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.timeline article,
.issue-list article,
.queue-grid article,
.summary-grid article {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
  padding: 1rem;
}

.timeline time {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.timeline b,
.issue-list span {
  color: var(--blue);
}

.issue-list,
.missing-list,
.queue-grid,
.summary-grid {
  display: grid;
  gap: 0.8rem;
}

.issue-list article {
  border-left: 4px solid var(--red);
  background: #fffafa;
}

.issue-list h3,
.queue-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 0.96rem;
}

.missing-list div {
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 6px;
  padding: 0.9rem;
  color: #59401f;
  background: #fffaf1;
}

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

.queue-grid p {
  padding-left: 0.75rem;
  border-left: 3px solid #c7d7ec;
  margin-top: 0.7rem;
}

.review-button {
  margin-top: 1rem;
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.review-button.confirmed {
  color: var(--green);
  border-color: #88b8a9;
  background: #f1faf6;
}

.lock-note {
  color: var(--amber);
  font-size: 0.84rem;
  margin-top: 0.65rem;
}

.summary-grid article {
  display: grid;
  gap: 0.25rem;
}

.summary-grid strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
}

.score-card {
  display: inline-grid;
  gap: 0.4rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  margin: 1.2rem 0;
}

.conversion-message {
  max-width: 780px;
  color: #334056;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 760;
  margin: 0 0 1.2rem;
}

.score-card strong {
  font-size: 2.4rem;
}

.review-record {
  display: grid;
  gap: 0.5rem;
}

.review-record div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

.review-record b {
  color: var(--blue);
}

.validation-gate {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.gate-alert {
  border: 1px solid #efc6a1;
  border-left: 4px solid var(--amber);
  border-radius: 0 6px 6px 0;
  background: #fff7ed;
  color: #704611;
  padding: 0.85rem 1rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.validation-gate h3 {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.validation-gate > p {
  color: var(--ink);
  font-weight: 760;
}

.answer-row,
.step-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.answer-row button {
  min-width: 92px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 0.65rem 0.9rem;
  font-weight: 850;
}

.answer-row button.selected {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.step-controls {
  justify-content: space-between;
}

.sandbox-limitations {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

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

.site-footer p {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-cta {
    margin-left: 0;
  }

  .hero,
  .pilot-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 2rem;
    padding-top: 3rem;
  }

  h1,
  .section-heading h1,
  .pilot-layout h1,
  .sandbox-header h1 {
    max-width: 14ch;
  }

  .workspace-grid,
  .feature-band,
  .protocol-grid,
  .queue-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .source-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sandbox-header,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .answer-row,
  .step-controls,
  .sandbox-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .review-button,
  .answer-row button {
    width: 100%;
  }

  .method-stack article {
    grid-template-columns: 1fr;
  }
}
