:root {
  color-scheme: light;
  --ink: #183344;
  --muted: #4d6571;
  --line: #cad8dd;
  --paper: #f4f8f9;
  --navy: #173b52;
  --teal: #096b65;
  --aqua: #e1f1ed;
  --amber: #865015;
  font:
    16px/1.55 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
a,
select,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: #b9dbd5;
}
button,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
a:hover {
  color: var(--teal);
}
:focus-visible {
  outline: 3px solid #a45e14;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
section,
main {
  scroll-margin-top: 24px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  text-wrap: balance;
}
h2 {
  font-size: 2rem;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin-bottom: 0;
}
h3 {
  font-size: 1rem;
}
p,
li,
dd {
  overflow-wrap: anywhere;
}
main > section {
  max-width: 1160px;
  margin: auto;
  padding: 48px 24px;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 10;
  transform: translateY(-160%);
  padding: 12px;
  background: white;
  border: 2px solid var(--navy);
}
.skip-link:focus {
  transform: translateY(0);
}
header {
  max-width: 1440px;
  margin: auto;
  min-height: 80px;
  padding: 16px max(24px, calc((100% - 1112px) / 2));
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.025em;
  font-size: 18px;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.logo {
  width: 38px;
  height: 42px;
  background: var(--navy);
  color: #b3eee1;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 24px;
}
.brand + nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  padding-top: 52px;
  padding-bottom: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin-bottom: 20px;
}
.lede {
  max-width: 60ch;
  color: var(--muted);
  margin-bottom: 24px;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.button {
  border: 1px solid transparent;
  border-radius: 5px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.primary {
  background: var(--navy);
  color: white;
}
.primary:hover {
  background: #24536c;
  color: white;
}
.primary:active {
  background: #0c2c40;
}
.secondary {
  background: var(--aqua);
  color: var(--navy);
  border-color: #afc9c3;
}
.secondary:hover {
  background: #c9e6de;
}
.quiet {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.quiet:hover {
  background: #e5edef;
}
.text-link {
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.instrument {
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 24px;
  font-size: 14px;
}
.instrument-label {
  font-weight: 600;
  color: #b3eee1;
  margin-bottom: 12px;
}
.instrument ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.instrument li {
  padding: 8px 0;
  border-bottom: 1px solid #496575;
}
.instrument li span {
  color: #b3eee1;
  margin-right: 12px;
  font-variant-numeric: tabular-nums;
}
.instrument > p:last-child {
  color: #d2e2e8;
  margin: 16px 0 0;
  font-size: 13px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}
.section-label {
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.section-intro {
  max-width: 80ch;
  color: var(--muted);
  margin-bottom: 24px;
}
.privacy-tag {
  border-left: 3px solid var(--teal);
  padding-left: 12px;
  color: var(--teal);
  font-size: 13px;
  white-space: nowrap;
}
.workbench {
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 6px;
  padding: 28px 32px;
}
.editors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.editors > div {
  min-width: 0;
}
.editors label {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.editors label span {
  font-weight: 400;
  color: var(--muted);
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 164px;
  max-height: 600px;
  padding: 14px;
  border: 1px solid #9cb1bc;
  border-radius: 4px;
  background: #fafcfc;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}
textarea[aria-invalid] {
  border: 2px solid var(--amber);
}
.workbench-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 16px 0;
}
.workbench-actions p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.comparison-result {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  padding: 16px;
  margin-top: 20px;
}
.comparison-result > p {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
#comparison-detail {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0;
}
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.diff-grid > div {
  min-width: 0;
}
.diff-grid h3 {
  font-size: 13px;
  margin: 0;
}
.diff-grid pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
  background: white;
  border: 1px solid var(--line);
  padding: 12px;
  font:
    14px/1.6 ui-monospace,
    Consolas,
    monospace;
  margin: 8px 0 0;
}
.diff-grid > div:first-child pre {
  border-top: 2px solid var(--amber);
}
.diff-grid > div:last-child pre {
  border-top: 2px solid var(--teal);
}
details {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
summary {
  color: var(--ink);
  padding: 12px 0;
  cursor: pointer;
  min-height: 44px;
}
summary:hover {
  color: var(--teal);
}
details p {
  max-width: 95ch;
  margin: 8px 0 12px;
}
.boundary {
  border-left: 3px solid var(--amber);
  background: #fcf1df;
  color: #6c4518;
  padding: 12px 16px;
  font-size: 14px;
}
.cycle {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  margin-bottom: 6px;
}
.cycle p {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 15px;
}
.cycle span {
  font-size: 14px;
  color: var(--muted);
}
.cycle .button {
  flex-shrink: 0;
}
.target-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
}
.target {
  padding: 20px;
  min-width: 0;
}
.target + .target {
  border-left: 1px solid var(--line);
}
.target-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: start;
}
.target h3 {
  margin: 0 0 2px;
}
.target code {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.state {
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #edf2f3;
  border-radius: 3px;
  padding: 3px 7px;
}
.state.changed,
.state.baseline,
.state.unchanged {
  background: var(--aqua);
  color: #14594c;
  border-color: #a4c8bb;
}
.state.request-failure,
.state.pending-retry {
  background: #fcf1df;
  color: #6c4518;
  border-color: #d5b98e;
}
.snapshot {
  font-size: 14px;
  padding: 12px 0;
  margin: 14px 0 0;
  border-top: 1px solid var(--line);
}
.explanation {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}
.attempts {
  font-size: 12px;
  color: var(--muted);
}
.event-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 28px 0 12px;
}
.event-heading > div {
  margin-right: auto;
}
.event-heading h3 {
  margin: 0;
}
.event-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}
.event-heading label {
  font-size: 12px;
  color: var(--muted);
}
select {
  display: block;
  min-height: 44px;
  padding: 8px 12px;
  margin-top: 4px;
  border: 1px solid #9cb1bc;
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font-size: 14px;
}
.event-heading > span {
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.events {
  max-height: 420px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.events:empty {
  display: none;
}
.event {
  display: grid;
  grid-template-columns: 125px 1fr 64px;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.event p {
  margin: 0;
}
.event-type {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}
.failure .event-type,
.delivery .event-type {
  color: var(--amber);
}
.event small {
  color: var(--muted);
  font-size: 12px;
}
.empty {
  padding: 24px;
  border: 1px dashed #9cb1bc;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.semantics {
  border-top: 1px solid var(--line);
}
.semantics-list {
  margin: 24px 0 0;
}
.semantics-list > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
dt {
  font-weight: 600;
  font-size: 16px;
}
dd {
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
  font-size: 15px;
}
.installation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  border-top: 1px solid var(--line);
}
.installation h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.installation p,
.installation li {
  font-size: 15px;
  color: var(--muted);
}
.install-notes {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.install-notes ul {
  padding-left: 20px;
}
.install-notes li {
  margin-bottom: 10px;
}
.install-notes a {
  font-size: 14px;
}
footer {
  padding: 24px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
  background: var(--navy);
  color: #d2e2e8;
  font-size: 13px;
}
footer a:hover {
  color: #b3eee1;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
  }
  .target-grid {
    grid-template-columns: 1fr;
  }
  .target + .target {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .target-top {
    flex-wrap: nowrap;
  }
  .installation {
    gap: 32px;
  }
  .workbench {
    margin: 0 20px;
  }
}
@media (max-width: 600px) {
  header {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .brand + nav {
    gap: 20px;
  }
  main > section {
    padding: 32px 16px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .instrument {
    padding: 20px;
  }
  .instrument ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .instrument li {
    font-size: 13px;
  }
  .instrument li span {
    margin-right: 6px;
  }
  .workbench {
    margin: 0 12px;
    padding: 24px 16px;
  }
  .section-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  h2 {
    font-size: 1.75rem;
  }
  .privacy-tag {
    white-space: normal;
  }
  .editors,
  .diff-grid,
  .installation {
    grid-template-columns: 1fr;
  }
  .editors {
    gap: 16px;
  }
  .workbench-actions .actions {
    gap: 8px;
  }
  .button {
    padding: 10px 12px;
  }
  .cycle {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .cycle .button {
    width: 100%;
  }
  .event-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .event-heading > div {
    width: 100%;
  }
  .event-heading > span {
    margin-left: auto;
  }
  .event {
    grid-template-columns: 1fr 64px;
    gap: 6px;
  }
  .event-type {
    grid-column: 1;
  }
  .event p {
    grid-row: 2;
    grid-column: 1/-1;
  }
  .event small {
    grid-row: 1;
    grid-column: 2;
  }
  .semantics-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .installation h2 {
    font-size: 2rem;
  }
  .install-notes {
    padding: 24px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Keep header content aligned with the 1,160px product canvas at ultra-wide widths. */
header {
  max-width: none;
}
.workbench {
  border-radius: 0;
}
/* Product-first refinement: extend the existing Signal Ledger tokens and controls. */
.product-name {
  font-size: 0.875rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 16px;
}
.demo-link {
  display: inline-block;
  font-size: 0.875rem;
  margin-top: 16px;
  min-height: 44px;
  padding-block: 10px;
  color: var(--muted);
}
.instrument .command {
  background: #102e42;
  color: #edf8fa;
  border-color: #496575;
  font-size: 0.8125rem;
  margin: 12px 0;
}
.instrument ol li span {
  display: block;
  font-size: 0.75rem;
  margin: 0 0 2px;
}
.product-section {
  border-top: 1px solid var(--line);
}
.product-section .section-heading {
  align-items: start;
  gap: 48px;
}
.section-heading .section-intro {
  margin: 0;
  max-width: 52ch;
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 28px 0 20px;
  border-top: 2px solid var(--teal);
  gap: 24px;
}
.pipeline li {
  padding-top: 16px;
  min-width: 0;
}
.pipeline strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.pipeline span {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
}
.workflow-note {
  max-width: 95ch;
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 0;
}
.use-cases {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
}
.use-cases h2 {
  margin-bottom: 20px;
}
.use-cases p {
  font-size: 1rem;
  color: var(--muted);
}
.use-cases .caveat {
  font-size: 0.9375rem;
  border-left: 3px solid var(--amber);
  padding-left: 16px;
}
.feature-list {
  margin: 0;
}
.feature-list > div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.feature-list > div:first-child {
  padding-top: 0;
  border: 0;
}
.feature-list dt {
  margin-bottom: 6px;
}
.feature-list dd {
  font-size: 0.9375rem;
}
.quickstart {
  background: #e8f0f2;
  border-block: 1px solid var(--line);
}
.quickstart .section-heading {
  align-items: start;
  gap: 48px;
}
.quickstart h2 {
  max-width: 23ch;
}
.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 28px;
}
.setup-step {
  min-width: 0;
}
.setup-step > p,
.walkthrough > p {
  font-size: 0.9375rem;
  color: var(--muted);
}
.setup-step h3,
.walkthrough h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.command {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  unicode-bidi: plaintext;
  background: white;
  border: 1px solid #aec1ca;
  border-radius: 4px;
  padding: 16px;
  font:
    0.8125rem/1.7 ui-monospace,
    Consolas,
    monospace;
  margin: 12px 0 20px;
}
.command code {
  font: inherit;
}
.os-guide {
  border-color: #aec1ca;
  margin-top: 0;
}
.os-guide summary {
  font-weight: 600;
}
.small-note {
  font-size: 0.8125rem !important;
}
.walkthrough {
  border-top: 1px solid #aec1ca;
  padding-top: 28px;
  margin-top: 28px;
  max-width: 100%;
}
.documentation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.875rem;
  margin: 24px 0 0;
}
.documentation-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.notification-details {
  min-width: 0;
}
.notification-details details:first-child {
  margin-top: 0;
}
.notification-details details p {
  font-size: 0.9375rem;
}
.notification-details summary {
  font-weight: 600;
}
.notification-details a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
}
.notification-details .command {
  font-size: 0.8125rem;
}
.demo-intro {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}
.demo-intro p {
  max-width: 65ch;
  color: var(--muted);
  margin-bottom: 0;
}
.demo-intro h2 {
  margin-bottom: 16px;
}
.demo-intro .actions {
  flex-direction: column;
  align-items: start;
  min-width: 230px;
}
.demo-intro .actions a {
  font-size: 0.875rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.limitations {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
}
.limitations ul {
  padding-left: 20px;
  margin: 0;
}
.limitations li {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 12px;
}
.final-action {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.final-action p {
  margin: 12px 0 0;
  color: var(--muted);
}
@media (max-width: 900px) {
  .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .use-cases {
    gap: 32px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .brand + nav {
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .pipeline {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pipeline li {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .pipeline strong {
    margin: 0;
  }
  .product-section .section-heading,
  .quickstart .section-heading {
    gap: 16px;
  }
  .use-cases,
  .setup-grid,
  .limitations {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .demo-intro,
  .final-action {
    flex-direction: column;
    align-items: start;
    gap: 24px;
  }
  .demo-intro .actions {
    gap: 0;
  }
  .command {
    font-size: 0.8125rem;
    padding: 12px;
  }
  .quickstart h2 {
    max-width: none;
  }
  .brand + nav {
    gap: 16px;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .instrument ol {
    display: block;
  }
  .instrument ol li span {
    display: inline;
    margin-right: 8px;
  }
}
