/*
 * Callzen landing — design tokens (MOS-141). The only file with raw colour values; styles.css uses these
 * variables. Brand (MOS-131, direction A): black, white and one saffron accent that always means
 * "needs attention" (the logo dot, the tagline full stop, the needs-review flag). Never decorative.
 */

@font-face {
  /* Metric-matched local fallback so the swap to Manrope does not move the layout. */
  font-family: 'Manrope Fallback';
  src: local('Arial');
  size-adjust: 104%;
  ascent-override: 102.5%;
  descent-override: 28.8%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;

  /* Neutrals (light) */
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f2f2f0;
  --surface-3: #e9e9e6;
  --ink: #0d0d0e;
  --ink-2: #4d4e53; /* 8.0:1 on --bg */
  --ink-3: #66676d; /* 5.6:1 on --bg */
  --line: #e4e4e1;
  --line-strong: #cfcfcb;
  --shadow-sm: 0 1px 2px rgb(20 20 22 / 0.04);
  --shadow-md: 0 1px 2px rgb(20 20 22 / 0.04), 0 18px 40px -18px rgb(20 20 22 / 0.18);
  --shadow-lg: 0 2px 4px rgb(20 20 22 / 0.05), 0 28px 60px -20px rgb(20 20 22 / 0.28);
  --header-bg: rgb(250 250 249 / 0.82);

  /* Accent: the dot */
  --accent: #f2a529;
  --accent-ink: #0d0d0e; /* text on saffron: 10.4:1 */
  --accent-soft: #fbe7c4;

  /* Inverted (primary button) */
  --invert-bg: #0d0d0e;
  --invert-bg-hover: #2a2a2d;
  --invert-ink: #fafaf9;

  /* Closing panel: the page's one ink block */
  --closing-bg: #0d0d0e;
  --closing-ink: #fafaf9;
  --closing-ink-2: #a9aaaf;
  --closing-line: #3a3b40;
  --closing-hover: #1f1f22;

  /* Type */
  --font: 'Manrope', 'Manrope Fallback', system-ui, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-body: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.375rem;
  --text-h3: 1.25rem;
  --text-h2: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  --text-statement: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem);
  --text-display: clamp(2.875rem, 1.2rem + 6.4vw, 6rem);

  /* Space (rem) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --section: clamp(5rem, 3rem + 7vw, 9.5rem);
  --gutter: clamp(1rem, 0.4rem + 3vw, 2.5rem);
  --max: 75rem;

  /* Shape: interactive = pill; containers = 1rem; inner pieces = 0.625rem */
  --radius-pill: 999rem;
  --radius-card: 1rem;
  --radius-inner: 0.625rem;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 140ms;
  --dur-ui: 200ms;
  --dur-reveal: 700ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0b0b0c;
    --surface: #131315;
    --surface-2: #1b1b1e;
    --surface-3: #242427;
    --ink: #f3f3f1;
    --ink-2: #b4b5ba; /* 9.5:1 on --bg */
    --ink-3: #8f9096; /* 6.2:1 on --bg */
    --line: #232326;
    --line-strong: #34353a;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-md: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 18px 40px -18px rgb(0 0 0 / 0.7);
    --shadow-lg: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 28px 60px -20px rgb(0 0 0 / 0.85);
    --header-bg: rgb(11 11 12 / 0.8);
    --accent-soft: #3a2b12;
    --invert-bg: #f3f3f1;
    --invert-bg-hover: #d9d9d6;
    --invert-ink: #0b0b0c;
    --closing-bg: #161618;
    --closing-line: #3a3b40;
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b0b0c;
  --surface: #131315;
  --surface-2: #1b1b1e;
  --surface-3: #242427;
  --ink: #f3f3f1;
  --ink-2: #b4b5ba;
  --ink-3: #8f9096;
  --line: #232326;
  --line-strong: #34353a;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-md: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 18px 40px -18px rgb(0 0 0 / 0.7);
  --shadow-lg: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 28px 60px -20px rgb(0 0 0 / 0.85);
  --header-bg: rgb(11 11 12 / 0.8);
  --accent-soft: #3a2b12;
  --invert-bg: #f3f3f1;
  --invert-bg-hover: #d9d9d6;
  --invert-ink: #0b0b0c;
  --closing-bg: #161618;
  --closing-line: #3a3b40;
}
