/* =========================================================
   Workhax — friendly-consultant marketing site
   Design tokens, base styles, components, sections
   ========================================================= */

/* ---- Tokens ------------------------------------------------ */
:root {
  /* Palette — warm, trust-first, friendly-consultant */
  --bg:        #fbf8f3;
  --bg-soft:   #f4ede0;
  --surface:   #ffffff;
  --ink:       #1a2332;
  --ink-soft:  #44546b;
  --muted:     #6b7280;
  --line:      #e8e2d6;
  --line-soft: #f0e9dc;
  --accent:    #c5572b;     /* warm terracotta — decorative use */
  --accent-d:  #a04318;     /* used as button bg, button text on light, links */
  --accent-dd: #7d3411;     /* button hover */
  --accent-l:  #f5e3d6;
  --slate:     #2d4a5c;
  --good:      #1f6644;     /* darker green for AA contrast on tinted bgs */

  /* Type */
  --font-serif: "Fraunces", "Source Serif Pro", Cambria, Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:  ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Spacing scale */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  3rem;
  --s-8:  4rem;
  --s-9:  6rem;
  --s-10: 8rem;

  /* Radius & shadow */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 18px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(26, 35, 50, 0.05);
  --shadow:    0 6px 20px -8px rgba(26, 35, 50, 0.18), 0 1px 2px rgba(26, 35, 50, 0.04);
  --shadow-lg: 0 24px 60px -24px rgba(26, 35, 50, 0.22);

  /* Layout */
  --container: 1140px;
  --container-narrow: 780px;

  /* Motion */
  --easing: cubic-bezier(.2, .8, .2, 1);
}

/* ---- Reset / base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-d);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .15s var(--easing);
}
a:hover { color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 var(--s-4);
  line-height: 1.15;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; line-height: 1.3; }
h4 { font-size: 1.05rem; line-height: 1.35; font-weight: 600; font-family: var(--font-sans); letter-spacing: 0; }

p { margin: 0 0 var(--s-4); }
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-d);
  margin-bottom: var(--s-4);
}

ul, ol { padding-left: 1.25rem; margin: 0 0 var(--s-4); }
li { margin-bottom: var(--s-2); }
li::marker { color: var(--accent); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }

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

/* ---- Layout ------------------------------------------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container.narrow { max-width: var(--container-narrow); }

section { padding: var(--s-9) 0; }
@media (max-width: 720px) { section { padding: var(--s-7) 0; } }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: var(--s-3) var(--s-4);
  border-radius: 0 0 var(--r) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---- Header ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--easing), background .2s var(--easing);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 248, 243, 0.96);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-4) 0;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s-3);
  text-decoration: none; color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.35rem; font-weight: 600;
  letter-spacing: -0.02em;
}
.brand__mark {
  width: 32px; height: 32px;
  display: block;
  flex: 0 0 auto;
  border-radius: 8px;
}
.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav a {
  color: var(--ink); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  padding: var(--s-2) 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--accent-d); border-bottom-color: var(--accent-l); }

/* Buttons inside the nav: override the .nav a defaults so text/border are correct */
.nav a.btn { padding: 0.6rem 1.1rem; border-bottom: 0; }
.nav a.btn--primary,
.nav a.btn--primary:hover { color: #fff; border-bottom: 0; }
.nav a.btn--accent,
.nav a.btn--accent:hover { color: #fff; border-bottom: 0; }
.nav a.btn--ghost { color: var(--ink); border-bottom: 0; }
.nav a.btn--ghost:hover { color: #fff; border-bottom: 0; }

.nav-toggle {
  display: none;
  background: transparent; border: 0;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
  border-radius: var(--r);
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-3) var(--s-5) var(--s-5);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft); }
  .nav .btn { margin-top: var(--s-3); text-align: center; }
}

/* ---- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.97rem; font-weight: 600;
  text-decoration: none;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s var(--easing), background .15s var(--easing), border-color .15s var(--easing), color .15s var(--easing), box-shadow .15s var(--easing);
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink); color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #0f1722; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn--accent {
  background: var(--accent-d); color: #fff;
}
.btn--accent:hover { background: var(--accent-dd); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }

.btn--link {
  background: transparent; color: var(--ink); padding: 0.5rem 0;
  text-decoration: underline; text-underline-offset: 4px;
  border-radius: 0;
}
.btn--link:hover { color: var(--accent-d); }
.btn .arrow { transition: transform .15s var(--easing); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Hero -------------------------------------------------- */
.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-9);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 85% 0%, rgba(197,87,43,0.10), transparent 60%),
    radial-gradient(50% 60% at 0% 30%, rgba(45,74,92,0.07), transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-7); }
}

