/* ============================================================
   HamilTech — Site-v2/css/site.css
   Design system for hamiltech.io. Tokens from templates/brand.md.
   Documented in ../DESIGN.md — read that before adding classes.

   Never use T&H Painting's blues (the two hex values listed in
   templates/brand.md). Teal and near-black only.
   ============================================================ */

/* ---------- 1. Tokens ---------- */

:root {
  /* brand */
  --base: #0D1117;
  --surface: #161B22;
  --accent: #00B5AD;
  --accent-dim: #00857F;   /* links, labels on light: 4.5:1 on white */
  --accent-ink: #00736E;   /* small text on light: 5.7:1 on white */
  --accent-wash: rgba(0, 181, 173, 0.09);
  --paper: #ffffff;
  --paper-2: #f3f6f6;
  --ink: #16191F;
  --ink-2: #3a424c;        /* body copy on light, softer than ink */
  --muted: #5f6873;        /* 5.6:1 on white */
  --rule: #e2e6e8;
  --rule-2: #cfd6d9;
  --white: #F2F6F5;

  /* dark-context helpers */
  --on-dark-muted: #a3adb8;
  --on-dark-rule: #262d36;

  /* type */
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;

  --fs-display: clamp(2.35rem, 1.45rem + 3.6vw, 3.9rem);
  --fs-h1: clamp(2rem, 1.35rem + 2.4vw, 3.1rem);
  --fs-h2: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem);
  --fs-h3: 1.25rem;
  --fs-h4: 1.05rem;
  --fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.92rem;
  --fs-xs: 0.82rem;

  /* layout */
  --wrap: 1120px;
  --wrap-narrow: 760px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 7.5vw, 6.25rem);
  --section-sm: clamp(2.5rem, 5vw, 4rem);

  /* shape */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;

  --shadow-card: 0 18px 50px -20px rgba(13, 17, 23, 0.28), 0 2px 6px rgba(13, 17, 23, 0.06);

  --header-h: 72px;
}

/* ---------- 2. Reset & base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.012em; }
h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

a {
  color: var(--accent-dim);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 133, 127, 0.45);
}
a:hover { color: var(--ink); text-decoration-color: currentColor; }

strong { font-weight: 600; }

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

::selection { background: var(--accent); color: var(--base); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 200;
  background: var(--base);
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
}
.skip-link:focus { left: 0.5rem; }

/* ---------- 3. Layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section); }
.section-sm { padding-block: var(--section-sm); }
.section-tint { background: var(--paper-2); }
.section-line { border-top: 1px solid var(--rule); }

.section-head { max-width: 40em; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head h2 { margin-bottom: 0.4em; }
.section-head .lead { color: var(--ink-2); }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}
.section-head-row .section-head { margin-bottom: 0; }

.kicker {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--accent-dim);
  margin: 0 0 0.9rem;
  letter-spacing: -0.005em;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.55em;
  vertical-align: 0.05em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  max-width: 40em;
  color: var(--ink-2);
}

.prose { max-width: 38em; color: var(--ink-2); }
.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
.prose h3 { color: var(--ink); margin-top: 1.8em; }
.prose h3:first-child { margin-top: 0; }

.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.split-even { grid-template-columns: 1fr 1fr; }

/* ---------- 4. Wordmark ---------- */

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--base);
  display: block;
}
.wordmark .tech { color: var(--accent); }

.brand-sub {
  display: block;
  font-family: var(--display);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ---------- 5. Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.8rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: var(--base); border-color: var(--accent); }
.btn-primary:hover { background: var(--base); color: var(--white); border-color: var(--base); }

.btn-dark { background: var(--base); color: var(--white); border-color: var(--base); }
.btn-dark:hover { background: var(--accent); color: var(--base); border-color: var(--accent); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-outline:hover { border-color: var(--base); color: var(--ink); background: var(--paper); }

/* on dark panels */
.on-dark .btn-primary:hover { background: var(--white); color: var(--base); border-color: var(--white); }
.on-dark .btn-outline { color: var(--white); border-color: rgba(242, 246, 245, 0.35); }
.on-dark .btn-outline:hover { border-color: var(--white); background: transparent; }

/* ---------- 6. Header & navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { text-decoration: none; display: block; }
.brand:hover .wordmark { color: var(--base); }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 1.2;
}
.nav-link:hover { color: var(--accent-dim); background: var(--paper-2); }
.nav-link[aria-current="page"] { color: var(--accent-ink); }
.nav-link .chev { width: 12px; height: 12px; transition: transform 160ms ease; }
.has-menu.is-open > .nav-link .chev { transform: rotate(180deg); }

.nav-cta { margin-left: 0.75rem; }

/* Services dropdown */
.nav-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(38rem, calc(100vw - 2rem));
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 0.75rem;
  z-index: 110;
}
.has-menu.is-open > .nav-menu { display: block; }

