/* ============================================================
   Licitato Design System — Colors & Type
   ============================================================
   Brand: Licitato.ia ("Licitações mais inteligentes")
   Sector: AI for public-sector bidding & procurement (Brazil)
   ============================================================ */

/* Fonts ----------------------------------------------------- */
/* Primary brand font: Google Sans Flex.
   - Variable axes: wght 100–1000, opsz 6–144, ROND 0–100, GRAD −200–150, slnt −10–0
   - Static optical-size cuts also self-hosted under fonts/, exposed as:
     ‘GS Flex Caption’ (9pt)  ·  ‘GS Flex Text’ (24pt)  ·  ‘GS Flex Body’ (36pt)
     ‘GS Flex Display’ (72pt)  ·  ‘GS Flex Hero’ (120pt)
   The variable face is primary and handles opsz automatically via
   font-optical-sizing: auto on body. Use the static aliases only when
   you need to lock the optical cut explicitly (e.g. print). */
@font-face {
  font-family: 'Google Sans Flex';
  src: url('fonts/GoogleSansFlex-VariableFont_GRAD_ROND_opsz_slnt_wdth_wght.ttf') format('truetype-variations');
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-style: normal;
  font-display: swap;
}
@import url('fonts/fonts.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ── Brand colors (sampled from logo) ────────────────────── */
  --brand-blue:        #005BAB;   /* "licitato" wordmark      */
  --brand-blue-deep:   #003E7E;   /* pressed / on dark bg     */
  --brand-blue-tint:   #E6EEF7;   /* surface wash             */

  --brand-teal:        #0E96AE;   /* arrow body, ".ia" mid    */
  --brand-teal-deep:   #036E89;   /* hover / heading on tint  */
  --brand-teal-bright: #1AA4BC;   /* tagline / accent line    */
  --brand-teal-soft:   #6BCBE1;   /* arrow highlight, chips   */
  --brand-teal-tint:   #C9EBF2;   /* lightest wash            */
  --brand-teal-mist:   #EAF6F9;   /* hairline backgrounds     */

  --cta-orange:        #FF7301;   /* CTA / attention accent   */
  --cta-orange-deep:   #D85F00;   /* pressed / hover          */
  --cta-orange-tint:   #FFE8D6;   /* badge / chip background  */

  /* ── Neutrals (warm-cool, biased slightly toward blue) ──── */
  --ink-900: #0E1A2B;   /* body text, headings on light       */
  --ink-700: #2A3A52;   /* secondary text                     */
  --ink-500: #5A6A82;   /* muted, helper                      */
  --ink-300: #A8B3C4;   /* disabled, borders                  */
  --ink-200: #D8DEE8;   /* dividers                           */
  --ink-100: #ECEFF4;   /* subtle surface                     */
  --ink-50:  #F6F8FB;   /* page wash                          */
  --white:   #FFFFFF;

  /* ── Semantic ─────────────────────────────────────────────── */
  --success: #1F9D6E;
  --success-tint: #E6F5EE;
  --warning: #D98E1F;
  --warning-tint: #FBF1DF;
  --danger:  #D24545;
  --danger-tint: #FBE9E9;
  --info:    var(--brand-teal-bright);
  --info-tint: var(--brand-teal-mist);

  /* ── Foreground / background tokens ──────────────────────── */
  --fg-1: var(--ink-900);
  --fg-2: var(--ink-700);
  --fg-3: var(--ink-500);
  --fg-on-brand: var(--white);
  --fg-link: var(--brand-blue);
  --fg-link-hover: var(--brand-blue-deep);

  --bg-1: var(--white);
  --bg-2: var(--ink-50);
  --bg-3: var(--ink-100);
  --bg-brand: var(--brand-blue);
  --bg-brand-soft: var(--brand-blue-tint);
  --bg-accent: var(--brand-teal-mist);

  --border-1: var(--ink-200);
  --border-2: var(--ink-300);
  --border-brand: var(--brand-teal-soft);

  /* ── Type families ───────────────────────────────────────── */
  --font-display: 'Google Sans Flex', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Google Sans Flex', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui:      'Google Sans Flex', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Optical-size aliases — use when you need to pin a specific cut */
  --font-caption: 'GS Flex Caption', 'Google Sans Flex', system-ui, sans-serif;
  --font-text:    'GS Flex Text',    'Google Sans Flex', system-ui, sans-serif;
  --font-display-72: 'GS Flex Display', 'Google Sans Flex', system-ui, sans-serif;
  --font-hero:    'GS Flex Hero',    'Google Sans Flex', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ── Type scale (1.25 major-third on a 16px base) ────────── */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   20px;
  --fs-xl:   24px;
  --fs-2xl:  30px;
  --fs-3xl:  38px;
  --fs-4xl:  48px;
  --fs-5xl:  60px;
  --fs-6xl:  76px;

  --lh-tight:  1.1;   /* @kind other */
  --lh-snug:   1.25;  /* @kind other */
  --lh-normal: 1.5;   /* @kind other */
  --lh-loose:  1.7;   /* @kind other */

  /* ── Spacing scale (4px base) ────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ── Radii ───────────────────────────────────────────────── */
  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-pill: 999px;

  /* ── Shadows (cool-blue tint, never neutral gray) ────────── */
  --shadow-xs: 0 1px 1px rgba(14, 26, 43, 0.04);
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.06), 0 1px 3px rgba(14, 26, 43, 0.04);
  --shadow-md: 0 4px 8px rgba(14, 26, 43, 0.06), 0 2px 4px rgba(14, 26, 43, 0.04);
  --shadow-lg: 0 12px 24px rgba(14, 26, 43, 0.08), 0 4px 8px rgba(14, 26, 43, 0.04);
  --shadow-xl: 0 24px 48px rgba(14, 26, 43, 0.12), 0 8px 16px rgba(14, 26, 43, 0.04);
  --shadow-brand: 0 8px 24px rgba(0, 91, 171, 0.18);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.6);

  /* ── Motion ──────────────────────────────────────────────── */
  --ease-out: cubic-bezier(.2,.7,.2,1);     /* @kind other */
  --ease-in-out: cubic-bezier(.6,.05,.4,1); /* @kind other */
  --dur-fast: 120ms;  /* @kind other */
  --dur-base: 200ms;  /* @kind other */
  --dur-slow: 320ms;  /* @kind other */
}

