/* CNA website. One stylesheet, no framework. Brand: charcoal #1E1E1E, mint #63FFC8, grey #E7E7E7.
   Mint is for dark backgrounds only: on white it is 1.3:1. Links on light pages use --accent (5.7:1). */

:root {
  --charcoal: #1E1E1E;
  --charcoal-2: #262626;
  --charcoal-3: #2F2F2F;
  --mint: #63FFC8;
  --mint-soft: rgba(99, 255, 200, .14);
  --grey: #E7E7E7;
  --paper: #FFFFFF;
  --paper-2: #F5F5F5;
  --ink: #1E1E1E;
  --ink-muted: #4A4A4A;       /* 8.9:1 on white, 7.2:1 on --grey */
  --on-dark: #E7E7E7;         /* 13.5:1 on charcoal */
  --on-dark-muted: #B8B8B8;   /* 8.4:1 on charcoal */
  --accent: #007552;          /* links and accents on light backgrounds */
  --line: #D6D6D6;
  --line-dark: #3A3A3A;
  --ph-bg: #FFF4CC;
  --ph-ink: #6B4E00;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --step--1: clamp(.875rem, .85rem + .1vw, .9375rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.07rem + .3vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.24rem + .6vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.7rem + 2vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.6;
  color: var(--ink); background: var(--paper); overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--mint); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: var(--step-4); letter-spacing: -.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p, ul, ol, dl, table, figure { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .3em; }
