
:root {
  color-scheme: light;

  /* --- Brand ------------------------------------------------------------ */
  --accent: #46c0e9;
  --accent-hover: #3facd1;          /* guide: "10% darker"; navy on it is 5.8:1 */
  --accent-tint: #e8f7fc;           /* derived: the guide has no tint ramp */
  --accent-tint-border: #bde9f6;    /* derived */

  --navy: #002060;
  --navy-hover: #001440;
  --navy-light: #2b4563;

  /* --- Text ------------------------------------------------------------- */
  --text: #002060;                  /* 15.27:1 on white */
  --text-muted: #2b4563;            /*  9.84:1 on white */
  --on-navy: #ffffff;               /* 15.27:1 on navy */
  --on-navy-muted: #b9c7dd;         /* derived: 8.6:1 on navy */
  --accent-on-navy: #46c0e9;        /* 7.25:1 — rule 2 */

  /* --- Surfaces --------------------------------------------------------- */
  --bg: #f2f2f2;
  --surface: #ffffff;
  --surface-sunken: #f7f9fb;        /* derived: code and address blocks */
  --border: #e5e5e5;                /* hairlines only — 1.2:1, decorative */
  --border-strong: #d8d8d8;
  --field-border: #8f8f8f;          /* derived: 3.23:1, the guide has none that passes */

  /* --- Semantics: surface / ink / tint ---------------------------------- */
  /* All four guide semantics fail as text colours, so each role carries two
     tokens: the bare name is the surface, -ink is the measured text colour. */
  --warning: #fb8c00;
  --warning-ink: #7a4100;           /* 8.13:1 */
  --warning-bg: #fff8ef;
  --warning-border: #ffe0b2;

  /* Only the ink is needed here: the danger button is an outline, and its
     hover fills with the same ink. A surface tone would be an unused token. */
  --error-ink: #c62828;             /* 5.62:1 on white, white on it 5.62:1 */

  /* --- Type ------------------------------------------------------------- */
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-base: 1rem;
  --text-ratio: 1.125;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: var(--text-base);
  --text-lg: calc(var(--text-base) * var(--text-ratio));
  --text-xl: calc(var(--text-lg) * var(--text-ratio));
  --text-2xl: calc(var(--text-xl) * var(--text-ratio) * var(--text-ratio));
  /* The guide's 48-72px H1 is deliberately not here: on a consent page it
     pushes the thing being consented to below the fold. --text-2xl is the
     page-title register for both pages. */

  --leading-tight: 1.2;
  --leading-snug: 1.4;
  --leading-normal: 1.55;
  --leading-relaxed: 1.65;

  /* The label signature — the guide's most identity-bearing single rule.
     Space Grotesk, 10-14px, 600-700, uppercase, letter-spacing 2-4px. */
  --label-size: var(--text-xs);
  --label-weight: 700;
  --label-tracking: 0.16em;

  /* --- Space ------------------------------------------------------------ */
  --space-unit: 0.25rem;
  --space-1: var(--space-unit);
  --space-2: calc(var(--space-unit) * 2);
  --space-3: calc(var(--space-unit) * 3);
  --space-4: calc(var(--space-unit) * 4);
  --space-5: calc(var(--space-unit) * 5);
  --space-6: calc(var(--space-unit) * 6);
  --space-10: calc(var(--space-unit) * 10);
  --space-12: calc(var(--space-unit) * 12);
  --space-16: calc(var(--space-unit) * 16);

  /* --- Measures --------------------------------------------------------- */
  --container: 1100px;
  --container-narrow: 46rem;
  --measure: 68ch;                  /* derived: 1100px of prose is ~140 chars a line */
  --control-min: 44px;
  --card-pad: clamp(1rem, 3.5vw, 2rem);
  --band-pad: clamp(1.25rem, 4vw, 2.5rem);

  /* --- Form ------------------------------------------------------------- */
  /* One graduated scale. Nothing in these pages has a sharp corner, and
     nothing is a pill. Inner radius = outer radius minus padding. */
  --radius-badge: 6px;
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-round: 50%;

  /* Exactly two elevations, tinted navy rather than black. */
  --shadow-card: 0 1px 3px rgba(0, 32, 96, 0.06);
  --shadow-raised: 0 12px 32px rgba(0, 32, 96, 0.1);

  /* The only decoration: an 8px dot field that reads the navy band as a
     surface instead of a flat slab. A grid, deliberately, not a gradient. */
  --texture-step: 8px;
  --texture-dot: rgba(70, 192, 233, 0.22);

  --motion-fast: 120ms;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

@font-face{font-family:"DM Sans";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/dm-sans-latin-400-normal.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:"DM Sans";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/dm-sans-latin-ext-400-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/dm-sans-latin-500-normal.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:"DM Sans";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/dm-sans-latin-ext-500-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/dm-sans-latin-700-normal.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:"DM Sans";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/dm-sans-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/space-grotesk-latin-600-normal.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:"Space Grotesk";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/space-grotesk-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/space-grotesk-latin-700-normal.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:"Space Grotesk";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/space-grotesk-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

/* --- The navy band ------------------------------------------------------ */
/* Both pages open with it, so the brand is the first thing on screen rather
   than a colour applied to a heading afterwards. */
.band {
  background-color: var(--navy);
  background-image: radial-gradient(var(--texture-dot) 1px, transparent 1px);
  background-size: var(--texture-step) var(--texture-step);
  color: var(--on-navy);
  padding: var(--band-pad) 0;
  border-bottom: 3px solid var(--accent);
}
.band-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* The guide says logos belong on white and also says the header is navy. The
   plaque resolves both: the artwork is untouched, on its own white ground. */
.plaque {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-control);
  background-color: var(--surface);
  background-image: url("/assets/alphapet.svg");
  background-size: 72% 72%;
  background-position: center;
  background-repeat: no-repeat;
}

.band-titles { flex: 1 1 16rem; min-width: 0; }
.band h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  margin: 0;
}
.band .tagline {
  margin: var(--space-1) 0 0;
  color: var(--on-navy-muted);
  font-size: var(--text-sm);
}