.hero h1 .underline {
  background-image: linear-gradient(transparent 70%, var(--accent-l) 70%);
  background-position: 0 0.05em;
  padding: 0 0.05em;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-d);
  font-feature-settings: "ss01";
}
.hero p.lede { margin-bottom: var(--s-6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.hero__meta {
  margin-top: var(--s-6);
  display: flex; flex-wrap: wrap; gap: var(--s-5);
  font-size: 0.9rem; color: var(--muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero__meta svg { color: var(--good); width: 16px; height: 16px; flex: 0 0 auto; }

/* Hero illustration card */
.hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--shadow-lg);
  transform: rotate(-0.6deg);
}
.hero-card::after {
  content: "";
  position: absolute; inset: -12px -12px auto auto;
  width: 80px; height: 80px;
  background: var(--accent-l);
  border-radius: 50%;
  z-index: -1;
}
.hero-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--s-3); margin-bottom: var(--s-4);
  border-bottom: 1px dashed var(--line);
}
.hero-card__title {
  font-family: var(--font-sans); font-weight: 600; font-size: 0.92rem;
  color: var(--ink-soft); letter-spacing: 0.02em;
}
.hero-card__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(47,122,82,0.15); }
.hero-stack { display: flex; flex-direction: column; gap: var(--s-3); }
.hero-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center; gap: var(--s-3);
  padding: var(--s-3);
  background: var(--bg-soft);
  border-radius: var(--r);
  font-size: 0.92rem;
}
.hero-row__icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.78rem;
  color: var(--ink);
}
.hero-row strong { font-weight: 600; }
.hero-row__tag {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  background: rgba(47,122,82,0.10);
  color: var(--good);
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.hero-row__tag.muted { background: rgba(45,74,92,0.10); color: var(--slate); }
.hero-row__tag.warn  { background: rgba(197,87,43,0.12); color: var(--accent-d); }

.hero-overlay {
  margin-top: var(--s-4);
  padding: var(--s-5) var(--s-4) var(--s-4);
  border: 1px solid var(--accent-d);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(245,227,214,0.45), #fff);
  position: relative;
}
.hero-overlay::before {
  content: "Workhax solution";
  position: absolute; top: -10px; left: 14px;
  font-family: var(--font-mono); font-size: 0.7rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent-d); color: #fff;
  padding: 0.18rem 0.6rem; border-radius: 4px;
}
.hero-overlay__title {
  font-weight: 600;
  margin: 0 0 var(--s-3);
  font-size: 0.97rem;
  color: var(--ink);
}
.hero-overlay__body { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.hero-overlay__list {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr; gap: 0.4rem;
}
.hero-overlay__list li {
  position: relative;
  padding-left: 1.55rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.hero-overlay__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.25em;
  width: 16px; height: 16px;
  background: var(--good);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 70% 70%; background-repeat: no-repeat; background-position: center;
  border-radius: 50%;
  flex: 0 0 auto;
}

/* ---- Flow steps (hero workflow visual) -------------------- */
.flow {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.flow-step {
  display: flex; align-items: center;
  gap: var(--s-3);
  padding: 0.4rem 0.65rem;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  font-size: 0.86rem;
  line-height: 1.3;
}
.flow-step__num {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1;
}
.flow-step__label {
  font-weight: 500;
  color: var(--ink);
}
.flow-step__label strong { font-weight: 600; }
.flow-step--repeat {
  background: rgba(197,87,43,0.08);
  border-color: var(--accent-l);
  font-weight: 600;
}
.flow-step--repeat .flow-step__num {
  background: var(--accent-d);
  color: #fff;
  border-color: var(--accent-d);
}
.flow-arrow {
  list-style: none;
  display: flex; align-items: center;
  margin: 0 0 0 11px;
  padding: 1px 0;
  height: 12px;
  color: var(--muted);
}
.flow-arrow svg { width: 10px; height: 10px; }
.hero-overlay__footer {
  margin: var(--s-3) 0 0;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
  font-size: 0.84rem;
  color: var(--ink);
  font-style: italic;
  line-height: 1.45;
}

/* ---- Trust strip ------------------------------------------ */
.trust {
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.trust__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--s-5);
}
.trust__label {
  font-size: 0.82rem; color: var(--muted); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.trust__items { display: flex; flex-wrap: wrap; gap: var(--s-6); align-items: center; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.trust__items span { display: inline-flex; align-items: center; gap: var(--s-2); }

/* ---- Section headings ------------------------------------- */
.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head h2 { margin-bottom: var(--s-3); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

/* ---- Problem section -------------------------------------- */
.problem { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem__grid {
  display: grid; gap: var(--s-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) { .problem__grid { grid-template-columns: 1fr; } }
.problem__col {
  padding: var(--s-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.problem__col--bad { background: #fdf6f1; }
.problem__col--good { background: #f1f7f3; border-color: rgba(47,122,82,0.25); }
.problem__col h3 {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem;
  margin-bottom: var(--s-4);
}
.problem__col h3 .badge {
  font-size: 0.72rem; padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(197,87,43,0.15); color: var(--accent-d);
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.problem__col--good h3 .badge { background: rgba(47,122,82,0.15); color: var(--good); }
.problem__col ul { list-style: none; padding: 0; margin: 0; }
.problem__col li {
  position: relative; padding-left: 1.6rem; margin-bottom: var(--s-3);
  color: var(--ink); font-size: 0.98rem;
}
.problem__col li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 14px; height: 14px;
  border-radius: 50%;
}
.problem__col--bad li::before { background: rgba(197,87,43,0.18); border: 2px solid var(--accent-d); }
.problem__col--good li::before {
  background: var(--good);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 70% 70%; background-repeat: no-repeat; background-position: center;
}

/* ---- Services / overlays cards ---------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
}
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform .2s var(--easing), box-shadow .2s var(--easing), border-color .2s var(--easing);
  position: relative;
  overflow: hidden;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent-l);
}
.service__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
  color: var(--accent-d);
}
.service__icon svg { width: 24px; height: 24px; }
.service h3 { margin-bottom: var(--s-3); font-family: var(--font-serif); font-weight: 500; font-size: 1.25rem; }
.service p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: var(--s-4); }
.service__example {
  font-size: 0.83rem; color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: var(--s-3);
  font-family: var(--font-mono);
  line-height: 1.5;
}
.service__example strong { color: var(--ink); font-family: var(--font-sans); }

/* ---- Process / steps -------------------------------------- */
.process { background: var(--bg-soft); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-5);
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem;
  margin-bottom: var(--s-4);
}
.step h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; margin-bottom: var(--s-2); }
.step p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }
.step__time {
  margin-top: var(--s-3);
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent-d);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Proof / case studies --------------------------------- */
.proof { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--s-7);
  align-items: center;
  padding: var(--s-7) 0;
  border-bottom: 1px solid var(--line-soft);
}
.case:last-child { border-bottom: 0; }
.case--reverse { direction: rtl; }
.case--reverse > * { direction: ltr; }
@media (max-width: 800px) {
  .case, .case--reverse { grid-template-columns: 1fr; gap: var(--s-5); direction: ltr; padding: var(--s-6) 0; }
}
.case__tag {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600;
  padding: 0.25rem 0.7rem;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border-radius: 999px;
  margin-bottom: var(--s-3);
  letter-spacing: 0.04em;
}
.case h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  margin-bottom: var(--s-3);
}
.case p { color: var(--ink-soft); font-size: 1rem; margin-bottom: var(--s-4); }
.case__metrics { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-4); }
.case__metric { font-size: 0.92rem; }
.case__metric strong {
  display: block; font-family: var(--font-serif); font-weight: 500;
  font-size: 1.85rem; color: var(--accent-d); line-height: 1.1; margin-bottom: 0.1rem;
}
.case__metric span { color: var(--muted); }
.case__visual {
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.case__visual::after {
  content: "";
  position: absolute; inset: -30% -10% auto auto;
  width: 60%; height: 80%;
  background: radial-gradient(closest-side, var(--accent-l), transparent 70%);
  pointer-events: none;
}
.case__visual-inner { position: relative; z-index: 1; }
.case__bar { display: flex; align-items: center; justify-content: space-between; padding: var(--s-2) var(--s-3); background: #fff; border-radius: 8px; border: 1px solid var(--line); margin-bottom: var(--s-3); font-size: 0.85rem; }
.case__bar-dots { display: flex; gap: 4px; }
.case__bar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.case__bar-dot:nth-child(1) { background: #e35d4d; }
.case__bar-dot:nth-child(2) { background: #f0bd3a; }
.case__bar-dot:nth-child(3) { background: #4eb56a; }
.case__bar-title { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); letter-spacing: 0; }

/* Mock dashboard rows for case visuals */
.mock-row {
  display: grid;
  grid-template-columns: 1fr 60px 90px;
  gap: var(--s-3);
  padding: var(--s-3);
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: var(--s-2);
  align-items: center;
  font-size: 0.85rem;
}
.mock-row__label { font-weight: 500; }
.mock-row__bar { background: var(--bg-soft); height: 8px; border-radius: 4px; overflow: hidden; }
.mock-row__bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.mock-row__pill {
  font-family: var(--font-mono); font-size: 0.75rem;
  padding: 0.18rem 0.5rem; border-radius: 999px;
  background: rgba(47,122,82,0.12); color: var(--good);
  text-align: center;
}
.mock-row__pill.amber { background: rgba(197,87,43,0.12); color: var(--accent-d); }
.mock-row__pill.slate { background: rgba(45,74,92,0.10); color: var(--slate); }

/* Case 1 — integrated scorecard mock */
.mock-scorecard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--s-3);
  margin-bottom: var(--s-3);
}
.mock-scorecard__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-2);
  border-bottom: 1px dashed var(--line);
}
.mock-scorecard__case {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.mock-scorecard .mock-row {
  margin-bottom: var(--s-2);
  border: 0;
  background: transparent;
  padding: 0.35rem 0;
  font-size: 0.83rem;
}
.mock-scorecard .mock-row:last-child { margin-bottom: 0; }
.mock-scorecard .mock-row__pill {
  font-size: 0.7rem;
  padding: 0.12rem 0.4rem;
}

.mock-draft {
  background: #fff;
  border: 1px solid var(--accent-l);
  border-radius: 8px;
  padding: var(--s-3);
  position: relative;
}
.mock-draft__label {
  display: inline-block;
  position: absolute;
  top: -8px; left: 12px;
  background: var(--accent-d);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.14rem 0.5rem;
  border-radius: 4px;
}
.mock-draft__body {
  margin: 0.4rem 0 var(--s-3);
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.5;
  font-style: italic;
}
.mock-draft__actions {
  display: flex; gap: var(--s-2);
  justify-content: flex-end;
}
.mock-draft__btn {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.mock-draft__btn--primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Case 2 — source-stitching visual */
.mock-sources {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--s-3);
  margin-bottom: var(--s-3);
}
.mock-source {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.32rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.mock-source svg { flex: 0 0 auto; color: var(--slate); }
.mock-source::after {
  content: "→";
  margin-left: 0.45rem;
  color: var(--muted);
  font-weight: 400;
}
.mock-source--out {
  background: var(--accent-d);
  color: #fff;
  border-color: var(--accent-d);
}
.mock-source--out svg { color: #fff; }
.mock-source--out::after { content: ""; margin: 0; }

/* ---- Quote / testimonial style ---------------------------- */
.quote {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  padding: var(--s-5) var(--s-6);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  font-family: var(--font-serif);
  font-size: 1.2rem; line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
.quote__cite { display: block; margin-top: var(--s-3); font-family: var(--font-sans); font-size: 0.9rem; color: var(--muted); font-style: normal; }

/* ---- Stack / capabilities --------------------------------- */
.stack { background: var(--bg-soft); }
.stack__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--s-3);
}
.stack__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-4);
  text-align: left;
}
.stack__item h4 { margin-bottom: var(--s-1); font-size: 0.95rem; }
.stack__item p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---- About strip ------------------------------------------ */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: var(--s-7);
  align-items: center;
}
@media (max-width: 800px) { .about__grid { grid-template-columns: 1fr; } }
.about__portrait {
  width: 100%; aspect-ratio: 1; max-width: 320px;
  background: linear-gradient(135deg, var(--accent-l), var(--bg-soft));
  border-radius: var(--r-lg);
  display: flex; align-items: flex-end; justify-content: center;
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.about__portrait svg { width: 80%; height: 90%; }
.about p { color: var(--ink-soft); font-size: 1.05rem; }
.about__sig {
  display: inline-block; margin-top: var(--s-4);
  font-family: var(--font-serif); font-style: italic; font-size: 1.05rem;
  color: var(--ink);
}

/* ---- FAQ --------------------------------------------------- */
.faq {  }
.faq__list { display: flex; flex-direction: column; gap: var(--s-3); }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  transition: border-color .2s var(--easing), box-shadow .2s var(--easing);
}
.faq details[open] { border-color: var(--accent-l); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  font-family: var(--font-sans);
  font-weight: 600; font-size: 1.02rem;
  padding: var(--s-2) 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-serif); font-weight: 400; font-size: 1.6rem;
  color: var(--accent-d); transition: transform .2s var(--easing);
  flex: 0 0 auto; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p, .faq details > ul {
  margin-top: var(--s-3);
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---- CTA banner ------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, #1a2332, #2d4a5c);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--s-8);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: -30% auto auto -10%;
  width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(197,87,43,0.35), transparent 70%);
  pointer-events: none;
}
.cta-banner__inner { position: relative; z-index: 1; max-width: 720px; }
.cta-banner h2 { color: #fff; margin-bottom: var(--s-3); }
.cta-banner p { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin-bottom: var(--s-5); }
.cta-banner .btn--accent { background: var(--accent-d); }
.cta-banner .btn--accent:hover { background: var(--accent-dd); color: #fff; }
.cta-banner__cta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-3);
}
.cta-banner__secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.cta-banner__secondary:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.cta-banner__mini {
  margin-top: var(--s-4);
  font-size: 0.88rem; color: rgba(255,255,255,0.65);
}

/* ---- Footer ----------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: var(--s-7) 0 var(--s-5);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-6);
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
.footer__col h4 { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3); }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: var(--s-2); }
.footer__col a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.footer__col a:hover { color: var(--accent-d); text-decoration: underline; }
.footer__about p { color: var(--ink-soft); font-size: 0.95rem; margin-top: var(--s-3); max-width: 320px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  gap: var(--s-3);
}

/* ---- Forms ------------------------------------------------- */
.form-page { padding: var(--s-8) 0; }
.form-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--s-8);
}
@media (max-width: 880px) { .form-page__grid { grid-template-columns: 1fr; gap: var(--s-7); } }

