/* Five Page Audit — visual system.
   Local CSS and inline SVG only. style-src is 'self' and there is no script-src at all, so
   the design has to earn its presence with type, colour, depth and layout. For a business
   selling accessibility reviews that is the right constraint rather than a limitation. */

:root {
  --ink: #101821;
  --ink-soft: #46535f;
  --ink-faint: #5c6873;   /* 5.2:1 on --paper-tint, was 4.46:1 */
  --line: #dde3e8;
  --line-strong: #b6c0c9;
  --paper: #ffffff;
  --paper-tint: #f4f7f9;

  /* Night — hero, offer band, final panel */
  --night: #0c1a24;
  --night-2: #102532;
  --night-line: rgba(130, 205, 214, .20);
  --night-ink: #eaf2f5;
  --night-soft: #aec4ce;

  --accent: #0f5561;          /* 8.6:1 on white */
  --accent-dark: #0a3d46;
  --accent-tint: #e9f3f5;
  --accent-line: #b7d6dc;
  --accent-lit: #5fd4c4;      /* 9.4:1 on --night */
  --accent-lit-soft: #93e6d9;

  --crit: #96201a;    --crit-bg: #fdf0ef;    --crit-line: #e6b4af;
  --serious: #8a4a08; --serious-bg: #fdf5e9; --serious-line: #e3c893;
  --moderate: #1b5468;--moderate-bg: #eef5f8;--moderate-line: #b4cdd8;
  --good: #16663a;
  --error: #96201a;   --error-bg: #fdf0ef;

  --radius: 10px;
  --radius-lg: 16px;
  --measure: 66ch;
  --shadow-sm: 0 1px 2px rgba(16,24,33,.06), 0 2px 8px rgba(16,24,33,.05);
  --shadow-md: 0 2px 6px rgba(16,24,33,.07), 0 12px 28px rgba(16,24,33,.09);
  --shadow-lg: 0 8px 20px rgba(4,14,20,.30), 0 30px 60px rgba(4,14,20,.36);
}

* { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%; overflow-x: hidden;
}

.skip { position: absolute; left: -9999px; top: 0; z-index: 20; background: var(--accent);
  color: #fff; padding: .8rem 1.35rem; text-decoration: none; font-weight: 600;
  border-radius: 0 0 var(--radius) 0; }
.skip:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}
.night a:focus-visible, .night button:focus-visible, .night [tabindex]:focus-visible { outline-color: var(--accent-lit); }

.wrap { width: min(78rem, 100% - 3rem); margin-inline: auto; }
.prose { max-width: var(--measure); }
section { padding-block: 4.5rem; }
.tint { background: var(--paper-tint); border-block: 1px solid var(--line); }

/* Night bands: deep navy with one controlled pool of teal light, not a rainbow. */
.night {
  /* background-color FIRST and separately. The `background` shorthand resets background-color
     to transparent, so a band defined only by gradients has no solid colour underneath it.
     White text then sits on whatever is behind — white — the moment gradients are not painted:
     forced-colors mode, a print stylesheet, an old renderer, or any tool that reads computed
     background-color. Our own browser pass reported 110 contrast failures at ratios like 1:1
     for exactly this reason, and it was right to. */
  background-color: var(--night);
  background-image:
    radial-gradient(58rem 30rem at 12% -12%, rgba(95,212,196,.16), transparent 62%),
    radial-gradient(42rem 26rem at 92% 8%, rgba(60,150,190,.13), transparent 60%),
    linear-gradient(178deg, var(--night-2), var(--night) 62%);
  color: var(--night-ink); border-block: 1px solid rgba(255,255,255,.06);
}
.night h1, .night h2, .night h3 { color: #fff; }
.night p, .night li { color: var(--night-soft); }
.night strong, .night b { color: var(--night-ink); }
.night a { color: var(--accent-lit); }
.night a:hover { color: var(--accent-lit-soft); }

/* --- the five-sheet motif: the one shape the site repeats, kept quiet ------------------ */
.motif { display: inline-flex; gap: 3px; align-items: flex-end; }
.motif i { display: block; width: 4px; border-radius: 2px; background: var(--accent); opacity: .3; }
.motif i:nth-child(1){height:9px}  .motif i:nth-child(2){height:13px}
.motif i:nth-child(3){height:17px; opacity:.6}
.motif i:nth-child(4){height:13px} .motif i:nth-child(5){height:9px}
.night .motif i { background: var(--accent-lit); }

.eyebrow { display: flex; align-items: center; gap: .7rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; }
.night .eyebrow { color: var(--accent-lit); }
.divider { display: flex; justify-content: center; }

/* --- header ----------------------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header.on-night { background: transparent; border-bottom-color: rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-block: 1.15rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.on-night .wordmark { color: #fff; }
.wordmark .name { font-weight: 750; font-size: 1.06rem; letter-spacing: -.015em; }
.wordmark .name em { font-style: normal; color: var(--accent); }
.on-night .wordmark .name em { color: var(--accent-lit); }
.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .95rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.on-night .site-nav a { color: var(--night-soft); }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }
.on-night .site-nav a:hover { color: var(--accent-lit); }

/* --- hero -------------------------------------------------------------------------------- */
.hero { padding-block: 4.25rem 5rem; }
.hero-grid { display: grid; gap: 3.5rem; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); align-items: center; }
.hero h1 { font-size: clamp(2.15rem, 1.15rem + 3.3vw, 3.7rem); line-height: 1.07;
  letter-spacing: -.033em; margin: 0 0 1.1rem; max-width: 15ch; font-weight: 780; }