.badge {
  flex: none;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--label-weight);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-on-navy);
  border: 1px solid var(--accent-on-navy);
  border-radius: var(--radius-badge);
  padding: var(--space-1) var(--space-3);
  white-space: nowrap;
}

/* --- Page body ---------------------------------------------------------- */
main {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-10) var(--space-5) var(--space-16);
}
main.narrow { max-width: var(--container-narrow); }

p { margin: 0 0 var(--space-4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  margin: 0 0 var(--space-4);
}
h3 {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}

/* The label signature, used for every section eyebrow. */
.label {
  font-family: var(--font-display);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  text-transform: uppercase;
  letter-spacing: var(--label-tracking);
  color: var(--navy-light);
  margin: 0 0 var(--space-3);
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--navy-hover); text-decoration-color: var(--navy); }

/* One deliberate focus ring, navy, everywhere. */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: var(--radius-badge);
}
.band :focus-visible, .btn-primary:focus-visible { outline-color: var(--accent); }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--card-pad);
  margin: 0 0 var(--space-6);
}
.card:last-child { margin-bottom: 0; }
.card > :last-child { margin-bottom: 0; }

/* The 4px left rule means "this block carries a state". The colour says which.
   Systematised from the guide's one-off KPI-card decoration. */
.card-action { border-left: 4px solid var(--accent); box-shadow: var(--shadow-raised); }
.card-quiet { box-shadow: none; }

/* --- Notes -------------------------------------------------------------- */
/* Two kinds, and they must not look alike: one states a consequence of saying
   yes, the other reassures about what the agent cannot do. */
.note {
  border-radius: var(--radius-control);
  padding: var(--space-4);
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}
.note :last-child { margin-bottom: 0; }
.note-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-left: 4px solid var(--warning);
  color: var(--warning-ink);
}
.note-guard {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy-light);
  color: var(--text-muted);
}

/* --- Facts: the things a person is asked to check ----------------------- */
.facts { margin: 0 0 var(--space-5); }
.fact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.fact:first-child { border-top: 1px solid var(--border); }
.fact dt {
  flex: none;
  width: 8rem;
  font-family: var(--font-display);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  text-transform: uppercase;
  letter-spacing: var(--label-tracking);
  color: var(--navy-light);
  padding-top: 0.15rem;
}
.fact dd { flex: 1 1 14rem; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.fact .name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.fact .addr { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-muted); }
.fact-note { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--text-muted); }

/* The reference is the anti-phishing control: the one token a person compares
   against what the agent told them. It gets the weight that job deserves. */
.reference {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  padding: var(--space-3) var(--space-4);
  padding-right: calc(var(--space-4) - 0.2em);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-border);
  border-radius: var(--radius-control);
}

/* --- Buttons ------------------------------------------------------------ */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
form { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-min);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.2;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-control);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease),
              border-color var(--motion-fast) var(--ease);
}

/* The one accent-filled element on the page — and it carries a navy label,
   because white on this cyan is 2.10:1 (rule 2). */
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-secondary { background: var(--surface); border-color: var(--navy); color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--on-navy); }

.btn-danger { background: var(--surface); border-color: var(--error-ink); color: var(--error-ink); }
.btn-danger:hover { background: var(--error-ink); color: var(--on-navy); }

.btn-quiet {
  background: none;
  border-color: transparent;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--field-border);
  text-underline-offset: 4px;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}
.btn-quiet:hover { color: var(--text); text-decoration-color: var(--navy); }

/* --- Capability lists (the front door) ---------------------------------- */
.groups {
  display: grid;
  align-items: start;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  margin: 0 0 var(--space-6);
}

.tools { list-style: none; margin: 0; padding: 0; }
.tools li {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--text-muted);
}
.tools li:first-child { border-top: none; padding-top: 0; }
.tools b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--text);
}

/* Can / cannot. The icon is a stroked mark, not an emoji: an emoji renders
   differently on every platform and inherits neither colour nor weight. */
.marks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.marks li { display: flex; gap: var(--space-3); align-items: flex-start; }
.marks .icon { flex: none; width: 1.375rem; height: 1.375rem; margin-top: 0.1rem; }
.marks-no .icon { color: var(--error-ink); }
.marks b { font-weight: 700; }
.marks p { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--text-muted); }

.icon { display: inline-block; vertical-align: middle; fill: none; stroke: currentColor;
        stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sprite { display: none; }

/* --- Steps -------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: var(--space-4);
  padding: 0 0 var(--space-5);
  align-items: flex-start;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-round);
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps b { display: block; font-family: var(--font-display); font-weight: 600; }
.steps p { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--text-muted); }

/* --- Endpoint ----------------------------------------------------------- */
.endpoint {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-md);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-control);
  padding: var(--space-4);
  margin: 0 0 var(--space-4);
  overflow-wrap: anywhere;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-badge);
  padding: 0.1em 0.35em;
}

/* --- Footer ------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border-strong);
  margin-top: var(--space-12);
  padding-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
footer p { margin: 0; max-width: none; }

/* --- Responsive --------------------------------------------------------- */
/* Breakpoints stay literal: custom properties do not work in media queries.
   576 / 768 per the guide. */
@media (max-width: 576px) {
  .fact dt { width: auto; flex: 1 1 100%; }
  .reference { font-size: var(--text-xl); }
  .band h1 { font-size: var(--text-xl); }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
