/* henderiks.dev - hand-written, no build step */

/* Self-hosted variable fonts (latin subsets), no third-party requests */
@font-face { font-family: "Geist"; src: url("fonts/geist-normal.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-normal.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --bg: #0a0e0c;
  --bg-raise: #0f1411;
  --bg-inset: #0c110e;
  --line: #1d2721;
  --line-strong: #2a372f;
  --text: #e7ede8;
  --muted: #93a29a;
  --faint: #5f6d66;
  --accent: #4ce38b;
  --accent-dim: rgba(76, 227, 139, 0.13);
  --accent-glow: rgba(76, 227, 139, 0.07);
  --warn: #d98d6a;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #08130c; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .prompt { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav a {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); }

.site-nav .nav-cta {
  color: #08130c;
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 8px;
  transition: filter 0.2s var(--ease);
}
.site-nav .nav-cta:hover { color: #08130c; filter: brightness(1.1); }

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

.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 65% -10%, var(--accent-glow), transparent 65%),
    repeating-linear-gradient(to right, transparent 0 79px, rgba(76, 227, 139, 0.035) 79px 80px),
    repeating-linear-gradient(to bottom, transparent 0 79px, rgba(76, 227, 139, 0.035) 79px 80px);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 26px;
}
.eyebrow::before { content: "// "; color: var(--faint); }

h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 17ch;
}

h1 em, h2 em {
  font-style: normal;
  color: var(--accent);
}

.hero .sub {
  margin-top: 28px;
  max-width: 58ch;
  font-size: 19px;
  color: var(--muted);
}
.hero .sub strong { color: var(--text); font-weight: 500; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 14px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }

.btn-solid { background: var(--accent); color: #08130c; font-weight: 600; }
.btn-solid:hover { color: #08130c; filter: brightness(1.08); }

.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- stat strip ---------- */

.stats {
  border-bottom: 1px solid var(--line);
  background: var(--bg-inset);
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 34px 28px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }

.stat .num {
  font-family: var(--mono);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat .num.long { font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 2.2rem; }

.stat .label {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 24ch;
}

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

section.block { padding: 96px 0; border-bottom: 1px solid var(--line); }
section.block:last-of-type { border-bottom: none; }

.section-head { margin-bottom: 48px; }

h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 24ch;
}

h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.lede { font-size: 18.5px; color: var(--muted); max-width: 62ch; margin-top: 20px; }
.lede strong, .body-copy strong { color: var(--text); font-weight: 500; }

.body-copy { max-width: 68ch; color: var(--muted); }
.body-copy p + p { margin-top: 18px; }

/* ---------- cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); }

.card .price {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- deliverables list ---------- */

.deliverables { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }

.deliverables li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.deliverables h3 { font-size: 16px; margin-bottom: 5px; }
.deliverables p { font-size: 14.5px; color: var(--muted); }

/* ---------- backlog table ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raise); }

table.backlog { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; min-width: 720px; }

table.backlog th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

table.backlog td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}
table.backlog tr:last-child td { border-bottom: none; }
table.backlog td.item { color: var(--text); min-width: 260px; }
table.backlog td.money { color: var(--accent); white-space: nowrap; font-weight: 600; }
table.backlog td .verify { display: block; margin-top: 6px; font-size: 12px; color: var(--faint); }

.chip {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}
.chip.good { border-color: rgba(76, 227, 139, 0.35); color: var(--accent); }

.table-caption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

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

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }

.step {
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}

.step .s-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
}

.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- ladder ---------- */

.ladder { list-style: none; }

.ladder li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.ladder .l-body { max-width: 62ch; flex: 1 1 380px; }
.ladder h3 { margin-bottom: 6px; }
.ladder p { font-size: 15px; color: var(--muted); }

.ladder .l-price {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--accent);
  white-space: nowrap;
}

.callout {
  margin-top: 36px;
  border: 1px solid rgba(76, 227, 139, 0.3);
  background: var(--accent-dim);
  border-radius: 12px;
  padding: 24px 28px;
  max-width: 68ch;
}
.callout p { color: var(--text); font-size: 15.5px; }
.callout .c-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ---------- proof / pull quote ---------- */

.pull {
  border-left: 2px solid var(--accent);
  padding-left: 32px;
  max-width: 62ch;
}

.pull blockquote {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--text);
}