.hero .lede { font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem); max-width: 46ch; margin: 0 0 2rem; }

.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 2.25rem; padding: 0; list-style: none;
  border: 1px solid var(--night-line); border-radius: var(--radius); overflow: hidden; max-width: 34rem; }
.facts li { flex: 1 1 8rem; padding: .95rem 1.1rem; border-right: 1px solid var(--night-line);
  background-color: #13212b; }
.facts li:last-child { border-right: 0; }
.facts .n { display: block; font-size: 1.6rem; font-weight: 760; color: #fff; line-height: 1.1; letter-spacing: -.02em; }
.facts .k { display: block; font-size: .84rem; color: var(--night-soft); margin-top: .15rem; }
.hero-note { margin: 1.15rem 0 0; font-size: .93rem; color: var(--night-soft); max-width: 44ch; }

/* --- buttons ------------------------------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: var(--radius); min-height: 48px; font-weight: 680;
  font-size: 1rem; line-height: 1.25; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent-line); }
.btn-secondary:hover { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-dark); }
.night .btn-primary { background: var(--accent-lit); color: #05202a; border-color: var(--accent-lit); }
.night .btn-primary:hover { background: var(--accent-lit-soft); border-color: var(--accent-lit-soft); color: #05202a; }
.night .btn-secondary { color: #fff; border-color: rgba(255,255,255,.36); background-color: #18252f; }
.night .btn-secondary:hover { background-color: #24343e; border-color: rgba(255,255,255,.65); color: #fff; }
.btn-note { margin-top: .95rem; font-size: .92rem; color: var(--ink-soft); }
.night .btn-note { color: var(--night-soft); }

/* --- report preview: the deliverable, made visible -------------------------------------------
   Five offset sheets with the top one readable. Built from elements rather than an image so it
   scales with text and survives 200% zoom, where a screenshot of a report would just blur. */
.deliverable { position: relative; padding: 1.4rem 0 1.4rem 1.4rem; }
.sheet-stack { position: relative; }
.sheet-stack .ghost { position: absolute; inset: 0; border-radius: var(--radius);
  background: #f7fafb; border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow-lg); }
.sheet-stack .ghost:nth-child(1){ transform: translate(-26px,26px) rotate(-2.4deg); opacity:.34 }
.sheet-stack .ghost:nth-child(2){ transform: translate(-17px,17px) rotate(-1.6deg); opacity:.52 }
.sheet-stack .ghost:nth-child(3){ transform: translate(-9px,9px)   rotate(-.85deg); opacity:.7 }
.sheet-stack .ghost:nth-child(4){ transform: translate(-3px,3px)   rotate(-.3deg);  opacity:.9 }

.report-card { position: relative; max-width: 100%; background-color: var(--paper); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.2); }
.report-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  flex-wrap: wrap; padding: .8rem 1.15rem; background: var(--paper-tint); border-bottom: 1px solid var(--line); }
.report-top .who { font-size: .78rem; font-weight: 750; letter-spacing: .06em; color: var(--ink-soft); text-transform: uppercase; }
.report-top .page { font-size: .82rem; color: var(--ink-faint); }
.report-body { padding: 1.2rem 1.15rem 1.35rem; }

.badge { display: inline-block; border-radius: 999px; padding: .18rem .75rem; font-size: .78rem;
  font-weight: 750; letter-spacing: .03em; border: 1px solid; }
.badge-critical { color: var(--crit);     background: var(--crit-bg);     border-color: var(--crit-line) }
.badge-serious  { color: var(--serious);  background: var(--serious-bg);  border-color: var(--serious-line) }
.badge-moderate { color: var(--moderate); background: var(--moderate-bg); border-color: var(--moderate-line) }
.crit-ref { font-size: .84rem; color: var(--ink-soft); margin-left: .55rem; }
.finding-title { font-size: 1.02rem; font-weight: 720; margin: .85rem 0 .1rem; letter-spacing: -.012em; }

.kv { margin: .9rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: .4rem .95rem; font-size: .9rem; }
.kv dt { color: var(--ink-faint); font-weight: 650; }
.kv dd { margin: 0; }
.mono, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.measure-bad { color: var(--crit); font-weight: 750; }
.measure-good { color: var(--good); font-weight: 750; }
.swatches { display: inline-flex; gap: .3rem; vertical-align: -2px; margin-left: .35rem; }
.swatches i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(16,24,33,.2); display: block; }

