/*
  Sem Atrito — design tokens. Owner: dev-head. Values from Design's identity v1
  (departments/rnd-design/visuals/brand/identity.md, logo direction A "Fluxo", 2026-11-16).
  Variable NAMES are the site's own (pages use them); only the VALUES follow Design. Change values here, nowhere else.
  If the owner picks logo direction B or C, Design sends new colour/font values and only this file changes.
*/

/* Fonts: OFL, saved locally, Latin subset (covers pt-PT accents, €, quotes, dashes). Licences: fonts/OFL-*.txt */
@font-face { font-family: "Inter Tight"; src: url("../fonts/InterTight-latin.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-Regular-latin.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-Medium-latin.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Colour: 1 accent + neutrals (Design identity §1; all text pairs AA) */
  --c-bg: #FFFFFF;          /* page (Design: --c-white) */
  --c-surface: #FFFFFF;     /* cards */
  --c-surface-alt: #F5F6F8; /* alternate section band (Design: --c-paper) */
  --c-ink: #0B0F17;         /* body text, 19.2:1 */
  --c-ink-soft: #454C5A;    /* secondary text, lead (Design: --c-ink-2), 8.0:1 on paper */
  --c-muted: #646B79;       /* captions, labels, 5.0:1 on paper */
  --c-border: #7A8190;      /* form field borders, checkboxes (non-text, ≥3:1) */
  --c-line: #E3E6EB;        /* hairlines only, never text */
  --c-accent: #2B44FF;      /* primary button, links, focus, 6.2:1 */
  --c-accent-hover: #1F33D6;
  --c-accent-ink: #FFFFFF;  /* text on accent */
  --c-accent-soft: #E9ECFF; /* "Exemplo" tag; accent text on it 5.3:1 */
  --c-dark: #0B0F17;        /* dark band (final CTA, footer) */
  --c-dark-ink: #F5F6F8;    /* text on dark, 17.7:1 */
  --c-dark-soft: #9AA2B1;   /* secondary text on dark, 7.5:1 */
  --c-accent-on-dark: #8193FF;
  --c-success: #0E7A4D;
  --c-danger: #C2261B;
  --c-focus: #2B44FF;

  /* Type (Design identity §2) */
  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-xs: clamp(12px, .1vw + .7rem, 13px);     /* label */
  --fs-sm: clamp(14px, .1vw + .85rem, 15px);    /* small */
  --fs-base: clamp(16px, .15vw + .95rem, 17px); /* body */
  --fs-lg: clamp(19px, .4vw + 1rem, 21px);      /* lead, h4 */
  --fs-xl: clamp(22px, 1vw + 1rem, 28px);       /* h3 */
  --fs-2xl: clamp(30px, 2.2vw + 1rem, 40px);    /* h2 */
  --fs-3xl: clamp(38px, 3.6vw + 1rem, 56px);    /* h1 */
  --fs-display: clamp(44px, 5vw + 1rem, 72px);  /* hero display */
  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-body: 1.6;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 600;
  --tracking-tight: -0.025em;
  --tracking-display: -0.035em;
  --tracking-caps: 0.07em;

  /* Spacing (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --section-y: clamp(64px, 8vw, 128px);

  /* Layout */
  --container: 1200px;
  --container-narrow: 46rem;
  --gutter: clamp(24px, 4vw, 48px);

  /* Shape and depth: hairlines do the work; shadow only on hover */
  --radius-sm: 4px;   /* inputs */
  --radius: 8px;      /* buttons */
  --radius-lg: 14px;  /* cards */
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(11 15 23 / .06);
  --shadow: 0 1px 2px rgb(11 15 23 / .06);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 160ms;
  --dur: 240ms;
  --dur-slow: 480ms;

  --header-h: 4.25rem;
}