.pull .attr { margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--faint); }

.proof-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }

.proof-side { list-style: none; }
.proof-side li {
  padding: 18px 0 18px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  position: relative;
}
.proof-side li::before {
  content: ">";
  font-family: var(--mono);
  color: var(--accent);
  position: absolute;
  left: 0;
}
.proof-side li strong { color: var(--text); font-weight: 500; }

.big-number {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.big-number-label { font-family: var(--mono); font-size: 13px; color: var(--faint); margin-top: 10px; }

/* ---------- fit lists ---------- */

.fit { list-style: none; }
.fit li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 13px 0;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.fit li:last-child { border-bottom: none; }
.fit li strong { color: var(--text); font-weight: 500; }

.fit li .mark { font-family: var(--mono); font-weight: 600; }
.fit.yes .mark { color: var(--accent); }
.fit.no .mark { color: var(--warn); }

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

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 0;
  font-weight: 500;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 18px; flex-shrink: 0; }
.faq details[open] summary::after { content: "-"; }
.faq .faq-body { padding: 0 0 26px; color: var(--muted); font-size: 15.5px; max-width: 64ch; }
.faq .faq-body p + p { margin-top: 12px; }

/* ---------- article (case study / checklist) ---------- */

.article { padding: 90px 0; }

.article-header { margin-bottom: 56px; }
.article-header h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 22ch; }
.article-header .meta {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.article-header .meta span::before { content: "// "; color: var(--line-strong); }

.article h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 56px 0 18px;
}
.article h2 .h-num { font-family: var(--mono); font-size: 0.6em; color: var(--accent); vertical-align: super; margin-right: 10px; font-style: normal; }

.article p { color: var(--muted); margin: 16px 0; }
.article p strong { color: var(--text); font-weight: 500; }
.article ul { margin: 16px 0 16px 2px; list-style: none; }
.article ul li {
  color: var(--muted);
  padding: 7px 0 7px 26px;
  position: relative;
}
.article ul li::before {
  content: ">";
  font-family: var(--mono);
  color: var(--accent);
  position: absolute;
  left: 0;
}
.article ul li strong { color: var(--text); font-weight: 500; }

.article pre {
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 18px 0;
}
.article code { font-family: var(--mono); font-size: 13.5px; color: var(--text); }
.article p code, .article li code {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.85em;
  color: var(--accent);
}

.article .rule-note {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px;
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  margin: 28px 0;
}

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

.footer-cta {
  padding: 110px 0;
  text-align: left;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 60% at 50% 120%, var(--accent-glow), transparent 70%),
    var(--bg-inset);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: center;
}

.report-thumb { display: block; max-width: 360px; justify-self: end; }
.report-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.report-thumb:hover { text-decoration: none; }
.report-thumb:hover img { border-color: var(--accent); transform: translateY(-3px); }
.report-thumb span {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  text-align: center;
}

.footer-cta h2 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); max-width: 20ch; }
.footer-cta .lede { margin-top: 22px; }
.footer-cta .cta-row { margin-top: 36px; }

.email-line {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
}
.email-line button {
  font-family: var(--mono);
  font-size: 12px;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  border-radius: 8px;
  padding: 3px 10px;
  margin-left: 10px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.email-line button:hover { color: var(--accent); border-color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer p, .site-footer a { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.site-footer a:hover { color: var(--accent); }

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

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

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

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .report-thumb { justify-self: start; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 20px; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card-grid, .card-grid.two { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 18px; }
  .proof-grid { grid-template-columns: 1fr; gap: 40px; }
  .deliverables { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 72px 0 64px; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .card-grid, .card-grid.two, .steps { grid-template-columns: 1fr; }
  .ladder li { flex-direction: column; gap: 10px; }
  section.block { padding: 64px 0; }
}