.menu-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem;
}

.menu-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-sm);
}
.menu-link:hover { background: var(--paper-2); color: var(--ink); }
.menu-title {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.menu-desc {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.15rem;
  line-height: 1.4;
}
.menu-link:hover .menu-title { color: var(--accent-ink); }

.menu-foot {
  margin: 0.5rem 0.25rem 0.1rem;
  padding: 0.6rem 0.6rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  background: none;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}
.nav-toggle .bars { width: 18px; height: 12px; }
.nav-toggle .bars rect { fill: currentColor; transition: transform 160ms ease, opacity 160ms ease; }

/* ---------- 7. Hero ---------- */

.hero {
  padding-block: clamp(2.75rem, 7vw, 6rem) clamp(2.75rem, 6vw, 5rem);
  background:
    radial-gradient(60% 55% at 100% 0%, rgba(0, 181, 173, 0.10), transparent 70%),
    var(--paper);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--fs-display);
  max-width: 11.5em;
  margin-bottom: 0.45em;
}
.hero .lead { max-width: 34em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.hero-note {
  margin-top: 1.4rem;
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: 34em;
}

/* Findings card — the illustrative "what the assessment produces" object */
.findings {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  font-size: var(--fs-small);
}

.findings-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.findings-head strong { font-family: var(--display); font-weight: 700; font-size: 0.98rem; }
.findings-head span { font-size: var(--fs-xs); color: var(--muted); }

.findings-list { list-style: none; margin: 0; padding: 0.35rem 0; }

.findings-row {
  display: grid;
  grid-template-columns: 6.2em minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.62rem 1.15rem;
}
.findings-row + .findings-row { border-top: 1px solid var(--rule); }
.findings-row .sys { font-family: var(--display); font-weight: 500; color: var(--ink); }
.findings-row .what { color: var(--ink-2); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--fs-xs);
  white-space: nowrap;
  color: var(--ink-2);
}
.status::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--accent);
}
.status-warn::before { background: #e0a800; }
.status-bad::before { background: #d0463b; }

.findings-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background: var(--base);
  color: var(--white);
}
.findings-foot span { color: var(--on-dark-muted); font-size: var(--fs-xs); }
.findings-foot strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  white-space: nowrap;
}

.hero-aside figcaption {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: right;
}

/* ---------- 8. Cards & pillars ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.section-tint .card { border-color: transparent; }

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 { margin: 0; }
.card p { color: var(--ink-2); font-size: var(--fs-small); margin: 0; }
.card-link {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--fs-small);
}
.card-links {
  list-style: none;
  margin: auto 0 0;
  padding: 0.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}
.card-links .card-link { margin-top: 0; padding-top: 0; }

/* heading-size utilities: keep the outline honest, size to taste */
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.012em; }

/* Pillar grid: I.T. leads as a full-width card, three underneath */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.pillar-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: center;
  border-color: var(--accent);
  border-width: 1.5px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.pillar-lead h3 { font-size: var(--fs-h2); letter-spacing: -0.02em; }
.pillar-lead p { font-size: var(--fs-body); }
.pillar-lead .pillar-lead-copy { display: flex; flex-direction: column; gap: 0.75rem; }
.pillar-lead .card-link { margin-top: 0.25rem; }

.tag {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--fs-xs);
  color: var(--accent-ink);
  background: var(--accent-wash);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  align-self: flex-start;
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.spec-list li { padding-left: 1.4rem; position: relative; }
.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.8em;
  height: 0.45em;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- 9. Process steps (a real sequence) ---------- */

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

.step {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1.5rem;
  position: relative;
}
.section-tint .step { border-color: transparent; }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--base);
  color: var(--accent);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.step-num::before { content: counter(step); }

.step h3 { margin-bottom: 0.4em; }
.step p { color: var(--ink-2); font-size: var(--fs-small); }

.step-meta {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--fs-xs);
  color: var(--accent-ink);
}

/* ---------- 10. Pricing ---------- */

.price-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
}
.price-tile { padding: 1.5rem; }
.price-tile + .price-tile { border-left: 1px solid var(--rule); }
.price-tile .price-label { font-family: var(--display); font-weight: 500; font-size: var(--fs-small); color: var(--muted); margin-bottom: 0.4rem; }
.price-tile .price { font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 0.5rem; }
.price-tile .price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-tile p { font-size: var(--fs-small); color: var(--ink-2); }

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.plan {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}

