/* ==========================================================================
   LH Sales Toolkit — Design tokens
   Direction: LINE-native light surface + Land & Houses navy/gold accent.
   LINE green is reserved ONLY for affordances that are genuinely LINE's
   (open chat, share via LINE). Never use it for generic primary buttons.
   ========================================================================== */

:root {
  /* ---- Brand ramps ---------------------------------------------------- */
  --lh-navy-900: #0b1c2e;
  --lh-navy-800: #0e2338;
  --lh-navy-700: #15314f;
  --lh-navy-600: #1d4169;
  --lh-navy-500: #24507d;
  --lh-navy-100: #e7eef6;
  --lh-navy-050: #f3f7fb;

  --lh-gold-600: #a9761c;
  --lh-gold-500: #c9922b;
  --lh-gold-200: #f2dfb4;
  --lh-gold-100: #fbf2df;

  /* LINE platform green — platform actions only.
     White on #06c755 is only 2.26:1, so the BUTTON fill uses --line-green-fill
     (5.48:1 with white) while #06c755 stays the brand mark for icons and
     borders. Do not recolour #06c755 itself. */
  --line-green: #06c755;
  --line-green-fill: #037a32;
  --line-green-fill-hover: #02611f;
  --line-green-ink: #04993f;

  /* ---- Semantic surfaces --------------------------------------------- */
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eff3f8;
  --border: #e3e8ef;
  --border-strong: #cfd8e3;

  /* Soft borders, one per intent, to pair with the matching --x-soft fill.
     Decorative hairlines only — no text sits on them, so they are exempt
     from the 4.5:1 rule the intent ramps follow. */
  --border-ok: #bfe3d2;
  --border-warn: #f3dfc0;
  --border-danger: #f1d2d2;
  --border-info: #cfdeef;

  /* ---- Text ----------------------------------------------------------- */
  --text: #0e1b2a;
  --text-2: #5a6b7d;
  --text-3: #647386;   /* 4.84:1 on --surface, 4.59:1 on --surface-2.
                          Not for use on --warn-soft (4.3:1) — use --text-2. */
  --text-on-dark: #ffffff;

  /* ---- Intent ---------------------------------------------------------
     Two tiers per intent, because one value cannot do both jobs at 4.5:1:
       --x        the fill / icon / meter colour (saturated, reads as the hue)
       --x-ink    TEXT on the matching --x-soft background
       --x-strong a fill dark enough to carry WHITE text
     Contrast was computed, not eyeballed; every pair below is >= 4.5:1 for
     normal text. If you change one, recompute its partner. */
  --primary: var(--lh-navy-700);
  --primary-hover: var(--lh-navy-600);
  --primary-ink: #ffffff;
  --accent: var(--lh-gold-500);
  --accent-soft: var(--lh-gold-100);
  --accent-ink: #3d2a05;      /* dark ink ON the gold fill       4.98:1 */
  --gold-ink: #8a5f12;        /* gold text on --lh-gold-100      5.06:1 */

  --ok: #0e9f6e;              /* fills, icons, SLA meter bars            */
  --ok-strong: #0b7d57;       /* white text on this fill         5.14:1 */
  --ok-hover: #096847;        /* hover goes DARKER, not lighter  6.81:1 */
  --ok-ink: #0b7d57;          /* text on --ok-soft               4.58:1 */
  --ok-soft: #e4f6ee;

  --warn: #cf7a0c;
  --warn-ink: #9c5c08;        /* text on --warn-soft             4.73:1
                                 (--warn itself is only 2.90:1 there)   */
  --warn-soft: #fdf0dc;

  --danger: #d43a3a;
  --danger-ink: #b02a2a;      /* text on --danger-soft           5.47:1 */
  --danger-soft: #fbe6e6;

  --info: var(--lh-navy-500);
  --info-ink: var(--lh-navy-500);  /* already 7.13:1 on --info-soft     */
  --info-soft: var(--lh-navy-100);

  /* ---- Lead grade (A/B/C) ---------------------------------------------
     Must differ in LIGHTNESS, not hue alone, and must stay distinct from
     the stage tones (which use info / ok / warn / danger) or the chip stops
     being scannable. Green / gold / grey, each >= 4.5:1 on its own soft. */
  --grade-a: var(--ok-strong);     /* green  4.58:1 on soft */
  --grade-a-soft: var(--ok-soft);
  --grade-b: var(--gold-ink);      /* gold   5.06:1 on soft — NOT navy,
                                      navy is --info and reads as a stage */
  --grade-b-soft: var(--lh-gold-100);
  --grade-c: #4e5d6e;              /* grey   5.58:1 on soft */
  --grade-c-soft: #e6eaf0;         /* deliberately NOT --bg, so the chip
                                      keeps an edge on the page background */

  /* ---- Radius --------------------------------------------------------- */
  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* ---- Elevation ------------------------------------------------------ */
  --sh-1: 0 1px 2px rgba(14, 27, 42, .06), 0 1px 3px rgba(14, 27, 42, .04);
  --sh-2: 0 2px 6px rgba(14, 27, 42, .07), 0 6px 16px rgba(14, 27, 42, .06);
  --sh-3: 0 8px 24px rgba(14, 27, 42, .12), 0 2px 6px rgba(14, 27, 42, .06);
  --sh-up: 0 -4px 18px rgba(14, 27, 42, .09);

  /* ---- Type ----------------------------------------------------------- */
  --font: "Noto Sans Thai", "IBM Plex Sans Thai", -apple-system,
    BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Sarabun", sans-serif;
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-17: 17px;
  --fs-20: 20px;
  --fs-26: 26px;

  /* ---- Layout --------------------------------------------------------- */
  --appbar-h: 52px;
  --tabbar-h: 62px;
  --gutter: 14px;
  --page-max: 880px;

  /* ---- Motion --------------------------------------------------------- */
  --t-fast: 120ms cubic-bezier(.4, 0, .2, 1);
  --t-base: 200ms cubic-bezier(.4, 0, .2, 1);
}
