/* Landing page only. Docs and the public safety page keep base.css/styles.css.
   Schibsted Grotesk: SIL Open Font License 1.1, see legal/fonts/. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --paper: #ffffff;
  --wash: #f2f3f4;
  --stone: #1e2227;
  --graphite: #59626d;
  --rule: #dcdfe3;
  --streak: #c4973a;
  --streak-ink: #84600f;
  --assay: #254f9b;
  --assay-deep: #1b3d7a;
  --fail: #b3362c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--stone);
  font: 400 17px/1.6 "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 650; }
a { color: inherit; }
code { font: .86em/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; }
:focus-visible { outline: 3px solid var(--assay); outline-offset: 4px; border-radius: 2px; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 10px 14px; background: var(--stone); color: white; z-index: 10; }
.skip-link:focus { top: 12px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
.brand svg { width: 28px; height: 28px; fill: none; stroke: var(--assay); stroke-width: 4; stroke-linecap: square; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-header nav a { text-decoration: none; color: var(--graphite); }
.site-header nav a:hover { color: var(--stone); }
.site-header nav .nav-cta { white-space: nowrap; color: white; background: var(--stone); padding: 9px 15px; border-radius: 4px; }
.site-header nav .nav-cta:hover { background: var(--assay); color: white; }

.button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 11px 20px; border-radius: 4px; font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .15s; }
.primary { background: var(--assay); color: white; }
.primary:hover { background: var(--assay-deep); }
.quiet { color: var(--graphite); padding-inline: 4px; font-weight: 500; }
.quiet code { color: var(--stone); background: var(--wash); padding: 3px 7px; border-radius: 3px; }
.quiet:hover code { background: var(--rule); }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; padding-block: 72px 88px; }
h1 { font-size: clamp(42px, 4.6vw, 68px); line-height: 1; letter-spacing: -.045em; font-weight: 640; font-variation-settings: "wght" 640; }
.hero-description { margin-top: 28px; max-width: 46ch; font-size: 19px; color: var(--graphite); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 36px; }
.plate { margin: 0; }
.plate canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 6px; background: var(--stone); }
.motion-toggle { margin-top: 10px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--assay); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.motion-toggle:hover { color: var(--assay-deep); }
.motion-paused .ticker-track { animation-play-state: paused; }
.plate figcaption { margin-top: 14px; font-size: 14px; color: var(--graphite); max-width: 60ch; }

.cases { border-block: 1px solid var(--rule); padding-block: 40px 0; background: var(--paper); }
.cases-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 48px; margin-bottom: 28px; }
.cases-heading h2 { font-size: 24px; letter-spacing: -.02em; flex: none; }
.cases-heading p { font-size: 15px; color: var(--graphite); max-width: 62ch; }
.ticker { overflow: hidden; border-top: 1px solid var(--rule); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker li { display: grid; gap: 6px; padding: 22px 40px 24px; border-right: 1px solid var(--rule); min-width: 300px; }
.case-source { font-size: 14px; color: var(--graphite); }
.ticker code { font-size: 15px; color: var(--stone); white-space: nowrap; }
.case-result { font-size: 14px; font-weight: 600; color: var(--streak-ink); }
@keyframes ticker { to { transform: translateX(-50%); } }

.workflow-section { padding-block: 104px 96px; }
.workflow-section h2, .scope-section h2 { font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -.035em; line-height: 1.1; max-width: 16ch; }
.workflow { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 0; margin: 48px 0 0; }
.workflow li { counter-increment: step; }
.workflow canvas { display: block; width: 100%; height: auto; aspect-ratio: 9 / 5; background: var(--wash); border-radius: 6px; }
.workflow h3 { margin-top: 24px; font-size: 21px; letter-spacing: -.02em; }
.workflow h3::before { content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border: 1.5px solid var(--assay); border-radius: 50%; color: var(--assay); font-size: 14px; font-weight: 700; vertical-align: 2px; }
.workflow p { margin-top: 10px; color: var(--graphite); font-size: 16px; }

.scope-section { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding-block: 72px; border-top: 1px solid var(--rule); }
.scope-list div { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.scope-list div:first-child { padding-top: 6px; }
.scope-list dt { font-weight: 650; }
.scope-list dd { color: var(--graphite); max-width: 62ch; }

.boundary { display: flex; justify-content: space-between; align-items: center; gap: 48px; margin-block: 24px 72px; padding: 48px; background: var(--stone); color: white; border-radius: 6px; }
.boundary h2 { font-size: 32px; letter-spacing: -.03em; }
.boundary p { margin-top: 14px; color: #c3c8cf; max-width: 64ch; }
.boundary .primary { flex: none; }

.site-footer { display: flex; justify-content: space-between; gap: 24px; padding-block: 40px 56px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--graphite); }
.site-footer strong { color: var(--stone); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a:hover { color: var(--assay); }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 48px); }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 48px 64px; }
  .workflow { grid-template-columns: 1fr; gap: 56px; max-width: 560px; }
  .scope-section { grid-template-columns: 1fr; gap: 32px; }
  .cases-heading { display: block; }
  .cases-heading p { margin-top: 10px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 68px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .site-header { gap: 12px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand svg { width: 24px; height: 24px; }
  .site-header nav .nav-cta { font-size: 14px; padding: 8px 12px; }
  .hero-description { font-size: 17px; }
  .quiet { flex-wrap: wrap; gap: 4px 10px; }
  .ticker li { min-width: 260px; padding-inline: 24px; }
  .scope-list div { grid-template-columns: 1fr; gap: 6px; }
  .boundary { flex-direction: column; align-items: start; padding: 28px 24px; }
  .boundary h2 { font-size: 26px; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker { overflow-x: auto; mask-image: none; }
  .ticker-track { animation: none; }
  .button { transition: none; }
  .motion-toggle { display: none; }
  .ticker li[aria-hidden] { display: none; }
}