.form-side h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.form-side p.lede { margin-bottom: var(--s-5); }
.form-side ul { list-style: none; padding: 0; }
.form-side ul li {
  position: relative; padding-left: 1.7rem; margin-bottom: var(--s-3);
  color: var(--ink-soft);
}
.form-side ul li::before {
  content: ""; position: absolute; left: 0; top: 0.4em;
  width: 18px; height: 18px;
  background: var(--good);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 70% 70%; background-repeat: no-repeat; background-position: center;
  border-radius: 50%;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) { .form-card { padding: var(--s-5); } }

.field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-5); }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field .req { color: var(--accent-d); }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="tel"],
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
  transition: border-color .15s var(--easing), box-shadow .15s var(--easing), background .15s var(--easing);
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(197,87,43,0.15);
}
.field input:invalid:not(:placeholder-shown) { border-color: var(--accent-d); }

.field-group { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 540px) { .field-group { grid-template-columns: 1fr; } }

.choice {
  display: flex; flex-direction: column; gap: var(--s-2);
}
.choice label.option {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color .15s var(--easing), background .15s var(--easing);
}
.choice label.option:hover { border-color: var(--accent-l); background: #fff; }
.choice label.option input { margin-top: 4px; accent-color: var(--accent); }
.choice label.option:has(input:checked) {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(197,87,43,0.10);
}
.option__hint { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-top: 2px; }

.form-card .submit {
  margin-top: var(--s-3);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4);
}
.form-card__legal { font-size: 0.82rem; color: var(--muted); margin: var(--s-4) 0 0; }

/* Honeypot */
.field--hp { position: absolute; left: -9999px; }

/* ---- Thanks page ------------------------------------------ */
.thanks {
  text-align: center;
  padding: var(--s-9) 0;
}
.thanks__icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(47,122,82,0.12);
  color: var(--good);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-5);
}
.thanks__icon svg { width: 36px; height: 36px; }
.thanks h1 { margin-bottom: var(--s-3); }
.thanks p.lede { margin: 0 auto var(--s-6); }
.thanks__steps { max-width: 540px; margin: 0 auto; text-align: left; background: var(--bg-soft); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); }
.thanks__steps li { color: var(--ink-soft); }
.thanks__steps li strong { color: var(--ink); }

/* ---- Privacy page ----------------------------------------- */
.legal-page { padding: var(--s-8) 0; }
.legal-page article { max-width: 720px; margin: 0 auto; }
.legal-page h2 { font-size: 1.4rem; margin-top: var(--s-6); }
.legal-page p { color: var(--ink-soft); }

/* ---- Utility ---------------------------------------------- */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--s-3); }
.mt-5 { margin-top: var(--s-5); }
.mb-0 { margin-bottom: 0; }
