:root {
  color: #18212f;
  background: #f5f7fa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #18212f;
  --muted: #5c6878;
  --line: #d9e0e8;
  --surface: #ffffff;
  --blue: #075fce;
  --blue-dark: #063f8a;
  --green: #16734a;
  --green-bg: #e8f6ef;
  --amber: #8b5600;
  --amber-bg: #fff5dc;
  --gray-bg: #eef2f6;
  --shadow: 0 8px 24px rgba(24, 33, 47, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; line-height: 1.5; }
a { color: var(--blue-dark); }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, select, input { min-height: 42px; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { display: block; }
.brand span { min-width: 0; display: grid; line-height: 1.05; }
.brand strong { font-size: 18px; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 700; }
.header-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-command { min-height: 38px; flex: 0 0 auto; display: inline-flex; align-items: center; border: 1px solid #aab6c5; border-radius: 4px; padding: 7px 11px; text-decoration: none; font-size: 13px; font-weight: 750; white-space: nowrap; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #8d98a7; box-shadow: 0 0 0 4px #eef2f6; }
.status-dot.ok { background: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }
.status-dot.warn { background: #b46f00; box-shadow: 0 0 0 4px var(--amber-bg); }

.overview-band { background: #111b29; color: #fff; padding: 52px 0 46px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(420px, 0.75fr); gap: 64px; align-items: end; }
.eyebrow { margin: 0 0 9px; color: #237adf; font-size: 12px; line-height: 1.2; font-weight: 800; text-transform: uppercase; }
.overview-band .eyebrow { color: #73b8ff; }
h1, h2, p { letter-spacing: 0; }
h1 { margin: 0; max-width: 720px; font-size: clamp(34px, 5vw, 54px); line-height: 1.07; font-weight: 760; }
h2 { margin: 0; font-size: 26px; line-height: 1.2; }
.lede { max-width: 700px; margin: 18px 0 0; color: #c2ccda; font-size: 17px; }
.headline-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid #3a4656; }
.headline-metrics div { min-height: 102px; padding: 18px; border-right: 1px solid #3a4656; border-bottom: 1px solid #3a4656; }
.headline-metrics div:nth-child(2n) { border-right: 0; }
.headline-metrics div:nth-last-child(-n + 2) { border-bottom: 0; }
.headline-metrics dt { color: #aeb9c8; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.headline-metrics dd { margin: 8px 0 0; font-size: 28px; font-weight: 760; }

.source-band, .catalog-band, .method-band { padding: 40px 0; }
.source-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 13px; }
.source-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.source-item { min-height: 118px; padding: 18px; background: var(--surface); border-right: 1px solid var(--line); }
.source-item:last-child { border-right: 0; }
.source-item-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.source-item h3 { margin: 0; font-size: 16px; }
.source-item p { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.source-item strong { color: var(--ink); }

.catalog-band { background: #f5f7fa; }
.catalog-heading { margin-bottom: 18px; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 0.34fr)); gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.catalog-toolbar label { display: grid; gap: 6px; }
.catalog-toolbar label > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.catalog-toolbar input, .catalog-toolbar select { width: 100%; border: 1px solid #bbc5d1; border-radius: 4px; background: #fff; color: var(--ink); padding: 9px 11px; }
.catalog-toolbar input:focus, .catalog-toolbar select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(7, 95, 206, 0.28); outline-offset: 2px; }
.notice { display: flex; gap: 8px; align-items: baseline; margin: 14px 0; padding: 11px 14px; border-left: 3px solid #d78a12; background: var(--amber-bg); color: #5e430f; font-size: 13px; }
.service-table { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.service-row { display: grid; grid-template-columns: minmax(260px, 1.7fr) minmax(175px, 0.9fr) minmax(165px, 0.8fr) minmax(130px, 0.65fr) 90px; gap: 16px; align-items: center; min-height: 92px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-header { min-height: 46px; background: #edf2f7; color: #4c5968; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.service-name { min-width: 0; }
.service-name strong { display: block; color: var(--ink); overflow-wrap: anywhere; }
.service-name small { display: block; margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.service-name p { display: -webkit-box; overflow: hidden; margin: 7px 0 0; color: #445164; font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.payment-stack, .evidence-stack, .activity-stack { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.payment-stack strong, .activity-stack strong { color: var(--ink); font-size: 14px; }
.badge { display: inline-flex; width: fit-content; align-items: center; min-height: 26px; border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 800; }
.badge-verified { background: var(--green-bg); color: var(--green); }
.badge-observed { background: #e7f0fc; color: var(--blue-dark); }
.badge-unknown { background: var(--gray-bg); color: #5b6572; }
.contract-link { display: inline-flex; width: fit-content; min-height: 34px; align-items: center; justify-content: center; border: 1px solid #aab6c5; border-radius: 4px; padding: 6px 10px; text-decoration: none; font-size: 12px; font-weight: 750; }
.contract-actions { display: grid; gap: 5px; }
.contract-note { color: var(--muted); font-size: 11px; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); }
.empty-state strong, .empty-state span { display: block; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }
.pagination button { border: 1px solid #aab6c5; border-radius: 4px; background: var(--surface); color: var(--ink); padding: 8px 14px; cursor: pointer; }
.pagination button:disabled { opacity: 0.45; cursor: default; }

.method-band { background: var(--surface); border-top: 1px solid var(--line); }
.method-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; }
.method-grid > div > p:last-child { color: var(--muted); }
.evidence-legend { margin: 0; border-top: 1px solid var(--line); }
.evidence-legend div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.evidence-legend dt, .evidence-legend dd { margin: 0; }
.evidence-legend dd { color: var(--muted); font-size: 14px; }

.product-hero { background: #111b29; color: #fff; padding: 58px 0 52px; }
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr); gap: 64px; align-items: end; }
.product-hero .eyebrow { color: #73b8ff; }
.product-actions, .product-link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.product-secondary { border-color: #7890aa; background: transparent; color: #fff; }
.product-contract { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid #3a4656; }
.product-contract div { min-height: 96px; padding: 16px; border-right: 1px solid #3a4656; border-bottom: 1px solid #3a4656; }
.product-contract div:nth-child(2n) { border-right: 0; }
.product-contract div:nth-last-child(-n + 2) { border-bottom: 0; }
.product-contract dt { color: #aeb9c8; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.product-contract dd { margin: 8px 0 0; font-size: 15px; font-weight: 750; }
.product-band { padding: 48px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.product-band-muted { background: #f5f7fa; }
.product-section-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr); gap: 56px; align-items: start; }
.product-section-grid > div > p:not(.eyebrow), .product-proof p, .integration-grid p { color: var(--muted); }
.command-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; box-shadow: var(--shadow); }
.command-panel-dark { border-color: #263448; background: #111b29; color: #e8eef6; }
.command-heading { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
.command-panel-dark .command-heading { border-color: #3a4656; color: #c2ccda; }
.command-heading span { font-weight: 800; }
.command-heading strong { color: var(--green); }
.command-panel-dark .command-heading strong { color: #8ee0b8; }
.command-panel pre { max-height: 310px; margin: 0; overflow: auto; padding: 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.65; }
.command-panel code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
.command-panel > p { margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.command-panel-dark > p { border-color: #3a4656; color: #aeb9c8; }
.paid-warning { display: grid; gap: 4px; margin-top: 20px; padding: 12px 14px; border-left: 3px solid #d78a12; background: var(--amber-bg); color: #5e430f; font-size: 13px; }
.integration-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.integration-grid article { min-height: 200px; padding: 20px; border-right: 1px solid var(--line); }
.integration-grid article:last-child { border-right: 0; }
.integration-grid article > strong { color: var(--blue); font-size: 13px; }
.integration-grid h3 { margin: 18px 0 8px; font-size: 18px; }
.integration-grid p { margin: 0; font-size: 13px; }
.product-proof { padding: 48px 0; background: #eef2f6; }
.product-proof-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; }
.product-proof ul { display: grid; gap: 10px; margin: 0; padding-left: 22px; }

.detail-hero { min-height: 320px; display: flex; align-items: center; background: #111b29; color: #fff; padding: 46px 0; }
.detail-heading h1 { overflow-wrap: anywhere; }
.detail-heading .eyebrow { color: #73b8ff; }
.historical-notice { max-width: 760px; margin: 18px 0 0; border-left: 3px solid #f0a526; background: #2a261d; padding: 10px 13px; color: #f6deb0; font-size: 14px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.primary-command, .secondary-command, .icon-command { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; padding: 9px 14px; text-decoration: none; font-weight: 750; cursor: pointer; }
.primary-command { border: 1px solid var(--blue); background: var(--blue); color: #fff; }
.secondary-command { border: 1px solid #9facbb; background: var(--surface); color: var(--ink); }
.icon-command { border: 1px solid #607084; background: transparent; color: #fff; }
.action-status { min-height: 22px; margin: 8px 0 0; color: #c2ccda; font-size: 13px; }
.detail-band { padding: 42px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.detail-band-muted { background: #f5f7fa; }
.detail-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.detail-list { margin: 20px 0 0; border-top: 1px solid var(--line); }
.detail-list > div { display: grid; grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr); gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 12px; font-weight: 750; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.evidence-boundary { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.payment-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.payment-detail { min-width: 0; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.payment-detail:nth-child(2n) { border-right: 0; }
.payment-detail h3 { margin: 0 0 12px; font-size: 18px; }
.payment-detail dl { margin: 0; }
.payment-detail dl div { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 10px; padding: 5px 0; }
.payment-detail dt { color: var(--muted); font-size: 12px; }
.payment-detail dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; }
.detail-error { padding: 64px 0; background: var(--surface); }
.detail-error p { color: var(--muted); }

.submission-hero { padding: 48px 0; background: #f5f7fa; }
.submission-layout { display: grid; grid-template-columns: minmax(300px, 0.72fr) minmax(460px, 1fr); gap: 64px; align-items: start; }
.submission-copy { position: sticky; top: 24px; }
.submission-copy .lede { color: var(--muted); }
.submission-form { padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow); }
.submission-form fieldset { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.submission-form legend { width: 100%; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 800; }
.submission-form label { display: grid; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: 12px; font-weight: 700; }
.submission-form label > span small { font-weight: 500; }
.submission-form input, .submission-form select, .submission-form textarea { width: 100%; border: 1px solid #aeb9c6; border-radius: 4px; background: #fff; color: var(--ink); padding: 9px 11px; }
.submission-form textarea { min-height: 112px; resize: vertical; }
.submission-form input:focus, .submission-form select:focus, .submission-form textarea:focus { outline: 3px solid rgba(7, 95, 206, 0.22); outline-offset: 1px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.submission-form .consent-row { grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 10px; color: var(--ink); font-size: 13px; }
.submission-form .consent-row input { width: 20px; min-height: 20px; margin: 1px 0 0; }
.submit-command { width: 100%; }
.submit-command:disabled { cursor: wait; opacity: 0.65; }
.form-help { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.form-result { margin-top: 14px; padding: 11px 13px; border-left: 3px solid var(--blue); background: #e7f0fc; color: var(--blue-dark); font-size: 13px; overflow-wrap: anywhere; }
.form-result.success { border-color: var(--green); background: var(--green-bg); color: var(--green); }
.form-result.error { border-color: #b46f00; background: var(--amber-bg); color: #5e430f; }

footer { background: #111b29; color: #c5cfda; }
.footer-inner { min-height: 84px; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.footer-inner nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-inner a { color: #d9e9fb; font-size: 13px; }

@media (max-width: 940px) {
  .overview-grid, .method-grid, .product-hero-grid, .product-section-grid, .product-proof-grid { grid-template-columns: 1fr; gap: 32px; }
  .catalog-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-field { grid-column: 1 / -1; }
  .service-header { display: none; }
  .service-row { grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.7fr) minmax(145px, 0.7fr); }
  .service-row > :nth-child(4), .service-row > :nth-child(5) { grid-column: auto; }
  .submission-layout { grid-template-columns: 1fr; gap: 30px; }
  .submission-copy { position: static; }
  .integration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integration-grid article:nth-child(2) { border-right: 0; }
  .integration-grid article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1180px); }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand small { display: none; }
  .header-status { max-width: 145px; text-align: right; font-size: 12px; }
  .header-actions { gap: 8px; }
  .header-actions .header-status { display: none; }
  .overview-band { padding: 36px 0; }
  .product-hero { padding: 38px 0; }
  h1 { font-size: 34px; }
  .headline-metrics { grid-template-columns: 1fr 1fr; }
  .headline-metrics div { min-height: 88px; padding: 14px; }
  .headline-metrics dd { font-size: 23px; }
  .source-strip { grid-template-columns: 1fr; }
  .source-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .source-item:last-child { border-bottom: 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .notice { align-items: start; flex-direction: column; }
  .service-row { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .service-row > * { border-top: 1px solid #edf1f5; padding-top: 10px; }
  .service-row > :first-child { border-top: 0; padding-top: 0; }
  .evidence-legend div { grid-template-columns: 1fr; gap: 8px; }
  .detail-layout, .payment-detail-list, .form-grid { grid-template-columns: 1fr; }
  .detail-list > div { grid-template-columns: 1fr; gap: 4px; }
  .payment-detail { border-right: 0; }
  .product-contract, .integration-grid { grid-template-columns: 1fr; }
  .product-contract div, .product-contract div:nth-child(2n) { border-right: 0; border-bottom: 1px solid #3a4656; }
  .product-contract div:last-child { border-bottom: 0; }
  .integration-grid article, .integration-grid article:nth-child(2) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .integration-grid article:last-child { border-bottom: 0; }
  .command-panel pre { max-height: 420px; }
  .submission-form { padding: 16px; }
  .footer-inner { padding: 20px 0; align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
