/* Generated from src/tokens.ts by scripts/build.ts. Edit the TypeScript, then rebuild. */
:root {
  --oj-night: #0b1426;
  --oj-graphite: #1c2433;
  --oj-slate: #566079;
  --oj-mist: #eef1f7;
  --oj-paper: #f6f7fa;
  --oj-white: #ffffff;
  --oj-cobalt: #2f55e4;
  --oj-cobalt-light: #8ea5ff;
  --oj-amber: #f2b33d;
  --oj-amber-deep: #8a5a00;
  --oj-status-good: #0ca30c;
  --oj-status-warning: #f2b33d;
  --oj-status-serious: #ec835a;
  --oj-status-critical: #d03b3b;
  --oj-font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --oj-font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --oj-bg: #f6f7fa;
  --oj-panel: #ffffff;
  --oj-panel-2: #eef0f5;
  --oj-line: #d7dbe5;
  --oj-fg: #0b1426;
  --oj-muted: #566079;
  --oj-accent: #2f55e4;
  --oj-on-accent: #ffffff;
  --oj-success: #12703f;
  --oj-warning: #8a5a00;
  --oj-danger: #b42318;
  --oj-info: #0e6e86;
  --oj-series-1: #2f55e4;
  --oj-series-2: #e8673a;
  --oj-series-3: #13a386;
  --oj-series-4: #8a63e8;
  --oj-series-5: #d9529b;
  --oj-series-6: #4d8a12;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --oj-bg: #0b1220;
    --oj-panel: #121a2b;
    --oj-panel-2: #1a2438;
    --oj-line: #2a3550;
    --oj-fg: #eef1f7;
    --oj-muted: #a3abbf;
    --oj-accent: #8ea5ff;
    --oj-on-accent: #0b1220;
    --oj-success: #5cc98f;
    --oj-warning: #f2b33d;
    --oj-danger: #ff8a80;
    --oj-info: #6cc7e0;
    --oj-series-1: #5a78f5;
    --oj-series-2: #e2683a;
    --oj-series-3: #16a283;
    --oj-series-4: #8f72ea;
    --oj-series-5: #d6599b;
    --oj-series-6: #5a961a;
  }
}
:root[data-theme="dark"] {
  --oj-bg: #0b1220;
  --oj-panel: #121a2b;
  --oj-panel-2: #1a2438;
  --oj-line: #2a3550;
  --oj-fg: #eef1f7;
  --oj-muted: #a3abbf;
  --oj-accent: #8ea5ff;
  --oj-on-accent: #0b1220;
  --oj-success: #5cc98f;
  --oj-warning: #f2b33d;
  --oj-danger: #ff8a80;
  --oj-info: #6cc7e0;
  --oj-series-1: #5a78f5;
  --oj-series-2: #e2683a;
  --oj-series-3: #16a283;
  --oj-series-4: #8f72ea;
  --oj-series-5: #d6599b;
  --oj-series-6: #5a961a;
}

/* The public site. Colours and type come from @ojaldrado/brand's tokens (prepended at build). */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("/assets/figtree.4ba7d3d096.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--oj-bg);
  color: var(--oj-fg);
  font-family: var(--oj-font-sans);
  font-size: 1rem;
  line-height: 1.55;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--oj-accent);
}

