/* Care Copilot US site.
   Tokens, type and components are carried over from the UK landing page
   (carecopilot-landing-page: src/styles.css, src/fonts.css, src/legal-page.css,
   src/form-page.css). Motion, product mock-ups and the Inter UI face are left
   out: this site is calm, text-first and needs no JavaScript.
   The UK site has no dark mode, so neither does this one. */

/* ---------- Fonts (self-hosted, same files as the UK site) ---------- */

@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/HelveticaNeueRoman-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0-FF, U+142, U+144, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+2039-203A, U+20AC, U+2190-2193, U+2197-2198, U+21B5, U+21C5, U+2212, U+2228, U+2264-2265, U+2713, U+2715, U+2913, U+1F4C4;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/HelveticaNeueRoman.woff2") format("woff2"), local("Helvetica Neue"), local("HelveticaNeue");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+100-141, U+143, U+145-2012, U+2015-2017, U+201A-201B, U+201E-2021, U+2023-2025, U+2027-2038, U+203B-20AB, U+20AD-218F, U+2194-2196, U+2199-21B4, U+21B6-21C4, U+21C6-2211, U+2213-2227, U+2229-2263, U+2266-2712, U+2714, U+2716-2912, U+2914-1F4C3, U+1F4C5-10FFFF;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/HelveticaNeueMedium-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0-FF, U+142, U+144, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+2039-203A, U+20AC, U+2190-2193, U+2197-2198, U+21B5, U+21C5, U+2212, U+2228, U+2264-2265, U+2713, U+2715, U+2913, U+1F4C4;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/HelveticaNeueMedium.woff2") format("woff2"), local("Helvetica Neue Medium"), local("HelveticaNeue-Medium");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+100-141, U+143, U+145-2012, U+2015-2017, U+201A-201B, U+201E-2021, U+2023-2025, U+2027-2038, U+203B-20AB, U+20AD-218F, U+2194-2196, U+2199-21B4, U+21B6-21C4, U+21C6-2211, U+2213-2227, U+2229-2263, U+2266-2712, U+2714, U+2716-2912, U+2914-1F4C3, U+1F4C5-10FFFF;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/HelveticaNeueBold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0-FF, U+142, U+144, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+2039-203A, U+20AC, U+2190-2193, U+2197-2198, U+21B5, U+21C5, U+2212, U+2228, U+2264-2265, U+2713, U+2715, U+2913, U+1F4C4;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/HelveticaNeueBold.woff2") format("woff2"), local("Helvetica Neue Bold"), local("HelveticaNeue-Bold");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+100-141, U+143, U+145-2012, U+2015-2017, U+201A-201B, U+201E-2021, U+2023-2025, U+2027-2038, U+203B-20AB, U+20AD-218F, U+2194-2196, U+2199-21B4, U+21B6-21C4, U+21C6-2211, U+2213-2227, U+2229-2263, U+2266-2712, U+2714, U+2716-2912, U+2914-1F4C3, U+1F4C5-10FFFF;
}

/* ---------- Tokens ---------- */

