/* CpTecknologys design system — tokens.
   One file shared by every CpTecknologys site, so they look like one family.
   Light is the default; dark follows the device, unless the visitor picks one with the toggle. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- Colour (light) ---- */
  --bg: #ffffff;
  --surface: #f6f8f8;
  --surface-2: #eef2f2;
  --text: #0f1a1c;
  --text-muted: #55656a;
  --primary: #0f766e;
  --primary-hover: #115e59;
  --on-primary: #ffffff;
  --primary-soft: #e6f4f2;
  --border: #e3e8e9;
  --border-strong: #cfd8da;
  --success: #15803d;
  --warning: #b45309;
  --error: #b91c1c;
  --focus: #0f766e;
  --shadow-1: 0 1px 2px rgb(15 26 28 / 0.06), 0 1px 1px rgb(15 26 28 / 0.04);
  --shadow-2: 0 8px 24px rgb(15 26 28 / 0.08), 0 2px 6px rgb(15 26 28 / 0.05);
  --mock-glow: radial-gradient(60% 60% at 70% 40%, rgb(15 118 110 / 0.16), transparent 70%),
    radial-gradient(50% 50% at 20% 80%, rgb(45 212 191 / 0.12), transparent 70%);
  color-scheme: light;

  /* ---- Type ---- */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-hero: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem); /* 36px → 60px */
  --fs-h2: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem); /* 30px → 40px */
  --fs-h3: 1.25rem; /* 20px */
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); /* 17px → 20px */
  --fs-body: 1.0625rem; /* 17px */
  --fs-small: 0.875rem; /* 14px */
  --fs-xs: 0.8125rem; /* 13px */
  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-body: 1.6;
  --track-tight: -0.022em;
  --measure: 68ch;

  /* ---- Space (8px scale) ---- */
  --s-1: 0.25rem; /* 4 */
  --s-2: 0.5rem; /* 8 */
  --s-3: 1rem; /* 16 */
  --s-4: 1.5rem; /* 24 */
  --s-5: 2rem; /* 32 */
  --s-6: 3rem; /* 48 */
  --s-7: 4rem; /* 64 */
  --s-8: 5rem; /* 80 */
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem); /* 56px → 112px */

  /* ---- Layout ---- */
  --max: 75rem; /* 1200px */
  --gutter: clamp(1rem, 0.5rem + 2vw, 1.5rem);
  --header-h: 4rem;

  /* ---- Shape & motion ---- */
  --r-1: 8px;
  --r-2: 12px;
  --r-3: 16px;
  --r-pill: 999px;
  --hairline: 1px solid var(--border);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 150ms;
  --t: 200ms;
  --t-slow: 250ms;
  --tap: 44px;
}

/* Dark: chosen with the toggle */
:root[data-theme='dark'] {
  --bg: #0b1214;
  --surface: #121b1e;
  --surface-2: #182427;
  --text: #e8eeee;
  --text-muted: #9aaaae;
  --primary: #2dd4bf;
  --primary-hover: #5eead4;
  --on-primary: #04201d;
  --primary-soft: #0f2a28;
  --border: #22302f;
  --border-strong: #31423f;
  --success: #4ade80;
  --warning: #fbbf24;
  --error: #f87171;
  --focus: #5eead4;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-2: 0 10px 30px rgb(0 0 0 / 0.45), 0 2px 6px rgb(0 0 0 / 0.3);
  --mock-glow: radial-gradient(60% 60% at 70% 40%, rgb(45 212 191 / 0.14), transparent 70%),
    radial-gradient(50% 50% at 20% 80%, rgb(15 118 110 / 0.2), transparent 70%);
  color-scheme: dark;
}

/* Dark: following the device, when the visitor has not chosen */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b1214;
    --surface: #121b1e;
    --surface-2: #182427;
    --text: #e8eeee;
    --text-muted: #9aaaae;
    --primary: #2dd4bf;
    --primary-hover: #5eead4;
    --on-primary: #04201d;
    --primary-soft: #0f2a28;
    --border: #22302f;
    --border-strong: #31423f;
    --success: #4ade80;
    --warning: #fbbf24;
    --error: #f87171;
    --focus: #5eead4;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 10px 30px rgb(0 0 0 / 0.45), 0 2px 6px rgb(0 0 0 / 0.3);
    --mock-glow: radial-gradient(60% 60% at 70% 40%, rgb(45 212 191 / 0.14), transparent 70%),
      radial-gradient(50% 50% at 20% 80%, rgb(15 118 110 / 0.2), transparent 70%);
    color-scheme: dark;
  }
}
