/* Bizello brand tokens, copied from brand/design-system/tokens.css.
   Source of truth: docs/BRAND.md. Keep this block in sync with the design system. */
:root {
  /* Core brand */
  --bz-navy: #0b1f44;
  --bz-cobalt: #2563eb;
  --bz-teal: #14b8a6;
  --bz-offwhite: #f6faff;
  --bz-slate: #334155;

  /* Navy scale */
  --bz-navy-50: #eef2f9;
  --bz-navy-100: #d5deee;
  --bz-navy-200: #aabcdc;
  --bz-navy-300: #7591c2;
  --bz-navy-400: #4a6aa3;
  --bz-navy-500: #2f4d85;
  --bz-navy-600: #1f3a6b;
  --bz-navy-700: #152c56;
  --bz-navy-800: #0f244b;
  --bz-navy-900: #0b1f44;
  --bz-navy-950: #061229;

  /* Cobalt scale */
  --bz-cobalt-50: #eff6ff;
  --bz-cobalt-100: #dbeafe;
  --bz-cobalt-200: #bfdbfe;
  --bz-cobalt-300: #93c5fd;
  --bz-cobalt-400: #60a5fa;
  --bz-cobalt-500: #3b82f6;
  --bz-cobalt-600: #2563eb;
  --bz-cobalt-700: #1d4ed8;
  --bz-cobalt-800: #1e40af;
  --bz-cobalt-900: #1e3a8a;
  --bz-cobalt-950: #172554;

  /* Teal scale */
  --bz-teal-50: #f0fdfa;
  --bz-teal-100: #ccfbf1;
  --bz-teal-200: #99f6e4;
  --bz-teal-300: #5eead4;
  --bz-teal-400: #2dd4bf;
  --bz-teal-500: #14b8a6;
  --bz-teal-600: #0d9488;
  --bz-teal-700: #0f766e;
  --bz-teal-800: #115e59;
  --bz-teal-900: #134e4a;
  --bz-teal-950: #042f2e;

  /* Slate scale */
  --bz-slate-50: #f8fafc;
  --bz-slate-100: #f1f5f9;
  --bz-slate-200: #e2e8f0;
  --bz-slate-300: #cbd5e1;
  --bz-slate-400: #94a3b8;
  --bz-slate-500: #64748b;
  --bz-slate-600: #475569;
  --bz-slate-700: #334155;
  --bz-slate-800: #1e293b;
  --bz-slate-900: #0f172a;
  --bz-slate-950: #020617;

  /* Feedback */
  --bz-success: #16a34a;
  --bz-success-soft: #dcfce7;
  --bz-warning: #d97706;
  --bz-warning-soft: #fef3c7;
  --bz-danger: #dc2626;
  --bz-danger-soft: #fee2e2;
  --bz-info: #2563eb;
  --bz-info-soft: #dbeafe;

  /* Roles */
  --bz-bg: var(--bz-offwhite);
  --bz-surface: #ffffff;
  --bz-border: #dce4f0;
  --bz-text: var(--bz-navy);
  --bz-text-body: var(--bz-slate);
  --bz-text-muted: var(--bz-slate-500);
  --bz-action: var(--bz-cobalt);
  --bz-action-hover: var(--bz-cobalt-700);
  --bz-accent: var(--bz-teal);
  --bz-focus: 0 0 0 3px rgba(37, 99, 235, 0.32);

  /* Gradient (logo direction: cobalt to teal) */
  --bz-gradient: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
  --bz-gradient-deep: linear-gradient(
    135deg,
    #0b1f44 0%,
    #2563eb 55%,
    #14b8a6 100%
  );

  /* Typography */
  /* Display: headings and wordmark. Text: body, UI, forms. */
  --bz-font-display:
    "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Arial, sans-serif;
  --bz-font:
    "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Arial, sans-serif;
  --bz-font-mono:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --bz-text-display: 700 3.5rem/1.05 var(--bz-font-display);
  --bz-text-h1: 700 2.5rem/1.1 var(--bz-font-display);
  --bz-text-h2: 700 2rem/1.15 var(--bz-font-display);
  --bz-text-h3: 600 1.5rem/1.25 var(--bz-font-display);
  --bz-text-h4: 600 1.25rem/1.3 var(--bz-font-display);
  --bz-text-lead: 400 1.125rem/1.6 var(--bz-font);
  --bz-text-body-md: 400 1rem/1.6 var(--bz-font);
  --bz-text-small: 400 0.875rem/1.5 var(--bz-font);
  --bz-text-caption: 500 0.75rem/1.4 var(--bz-font);

  /* Spacing (4px base) */
  --bz-space-1: 4px;
  --bz-space-2: 8px;
  --bz-space-3: 12px;
  --bz-space-4: 16px;
  --bz-space-5: 20px;
  --bz-space-6: 24px;
  --bz-space-8: 32px;
  --bz-space-10: 40px;
  --bz-space-12: 48px;
  --bz-space-16: 64px;
  --bz-space-24: 96px;

  /* Radius */
  --bz-radius-sm: 6px;
  --bz-radius-md: 10px;
  --bz-radius-lg: 16px;
  --bz-radius-xl: 24px;
  --bz-radius-full: 999px;

  /* Elevation (navy-tinted) */
  --bz-shadow-sm:
    0 1px 2px rgba(11, 31, 68, 0.06), 0 1px 3px rgba(11, 31, 68, 0.08);
  --bz-shadow-md:
    0 4px 12px rgba(11, 31, 68, 0.08), 0 2px 4px rgba(11, 31, 68, 0.06);
  --bz-shadow-lg:
    0 16px 40px rgba(11, 31, 68, 0.12), 0 4px 10px rgba(11, 31, 68, 0.06);
}