:root {
  /* Colour: UK site values. */
  --blue: #026be3;            /* brand blue; 4.9:1 on white */
  --blue-hover: #1273e5;      /* UK hover; white label stays above 4.5:1 */
  --ink: #08172f;             /* body ink */
  --ink-strong: #00162d;      /* headlines */
  --body: #4f6485;            /* secondary text; 5.9:1 on white */
  --slate: #52677b;           /* footer and form labels */
  --nav-ink: #263d5e;
  --footer-link: #334a60;
  --line: #dbe5f2;
  --line-soft: rgb(215 229 240 / 90%);
  --line-faq: rgb(185 210 247 / 82%);
  --panel: #f4f7fb;
  --hero-bg: #f8fbff;
  --form-bg: #fbfcfe;
  --control-border: #d6e3ef;
  --secondary-border: #d4e0ee;
  --secondary-border-hover: #aebfd4;
  --secondary-ink: #0e294f;
  --sky-top: #72a8f7;         /* feature-card gradient */
  --sky-bottom: #bcd9ff;
  --danger: #b42318;
  --white: #ffffff;

  /* Type */
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text-sm: 14px;
  --text-base: 17px;
  --text-lede: 19px;
  --h1: clamp(36px, 5.2vw, 56px);
  --h2: clamp(24px, 2.6vw, 28px);
  --h3: 20px;
  --tracking-tight: -0.03em;

  /* Shape and depth */
  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-panel: 16px;
  --radius-sm: 8px;
  --shadow-card: 0 18px 42px rgb(10 74 135 / 16%);
  --shadow-button: 0 7px 18px rgb(2 107 227 / 18%);
  --focus-ring: 3px solid var(--blue);
  --focus-ring-ondark: 3px solid var(--ink-strong);

  /* Layout */
  --container: 1124px;
  --gutter: 32px;
  --measure: 720px;
  --header-height: 80px;

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus { outline: none; }

.site-container {
  width: min(calc(100% - 2 * var(--gutter)), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-200%);
  visibility: hidden;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { transform: none; visibility: visible; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Buttons (UK .button / .button--primary / .button--secondary) ---------- */

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background: currentColor;
  -webkit-mask: url("/assets/img/button-arrow.svg") center / contain no-repeat;
  mask: url("/assets/img/button-arrow.svg") center / contain no-repeat;
}

.button--primary {
  background: var(--blue);
  box-shadow: var(--shadow-button);
  color: var(--white);
}
.button--primary:hover { background: var(--blue-hover); }

.button--secondary {
  border-color: var(--secondary-border);
  background: rgb(255 255 255 / 82%);
  color: var(--secondary-ink);
}
.button--secondary:hover { border-color: var(--secondary-border-hover); background: var(--white); }

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

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: var(--white);
}

.site-header__inner {
  display: flex;
  min-height: var(--header-height);
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding-block: 12px;
}

.brand-link { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px; }
.brand-link img { width: 192px; }

.site-nav { flex: 1 1 auto; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--nav-ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--blue); }

/* The UK header marks the current section with a small blue dot above it. */
.site-nav a[aria-current="page"] { color: var(--ink-strong); }
.site-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateX(-50%);
}

.site-header__cta { flex: 0 0 auto; }

@media (min-width: 960px) {
  .site-header { position: sticky; top: 0; }
}

@media (max-width: 959px) {
  :root { --header-height: 0px; }
  .site-header__inner { gap: 4px 16px; }
  .brand-link { flex: 1 1 auto; }
  .site-nav { order: 3; flex-basis: 100%; }
  .site-nav ul { gap: 0 22px; }
}

@media (max-width: 599px) {
  .brand-link img { width: 160px; }
  .site-header__cta { display: none; }  /* every page repeats the CTA below */
}

/* ---------- Page hero (UK hero sky, toned down for reading) ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 64px 48px;
  background: var(--hero-bg);
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("/assets/img/hero-sky.webp") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}

/* A white veil keeps every line of hero text well above 4.5:1. */
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgb(255 255 255 / 58%) 0%, rgb(255 255 255 / 72%) 60%, #ffffff 100%);
}

.page--home .page-hero { padding-block: 96px 64px; }

.page-hero__inner { max-width: var(--container); }

.page-hero h1 {
  max-width: 22ch;
  margin: 0;
  color: var(--ink-strong);
  font-size: var(--h1);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.page-hero h1 .accent { color: var(--blue); }

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  border: 1px solid rgb(2 107 227 / 22%);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  background: rgb(255 255 255 / 80%);
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lede {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--ink-strong);
  font-size: var(--text-lede);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.page-meta {
  margin: 24px 0 0;
  color: var(--nav-ink);
  font-size: var(--text-sm);
}
.page-meta a { color: var(--nav-ink); text-underline-offset: 3px; }
.page-meta a:hover { color: var(--blue); }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 20px;
  padding: 0;
  color: var(--nav-ink);
  font-size: var(--text-sm);
  list-style: none;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--slate); }
.breadcrumbs a { text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] { color: var(--ink-strong); }

@media (max-width: 599px) {
  :root { --gutter: 16px; }
  .breadcrumbs li:last-child { display: none; }  /* the H1 right below says it */
  .page-hero, .page--home .page-hero { padding-block: 40px 32px; }
  .lede { font-size: 17px; }
}

/* ---------- Layout and table of contents ---------- */

.page-layout { padding-block: 24px 64px; }
.page-layout > .prose { max-width: var(--measure); }

