/* Q'Creative · design tokens (rebrand pastel, oct-2026)
   Contract: the 29 variables listed in the team brief keep these names. Extra tokens below them are optional helpers.
   Rule of thumb: pastel is light and fill, never small text. Ink fill is reserved for the primary CTA. */

:root {
  /* ---------- Contract variables ---------- */

  /* Surfaces */
  --bg: #FBFBFD;            /* page canvas: near-white with a cool violet hint */
  --surface: #FFFFFF;       /* cards, mock windows, nav glass base */
  --surface-2: #F3F3F8;     /* quiet panels, hover fills, mock window bars */

  /* Text */
  --ink: #14131A;           /* headings, body text, primary CTA fill (logo black, violet-tinted) */
  --ink-2: #4F4E58;         /* secondary text, leads, paragraphs (AA on every surface and pastel) */
  --ink-3: #686872;         /* captions, labels, eyebrows (AA on bg, surface, surface-2 and washes; not on full pastels) */
  --line: #E6E5EB;          /* hairlines: grid, borders, dividers */

  /* Action */
  --accent: #14131A;        /* primary CTA fill: ink pill + pastel halo. The most visible piece of the page */
  --accent-ink: #FFFFFF;    /* text on --accent (18.5:1) */
  --accent-2: #6239BA;      /* signal violet: links, focus ring, active indicators, small colored text (7.2:1 on bg) */

  /* Pastels: light, fills, glows, tube colors. Never as text on light surfaces */
  --p-lilac: #DCCAFF;       /* lead pastel: hero mesh, active chips, featured tints */
  --p-peach: #FFCBB4;       /* warm pastel: mesh, UGC/video tags */
  --p-mint: #A6F3D7;        /* positive pastel: results, metric highlights (CTR up, CPL down) */
  --p-sky: #AEE2FF;         /* cool pastel: mesh, process and Slack accents */
  --p-butter: #FDEEA4;      /* spark pastel: small highlights, badges; use sparingly */

  /* Dark block */
  --dark: #0E0D15;          /* the punctual dark section with pastel glow */
  --dark-ink: #F5F4F9;      /* text on --dark (17.7:1) */

  /* Shape */
  --radius-s: 10px;         /* chips' inner parts, small tiles, inputs */
  --radius-m: 16px;         /* mock windows, metric cards, creatives */
  --radius-l: 24px;         /* cards, pricing, panels */
  --radius-pill: 999px;     /* buttons, chips, tags */

  /* Depth: soft, violet-tinted shadows for "objects with volume" */
  --shadow-s: 0 1px 2px rgb(20 19 26 / 0.05), 0 1px 1px rgb(20 19 26 / 0.03);
  --shadow-m: 0 2px 4px -1px rgb(20 19 26 / 0.05), 0 12px 28px -8px rgb(40 26 84 / 0.12);
  --shadow-l: 0 4px 10px -2px rgb(20 19 26 / 0.05), 0 28px 56px -16px rgb(40 26 84 / 0.18), 0 56px 110px -32px rgb(40 26 84 / 0.14);

  /* Type families (self-hosted in ../fonts, fallbacks with metric overrides in base.css) */
  --font-display: "Funnel Display", "Funnel Display Fallback", "Funnel Display Fallback Android", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Funnel Sans", "Funnel Sans Fallback", "Funnel Sans Fallback Android", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Motion and layout */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1200px;

  /* ---------- Extended tokens (optional helpers) ---------- */

  /* More neutrals */
  --ink-muted: #73727C;     /* second half of two-tempo headlines (4.6:1 on bg, 4.7:1 on surface); keep it off full pastels */
  --line-strong: #BDBDC5;   /* secondary button border, input borders, hover hairlines */
  --surface-glass: rgb(251 251 253 / 0.78); /* sticky nav and mobile bar, with backdrop blur */

  /* Pastel depth: shadow side of tubes and 3D objects, glow stops, borders on pastel. Not text */
  --p-lilac-deep: #C2A5FF;
  --p-peach-deep: #FFA37F;
  --p-mint-deep: #68DDB8;
  --p-sky-deep: #78C7FD;
  --p-butter-deep: #EED86D;

  /* Pastel ink: dark version of each hue for small colored text (all >= 4.5:1 on bg, surface, wash and own pastel) */
  --p-lilac-ink: #693CAB;
  --p-peach-ink: #983803;
  --p-mint-ink: #006C52;
  --p-sky-ink: #00619B;
  --p-butter-ink: #7B5600;

  /* Washes: 40 % pastel over white, for big tinted cards where --ink-3 must stay AA */
  --w-lilac: #F1EAFF;
  --w-peach: #FFEAE1;
  --w-mint: #DBFAEF;
  --w-sky: #DFF3FF;
  --w-butter: #FEF8DB;

  /* Dark block extras */
  --dark-2: #191821;        /* cards inside the dark block */
  --dark-line: #302F3A;     /* hairlines inside the dark block */
  --dark-ink-2: #B1B0BA;    /* secondary text on dark (9.0:1) */
  --dark-muted: #92919C;    /* second half of headlines on dark (6.2:1) */

  /* Focus */
  --focus: var(--accent-2);
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus);

  /* Gradients */
  --grad-spectrum: linear-gradient(100deg, var(--p-lilac) 0%, var(--p-sky) 28%, var(--p-mint) 52%, var(--p-butter) 74%, var(--p-peach) 100%);
  --grad-iris: conic-gradient(from var(--iris-angle, 0deg), var(--p-lilac-deep), var(--p-sky-deep), var(--p-mint-deep), var(--p-butter-deep), var(--p-peach-deep), var(--p-lilac-deep));
  /* Static hero mesh (also the no-WebGL fallback). Color pools right and bottom; the top-left text zone stays near-white */
  --grad-mesh:
    radial-gradient(40% 55% at 72% 26%, rgb(220 202 255 / 0.85), transparent 70%),
    radial-gradient(34% 48% at 96% 8%, rgb(174 226 255 / 0.80), transparent 70%),
    radial-gradient(44% 50% at 78% 98%, rgb(255 203 180 / 0.75), transparent 70%),
    radial-gradient(30% 44% at 100% 66%, rgb(166 243 215 / 0.75), transparent 70%),
    radial-gradient(30% 34% at 30% 104%, rgb(253 238 164 / 0.55), transparent 70%);
  /* Mobile hero mesh: color pools at the bottom only, so a full-width headline stays on near-white */
  --grad-mesh-sm:
    radial-gradient(70% 34% at 18% 100%, rgb(220 202 255 / 0.85), transparent 70%),
    radial-gradient(60% 30% at 88% 92%, rgb(174 226 255 / 0.80), transparent 70%),
    radial-gradient(50% 22% at 60% 104%, rgb(255 203 180 / 0.70), transparent 70%),
    radial-gradient(40% 18% at 100% 8%, rgb(166 243 215 / 0.55), transparent 70%);
  /* Dark-block glow: cool pastels only. Peach and butter turn brown over near-black */
  --glow-dark:
    radial-gradient(44% 72% at 20% 104%, rgb(194 165 255 / 0.78), transparent 70%),
    radial-gradient(40% 64% at 54% 110%, rgb(120 199 253 / 0.62), transparent 70%),
    radial-gradient(34% 58% at 86% 104%, rgb(104 221 184 / 0.50), transparent 70%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' 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 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Fluid type scale (375 px to 1440 px) */
  --fs-hero: clamp(2.75rem, 1.53rem + 5.2vw, 6rem);       /* 44 to 96 */
  --fs-h2: clamp(2rem, 1.33rem + 2.85vw, 3.75rem);        /* 32 to 60 */
  --fs-h3: clamp(1.375rem, 1.17rem + 0.9vw, 1.875rem);    /* 22 to 30 */
  --fs-h4: clamp(1.125rem, 1.06rem + 0.28vw, 1.3125rem);  /* 18 to 21 */
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.38vw, 1.3125rem); /* 17 to 21 */
  --fs-body: 1rem;          /* 16 */
  --fs-sm: 0.875rem;        /* 14 */
  --fs-xs: 0.8125rem;       /* 13 */
  --fs-eyebrow: 0.75rem;    /* 12, mono uppercase */

  --lh-hero: 0.96;
  --lh-heading: 1.04;
  --lh-snug: 1.2;
  --lh-body: 1.55;

  --tr-hero: -0.048em;
  --tr-h2: -0.04em;
  --tr-h3: -0.025em;
  --tr-eyebrow: 0.08em;

  /* Spacing (4 px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --gutter: clamp(16px, 3.4vw, 32px);
  --section-y: clamp(40px, 2.5rem + 2.5vw, 80px); /* 49 at 375, 76 at 1440 (45 % less than the first build) */

  /* Chrome */
  --nav-h: 64px;
  --mobile-cta-h: 68px;
  --z-nav: 50;
  --z-mobile-cta: 60;

  /* Durations */
  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 640ms;
}
