@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,500;6..72,600&family=Hanken+Grotesk:wght@400;500;600;700&display=swap");

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.955 0.02 85);
  --foreground: oklch(0.27 0.07 315);
  --card: oklch(0.995 0.005 85);
  --card-foreground: oklch(0.27 0.07 315);
  --popover: oklch(0.995 0.005 85);
  --popover-foreground: oklch(0.27 0.07 315);
  --primary: oklch(0.76 0.13 80);
  --primary-foreground: oklch(0.25 0.07 315);
  --secondary: oklch(0.89 0.035 80);
  --secondary-foreground: oklch(0.30 0.08 315);
  --muted: oklch(0.925 0.025 82);
  --muted-foreground: oklch(0.52 0.05 315);
  --accent: oklch(0.93 0.02 85);
  --accent-foreground: oklch(0.30 0.08 315);
  --destructive: oklch(0.55 0.16 50);
  --destructive-foreground: oklch(0.985 0.01 85);
  --border: oklch(0.87 0.035 80);
  --input: oklch(0.87 0.035 80);
  --ring: oklch(0.76 0.13 80);
  --success: oklch(0.65 0.10 130);
  --warning: oklch(0.62 0.15 55);
  --chart-1: oklch(0.50 0.08 315);
  --chart-2: oklch(0.76 0.13 80);
  --chart-3: oklch(0.72 0.06 315);
  --chart-4: oklch(0.65 0.10 130);
  --chart-5: oklch(0.62 0.15 55);
  --sidebar: oklch(0.30 0.08 315);
  --sidebar-foreground: oklch(0.955 0.02 85);
  --sidebar-primary: oklch(0.76 0.13 80);
  --sidebar-primary-foreground: oklch(0.25 0.07 315);
  --sidebar-accent: oklch(0.36 0.08 315);
  --sidebar-accent-foreground: oklch(0.72 0.06 315);
  --sidebar-border: oklch(0.40 0.07 315);
  --sidebar-ring: oklch(0.76 0.13 80);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.925 0.025 82);
  --surface-hover:   color-mix(in srgb, var(--foreground) 5%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 9%, var(--background));
  --surface-elevated: oklch(1 0 0);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.93 0.02 82);
  --border-muted: oklch(0.90 0.03 80);
  --border-strong: oklch(0.78 0.05 75);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.42 0.06 315);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 22%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 12%,  var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 7%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.76 0.13 80 / 0.45);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.58 0.15 50);
  --error-foreground: oklch(0.985 0.01 85);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.5rem;
  --radius-none: 0rem;
  --radius-sm: 0.25rem;
  --radius-lg: 0.625rem;
  --radius-xl: 0.875rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 500;
  --line-height-display: 1.1;
  --tracking-display: -0.025em;
  --font-weight-body: 400;
  --line-height-body: 1.55;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(58, 31, 74, 0.06);
  --shadow-md: 0 4px 14px rgba(58, 31, 74, 0.10);
  --shadow-lg: 0 14px 36px rgba(58, 31, 74, 0.16);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 320ms;
  --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.25rem;
}

.dark {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.22 0.06 315);
  --foreground: oklch(0.94 0.02 85);
  --card: oklch(0.28 0.07 315);
  --card-foreground: oklch(0.94 0.02 85);
  --popover: oklch(0.28 0.07 315);
  --popover-foreground: oklch(0.94 0.02 85);
  --primary: oklch(0.78 0.13 80);
  --primary-foreground: oklch(0.22 0.06 315);
  --secondary: oklch(0.34 0.07 315);
  --secondary-foreground: oklch(0.94 0.02 85);
  --muted: oklch(0.32 0.06 315);
  --muted-foreground: oklch(0.72 0.06 315);
  --accent: oklch(0.34 0.07 315);
  --accent-foreground: oklch(0.94 0.02 85);
  --destructive: oklch(0.66 0.15 55);
  --destructive-foreground: oklch(0.18 0.05 315);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ring: oklch(0.78 0.13 80);
  --success: oklch(0.72 0.10 130);
  --warning: oklch(0.70 0.15 55);
  --chart-1: oklch(0.72 0.06 315);
  --chart-2: oklch(0.78 0.13 80);
  --chart-3: oklch(0.58 0.08 315);
  --chart-4: oklch(0.72 0.10 130);
  --chart-5: oklch(0.70 0.15 55);
  --sidebar: oklch(0.18 0.05 315);
  --sidebar-foreground: oklch(0.94 0.02 85);
  --sidebar-primary: oklch(0.78 0.13 80);
  --sidebar-primary-foreground: oklch(0.22 0.06 315);
  --sidebar-accent: oklch(0.26 0.06 315);
  --sidebar-accent-foreground: oklch(0.72 0.06 315);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.78 0.13 80);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.25 0.06 315);
  --surface-elevated: oklch(0.32 0.07 315);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(1 0 0 / 6%);
  --border-muted: oklch(1 0 0 / 8%);
  --border-strong: oklch(1 0 0 / 20%);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.82 0.04 315);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-tint: color-mix(in srgb, var(--primary) 8%, var(--background));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.78 0.13 80 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.70 0.15 55);
  --error-foreground: oklch(0.18 0.05 315);
}

/* Pricing page per-seat slider (fixed brand artifact — gold thumb on plum track) */
.cookie-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: transparent;
  outline: none;
  position: relative;
  z-index: 2;
  margin: 0;
  cursor: pointer;
}
.cookie-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #D9A441;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(36, 19, 41, 0.35);
  cursor: grab;
}
.cookie-slider::-webkit-slider-thumb:active { cursor: grabbing; }
.cookie-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #D9A441;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(36, 19, 41, 0.35);
  cursor: grab;
}
.cookie-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.45); }
.cookie-slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.45); }