.toc {
  margin: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 20px 24px;
  background: var(--panel);
  font-size: 15px;
  line-height: 1.45;
}
.toc h2 {
  margin: 0 0 12px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc li + li { margin-top: 8px; }
.toc ol ol { margin-top: 8px; padding-left: 14px; border-left: 1px solid var(--line); }
.toc a { color: var(--nav-ink); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 1024px) {
  .page-layout--toc {
    display: grid;
    grid-template-columns: 240px minmax(0, var(--measure));
    gap: 64px;
    align-items: start;
  }
  .page-layout--toc .toc {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    max-height: calc(100vh - var(--header-height) - 48px);
    overflow: auto;
    margin: 8px 0 0;
  }
}

/* ---------- Prose (UK legal-page body, widened for guides) ---------- */

.prose {
  min-width: 0;
  overflow-wrap: break-word;
}

.prose > :first-child { margin-top: 0; }

.prose p { margin: 0 0 20px; }

.prose :is(h2, h3, h4) {
  color: var(--ink-strong);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-height) + 24px);
  text-wrap: balance;
}
.prose h2 { margin: 56px 0 16px; color: var(--blue); font-size: var(--h2); }
.prose h3 { margin: 36px 0 12px; font-size: var(--h3); }
.prose h4 { margin: 28px 0 8px; font-size: 17px; }

/* :not(.button) so a button link inside prose keeps its own colours. */
.prose a:not(.button) {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:not(.button):hover { text-decoration-thickness: 2px; }

.prose :is(ul, ol) { margin: 0 0 24px; padding-left: 24px; }
.prose li { margin-bottom: 10px; padding-left: 4px; }
.prose li > :is(ul, ol) { margin: 10px 0 0; }
.prose li::marker { color: var(--body); }

.prose strong { color: var(--ink-strong); font-weight: 700; }

.prose blockquote {
  margin: 0 0 24px;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  background: var(--panel);
  color: var(--ink);
}
.prose blockquote > :last-child { margin-bottom: 0; }

.prose hr { margin: 48px 0; border: 0; border-top: 1px solid var(--line); }

.prose code {
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--panel);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.prose pre {
  overflow-x: auto;
  margin: 0 0 24px;
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--panel);
  font-size: 14px;
}
.prose pre code { padding: 0; background: none; }

.prose img { border-radius: var(--radius-panel); }

/* Tables scroll inside their own box, never the page. */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
.table-wrap:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.prose :is(th, td) {
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--panel); color: var(--ink-strong); font-weight: 500; }
.prose tr:last-child td { border-bottom: 0; }
.prose td + td, .prose th + th { border-left: 1px solid var(--line); }

/* Question headings on FAQ pages carry the UK FAQ accordion's divider line,
   but every answer is always open. */
.page--faq .prose .question {
  margin-top: 40px;
  border-top: 1px solid var(--line-faq);
  padding-top: 32px;
  color: var(--ink-strong);
  font-size: var(--h3);
}
.page--faq .prose h2:not(.question) { margin-top: 64px; }

/* Sources: the closing list, set a step smaller. */
.prose #sources { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 32px; color: var(--ink-strong); font-size: 20px; }
.prose #sources ~ :is(ul, ol) { color: var(--body); font-size: 15px; line-height: 1.55; }
.prose #sources ~ :is(ul, ol) li { margin-bottom: 8px; }

@media (max-width: 599px) {
  .prose { font-size: 16px; }
  .prose h2 { margin-top: 44px; }
}

/* ---------- Self-check starter (end of every guide; plain links, no JS) ---------- */

