/* Colours and sizes live here so the whole site can be changed in one place. */
:root {
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --paper: #ffffff;
  --wash: #f6f8fb;
  --accent: #2747d6;
  --accent-dark: #1c36a8;
  --accent-wash: #eef2ff;
  --good: #067647;
  --good-wash: #ecfdf3;
  --warn: #b42318;
  --warn-wash: #fef3f2;
  --hold: #475467;
  --hold-wash: #f2f4f7;
  --radius: 12px;
  --width: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.eyebrow { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.9em; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 46em; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip-link:focus { left: 8px; color: #fff; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.02rem; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 0.96rem; font-weight: 550; }
.site-nav a:hover { background: var(--wash); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--accent-wash); color: var(--accent-dark); }

/* Sections */
.hero { padding: 84px 0 64px; }
.section { padding: 64px 0; }
.section.wash { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }

.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
a.card:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(16, 24, 40, 0.07); color: inherit; }
.card .more { color: var(--accent); font-weight: 600; margin-top: 12px; display: inline-block; }

.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button.quiet { background: var(--paper); color: var(--ink); border-color: var(--line); }
.button.quiet:hover { background: var(--wash); color: var(--ink); border-color: #cfd4dc; }
.button.small { padding: 7px 12px; font-size: 0.9rem; border-radius: 8px; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.facts div { background: var(--paper); padding: 20px; }
.facts dt { font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 650; color: var(--ink); }

/* Long-form reading */
.prose h2 { margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--ink); }
.note { background: var(--accent-wash); border: 1px solid #d5ddff; border-radius: var(--radius); padding: 14px 18px; font-size: 0.95rem; color: #273a8a; }
figure { margin: 1.6em 0; }
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }

/* Demo */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.steps li::before { content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--accent-wash); color: var(--accent-dark); font-weight: 700; display: grid; place-items: center; }
.steps h3 { margin: 0 0 2px; }
.steps p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.button.small { white-space: nowrap; }

[hidden] { display: none !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 56px 0 44px; }
  .section { padding: 48px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { min-height: 56px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .site-nav a { padding: 6px 9px; font-size: 0.92rem; }
  .steps li { grid-template-columns: 36px 1fr; }
  .steps li > .tag, .steps li > .button { grid-column: 2; justify-self: start; }
}
