/* Empatio · sistemul v8 „Grijă, măsurată” (18 nov. 2026, aprobat de Victor: fontul B, primul ecran întunecat)
 * Se încarcă după design-system/tokens.css și pagini.css și suprascrie DOAR tokenii: paleta, fonturile, greutatea titlurilor.
 * Folosit de acasa-v8.html și v8-sistem.html. Fișierele comune (tokens.css, pagini.css) rămân neatinse.
 *
 * Conceptul: mâinile aurii din siglă = grija; literele DIN Round ale numelui = măsura.
 *   Rubik (titluri, etichete, cifre): colțurile ușor rotunjite ale DIN Round, mai cald decât un grotesc tehnic.
 *   Atkinson Hyperlegible Next (textul lung): desenat pentru vedere slabă; publicul de 40–65 de ani.
 * Contrastele (WCAG 2.2) sunt notate lângă fiecare culoare de text; auriul pe hârtie e doar decor (fire, riglă), niciodată text. */

/* Cifrele textului din Rubik: Atkinson desenează zeroul tăiat (0722 4Ø0 847) și nu are o variantă simplă (ss01–ss06, cv01–cv05, salt
 * testate pe 18 nov.). Doar U+0030–0039 vin din Rubik; literele rămân Atkinson. În producție fișierul se găzduiește local. */
@font-face { font-family: 'Empatio Cifre'; font-style: normal; font-weight: 400 600; font-display: swap; unicode-range: U+0030-0039;
  src: url(https://fonts.gstatic.com/s/rubik/v31/iJWKBXyIfDnIV7nBrXyw023e.woff2) format('woff2'); }

:root {
  /* ── fonturile ── */
  --font-display: 'Rubik', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-sans: 'Empatio Cifre', 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --weight-display: 500;                       /* Rubik la 500: desenat, nu „de aplicație” */
  --v8-track-display: -0.022em;                /* Rubik e lat: strângere mică, nu cât la Familjen */
  --v8-track-label: 0.2em;                     /* etichetele mici, rărite ca „CLINICA” din siglă */

  /* ── paleta, tema deschisă ── */
  --color-background: #f6f3ee;                 /* Hârtie: alb cald, nu de spital */
  --color-foreground: #13201f;                 /* Cerneală: 15,1:1 pe hârtie */
  --color-card: #ffffff;
  --color-card-foreground: #13201f;
  --color-popover: #ffffff;
  --color-popover-foreground: #13201f;
  --color-primary: #006f7a;                    /* Turcoaz adânc = acțiunea. Alb pe el: 5,9:1; pe hârtie: 5,3:1 */
  --color-primary-foreground: #ffffff;
  --color-primary-dark: #00565f;
  --color-secondary: #ece6dc;
  --color-secondary-foreground: #13201f;
  --color-muted: #f0ebe3;                      /* fundalul secțiunilor alternative */
  --color-muted-foreground: #4f5b59;           /* Gri cald: 6,4:1 pe hârtie, 5,9:1 pe muted */
  --color-accent: #e3f1ef;
  --color-accent-foreground: #00525a;          /* 7,7:1 */
  --color-border: #e2dbcf;
  --color-input: #7a8381;                      /* 3,9:1 pe alb (componentă UI ≥ 3) */
  --color-ring: #006f7a;
  --color-brand-teal: #04a2af;                 /* turcoazul siglei: doar grafic (2,8:1 pe hârtie) */
  --color-brand-gold: #d4b07a;                 /* auriul mâinilor: fire, riglă, numerotare (decor) */
  --color-eyebrow: #7a5b23;                    /* auriul ca text pe hârtie și pe muted (≥ 4,5:1) */
  --color-inverse: #0d2326;
  --color-inverse-foreground: #ede8df;
  --hairline-gold: linear-gradient(90deg, #b2883c, #fed194 55%, #d4b07a);   /* gradientul siglei */
}

/* ── paleta, tema întunecată ── */
.dark {
  --color-background: #0d2326;                 /* Noapte */
  --color-foreground: #ede8df;                 /* 13,4:1 */
  --color-card: #133033;
  --color-card-foreground: #ede8df;            /* 11,5:1 */
  --color-popover: #133033;
  --color-popover-foreground: #ede8df;
  --color-primary: #5ed0d8;                    /* 8,9:1 pe noapte; textul pe buton #06262A: 8,7:1 */
  --color-primary-foreground: #06262a;
  --color-primary-dark: #8fe0e6;
  --color-secondary: #1a3a3d;
  --color-secondary-foreground: #ede8df;
  --color-muted: #0a1c1f;
  --color-muted-foreground: #b5c2c0;           /* 8,9:1 */
  --color-accent: #12393c;
  --color-accent-foreground: #b8e8ee;          /* 9,4:1 */
  --color-border: #24403f;
  --color-input: #7e9593;                      /* 5,1:1 */
  --color-ring: #5ed0d8;
  --color-brand-teal: #04a2af;
  --color-brand-gold: #d4b07a;
  --color-eyebrow: #d4b07a;                    /* 8,0:1 pe noapte */
}

body { font-family: var(--font-sans); }

/* ── tipografia comună ── */
h1, h2, h3, h4, .btn { font-family: var(--font-display); }
.eyebrow { font-family: var(--font-display); font-weight: 500; letter-spacing: var(--v8-track-label); text-transform: uppercase; }
.btn { font-weight: 500; letter-spacing: 0.005em; }

/* cifrele: aceeași familie ca titlurile, la lățime fixă (aliniate ca pe o riglă) */
.v8-num { font-family: var(--font-display); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ── rigla aurie: motivul paginii. Gradații fine, una mare la fiecare cinci; se desenează o dată (acasa-v8.js / v8-sistem.html) ── */
.v8-ruler { display: flex; align-items: flex-end; gap: 7px; height: 18px; }
.v8-ruler i { display: block; flex: none; width: 1px; height: 7px; background: var(--color-brand-gold); transform-origin: 50% 100%; }
.v8-ruler i:nth-child(5n + 1) { height: 16px; }
@keyframes v8-tick { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }
html.mk-js:not(.rm):not(.mk-shot) .v8-ruler.is-drawn i { animation: v8-tick 420ms cubic-bezier(0.23, 1, 0.32, 1) backwards; animation-delay: calc(var(--ruler-delay, 0ms) + var(--k, 0) * 14ms); }
@media (prefers-reduced-motion: reduce) { .v8-ruler.is-drawn i { animation: none !important; } }

/* butoanele pe închis (subsol, ct-inv): turcoazul de acțiune, nu auriul; etichetele aurii ale subsolului rămân (auriul = decor). 8,9:1 */
.ct-inv .ct-form, .ct-inv .ct-call { background: #5ed0d8; }
