/* ==========================================================================
   CrimsonLock
   1. Fonts & tokens      6. Who it's for   11. Contact
   2. Base                7. How it works   12. Footer
   3. Primitives          8. The report     13. Document pages
   4. Header              9. Pricing
   5. Hero               10. FAQ            14. Motion

   Colour carries meaning: crimson is the brand and what we find,
   mint is anything to do with fixes.
   ========================================================================== */

/* 1. Fonts & tokens -------------------------------------------------------- */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched local fallbacks. Text set in these takes up the same room as Geist,
   so nothing reflows when the web font swaps in. size-adjust is calibrated on this
   page's own copy (Geist 400 against Arial, Geist 600 against Arial Bold); the
   ascent and descent overrides are Geist's metrics divided by that factor. */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans");
  font-weight: 100 500;
  size-adjust: 102.73%;
  ascent-override: 97.83%;
  descent-override: 28.72%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Geist Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold");
  font-weight: 501 900;
  size-adjust: 99.7%;
  ascent-override: 100.8%;
  descent-override: 29.59%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;

  /* Brand colours come straight from the logo: #FF1435, #F7F7F8, #999BA3 */
  --crimson: #ff1435;
  --crimson-hi: #ff4d68;
  --crimson-a08: rgba(255, 20, 53, 0.08);
  --crimson-a14: rgba(255, 20, 53, 0.14);
  --crimson-a40: rgba(255, 20, 53, 0.4);
  --mint: #4fd6a0;
  --mint-a10: rgba(79, 214, 160, 0.1);
  --mint-a40: rgba(79, 214, 160, 0.4);

  --bg: #09090b;
  --bg-alt: #0c0c0f;
  --surface: #111114;
  --code-bg: #0b0b0d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --text: #f7f7f8;
  --text-2: #b9bac1;
  --muted: #999ba3;
  --ink: #0a0a0c;

  --font-sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-pad: clamp(64px, 8.5vw, 112px);
  --header-h: 68px;
  --land: 44px; /* gap between the header and a section's first line after an anchor jump */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Base ------------------------------------------------------------------ */

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

html {
  /* Anchor targets stop just below the sticky header (see .section for the fine-tuning) */
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* <main> is focusable only so the skip link has somewhere to land */
main:focus {
  outline: none;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--crimson);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* 3. Primitives ------------------------------------------------------------ */

.container {
  position: relative;
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  flex: none;
  width: 16px;
  height: 16px;
}

.link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--crimson);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 0.15s;
}

@media (hover: hover) {
  .link:hover {
    color: var(--crimson-hi);
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, box-shadow 0.18s;
  /* A button is pressed, not picked up: its label cannot be selected, and the link
     cannot be dragged (the HTML also carries draggable="false", which Firefox needs). */
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.btn .icon {
  transition: transform 0.2s var(--ease);
}

.btn--primary {
  background: var(--crimson);
  color: var(--ink);
}

.btn--primary:focus-visible {
  outline-color: var(--text);
}

.btn--ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

/* Outline button for anything fix-related */
.btn--fix {
  border-color: var(--mint-a40);
  background: rgba(79, 214, 160, 0.07);
  color: var(--text);
}

.btn--fix:focus-visible {
  outline-color: var(--mint);
}

/* Hover styles only where there is a real pointer, so they don't stick after a tap */
@media (hover: hover) {
  .btn:hover .icon {
    transform: translateX(3px);
  }

  .btn--primary:hover {
    background: #ff3350;
    box-shadow: 0 0 0 4px var(--crimson-a14), 0 10px 32px -8px rgba(255, 20, 53, 0.6);
  }

  .btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.06);
  }

  .btn--fix:hover {
    border-color: var(--mint);
    background: rgba(79, 214, 160, 0.14);
  }
}

/* Pressed state: a colour change only. The button used to shift down a pixel, and
   moving it made the browser redraw the label, so the text flickered. Placed after
   the hover rules so it wins while the pointer is down. */
.btn--primary:active {
  background: #eb1232;
}

.btn--ghost:active {
  background: rgba(255, 255, 255, 0.11);
}

.btn--fix:active {
  background: rgba(79, 214, 160, 0.22);
}

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Tags and severity chips */

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  color: var(--muted);
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.tag--dashed {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.24);
}

.tag--mint {
  border-color: var(--mint-a40);
  background: var(--mint-a10);
  color: var(--mint);
}

