/* Fonts: the app's type is the uploaded IvyMode + Questrial (@font-face in the
   Stencil Tweaks block below). No Google Fonts are imported here: an @import in
   this file blocks the first paint of every page. Playfair Display, used only
   by the homepage testimonial, is loaded by the homepage route itself. */

/* ════════════════════════════════════════════════════════════════════
   Darcy — Misty Blue brand tokens
   One cool-toned palette for the whole app. No warm accents (orange,
   coral, peach, terracotta, rust, brass) anywhere.
     misty blue      → --primary          (brand, buttons, links, focus)
     deep muted blue → --emphasis         (emphasis, highlights, contrast)
     cool off-white  → --background       (page)
     cool stone gray → --secondary / --background-secondary (surfaces)
     charcoal blue   → --foreground       (primary text)
   Functional tones (--tone-*) carry status, category and chart colour
   so no component hard-codes a hue.
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: #F6F8FA;
  --foreground: #2A323C;
  --card: #FDFEFF;
  --card-foreground: oklch(0.27 0.018 252);
  --popover: oklch(0.996 0.002 240);
  --popover-foreground: oklch(0.27 0.018 252);
  --primary: #567493;
  --primary-foreground: oklch(0.985 0.004 240);
  --secondary: oklch(0.948 0.006 245);
  --secondary-foreground: oklch(0.32 0.03 252);
  --muted: oklch(0.952 0.006 245);
  --muted-foreground: #66707D;
  --accent: oklch(0.945 0.01 245);
  --accent-foreground: oklch(0.32 0.03 252);
  --destructive: oklch(0.53 0.16 18);
  --destructive-foreground: oklch(0.985 0.004 240);
  --border: #DCE1E7;
  --input: oklch(0.89 0.009 245);
  --ring: #567493;
  --success: oklch(0.53 0.07 175);
  --warning: oklch(0.5 0.06 255);
  --chart-1: oklch(0.535 0.055 250);
  --chart-2: oklch(0.4 0.055 256);
  --chart-3: oklch(0.68 0.045 245);
  --chart-4: oklch(0.53 0.07 175);
  --chart-5: oklch(0.55 0.02 250);
  --sidebar: oklch(0.966 0.006 245);
  --sidebar-foreground: oklch(0.27 0.018 252);
  --sidebar-primary: oklch(0.535 0.055 250);
  --sidebar-primary-foreground: oklch(0.985 0.004 240);
  --sidebar-accent: oklch(0.93 0.012 245);
  --sidebar-accent-foreground: oklch(0.32 0.03 252);
  --sidebar-border: oklch(0.905 0.008 245);
  --sidebar-ring: oklch(0.535 0.055 250);

  /* ── brand emphasis — deep muted blue ─────────────────────────── */
  --emphasis: oklch(0.42 0.055 256);
  --emphasis-foreground: oklch(0.985 0.004 240);              /* text on a solid emphasis fill */
  --emphasis-ink: oklch(0.34 0.05 256);                       /* text on an emphasis-soft surface */
  --emphasis-soft: color-mix(in oklch, var(--emphasis) 10%, var(--background));

  /* ── brand mist — the lighter Misty Blue, for large calm fills ─── */
  --mist: oklch(0.68 0.045 248);

  /* ── functional tones (status · category · chart) ─────────────── */
  --tone-sage: oklch(0.52 0.07 175);    /* done, healthy, published, resurface */
  --tone-mist: oklch(0.55 0.055 245);   /* in progress, partly there, update */
  --tone-deep: oklch(0.42 0.06 258);    /* campaigns, promotions, high emphasis */
  --tone-slate: oklch(0.5 0.03 255);    /* neutral, ready, distribution */
  --tone-alert: oklch(0.52 0.13 15);    /* needs attention, gaps, overdue */

  /* ── customer journey (stage + coverage colour, journey screens only) ── */
  --journey-discover: oklch(0.52 0.09 295);    /* Discovery stage: soft violet */
  --journey-consider: oklch(0.5 0.075 212);    /* Consideration stage: teal */
  --journey-opportunity: oklch(0.55 0.11 72);  /* "Opportunity" coverage pill: amber */

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.962 0.006 245);
  --surface-hover:   color-mix(in srgb, var(--foreground) 4%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 8%, var(--background));
  --surface-elevated: oklch(0.998 0.002 240);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.94 0.006 245);
  --border-muted: oklch(0.922 0.007 245);
  --border-strong: oklch(0.83 0.012 248);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.42 0.022 252);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-hover: #46617E;
  --primary-muted: color-mix(in srgb, var(--primary) 14%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 8%,  var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 5%,  var(--background));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.535 0.055 250 / 0.38);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.53 0.16 18);
  --error-foreground: oklch(0.985 0.004 240);
  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.5rem;
  --radius-none: 0rem;
  --radius-sm: 0.3rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: 'IvyprestoHeadline', sans-serif;
  --font-sans: 'SweetSansPro', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 300;
  --line-height-display: 1.06;
  --tracking-display: -0.015em;
  --font-weight-body: 400;
  --line-height-body: 1.55;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(30, 42, 58, 0.05);
  --shadow-md: 0 4px 16px rgba(30, 42, 58, 0.06);
  --shadow-lg: 0 14px 36px rgba(30, 42, 58, 0.09);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.3rem;
}

