/* Latin subsets for the weights this page uses. Source Sans 3 is a variable font. */
@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/roboto-slab-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #182138;
  --ink-soft: #3c4a66;
  --paper: #f3f5f8;
  --white: #ffffff;
  --line: #d5dce8;
  --line-strong: #76839b;
  --blue: #335192;
  --focus: #5289fc;
  /* Clears the language switcher, the header padding and its border. */
  --header: 4.5rem;
  /* Side padding that keeps a full-width bar in line with the 72rem content column. */
  --edge: max(1.25rem, calc(50% - 34.75rem));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Keeps a linked section clear of the sticky header. */
  scroll-padding-top: calc(var(--header) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
.cases dt {
  font-family: "Roboto Slab", Palatino, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  max-width: 22ch;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

h3,
.cases dt {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.35rem;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}

.skip:focus {
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.7rem var(--edge);
  background: rgba(243, 245, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand img {
  display: block;
  height: 34px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  background: var(--white);
}

.lang a {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  background: transparent;
  color: var(--ink-soft);
  font: 700 0.82rem/1 "Source Sans 3", sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.lang a[aria-current="page"] {
  background: var(--ink);
  color: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font: 600 1.05rem/1.2 "Source Sans 3", sans-serif;
  padding: 0.9rem 1.15rem;
  cursor: pointer;
}

.button:hover {
  background: var(--blue);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.button-small {
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
}

.hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  max-width: 38rem;
  font-size: 1.25rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.6rem;
}

.band,
.pilot {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 3.2rem;
}

.narrow {
  max-width: 40rem;
}

.narrow p + p {
  margin-top: 0.8rem;
}

.faq {
  display: grid;
  gap: 1.4rem;
  max-width: 40rem;
}

.faq h3 {
  margin-top: 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.system-figure {
  margin: 0 0 1.5rem;
}

.system-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.section-head p,
.narrow p,
.faq p,
.pilot-copy p,
.form-hint {
  color: var(--ink-soft);
}

/* The step cards and the case cards share one grid and one card. */
.steps,
.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.steps {
  list-style: none;
  padding: 0;
}

.steps li,
.cases div,
.pilot form,
.sent {
  background: var(--white);
  border: 1px solid var(--line);
}

.steps li,
.cases div {
  padding: 1.25rem 1.1rem 1.4rem;
}

.step-no {
  color: var(--blue);
  font: 600 0.85rem/1 "Source Sans 3", sans-serif;
  letter-spacing: 0.06em;
}

.cases dt {
  margin-top: 0;
}

.cases dd {
  margin: 0;
  color: var(--ink-soft);
}

.pilot {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
  padding-bottom: 4rem;
}

@media (min-width: 901px) {
  .pilot-copy {
    position: sticky;
    top: calc(var(--header) + 1rem);
  }
}

.pilot form {
  position: relative;
  padding: 1.2rem;
  display: grid;
  gap: 0.95rem;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.field-error {
  color: #8a1f1f;
  font-size: 0.92rem;
}

label,
legend {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.98rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font: 400 1.05rem/1.4 "Source Sans 3", sans-serif;
  padding: 0.7rem 0.75rem;
}

textarea {
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.55rem;
}

legend {
  /* A legend is not a grid item, so the fieldset gap never separates it from the choices. */
  padding: 0 0 0.35rem;
}

/* The column gap matches .fields, so both grids share their edges. */
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.85rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 400;
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  background: var(--paper);
}

.choice input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--ink);
}

.choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--white);
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form-hint,
.form-error {
  font-size: 0.98rem;
}

.form-error {
  color: #8a1f1f;
  background: #fdecec;
  padding: 0.7rem 0.8rem;
}

.sent {
  padding: 1.2rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  padding: 2rem var(--edge) 2.4rem;
  background: var(--ink);
  color: #d5deef;
}

.site-footer img {
  height: 30px;
  width: auto;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

input[aria-invalid="true"] {
  border-color: #8a1f1f;
}

.mobile-bar {
  display: none;
}

@media (max-width: 900px) {
  .steps,
  .cases,
  .pilot,
  .fields,
  .choices {
    grid-template-columns: 1fr;
  }

  /* site.js sets bar-visible while neither the hero button nor the form is on screen. */
  body.bar-visible .mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
  }

  body.bar-visible {
    padding-bottom: 3.4rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: start;
  }

  .header-actions .button-small {
    display: none;
  }

}

/* The picture element swaps in the narrow diagram at this width. */
@media (max-width: 700px) {
  .system-figure img {
    max-width: 26rem;
  }
}

@media (max-width: 560px) {
  h1 {
    max-width: none;
  }

  .brand img {
    height: 28px;
  }
}