strong { font-weight: 650; }
small { font-size: var(--step--1); }
code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: .1em .3em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--mint); color: var(--charcoal);
  padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 650;
}
.skip-link:focus { top: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header { background: var(--charcoal); color: var(--on-dark); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line-dark); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.site-header__logo { flex: none; display: block; padding: 6px 0; }
.site-header__logo img { width: 117px; height: 40px; }
.nav-toggle {
  display: none; margin-left: auto; background: transparent; color: var(--on-dark); border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm); padding: .45rem .8rem; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px;
}
.nav-toggle[aria-expanded="true"] { border-color: var(--mint); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.site-nav ul { list-style: none; display: flex; gap: .1rem; margin: 0; padding: 0; }
.site-nav li + li { margin: 0; }
.site-nav a:not(.btn) {
  display: block; color: var(--on-dark); text-decoration: none; padding: .55rem .65rem; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 500; white-space: nowrap;
}
.site-nav a:not(.btn):hover { background: var(--charcoal-3); }
.site-nav a[aria-current] { color: var(--mint); box-shadow: inset 0 -2px 0 var(--mint); border-radius: 0; }
.site-nav .btn { margin-left: .5rem; }

@media (max-width: 1180px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--charcoal);
    border-bottom: 1px solid var(--line-dark); padding: .5rem var(--gutter) 1.25rem; max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .site-nav { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; }
  .js .site-nav.is-open a:not(.btn) { padding: .8rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .site-nav a[aria-current] { box-shadow: inset 3px 0 0 var(--mint); padding-left: .9rem; }
  .site-nav .btn { margin: 1rem 0 0; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-bottom: .5rem; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
  padding: .7rem 1.25rem; border-radius: 999px; font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.btn--primary { background: var(--charcoal); color: #fff; }
.btn--primary:hover { background: #000; }
.on-dark .btn--primary, .site-header .btn--primary { background: var(--mint); color: var(--charcoal); }
.on-dark .btn--primary:hover, .site-header .btn--primary:hover { background: #8BFFD8; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.on-dark .btn--secondary { color: var(--on-dark); border-color: var(--on-dark-muted); }
.on-dark .btn--secondary:hover { border-color: var(--mint); color: var(--mint); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--grey { background: var(--paper-2); }
.section--brand-grey { background: var(--grey); }
.on-dark { background: var(--charcoal); color: var(--on-dark); }
.on-dark a:not(.btn) { color: var(--mint); }
.on-dark .muted, .on-dark .lead { color: var(--on-dark-muted); }
.section__head { max-width: 760px; margin-bottom: 2.5rem; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.on-dark .eyebrow { color: var(--mint); }
.lead { font-size: var(--step-1); color: var(--ink-muted); max-width: 62ch; }
.muted { color: var(--ink-muted); }

/* Hero: dark, with the graduated dot field */
.hero {
  position: relative; overflow: hidden; background: var(--charcoal); color: var(--on-dark);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0 0 0 auto; width: min(60%, 760px);
  background: url("/assets/img/motif.svg") right center / cover no-repeat; opacity: .9; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%); mask-image: linear-gradient(to right, transparent, #000 45%);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { color: var(--on-dark-muted); max-width: 54ch; }
.hero--page h1 { font-size: var(--step-4); max-width: 22ch; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.1fr .9fr; } }
.hero__media img { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.45); border: 1px solid var(--line-dark); }
.hero:has(.hero__media)::after { opacity: .35; }
@media (max-width: 700px) { .hero::after, .hero:has(.hero__media)::after { width: 100%; opacity: .14; } }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (min-width: 640px) { .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-media { grid-template-columns: .8fr 1.2fr; } .split--reverse > :first-child { order: 2; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.card--link:hover { border-color: var(--accent); transform: translateY(-2px); }
.card--link .card__more { margin-top: auto; padding-top: .75rem; color: var(--accent); font-weight: 650; }
.on-dark .card { background: var(--charcoal-2); border-color: var(--line-dark); color: var(--on-dark); }
.on-dark .card p { color: var(--on-dark-muted); }
.card__icon { width: 44px; height: 44px; margin-bottom: 1rem; color: var(--accent); }
.on-dark .card__icon { color: var(--mint); }
.card__tag {
  align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 999px; background: var(--charcoal); color: var(--mint); margin-bottom: .75rem;
}
.card__tag--next { background: var(--grey); color: var(--ink); }

/* Feature list with ticks */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem;
  border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg);
}
.on-dark .ticks li::before { border-color: var(--mint); }

/* Definition-style feature rows */
.features { display: grid; gap: 1.25rem 2rem; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { border-top: 2px solid var(--charcoal); padding-top: .9rem; }
.on-dark .feature { border-top-color: var(--mint); }
.feature h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.feature p { margin: 0; color: var(--ink-muted); }
.on-dark .feature p { color: var(--on-dark-muted); }

/* Figures and screenshots */
figure { margin: 0 0 1.5rem; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--paper); }
.on-dark .shot { border-color: var(--line-dark); box-shadow: 0 16px 48px rgba(0,0,0,.5); }
figcaption { font-size: var(--step--1); color: var(--ink-muted); margin-top: .6rem; }
.on-dark figcaption { color: var(--on-dark-muted); }
.diagram { width: 100%; height: auto; }

/* The service chain diagram on the home page */
.chain { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1.5rem 0 1.5rem; }
.chain li { margin: 0; background: var(--charcoal-2); border: 1px solid var(--line-dark); color: var(--on-dark); border-radius: 999px; padding: .4rem .9rem; font-weight: 600; font-size: .95rem; }
.chain li:not(:last-child)::after { content: "→"; margin-left: .7rem; color: var(--mint); }
.chain-bar { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--mint), var(--mint)); margin: .25rem 0 .4rem; }
/* The grey bar sits under the parties that provider-side monitoring watches; the legend repeats it. */
.chain { row-gap: 1.4rem; }
.chain li.chain__watched { position: relative; }
.chain li.chain__watched::before { content: ""; position: absolute; bottom: -14px; left: -1px; right: -1px; height: 8px; border-radius: 99px; background: var(--on-dark-muted); }
.chain-legend::before { content: ""; display: inline-block; width: 2rem; height: 8px; border-radius: 99px; background: var(--on-dark-muted); margin-right: .5rem; vertical-align: middle; }

/* Stats */
.stat { border-left: 3px solid var(--mint); padding-left: 1rem; }
.stat__value { font-size: var(--step-3); font-weight: 700; color: #fff; line-height: 1.1; display: block; }
.stat__label { color: var(--on-dark-muted); font-size: var(--step--1); }

/* Steps / timeline */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
@media (min-width: 900px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.steps > li { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; position: relative; }
.on-dark .steps > li { background: var(--charcoal-2); border-color: var(--line-dark); }
.steps__when { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.on-dark .steps__when { color: var(--mint); }
.steps h3 { margin: .3rem 0 .4rem; }
.steps p { margin: 0; color: var(--ink-muted); }
.on-dark .steps p { color: var(--on-dark-muted); }
.numbered { counter-reset: n; list-style: none; padding: 0; }
.numbered > li { counter-increment: n; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.numbered > li::before {
  content: counter(n); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--charcoal); color: var(--mint); font-weight: 700; display: grid; place-items: center; font-size: .9rem;
}

/* Quote */
.quote { margin: 0; padding: 0; }
.quote blockquote { margin: 0 0 1rem; font-size: var(--step-2); line-height: 1.35; font-weight: 600; color: #fff; }
.quote blockquote > p::before { content: "\201C"; color: var(--mint); }
.quote blockquote > p::after { content: "\201D"; color: var(--mint); }
.quote figcaption { color: var(--on-dark-muted); font-size: var(--step-0); }
.prose .quote blockquote, .section:not(.on-dark) .quote blockquote { color: var(--ink); }
.section:not(.on-dark) .quote blockquote > p::before, .section:not(.on-dark) .quote blockquote > p::after { color: var(--accent); }

/* Trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: center; }
.trust__item { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
/* Certification marks: certifiers' artwork, never recoloured or cropped. Equal heights
   (co-branding in equal proportion); the Cyber Essentials mark stays at least 60px wide,
   with clear space around it at least the width of its tick. */
.badge { display: block; height: auto; }
.trust__item .badge { height: 84px; width: auto; }
.badge--iasme { width: min(250px, 100%); }   /* 500px artwork: sharp at 2x */
.badge--ce { width: 120px; margin: 12px; }
.trust__item .badge--ce { margin: 0 8px; }
.split--top { align-items: start; }
.trust__item small { font-weight: 400; }
.mono-wrap { font-family: var(--mono); font-size: .9em; overflow-wrap: anywhere; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.table-wrap:focus-visible { outline-offset: 0; }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); margin: 0; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--charcoal); color: var(--on-dark); font-weight: 650; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 650; }
tbody th small { font-weight: 400; }
@media (max-width: 480px) { th, td { padding: .6rem .5rem; } table { font-size: .8125rem; } }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
caption { caption-side: top; text-align: left; font-weight: 650; padding: .8rem .9rem; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.yes { color: var(--accent); font-weight: 700; }

/* Pricing */
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--paper); }
.price-card h3 { margin-bottom: .2rem; }
.price { margin: .75rem 0; }
.price__value { display: block; font-size: var(--step-3); font-weight: 700; line-height: 1.1; }
.price__term { color: var(--ink-muted); font-size: var(--step--1); }
.price-notes { font-size: var(--step--1); color: var(--ink-muted); }

/* Callouts and placeholders */
.callout { border-left: 4px solid var(--accent); background: var(--paper-2); padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout--note { border-left-color: var(--charcoal); }
mark.ph {
  background: var(--ph-bg); color: var(--ph-ink); border: 1px dashed #B58900; border-radius: 4px;
  padding: .05em .35em; font-weight: 600; font-size: .92em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.on-dark mark.ph { background: #3A3000; color: #FFE58A; border-color: #FFD34D; }
.ph-block { display: grid; place-items: center; text-align: center; min-height: 220px; padding: 1.5rem; border: 2px dashed #B58900; border-radius: var(--radius); background: var(--ph-bg); color: var(--ph-ink); font-weight: 600; }
.draft-banner { background: var(--ph-bg); color: var(--ph-ink); border: 1px solid #B58900; border-radius: var(--radius-sm); padding: .75rem 1rem; }

/* Footnotes (component names live here only) */
.fn, .fns { font-size: var(--step--1); color: var(--ink-muted); }
.fns { padding-left: 1.2rem; margin-top: 1.5rem; }
.on-dark .fn, .on-dark .fns { color: var(--on-dark-muted); }
sup a { text-decoration: none; font-weight: 700; }

/* ---------- Docs layout ---------- */
.docs { display: grid; gap: 2rem; padding-top: 2rem; padding-bottom: 4rem; }
@media (min-width: 960px) { .docs { grid-template-columns: 250px minmax(0, 1fr); gap: 3.5rem; } }
.docs-nav { font-size: .95rem; }
@media (min-width: 960px) { .docs-nav { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; } }
.docs-nav summary {
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8125rem; color: var(--ink-muted);
  padding: .6rem 0; cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center;
}
.docs-nav summary::-webkit-details-marker { display: none; }
@media (max-width: 959px) {
  .docs-nav__details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1rem; }
  .docs-nav summary::after { content: "▾"; margin-left: auto; }
}
.docs-nav ul { list-style: none; padding: 0 0 .5rem; margin: 0; border-left: 1px solid var(--line); }
.docs-nav li { margin: 0; }
.docs-nav a { display: block; padding: .45rem .9rem; color: var(--ink); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.docs-nav a:hover { border-left-color: var(--line); background: var(--paper-2); }
.docs-nav a[aria-current="page"] { border-left-color: var(--accent); color: var(--accent); font-weight: 650; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: var(--step--1); color: var(--ink-muted); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 2rem; background: var(--paper-2); font-size: var(--step--1); }
.toc__title { font-weight: 700; margin: 0 0 .4rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 2rem; } }
.prose { max-width: 78ch; min-width: 0; }
.prose h1 { font-size: var(--step-3); }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 1.75rem; }
.prose > .lead { margin-bottom: 1.5rem; }
.prose .grid { margin-bottom: 1.5rem; }
.prose dt { font-weight: 650; margin-top: .75rem; }
.prose dd { margin: .2rem 0 0; color: var(--ink-muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 650; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.3rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > :not(summary) { margin-top: 0; }
.faq details > div { padding-bottom: 1rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form--2 { grid-template-columns: 1fr 1fr; } .form--2 .form__full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field .hint { display: block; font-size: var(--step--1); color: var(--ink-muted); margin: -.2rem 0 .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #767676; border-radius: var(--radius-sm);
  padding: .65rem .75rem; min-height: 44px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.on-dark .form-card .muted, .on-dark .form-card .form-note { color: var(--ink-muted); }
.on-dark .form-card a:not(.btn) { color: var(--accent); }
.on-dark .form-card .btn--primary { background: var(--charcoal); color: #fff; }
.form-note { font-size: var(--step--1); color: var(--ink-muted); margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Value calculator */
.calc { display: grid; gap: 1rem; }
@media (min-width: 720px) { .calc { grid-template-columns: repeat(2, 1fr); } }
.calc__result { grid-column: 1 / -1; background: var(--charcoal); color: var(--on-dark); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.calc__result output { display: block; font-size: var(--step-3); font-weight: 700; color: var(--mint); }

/* CTA band */
.cta-band { background: var(--charcoal); color: var(--on-dark); position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 45%; pointer-events: none; opacity: .5;
  background: url("/assets/img/motif.svg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 60%); mask-image: linear-gradient(to right, transparent, #000 60%);
}
@media (max-width: 899px) { .cta-band::after { width: 100%; opacity: .14; } }
.cta-band .container { position: relative; z-index: 1; display: grid; gap: 1.5rem; align-items: center; padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: var(--on-dark-muted); margin: 0; }
.cta-band .btn-row { margin: 0; }
@media (min-width: 900px) { .cta-band .btn-row { justify-content: flex-end; } }

/* ---------- Footer ---------- */
.site-footer { background: #141414; color: var(--on-dark-muted); font-size: var(--step--1); padding: 3.5rem 0 2rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--mint); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.site-footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .site-footer__brand { grid-column: auto; } }
.site-footer__brand img { width: 117px; height: 40px; margin-bottom: 1rem; }
.site-footer h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .45rem; }
.site-footer__base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.site-footer__base p { margin: 0; }

/* 404 */
.notfound { min-height: 50vh; display: grid; align-content: center; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .cta-band, .docs-nav, .toc, .hero::after { display: none !important; }
  body { color: #000; } .hero, .on-dark { background: #fff !important; color: #000 !important; }
}
