:root {
  --ink: #0e0d0c;
  --char: #232019;
  --line: #2e2921;
  /* #6b6355 failed WCAG AA on the ink background (3.27:1) — retired.
     --slate now matches --dim's luminance; both clear AA at 5.32:1. */
  --slate: #8d8578;
  --muted: #b8b1a4;
  --dim: #8d8578;
  --ash: #f0ece4;
  --amber: #F58220;
  --amber-hi: #ff9d4d;
  --pad: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ash);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-hi); }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.measure { max-width: 640px; }
.lede { font-size: 19px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.body { font-size: 16px; line-height: 1.75; color: var(--muted); text-wrap: pretty; }
.rule { border-top: 1px solid var(--char); }

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--pad);
  border-bottom: 1px solid var(--char);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ash); }
.brand:hover { color: var(--ash); }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.nav-links { display: flex; gap: 36px; font-size: 15px; }
.nav-links a { color: var(--muted); white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--amber); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 3px;
  padding: 16px 30px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: var(--amber);
  color: var(--ink);
  text-align: center;
}
.btn:hover { background: var(--amber-hi); color: var(--ink); }
.btn-sm { padding: 10px 22px; font-size: 14px; font-weight: 600; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--amber);
  color: var(--amber);
}
.btn-ghost:hover { background: var(--amber); color: var(--ink); }
.btn-quiet {
  background: transparent;
  border: 1px solid #3a352c;
  color: var(--ash);
  font-weight: 600;
}
.btn-quiet:hover { background: var(--char); color: var(--ash); }
.btn[disabled] { opacity: 0.4; cursor: default; }

/* ---------- hero ---------- */
.hero { padding: 140px var(--pad) 120px; max-width: 1000px; }
.hero h1 {
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 28px 0 32px;
}
.hero .lede { font-size: 20px; max-width: 620px; margin-bottom: 48px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.page-head { padding: 120px var(--pad) 96px; max-width: 900px; }
.page-head h1 {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 28px 0 32px;
}

/* ---------- sections ---------- */
.section { padding: 100px var(--pad); }
.section h2 {
  font-size: 40px;
  margin-bottom: 24px;
  max-width: 760px;
}
.section-intro { margin-bottom: 64px; max-width: 660px; }

/* ---------- grids ---------- */
.grid {
  display: grid;
  gap: 1px;
  background: var(--char);
  border: 1px solid var(--char);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.cell { background: var(--ink); padding: 44px 36px; }
.cell h3 { font-size: 21px; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; }
.cell p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.cell .num {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--dim);
  font-size: 13px;
  margin-bottom: 22px;
}
.cell-accent { border-left: 2px solid var(--amber); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--char); border-bottom: 1px solid var(--char); }
.stat { padding: 36px var(--pad); border-right: 1px solid var(--char); }
.stat:last-child { border-right: 0; }
.stat dt { font-size: 34px; font-weight: 800; color: var(--amber); }
.stat dd { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- panels ---------- */
.panel { border: 1px solid var(--char); border-radius: 6px; padding: 40px 44px; }
.split { display: flex; gap: 72px; }
.split > div { flex: 1; }
.split .divider { flex: 0 0 1px; background: var(--char); }
.panel h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.panel p { font-size: 15px; line-height: 1.75; color: var(--muted); text-wrap: pretty; }

.arrows li { display: flex; gap: 14px; align-items: baseline; margin-bottom: 18px; }
.arrows li:last-child { margin-bottom: 0; }
.arrows .mark {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--amber);
  font-size: 14px;
  width: 18px;
  flex: 0 0 18px;
}
.arrows .mark.no { color: var(--dim); }
.arrows span:last-child { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ---------- steps ---------- */
.step {
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--char);
}
.step:last-child { border-bottom: 1px solid var(--char); }
.step h3 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.step-n { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--amber); margin-bottom: 8px; }
.step-t { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--dim); }
.step-need { font-size: 15px; line-height: 1.7; color: var(--dim); }

/* ---------- pricing ---------- */
.tier .kicker { font-size: 15px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.tier .kicker.on { color: var(--amber); }
.tier .price { font-size: 30px; font-weight: 800; margin-bottom: 20px; }

/* ---------- cta ---------- */
.cta { padding: 100px var(--pad) 120px; text-align: center; border-top: 1px solid var(--char); }
.cta h2 { font-size: 44px; margin-bottom: 24px; }
.cta p { font-size: 18px; color: var(--muted); margin-bottom: 44px; }
.cta-alt { font-size: 15px; color: var(--dim); margin-top: 28px; }
.cta-alt strong { color: var(--muted); font-weight: 400; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--char); }
.faq details { border-bottom: 1px solid var(--char); padding: 28px 0; }
.faq summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--amber); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 16px; font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 760px; text-wrap: pretty; }

