/* ==========================================================================
   Lynkame — Design tokens + core components
   Served directly by nginx; no build step required.
   ========================================================================== */

:root {
  /* ── Color — light surface (used by dashboard, auth, landing) ── */
  --bg:            #fafafa;
  --surface:       #ffffff;
  --surface-2:     #f5f5f5;
  --surface-3:     #eeeeee;
  --border:        #e5e5e5;
  --border-strong: #d4d4d4;

  --text:          #0a0a0a;
  --text-muted:    #666666;
  --text-subtle:   #999999;
  --text-faint:    #bbbbbb;

  --accent:        #0a0a0a;
  --accent-hover:  #2a2a2a;
  --accent-on:     #ffffff;

  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #dc2626;

  --pix:           #32bcad;     /* Pix brand teal */
  --whatsapp:      #25d366;
  --telegram:      #26a5e4;
  --facebook:      #1877f2;

  /* ── Typography ── */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', monospace;

  --text-xs:       0.72rem;    /* 11.5px */
  --text-sm:       0.82rem;    /* 13px   */
  --text-base:     0.9rem;     /* 14.5px */
  --text-lg:       1rem;       /* 16px   */
  --text-xl:       1.2rem;
  --text-2xl:      1.5rem;
  --text-3xl:      2rem;
  --text-4xl:      2.75rem;

  --leading-tight:   1.2;
  --leading-snug:    1.35;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide:  0.04em;
  --tracking-wider: 0.08em;

  /* ── Spacing (4px base) ── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* ── Radii ── */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-focus: 0 0 0 3px rgba(10, 10, 10, 0.08);

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition: 150ms var(--ease-out);
  --transition-slow: 300ms var(--ease-out);
}

/* ==========================================================================
   Base reset
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--accent); color: var(--accent-on); }

/* ==========================================================================
   Component utilities — opt-in class names used by new/refactored views
   ========================================================================== */

.l-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.3rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-on);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.l-button:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.l-button:active { transform: translateY(0); }
.l-button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.l-button-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.l-button-ghost:hover {
  background: var(--surface-2);
  border-color: var(--text);
  box-shadow: none;
}

.l-button-soft {
  background: var(--surface-3);
  color: var(--text);
}
.l-button-soft:hover { background: var(--border); }

.l-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.l-stack    { display: flex; flex-direction: column; }
.l-stack-2  { gap: var(--space-2); }
.l-stack-3  { gap: var(--space-3); }
.l-stack-4  { gap: var(--space-4); }
.l-stack-6  { gap: var(--space-6); }
.l-stack-8  { gap: var(--space-8); }

.l-row      { display: flex; align-items: center; }
.l-row-between { justify-content: space-between; }
.l-row-gap  { gap: var(--space-3); }

.l-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.l-container-narrow {
  max-width: 560px;
}

.l-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-subtle);
}

.l-h1 {
  font-size: clamp(2rem, 5vw, var(--text-4xl));
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.l-h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.l-h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--leading-snug);
  color: var(--text);
}

.l-lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
}

.l-body {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
}

.l-muted {
  color: var(--text-muted);
}

/* Prefers reduced motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
}