:focus-visible {
  outline: 3px solid var(--oj-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

.muted {
  color: var(--oj-muted);
}

.small {
  font-size: 0.875rem;
}

.nowrap {
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--oj-accent);
  color: var(--oj-on-accent);
  border-radius: 8px;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

/* Logo: ink follows the text colour, the pupil and the j's dot take the accent. */
.logo {
  display: inline-flex;
  color: var(--oj-fg);
}

.logo svg {
  height: 1.75rem;
  width: auto;
}

.logo .pupil {
  fill: var(--oj-accent);
}

.brand-link {
  display: inline-flex;
  padding: 0.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

/* Closed beta, by invitation (ADR 0064): a word beside the logo, in the accent on its own tint. */
.beta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 0.55rem;
  border: 1px solid var(--oj-accent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--oj-accent) 10%, var(--oj-bg));
  color: var(--oj-accent);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--oj-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--oj-line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  color: var(--oj-fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
}

.site-nav a:hover {
  background: var(--oj-panel-2);
}

.site-nav .lang {
  color: var(--oj-muted);
}

.nav-section {
  display: none;
}

/* On a phone the hero's own button is right below; the header keeps the logo and the language. */
.nav-access {
  display: none;
}

@media (min-width: 30rem) {
  .nav-access {
    display: list-item;
  }
}

@media (min-width: 56rem) {
  .nav-section {
    display: list-item;
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: 8px;
  background: var(--oj-accent);
  color: var(--oj-on-accent);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--oj-accent);
  transition: filter 0.15s ease;
}

.button:hover {
  filter: brightness(1.08);
}

.site-nav .button-small {
  white-space: nowrap;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  color: var(--oj-on-accent);
  background: var(--oj-accent);
}

.site-nav .button-small:hover {
  background: var(--oj-accent);
}

.button-quiet {
  background: transparent;
  color: var(--oj-fg);
  border-color: var(--oj-line);
}

.text-link {
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.75rem 0 1rem;
}

/* Hero */
.hero {
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .hero {
    padding: 5rem 0 5.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.eyebrow {
  color: var(--oj-accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  color: var(--oj-muted);
  max-width: 36rem;
}

/* The layers illustration: four sheets, the front one a report card. */
.layers {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.layer-stack {
  position: relative;
  width: min(100%, 30rem);
  aspect-ratio: 26 / 22;
}

@media (min-width: 56rem) {
  .layer-stack {
    aspect-ratio: 26 / 18;
  }
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 12px;
  border: 1px solid var(--oj-line);
  background: var(--oj-panel);
  box-shadow:
    0 1px 2px rgb(11 20 38 / 0.06),
    0 8px 24px rgb(11 20 38 / 0.06);
}

.sheet-tab {
  position: absolute;
  top: 0.55rem;
  left: 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--oj-muted);
}

.sheet-1 {
  top: 0;
  height: 30%;
  margin: 0 3.6rem 0 0;
  background: var(--oj-panel-2);
}

.sheet-2 {
  top: 10%;
  height: 30%;
  margin: 0 2.4rem 0 1.2rem;
  background: var(--oj-panel-2);
}

.sheet-3 {
  top: 20%;
  height: 30%;
  margin: 0 1.2rem 0 2.4rem;
}

.sheet-4 {
  top: 30%;
  bottom: 0;
  margin: 0 0 0 3.6rem;
  padding: 2.2rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-color: color-mix(in srgb, var(--oj-accent) 35%, var(--oj-line));
}

.sheet-4 .sheet-tab {
  color: var(--oj-accent);
}

.mini-kpi,
.mini-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.mini-label {
  font-size: 0.8rem;
  color: var(--oj-muted);
}

.mini-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mini-pace {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--oj-success);
}

.spark {
  width: 100%;
  height: 2.6rem;
}

.spark polyline {
  stroke: var(--oj-series-1);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.pace-track {
  position: relative;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--oj-panel-2);
}

.pace-fill {
  position: absolute;
  inset: 0 48% 0 0;
  border-radius: 999px;
  background: var(--oj-series-1);
}

.pace-plan {
  position: absolute;
  top: -0.25rem;
  bottom: -0.25rem;
  left: 54%;
  width: 2px;
  background: var(--oj-fg);
}

/* Sources */
.sources {
  border-top: 1px solid var(--oj-line);
  border-bottom: 1px solid var(--oj-line);
  background: var(--oj-panel);
  padding: 1.5rem 0;
}

.sources-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.sources-title {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oj-muted);
  margin: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chip {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--oj-line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--oj-bg);
}

.sources-note {
  margin: 0;
  flex-basis: 100%;
}

/* Sections */
.section {
  padding: 4rem 0;
}

@media (min-width: 56rem) {
  .section {
    padding: 5.5rem 0;
  }
}

.section-alt {
  background: var(--oj-panel);
  border-top: 1px solid var(--oj-line);
  border-bottom: 1px solid var(--oj-line);
}

.section-lead {
  color: var(--oj-muted);
  font-size: 1.1rem;
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

/* Steps: each one fills one more layer. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  padding: 1.5rem;
  border: 1px solid var(--oj-line);
  border-radius: 8px;
  background: var(--oj-panel);
}

.step p {
  color: var(--oj-muted);
  margin: 0;
}

.step-layers {
  display: grid;
  gap: 4px;
  width: 4.5rem;
  margin-bottom: 1.25rem;
}

.step-layers span {
  height: 5px;
  border-radius: 999px;
  background: var(--oj-line);
}

.step-layers span:nth-child(1) {
  width: 80%;
  margin-left: 20%;
}

.step-layers span:nth-child(2) {
  width: 95%;
}

.step-layers span:nth-child(3) {
  width: 85%;
  margin-left: 5%;
}

.step-layers span:nth-child(4) {
  width: 55%;
  margin-left: 18%;
}

.step-layers span.on {
  background: var(--oj-accent);
}

.step-label {
  display: block;
  font-family: var(--oj-font-mono);
  font-size: 0.8rem;
  color: var(--oj-muted);
  margin-bottom: 0.35rem;
}

/* Features */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--oj-line);
  background: var(--oj-bg);
}

.feature p {
  color: var(--oj-muted);
  margin: 0;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  color: var(--oj-accent);
  background: color-mix(in srgb, var(--oj-accent) 12%, transparent);
}

/* Lists with checks */
.checks {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.checks li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.checks .icon {
  color: var(--oj-accent);
  margin-top: 0.15rem;
}

@media (min-width: 48rem) {
  .checks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem 2.5rem;
  }
}

/* Split section with the white-label mock */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.mock {
  margin: 0;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.mock-frame {
  width: min(100%, 30rem);
  border: 1px solid var(--oj-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--oj-panel);
  box-shadow:
    0 1px 2px rgb(11 20 38 / 0.06),
    0 12px 32px rgb(11 20 38 / 0.08);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  background: var(--oj-panel-2);
  border-bottom: 1px solid var(--oj-line);
}

.dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--oj-line);
}

.mock-url {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.6rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--oj-panel);
  font-size: 0.8rem;
  color: var(--oj-muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-body {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.mock-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* The agency's own colour, not ours: a neutral teal stands in for it. */
.mock-logo {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 700;
}

.mock-agency {
  font-weight: 700;
}

.mock-title {
  font-size: 0.85rem;
  color: var(--oj-muted);
}

.mock-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.tile {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--oj-line);
}

.tile .mini-value {
  font-size: 1.25rem;
}

.mock-lines {
  display: grid;
  gap: 0.5rem;
}

.mock-lines span {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--oj-panel-2);
}

.mock-lines span:nth-child(1) {
  width: 92%;
}

.mock-lines span:nth-child(2) {
  width: 74%;
}

.mock-lines span:nth-child(3) {
  width: 56%;
}

/* Closing call to action, over the layer pattern */
.cta {
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  background-color: var(--oj-night);
  background-image: url("/assets/layers.c64dd39657.svg");
  background-size: 280px 280px;
  color: #eef1f7;
  text-align: left;
}

@media (min-width: 40rem) {
  .cta {
    padding: 3.5rem;
  }
}

.cta p {
  color: #c4cad8;
  max-width: 36rem;
}

.cta .muted {
  color: #c4cad8;
}

.cta .text-link {
  color: #8ea5ff;
}

.cta .button {
  background: #8ea5ff;
  border-color: #8ea5ff;
  color: #0b1220;
}

@media (prefers-color-scheme: dark) {
  .cta {
    background-color: var(--oj-panel);
    border: 1px solid var(--oj-line);
  }
}

/* Legal pages */
.legal {
  max-width: 46rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.legal h1 {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem);
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

/* Not found */
.not-found {
  max-width: 40rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.not-found h1 {
  font-size: 2.2rem;
  margin-top: 2rem;
}

.not-found h2 {
  margin-top: 2.5rem;
  font-size: 1.4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--oj-line);
  padding: 2.5rem 0;
  background: var(--oj-panel);
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-company {
    grid-column: 1 / -1;
  }
}

.site-footer .logo svg {
  height: 1.5rem;
}

.site-footer p {
  margin: 0.6rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--oj-fg);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (forced-colors: active) {
  .button,
  .chip,
  .sheet,
  .feature,
  .step {
    border: 1px solid CanvasText;
  }
}

/* Sources being built: named, and plainly not yet in the list above */
.sources-soon {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.chip-soon {
  font-weight: 500;
  color: var(--oj-muted);
  border-style: dashed;
  background: transparent;
}

/* Access form */
.contact {
  max-width: 40rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.field input,
.field textarea {
  font: inherit;
  font-weight: 400;
  color: var(--oj-fg);
  background: var(--oj-bg);
  border: 1px solid var(--oj-line);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  width: 100%;
  box-sizing: border-box;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input:focus-visible,
.field textarea:focus-visible,
.consent input:focus-visible {
  outline: 3px solid var(--oj-accent);
  outline-offset: 2px;
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.consent input {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  accent-color: var(--oj-accent);
}

.field-consent {
  font-weight: 400;
}

/* A field the form cannot take: its border, and what to fix right under it */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--oj-danger);
  box-shadow: 0 0 0 1px var(--oj-danger);
}

.consent input[aria-invalid="true"] {
  outline: 2px solid var(--oj-danger);
  outline-offset: 2px;
}

.field-error {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--oj-danger);
}

.field-error::before,
.form-alert-title::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  background-color: currentColor;
  -webkit-mask: var(--alert-icon) center / contain no-repeat;
  mask: var(--alert-icon) center / contain no-repeat;
}

.contact-form {
  --alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E");
}

/* What stopped the whole form, or the fields to fix, above it */
.form-alert {
  border: 1px solid var(--oj-danger);
  border-left-width: 4px;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  background: var(--oj-panel);
  color: var(--oj-fg);
}

.form-alert:focus {
  outline: 3px solid var(--oj-accent);
  outline-offset: 2px;
}

.form-alert-title {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0;
  font-weight: 600;
}

.form-alert-title::before {
  color: var(--oj-danger);
}

.form-alert ul {
  margin: 0.5rem 0 0;
  padding-left: 1.5rem;
}

.form-alert li + li {
  margin-top: 0.25rem;
}

.form-alert a {
  color: var(--oj-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* The field only bots fill: off screen, out of the reading order */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button.button {
  font: inherit;
  cursor: pointer;
}

/* Guide for creators: steps with icons, permissions in plain words, and «Connect» */
.guide-hero {
  padding-bottom: 3rem;
}

.promises {
  margin-top: 2.5rem;
}

@media (min-width: 64rem) {
  .promises {
    grid-template-columns: repeat(4, 1fr);
  }
}

.promise-title {
  font-size: 1.1rem;
}

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .guide-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .guide-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.guide-step {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--oj-line);
  border-radius: 8px;
  background: var(--oj-bg);
}

.guide-step p {
  color: var(--oj-muted);
  margin: 0;
}

.guide-step-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
  color: var(--oj-on-accent);
  background: var(--oj-accent);
}

.network-glyph {
  flex: none;
  vertical-align: middle;
}

.network-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .network-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .network-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.network-card {
  padding: 1.5rem;
  border: 1px solid var(--oj-line);
  border-radius: 8px;
  background: var(--oj-panel);
}

.network-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
}

.network-card p {
  color: var(--oj-muted);
}

.network-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.network-tile {
  display: inline-grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 12px;
  border: 1px solid var(--oj-line);
  background: var(--oj-panel);
}

.split-even {
  display: grid;
  gap: 3rem;
}

@media (min-width: 56rem) {
  .split-even {
    grid-template-columns: 1fr 1fr;
  }
}

.split-even h2 .icon {
  vertical-align: -0.1em;
  color: var(--oj-accent);
}

.permissions {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.permission {
  padding: 1rem 1.1rem;
  border: 1px solid var(--oj-line);
  border-left: 4px solid var(--oj-accent);
  border-radius: 8px;
  background: var(--oj-panel);
}

.permission dt {
  margin-bottom: 0.35rem;
}

.permission code {
  font-family: var(--oj-font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.permission dd {
  margin: 0;
  color: var(--oj-muted);
}

.checks.checks-never .icon {
  color: var(--oj-status-critical);
}

.ways {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .ways {
    grid-template-columns: 1fr 1fr;
  }
}

.way {
  padding: 1.5rem;
  border: 1px solid var(--oj-line);
  border-radius: 8px;
  background: var(--oj-bg);
}

.way ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.way p:last-child {
  margin-bottom: 0;
}

.network-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.network-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--oj-line);
  border-radius: 999px;
  color: var(--oj-fg);
  font-weight: 600;
  text-decoration: none;
}

.network-links a:hover {
  border-color: var(--oj-accent);
}

/* Where a page would offer to connect: what to ask for instead */
.cta .connect-ask {
  color: #eef1f7;
  font-size: 1.25rem;
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  .cta .connect-ask {
    color: var(--oj-fg);
  }
}

@media (forced-colors: active) {
  .guide-step,
  .network-card,
  .permission,
  .way {
    border: 1px solid CanvasText;
  }
}
