/* ============================================================
   LeadFlow — Brand System
   Design tokens + reference-document styles.
   Direction: "Amber Ink" (the live product palette).
   Fonts: Poppins (display) · Manrope (UI / body)
   ============================================================ */

:root {
  /* ---- Surfaces ---- */
  --cream:        #F4F1EA;  /* app / page background */
  --card:         #FCFAF5;  /* default card surface */
  --card-soft:    #F6F2EA;  /* recessed / secondary surface */
  --white:        #FFFFFF;  /* elevated card (top priority, replies) */
  --border:       #E8E2D6;  /* default hairline border */
  --border-soft:  #F0EBDF;  /* faint divider */

  /* ---- Ink / text ---- */
  --ink:          #37434F;  /* primary text, headings, wordmark */
  --ink-soft:     #56636F;  /* secondary text */
  --muted:        #8C8676;  /* labels, captions, supporting copy */
  --faint:        #B4AE9F;  /* placeholder, disabled, meta */

  /* ---- Coral · primary accent ---- */
  --coral:        #E07A63;  /* primary buttons, key actions, flag */
  --coral-deep:   #BE5640;  /* accent text on light, pressed state */
  --coral-bg:     #FBE8E1;  /* coral tint: chips, avatars, highlights */

  /* ---- Amber · secondary accent ---- */
  --amber:        #B0843C;  /* "missing info", medium priority */
  --amber-bg:     #F3E7D0;  /* amber tint */

  /* ---- Slate · informational ---- */
  --slate:        #7C8AA0;  /* neutral data accent */
  --slate-bg:     #E9EDF2;  /* slate tint */

  /* ---- Channel colors (functional only) ---- */
  --wa:           #1FA855;  /* WhatsApp */
  --ig:           #D1518D;  /* Instagram */

  /* ---- Type ---- */
  --font-display: 'Poppins', -apple-system, system-ui, sans-serif;
  --font-ui:      'Manrope', -apple-system, system-ui, sans-serif;

  /* ---- Radius ---- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* ---- Spacing scale (4pt base) ---- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  /* ---- Shadows ---- */
  --shadow-card:  0 3px 12px -10px rgba(39,49,60,0.4);
  --shadow-pop:   0 14px 30px -18px rgba(190,86,64,0.5);
  --shadow-btn:   0 10px 20px -12px rgba(224,122,99,0.9);
  --shadow-sheet: 0 30px 70px -34px rgba(39,49,60,0.28);
}

/* ============================================================
   Document shell
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  background:
    radial-gradient(120% 70% at 50% -8%, #F8F5EE 0%, #F1EDE4 48%, #EAE4D7 100%) fixed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--coral-bg); color: var(--coral-deep); }

/* buttons (product) */
.btn {
  border: none; cursor: pointer; font-family: var(--font-ui); font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { height: 52px; padding: 0 26px; border-radius: 14px; font-size: 15.5px; background: var(--coral); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { filter: brightness(1.02); }
.btn-secondary { height: 46px; padding: 0 20px; border-radius: 12px; font-size: 14px; background: #fff; color: var(--coral-deep); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--coral); }
.btn-ghost { height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; background: transparent; color: var(--ink-soft); border: 1.5px solid var(--border-soft); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill); font-family: var(--font-ui); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.badge-top { background: var(--coral-deep); color: #fff; padding: 6px 12px; }
.badge-top .pip { width: 6px; height: 6px; border-radius: var(--r-pill); background: #fff; }
.badge-high { background: var(--coral-deep); color: #fff; padding: 5px 12px; }
.badge-med { background: var(--amber-bg); color: #9C7833; padding: 5px 12px; }

/* avatar */
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--coral-bg); color: var(--coral-deep); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; position: relative; }
.avatar .src { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }

/* lead card (product) */
.lead-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 15px 16px; position: relative; overflow: hidden; box-shadow: var(--shadow-card); width: 340px; max-width: 100%;
}
.lead-card.top { background: #fff; border-color: var(--coral-bg); box-shadow: var(--shadow-pop); }
.lead-card .accent { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--coral); opacity: .5; }
.lead-card.top .accent { background: var(--coral-deep); opacity: .95; }
.lead-card .row { display: flex; align-items: center; gap: 13px; }
.lead-card .nm { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
.lead-card .intent { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.lead-card .next { display: flex; align-items: center; gap: 8px; margin-top: 13px; }

/* reply card */
.reply-card { background: #fff; border: 1px solid var(--coral-bg); border-radius: var(--r-lg); padding: 15px 16px; font-size: 15.5px; line-height: 1.5; color: var(--ink); font-weight: 500; box-shadow: 0 8px 20px -16px rgba(190,86,64,0.5); max-width: 360px; }