pre { background: #0f1c25; color: #dcebef; border-radius: 8px; border: 1px solid rgba(255,255,255,.08);
  padding: .85rem 1rem; overflow-x: auto; font-size: .84rem; line-height: 1.55; margin: .5rem 0 0; }
pre .del { color: #f3aaa3; } pre .add { color: #a3e8c7; }

.report-foot { border-top: 1px dashed var(--line); margin-top: 1.15rem; padding-top: .85rem;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap;
  font-size: .85rem; color: var(--ink-faint); }
.effort { font-weight: 720; color: var(--ink); }

.illustrative { display: inline-flex; align-items: center; gap: .45rem; background: var(--serious-bg);
  color: var(--serious); border: 1px solid var(--serious-line); border-radius: 999px;
  padding: .3rem .85rem; font-size: .82rem; font-weight: 720; }
.illustrative-block { border-left: 4px solid var(--serious-line); background: var(--serious-bg);
  padding: 1.1rem 1.35rem; border-radius: 0 var(--radius) var(--radius) 0; max-width: 58rem; }
.illustrative-block p { margin: .35rem 0 0; color: #5d3405; }

/* --- headings and sections ----------------------------------------------------------------- */
h2 { font-size: clamp(1.6rem, 1.2rem + 1.25vw, 2.25rem); line-height: 1.15; letter-spacing: -.026em;
  margin: 0 0 .5rem; font-weight: 760; }
h3 { font-size: 1.12rem; margin: 0 0 .4rem; font-weight: 700; letter-spacing: -.01em; }
.section-note { color: var(--ink-soft); margin: 0 0 2.25rem; max-width: var(--measure); font-size: 1.02rem; }
.night .section-note { color: var(--night-soft); }

/* --- cards and grids ------------------------------------------------------------------------ */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  background: var(--paper); box-shadow: var(--shadow-sm); }
.card-num { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .5rem; }
.card-num .n { font-size: .82rem; font-weight: 780; color: var(--accent); background: var(--accent-tint);
  border: 1px solid var(--accent-line); border-radius: 6px; padding: .1rem .5rem; flex: none; }
.card ul { margin: .6rem 0 0; padding-left: 1.15rem; }
.card li { margin-bottom: .4rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.fit { border-top: 4px solid var(--good); }
.unfit { border-top: 4px solid var(--serious-line); }

/* --- process --------------------------------------------------------------------------------- */
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(12.5rem, 100%), 1fr)); }
.step { border: 1px solid var(--night-line); border-radius: var(--radius); padding: 1.35rem;
  background-color: #16232d; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 8px; margin-bottom: .7rem; background-color: #21404a;
  border: 1px solid rgba(95,212,196,.45); color: var(--accent-lit); font-weight: 780; font-size: .95rem; }