.plan-tag {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--fs-xs);
  color: var(--accent-ink);
  margin-bottom: 0.6rem;
}
.plan-name { margin: 0 0 0.35rem; font-size: var(--fs-h3); }
.plan-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.3rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.3rem;
}
.plan-price .plan-per { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 0.15rem; }
.plan-summary { font-size: var(--fs-small); color: var(--muted); margin-bottom: 1.2rem; }

.plan-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.55rem;
  font-size: var(--fs-small);
  color: var(--ink-2);
  flex: 1;
  align-content: start; /* keep items packed at the top when a card is taller than its list */
}
.plan-list li { padding-left: 1.4rem; position: relative; }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.8em;
  height: 0.45em;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.plan-featured { background: var(--base); border-color: var(--base); color: var(--white); }
.plan-featured .plan-name, .plan-featured .plan-price { color: var(--white); }
.plan-featured .plan-tag { color: var(--accent); }
.plan-featured .plan-summary, .plan-featured .plan-price .plan-per { color: var(--on-dark-muted); }
.plan-featured .plan-list { color: var(--white); border-top-color: var(--on-dark-rule); }

.plan-note {
  margin-top: 1.25rem;
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: 52em;
}

/* Rate table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--r-md); }

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
  min-width: 420px;
  background: var(--paper);
}
.rate-table th, .rate-table td { padding: 0.85rem 1.1rem; text-align: left; vertical-align: top; }
.rate-table thead th {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--fs-xs);
  color: var(--muted);
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.rate-table tbody td { border-bottom: 1px solid var(--rule); }
.rate-table tbody tr:last-child td { border-bottom: 0; }
.rate-table .num { text-align: right; white-space: nowrap; font-family: var(--display); font-weight: 700; }
.rate-table .sub { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: 0.15rem; font-weight: 400; }

/* ---------- 11. Checklist (what's included) ---------- */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 2rem;
}
.checklist li {
  padding: 0.85rem 0 0.85rem 2rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  color: var(--ink-2);
}
.checklist li strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.1rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.25rem;
  width: 0.85em;
  height: 0.45em;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Exclusions: same list, neutral marker */
.exclusions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--ink-2);
  max-width: 40em;
}
.exclusions li { padding-left: 1.5rem; position: relative; }
.exclusions li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.75em;
  width: 0.8em;
  height: 2px;
  background: var(--rule-2);
}

/* ---------- 12. Note / callout ---------- */

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1rem 1.3rem;
  font-size: var(--fs-small);
  color: var(--ink-2);
  max-width: 52em;
}
.note strong { color: var(--ink); }

/* ---------- 13. FAQ ---------- */

.faq { border-top: 1px solid var(--rule); max-width: var(--wrap-narrow); }

.faq details { border-bottom: 1px solid var(--rule); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 0.25rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.6em;
  height: 0.6em;
  border-right: 2px solid var(--accent-dim);
  border-bottom: 2px solid var(--accent-dim);
  transform: rotate(45deg);
  margin-right: 0.3rem;
  transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }

.faq-body { padding: 0 0.25rem 1.3rem; color: var(--ink-2); max-width: 40em; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- 14. Proof / case blocks ---------- */

.proof-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-bottom: 1.25rem;
}
.proof-feature h3 { font-size: var(--fs-h2); letter-spacing: -0.02em; margin-bottom: 0.3em; }
.proof-feature .prose { max-width: none; }

.meta-list { margin: 1.25rem 0 0; }
.meta-list div {
  display: grid;
  grid-template-columns: 6em minmax(0, 1fr);
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small);
}
.meta-list dt { font-family: var(--display); font-weight: 500; color: var(--muted); }
.meta-list dd { margin: 0; color: var(--ink); }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.proof-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1.5rem;
}
.proof-item .where { font-family: var(--display); font-weight: 500; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 0.5rem; }
.proof-item h3 { margin-bottom: 0.35em; }
.proof-item p { font-size: var(--fs-small); color: var(--ink-2); }

/* Person strip (portrait placeholder) */
.person {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
.portrait-slot {
  width: 8rem;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(0, 181, 173, 0.18), rgba(13, 17, 23, 0.08)),
    var(--paper-2);
  border: 1px dashed var(--rule-2);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: var(--fs-xs);
  text-align: center;
  padding: 0.5rem;
  overflow: hidden;
}
.portrait-slot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 15. CTA panel ---------- */

.cta-panel {
  background:
    radial-gradient(70% 90% at 0% 100%, rgba(0, 181, 173, 0.16), transparent 65%),
    var(--base);
  color: var(--white);
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
}
.cta-panel h2 { color: var(--white); max-width: 14em; }
.cta-panel .kicker { color: var(--accent); }
.cta-panel .lead { color: var(--on-dark-muted); }
.cta-panel a:not(.btn) { color: var(--accent); text-decoration-color: rgba(0, 181, 173, 0.4); }
.cta-panel a:not(.btn):hover { color: var(--white); }

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.cta-direct { font-size: var(--fs-small); color: var(--on-dark-muted); }
.cta-direct p { margin: 0 0 0.3rem; }
.cta-direct .big { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.015em; }