/* ---------- prose (privacy) ---------- */
.prose { max-width: 780px; padding: 96px var(--pad) 120px; }
.prose h2 { font-size: 26px; margin: 56px 0 20px; letter-spacing: -0.01em; }
.prose p { font-size: 16px; line-height: 1.75; color: var(--muted); margin-bottom: 16px; text-wrap: pretty; }
/* .prose p outranks .eyebrow/.label on specificity — restore their colours */
.prose p.eyebrow { color: var(--amber); }
.prose p.label { color: var(--dim); }
.prose p.lede { font-size: 19px; line-height: 1.65; }
.prose strong { color: var(--ash); font-weight: 600; }
.deflist { border: 1px solid var(--char); border-radius: 6px; overflow: hidden; margin: 28px 0; }
.deflist > div { display: flex; gap: 24px; padding: 20px 26px; border-bottom: 1px solid var(--char); }
.deflist > div:last-child { border-bottom: 0; }
.deflist dt { width: 190px; flex: 0 0 190px; font-size: 15px; font-weight: 700; color: var(--ash); }
.deflist dd { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---------- articles ---------- */
.article { max-width: 760px; padding: 88px var(--pad) 96px; }
.article h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.03em; margin: 24px 0 28px; }
.article .standfirst { font-size: 20px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.article .byline {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--dim);
  margin-top: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--char);
}
.article h2 { font-size: 28px; margin: 56px 0 20px; letter-spacing: -0.02em; }
/* .article p is more specific than .eyebrow/.label — restore their colours */
.article p.eyebrow { color: var(--amber); }
.article p.label { color: var(--dim); }
.article h3 { font-size: 20px; font-weight: 700; margin: 36px 0 14px; letter-spacing: -0.01em; }
.article p { font-size: 17px; line-height: 1.8; color: var(--muted); margin-bottom: 20px; text-wrap: pretty; }
.article strong { color: var(--ash); font-weight: 600; }
.article ul.bullets { margin: 0 0 24px; }
.article ul.bullets li {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  padding-left: 26px;
  margin-bottom: 12px;
  position: relative;
  text-wrap: pretty;
}
.article ul.bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--amber);
}
.article .pull {
  border-left: 2px solid var(--amber);
  padding: 6px 0 6px 24px;
  margin: 36px 0;
}
.article .pull p { font-size: 20px; line-height: 1.6; color: var(--ash); margin: 0; }
.article .note {
  border: 1px solid var(--char);
  border-radius: 6px;
  padding: 28px 30px;
  margin: 36px 0;
}
.article .note p { font-size: 16px; margin-bottom: 0; }
.article .note p + p { margin-top: 14px; }
.article table { width: 100%; border-collapse: collapse; margin: 28px 0 32px; }
.article th, .article td {
  text-align: left;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 1px solid var(--char);
  color: var(--muted);
  vertical-align: top;
}
.article th {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 400;
}
.article td:first-child { color: var(--ash); font-weight: 600; }
.article .endnote {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--char);
  font-size: 15px;
  color: var(--dim);
  line-height: 1.7;
}

.card-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--char); border: 1px solid var(--char); }
.card-list a { display: block; background: var(--ink); padding: 40px 34px; color: var(--ash); }
.card-list a:hover { background: #131110; color: var(--ash); }
.card-list h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin: 18px 0 14px; }
.card-list p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.card-list .more { display: block; margin-top: 20px; font-size: 14px; color: var(--amber); }

@media (max-width: 1100px) {
  .card-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .card-list { grid-template-columns: 1fr; }
  .article { padding: 56px var(--pad) 64px; }
  .article h1 { font-size: 32px; }
  .article .standfirst { font-size: 17px; }
  .article h2 { font-size: 23px; }
  .article p, .article ul.bullets li { font-size: 16px; }
  .article table, .article thead, .article tbody, .article tr, .article th, .article td { display: block; }
  .article thead { display: none; }
  .article tr { border-bottom: 1px solid var(--char); padding: 12px 0; }
  .article td { border: 0; padding: 4px 0; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--char); padding: 56px var(--pad) 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 64px; margin-bottom: 48px; }