/* ── Semantic element styles ─────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

/* Google Sans Flex axes are tasteful at slightly looser tracking; weights
   600–700 read as the wordmark feel without going chunky. */
h1, .h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-5xl); line-height: var(--lh-tight); letter-spacing: -0.025em; color: var(--brand-blue); }
h2, .h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-3xl); line-height: var(--lh-tight); letter-spacing: -0.02em; color: var(--brand-blue); }
h3, .h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-2xl); line-height: var(--lh-snug); letter-spacing: -0.015em; color: var(--fg-1); }
h4, .h4 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xl); line-height: var(--lh-snug); letter-spacing: -0.01em; color: var(--fg-1); }
h5, .h5 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); line-height: var(--lh-snug); color: var(--fg-1); }

p           { font-size: var(--fs-base); line-height: var(--lh-normal); color: var(--fg-2); }
.lead       { font-size: var(--fs-lg); line-height: var(--lh-normal); color: var(--fg-2); }
small, .small { font-size: var(--fs-sm); color: var(--fg-3); }
.eyebrow    { font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-teal); }
.tagline    { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-teal-bright); }
code, .code { font-family: var(--font-mono); font-size: 0.92em; background: var(--ink-100); padding: 2px 6px; border-radius: var(--r-xs); color: var(--ink-900); }

a { color: var(--fg-link); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--fg-link-hover); text-decoration: underline; text-underline-offset: 3px; }
