/* ============================================================
   LandDesk.ai — colors_and_type.css
   Primitive tokens. Marketing site + product app share this base.
   Source of truth: reference/BRAND.md §3 + reference/sage-wash-token-spec.md
   ============================================================ */

/* ─── Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Light mode (primary) ──────────────────────────────── */
:root {
  /* Surfaces — Sage Wash */
  --bg-primary:    #F4F6F4;
  --bg-secondary:  #E8ECE8;
  --bg-tertiary:   #DAE0DA;
  --border:        #B8BEB8;
  --border-strong: #96A096;

  /* Text */
  --text-primary:   #1A1D1A;
  --text-secondary: #6B7C6B;
  --text-tertiary:  #96A096;

  /* Accent — Emerald (CTA / links / brand) */
  --accent:       #059669;
  --accent-hover: #047857;
  --accent-light: #D1FAE5;

  /* Semantic — distinct from accent */
  --success: #0D9488;   /* Teal  */
  --warning: #D97706;   /* Amber */
  --danger:  #DC2626;   /* Red   */
  --info:    #4F46E5;   /* Indigo — INFO ONLY, never brand */

  /* Radius — lean sm/md; lg rare */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Shadow — minimal by policy */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
  --shadow-hero: 0 20px 50px rgba(26, 29, 26, 0.15); /* reserved: hero product screenshot */

  /* Spacing — 4px grid */
  --space-1:  0.25rem;   /* 4  */
  --space-2:  0.5rem;    /* 8  */
  --space-3:  0.75rem;   /* 12 */
  --space-4:  1rem;      /* 16 */
  --space-5:  1.25rem;   /* 20 */
  --space-6:  1.5rem;    /* 24 */
  --space-8:  2rem;      /* 32 */
  --space-10: 2.5rem;    /* 40 */
  --space-12: 3rem;      /* 48 */
  --space-16: 4rem;      /* 64 */
  --space-24: 6rem;      /* 96 */

  /* Type — families */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Type — sizes (marketing, desktop) */
  --text-wordmark:     88px;  /* Hero wordmark — LandDesk.ai */
  --text-wordmark-ai:  58px;  /* the .ai, in --accent */
  --text-h1:           48px;
  --text-h2:           32px;
  --text-h3:           20px;
  --text-positioning:  24px;
  --text-body-lg:      17px;
  --text-body:         15px;
  --text-body-sm:      13px;
  --text-label:        11px;

  /* Type — line heights */
  --lh-tight: 1.1;
  --lh-snug:  1.3;
  --lh-body:  1.6;
  --lh-loose: 1.75;
}

/* ─── Dark mode ─────────────────────────────────────────── */
[data-theme="dark"] {
  --bg-primary:    #181A18;
  --bg-secondary:  #1E221E;
  --bg-tertiary:   #272B27;
  --border:        #353B35;
  --border-strong: #4E564E;

  --text-primary:   #F4F6F4;
  --text-secondary: #9EA89E;
  --text-tertiary:  #6B7C6B;

  --accent:       #10B981;
  --accent-hover: #34D399;
  --accent-light: #064E3B;

  --success: #14B8A6;
  --warning: #F59E0B;
  --danger:  #EF4444;
  --info:    #6366F1;
}

/* ─── Base reset + typography defaults ──────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
code, pre, kbd, samp { font-family: var(--font-mono); }

/* ─── Display classes (use as utility) ─────────────────── */
.t-wordmark {
  font-size: var(--text-wordmark);
  font-weight: 600;
  letter-spacing: -3.3px;
  line-height: 1;
}
.t-wordmark .ai {
  font-size: var(--text-wordmark-ai);
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -1.5px;
}
.t-positioning {
  font-size: var(--text-positioning);
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.35;
}
.t-h1 { font-size: var(--text-h1); font-weight: 600; letter-spacing: -1.2px; line-height: 1.1; }
.t-h2 { font-size: var(--text-h2); font-weight: 600; letter-spacing: -0.6px; line-height: 1.2; }
.t-h3 { font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.2px; line-height: 1.35; }
.t-body-lg { font-size: var(--text-body-lg); font-weight: 400; line-height: 1.6; }
.t-body    { font-size: var(--text-body);    font-weight: 400; line-height: 1.55; }
.t-body-sm { font-size: var(--text-body-sm); font-weight: 400; line-height: 1.5; }
.t-label {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.t-label-accent { color: var(--accent); }

.t-mono { font-family: var(--font-mono); }
.t-mute { color: var(--text-secondary); }
.t-dim  { color: var(--text-tertiary); }

/* ─── Mobile overrides (hero) ──────────────────────────── */
@media (max-width: 640px) {
  :root {
    --text-wordmark:    56px;
    --text-wordmark-ai: 38px;
    --text-h1:          36px;
    --text-h2:          26px;
    --text-positioning: 20px;
  }
}
