.fit-page {
  --fit-ink: #111827;
  --fit-muted: #4b5563;
  --fit-line: #d7dee8;
  --fit-paper: #fffdf8;
  --fit-panel: #ffffff;
  --fit-blue: #2457c5;
  --fit-green: #15805d;
  --fit-red: #ad3f3b;
  --fit-gold: #b87812;
  --fit-slate: #253044;
  background: var(--fit-paper);
  color: var(--fit-ink);
}

.fit-page .topbar {
  position: sticky;
  top: 0;
}

.fit-hero {
  max-width: 1180px;
  min-height: min(760px, calc(84svh - 64px));
  margin: 0 auto;
  padding: 48px 28px 38px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.78fr);
  gap: 42px;
  align-items: center;
}

.fit-hero-copy {
  min-width: 0;
}

.fit-kicker {
  margin: 0 0 16px;
  color: var(--fit-green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fit-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.fit-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--fit-muted);
  font-size: 1.14rem;
}

.fit-actions,
.fit-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.fit-visual {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--fit-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.12);
}

.fit-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.fit-visual figcaption {
  margin: 12px 4px 2px;
  color: var(--fit-muted);
  font-size: 0.92rem;
}

.fit-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 28px;
}

.fit-section h2 {
  max-width: 780px;
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.fit-section > p {
  max-width: 820px;
  color: var(--fit-muted);
}

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

.fit-cluster-market .fit-band {
  background: #f1f6ff;
}

.fit-cluster-public .fit-band {
  background: #fff4ef;
}

.fit-cluster-research .fit-band {
  background: #f3f7ea;
}

.fit-cluster-agent .fit-band {
  background: #eef8f8;
}

.fit-cluster-strategy .fit-band {
  background: #f5f1ff;
}

.fit-cluster-sports .fit-band {
  background: #eef7ff;
}

.fit-two {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.fit-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fit-panel,
.fit-card,
.fit-note {
  border: 1px solid var(--fit-line);
  border-radius: 8px;
  background: var(--fit-panel);
  padding: 22px;
}

.fit-card h3,
.fit-panel h3,
.fit-note h3 {
  margin: 0 0 10px;
  font-size: 1.04rem;
  letter-spacing: 0;
}

.fit-card p,
.fit-panel p,
.fit-note p {
  margin: 0;
  color: var(--fit-muted);
}

.fit-card p + p,
.fit-panel p + p,
.fit-note p + p {
  margin-top: 12px;
}

.fit-steps {
  display: grid;
  gap: 12px;
  counter-reset: fit-step;
}

.fit-step {
  position: relative;
  min-height: 82px;
  padding: 18px 18px 18px 68px;
  border: 1px solid var(--fit-line);
  border-radius: 8px;
  background: #ffffff;
}

.fit-step::before {
  counter-increment: fit-step;
  content: counter(fit-step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--fit-slate);
  color: #fff;
  font-weight: 850;
}

.fit-step strong {
  display: block;
  margin-bottom: 5px;
}

.fit-step span {
  color: var(--fit-muted);
}

.fit-ledger,
.fit-signal-board {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--fit-line);
  border-radius: 8px;
  background: #fff;
}

.fit-ledger th,
.fit-ledger td,
.fit-signal-board th,
.fit-signal-board td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--fit-line);
  text-align: left;
  vertical-align: top;
}

.fit-ledger th,
.fit-signal-board th {
  background: #f8fbff;
  color: #263244;
  font-size: 0.9rem;
}

.fit-prompt {
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #1f3a5f;
  background: #111827;
  color: #eef6ff;
  overflow-wrap: break-word;
}

.fit-path-list {
  display: grid;
  gap: 12px;
}

.fit-path {
  border-left: 4px solid var(--fit-blue);
  padding: 14px 16px;
  background: #fff;
  border-radius: 0 8px 8px 0;
}

.fit-path strong {
  display: block;
  margin-bottom: 4px;
}

.fit-path span {
  color: var(--fit-muted);
}

.fit-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fit-related a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--fit-line);
  border-radius: 8px;
  background: #fff;
  color: var(--fit-ink);
  font-weight: 720;
}

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

.fit-fact-list {
  display: grid;
  gap: 12px;
}

.fit-fact {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--fit-line);
  border-radius: 8px;
  background: #fff;
}

.fit-fact strong {
  color: var(--fit-slate);
}

.fit-fact span {
  color: var(--fit-muted);
}

.fit-page[data-layout="brief-ledger"] .fit-hero,
.fit-page[data-layout="debate-room"] .fit-hero {
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
}

.fit-page[data-layout="signal-map"] .fit-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
}

.fit-page[data-layout="research-lab"] .fit-hero {
  align-items: end;
}

.fit-page[data-layout="scenario-tape"] .fit-visual {
  transform: rotate(-1deg);
}

.fit-page[data-layout="decision-grid"] .fit-visual {
  transform: rotate(1deg);
}

@media (max-width: 860px) {
  .fit-hero,
  .fit-two,
  .fit-three,
  .fit-faq {
    grid-template-columns: 1fr;
  }

  .fit-page[data-layout] .fit-hero {
    grid-template-columns: 1fr;
  }

  .fit-hero {
    min-height: auto;
    padding-top: 38px;
  }

  .fit-visual {
    order: 0;
    width: 100%;
    margin: 18px 0 0;
    transform: none !important;
  }

  .fit-fact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .fit-page,
  .fit-page .topbar,
  .fit-page .navlinks,
  .fit-hero,
  .fit-section,
  .fit-hero-copy,
  .fit-visual,
  .fit-actions,
  .fit-related,
  .fit-card,
  .fit-note {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .fit-page .topbar {
    overflow: visible;
  }

  .fit-page .navlinks {
    grid-template-columns: 1fr;
  }

  .fit-hero,
  .fit-section {
    width: 100vw;
    max-width: 100vw;
    padding-left: 20px;
    padding-right: 20px;
    overflow: hidden;
  }

  .fit-hero-copy,
  .fit-hero h1,
  .fit-lead,
  .fit-actions,
  .fit-visual,
  .fit-section > *,
  .fit-two,
  .fit-three,
  .fit-faq {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }

  .fit-hero h1 {
    font-size: 2.08rem;
    line-height: 1.08;
    white-space: normal;
  }

  .fit-lead,
  .fit-section p,
  .fit-card p,
  .fit-note p,
  .fit-step span,
  .fit-path span,
  .fit-fact span {
    overflow-wrap: anywhere;
  }

  .fit-page .navlinks {
    gap: 8px 12px;
  }

  .fit-page .navlinks a {
    font-size: 0.9rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .fit-actions .button,
  .fit-link-row .button {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
