/* ============================================================
   VERRO — BASE
   Brand tokens · Reset · Typography · Shared utilities
   ============================================================ */

/* Fonts are loaded from HTML (preconnect + async stylesheet) so they are not
   nested behind this file in the critical request chain. See site.js/head. */

/* ── Brand tokens ─────────────────────────────────── */
:root {
  /* Core palette */
  --fairway:   #1F3A2E;
  --bentgrass: #5C8A6E;
  --brass:     #C9A227;
  --mist:      #EDEAE2;
  --ink:       #14201B;
  --clay:      #B5573D;
  --slate:     #5B6B76;

  /* AA-safe text variants of the brand accents. --bentgrass and --brass read
     fine as text on dark (ink/fairway) backgrounds and are fine for
     decorative use (lines, dots, borders, fills) anywhere, but both fall
     short of 4.5:1 as small text on light backgrounds — use the -text
     variants below for that case instead of the raw accent. */
  --bentgrass-text:    #4a6f57;
  --bentgrass-on-dark: #82ac93;
  --brass-text:        #786115;

  /* Surfaces */
  --canvas:   #F7F5F0;   /* warm off-white UI surface */
  --paper:    #FFFFFF;
  --hairline: #E3DED2;

  /* Text — matches DS ink-70 / ink-45 */
  --text-primary:   var(--ink);
  --text-secondary: rgba(20, 32, 27, 0.70);
  --text-tertiary:  rgba(20, 32, 27, 0.65);
  --text-tertiary-on-dark: rgba(237, 234, 226, 0.58);
  --ink-70:         rgba(20, 32, 27, 0.70);
  --ink-45:         rgba(20, 32, 27, 0.45);

  /* Radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 32, 27, 0.06);
  --shadow-md: 0 4px 16px rgba(20, 32, 27, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 32, 27, 0.12);
  --shadow-xl: 0 24px 64px rgba(20, 32, 27, 0.16);

  /* Spacing scale */
  --s1:  4px;
  --s2:  8px;
  --s3:  12px;
  --s4:  16px;
  --s5:  20px;
  --s6:  24px;
  --s8:  32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;
  --s20: 80px;
  --s24: 96px;
  --s32: 128px;

  /* Section spacing */
  --section-v: 96px;
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

ul, ol { list-style: none; }

/* ── Layout ───────────────────────────────────────── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.wrap--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .wrap, .wrap--narrow { padding: 0 24px; }
}

/* ── Typography ───────────────────────────────────── */

/* Display — major hero titles */
.t-display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 1.03;
  letter-spacing: -2px;
}

/* H1 — page heroes */
.t-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

/* H2 — section titles */
.t-h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.8px;
}

/* H3 — card titles, feature names */
.t-h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

/* Serif italic — editorial emphasis */
.t-serif {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 400;
}

/* Mono — data, labels, eyebrows */
.t-mono {
  font-family: 'IBM Plex Mono', monospace;
}

/* ── Eyebrow ──────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bentgrass-text);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--brass);
  flex-shrink: 0;
}

.eyebrow--light {
  color: var(--brass);
}

.eyebrow--light::before {
  background: var(--bentgrass);
}

.eyebrow--centered {
  display: flex;
  justify-content: center;
}

/* ── Section scaffold ─────────────────────────────── */
.section-head {
  max-width: 620px;
  margin-bottom: var(--s16);
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.8px;
  color: var(--ink);
}

.section-desc {
  font-family: 'Newsreader', serif;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: var(--s4);
  max-width: 600px;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.14s ease, box-shadow 0.14s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--fairway);
  color: var(--mist);
  border-color: var(--fairway);
}

.btn--primary:hover {
  background: #16291f;
  border-color: #16291f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(20, 32, 27, 0.22);
}

.btn--secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--hairline);
}

.btn--secondary:hover {
  border-color: var(--fairway);
  background: var(--paper);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.10);
  color: var(--mist);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn--brass {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.btn--brass:hover {
  background: #b8911f;
  border-color: #b8911f;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}

/* ── Scorecard divider (brand motif) ──────────────── */
.scorecard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.scorecard-row:first-child { border-top: 1px solid var(--hairline); }

.scorecard-label { color: var(--text-secondary); text-transform: uppercase; letter-spacing: 2px; font-size: 11px; }

.scorecard-value { font-weight: 500; color: var(--ink); }

/* ── Utility ──────────────────────────────────────── */
.brass-rule {
  width: 40px;
  height: 2px;
  background: var(--brass);
  margin: var(--s6) 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Reduced motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