.starter {
  margin: 56px 0 0;
  border: 1px solid rgb(2 107 227 / 22%);
  border-radius: var(--radius-card);
  padding: 28px 28px 24px;
  background: linear-gradient(180deg, #eef5ff 0%, var(--white) 100%);
}
.prose .starter__kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.prose .starter__question {
  margin: 0 0 20px;
  color: var(--ink-strong);
  font-size: var(--h3);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.prose .starter__answers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.prose .starter__answers li { margin: 0; padding: 0; }
.prose a.starter__answer {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  border: 1px solid var(--secondary-border);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  background: var(--white);
  color: var(--secondary-ink);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}
.prose a.starter__answer:hover { border-color: var(--blue); background: var(--blue); color: var(--white); }
.prose .starter__note { margin: 0; color: var(--body); font-size: 14px; line-height: 1.5; }

@media (max-width: 599px) {
  .starter { padding: 20px 16px; }
  .prose .starter__answers { flex-direction: column; }
  .prose a.starter__answer { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .prose a.starter__answer { transition: none; }
}

/* The self-check's static outline, shown until its script takes over (and to crawlers). */
#self-check:not(.sc) { margin: 0 0 40px; border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 20px 24px; background: var(--panel); }
#self-check:not(.sc) > :last-child { margin-bottom: 0; }

/* ---------- CTA block ---------- */

.cta-band { padding: 0 0 96px; }

.cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-card);
  padding: 56px 48px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
}
.cta-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("/assets/img/hero-sky.webp") center / cover no-repeat;
  opacity: 0.55;
}
.cta-card__inner {
  max-width: 640px;
  border-radius: var(--radius-card);
  padding: 40px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.cta-card h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.cta-card p { margin: 12px 0 0; color: var(--body); font-size: 16px; line-height: 1.6; }
.cta-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 599px) {
  .cta-band { padding-bottom: 64px; }
  .cta-card { padding: 16px; border-radius: 20px; }
  .cta-card__inner { padding: 28px 20px; border-radius: 16px; }
  .cta-card__actions .button { width: 100%; white-space: normal; }
}

/* ---------- Early-access form (UK form-page card and controls) ---------- */

.form-card {
  margin: 40px 0 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 40px;
  background: var(--form-bg);
  box-shadow: var(--shadow-card);
}
.form-card h2 { margin-top: 0 !important; }
.form-card__intro { margin: 0 0 24px; color: var(--body); font-size: 16px; }

.privacy-note {
  display: flex;
  gap: 10px;
  margin: 0 0 24px;
  border: 1px solid #f1c27d;
  border-radius: var(--radius-panel);
  padding: 14px 16px;
  background: #fff8ec;
  color: #5c3a06;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.ea-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ea-form .field--wide, .ea-form fieldset, .ea-form .form-actions { grid-column: 1 / -1; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-panel);
  padding: 10px 15px 12px;
  background: var(--white);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(2 107 227 / 12%); }
.field label { color: var(--slate); font-size: 13px; font-weight: 700; line-height: 1.3; }
.field .optional { font-weight: 400; }
.field :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink-strong);
  font: 500 16px/1.4 var(--font-sans);
}
.field :is(input, select):focus-visible { outline: none; }
.field input::placeholder { color: var(--slate); opacity: 1; }

.ea-form fieldset {
  margin: 0;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-panel);
  padding: 12px 15px 14px;
  background: var(--white);
}
.ea-form legend { padding: 0 4px; color: var(--slate); font-size: 13px; font-weight: 700; }
.checks { display: grid; gap: 4px; margin-top: 4px; }
.check { display: flex; min-height: 36px; align-items: center; gap: 10px; color: var(--ink-strong); font-size: 16px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--blue); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form-actions .button { min-width: 220px; }
.form-help { margin: 0; color: var(--body); font-size: 14px; line-height: 1.5; }
.form-help a { color: var(--blue); }

@media (max-width: 599px) {
  .form-card { margin-inline: calc(-1 * var(--gutter) / 2); padding: 24px 16px; border-radius: 20px; }
  .ea-form { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .form-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .field { transition: none; }
}

/* ---------- Footer (UK footer) ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 48px 40px;
  background: var(--white);
  color: var(--slate);
}
.site-footer__brand { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer__brand img { width: 192px; }

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 48px 96px;
  margin-top: 40px;
  border-top: 1px solid var(--line-soft);
  padding-top: 40px;
}
.site-footer__headline {
  margin: 0 0 16px;
  color: var(--ink-strong);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.6px;
}
.site-footer__statement p:not(.site-footer__headline) { margin: 0; font-size: 15px; line-height: 1.55; }

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
}
.site-footer__links h2 {
  margin: 0 0 12px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}
.site-footer__links ul { margin: 0; padding: 0; list-style: none; }
.site-footer__links li + li { margin-top: 8px; }
.site-footer__links a {
  display: inline-block;
  padding-block: 2px;
  color: var(--footer-link);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  font-size: 13px;
  line-height: 1.5;
}
.site-footer__bottom p { margin: 0; }

@media (max-width: 799px) {
  .site-footer__main { grid-template-columns: minmax(0, 1fr); }
  .site-footer__headline { font-size: 24px; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .site-footer, .cta-band, .skip-link, .toc, .page-hero::before { display: none !important; }
  .page-hero { padding: 0; background: none; }
  .prose a::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
