/* Sales Pipe · shared design tokens & primitives
   Used by privacy, terms, 404, book-confirmed, missed, welcome, diy, case pages.
   Landing page (index-v6.html) and audit pages keep their own bespoke styles. */

:root {
  --bg:        oklch(0.965 0.012 78);
  --bg-soft:   oklch(0.94 0.014 75);
  --bg-lift:   oklch(0.99 0.008 80);
  --line:      oklch(0.82 0.018 72);
  --line-soft: oklch(0.88 0.014 75);
  --ink:       oklch(0.22 0.022 60);
  --ink-2:     oklch(0.36 0.022 60);
  --ink-3:     oklch(0.50 0.020 62);
  --ink-4:     oklch(0.65 0.018 65);
  --clay:      oklch(0.52 0.135 38);
  --clay-2:    oklch(0.44 0.130 36);
  --clay-3:    oklch(0.62 0.130 42);
  --green:     oklch(0.62 0.135 145);
  --highlight: oklch(0.90 0.085 90);
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --mono:    "Geist Mono", ui-monospace, monospace;
  --e-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 5vw, 56px);
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 700px at 12% -10%, oklch(0.85 0.08 75 / 0.40), transparent 60%),
    radial-gradient(900px 600px at 95% 110%, oklch(0.78 0.10 50 / 0.20), transparent 55%);
  mix-blend-mode: multiply;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.12 0 0 0 0 0.08 0 0 0 1 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

::selection { background: var(--clay); color: var(--bg); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.06;
  margin: 0;
  color: var(--ink);
}
em { font-style: italic; color: var(--clay); }

/* HEADER */
.top {
  position: sticky;
  top: 0;
  background: oklch(0.965 0.012 78 / 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  z-index: 30;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, var(--clay-3), var(--clay-2) 70%);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 7px;
  border-radius: 50%;
  background: var(--bg);
}
.top-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.top a.top-link {
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.3s;
}
.top a.top-link:hover { color: var(--ink); }

/* LAYOUT */
.wrap {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.wrap-narrow {
  max-width: 760px;
}

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--clay);
  border-radius: 50%;
}

/* HERO */
.hero {
  padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.024em;
  margin: 22px 0 22px;
  max-width: 18ch;
}
.hero .lede {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 56ch;
}

/* SECTIONS */
.section {
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--line-soft);
}
.section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 14px 0 24px;
  max-width: 24ch;
}
.section p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
  max-width: 65ch;
  margin-bottom: 16px;
}
.section p strong { color: var(--ink); font-weight: 500; }

/* PROSE (legal-style flowing text) */
.prose h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  margin: 36px 0 12px;
  max-width: 30ch;
  font-weight: 500;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 18px;
  margin: 24px 0 8px;
  color: var(--ink);
  font-weight: 500;
}
.prose p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 68ch;
}
.prose p strong { color: var(--ink); font-weight: 500; }
.prose ul {
  margin: 0 0 16px; padding: 0;
  list-style: none;
}
.prose li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
  max-width: 65ch;
}
.prose li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--clay);
  font-family: var(--mono);
}
.prose code {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
  color: var(--ink);
}
.prose .stamp {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border: 1px solid var(--clay);
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--e-out), border-color 0.4s var(--e-out);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--clay);
  transform: translateY(101%);
  transition: transform 0.5s var(--e-out);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow {
  display: inline-block;
  width: 14px; height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--e-out);
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { transform: translateX(6px); }
.btn-ghost { border-color: var(--line); color: var(--ink-2); }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--bg); border-color: var(--ink); }
.btn-wa { border-color: oklch(0.55 0.135 145); }
.btn-wa::before { background: oklch(0.55 0.135 145); }

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

/* FOOTER */
footer {
  padding: 36px var(--pad);
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  position: relative;
  z-index: 2;
}
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { color: var(--clay); }

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