.sp-page {
  --sp-navy: #112851;
  --sp-blue: #164ec4;
  --sp-muted: #4c607d;
  --sp-line: #d7e3f3;
  --sp-pale: #f0f5ff;
}

.sp-page section[id], .sp-page #capabilities { scroll-margin-top: 90px; }
.sp-page :focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 4px; }

.sp-hero {
  padding: 35px 0 70px;
  background: linear-gradient(115deg, #f7faff 18%, #e8f1ff);
}

.sp-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.sp-hero-grid,
.sp-tab-panel,
.sp-governance-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.sp-wordmark {
  margin: 0 0 12px;
  color: var(--sp-blue);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.035em;
}

.sp-hero h1 {
  max-width: 13em;
  color: var(--sp-navy);
  font-size: clamp(34px, 4.15vw, 56px);
  line-height: 1.18;
}

.sp-hero .lead { max-width: 31em; font-size: 17px; }
.sp-hero .sp-screen { box-shadow: 0 20px 50px #173e8e20; }
.sp-hero .sp-screen-body { padding: clamp(18px, 3vw, 32px); }

.sp-jump { background: #fff; border-bottom: 1px solid var(--sp-line); }
.sp-jump nav { display: flex; flex-wrap: wrap; column-gap: clamp(16px, 4vw, 44px); }
.sp-jump a { padding: 13px 0; color: var(--sp-muted); font-size: 14px; font-weight: 700; }
.sp-jump a:hover { color: var(--sp-blue); }

.sp-page .section { padding-block: clamp(54px, 7vw, 88px); }
.sp-page .section h2 { color: var(--sp-navy); }
.sp-page .section-intro { max-width: 49em; margin-bottom: 28px; }

.sp-tabs { border: 1px solid var(--sp-line); border-radius: 16px; background: #f7faff; }

.sp-tab-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  padding: 10px;
  border-bottom: 1px solid var(--sp-line);
}

.sp-tab-list button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 4px;
  color: var(--sp-muted);
  background: transparent;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.sp-tab-list button:hover { background: #eaf2ff; color: var(--sp-blue); }
.sp-tab-list button[aria-selected="true"] { background: var(--sp-blue); color: #fff; }
.sp-tab-panel { padding: clamp(16px, 3vw, 34px); gap: clamp(18px, 3vw, 38px); align-items: start; }
.sp-tab-panel[hidden] { display: none; }
.sp-tab-copy h3 { margin: 4px 0 10px; font-size: clamp(21px, 2vw, 26px); letter-spacing: -.035em; line-height: 1.38; }
.sp-tab-copy p { margin: 0 0 10px; color: var(--sp-muted); }
.sp-tab-copy p:last-child { margin-bottom: 0; }

.sp-screen {
  min-width: 0;
  margin: 0;
  border: 1px solid #c8d9ee;
  border-radius: 14px;
  background: white;
  color: var(--sp-navy);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.sp-screen figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 13px 13px 0 0;
  background: var(--sp-navy);
  color: white;
  font-size: 13px;
  font-weight: 750;
}

.sp-screen figcaption > span:first-child { display: flex; gap: 9px; align-items: center; }
.sp-screen figcaption i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #9bc9ff; }
.sp-sample { color: #d4e4ff; font-size: 11px; white-space: nowrap; }
.sp-screen-body { padding: clamp(14px, 2vw, 22px); }
.sp-question { width: fit-content; margin: 0 0 14px auto; padding: 9px 13px; border-radius: 9px 9px 2px 9px; background: #e8f1ff; font-weight: 750; }
.sp-answer { border: 1px solid var(--sp-line); border-radius: 9px; padding: 12px 14px; }
.sp-answer > p { margin: 0 0 9px; }
.sp-source { padding-top: 8px; border-top: 1px solid var(--sp-line); }
.sp-source summary { color: var(--sp-blue); cursor: pointer; font-size: 13px; font-weight: 800; }
.sp-source summary span { margin-left: 5px; color: var(--sp-muted); font-size: 12px; font-weight: 650; }
.sp-source p { margin: 8px 0 0; padding: 8px; border-radius: 5px; background: #f8f9fd; }
.sp-source mark { background: #fff0a3; color: #273954; }

.sp-screen-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 7px 12px;
  margin: 0 0 12px;
}
.sp-screen-heading small, .sp-screen-heading strong { display: block; }
.sp-screen-heading small { color: var(--sp-muted); font-size: 11px; }
.sp-screen-heading strong { font-size: 16px; line-height: 1.4; }
.sp-state { border-radius: 20px; padding: 2px 8px; color: #146347; background: #e5f7ef; font-size: 11px; font-weight: 800; }
.sp-state.waiting { color: #77501b; background: #fff1d9; }
.sp-run-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.sp-run-grid > div { padding: 8px; border-radius: 7px; background: #f3f6fc; }
.sp-run-grid h4 { margin: 0 0 4px; font-size: 12px; }
.sp-screen-list { margin: 0; }
.sp-screen-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 6px; padding: 4px 0; border-bottom: 1px solid var(--sp-line); }
.sp-screen-list > div:last-child { border-bottom: 0; }
.sp-screen-list dt { color: var(--sp-muted); font-size: 12px; }
.sp-screen-list dd { margin: 0; font-size: 12px; font-weight: 750; }
.sp-formula, .sp-screen-kicker { margin: 8px 0 0; color: var(--sp-muted); font-size: 12px; }
.sp-screen-items { margin: 0; padding-left: 1em; color: var(--sp-muted); font-size: 11px; }
.sp-screen-items li + li { margin-top: 4px; }

.sp-process {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}
.sp-process li { padding: 3px 7px; border-radius: 5px; background: var(--sp-pale); color: var(--sp-blue); font-size: 11px; font-weight: 750; }

.sp-graph {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 10px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.sp-graph li { position: relative; border: 1px solid #b5caf1; border-radius: 8px; padding: 6px 8px; background: #f1f6ff; }
.sp-graph .sp-graph-center { grid-column: 1 / -1; justify-self: center; width: 62%; color: #fff; background: var(--sp-blue); border-color: var(--sp-blue); }
.sp-graph li:not(.sp-graph-center)::before { content: ''; position: absolute; inset: -21px auto auto 50%; height: 20px; border-left: 1px solid #7d9ac9; }
.sp-graph small { display: block; font-size: 11px; }

.sp-diff { margin: 7px 0; padding: 8px 10px; border-radius: 6px; background: #f3f6fc; font-size: 12px; white-space: pre-wrap; }
.sp-diff del { color: #8d3443; }
.sp-diff ins { color: #146347; text-decoration: none; }
.sp-dashboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 8px; }
.sp-dashboard > div { background: var(--sp-pale); padding: 7px 8px; border-radius: 7px; }
.sp-dashboard dt { color: var(--sp-muted); font-size: 11px; }
.sp-dashboard dd { margin: 0; color: var(--sp-blue); font-size: 21px; line-height: 1.25; font-weight: 800; }

.sp-workflow { background: #f2f7ff; }
.sp-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sp-case { display: flex; flex-direction: column; border: 1px solid var(--sp-line); border-radius: 12px; padding: clamp(17px, 3vw, 27px); background: white; }
.sp-case > p { margin: 0 0 12px; color: var(--sp-muted); }
.sp-case .sp-sector { margin-bottom: 4px; color: var(--sp-blue); font-weight: 800; font-size: 13px; }
.sp-case h3 { margin: 0 0 8px; font-size: 23px; line-height: 1.35; letter-spacing: -.035em; }
.sp-case-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; padding: 10px 10px 10px 27px; margin: 0 0 13px; border-radius: 7px; background: #eff5ff; font-size: 13px; font-weight: 700; }
.sp-case-steps li::marker { color: var(--sp-blue); }
.sp-case dl { margin: auto 0 0; }
.sp-case dl > div { display: grid; grid-template-columns: 6em 1fr; gap: 8px; border-top: 1px solid var(--sp-line); padding: 8px 0 2px; font-size: 13px; }
.sp-case dt, .sp-more-cases dt { font-weight: 800; }
.sp-case dd, .sp-more-cases dd { margin: 0; color: var(--sp-muted); }

.sp-more-cases { margin-top: 16px; padding: 13px 17px; border: 1px solid var(--sp-line); border-radius: 9px; background: white; }
.sp-more-cases summary { color: var(--sp-blue); font-weight: 800; cursor: pointer; }
.sp-more-cases dl { margin: 10px 0 0; }
.sp-more-cases dl > div { display: grid; grid-template-columns: minmax(155px, .32fr) 1fr; gap: 9px 15px; padding: 8px 0; border-top: 1px solid var(--sp-line); font-size: 14px; }
.sp-note { margin: 10px 0 0; color: var(--sp-muted); font-size: 13px; }

.sp-governance-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: start; }
.sp-controls { list-style: none; padding: 0; margin: 0; }
.sp-controls li { border-top: 1px solid var(--sp-line); padding: 11px 0; }
.sp-controls h3 { margin: 0 0 3px; font-size: 16px; }
.sp-controls p { margin: 0; color: var(--sp-muted); font-size: 14px; }

.sp-integration { background: var(--sp-navy); color: white; padding: clamp(19px, 3vw, 29px); border-radius: 13px; }
.sp-integration h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.025em; }
.sp-integration dl { margin: 0; }
.sp-integration dl > div { border-top: 1px solid #47608c; padding: 11px 0; }
.sp-integration dl > div:last-child { padding-bottom: 0; }
.sp-integration dt { font-weight: 800; }
.sp-integration dt span { display: block; color: #b2d2ff; font-size: 12px; }
.sp-integration dd { margin: 4px 0 0; color: #e1eafb; font-size: 14px; }
.sp-resources { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 19px; }

@media (max-width: 820px) {
  .sp-hero-grid, .sp-tab-panel, .sp-governance-grid { grid-template-columns: minmax(0, 1fr); }
  .sp-hero { padding-bottom: 48px; }
  .sp-tab-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .sp-hero { padding-top: 23px; }
  .sp-crumb { margin-bottom: 24px; }
  .sp-hero h1 { font-size: clamp(29px, 8.5vw, 40px); }
  .sp-hero h1 br { display: none; }
  .sp-hero .lead { font-size: 16px; }
  .sp-cases, .sp-more-cases dl > div { grid-template-columns: minmax(0, 1fr); }
  .sp-more-cases dl > div { gap: 2px; }
}

@media (max-width: 440px) {
  .sp-run-grid { grid-template-columns: minmax(0, 1fr); }
}
