/* ============================================================
   Self-hosted webfonts (no external CDN requests).
   Fraunces and IBM Plex are licensed under the SIL Open Font
   License 1.1. See assets/fonts/README.md for attribution.
   ============================================================ */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 460;
  font-display: swap;
  src: url("assets/fonts/fraunces-460-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 460;
  font-display: swap;
  src: url("assets/fonts/fraunces-460.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 560;
  font-display: swap;
  src: url("assets/fonts/fraunces-560-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 560;
  font-display: swap;
  src: url("assets/fonts/fraunces-560.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 640;
  font-display: swap;
  src: url("assets/fonts/fraunces-640-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 640;
  font-display: swap;
  src: url("assets/fonts/fraunces-640.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Codebase Triage: "The Engineer's Report"
   Editorial / diagnostic aesthetic: warm paper, deep ink,
   vermilion reviewer's-pen accent, mono diagnostic labels,
   severity-coded triage chips.
   ============================================================ */

:root {
  --paper: #f7f3ea;
  --paper-deep: #efe9db;
  --surface: #fffdf7;
  --ink: #1c2420;
  --ink-soft: #4c564f;
  --muted: #6b7269;
  --line: #d9d2c0;
  --line-strong: #b9b09a;
  --pen: #c23a16;          /* reviewer's vermilion */
  --pen-deep: #9d2c0e;
  --pen-wash: #f7e3da;
  --ok: #2f7d4f;
  --warn: #b97309;
  --crit: #c23a16;
  --night: #161d19;        /* dark report band */
  --night-ink: #ece5d3;
  --mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 85% -5%, rgba(194, 58, 22, 0.05), transparent 60%),
    linear-gradient(var(--paper), var(--paper));
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* faint blueprint grid in the page margins */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(28, 36, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 36, 32, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, black 0%, transparent 14%, transparent 86%, black 100%);
  -webkit-mask-image: linear-gradient(90deg, black 0%, transparent 14%, transparent 86%, black 100%);
}

a { color: inherit; }
::selection { background: var(--pen); color: #fff; }

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.01em;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.04;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(27px, 3.2vw, 38px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 650;
}

/* underline pen-mark for key phrases */
.mark {
  background-image: linear-gradient(transparent 62%, rgba(194, 58, 22, 0.28) 62%, rgba(194, 58, 22, 0.28) 92%, transparent 92%);
  padding: 0 2px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pen-deep);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "// ";
  color: var(--line-strong);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(247, 243, 234, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 30px -18px rgba(28, 36, 32, 0.45);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }

.brand-logo {
  display: block;
  width: auto;
  max-width: min(200px, 44vw);
  max-height: 44px;
  mix-blend-mode: multiply; /* blends the white PNG background into the paper */
}

.nav {
  display: flex;
  gap: 26px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.nav a {
  position: relative;
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--pen);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.active { color: var(--ink); }
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px; /* fixed: percentage widths resolve to 0 inside button flex containers in Chromium */
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(194, 58, 22, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.button:hover {
  background: var(--pen-deep);
  border-color: var(--pen-deep);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(28, 36, 32, 0.85);
}

.button:active { transform: translate(2px, 2px); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }

.button-secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(28, 36, 32, 0.25);
}

.button-secondary:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 5px 5px 0 rgba(194, 58, 22, 0.6);
}

.button-small { min-height: 40px; padding: 8px 16px; font-size: 13px; white-space: nowrap; }

@media (max-width: 460px) {
  .site-header { gap: 10px; padding: 12px 14px; }
  .brand-logo { max-width: 30vw; }
  .button-small { padding: 8px 10px; font-size: 12px; }
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  align-items: center;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 84px;
}

.hero-copy { max-width: 680px; }

.lead {
  color: var(--ink-soft);
  font-size: 19.5px;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.note {
  margin-top: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

/* ---------- hero report mock ---------- */

.report-stack { position: relative; }

.report-stack::before {
  content: "";
  position: absolute;
  inset: 14px -12px -14px 12px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 3px;
  transform: rotate(1.6deg);
}

.report-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  box-shadow: 0 30px 70px -30px rgba(28, 36, 32, 0.5);
  transform: rotate(-0.8deg);
  font-family: var(--mono);
  font-size: 12.5px;
  overflow: hidden;
}

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.report-head strong { color: var(--ink); font-weight: 600; }

.report-body { padding: 18px 20px 20px; }

.report-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
}

.report-label { color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }

.stamp {
  display: inline-block;
  margin: 6px 0 14px;
  padding: 6px 12px;
  border: 2px solid var(--pen);
  border-radius: 3px;
  color: var(--pen);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  opacity: 0;
}

.js .stamp.stamped { animation: stamp-in 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) 1.05s forwards; }
.no-js .stamp, html:not(.js) .stamp { opacity: 1; }

@keyframes stamp-in {
  0% { opacity: 0; transform: rotate(-2deg) scale(2.1); }
  100% { opacity: 1; transform: rotate(-2deg) scale(1); }
}

.score-list { margin: 10px 0 16px; display: grid; gap: 8px; }

.score {
  display: grid;
  grid-template-columns: 118px 1fr 34px;
  align-items: center;
  gap: 10px;
}

.score-name { color: var(--ink-soft); font-size: 11.5px; }

.score-track {
  height: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  overflow: hidden;
}

.score-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 0.9s cubic-bezier(0.25, 1, 0.4, 1);
}

.score-fill.low { background: var(--crit); }
.score-fill.mid { background: var(--warn); }

.score-val { color: var(--muted); font-size: 11px; text-align: right; }

.finding-list { display: grid; gap: 7px; margin-top: 4px; }

.finding-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sev {
  flex: none;
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
}

.sev.critical { background: var(--crit); }
.sev.high { background: #cf6b10; }
.sev.med { background: #a8870a; }
.sev.low { background: var(--ok); }

/* hand-drawn pen circle around the critical finding */
.pen-circle { position: relative; }
.pen-circle::after {
  content: "";
  position: absolute;
  inset: -7px -10px;
  border: 2px solid var(--pen);
  border-radius: 50%;
  transform: rotate(-3deg);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 96%);
  opacity: 0.85;
}

.report-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 11px;
}

.report-foot em { color: var(--pen-deep); font-style: normal; }

/* ---------- diagnostic ticker ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  padding: 11px 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  animation: ticker 46s linear infinite;
}

.ticker-track span { margin: 0 26px; }
.ticker-track b { color: var(--pen-deep); font-weight: 600; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- sections ---------- */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 84px 32px;
}

.section-header { max-width: 780px; }

.section > p, .split p { color: var(--ink-soft); }

.problem { padding-top: 64px; }

.problem h2 { max-width: 860px; }

.problem p { font-size: 18.5px; max-width: 760px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.84fr);
  gap: 48px;
  align-items: start;
}

/* ---------- panels & cards ---------- */

.panel, .card, .price-box, .warning, .sample-points {
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
}

.panel, .price-box, .warning, .sample-points { padding: 28px; }

.panel { box-shadow: 5px 5px 0 rgba(28, 36, 32, 0.07); }

.panel h3 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pen-deep);
  margin-bottom: 16px;
}