/* ---------- 16. Page head, breadcrumb (interior pages) ---------- */

.breadcrumb {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; color: var(--rule-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }

.page-head {
  padding-block: clamp(2.25rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(55% 60% at 100% 0%, rgba(0, 181, 173, 0.09), transparent 70%),
    var(--paper);
}
.page-head h1 { max-width: 15em; }
.page-head .lead { max-width: 38em; }
.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.page-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

/* Quick facts box (page head aside) */
.facts {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1.2rem 1.4rem;
  font-size: var(--fs-small);
}
.facts dl { margin: 0; }
.facts div {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.55rem 0;
}
.facts div + div { border-top: 1px solid var(--rule); }
.facts dt { font-family: var(--display); font-weight: 500; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
.facts .fig { font-family: var(--display); font-weight: 700; }

/* Related services */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.related-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem;
}
.related-link:hover { border-color: var(--accent); color: var(--ink); }
.related-link strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; margin-bottom: 0.25rem; }
.related-link span { display: block; font-size: var(--fs-small); color: var(--muted); }

/* ---------- 17. Forms ---------- */

.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

label {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--ink);
  margin-bottom: 0.4rem;
}
label .optional { color: var(--muted); font-weight: 400; }

input, select, textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.85rem;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
textarea { min-height: 8.5rem; resize: vertical; }

/* ---------- 18. Footer ---------- */

.site-footer {
  background: var(--base);
  color: var(--on-dark-muted);
  padding-block: 3.25rem 1.75rem;
  font-size: var(--fs-small);
}
.site-footer .wordmark { color: var(--white); }
.site-footer .brand-sub { color: var(--on-dark-muted); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-tag { margin-top: 1rem; max-width: 22em; }

.footer-head {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--white);
  margin-bottom: 0.8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding-block: 0.22rem; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  border-top: 1px solid var(--on-dark-rule);
  padding-top: 1.4rem;
  font-size: var(--fs-xs);
}
.footer-legal p { margin: 0; }

/* ---------- 19. Motion (one moment: hero) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-aside { animation: rise 520ms 110ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 20. Responsive ---------- */

@media (max-width: 1024px) {
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .pillar-lead { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { max-width: 34rem; }
  .split, .split-even, .cta-grid, .page-head-grid, .proof-feature { grid-template-columns: 1fr; }
  .cta-grid { align-items: start; }
  .steps, .plans, .proof-grid, .related-grid, .grid-3 { grid-template-columns: 1fr; }
  .plans { max-width: 30rem; }
  .price-strip { grid-template-columns: 1fr; }
  .price-tile + .price-tile { border-left: 0; border-top: 1px solid var(--rule); }
  .checklist { grid-template-columns: 1fr; gap: 0; }
  .facts { max-width: 30rem; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 20px 40px -20px rgba(13, 17, 23, 0.3);
    padding: 0.5rem var(--gutter) 1.25rem;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  body.nav-open .site-nav { display: block; }
  body.nav-open { overflow: hidden; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--rule); }
  .nav-link { width: 100%; justify-content: space-between; padding: 0.9rem 0.25rem; font-size: 1.05rem; border-radius: 0; }
  .nav-link:hover { background: none; }

  .nav-menu {
    position: static;
    transform: none;
    width: auto;
    border: 0;
    box-shadow: none;
    padding: 0 0 0.75rem;
    border-radius: 0;
  }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-link { padding: 0.55rem 0.5rem; }
  .menu-foot { display: none; }
  .nav-cta { margin: 1rem 0 0; width: 100%; }

  .pillar-grid, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .person { grid-template-columns: 1fr; gap: 1.25rem; }
  .findings-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; }
  .findings-row .sys { grid-column: 1; grid-row: 1; }
  .findings-row .status { grid-column: 2; grid-row: 1; }
  .findings-row .what { grid-column: 1 / -1; grid-row: 2; }
  .hero-actions .btn, .cta-actions .btn, .page-actions .btn { width: 100%; }
}

/* ---------- 21. Contact form status (stage three) ----------
   Success / error messages for the inquiry form on contact.html. Hidden by default; shown by
   js/contact.js (.is-visible) or, without JavaScript, by :target after the server redirects to
   /contact?sent=1#sent or /contact?error=1#form-error. Documented in DESIGN.md. */
.form-status { display: none; margin-bottom: 1.25rem; }
.form-status:target, .form-status.is-visible { display: block; }
.form-status-error { border-left-color: #d0463b; background: rgba(208, 70, 59, 0.07); }
