:root {
  color-scheme: light;
  --run-blue: #3157d5;
  --ink: #1b2a41;
  --slate: #3d4a5c;
  --paper: #faf9f5;
  --white: #ffffff;
  --amber: #a76400;
  --border: #cbd2df;
  --soft-blue: #eef2ff;
  --focus: #102f9f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .7rem 1rem; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 1rem; }
.masthead, main, footer { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.masthead { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .8rem; background: var(--run-blue); color: var(--white); font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand small, .environment { color: var(--slate); font-size: .78rem; }
.environment { margin: 0; text-align: right; }
main { padding-block: clamp(2rem, 6vw, 5rem); }
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(15rem, .7fr); align-items: end; gap: 2rem; margin-bottom: 2rem; }
.eyebrow { margin: 0 0 .5rem; color: var(--run-blue); font-size: .76rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2 { margin: 0; line-height: 1.08; letter-spacing: -.025em; }
h1 { max-width: 14ch; font-size: clamp(2.35rem, 7vw, 4.85rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.lede { max-width: 42rem; margin: 1.25rem 0 0; color: var(--slate); font-size: clamp(1rem, 2vw, 1.2rem); }
.boundary { padding: 1.25rem; border-left: .3rem solid var(--amber); background: #fff8e9; }
.boundary span, .boundary strong { display: block; }
.boundary span { color: var(--slate); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.panel { margin-block: 1rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--border); border-radius: 1rem; background: var(--white); box-shadow: 0 1rem 3rem rgba(27, 42, 65, .07); }
.panel__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.state { display: inline-flex; align-items: center; min-height: 2rem; padding: .35rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.state--pending { color: #754900; background: #fff2ce; }
.state--authenticated { color: #174c34; background: #e6f4ec; }
.state--error { color: #82271e; background: #fbeae8; }
.state--neutral { color: #243f8e; background: var(--soft-blue); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
button { min-height: 2.8rem; padding: .7rem 1.05rem; border: 2px solid var(--run-blue); border-radius: .65rem; background: var(--run-blue); color: var(--white); font-weight: 750; cursor: pointer; }
button.secondary { background: transparent; color: var(--run-blue); }
button:hover { filter: brightness(.93); }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.queue { margin: 1rem 0; padding: 0; list-style: none; }
.queue li { padding: .75rem 0; border-top: 1px solid var(--border); }
.truth-boundary { margin-top: 1.5rem; padding: 1rem; border-radius: .7rem; background: var(--soft-blue); }
.truth-boundary p { margin: .35rem 0 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.trust-grid article { padding: 1rem; border-top: .2rem solid var(--run-blue); background: rgba(255, 255, 255, .55); }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid span { margin-top: .35rem; color: var(--slate); font-size: .9rem; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--border); color: var(--slate); font-size: .82rem; }
footer p { margin: 0; }
[hidden] { display: none !important; }

@media (max-width: 46rem) {
  .hero, .trust-grid { grid-template-columns: 1fr; }
  .masthead { align-items: flex-start; padding-block: 1rem; }
  .environment { max-width: 10rem; }
  .panel__heading, footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