.dark {
  --background: oklch(0.2 0.014 252);
  --foreground: oklch(0.95 0.006 240);
  --card: oklch(0.235 0.016 252);
  --card-foreground: oklch(0.95 0.006 240);
  --popover: oklch(0.235 0.016 252);
  --popover-foreground: oklch(0.95 0.006 240);
  --primary: oklch(0.74 0.055 248);
  --primary-foreground: oklch(0.2 0.02 252);
  --secondary: oklch(0.275 0.016 252);
  --secondary-foreground: oklch(0.92 0.008 240);
  --muted: oklch(0.275 0.016 252);
  --muted-foreground: oklch(0.7 0.014 248);
  --accent: oklch(0.295 0.018 252);
  --accent-foreground: oklch(0.92 0.008 240);
  --destructive: oklch(0.66 0.15 18);
  --destructive-foreground: oklch(0.985 0.004 240);
  --border: oklch(1 0 0 / 11%);
  --input: oklch(1 0 0 / 14%);
  --ring: oklch(0.74 0.055 248);
  --success: oklch(0.72 0.08 175);
  --warning: oklch(0.74 0.05 250);
  --chart-1: oklch(0.74 0.055 248);
  --chart-2: oklch(0.6 0.06 256);
  --chart-3: oklch(0.84 0.035 245);
  --chart-4: oklch(0.72 0.08 175);
  --chart-5: oklch(0.66 0.02 250);
  --sidebar: oklch(0.215 0.015 252);
  --sidebar-foreground: oklch(0.95 0.006 240);
  --sidebar-primary: oklch(0.74 0.055 248);
  --sidebar-primary-foreground: oklch(0.2 0.02 252);
  --sidebar-accent: oklch(0.295 0.018 252);
  --sidebar-accent-foreground: oklch(0.92 0.008 240);
  --sidebar-border: oklch(1 0 0 / 11%);
  --sidebar-ring: oklch(0.74 0.055 248);

  --emphasis: oklch(0.8 0.045 250);
  --emphasis-foreground: oklch(0.2 0.02 252);
  --emphasis-ink: oklch(0.88 0.03 248);
  --emphasis-soft: color-mix(in oklch, var(--emphasis) 14%, var(--background));

  --mist: oklch(0.7 0.045 248);

  --tone-sage: oklch(0.74 0.08 175);
  --tone-mist: oklch(0.76 0.05 245);
  --tone-deep: oklch(0.72 0.06 258);
  --tone-slate: oklch(0.72 0.025 252);
  --tone-alert: oklch(0.7 0.13 15);

  --journey-discover: oklch(0.76 0.08 295);
  --journey-consider: oklch(0.76 0.07 212);
  --journey-opportunity: oklch(0.8 0.11 80);

  --background-secondary: oklch(0.215 0.015 252);
  --surface-hover:   color-mix(in srgb, var(--foreground) 6%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 10%, var(--background));
  --surface-elevated: oklch(0.26 0.017 252);

  --border-subtle: oklch(1 0 0 / 6%);
  --border-muted: oklch(1 0 0 / 9%);
  --border-strong: oklch(1 0 0 / 20%);

  --foreground-secondary: oklch(0.76 0.012 248);

  --primary-hover: color-mix(in srgb, var(--primary) 88%, white);
  --primary-muted: color-mix(in srgb, var(--primary) 20%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 12%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 8%,  var(--background));

  --focus-ring: oklch(0.74 0.055 248 / 0.5);
  --error: oklch(0.66 0.15 18);
  --error-foreground: oklch(0.985 0.004 240);
}

/* Stencil Tweaks */
@font-face {
  font-family: 'IvyprestoHeadline';
  src: url('/assets/fonts/IvyprestoHeadline-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IvyprestoHeadline';
  src: url('/assets/fonts/IvyprestoHeadline-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SweetSansPro';
  src: url('/assets/fonts/SweetSansProThin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@layer base {
  h1, h2, h3, h4 { font-weight: var(--font-weight-display); }
}
/* /Stencil Tweaks */