/* =============================================================================
 * VentureOff Design Tokens
 * -----------------------------------------------------------------------------
 * Single source of truth for color, typography, spacing, radius, shadow, and
 * gradient values used across the web app, marketing site, and email
 * templates. Reference these via var(--token-name) instead of hard-coding.
 * ========================================================================== */

:root {
  /* ---------------------------------------------------------------------------
   * COLOR — Primary Blue (brand)
   * The hero brand color is --color-primary-500 (#2F5597). Most CTAs, links,
   * and active states use it. The 700/600 ramps are for deep backgrounds and
   * the 400/300 ramps are for the bright end of brand gradients and accents.
   * ------------------------------------------------------------------------ */
  --color-primary-700: #1E3560;   /* deepest navy — outline buttons, deep gradient stops */
  --color-primary-600: #243F75;   /* dark brand — secondary gradient start, dark UI */
  --color-primary-500: #2F5597;   /* brand workhorse — primary buttons, links, charts */
  --color-primary-400: #60A5FA;   /* bright sky — primary gradient end-stop */
  --color-primary-300: #93C5FD;   /* soft brand — pill backgrounds, light accents */
  --color-primary-200: #BFDBFE;   /* tinted surfaces, hover states on light bg */
  --color-primary-100: #E0F2FE;   /* hero-light gradient start, info backgrounds */

  /* Aliases for the most-used tokens */
  --color-brand:        var(--color-primary-500);
  --color-brand-deep:   var(--color-primary-700);
  --color-brand-bright: var(--color-primary-400);

  /* ---------------------------------------------------------------------------
   * COLOR — Neutrals (Tailwind slate scale)
   * Used for text, borders, backgrounds, and surfaces.
   * ------------------------------------------------------------------------ */
  --color-slate-950: #0A0F1E;     /* social cover deepest stop */
  --color-slate-900: #0F172A;     /* hero-dark base, headings on light */
  --color-slate-800: #1E293B;     /* dark surfaces, footer */
  --color-slate-700: #334155;
  --color-slate-600: #475569;     /* body text on light */
  --color-slate-500: #64748B;     /* muted text, captions */
  --color-slate-400: #94A3B8;     /* placeholder, icons, footer links */
  --color-slate-300: #CBD5E1;     /* form borders */
  --color-slate-200: #E2E8F0;     /* dividers, card borders */
  --color-slate-100: #F1F5F9;     /* alt surface */
  --color-slate-50:  #F8FAFC;     /* page background, light surface */

  /* ---------------------------------------------------------------------------
   * COLOR — Hero / Background accents
   * ------------------------------------------------------------------------ */
  --color-hero-mid:    #1E3A5F;   /* mid-stop of the hero-dark gradient */

  /* ---------------------------------------------------------------------------
   * COLOR — Semantic (status)
   * ------------------------------------------------------------------------ */
  --color-success-700: #059669;
  --color-success-500: #10B981;
  --color-success-100: #BBF7D0;
  --color-success-50:  #F0FDF4;

  --color-warning-500: #F59E0B;

  --color-danger-700:  #DC2626;
  --color-danger-500:  #EF4444;

  /* ---------------------------------------------------------------------------
   * COLOR — Accent (purple, used in chat avatars + email icon)
   * ------------------------------------------------------------------------ */
  --color-accent-purple-700: #7C3AED;
  --color-accent-purple-400: #A78BFA;

  /* ---------------------------------------------------------------------------
   * COLOR — Surface & text aliases
   * Use these in components rather than the raw scales when possible.
   * ------------------------------------------------------------------------ */
  --color-bg-page:        var(--color-slate-50);
  --color-bg-surface:     #FFFFFF;
  --color-bg-surface-alt: var(--color-slate-100);
  --color-bg-inverse:     var(--color-slate-900);

  --color-text-primary:   var(--color-slate-900);
  --color-text-body:      var(--color-slate-800);
  --color-text-muted:     var(--color-slate-500);
  --color-text-subtle:    var(--color-slate-400);
  --color-text-on-brand:  #FFFFFF;
  --color-text-on-dark:   var(--color-slate-50);

  --color-border-default: var(--color-slate-200);
  --color-border-input:   var(--color-slate-300);
  --color-border-strong:  var(--color-slate-400);

  /* ---------------------------------------------------------------------------
   * GRADIENTS — named, reusable
   * ------------------------------------------------------------------------ */
  --gradient-btn-primary:   linear-gradient(135deg, #2F5597, #60A5FA);
  --gradient-btn-secondary: linear-gradient(135deg, #243F75, #4A90E2);
  --gradient-btn-deep:      linear-gradient(135deg, #1E3560, #3B7DD8);

  --gradient-hero-dark:     linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0F172A 100%);
  --gradient-hero-light:    linear-gradient(to bottom, #E0F2FE, #FFFFFF);
  --gradient-surface-dark:  linear-gradient(135deg, #0F172A, #1E293B);

  --gradient-accent-purple: linear-gradient(135deg, #7C3AED, #A78BFA);
  --gradient-accent-sky:    linear-gradient(135deg, #60A5FA, #A78BFA);

  --gradient-success:       linear-gradient(135deg, #059669, #10B981);
  --gradient-blog-card:     linear-gradient(135deg, #1E3A5F, #2F5597);

  /* ---------------------------------------------------------------------------
   * TYPOGRAPHY
   * Inter is the body/UI face. Montserrat is reserved for hero / display
   * headlines on the marketing page only. Email templates fall back to the
   * system stack because most mail clients block webfonts.
   * ------------------------------------------------------------------------ */
  --font-family-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-family-display: 'Montserrat', 'Inter', sans-serif;
  --font-family-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --font-family-email:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Weights actually used in the codebase */
  --font-weight-light:      300;
  --font-weight-regular:    400;
  --font-weight-semibold:   600;
  --font-weight-bold:       700;
  --font-weight-extrabold:  800;
  --font-weight-black:      900;

  /* Type scale (rem-based, 16px root) */
  --font-size-xs:   0.75rem;   /* 12 */
  --font-size-sm:   0.875rem;  /* 14 */
  --font-size-base: 1rem;      /* 16 */
  --font-size-md:   1.125rem;  /* 18 */
  --font-size-lg:   1.25rem;   /* 20 */
  --font-size-xl:   1.5rem;    /* 24 */
  --font-size-2xl:  1.875rem;  /* 30 */
  --font-size-3xl:  2.25rem;   /* 36 */
  --font-size-4xl:  2.8rem;    /* 44.8 — matches landing-page hero h2 */
  --font-size-5xl:  3.5rem;    /* 56 */

  --line-height-tight:   1.15;
  --line-height-snug:    1.3;
  --line-height-normal:  1.6;  /* body default in index.html */
  --line-height-relaxed: 1.75;

  /* ---------------------------------------------------------------------------
   * SPACING (4px base scale)
   * ------------------------------------------------------------------------ */
  --space-0:   0;
  --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-20:  5rem;      /* 80 */
  --space-24:  6rem;      /* 96 */

  /* ---------------------------------------------------------------------------
   * RADIUS
   * ------------------------------------------------------------------------ */
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-md:   8px;     /* form inputs, small cards */
  --radius-lg:   12px;    /* cards */
  --radius-xl:   16px;    /* hero cards */
  --radius-2xl:  24px;
  --radius-pill: 9999px;

  /* ---------------------------------------------------------------------------
   * SHADOWS
   * ------------------------------------------------------------------------ */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 24px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.18);
  --shadow-brand: 0 8px 24px rgba(47, 85, 151, 0.30);

  /* ---------------------------------------------------------------------------
   * MOTION
   * ------------------------------------------------------------------------ */
  --duration-fast:   120ms;
  --duration-base:   200ms;
  --duration-slow:   320ms;
  --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-emphasis: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* ---------------------------------------------------------------------------
   * Z-INDEX
   * ------------------------------------------------------------------------ */
  --z-base:    0;
  --z-raised:  10;
  --z-sticky:  100;
  --z-overlay: 1000;
  --z-modal:   1100;
  --z-toast:   1200;

  /* ---------------------------------------------------------------------------
   * LAYOUT
   * ------------------------------------------------------------------------ */
  --container-narrow:  640px;
  --container-default: 1080px;
  --container-wide:    1280px;
  --breakpoint-sm:     640px;
  --breakpoint-md:     768px;
  --breakpoint-lg:     1024px;
  --breakpoint-xl:     1280px;
}

/* =============================================================================
 * Self-hosted webfonts (optional)
 * Uncomment to drop the Google Fonts <link> tags in base.html / index.html and
 * serve the .ttf files we ship under /static/fonts/ directly. Better
 * performance and removes a third-party dependency.
 * ========================================================================== */

/*
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/inter/InterVariable.ttf') format('truetype-variations');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/montserrat/Montserrat-ExtraBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/static/fonts/montserrat/Montserrat-Black.ttf') format('truetype');
}
*/

/* =============================================================================
 * Base element defaults derived from the tokens
 * ========================================================================== */
body {
  font-family: var(--font-family-sans);
  font-weight: var(--font-weight-regular);
  font-size:   var(--font-size-base);
  line-height: var(--line-height-normal);
  color:       var(--color-text-body);
  background:  var(--color-bg-page);
}

h1, h2, h3, h4 {
  line-height: var(--line-height-snug);
}

/* =============================================================================
 * Homepage redesign tokens (Phase 1 hero). Appended from the revision-5
 * handoff (tokens-additions.css). Nothing above uses a --vo- name: this file's
 * existing names are --color-*, --font-*, --space-* and so on. Kept as-is.
 * --vo-font-display is Montserrat and --vo-font-body is Inter, the same faces
 * already named by --font-family-display and --font-family-sans.
 * Loaded only by the noindexed preview (templates/home_v2.html).
 * ========================================================================== */
:root{
  /* ---- Neutrals ---- */
  --vo-ink-950:#0B1220;
  --vo-ink-900:#0F172A;           /* existing theme colour; white on it = 17.85:1 */
  --vo-text:#1C1917;
  --vo-muted:#57534E;
  --vo-paper:#F8F5F1;
  --vo-line:#E7E2DA;
  --vo-white:#FFFFFF;
  --vo-focus:#1D4ED8;             /* focus ring on light surfaces (6.17:1) */
  --vo-focus-on-dark:#FFB020;     /* focus ring on dark surfaces (9.76:1) */

  /* ---- Ski ---- */
  --vo-ski-950:#0B1B33;
  --vo-ski-700:#24457D;
  --vo-ski-600:#2F5597;           /* existing brand; white on it 7.32:1. NEVER as text on dark */
  --vo-ski-300:#A9CBFF;           /* accent text on dark (10.4:1 on --vo-ski-950) */
  --vo-ski-50:#EAF1FB;
  --vo-brand-400:#60A5FA;         /* decoration only on light; fine on dark */

  /* ---- Surf ---- */
  --vo-surf-950:#06292D;
  --vo-surf-700:#0B6E78;          /* white on it 5.97:1 */
  --vo-surf-300:#7FD6D0;          /* accent text on dark (9.12:1 on --vo-surf-950) */
  --vo-surf-50:#E6F5F3;
  --vo-sun-600:#B8451A;
  --vo-sun-300:#FFC48A;

  /* ---- Fonts (map to the names tokens.css already uses, if different) ---- */
  --vo-font-display:"Montserrat",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;   /* 700/800 */
  --vo-font-body:"Inter",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;           /* 400/600/700 */

  /* ---- Type scale (rem; 1rem = 16px) ---- */
  --vo-fs-h1:clamp(1.875rem, .9rem + 2.9vw, 3.125rem);   /* 30px at 390, ~37px at 768, 50px from ~1250px */
  --vo-fs-h3:clamp(1.0625rem, 1rem + .3vw, 1.25rem);     /* 17px mobile .. 20px desktop */
  --vo-fs-lead:clamp(1rem, .95rem + .25vw, 1.125rem);    /* 16px .. 18px */
  --vo-fs-body:1rem;
  --vo-fs-small:.875rem;                                  /* 14px */
  --vo-fs-eyebrow:.75rem;                                 /* 12px, minimum anywhere */
  --vo-fs-button:.8125rem;                                /* 13px, uppercase, +0.08em */
  --vo-lh-h1:1.08;

  /* ---- Spacing (4px base) ---- */
  --vo-space-1:.25rem; --vo-space-2:.5rem; --vo-space-3:.75rem; --vo-space-4:1rem;
  --vo-space-6:1.5rem; --vo-space-8:2rem; --vo-space-12:3rem; --vo-space-16:4rem;

  /* ---- Shape ---- */
  --vo-radius-card:1.375rem;      /* 22px */
  --vo-radius-pill:999px;
  --vo-radius-field:.75rem;       /* 12px */
  --vo-tap:2.75rem;               /* 44px minimum target */

  /* ---- Layout ---- */
  --vo-hdr-h:3.5rem;              /* 56px; 68px from 1200px (set in hero.css) */
  --vo-container:75rem;           /* 1200px */

}