.sev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  font: 600 0.65625rem/1 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sev--critical {
  background: var(--crimson);
  color: var(--ink);
}

.sev--high {
  border-color: var(--crimson-a40);
  background: var(--crimson-a14);
  color: var(--crimson-hi);
}

.sev--medium {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.sev--low {
  border-color: var(--line);
  color: var(--muted);
}

/* Sections */

.section {
  position: relative;
  padding-block: var(--section-pad);
  /* Negative on purpose: an anchor jump scrolls the section's own top padding out of
     view, so its first line lands --land below the header instead of a screen-third down. */
  scroll-margin-top: calc(var(--land) - var(--section-pad));
}

/* Section rule, with a short crimson tick where it meets the content edge.
   The tick offset is (width - container) / 2, written for background-position. */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background:
    linear-gradient(var(--crimson), var(--crimson))
      max(var(--gutter), calc(50% - (var(--container) - 56px) / 2)) 0 / 56px 1px no-repeat,
    var(--line);
}

/* Dot matrix that fades out down the section */
.section--alt {
  background:
    linear-gradient(180deg, rgba(12, 12, 15, 0), var(--bg-alt) 62%),
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1.5px) 50% 0 / 24px 24px,
    var(--bg-alt);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font: 500 0.78125rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Pointy-top hexagon, echoing the logo mark */