.grid { display: grid; gap: 20px; margin-top: 32px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 rgba(28, 36, 32, 0.1);
}

.card p { color: var(--ink-soft); margin-bottom: 0; }

.card-index {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--pen);
}

/* findings cards read like report excerpts */
.finding { border-left: 3px solid var(--line-strong); }
.finding:hover { border-left-color: var(--pen); }

.finding .sev { margin-bottom: 12px; display: inline-block; }

.finding strong {
  display: block;
  margin: 16px 0 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pen-deep);
}

.finding strong::before { content: "→ "; }

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li + li { margin-top: 10px; }

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ok);
}

/* ---------- dark deliverable band ---------- */

.muted {
  max-width: none;
  padding-left: calc((100vw - 1120px) / 2 + 32px);
  padding-right: calc((100vw - 1120px) / 2 + 32px);
  background: var(--night);
  color: var(--night-ink);
}

.muted h2, .muted .lead { color: var(--night-ink); }
.muted p { color: #b8b2a0; }
.muted .eyebrow { color: #e88d6d; }
.muted .eyebrow::before { color: #4c564f; }

.deliverable-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.deliverable-list span {
  padding: 9px 14px;
  border: 1px solid #39443d;
  border-radius: 2px;
  background: rgba(236, 229, 211, 0.05);
  color: var(--night-ink);
  font-family: var(--mono);
  font-size: 12.5px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.deliverable-list span:hover {
  border-color: var(--pen);
  background: rgba(194, 58, 22, 0.12);
}

.deliverable-list span::before { content: "+ "; color: var(--pen); }

.deliverable-list span[data-tip] { cursor: help; }

.deliverable-list span[data-tip]:focus-visible {
  outline: 2px solid var(--pen);
  outline-offset: 2px;
}

/* ---------- shared tooltip ---------- */

.tooltip {
  position: fixed;
  z-index: 60;
  max-width: 290px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 4px 4px 0 rgba(194, 58, 22, 0.35);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.tooltip.show { opacity: 1; transform: translateY(0); }

.tooltip::before {
  content: attr(data-for);
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pen-deep);
}

/* ---------- sample ---------- */

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

.sample-points p { color: var(--ink-soft); }
.sample-points p + p { margin-bottom: 0; }
.sample-points strong { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pen-deep); }

/* ---------- pricing ---------- */

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 26px;
  margin-top: 30px;
}

.price-box {
  position: relative;
  box-shadow: 7px 7px 0 rgba(194, 58, 22, 0.16);
}

.discount-badge {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 12px;
  border: 1.5px dashed var(--pen);
  border-radius: 2px;
  background: var(--pen-wash);
  color: var(--pen-deep) !important;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price {
  margin-bottom: 8px;
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
}

.price span { color: var(--muted); font-size: 22px; font-weight: 500; }

.currency-toggle {
  display: inline-flex;
  margin: 2px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  overflow: hidden;
}

.currency-toggle button {
  padding: 5px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.currency-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.old-price { margin-bottom: 16px; color: var(--muted) !important; font-size: 14.5px; }

.price-box p { color: var(--ink-soft); }

.price-box .note {
  padding: 10px 12px;
  border-left: 3px solid var(--ok);
  background: rgba(47, 125, 79, 0.07);
  color: var(--ink-soft);
}

.price-box .button { margin-top: 18px; }

/* ---------- process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 24px 20px;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--ink);
  border-radius: 3px;
  background: var(--surface);
}

.steps li::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  font-family: var(--mono);
  color: var(--line-strong);
  font-size: 18px;
}

.steps li:last-child::after { content: none; }

.steps span {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--pen);
}

.steps span::before { content: "STEP "; color: var(--muted); }

.steps strong { display: block; margin-bottom: 8px; }

.steps p { margin-bottom: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- warning ---------- */

.warning { border-color: var(--warn); border-left-width: 4px; background: #faf2e2; }
.warning strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warn);
}
.warning p { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- FAQ ---------- */

.faq details {
  border-top: 1px solid var(--line-strong);
  padding: 0;
}

.faq details:last-of-type { border-bottom: 1px solid var(--line-strong); }

.faq summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 17.5px;
  list-style: none;
  transition: color 0.15s ease;
}

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

.faq summary::before {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 19px;
  color: var(--pen);
  transition: transform 0.25s ease;
}

.faq details[open] summary::before { transform: rotate(45deg); }
.faq summary:hover { color: var(--pen-deep); }

.faq details p {
  max-width: 760px;
  margin: 0 0 22px 33px;
  color: var(--ink-soft);
}

/* ---------- final CTA ---------- */

.final-cta {
  position: relative;
  max-width: 1120px;
  margin: 0 auto 84px;
  padding: 72px 32px;
  border-radius: 3px;
  background: var(--night);
  color: var(--night-ink);
  text-align: center;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(236, 229, 211, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 229, 211, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.final-cta > * { position: relative; }

.final-cta .eyebrow { color: #e88d6d; }
.final-cta .eyebrow::before { color: #4c564f; }

.final-cta h2 { max-width: 700px; margin-left: auto; margin-right: auto; }

.final-cta .button {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--pen);
}

.final-cta .button:hover { background: #fff; transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--pen); }

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.site-footer p { margin: 0; }
.site-footer a { color: var(--ink-soft); text-decoration-color: var(--pen); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--pen-deep); }

/* ---------- scroll reveal ---------- */

.js .rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rv-delay, 0s);
}

.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .stamp.stamped { animation: none; opacity: 1; }
  .score-fill { transition: none; }
  .button, .card { transition: none; }
}

@media print {
  .js .rv { opacity: 1 !important; transform: none !important; }
  .stamp { opacity: 1 !important; }
  .score-fill { width: 60%; }
}

/* ---------- legal page ---------- */

.legal { max-width: 820px; }
.legal h3 { margin-top: 36px; font-family: var(--serif); font-size: 21px; }
.legal ul { color: var(--ink-soft); padding-left: 22px; }
.legal li + li { margin-top: 8px; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 56px 24px 64px; }
  .report-stack { max-width: 560px; }
  .grid.three { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { content: none; }
}

@media (max-width: 860px) {
  .site-header { padding: 12px 20px; }

  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 18px 30px -18px rgba(28, 36, 32, 0.4);
    display: none;
  }

  .nav.open { display: flex; }

  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { content: none; }

  .split, .pricing-layout { grid-template-columns: 1fr; }
  .section { padding: 60px 20px; }
  .muted { padding-left: 20px; padding-right: 20px; }
  .grid.three, .grid.two, .steps { grid-template-columns: 1fr; }
  .final-cta { margin: 0 20px 60px; padding: 56px 24px; }
  .site-footer { flex-direction: column; padding: 26px 20px; }
}

@media (max-width: 520px) {
  .hero-actions .button { width: 100%; }
  .score { grid-template-columns: 96px 1fr 30px; }
  .report-stack::before { inset: 10px -6px -10px 6px; }
  .finding-line { white-space: normal; align-items: flex-start; }
  .finding-line .sev { margin-top: 2px; }
}
