@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

/* The same tokens as the dashboard (web/src/style.css). The accent button text differs in dark mode, for contrast. */
:root {
  --bg: #f4f4f4;
  --panel: #e8e8e8;
  --border: #c8c8c8;
  --text: #1a1a1a;
  --muted: #565656;
  --accent: #0e5fa8;
  --accent-hover: #0a4d8c;
  --accent-text: #ffffff;
  --link: #0e5fa8;
  --bar: #1a1a1a;
  --bar-text: #efefef;
  --bar-border: #5a5a5a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2c2c2c;
    --panel: #363636;
    --border: #4a4a4a;
    --text: #e4e4e4;
    --muted: #b0b0b0;
    --accent: #4498d8;
    --accent-hover: #5aa8e2;
    --accent-text: #101418;
    --link: #5aa8e2;
  }
}

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

html { scroll-behavior: smooth; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 "IBM Plex Sans", system-ui, sans-serif;
}

img { display: block; width: 100%; height: auto; border: 1px solid var(--border); }

h1, h2, h3, strong, th, dt { font-weight: 600; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(1.875rem, 3.05vw, 2.75rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.0625rem; }

.nowrap { white-space: nowrap; }

figcaption, caption { color: var(--muted); font-size: 0.875rem; }
figcaption { margin-top: 0.625rem; }

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

.wrap {
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
}

.bar, .foot, .strip {
  background: var(--bar);
  color: var(--bar-text);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.625rem clamp(1.25rem, 4vw, 3rem);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: inherit;
  font: 400 1.0625rem "IBM Plex Mono", ui-monospace, monospace;
  text-decoration: none;
  white-space: nowrap;
}

.logo { flex: none; width: 32px; height: 32px; border: 0; }

.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.button:hover { background: var(--accent-hover); }
.button:active { transform: translateY(1px); }

.button-quiet {
  padding: 0.4375rem 0.875rem;
  background: transparent;
  border: 1px solid var(--bar-border);
  color: var(--bar-text);
  font-size: 0.9375rem;
}
.button-quiet:hover { background: #303030; }

.button-invert { background: var(--accent-text); color: var(--accent); }
.button-invert:hover { background: var(--bg); }
@media (prefers-color-scheme: dark) {
  .button-invert { color: #f4f4f4; }
  .button-invert:hover { background: #000000; color: #f4f4f4; }
}

.link { color: var(--text); font-weight: 600; text-underline-offset: 0.25em; }
.link:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: 7fr 6fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-text p { text-wrap: pretty; max-width: 38ch; margin-top: 1.25rem; color: var(--muted); font-size: 1.1875rem; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }

.strip {
  display: block;
  padding: 1.125rem clamp(1.25rem, 4vw, 3rem);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  text-align: center;
  text-decoration: none;
}
.strip:hover { text-decoration: underline; text-underline-offset: 0.25em; }

.problem {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.problem-text p { max-width: 42ch; margin-top: 1rem; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
caption { padding-bottom: 0.625rem; text-align: left; }
thead th { background: var(--bar); color: var(--bar-text); }
th, td { padding: 0.75rem 0.875rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
tbody td:last-child { color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  list-style: none;
}
.steps li { padding-top: 1rem; border-top: 3px solid var(--accent); }
.steps p { margin-top: 0.5rem; color: var(--muted); font-size: 1rem; }

.claims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
}
.claims dd { margin-top: 0.25rem; color: var(--muted); font-size: 1rem; }

.team { background: var(--panel); scroll-margin-top: 1rem; }
.team-lead { margin-top: 1rem; color: var(--muted); font-size: 1.1875rem; }

.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--border);
  border: 1px solid var(--border);
}
.person {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg);
}
.person h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -0.01em; }
.person ul { flex: 1; margin-top: 1rem; list-style: none; }
.person li + li { margin-top: 0.375rem; }
.person a {
  margin-top: 1.25rem;
  color: var(--link);
  font: 400 0.9375rem "IBM Plex Mono", ui-monospace, monospace;
  text-underline-offset: 0.25em;
}

.next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: stretch;
}
.status p { max-width: 52ch; margin-top: 1rem; color: var(--muted); }

.contact {
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--accent);
  color: var(--accent-text);
}
.contact p { max-width: 46ch; margin: 1rem 0 1.75rem; }

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem);
  font-size: 0.9375rem;
}

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  h1 { font-size: clamp(2rem, 9vw, 2.25rem); }
  h2 { font-size: clamp(1.5rem, 6.6vw, 1.625rem); }
  .wrap { padding-block: 2.5rem; }

  .hero, .problem, .next, .people, .claims { grid-template-columns: 1fr; }
  .hero { gap: 2rem; padding-top: 2rem; }
  .hero-text p { margin-top: 1rem; font-size: 1.0625rem; }

  /* Tap targets of at least 44 px. */
  .bar { gap: 0.75rem; padding-inline: 1rem; }
  .mark { gap: 0.5rem; font-size: 0.9375rem; }
  .logo { width: 26px; height: 26px; }
  .button-quiet { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; padding-inline: 0.625rem; font-size: 0.875rem; }
  .actions { flex-direction: column; align-items: stretch; gap: 0.25rem; margin-top: 1.5rem; }
  .actions .button, .button-invert { display: block; padding-block: 0.875rem; text-align: center; }
  .link { display: flex; align-items: center; justify-content: center; min-height: 44px; }
  .person a { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; margin-top: 0.5rem; }
  .mark { min-height: 44px; }

  .strip { padding-block: 1rem; line-height: 1.5; }

  /* Each table row becomes a block: three columns do not fit at this width. */
  table, tbody, tr, tbody th, tbody td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  caption { display: block; }
  tbody tr { padding: 0.75rem 0; border-top: 1px solid var(--border); }
  tbody th, tbody td { padding: 0; border: 0; }

  /* The steps become one continuous line, which also makes them shorter. */
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 1.5rem; }
  .steps li { padding: 0 0 1.125rem 1rem; border-top: 0; border-left: 3px solid var(--accent); }
  .steps li:last-child { padding-bottom: 0; }
  .steps p { margin-top: 0.125rem; }

  .claims { gap: 1rem; margin-top: 2rem; }

  .people { margin-top: 1.5rem; }
  .person { padding: 1.25rem; }
  .person h3 { font-size: 1.625rem; }
  .person ul { margin-top: 0.625rem; line-height: 1.45; }

  /* The contact panel reaches the screen edges and the footer. */
  .next { gap: 2rem; padding-bottom: 0; }
  .contact { margin-inline: calc(-1 * clamp(1.25rem, 4vw, 3rem)); padding: 2rem clamp(1.25rem, 4vw, 3rem); }
  .contact p { margin-block: 0.75rem 1.5rem; }

  .foot { flex-direction: column; align-items: flex-start; gap: 0.25rem; padding-block: 1rem 1.5rem; padding-inline: 1.25rem; }
}

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