.kicker::before {
  content: "";
  flex: none;
  width: 9px;
  height: 10px;
  background: var(--crimson);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Two-sentence headings: each sentence wraps as a unit, so a line never ends on the
   first word of the next sentence. */
h2.split {
  text-wrap: wrap;
}

h2.split .s {
  display: inline-block;
  text-wrap: balance;
}

/* Forced line break in headings, used once there is room for it */
br.wide {
  display: none;
}

@media (min-width: 600px) {
  br.wide {
    display: inline;
  }
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.section__lead {
  margin-top: 18px;
  max-width: 38rem;
  color: var(--text-2);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  text-wrap: pretty;
}

/* 4. Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(9, 9, 11, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: border-color 0.2s, background-color 0.2s;
}

.site-header.is-scrolled,
.site-header.nav-open {
  border-bottom-color: var(--line);
  /* Solid once content scrolls underneath: legibility must not depend on the blur */
  background: var(--bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  flex: none;
  margin-right: auto;
  border-radius: 6px;
}

.brand img {
  width: auto;
  height: 32px;
}

.site-nav__links {
  display: flex;
  gap: 2px;
}

.site-nav__links a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 0.90625rem;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.site-nav__links a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.site-nav__links a[aria-current] {
  color: var(--text);
}

@media (min-width: 900px) {
  .site-nav__links a[aria-current] {
    background-image: linear-gradient(var(--crimson), var(--crimson));
    background-repeat: no-repeat;
    background-position: 12px calc(100% - 3px);
    background-size: calc(100% - 24px) 1.5px;
  }
}

/* Link to the same page in the other language. It is the last item in the list;
   on wide screens a hairline sets it apart from the section links. */
@media (min-width: 900px) {
  .site-nav__lang {
    position: relative;
    margin-left: 9px;
    padding-left: 9px;
  }

  .site-nav__lang::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 16px;
    margin-top: -8px;
    background: var(--line-2);
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s var(--ease), background-color 0.2s;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  transform: translateY(-5px);
}

.nav-toggle__bars::after {
  transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: rotate(-45deg);
}

@media (max-width: 899px) {
  :root {
    --header-h: 60px;
  }

  .brand img {
    height: 26px;
  }

  .js .nav-toggle {
    display: grid;
  }

  .site-header__actions {
    margin-left: 0;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 9, 11, 0.98);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s var(--ease), visibility 0s 0.18s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .site-nav__links {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    font-size: 1.0625rem;
  }

  .site-nav__links li:last-child a {
    border-bottom: 0;
  }
}

@media (max-width: 379px) {
  .site-header .btn--sm {
    display: none;
  }
}

/* 5. Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(48px, 7vw, 92px) clamp(64px, 9vw, 112px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Blueprint grid, faded out towards the edges */
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 65% 25%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 80% at 65% 25%, #000 10%, transparent 75%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 20, 53, 0.2), rgba(255, 20, 53, 0.05) 55%, transparent);
}

.hero__inner {
  display: grid;
  gap: clamp(44px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 980px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow__dot {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
}

/* Two beats on load, then still. Animates transform and opacity only. */
.eyebrow__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--crimson);
  animation: pulse 2.4s ease-out 2;
}

@media (max-width: 419px) {
  .eyebrow {
    gap: 8px;
    padding: 7px 12px 7px 10px;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
  }
}

/* The narrowest phones: let it take two tidy lines rather than overflow */
@media (max-width: 339px) {
  .eyebrow {
    border-radius: 12px;
    line-height: 1.5;
    text-wrap: balance;
  }
}

h1 {
  margin-top: 26px;
  font-size: clamp(2.35rem, 1.2rem + 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

h1 .accent {
  display: block;
  color: var(--crimson);
}

h1 br.desk {
  display: none;
}

/* Two-column hero: sized so the headline sets in three lines beside the sample card */
@media (min-width: 980px) {
  h1 {
    font-size: clamp(2.5rem, 5vw - 10px, 3.4rem);
    text-wrap: wrap;
  }

  h1 br.desk {
    display: inline;
  }

  /* Dutch runs wider than English: a slightly smaller size keeps the last sentence on one line */
  .hero h1:lang(nl) {
    font-size: clamp(2.3rem, 4.6vw - 9.2px, 3.125rem);
  }
}

.lead {
  margin-top: 24px;
  max-width: 35rem;
  color: var(--text-2);
  font-size: clamp(1.03rem, 0.98rem + 0.35vw, 1.1875rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
}

.facts > div {
  padding-right: clamp(14px, 2vw, 28px);
}

.facts > div + div {
  padding-left: clamp(14px, 2vw, 28px);
  border-left: 1px solid var(--line);
}

.facts > div:last-child {
  padding-right: 0;
}

.facts dt {
  color: var(--muted);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts dd {
  margin-top: 6px;
  color: var(--text);
  font-size: 0.875rem;
  white-space: nowrap;
}

@media (max-width: 559px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .facts {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .facts > div,
  .facts > div + div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 0;
    border: 0;
  }

  .facts dd {
    margin: 0;
  }
}

/* Sample finding card */

.finding {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(180deg, #141418, #0e0e11);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 44px 90px -40px rgba(255, 20, 53, 0.32),
    0 24px 48px -24px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.finding__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 0.75rem/1.4 var(--font-mono);
}

.finding__path i {
  margin-inline: 2px;
  color: #6f717a;
  font-style: normal;
}

.finding__path b {
  color: var(--text);
  font-weight: 500;
}

.finding__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
}

.finding__head .sev {
  margin-top: 2px;
}

.finding__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.finding__loc {
  margin-top: 4px;
  color: var(--muted);
  font: 0.78125rem/1.4 var(--font-mono);
}

.finding__code {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--code-bg);
  overflow: hidden;
}

/* A scan line passes over the code once, shortly after load */
.finding__code::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(255, 20, 53, 0.7);
  background: linear-gradient(180deg, transparent, rgba(255, 20, 53, 0.14)) bottom / 100% 64px no-repeat;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  animation: scan 2.8s 1.4s ease-in-out 1 both;
}

.code {
  padding-block: 12px;
  overflow-x: auto;
  font: 0.78125rem/1.8 var(--font-mono);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.code:focus-visible {
  outline-offset: -2px;
}

.code__lines {
  width: max-content;
  min-width: 100%;
}

.ln {
  display: flex;
}

.ln__no {
  flex: none;
  width: 3.1em;
  padding-right: 0.8em;
  color: #7c7e87;
  text-align: right;
  user-select: none;
}

.ln__sign {
  flex: none;
  width: 1.4em;
  user-select: none;
}

@media (min-width: 980px) and (max-width: 1119px) {
  .code {
    font-size: 0.71875rem;
  }
}

.ln__code {
  padding-right: 16px;
  color: #c6c7ce;
  white-space: pre;
}

.tk-k {
  color: var(--text);
  font-weight: 500;
}

.ln--del {
  background: rgba(255, 20, 53, 0.13);
  box-shadow: inset 2px 0 0 var(--crimson);
}

.ln--del .ln__sign {
  color: var(--crimson-hi);
}

.ln--del .ln__code {
  color: #ffb9c4;
}

.ln--add {
  background: var(--mint-a10);
  box-shadow: inset 2px 0 0 var(--mint);
}

.ln--add .ln__sign {
  color: var(--mint);
}

.ln--add .ln__code {
  color: #c9f5e2;
}

.tk-vuln {
  border-radius: 3px;
  background: rgba(255, 20, 53, 0.34);
  color: #fff;
  text-decoration: underline wavy var(--crimson);
  text-decoration-skip-ink: none;
  text-underline-offset: 3px;
}

.tk-fix {
  border-radius: 3px;
  background: rgba(79, 214, 160, 0.22);
  color: #eafff6;
}

.finding__notes {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.finding__notes > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

/* Room for the longer Dutch label ("Voorgestelde fix") on one line.
   Only where label and text sit side by side; on phones they stack (see below). */
@media (min-width: 480px) {
  .finding__notes > div:lang(nl) {
    grid-template-columns: 8.75rem minmax(0, 1fr);
  }
}

.finding__notes dt {
  color: var(--muted);
  font: 500 0.6875rem/1.5 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.finding__notes .is-fix dt {
  color: var(--mint);
}

.finding__notes dd {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.55;
}

.finding__notes code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: 0.8125rem var(--font-mono);
}

@media (max-width: 479px) {
  .code {
    font-size: 0.71875rem;
  }

  .ln__no {
    display: none;
  }

  .ln__sign {
    width: 2.2em;
    padding-left: 0.9em;
  }

  .finding__notes > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* 6. Who it's for ---------------------------------------------------------- */

.cases {
  display: grid;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(17, 17, 20, 0.8);
  overflow: hidden;
}

.case {
  padding: clamp(22px, 2.6vw, 30px);
}

.case + .case {
  border-top: 1px solid var(--line);
}

.case__when {
  color: var(--muted);
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.case__when::before {
  content: "// ";
  color: var(--crimson);
}

.case h3 {
  margin-top: 14px;
  text-wrap: balance;
}

.case h3 + p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.96875rem;
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .cases {
    grid-template-columns: 1fr 1fr;
  }

  .case + .case {
    border-top: 0;
  }

  .case:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .case:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 1040px) {
  .cases {
    grid-template-columns: repeat(4, 1fr);
  }

  .case:nth-child(n + 3) {
    border-top: 0;
  }

  .case + .case {
    border-left: 1px solid var(--line);
  }
}

/* 7. How it works ---------------------------------------------------------- */

.steps {
  max-width: 44rem; /* keeps lines readable while the steps are stacked */
}

.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 20px;
}

.step__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step__no {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--crimson);
  font: 500 0.8125rem/1 var(--font-mono);
}

.step__line {
  flex: 1;
  width: 1px;
  min-height: 24px;
  margin-block: 8px;
  background: var(--line-2);
}

.step:nth-last-child(2) .step__line {
  background: repeating-linear-gradient(180deg, rgba(79, 214, 160, 0.5) 0 5px, transparent 5px 10px);
}

.step:last-child .step__line {
  display: none;
}

.step__body {
  display: flex;
  flex-direction: column;
  padding: 8px 0 36px;
}

.step:last-child .step__body {
  padding-bottom: 0;
}

.step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step__body > p:not(.step__out) {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.96875rem;
  text-wrap: pretty;
}

.step__out {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  color: var(--text);
  font: 0.78125rem/1.4 var(--font-mono);
}

.step__out span {
  color: var(--muted);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step--fix .step__no {
  border-style: dashed;
  border-color: rgba(79, 214, 160, 0.55);
  background: var(--mint-a10);
  color: var(--mint);
}

.step--fix .step__out {
  color: var(--mint);
}

@media (min-width: 900px) {
  .steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
  }

  .step {
    display: flex;
    flex-direction: column;
    padding-right: 32px;
  }

  .step:last-child {
    padding-right: 0;
  }

  .step__marker {
    flex-direction: row;
    margin: 0 -32px 26px 0;
  }

  .step:last-child .step__marker {
    margin-right: 0;
  }

  .step__line {
    width: auto;
    height: 1px;
    min-height: 0;
    margin: 0 10px;
  }

  .step:nth-last-child(2) .step__line {
    background: repeating-linear-gradient(90deg, rgba(79, 214, 160, 0.5) 0 5px, transparent 5px 10px);
  }

  .step__body {
    flex: 1;
    padding: 0;
  }

  .step__out {
    margin-top: auto;
  }

  .step__body > p:not(.step__out) {
    margin-bottom: 22px;
  }
}

/* 8. The report ------------------------------------------------------------ */

.report {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
}

@media (min-width: 980px) {
  .report {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
    align-items: start;
  }

  .report__aside {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.report__aside .btn {
  margin-top: 16px;
}

.spec > li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.spec > li:last-child {
  border-bottom: 1px solid var(--line);
}

.spec__no {
  padding-top: 4px;
  color: var(--muted);
  font: 0.78125rem/1.4 var(--font-mono);
}

.spec h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
}

.spec p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.96875rem;
  text-wrap: pretty;
}

.spec > .is-fix .spec__no {
  color: var(--mint);
}

/* Sample report overview */

.doc {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.doc__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.doc__head img {
  flex: none;
  width: 30px;
  height: auto;
}

.doc__head > div {
  margin-right: auto;
}

.doc__title {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.doc__meta {
  color: var(--muted);
  font: 0.75rem/1.5 var(--font-mono);
}

.doc__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.doc__summary li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc__summary b {
  font: 500 0.875rem/1 var(--font-mono);
}

.row {
  display: grid;
  grid-template-columns: 3rem 4.9rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  font-size: 0.90625rem;
  line-height: 1.4;
}

.row + .row {
  border-top: 1px dashed var(--line);
}

.row .sev {
  justify-self: start;
}

.row__id {
  color: var(--muted);
  font: 0.75rem/1 var(--font-mono);
}

.row__title {
  color: var(--text);
}

.row__fix {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
  font: 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.row__fix .icon {
  width: 14px;
  height: 14px;
}

/* Every row links to its finding, and the whole row is the target. It lights up on
   hover or keyboard focus: that highlight is the website responding, not a picture
   of a "selected" row in the report itself. */
.row {
  position: relative;
  transition: background-color 0.15s, box-shadow 0.15s;
}

a.row__title {
  text-decoration: none;
}

a.row__title::after {
  content: "";
  position: absolute;
  inset: 0;
}

a.row__title:focus-visible {
  outline: none;
}

.row:focus-within {
  background: var(--crimson-a08);
  box-shadow: inset 2px 0 0 var(--crimson);
}

@media (hover: hover) {
  .row:hover {
    background: var(--crimson-a08);
    box-shadow: inset 2px 0 0 var(--crimson);
  }
}

.doc__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 0.75rem/1.4 var(--font-mono);
}

@media (max-width: 519px) {
  .row {
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas:
      "id sev fix"
      "title title title";
    gap: 8px 10px;
    padding: 14px 16px;
  }

  .row__id {
    grid-area: id;
  }

  .row .sev {
    grid-area: sev;
  }

  .row__title {
    grid-area: title;
  }

  .row__fix {
    grid-area: fix;
    justify-self: end;
  }

  .doc__head,
  .doc__summary,
  .doc__foot {
    padding-inline: 16px;
  }
}

/* 9. Pricing --------------------------------------------------------------- */

.pricing {
  display: grid;
  gap: 14px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--surface);
}

.plan--primary {
  border-color: rgba(255, 20, 53, 0.5);
  background: linear-gradient(180deg, rgba(255, 20, 53, 0.09), transparent 46%), var(--surface);
  box-shadow: 0 40px 90px -50px rgba(255, 20, 53, 0.6);
}

/* The add-on is about fixes, so it wears the fix colour; dashed because it is optional */
.plan--fix {
  border-style: dashed;
  border-color: rgba(79, 214, 160, 0.38);
  background: linear-gradient(180deg, rgba(79, 214, 160, 0.06), transparent 46%);
}

.plan__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font: 500 0.8125rem/1.6 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plan--primary .plan__name {
  color: var(--crimson-hi);
}

.plan--fix .plan__name {
  color: var(--mint);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
  min-height: 3.6rem;
  font-size: clamp(2.6rem, 2rem + 2.4vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.plan__price small {
  color: var(--muted);
  font: 400 0.9375rem/1 var(--font-mono);
  letter-spacing: 0;
}

.plan__price--text {
  align-items: center;
  font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.3rem);
  letter-spacing: -0.035em;
}

.plan__desc {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 0.96875rem;
  text-wrap: pretty;
}

.checks {
  flex: 1;
  margin-block: 20px 26px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.checks li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-block: 10px;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.checks li + li {
  border-top: 1px dashed var(--line);
}

.checks .icon {
  margin-top: 3px;
  color: var(--crimson);
}

.plan--fix .checks .icon {
  color: var(--mint);
}

.pricing__plus {
  display: grid;
  place-items: center;
  place-self: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-2);
}

.pricing__note {
  margin-top: 28px;
  color: var(--muted);
  font: 0.78125rem/1.6 var(--font-mono);
}

@media (min-width: 860px) {
  .pricing {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0;
  }

  .pricing__plus {
    margin-inline: 14px;
  }
}

/* 10. FAQ ------------------------------------------------------------------- */

/* The heading sits on top, as in every other section, and the questions take the full
   width in two independent columns: opening one never moves the other column. */
.faq {
  display: grid;
}

.qa {
  border-top: 1px solid var(--line);
}

/* Closing rule: under the whole list when stacked, under each column when side by side */
.faq__col:last-child .qa:last-child {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .faq {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(32px, 4.5vw, 64px);
    align-items: start;
  }

  .faq__col .qa:last-child {
    border-bottom: 1px solid var(--line);
  }
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 2px;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
  transition: color 0.15s;
}

.qa summary::-webkit-details-marker {
  display: none;
}

@media (hover: hover) {
  .qa summary:hover {
    color: var(--crimson-hi);
  }
}

.qa__icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

/* A plus drawn from two bars. Opening lays the upright bar flat, which leaves a minus:
   plus to expand, minus to collapse. */
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  margin: -1px 0 0 -5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.qa__icon::after {
  transform: rotate(90deg);
}

.qa[open] .qa__icon {
  border-color: var(--crimson-a40);
  background: var(--crimson-a14);
  color: var(--crimson-hi);
}

.qa[open] .qa__icon::after {
  transform: rotate(0deg);
}

.qa__a {
  max-width: 40rem;
  padding: 0 52px 24px 2px;
  color: var(--text-2);
  text-wrap: pretty;
}

@supports (interpolate-size: allow-keywords) {
  .qa {
    interpolate-size: allow-keywords;
  }

  .qa::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete;
  }

  .qa[open]::details-content {
    block-size: auto;
  }
}

/* 11. Contact -------------------------------------------------------------- */

.contact {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}

@media (min-width: 980px) {
  .contact {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
  }
}

.contact .section__head {
  margin-bottom: 36px;
}

.next {
  display: grid;
  gap: 0;
}

.next li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}

.next li:last-child {
  border-bottom: 1px solid var(--line);
}

.next__no {
  padding-top: 3px;
  color: var(--crimson);
  font: 0.78125rem/1.4 var(--font-mono);
}

.next b {
  display: block;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.next div span {
  display: block;
  margin-top: 2px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.contact__alt {
  margin-top: 28px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.contact__alt .link {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.form {
  position: relative;
  padding: clamp(20px, 3.4vw, 36px);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}

.form__grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 620px) {
  .form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.field .opt {
  color: var(--muted);
  font: 400 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background-color: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23999ba3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

.field ::placeholder {
  color: #7c7e87;
  opacity: 1;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.26);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px var(--crimson-a40);
}

.field [aria-invalid="true"] {
  border-color: var(--crimson);
}

.field__error {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  color: var(--crimson-hi);
  font-size: 0.84375rem;
  line-height: 1.4;
}

.field__error::before {
  content: "!";
  display: grid;
  flex: none;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--ink);
  font: 700 0.6875rem/1 var(--font-mono);
}

.field__hint {
  margin-top: 8px;
  color: var(--muted);
  font: 0.75rem/1.5 var(--font-mono);
}

/* Honeypot: off-screen for people, present for bots */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 24px;
}

.form__note {
  color: var(--muted);
  font-size: 0.875rem;
}

.form__status {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--text-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 0.90625rem;
  line-height: 1.5;
}

.form__status[data-kind="error"] {
  border-color: var(--crimson-a40);
  border-left-color: var(--crimson);
  background: var(--crimson-a08);
  color: var(--text);
}

.form__done {
  padding: clamp(12px, 3vw, 32px) 0;
  outline: none;
}

.form__done-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border: 1px solid rgba(79, 214, 160, 0.4);
  border-radius: 10px;
  background: var(--mint-a10);
  color: var(--mint);
}

.form__done h3 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.form__done p {
  margin-top: 10px;
  max-width: 30rem;
  color: var(--text-2);
}

.form__done b {
  color: var(--text);
  font-weight: 500;
  overflow-wrap: anywhere;
}

@media (max-width: 479px) {
  .form__foot .btn {
    width: 100%;
  }
}

/* 12. Footer --------------------------------------------------------------- */

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

/* Brand and contact on the left, two short link lists on the right. The section links
   are not repeated here: the header carrying them is always on screen. */
.site-footer__inner {
  display: grid;
  gap: 32px 48px;
  padding-block: clamp(40px, 5.5vw, 64px) clamp(32px, 4.5vw, 48px);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 28px clamp(40px, 8vw, 88px);
}

@media (min-width: 760px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .site-footer__nav {
    padding-top: 10px;
  }
}

.site-footer__mail {
  display: inline-block;
  margin-top: 14px;
  padding-block: 4px;
  font: 0.875rem/1.5 var(--font-mono);
  overflow-wrap: anywhere;
}

/* Wide enough that the CYBERSECURITY line under the wordmark stays readable */
.site-footer__brand img {
  width: min(300px, 78vw);
  height: auto;
  margin-left: -4px;
}

.site-footer__brand p {
  margin-top: 16px;
  max-width: 24rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer__title {
  margin-bottom: 12px;
  color: var(--muted);
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__col a {
  display: inline-block;
  padding-block: 5px;
  color: var(--text-2);
  font-size: 0.9375rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.15s;
}

.site-footer__col a:hover,
.site-footer__col a[aria-current],
.site-footer__base a:hover {
  color: var(--text);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 28px;
  color: var(--muted);
  font: 0.75rem/1.6 var(--font-mono);
}

.site-footer__base::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--gutter);
  left: var(--gutter);
  height: 1px;
  background: var(--line);
}

.site-footer__base a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}

/* 13. Document pages (sample report, privacy policy, legal notice) ---------- */

.page {
  padding-block: clamp(44px, 6vw, 80px) var(--section-pad);
}

.page__head {
  margin-bottom: clamp(28px, 4vw, 44px);
}

/* A page title, not the home page headline */
.page h1 {
  margin-top: 0;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.page__meta {
  margin-top: 14px;
  color: var(--muted);
  font: 0.78125rem/1.5 var(--font-mono);
}

/* Long-form text: one readable column, generous spacing between blocks */
.prose {
  max-width: 44rem;
  color: var(--text-2);
}

.prose > * + * {
  margin-top: 1em;
}

.prose__lede {
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
}

.prose h2 {
  margin-top: 2.6em;
  color: var(--text);
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: wrap;
}

.prose h3 {
  margin-top: 1.9em;
  color: var(--text);
  font-size: 1.0625rem;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.65em;
}

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

/* Plain lists only. Component lists inside prose carry a class and keep their own look. */
.prose ul:not([class]),
.prose ol:not([class]) {
  padding-left: 1.3rem;
}

.prose ul:not([class]) {
  list-style: disc;
}

.prose ol:not([class]) {
  list-style: decimal;
}

.prose ul:not([class]) > li + li,
.prose ol:not([class]) > li + li {
  margin-top: 0.35em;
}

.prose ul:not([class]) > li::marker {
  color: var(--crimson);
}

.prose ol:not([class]) > li::marker {
  color: var(--muted);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose p code,
.prose li code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: 0.8125rem var(--font-mono);
}

/* In-page targets stop a little below the sticky header */
.page [id] {
  scroll-margin-top: 28px;
}

/* Label and value rows for the provider details */
.details {
  border-top: 1px solid var(--line);
}

.details > div {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.details dt {
  padding-top: 3px;
  color: var(--muted);
  font: 500 0.71875rem/1.6 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.details dd {
  color: var(--text);
}

@media (max-width: 519px) {
  .details > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* --- Sample report ------------------------------------------------------- */

.notice {
  max-width: 46rem;
  margin-top: 20px;
  padding: 13px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 0.9375rem;
}

.notice b {
  color: var(--text);
  font-weight: 600;
}

/* The report uses the full width: facts in a strip, the summary beside the findings
   list (which doubles as the table of contents), and each finding laid out as
   problem on the left, fix on the right. Everything stacks on narrow screens. */
.sreport > * + * {
  margin-top: clamp(40px, 5vw, 64px);
}

.sreport h2 {
  color: var(--text);
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: wrap;
}

/* Facts strip, built on the same grid as the "Who it's for" cells */
.meta .case {
  padding: 16px 20px;
}

.meta dt {
  color: var(--muted);
  font: 500 0.6875rem/1.5 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meta dd {
  margin-top: 6px;
  color: var(--text);
  font-size: 0.96875rem;
  line-height: 1.45;
}

.sreport__glance .doc {
  margin-top: 16px;
}

/* Severity counts shown inside the details table rather than in a card header */
.doc__summary--plain {
  padding: 0;
  border: 0;
  background: none;
}

/* One finding, written out in full */
.rfinding {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

/* While the two halves of a finding are stacked, keep the cards at a readable width */
.sreport__details {
  max-width: 48rem;
}

@media (min-width: 1100px) {
  .sreport__details {
    max-width: none;
  }
}

.sreport__details .rfinding {
  margin-top: 20px;
}

.rfinding .finding__head {
  border-bottom: 1px solid var(--line);
}

/* minmax(0, …) lets a column shrink below the width of its code block, which then
   scrolls inside its own frame instead of widening the page */
.rfinding__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  color: var(--text-2);
}

.rfinding__col {
  padding: 20px 16px 22px;
}

.rfinding__col > * + * {
  margin-top: 0.75em;
}

/* The fix side carries the fix colour, faintly */
.rfinding__col--fix {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(79, 214, 160, 0.045), transparent 55%);
}

/* Side by side only once each half is wide enough to show its code without scrolling */
@media (min-width: 1100px) {
  .rfinding__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .rfinding__col {
    padding: 22px 24px 26px;
  }

  .rfinding__col--fix {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

.rfinding__body p,
.rfinding__body li {
  font-size: 0.96875rem;
}

.rfinding__body ol {
  padding-left: 1.3rem;
  list-style: decimal;
}

.rfinding__body li + li {
  margin-top: 0.35em;
}

.rfinding__body li::marker {
  color: var(--muted);
}

.rfinding__body code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: 0.8125rem var(--font-mono);
}

.rfinding__body h4 {
  margin: 0;
  color: var(--muted);
  font: 500 0.6875rem/1.5 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rfinding__body * + h4 {
  margin-top: 1.9em;
}

.rfinding__body h4 + * {
  margin-top: 0.5em;
}

.rfinding__body h4.is-fix {
  color: var(--mint);
}

.rcode {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--code-bg);
  overflow: hidden;
}

/* Closing panel: what to do next */
.sreport__end {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px 40px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
}

.sreport__end p {
  margin-top: 8px;
  max-width: 40rem;
  color: var(--text-2);
}

@media (min-width: 1000px) {
  .sreport__end {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.report-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 559px) {
  .report-cta .btn {
    flex: 1 1 100%;
  }
}

/* 14. Motion --------------------------------------------------------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(3.4);
  }
}

@keyframes scan {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }

  14% {
    opacity: 1;
  }

  82% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

.hero__copy > *,
.finding {
  animation: rise 0.7s var(--ease) both;
}

.hero__copy > :nth-child(2) {
  animation-delay: 0.06s;
}

.hero__copy > :nth-child(3) {
  animation-delay: 0.12s;
}

.hero__copy > :nth-child(4) {
  animation-delay: 0.18s;
}

.hero__copy > :nth-child(5) {
  animation-delay: 0.24s;
}

.finding {
  animation-duration: 0.9s;
  animation-delay: 0.2s;
}

/* Scroll reveal. Elements are only hidden by script, and only while off-screen,
   so the page is fully readable without JavaScript. Kept short so content never
   lags behind a fast scroll. */
.reveal {
  transition: opacity 0.5s ease, transform 0.5s var(--ease);
}

.reveal.is-hidden {
  opacity: 0;
  transform: translateY(14px);
}

.reveal--2 {
  transition-delay: 0.06s;
}

.reveal--3 {
  transition-delay: 0.12s;
}

.reveal--4 {
  transition-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .finding__code::after,
  .eyebrow__dot::after {
    display: none;
  }
}

/* Print / save as PDF: keep the dark design intact and show everything */
@media print {
  html {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-header,
  .report__aside {
    position: static;
  }

  .site-nav,
  .site-header__actions,
  .skip-link,
  .finding__code::after {
    display: none;
  }

  .reveal.is-hidden {
    opacity: 1;
    transform: none;
  }

  .finding,
  .doc,
  .cases,
  .step,
  .plan,
  .qa,
  .form {
    break-inside: avoid;
  }
}
