/* Tokens do Afferolab Design System, copiados de "Afferolab Design System/tokens/"
   (colors.css, spacing.css, typography.css). Não edite aqui: atualize a fonte e copie novamente.
   A fonte Source Sans 3 é importada em cora-brand.css. */

/* ---------------------------------------------------------------------------
   Afferolab · Color tokens
   A dark, editorial, chromatically dense system. Foundations are deep
   purple/near-black; vibrancy is delivered in deliberate accent blocks and
   tarjas (bars), never as flat decoration. Avoid pure white surfaces.
   --------------------------------------------------------------------------- */

:root {
  /* ---- Core / institutional ------------------------------------------- */
  --al-ink:            #170D17;  /* primary background — near-black aubergine */
  --al-purple-deep:    #380833;  /* deep purple */
  --al-purple-mid:     #6B2466;  /* mid purple */
  --al-magenta-dark:   #994061;  /* dark magenta */

  /* ====================================================================== */
  /* COLOR RULE — one accent per composition.                               */
  /* Within any single composition (a slide, card, screen, section) use     */
  /* only ONE digital tone OR ONE vibrant accent at a time, paired with the */
  /* dark ground + soft white. Do NOT mix multiple accents in one layout.   */
  /* Variety lives ACROSS compositions, not within one.                     */
  /* (Institutional red --brand is the default highlight and is exempt as   */
  /*  the brand color, but still avoid stacking it with another accent.)    */
  /* ====================================================================== */

  /* ---- Vibrant accents ------------------------------------------------- */
  --al-magenta:        #FF00FF;  /* electric magenta — signature */
  --al-pink:           #E51C47;  /* institutional pink/red */
  --al-logo-red:       #E61D47;  /* institutional red — official logo color mark */
  --al-orange:         #E84517;  /* energetic orange */
  --al-yellow:         #FAC212;  /* vibrant yellow */
  --al-lime:           #F0FF00;  /* lime yellow */

  /* ---- Digital tones --------------------------------------------------- */
  --al-blue-violet:    #5463A6;
  --al-violet:         #6940C7;
  --al-lilac:          #8769D9;
  --al-petrol:         #0F857A;  /* petrol green */
  --al-turquoise:      #1FA39E;
  --al-aqua:           #5ED4BD;

  /* ---- Light tones (tints for light surfaces / chips) ------------------ */
  --al-blue-light:     #CCF0FC;
  --al-lilac-light:    #D6C4F7;
  --al-lavender:       #F5EBFF;
  --al-pink-soft:      #F5CCD9;
  --al-peach:          #EDA882;
  --al-green-light:    #D6FCCC;  /* light mint (brand-book complementary) */

  /* ---- Neutrals -------------------------------------------------------- */
  --al-gray-900:       #454A4D;  /* dark gray */
  --al-gray-700:       #5B5D5F;  /* medium gray */
  --al-gray-400:       #BFC3C6;  /* light gray */
  --al-gray-300:       #D9D9D9;  /* soft gray */
  --al-white-soft:     #F7F7F7;  /* soft white — use instead of pure #fff */

  /* ====================================================================== */
  /* Semantic aliases — reference these in components                       */
  /* ====================================================================== */

  /* Surfaces (dark-first) */
  --surface-base:      var(--al-ink);
  --surface-raised:    #211326;          /* a hair above base for cards */
  --surface-purple:    var(--al-purple-deep);
  --surface-inverse:   var(--al-white-soft);  /* rare light surface */

  /* Text */
  --text-primary:      var(--al-white-soft);
  --text-secondary:    var(--al-gray-400);
  --text-muted:        var(--al-gray-700);
  --text-on-light:     var(--al-ink);
  --text-accent:       var(--al-pink);    /* institutional red — primary highlight */

  /* Brand / interactive
     The institutional RED (logo color mark + deck highlight) is the primary
     brand accent. Electric magenta is a vibrant SECONDARY, used in expressive
     blocks/tarjas — not as the default interactive color. */
  --brand:             var(--al-pink);    /* institutional red #E51C47 */
  --brand-contrast:    var(--al-white-soft);  /* text/icon sitting on --brand */
  --brand-vibrant:     var(--al-magenta); /* expressive secondary accent */
  --accent-warm:       var(--al-orange);
  --accent-cool:       var(--al-turquoise);

  /* Lines & borders */
  --border-subtle:     rgba(247,247,247,0.12);
  --border-strong:     rgba(247,247,247,0.28);
  --border-on-light:   rgba(23,13,23,0.14);

  /* Status */
  --status-success:    var(--al-petrol);
  --status-warning:    var(--al-yellow);
  --status-danger:     var(--al-pink);
  --status-info:       var(--al-blue-violet);

  /* Focus ring */
  --focus-ring:        var(--al-lime);
}