.footer-cols { display: flex; gap: 72px; }
.footer h2 { font-size: 11px; }
.footer ul { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--muted); margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid var(--char);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--dim);
}
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a { color: var(--dim); }
.footer-bottom a:hover { color: var(--amber); }

/* ---------- audit modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 5, 0.82);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: #131110;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 100%;
  max-width: 720px;
  max-height: 86vh;
  overflow-y: auto;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--char);
}
.modal-close {
  background: none;
  border: 0;
  color: var(--dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.modal-close:hover { color: var(--ash); }
.modal-body { padding: 40px 32px; }
.progress { height: 2px; background: var(--char); border-radius: 2px; margin-bottom: 28px; }
.progress span { display: block; height: 2px; background: var(--amber); border-radius: 2px; transition: width 0.25s ease; }
.q { font-size: 26px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin: 16px 0 28px; }
textarea, input[type="text"], input[type="email"] {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ash);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  padding: 16px;
  outline: none;
}
textarea { resize: none; }
textarea:focus, input:focus { border-color: var(--amber); }
input[type="text"], input[type="email"] { font-size: 15px; padding: 13px 14px; }
.q-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.hint { font-size: 13px; color: var(--dim); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.opp { background: var(--ink); padding: 24px 26px; }
.opp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.opp-head h4 { font-size: 17px; font-weight: 700; }
.opp-saves { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--amber); white-space: nowrap; }
.opp p { font-size: 15px; line-height: 1.65; color: var(--muted); margin-bottom: 12px; text-wrap: pretty; }
.opp-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 36px; }
.callout { border-left: 2px solid var(--amber); padding: 4px 0 4px 20px; margin-bottom: 40px; }
.deploy-box { border: 1px solid var(--line); border-radius: 4px; padding: 24px 26px; margin-bottom: 36px; }
.deploy-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.booking { border-top: 1px solid var(--char); padding: 36px 32px; }
.booking h3 { font-size: 22px; margin-bottom: 10px; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.fineprint { font-size: 13px; color: var(--dim); line-height: 1.65; margin-top: 14px; }
.center { text-align: center; }

@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .nav { flex-wrap: wrap; row-gap: 18px; }
  .nav-links { order: 3; width: 100%; gap: 24px; flex-wrap: wrap; }
  /* Splits stack at the same breakpoint the grids collapse — a 72px gutter
     leaves ~297px columns here, which shreds the headings. */
  .split { flex-direction: column; gap: 36px; }
  .split .divider { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--char); }
  .step { grid-template-columns: 160px 1fr; }
  .step-need-wrap { grid-column: 2; }
  .hero h1 { font-size: 56px; }
  .page-head h1 { font-size: 48px; }
}

@media (max-width: 760px) {
  :root { --pad: 22px; }
  .nav { flex-wrap: wrap; gap: 16px; }
  .nav-links { order: 3; width: 100%; gap: 4px 20px; flex-wrap: wrap; font-size: 15px; }
  /* 44px minimum tap target — thumbs are not mouse pointers */
  .nav-links a { padding: 11px 0; }
  .footer ul { gap: 4px; }
  .footer ul li a { display: inline-block; padding: 10px 0; }
  .footer-bottom nav a { display: inline-block; padding: 10px 0; }
  .hero { padding: 72px var(--pad) 64px; }
  .hero h1 { font-size: 38px; }
  .hero .lede { font-size: 17px; }
  .page-head { padding: 64px var(--pad) 48px; }
  .page-head h1 { font-size: 34px; }
  .section { padding: 64px var(--pad); }
  .section h2 { font-size: 28px; }
  .cta h2 { font-size: 30px; }
  .grid-2, .grid-3, .grid-4, .stats, .name-row { grid-template-columns: 1fr; }
  .cell { padding: 32px 26px; }
  .panel { padding: 28px 26px; }
  .split { gap: 32px; }
  .step { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-cols { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .deflist > div { flex-direction: column; gap: 8px; }
  .deflist dt { width: auto; flex: none; }
  .modal { padding: 0; }
  .modal-card { max-height: 100vh; height: 100%; border-radius: 0; border: 0; }
  .modal-body, .booking { padding: 28px 22px; }
  .q { font-size: 21px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}