.step h3 { font-size: 1rem; margin-bottom: .3rem; }
.step p { font-size: .93rem; margin: 0; }

/* --- offer band ------------------------------------------------------------------------------- */
.offer-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); align-items: start; }
.price-block { border: 1px solid var(--night-line); border-radius: var(--radius-lg);
  background-color: #18252f; padding: 2rem; }
.price-block .amount { font-size: clamp(3rem, 2rem + 3.4vw, 4.4rem); font-weight: 790; color: #fff;
  line-height: 1; letter-spacing: -.035em; }
.price-block .terms { color: var(--night-soft); margin: .55rem 0 1.5rem; font-size: 1.02rem; }
.spec { list-style: none; margin: 0; padding: 0; }
.spec li { display: flex; gap: .75rem; padding: .62rem 0; border-bottom: 1px solid var(--night-line); align-items: flex-start; }
.spec li:last-child { border-bottom: 0; }
.spec .tick { color: var(--accent-lit); font-weight: 800; flex: none; line-height: 1.5; }
.commit { list-style: none; margin: 0; padding: 0; }
.commit li { padding: .85rem 0; border-bottom: 1px solid var(--night-line); }
.commit li:last-child { border-bottom: 0; }
.commit b { display: block; color: #fff; font-weight: 680; margin-bottom: .14rem; }
.commit span { color: var(--night-soft); font-size: .96rem; }

/* --- comparison table --------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 32rem; }
caption { text-align: left; font-weight: 650; padding: 1rem 1.15rem .35rem; color: var(--ink-soft); }
th, td { text-align: left; padding: .85rem 1.15rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper-tint); font-size: .86rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
thead th:last-child { color: var(--accent); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 650; }
td.yes { color: var(--good); font-weight: 650; }
td.no { color: var(--ink-faint); }

/* --- callouts -------------------------------------------------------------------------------------- */
.note { border-left: 4px solid var(--accent); background: var(--accent-tint); padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0; max-width: 58rem; }
.caution { border-left: 4px solid var(--serious-line); background: var(--serious-bg); padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0; max-width: 58rem; }
.note p:last-child, .caution p:last-child { margin-bottom: 0; }
.note p:first-child, .caution p:first-child { margin-top: 0; }
.note h3 { margin-top: 0; }
.limits { columns: 2; column-gap: 2.5rem; max-width: 62rem; padding-left: 1.15rem; }
.limits li { break-inside: avoid; margin-bottom: .55rem; }

/* --- route cards ------------------------------------------------------------------------------------ */
.route-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.85rem;
  background: var(--paper); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.route-card.primary { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.route-card .tag { font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem; }
.route-card h3 { font-size: 1.3rem; }
.route-card p { color: var(--ink-soft); }
.route-card .btn { margin-top: auto; }
.route-card .price-inline { font-size: 1.65rem; font-weight: 780; color: var(--ink); letter-spacing: -.02em; }

/* --- form -------------------------------------------------------------------------------------------- */
.form-wrap { max-width: 44rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem;
  margin: 0 0 1.5rem; background: var(--paper); box-shadow: var(--shadow-sm); }
legend { font-weight: 700; padding-inline: .55rem; font-size: 1.02rem; }
.field { margin-bottom: 1.25rem; }
.field:last-child { margin-bottom: 0; }
label { display: block; font-weight: 650; margin-bottom: .35rem; }
.hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: .92rem; margin-bottom: .4rem; }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  width: 100%; padding: .78rem .85rem; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 8px; min-height: 48px; }
textarea { min-height: 7rem; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-soft); }
.choice { display: flex; align-items: flex-start; gap: .75rem; padding: .95rem 1rem;
  border: 1px solid var(--line-strong); border-radius: 8px; margin-bottom: .7rem; background: var(--paper); }
.choice:has(input:checked) { border-color: var(--accent); border-width: 2px;
  background: var(--accent-tint); padding: calc(.95rem - 1px) calc(1rem - 1px); }
