:root {
  color-scheme: light;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #eef4ec;
  --surface-raised: #fffdf7;
  --surface-control: #fbfff4;
  --ink: #151713;
  --muted: #606b61;
  --line: #d7dfd2;
  --line-strong: #aebaa9;
  --lime: #b7ff52;
  --teal: #0f6f63;
  --blue: #285ecf;
  --amber: #b87410;
  --shadow: rgba(20, 26, 18, 0.12);
  --focus-ring: rgba(15, 111, 99, 0.28);
  --font-ui: "IBM Plex Sans", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    linear-gradient(110deg, rgba(183, 255, 82, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(31, 138, 122, 0.1), transparent 48%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
}

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

button {
  font: inherit;
}

.scout-shell {
  min-height: 100vh;
  padding: 18px clamp(12px, 2.5vw, 34px) 48px;
}

.scout-topbar {
  margin-bottom: 18px;
}

.scout-topbar.site-topbar--customer[data-site-header] {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: 0 18px 60px var(--shadow);
}

.scout-topbar .site-primary-links a,
.scout-topbar .site-secondary-links a {
  color: var(--ink);
  min-height: 44px;
}

.scout-topbar.site-topbar--customer[data-site-header] .site-secondary-links {
  display: flex !important;
  max-width: 100%;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.scout-topbar.site-topbar--customer[data-site-header] .site-secondary-links::-webkit-scrollbar {
  display: none;
}

.scout-topbar,
.scout-topbar .site-topbar__nav,
.scout-topbar .site-primary-links,
.scout-topbar .site-secondary-links {
  min-width: 0;
  max-width: 100%;
}

.scout-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.38fr);
  gap: 14px;
  margin-bottom: 14px;
}

.scout-hero > div,
.hero-receipt,
.metric-strip,
.opportunity-rail,
.detail-stage,
.proof-rail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 70px var(--shadow);
}

.scout-hero > div {
  min-height: 258px;
  padding: clamp(26px, 5vw, 58px);
}

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

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 6.2rem);
  line-height: 0.92;
}

.scout-hero p {
  max-width: 850px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  line-height: 1.55;
}

.scout-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.scout-hero-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 900;
  line-height: 1;
}

.scout-hero-actions .primary-action {
  border-color: #6f9d2b;
  background: var(--lime);
  color: #172007;
}

.scout-hero-actions .secondary-action {
  border-color: rgba(15, 111, 99, 0.28);
  background: rgba(255, 255, 255, 0.78);
  color: var(--teal);
}

.scout-hero-actions a:focus-visible,
.goal-chip:focus-visible,
.mission-chip:focus-visible,
.hallway-chip:focus-visible,
.expert-card:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.hero-receipt {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(183, 255, 82, 0.28), rgba(255, 255, 255, 0.9)),
    var(--surface);
}

.hero-receipt span,
.metric-strip span,
.benchmark-card span,
.pain-card span,
.hallway-output span,
.field-plan-output span,
.expert-card span,
.frontier-repo-card span,
.expert-output span,
.rail-heading span,
.stage-heading span,
.source-card span,
.thesis-card span,
.panel-heading span,
.proof-rail span {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-receipt strong {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.hero-receipt p,
.metric-strip p,
.source-card p,
.thesis-card p,
.opportunity-card em,
.proof-rail li {
  color: var(--muted);
  line-height: 1.48;
}

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

.metric-strip article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(238, 244, 236, 0.9)),
    var(--surface-soft);
}

.metric-strip strong {
  display: block;
  margin: 7px 0 4px;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1;
}

.benchmark-panel,
.field-plan-panel,
.expert-audit-panel,
.frontier-repo-panel,
.mission-panel,
.pain-panel,
.hallway-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(16px, 2vw, 22px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 70px var(--shadow);
}

.benchmark-heading,
.field-plan-copy,
.expert-audit-heading,
.frontier-repo-heading,
.mission-heading,
.pain-heading,
.hallway-copy {
  max-width: 980px;
}

.benchmark-heading h2,
.field-plan-copy h2,
.expert-audit-heading h2,
.frontier-repo-heading h2,
.mission-heading h2,
.pain-heading h2,
.hallway-copy h2 {
  max-width: 940px;
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3.6vw, 3.8rem);
  line-height: 0.98;
}

.benchmark-heading p,
.field-plan-copy p,
.expert-audit-heading p,
.field-plan-output p,
.expert-output p,
.frontier-repo-heading p,
.mission-heading p,
.pain-heading p,
.hallway-copy p,
.hallway-output p {
  max-width: 860px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.benchmark-heading .eyebrow,
.field-plan-copy .eyebrow,
.expert-audit-heading .eyebrow,
.frontier-repo-heading .eyebrow,
.mission-heading .eyebrow,
.pain-heading .eyebrow,
.hallway-copy .eyebrow {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.benchmark-grid,
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.frontier-repo-heading a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  width: fit-content;
  margin-top: 12px;
  border-bottom: 2px solid var(--lime);
  font-weight: 900;
}

.frontier-repo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.benchmark-card,
.pain-card,
.frontier-repo-card,
.field-plan-output,
.expert-output,
.mission-output,
.mission-proof-card,
.hallway-output {
  display: grid;
  min-width: 0;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(238, 244, 236, 0.9)),
    var(--surface-soft);
}

