/* Adblitz Website V3 design tokens.
   Source of truth: Notion Ad Blitz > Branding (Colour, Type). See DESIGN.md.
   Raw colour values live ONLY in this file. Never add a hue that Branding does not list. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Palette (Branding > Colour) */
  --color-green: #0F8A4A;          /* primary: marks, links, the one emphasis in a headline */
  --color-green-pressed: #0B7A40;  /* filled buttons with white text */
  --color-pine: #0B2C1D;           /* dark backgrounds: hero, end card, header */
  --color-darkest: #062919;        /* the deepest step under pine: footer */
  --color-mint: #34D399;           /* one small accent on dark backgrounds only */
  --color-surface-soft: #F4F7F5;   /* panels and alternate sections on white */
  --color-chip: #DCF5E5;           /* tags and small badges */
  --color-white: #FFFFFF;          /* page background */
  --color-ink: #0A0A0A;            /* headlines and text */
  --color-body: #3F3F46;           /* body text */
  --color-muted: #71717A;          /* secondary text */
  --color-line: #E4E4E7;           /* dividers */
  --color-success: #16BE61;        /* positive numbers and status only */

  /* Derived from the palette (alpha and mixes only, no new hues) */
  --color-on-pine: var(--color-white);
  --color-on-pine-body: color-mix(in srgb, var(--color-white) 82%, transparent);
  --color-on-pine-muted: color-mix(in srgb, var(--color-white) 64%, transparent);
  --color-line-on-pine: color-mix(in srgb, var(--color-white) 14%, transparent);
  --color-fill-on-pine: color-mix(in srgb, var(--color-white) 7%, transparent);
  --color-button-hover: color-mix(in srgb, var(--color-green-pressed) 86%, var(--color-darkest));
  --color-scrim: color-mix(in srgb, var(--color-darkest) 78%, transparent);
  --color-scrim-soft: color-mix(in srgb, var(--color-darkest) 28%, transparent);
  --color-pine-mid: color-mix(in srgb, var(--color-pine) 50%, var(--color-green));   /* luminous step between pine and primary green */
  --color-pine-lift: color-mix(in srgb, var(--color-pine) 82%, var(--color-green));  /* quiet raised surface on pine */
  --color-glow: color-mix(in srgb, var(--color-green) 58%, transparent);
  --color-glow-soft: color-mix(in srgb, var(--color-green) 26%, transparent);
  --color-grid-line: color-mix(in srgb, var(--color-white) 6%, transparent);
  --color-faint: color-mix(in srgb, var(--color-ink) 15%, transparent);              /* words not yet lit (scroll scrub) */
  --color-faint-on-pine: color-mix(in srgb, var(--color-white) 24%, transparent);
  --color-glass: color-mix(in srgb, var(--color-darkest) 52%, transparent);          /* controls over footage */
  --color-scrim-strong: color-mix(in srgb, var(--color-darkest) 90%, transparent);
  --color-scrim-mid: color-mix(in srgb, var(--color-darkest) 58%, transparent);
  --color-muted-strong: color-mix(in srgb, var(--color-muted) 80%, var(--color-ink)); /* muted text on the soft surface (AA) */
  --text-muted: var(--color-muted);  /* secondary text; soft surfaces swap in the strong step */
  --color-line-strong: color-mix(in srgb, var(--color-ink) 20%, transparent);
  --color-line-solid: color-mix(in srgb, var(--color-ink) 20%, var(--color-surface-soft)); /* the same line as an opaque colour, for a node that sits on a rail */
  --color-edge-on-pine: color-mix(in srgb, var(--color-white) 38%, transparent);            /* outline of a ghost button on dark */
  --color-button-edge: color-mix(in srgb, var(--color-white) 18%, transparent);
  --color-button-ring: color-mix(in srgb, var(--color-white) 16%, transparent);          /* hairline around a button on pine */
  --color-tint: color-mix(in srgb, var(--color-pine) 16%, transparent);
  --color-shadow: color-mix(in srgb, var(--color-pine) 14%, transparent);
  --color-shadow-deep: color-mix(in srgb, var(--color-darkest) 70%, transparent);

  /* Type (Branding > Type): Inter only */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-cover: clamp(2.25rem, 1.546rem + 3.005vw, 4.25rem);   /* 36 to 68: cover headline */
  --fs-display: clamp(2rem, 1.472rem + 2.254vw, 3.5rem);     /* 32 to 56: statements, between H1 and cover */
  --fs-h1: clamp(2rem, 1.736rem + 1.127vw, 2.75rem);         /* 32 to 44 */
  --fs-h2: clamp(1.625rem, 1.449rem + 0.751vw, 2.125rem);    /* 26 to 34 */
  --fs-h3: clamp(1.375rem, 1.287rem + 0.376vw, 1.625rem);    /* 22 to 26 */
  --fs-lead: clamp(1.0625rem, 0.996rem + 0.282vw, 1.25rem);  /* 17 to 20 */
  --fs-body: 1rem;                                           /* 16 */
  --fs-small: 0.875rem;                                      /* 14 */
  --fs-eyebrow: 0.8125rem;                                   /* 13 */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-heavy: 800;

  --lh-cover: 1.04;
  --lh-heading: 1.12;
  --lh-snug: 1.3;
  --lh-lead: 1.6;
  --lh-body: 1.75;

  --ls-cover: -0.03em;
  --ls-h1: -0.025em;
  --ls-h2: -0.02em;
  --ls-h3: -0.015em;
  --ls-eyebrow: 0.14em;

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --section-y: clamp(4rem, 2.768rem + 5.258vw, 7.5rem);      /* 64 to 120 */
  --gutter: clamp(1.25rem, 0.81rem + 1.878vw, 2.5rem);       /* 20 to 40 */
  --container: 75rem;                                        /* 1200 */
  --header-h: 4.5rem;                                        /* 72 */
  --inset: clamp(0.5rem, 0.148rem + 1.502vw, 1.5rem);        /* 8 to 24: gap between a rounded band and the window edge */

  /* Layers */
  --z-header: 50;
  --z-menu: 40;
  --z-note: 80;
  --z-theater: 90;                                           /* the full-screen video */

  /* Radius */
  --radius-sm: 4px;
  --radius-control: 6px;                                     /* buttons: sharp, like the live adblitz.co (Lucas, 2026-11-19) */
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-pill: 999px;
  --radius-card: var(--radius-xl);  /* every card, tile, photo frame and panel (Lucas, 2026-11-12: one radius, cards only) */

  /* Elevation */
  --shadow-sm: 0 1px 2px var(--color-shadow);
  --shadow-md: 0 12px 32px -12px var(--color-shadow);
  --shadow-lg: 0 40px 80px -32px var(--color-shadow-deep);
  --shadow-xl: 0 50px 100px -24px var(--color-shadow-deep), 0 24px 48px -24px var(--color-shadow-deep);

  /* Surfaces (built only from the palette above) */
  --gradient-pine: linear-gradient(112deg, var(--color-pine) 0%, var(--color-pine-lift) 34%, var(--color-pine-mid) 68%, var(--color-pine) 100%);
  --gradient-scrim-up: linear-gradient(to top, var(--color-scrim-strong) 0%, var(--color-scrim-mid) 34%, transparent 68%);
  --gradient-scrim-side: linear-gradient(90deg, var(--color-scrim-strong) 0%, var(--color-scrim-mid) 40%, transparent 78%);
  --gradient-scrim-low: linear-gradient(to top, var(--color-scrim-strong) 0%, var(--color-scrim-mid) 24%, transparent 54%);   /* a short fade for a small frame: the label holds, the photo stays clear */
  --texture-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration: 240ms;
  --duration-slow: 700ms;
  --duration-step: 4500ms;                                   /* one Click to Cash step, the length of its loop */

  /* Scenes: the animated product demos on the CRM page (Lucas, 2026-11-19). Each device draws its
     screen at true size (a 393 x 852 phone, a 760 x 600 desktop window) and scales it to fit, so these
     sizes are screen pixels inside the device, not page type. */
  --color-device: #111113;                                   /* phone frame */
  --color-device-edge: #3A3A3C;                              /* phone frame highlight */
  --color-ui-bg: #F2F2F7;                                    /* app background inside a screen */
  --color-ui-card: #FFFFFF;
  --color-ui-line: #E5E5EA;
  --color-ui-muted: #8E8E93;
  --color-ui-bubble-in: #E9E9EB;                             /* a business text on the buyer's phone */
  --color-ui-bubble-out: #0A84FF;                            /* the buyer's own text */
  --color-ui-amber: #F5A524;                                 /* proposal sent */
  --color-ui-blue: #3B82F6;                                  /* booked call */
  --color-ui-shadow: color-mix(in srgb, var(--color-ink) 18%, transparent);
  --color-ui-ring-1: #F58529;                                /* story ring, social feed */
  --color-ui-ring-2: #DD2A7B;
  --color-ui-ring-3: #8134AF;
  --color-ui-link: #1A0DAB;                                  /* a search result title */
  --color-ui-star: #F5B400;
  --color-ui-red: #FF3B30;                                   /* record button, like */
  --color-ui-map: #EEF0EA;
  --color-ui-road: #FFFFFF;
  --color-ui-water: #B6D8F2;
  --color-ui-park: #CFE8C6;
  --color-ui-dark: #0B0B0C;                                  /* camera and video screens */
  --shadow-device: 0 40px 70px -28px color-mix(in srgb, var(--color-ink) 55%, transparent), 0 14px 28px -18px color-mix(in srgb, var(--color-ink) 40%, transparent);
  --fs-ui-caption: 0.8125rem;                                /* 13 */
  --fs-ui-small: 0.9375rem;                                  /* 15 */
  --fs-ui-body: 1.0625rem;                                   /* 17, the iOS body size */
  --fs-ui-title: 1.375rem;                                   /* 22 */
  --fs-ui-large: 2.125rem;                                   /* 34 */
  --fs-ui-hero: 2.75rem;                                     /* 44 */
  --fs-ui-clock: 5.5rem;                                     /* 88, the lock screen clock */
}

@media (max-width: 47.9375rem) {
  :root {
    --header-h: 3.75rem;                                     /* 60 */
  }
}
