/*
 * Adomni design tokens — v0.1 (draft)
 * Source of truth for the marketing site. Values resolved from the three
 * new-design pages: /billboard-advertising, /entertainment-marketing, /for-agencies.
 *
 * Load order: style.css (legacy :root vars) → adm-tokens.css → adm-components.css
 * Existing --pink, --orange, --gradient are kept as aliases so legacy classes
 * (.button-gradient, .text-gradient, .small-label) keep working.
 */
:root {
  /* ── Color ───────────────────────────────────────────────
   * 500 = brand value. Scales built in OKLCH (even perceived steps, same hue).
   * Text on white / --neutral100 needs ≥ 600 for primary, ≥ 700 for secondary
   * and ≥ 600 for neutral to pass WCAG AA at body sizes. 500s are for fills
   * and large type only (primary500 = 4.06:1, secondary500 = 2.99:1).
   */
  --primary100: #FFECF1;              /* tint bg: badges, tags, active pills */
  --primary200: #FFD4DF;
  --primary300: #FEB1C6;              /* pink text on --neutral900; active borders */
  --primary400: #FE78A3;
  --primary500: #F5007D;              /* brand pink */
  --primary600: #CD0768;              /* pink text: eyebrows, tags, links (5.5:1 on white) */
  --primary700: #A50A53;
  --primary800: #81013F;
  --primary900: #5D022C;
  --primary: var(--primary500);

  --secondary100: #FFF0EB;
  --secondary200: #FFDED3;
  --secondary300: #FFC3AE;
  --secondary400: #FE9975;
  --secondary500: #FF6220;            /* brand orange */
  --secondary600: #D84B02;
  --secondary700: #AD3B04;            /* orange text (6.2:1 on white) */
  --secondary800: #852B02;
  --secondary900: #5E1C01;
  --secondary: var(--secondary500);

  --white: #FFFFFF;
  --neutral100: #F5F5F7;              /* tinted sections, muted cards */
  --neutral200: #E7E7EA;              /* borders, tab track */
  --neutral300: #D1D2D7;
  --neutral400: #A9ACB4;              /* hover borders, disabled */
  --neutral500: #7E828C;
  --neutral600: #5F6673;              /* muted text */
  --neutral700: #454B57;
  --neutral800: #2C303A;              /* body text; raised cards on dark */
  --neutral900: #111118;              /* headings, dark surfaces */
  --black: #000000;

  --adm-gradient: linear-gradient(to right, var(--primary), var(--secondary));
  --adm-gradient-soft: linear-gradient(135deg, var(--primary100), var(--secondary100));

  /* translucent lines, for use on any surface */
  --adm-line-soft: color-mix(in srgb, var(--black) 7%, transparent);
  --adm-line-on-dark: color-mix(in srgb, var(--white) 10%, transparent);
  --adm-muted-on-dark: color-mix(in srgb, var(--white) 65%, transparent);

  /* legacy aliases (style.css defines these too; keep in sync) */
  --pink: var(--primary);
  --orange: var(--secondary);
  --gradient: var(--adm-gradient);

  /* ── Type (Montserrat only, weights 500/600/700) ───────────
   * Role-based scale. Sizes ≥ 20px are fluid between 390px and 1440px viewports.
   * Rule of thumb: ≥ 24px → 600 (700 for display/h1); ≤ 20px → 700 for titles, 500 for text.
   *
   * role        size        lh     tracking   weight  use
   * display     40 → 64     1.05   -0.025em   700     one per page, landing heroes (was .h1-xl)
   * h1          34 → 48     1.1    -0.02em    700     page title
   * h2          26 → 32     1.2    -0.015em   600     section title
   * h3          20 → 24     1.3    -0.01em    600     sub-section, feature-card title
   * h4          18          1.4    0          700     large card title, panel title
   * title       16          1.4    0          700     card title
   * title-sm    14          1.5    0          600     FAQ question, list label
   * lede        16 → 18     1.65   0          500     hero/section intro
   * body        16          1.7    0          500     prose
   * body-sm     14          1.65   0          500     card + list text
   * caption     12          1.5    0          500     meta, footnotes, stat labels
   * eyebrow     12          1.4    0.1em      600     uppercase kicker above a heading
   * stat-xl     36 → 56     1      -0.04em    700     banner number
   * stat-lg     28 → 40     1      -0.035em   700     case-study metric
   * stat        28          1.1    -0.03em    700     stats bar / inline stats
   */
  --adm-font: 'Montserrat', sans-serif;
  --adm-fw-text: 500;
  --adm-fw-semibold: 600;
  --adm-fw-bold: 700;

  --adm-fs-display: clamp(40px, 1.75rem + 2.3vw, 64px);
  --adm-fs-h1: clamp(34px, 1.75rem + 1.35vw, 48px);
  --adm-fs-h2: clamp(26px, 1.4rem + .6vw, 32px);
  --adm-fs-h3: clamp(20px, 1.1rem + .4vw, 24px);
  --adm-fs-h4: 18px;
  --adm-fs-title: 16px;
  --adm-fs-title-sm: 14px;
  --adm-fs-lede: clamp(16px, .9rem + .2vw, 18px);
  --adm-fs-body: 16px;
  --adm-fs-body-sm: 14px;
  --adm-fs-caption: 12px;
  --adm-fs-eyebrow: 12px;
  --adm-fs-stat-xl: clamp(36px, 1.8rem + 1.9vw, 56px);
  --adm-fs-stat-lg: clamp(28px, 1.5rem + 1.15vw, 40px);
  --adm-fs-stat: 28px;

  --adm-lh-display: 1.05;
  --adm-lh-tight: 1.1;
  --adm-lh-heading: 1.2;
  --adm-lh-subheading: 1.3;
  --adm-lh-snug: 1.4;
  --adm-lh-ui: 1.5;
  --adm-lh-body: 1.7;
  --adm-lh-body-sm: 1.65;
  --adm-lh-stat: 1;

  --adm-tracking-display: -.025em;
  --adm-tracking-h1: -.02em;
  --adm-tracking-h2: -.015em;
  --adm-tracking-h3: -.01em;
  --adm-tracking-stat: -.03em;
  --adm-tracking-eyebrow: .1em;

  --adm-measure: 68ch;                /* max line length for prose */
  --adm-measure-lede: 60ch;
  --adm-measure-heading: 22ch;        /* keeps h1/h2 to 2–3 balanced lines */

  /* ── Space ─────────────────────────────────────────────── */
  --adm-space-1: 4px;
  --adm-space-2: 8px;
  --adm-space-3: 12px;
  --adm-space-4: 16px;
  --adm-space-5: 20px;
  --adm-space-6: 24px;
  --adm-space-7: 28px;
  --adm-space-8: 32px;
  --adm-space-10: 40px;
  --adm-space-12: 48px;
  --adm-space-16: 64px;
  --adm-section-y: 96px;              /* replaces 80px on /for-agencies */
  --adm-section-y-sm: 64px;           /* mobile + compact sections */

  /* ── Layout ────────────────────────────────────────────── */
  --adm-container: 1100px;            /* replaces 1140px */
  --adm-container-narrow: 860px;
  --adm-gutter: 24px;

  /* ── Shape & depth ─────────────────────────────────────── */
  --adm-radius-btn: 7px;              /* matches .button-gradient */
  --adm-radius-sm: 10px;              /* list rows, inner panels */
  --adm-radius-md: 12px;              /* icon tiles, meta boxes */
  --adm-radius-lg: 16px;              /* cards; replaces 3–4px on /for-agencies */
  --adm-radius-pill: 9999px;
  --adm-shadow-card: 0 5px 15px rgba(0, 0, 0, .1);
  --adm-shadow-hover: 0 8px 24px rgba(0, 0, 0, .12);
  --adm-shadow-float: 0 25px 50px -12px rgba(0, 0, 0, .25);

  /* ── Motion ────────────────────────────────────────────── */
  --adm-ease: .2s ease;
  --adm-focus: 2px solid var(--secondary700);  /* was var(--adm-orange), removed in the scale refactor */
}