/* ---------------------------------------------------------------------------
   Afferolab · Spacing, radii, borders, shadows, motion
   Editorial composition: large areas of breathing room, intentional emptiness.
   Spacing scale is generous. Corners are mostly crisp; rounding is restrained.
   --------------------------------------------------------------------------- */

:root {
  /* ---- Spacing scale (4px base) ---------------------------------------- */
  --space-0:   0;
  --space-1:   0.25rem;  /* 4  */
  --space-2:   0.5rem;   /* 8  */
  --space-3:   0.75rem;  /* 12 */
  --space-4:   1rem;     /* 16 */
  --space-5:   1.5rem;   /* 24 */
  --space-6:   2rem;     /* 32 */
  --space-7:   3rem;     /* 48 */
  --space-8:   4rem;     /* 64 */
  --space-9:   6rem;     /* 96 */
  --space-10:  8rem;     /* 128 — editorial whitespace */
  --space-11:  12rem;    /* 192 */

  /* ---- Radii (restrained; crisp is on-brand) --------------------------- */
  --radius-none: 0;
  --radius-sm:   2px;
  --radius-md:   6px;
  --radius-lg:   12px;
  --radius-pill: 999px;   /* tags / chips */

  /* ---- Border widths --------------------------------------------------- */
  --border-hairline: 1px;
  --border-thick:    2px;
  --border-bar:      4px;   /* the vibrant "tarja" accent bar */

  /* ---- Shadows --------------------------------------------------------- */
  /* On dark surfaces, depth comes mostly from value shifts + subtle glow,
     not heavy drop shadows. */
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg:   0 24px 60px rgba(0,0,0,0.55);
  --glow-magenta: 0 0 0 1px rgba(255,0,255,0.35), 0 8px 32px rgba(255,0,255,0.22);
  --glow-focus:   0 0 0 3px rgba(240,255,0,0.55);

  /* ---- Layout ---------------------------------------------------------- */
  --container-max: 1200px;
  --container-wide: 1440px;
  --gutter:        var(--space-5);

  /* ---- Motion ---------------------------------------------------------- */
  /* Calm, confident. Ease-out for entrances; no bounce. */
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1); /* @kind other */
  --dur-fast:     140ms; /* @kind other */
  --dur-base:     240ms; /* @kind other */
  --dur-slow:     480ms; /* @kind other */

  /* ---- Atmospheric gradient (texture system) -------------------------- */
  /* The brand sanctions only the atmospheric (dark radial) gradient as a
     background ground. Decorative gradients are NOT used — color is applied
     in flat blocks / tarjas. */
  --grad-atmos:    radial-gradient(120% 120% at 80% 0%, #380833 0%, #170D17 55%); /* @kind color */
}

/* ---------------------------------------------------------------------------
   Afferolab · Typography tokens
   One family, wide weight range. Impact titles run ExtraLight/Light at large
   sizes with generous whitespace and intentional line breaks. Body is Regular.
   Emphasis steps up to Semibold/Bold; Black is reserved for exceptional accent.
   --------------------------------------------------------------------------- */

:root {
  /* ---- Family ---------------------------------------------------------- */
  --font-sans: 'Source Sans 3', 'Source Sans Pro', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);   /* same family, lighter weights */

  /* ---- Weights --------------------------------------------------------- */
  --weight-extralight: 200;
  --weight-light:      300;
  --weight-regular:    400;
  --weight-semibold:   600;
  --weight-bold:       700;
  --weight-black:      900;

  /* ---- Type scale (editorial; large display steps) --------------------- */
  --text-display-xl:  clamp(3.5rem, 9vw, 8rem);     /* hero "UNLEASH" type   */
  --text-display-lg:  clamp(2.75rem, 6vw, 5.25rem);
  --text-display-md:  clamp(2.25rem, 4.5vw, 3.5rem);
  --text-h1:          2.5rem;    /* 40px */
  --text-h2:          2rem;      /* 32px */
  --text-h3:          1.5rem;    /* 24px */
  --text-h4:          1.25rem;   /* 20px */
  --text-body-lg:     1.125rem;  /* 18px */
  --text-body:        1rem;      /* 16px */
  --text-body-sm:     0.875rem;  /* 14px */
  --text-caption:     0.75rem;   /* 12px */
  --text-overline:    0.6875rem; /* 11px */

  /* ---- Line heights ---------------------------------------------------- */
  --leading-tight:    1.02;   /* big display, tight intentional breaks */
  --leading-snug:     1.15;
  --leading-normal:   1.5;
  --leading-relaxed:  1.65;   /* long-form body */

  /* ---- Letter spacing -------------------------------------------------- */
  --tracking-display: -0.02em;  /* large light type tightens slightly */
  --tracking-normal:  0;
  --tracking-wide:    0.08em;
  --tracking-overline: 0.18em;  /* uppercase labels / eyebrows */
}

