/* ==========================================================================
   AIQuest brand tokens — THE SINGLE SOURCE OF TRUTH for every brand value.
   --------------------------------------------------------------------------
   Governed by  aiq-library/context/rules-brand-web.md
   Explained in aiq-library/context/docs-brand-web.md

   ⛔ A brand hex is written HERE and nowhere else. If you are about to type
      #5e17eb into a component, you are creating the second copy this file
      exists to prevent. Use var(--aiq-purple).

   Copy this file into your project unchanged. Add your own tokens in a
   SEPARATE file — never by editing this one.
   ========================================================================== */

:root {
  /* ── Identity ──────────────────────────────────────────────────────────
     Two colours carry the brand. Everything else is grey.                */
  --aiq-purple:        #5e17eb;   /* the brand. Actions, rails, accents   */
  --aiq-red:           #ff3131;   /* the counter-accent. Small, sparing   */

  /* Purple, in its other registers */
  --aiq-purple-hover:  #6d29f5;   /* solid button, hover                  */
  --aiq-purple-bright: #7c3aed;   /* badges, accent-word gradient start   */
  --aiq-purple-pale:   #c084fc;   /* accent-word gradient end             */
  --aiq-lilac:         #b79bff;   /* the ONLY accent legible on dark      */
  --aiq-logo-purple:   #7a11ff;   /* ⚠ inside the logo SVGs. NOT for UI   */

  /* ── Light surfaces — the white/grey ladder ────────────────────────── */
  --aiq-white:         #ffffff;   /* section ground A                     */
  --aiq-grey:          #f4f4f4;   /* section ground B, and tile fill      */
  --aiq-band:          #dfdfdf;   /* the strip between a dark hero and white */
  --aiq-hair:          #e0e0e0;   /* borders on light                     */
  --aiq-hair-strong:   #d5d5de;   /* 2px borders on cards                 */

  /* ── Dark surfaces — heroes and closing blocks only ────────────────── */
  --aiq-ink-hero:      #0a0a0f;   /* hero ground. Near-black, faint blue  */
  --aiq-ink-photo:     #0d0d0d;   /* ground behind a greyscale photo      */
  --aiq-ink-block:     #0f0f1a;   /* a full dark section (a closing CTA)  */

  /* ── Text ──────────────────────────────────────────────────────────── */
  --aiq-text-dark:     #1a1a1a;   /* headings, and body on light          */
  --aiq-text:          #555555;   /* body                                 */
  --aiq-text-mid:      #666666;   /* secondary body                       */
  --aiq-text-light:    #777777;   /* captions                             */
  --aiq-text-muted:    #9ca3af;   /* labels, on either ground             */
  --aiq-text-on-dark:  #cfcfda;   /* body on a dark ground                */
  --aiq-text-on-dark-strong: #dcdce6;

  /* Neutral button — grey at rest, purple on hover. See the rules file. */
  --aiq-btn-rest:      #6a6a6a;

  /* ── Type ──────────────────────────────────────────────────────────── */
  --aiq-serif:  "Playfair Display", Georgia, serif;   /* HEADINGS ONLY    */
  --aiq-sans:   "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --aiq-h-section:  40px;   /* the standard section heading               */
  --aiq-h-tile:     22px;   /* a tile title                               */
  --aiq-eyebrow:    14px;   /* uppercase label above a heading            */
  --aiq-body:       16px;
  --aiq-small:      15px;

  --aiq-track-eyebrow: 0.18em;  /* uppercase needs letter-spacing         */
  --aiq-track-hero:    0.24em;

  /* ── Layout ────────────────────────────────────────────────────────── */
  --aiq-container:  1202px;   /* every page, every app                    */
  --aiq-gutter:     24px;
  --aiq-section-y:  64px;     /* vertical rhythm between sections         */
  --aiq-rail:       16px;     /* the purple rail on a primary hero        */
  --aiq-rail-sub:   10px;     /* on a secondary page's hero               */

  /* ── Shape ─────────────────────────────────────────────────────────────
     Content tiles are SQUARE. Only controls get a radius.               */
  --aiq-radius-tile:   0;
  --aiq-radius-btn:    9px;
  --aiq-radius-card:   12px;
  --aiq-radius-pill:   20px;

  /* ── Depth — grey at rest, purple on interaction ───────────────────── */
  --aiq-shadow-rest:  0 2px 8px rgba(0, 0, 0, 0.05);
  --aiq-shadow-hover: 0 3px 12px rgba(94, 23, 235, 0.10),
                      0 1px 4px  rgba(94, 23, 235, 0.06);
  --aiq-border-hover: rgba(94, 23, 235, 0.20);
  --aiq-border-badge: rgba(124, 58, 237, 0.30);
  --aiq-shadow-card:  0 4px 18px rgba(94, 23, 235, 0.10);

  /* ── Gradients ─────────────────────────────────────────────────────── */
  /* The brand gradient. Large fills only — never behind body text.      */
  --aiq-gradient: linear-gradient(184.78deg, #5e17eb 7.64%, #ff3131 120.07%);
  /* The accent word inside a heading. Clipped to text.                  */
  --aiq-gradient-word: linear-gradient(135deg, #7c3aed 0%, #c084fc 100%);

  /* ── Motion ────────────────────────────────────────────────────────── */
  --aiq-t-fast:  0.15s ease;   /* buttons                                */
  --aiq-t-tile:  0.35s ease;   /* tile hover                             */
  --aiq-t-grade: 0.5s  ease;   /* greyscale → colour                     */
}

/* ── Breakpoints, for reference. CSS custom properties cannot be used in
      a media query, so these are stated here and repeated literally in
      @media rules. This is the one unavoidable duplication.
        900px  the hero mask is dropped below this
        767px  grids collapse to one column
        640px  hero padding tightens
   ────────────────────────────────────────────────────────────────────── */
