/* Barrier-Free Web — site styles. Colour pairs checked for WCAG 2.2 AA contrast. */
:root {
  --ink: #1a202c;
  --muted: #444b58;
  --brand: #123c69;
  --brand-dark: #0d2c4c;
  --link: #0b4f9e;
  --bg: #ffffff;
  --bg-soft: #eef3f9;
  --warn-bg: #fff8e1;
  --warn-border: #b28600;
  --warn-ink: #4a3b00;
  --border: #b9c4d1;
  --focus: #b3261e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

/* Skip link — visible on focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

header.site {
  background: var(--brand);
  color: #fff;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  max-width: 68rem;
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
}
.logo svg { display: block; }

nav.site ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.site a {
  color: #fff;
  text-decoration: underline;
  padding: 0.5rem 0.25rem;
  display: inline-block;
  min-height: 44px;
  line-height: 2;
}

main { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

section { padding: 2.5rem 0; }
section + section { border-top: 1px solid var(--border); }

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; color: var(--brand); margin: 0 0 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--brand); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; color: var(--brand-dark); margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1rem; }

a { color: var(--link); }
/* Links in body text are underlined so they are not identified by colour alone */
p a, li a, td a { text-decoration: underline; }

.lede { font-size: 1.25rem; color: var(--muted); }

.hero {
  background: var(--bg-soft);
  border-top: none;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--brand);
  padding: 0.8rem 1.5rem;
  min-height: 48px;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--brand); }
.btn-secondary:hover { background: var(--bg-soft); color: var(--brand-dark); }

ul.check-list { padding-left: 1.25rem; }
ul.check-list li { margin-bottom: 0.5rem; }

/* Pricing cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}
.card h3 { margin-top: 0; }
.card .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0.25rem 0 0.75rem;
}
.card .price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.card ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.card .note { font-size: 0.95rem; color: var(--muted); margin-top: auto; }

table.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
table.facts th, table.facts td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}
table.facts th { background: var(--bg-soft); color: var(--brand-dark); }

.notice {
  background: var(--warn-bg);
  border-left: 5px solid var(--warn-border);
  color: var(--warn-ink);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

/* Form */
form.scan-request {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 34rem;
}
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.form-field .hint {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.form-field input[type="url"],
.form-field input[type="email"] {
  width: 100%;
  padding: 0.7rem 0.8rem;
  min-height: 48px;
  font-size: 1.0625rem;
  border: 2px solid var(--muted);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.required-note { font-size: 0.95rem; color: var(--muted); }

/* Honeypot — hidden from real users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer.site {
  background: var(--brand-dark);
  color: #fff;
  padding: 2rem 1.25rem;
  margin-top: 2rem;
}
footer.site .wrap { max-width: 68rem; margin: 0 auto; }
footer.site a { color: #fff; }
footer.site p { margin: 0 0 0.75rem; }

@media (max-width: 40rem) {
  nav.site ul { gap: 0 1rem; }
  section { padding: 1.75rem 0; }
}

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