/* ============================================================================
   bespoke. brand system  (rebrand-2026)
   One source of truth for the marketing site, the demo gate and the demo CRM.
   Palette:  white page, ink text, a single deep-emerald accent used sparingly.
   Type:     Geist (headings 600, tight tracking; body 400) + Geist Mono labels.
   Retires:  the Edition system (Fraunces + red #C41E2B).
   ========================================================================== */

:root {
  /* Core palette (brief-exact) */
  --bg:        #FFFFFF;  /* page background            */
  --ink:       #0A0A0A;  /* text + primary buttons     */
  --body:      #4A4A4A;  /* body copy                  */
  --muted:     #6B6B6B;  /* secondary / captions       */
  --hairline:  #EAEAEA;  /* thin rules, borders        */
  --panel:     #F5F5F4;  /* light panels               */

  /* The one accent. Use sparingly: the wordmark period, step numbers,
     "Contracted"/"Won" states, the highlighted Growth column. No mint,
     no neon, no gradient, no glow. */
  --emerald:       #0B5D45;
  --emerald-tint:  #0B5D4512;  /* ~7% wash for a single highlighted column */
  --emerald-fg:    #2E9E78;    /* lighter emerald for accents on dark/ink surfaces */

  /* Shape + rhythm */
  --radius:     8px;   /* 6-10px max                 */
  --radius-sm:  6px;
  --radius-lg:  10px;
  --rule:       1px solid var(--hairline);
  --maxw:       1120px;
  --gutter:     16px;  /* mobile side gutter          */

  /* Type scale */
  --font-sans:  "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.03em;  /* tight negative tracking on headlines */
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }

p { color: var(--body); margin: 0 0 1rem; }

a { color: inherit; text-decoration: none; }

/* The one allowed editorial touch: an italic accent word in a headline.
   Keep it to 2-3 uses on the whole page. */
.ital { font-style: italic; font-weight: 500; }

/* Small uppercase mono labels and numbers. */
.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Wordmark ------------------------------------------------------------- */
/* Lowercase "bespoke" with an emerald period. */
.wordmark {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--emerald);
}
.wordmark::after {
  content: "";
}
/* When the period is authored inline instead, use .dot on the span. */
.dot { color: var(--emerald); }

/* ---- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: clamp(56px, 9vw, 112px) 0; }
.rule { border: 0; border-top: var(--rule); margin: 0; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 0.82em 1.5em;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: opacity .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { opacity: 0.88; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn--ghost:hover { border-color: var(--ink); opacity: 1; }

/* ---- Pipeline-state accents (CRM) ---------------------------------------- */
/* Only "Contracted" and "Won" carry the emerald. Everything else stays ink. */
.state-won, .state-contracted { color: var(--emerald); font-weight: 600; }

/* ---- Accessibility -------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
