/* ============================================================================
   AIST DESIGN SYSTEM — PRODUCT MODE
   ----------------------------------------------------------------------------
   The working tools: WorkAist app, Aist.guru CRM (Directus), Control Plane.
   Inversion vs marketing — base = CREAM, plates/inputs = WHITE.
   Opt in with data-mode="product" on <html>. Pair with data-theme="dark".
   Requires: core.css + semantic.css.
   ========================================================================== */

[data-mode="product"] {
  --color-bg:        var(--aist-cream);     /* warm working canvas            */
  --color-surface:   var(--aist-white);     /* cards, inputs, panels = white  */
  --color-surface-2: var(--aist-cream-2);   /* sidebars, insets, table zebra  */
  --color-chip:      var(--aist-warm-100);

  /* Product UI is denser and calmer than marketing. */
  --prod-heading-weight: var(--aist-weight-bold);   /* 700                    */
  --prod-h1-size:        34px;                       /* screen title           */
  --prod-body-size:      var(--fs-base);             /* 14px                   */
  --prod-body-size-sm:   var(--fs-sm);               /* 13px dense tables      */

  /* Corner language: product leans to the softer end of the scale. */
  --prod-radius-control: var(--radius-sm);   /* buttons, inputs               */
  --prod-radius-card:    var(--radius-md);   /* cards, tiles                  */
  --prod-radius-panel:   var(--radius-lg);   /* popovers, modals, side panels */

  /* Entity cards carry a 3px accent-by-type left rail (see 20-product.md). */
  --prod-rail-width: 3px;

  /* Content-area background: warm cream + ONE soft radial glow top-right.
     No dot pattern, no bright blob — those are marketing-only. Glow off on
     mobile (< --bp-mobile) — see 20-product.md. */
  --prod-bg-image: radial-gradient(120% 70% at 100% 0%, var(--color-glow) 0%, var(--color-bg) 46%);
}

/* Product dark theme keeps cream→graphite inversion consistent:
   surface stays a touch lighter than bg (white → #262629). */
[data-mode="product"][data-theme="dark"] {
  --color-bg:        var(--aist-d-bg);
  --color-surface:   var(--aist-d-surface);
  --color-surface-2: var(--aist-d-surface-2);
  --color-chip:      var(--aist-d-chip);
}