.choice input { margin-top: .3rem; flex: none; width: 20px; height: 20px; }
.choice label { margin: 0; }
.choice .hint { margin: .2rem 0 0; }
.required { color: var(--error); font-weight: 750; }
.route-switch { display: inline-block; padding: .4rem .1rem; min-height: 24px; line-height: 1.5; }
.field-error input, .field-error select { border-color: var(--error); border-width: 2px; }
.err { display: block; color: var(--error); font-weight: 650; font-size: .93rem; margin-top: .4rem; }
.err::before { content: "Error: "; }
.summary-error { border: 2px solid var(--error); background: var(--error-bg); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-bottom: 1.85rem; }
.summary-error h2 { color: var(--error); font-size: 1.2rem; margin: 0 0 .5rem; }
.summary-error ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.summary-error a { color: var(--error); }
.form-status:empty { display: none; }
.form-status { margin-bottom: 1.25rem; }

/* --- free scan landing page -------------------------------------------------------------------------- */
.scan-page { color: #0c1935; background: #fff; }
.scan-page h1, .scan-page h2, .scan-page h3, .scan-page .wordmark .name {
  font-family: Georgia, "Times New Roman", serif; }
.scan-hero { border-top: 0; background-color: #fff;
  background-image: radial-gradient(42rem 26rem at 36% 24%, rgba(31,166,157,.055), transparent 70%); }
.scan-intro { padding-block: 3.9rem 4.4rem; }
.scan-layout { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(24rem, .82fr);
  gap: clamp(2.5rem, 5vw, 5.5rem); align-items: start; }
.scan-copy { padding-top: 1.25rem; }
.scan-copy h1 { max-width: 12.5ch; margin: 0 0 1.35rem; color: #091837;
  font-size: clamp(2.7rem, 1.8rem + 3.1vw, 4.75rem); line-height: 1.01;
  font-weight: 700; letter-spacing: -.045em; }
.scan-copy h1::after { content: ""; display: block; width: 4.8em; max-width: 56%; height: 5px;
  margin: .18rem 0 0 auto; border-radius: 99px; background: #1ca99f; transform: rotate(-.5deg); }
.scan-lede { max-width: 43rem; margin: 0 0 1.8rem; font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6; color: #354158; }
.scan-assurances { display: flex; flex-wrap: wrap; gap: .65rem; padding: 0; margin: 0 0 3.25rem;
  list-style: none; }
.scan-assurances li { padding: .55rem .78rem; border: 1px solid var(--night-line); border-radius: 8px;
  background-color: #f4f9f8; color: #354158; font-size: .9rem; border-color: #d7e7e5; }
.scan-assurances strong { color: #0c1935; }
.scan-process { max-width: 43rem; }
.scan-process h2 { color: #0c1935; font-size: 1.25rem; margin-bottom: 1.1rem; }
.scan-process ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.scan-process li { position: relative; display: grid; grid-template-columns: 2.15rem 1fr; gap: .75rem; align-items: start;
  padding: .2rem 0; }
.scan-process li:not(:last-child)::after { content: "→"; position: absolute; right: -.9rem; top: .45rem;
  color: #718096; font-size: 1.2rem; }
.scan-step-number { display: inline-flex; align-items: center; justify-content: center; width: 2.15rem;
  height: 2.15rem; border-radius: 50%; color: #0c1935; background: #cfeeed; font-weight: 800; }
.scan-process strong { display: block; color: #0c1935; margin-bottom: .12rem; }
.scan-process li span:last-child { display: block; color: #526074; font-size: .84rem; line-height: 1.45; }

.scan-form-card { color: var(--ink); background: var(--paper); border: 1px solid #d7dee5;
  border-radius: 12px; padding: clamp(1.35rem, 3vw, 2rem); box-shadow: 0 14px 42px rgba(12,25,53,.09); }
.scan-form-card h2, .scan-form-card legend,
.scan-form-card label, .scan-form-card strong { color: #0c1935; }
.scan-form-card p, .scan-form-card .hint { color: var(--ink-soft); }
.scan-form-head { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.scan-form-head h2 { font-size: clamp(1.55rem, 1.25rem + 1vw, 2rem); margin-bottom: .35rem; }
.scan-form-head p:last-child { margin: 0; }
.scan-form-kicker { margin: 0 0 .35rem; color: var(--accent) !important; font-size: .78rem;
  font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.scan-form-card fieldset { box-shadow: none; }
.scan-fields { padding: 0; border: 0; margin-bottom: 1.7rem; }
.scan-fields legend { padding: 0; margin-bottom: 1rem; font-size: 1.05rem; }
.scan-choice { background: var(--paper-tint); padding: 1.2rem; margin-bottom: 1.25rem; }
.scan-choice legend { background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: .2rem .75rem; font-size: .85rem; }
.scan-choice .choice { background: var(--paper); }
.scan-switch { margin: .65rem .1rem 0; font-size: .86rem; line-height: 1.5; }
.scan-submit { width: 100%; }
.scan-submit { background: #118d8d; color: #fff; border-color: #118d8d; }
.scan-submit:hover { background: #0a6a6f; color: #fff; border-color: #0a6a6f; }
.scan-privacy { margin: .8rem 0 0; text-align: center; font-size: .82rem; line-height: 1.45; }

.scan-compare { padding-block: 4.5rem; background: #f5f7f7; border-block: 1px solid #e2e7e9; }
.scan-section-head { max-width: 48rem; margin-bottom: 2rem; }
.scan-section-head > p:last-child { color: var(--ink-soft); font-size: 1.05rem; }
.scan-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; max-width: 62rem; }
.scan-plan { display: flex; flex-direction: column; padding: 2rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.scan-plan-free { border: 2px solid var(--accent); padding: calc(2rem - 1px); box-shadow: var(--shadow-md); }
.scan-plan-label { margin: 0 0 .4rem; color: var(--accent); font-size: .78rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; }
.scan-plan h3 { font-size: 1.35rem; }
.scan-price { margin: .6rem 0 1rem; color: var(--ink); font-size: 2.35rem; line-height: 1; font-weight: 800;
  letter-spacing: -.035em; }
.scan-plan ul { padding-left: 1.25rem; margin: 0 0 1.6rem; }
.scan-plan li { margin-bottom: .45rem; color: var(--ink-soft); }
.scan-plan .btn { margin-top: auto; align-self: flex-start; }

.scan-evidence { padding-block: 4.5rem; }
.scan-evidence-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.scan-evidence-grid > div:first-child > p:last-child { color: var(--ink-soft); }
.scan-resource-list { display: grid; gap: .9rem; }
.scan-resource-list a { position: relative; display: block; min-height: 44px; padding: 1.2rem 3.25rem 1.2rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow-sm); }
.scan-resource-list a::after { content: "→"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.35rem; }
.scan-resource-list a:hover { border-color: var(--accent); background: var(--accent-tint); }
.scan-resource-list strong, .scan-resource-list span { display: block; }
.scan-resource-list span { margin-top: .2rem; color: var(--ink-soft); font-size: .91rem; }
.scan-footer-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; }
.scan-footer-title { color: #fff; font-size: 1.1rem; font-weight: 760; }

/* --- final panel --------------------------------------------------------------------------------------- */
.final-panel { display: grid; gap: 2.5rem; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: center; }
.final h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); }

/* --- footer ---------------------------------------------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--night-soft); padding-block: 3rem 3.5rem;
  border-top: 1px solid rgba(255,255,255,.07); font-size: .95rem; }
.site-footer a { color: var(--accent-lit); }
.site-footer p { max-width: var(--measure); }
.site-footer code { color: var(--night-ink); }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* --- responsive ------------------------------------------------------------------------------------------- */
@media (max-width: 62rem) {
  .hero-grid, .offer-grid, .final-panel, .scan-layout, .scan-evidence-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .deliverable { padding-left: 0; }
  .scan-copy { padding-top: 0; }
  .scan-copy h1 { max-width: 16ch; }
  .scan-form-card { max-width: 46rem; }
  .scan-process ol { grid-template-columns: 1fr; }
  .scan-process li:not(:last-child)::after { display: none; }
}
@media (max-width: 40rem) {
  html { font-size: 106.25%; }
  .wrap { width: min(78rem, 100% - 1.75rem); }
  section { padding-block: 3rem; }
  .hero { padding-block: 2.75rem 3rem; }
  .actions .btn { width: 100%; }
  .limits { columns: 1; }
  .facts { max-width: none; }
  .facts li { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--night-line); }
  .facts li:last-child { border-bottom: 0; }
  .price-block, .card, .route-card, fieldset { padding: 1.25rem; }
  .sheet-stack .ghost { display: none; }
  .kv { grid-template-columns: 1fr; gap: .1rem .9rem; }
  .kv dd { margin-bottom: .55rem; }
  table { min-width: 24rem; }
  .deliverable { padding: 0; }
  .scan-intro, .scan-compare, .scan-evidence { padding-block: 3.25rem; }
  .scan-copy h1 { font-size: clamp(2.3rem, 12vw, 3.2rem); }
  .scan-assurances { display: grid; margin-bottom: 2.5rem; }
  .scan-form-card { padding: 1.2rem; border-radius: var(--radius-lg); }
  .scan-plans, .scan-footer-grid { grid-template-columns: 1fr; }
  .scan-plan, .scan-plan-free { padding: 1.35rem; }
  .scan-plan .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --- utilities ---------------------------------------------------------------------------------
   These exist because style-src is 'self' with no 'unsafe-inline', which blocks inline style
   ATTRIBUTES as well as <style> blocks. Fifteen of them were silently dropped on the first
   deploy of this design — the swatches rendered as empty outlines and the finding title kept
   the night colour on a white card. Nothing here may be expressed inline; it all lives in the
   sheet the policy actually allows. */
.mt-1 { margin-top: 1.25rem }
.mt-2 { margin-top: 1.5rem }
.mt-3 { margin-top: 1.75rem }
.mt-4 { margin-top: 2rem }
.mb-0 { margin-bottom: 0 }
.mb-2 { margin-bottom: 1.5rem }
.measure-52 { max-width: 52ch }
.measure-56 { max-width: 56ch }
.w-56 { max-width: 56rem }
.w-60 { max-width: 60rem }
.band-tight { padding-block: 3rem 3.25rem }
.align-start { align-items: start }
.hint-tight { margin-top: -.4rem }
.commit-head { color: #fff; font-size: 1.15rem; margin-bottom: .9rem }

/* Report cards shown on light sections rather than floating on the hero. */
.report-card.on-light { box-shadow: var(--shadow-md); border-color: var(--line); }
.report-card.on-light.narrow { max-width: 46rem; margin-bottom: 1.5rem; }

/* Contrast swatches for the illustrative finding. */
.sw-bad  { background: #8fb8c4 }
.sw-good { background: #3d6f7d }
.sw-page { background: #ffffff }

/* --- keep night colours out of light content -----------------------------------------------------
   .night sets p/li to a pale blue for readability on navy. The hero report card is white and sits
   inside that band, so it was inheriting pale text onto white — a real contrast failure on the one
   component meant to demonstrate contrast testing. Scoped rather than removed: the band still needs
   its own colours. */
.night .report-card p, .night .report-card li,
.night .report-card dt, .night .report-card dd,
.night .report-card span, .night .report-card code { color: var(--ink); }
.night .report-card .finding-title { color: var(--ink); }
.night .report-card .kv dt { color: var(--ink-faint); }
.night .report-card .report-top .who { color: var(--ink-soft); }
.night .report-card .report-top .page,
.night .report-card .report-foot { color: var(--ink-faint); }
.night .report-card .report-foot .effort { color: var(--ink); }
.night .report-card .measure-bad { color: var(--crit); }
.night .report-card .measure-good { color: var(--good); }
.night .report-card .crit-ref { color: var(--ink-soft); }
.night .report-card pre, .night .report-card pre code { color: #dcebef; }
.night .report-card pre .del { color: #f3aaa3; }
.night .report-card pre .add { color: #a3e8c7; }
.night .report-card .badge-serious  { color: var(--serious) }
.night .report-card .badge-critical { color: var(--crit) }
.night .report-card .badge-moderate { color: var(--moderate) }

/* Nav and footer links are interactive targets too. 2.5.8 exempts inline links inside a
   sentence; a horizontal nav row is not a sentence, and our own browser pass measured one at
   130x21px. Padding costs nothing and removes the argument. */
.site-nav a, .site-footer p a { display: inline-block; padding-block: .3rem; min-height: 24px; }