.benchmark-card p,
.benchmark-card strong,
.benchmark-card em,
.benchmark-card small,
.pain-card p,
.pain-card strong,
.frontier-repo-card p,
.frontier-repo-card strong {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.48;
}

.benchmark-card small {
  font-weight: 800;
}

.benchmark-card strong,
.pain-card strong,
.frontier-repo-card strong {
  color: var(--ink);
}

.benchmark-card a,
.frontier-repo-card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  width: fit-content;
  border-bottom: 2px solid var(--lime);
  font-weight: 900;
}

.frontier-repo-card h3 {
  margin-bottom: 0;
  overflow-wrap: anywhere;
  font-size: 1.12rem;
  line-height: 1.16;
}

.pain-card h3 {
  margin-bottom: 0;
  font-size: 1.16rem;
  line-height: 1.12;
}

.goal-switcher,
.mission-switcher,
.hallway-loop-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.goal-chip,
.mission-chip,
.hallway-chip,
.expert-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-control);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.goal-chip,
.mission-chip,
.hallway-chip {
  min-height: 44px;
  padding: 0 12px;
}

.goal-chip[aria-pressed="true"],
.mission-chip[aria-pressed="true"],
.hallway-chip[aria-pressed="true"],
.expert-card[aria-pressed="true"] {
  border-color: #6f9d2b;
  background: var(--lime);
  color: #172007;
}

.field-plan-output h3,
.expert-output h3,
.mission-output h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.3vw, 2.25rem);
  line-height: 1;
}

.field-plan-output ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.25rem;
}

.field-plan-output li {
  line-height: 1.45;
}

.hallway-output dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.hallway-output dl div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.hallway-output dt {
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hallway-output dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.hallway-export-line {
  border-left: 4px solid var(--teal);
  padding-left: 12px;
  font-weight: 850;
}

.hallway-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hallway-source-list a {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.expert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.expert-card {
  display: grid;
  gap: 8px;
  min-height: 152px;
  padding: 12px;
  text-align: left;
}

.expert-card strong {
  line-height: 1.15;
}

.expert-card em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.35;
}

.challenge-actions {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.challenge-action-heading {
  max-width: 980px;
}

.challenge-action-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
}

.challenge-action-heading p {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.challenge-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.challenge-action-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 54px var(--shadow);
}

.challenge-action-card span {
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.challenge-action-card h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.18;
}

.challenge-action-card p,
.challenge-action-card em {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.48;
}

.challenge-action-card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  width: fit-content;
  border-bottom: 2px solid var(--lime);
  font-weight: 900;
}

@media (max-width: 1040px) {
  .scout-hero {
    grid-template-columns: 1fr;
  }

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

  .benchmark-grid,
  .pain-grid,
  .frontier-repo-grid,
  .expert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .scout-shell {
    padding-inline: 10px;
  }

  .scout-topbar.site-topbar--customer[data-site-header] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    overflow: hidden;
  }

  .scout-topbar.site-topbar--customer[data-site-header] .site-brand {
    max-width: none;
    justify-self: start;
  }

  .scout-topbar.site-topbar--customer[data-site-header] .site-topbar__nav {
    display: grid !important;
    width: 100% !important;
    flex: none !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch;
  }

  .scout-topbar.site-topbar--customer[data-site-header] .site-primary-links,
  .scout-topbar.site-topbar--customer[data-site-header] .site-secondary-links {
    display: flex !important;
    width: 100% !important;
    flex: none !important;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  .scout-topbar.site-topbar--customer[data-site-header] .site-primary-links::-webkit-scrollbar,
  .scout-topbar.site-topbar--customer[data-site-header] .site-secondary-links::-webkit-scrollbar {
    display: none;
  }

  .scout-topbar.site-topbar--customer[data-site-header] .site-primary-links a,
  .scout-topbar.site-topbar--customer[data-site-header] .site-secondary-links a {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 44px;
    align-items: center;
    padding-inline: 6px;
    text-align: center;
    white-space: nowrap !important;
  }

  .scout-hero > div {
    min-height: 0;
    padding: 24px;
  }

  h1 {
    font-size: 2.45rem;
    line-height: 0.98;
  }

  .metric-strip,
  .challenge-action-grid,
  .benchmark-grid,
  .pain-grid,
  .frontier-repo-grid,
  .expert-grid,
  .hallway-output dl {
    grid-template-columns: 1fr;
  }
}