/* Landing page tokens. */
:root {
  /* Motion curves. js/motion.js uses the same values. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Layout. Each scene fills one screen, so spacing and display type also scale with viewport height. */
  --header-h: 64px;
  --banner-h: 40px;
  --gutter: clamp(20px, 4vw, 56px);
  --container: 1280px;
  --scene-pad: clamp(16px, 4.6vh, 60px);
  /* Sized for laptops first: most owners browse at 1280 to 1536 pixels wide with display scaling on. */
  --type-scale: 1;
  --fs-display: clamp(
    2.25rem,
    calc(min(4.3vw, 6.8vh) * var(--type-scale)),
    4.5rem
  );
  --fs-h2: clamp(1.6rem, calc(min(2.9vw, 5vh) * var(--type-scale)), 2.875rem);
  --fs-lead: clamp(0.975rem, 0.92rem + 0.16vw * var(--type-scale), 1.0625rem);

  --navy-deep: #061229;

  /*
   * Type. Parkinsans for headings and Instrument Sans for text. --font-brand
   * keeps the wordmark and the product mockups in Bricolage Grotesque.
   */
  --font-brand:
    "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Arial, sans-serif;
  --bz-font-display:
    "Parkinsans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial,
    sans-serif;
  --bz-font:
    "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Arial, sans-serif;
  --hero-weight: 700;
  --hero-tracking: -0.035em;
  --head-weight: 700;
  --head-tracking: -0.025em;

  /* Order statuses. Text and fill pairs pass WCAG AA. */
  --status-pending: #b45309;
  --status-pending-bg: #fef3c7;
  --status-paid: #15803d;
  --status-paid-bg: #dcfce7;
  --status-processing: #1d4ed8;
  --status-processing-bg: #dbeafe;
  --status-shipped: #0f766e;
  --status-shipped-bg: #ccfbf1;
  --status-delivered: #475569;
  --status-delivered-bg: #eef2f6;
}

/*
 * Laptops and medium screens run the whole type scale at 90%. Sizes in rem shrink with
 * the root font size; the screen-relative parts of the display sizes use --type-scale.
 */
@media (min-width: 900px) and (max-width: 1679px) {
  html {
    font-size: 90%;
  }

  :root {
    --type-scale: 0.9;
  }
}

@media (max-width: 899px) {
  :root {
    --header-h: 58px;
    --banner-h: 36px;
  }
}
