/* ============================================================
   Rankd Marketing Tracker — design system (light + colorful)
   One token set shared by the marketing site AND the dashboard so
   the whole product feels like one thing. No dark theme by design.
   ============================================================ */

:root {
  /* --- brand --- */
  --violet: #7c3aed;          /* Rankd brand */
  --violet-600: #6d28d9;
  --violet-700: #5b21b6;
  --violet-300: #c4b5fd;
  --violet-100: #ede9fe;
  --violet-050: #f5f3ff;

  /* --- ink (text) — near-black with a violet undertone --- */
  --ink: #1d1830;
  --ink-2: #4a4360;
  --ink-3: #837e96;
  --ink-4: #aaa5bb;

  /* --- surfaces --- */
  --paper: #ffffff;
  --bg: #faf8ff;              /* app + page canvas, faint lavender */
  --bg-2: #f3effb;
  --line: #ece8f6;
  --line-2: #e0daf0;

  /* --- accents (the "colorful") --- */
  --green: #11b364;          /* revenue / positive / money in */
  --green-700: #0a8f4f;
  --green-100: #d6f5e4;
  --amber: #f59e0b;          /* ad spend / caution */
  --amber-700: #c97a05;
  --amber-100: #fcefcf;
  --sky: #0ea5e9;            /* calls / volume */
  --sky-700: #0784bd;
  --sky-100: #d6eefb;
  --coral: #f43f6e;          /* missed / alerts */
  --coral-100: #fde0e7;
  --teal: #14b8a6;
  --indigo: #6366f1;

  /* --- chart series (distinct hues, strongest first) --- */
  --c0: #7c3aed;  /* violet */
  --c1: #0ea5e9;  /* sky */
  --c2: #11b364;  /* green */
  --c3: #f59e0b;  /* amber */
  --c4: #f43f6e;  /* coral */
  --c5: #14b8a6;  /* teal */
  --c6: #a78bfa;  /* light violet */
  --chart-grid: rgba(29, 24, 48, 0.08);

  /* --- type --- */
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* --- shape + depth --- */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(29, 24, 48, .06), 0 1px 3px rgba(29, 24, 48, .05);
  --shadow: 0 4px 14px rgba(29, 24, 48, .07), 0 2px 6px rgba(29, 24, 48, .05);
  --shadow-lg: 0 24px 60px -18px rgba(91, 33, 182, .28), 0 10px 24px -12px rgba(29, 24, 48, .12);
  --shadow-violet: 0 14px 30px -10px rgba(124, 58, 237, .45);

  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }

::selection { background: var(--violet-100); color: var(--violet-700); }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--violet);
}
.muted { color: var(--ink-3); }

/* ---------- brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { height: 26px; width: auto; }
.brand .tag {
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  padding-left: 11px;
  border-left: 1.5px solid var(--line-2);
  line-height: 1.15;
}
.brand .tag b { display: block; color: var(--violet); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; color: var(--ink);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #8b5cf6, var(--violet));
  color: #fff; box-shadow: var(--shadow-violet);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(124, 58, 237, .55); }
.btn-ghost { background: var(--paper); border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--violet-300); color: var(--violet-700); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); }
.btn-lg { font-size: 17px; padding: 16px 28px; }
.btn-sm { font-size: 13px; padding: 8px 14px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 24px; }

/* ---------- form fields ---------- */
.field { display: block; margin-bottom: 16px; }
.label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 7px; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, select.input:focus, textarea.input:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 4px var(--violet-100);
}
.input::placeholder { color: var(--ink-4); }
.input-group { position: relative; }
.input-group .prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); font-family: var(--mono); font-weight: 700; pointer-events: none;
}
.input-group .input { padding-left: 30px; }

/* ---------- badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--violet-100); color: var(--violet-700);
}
.badge.green { background: var(--green-100); color: var(--green-700); }
.badge.amber { background: var(--amber-100); color: var(--amber-700); }
.badge.sky { background: var(--sky-100); color: var(--sky-700); }
.badge.coral { background: var(--coral-100); color: #be123c; }
.badge.ink { background: var(--bg-2); color: var(--ink-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- toast / alert ---------- */
.alert { border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; font-weight: 600; }
.alert.err { background: var(--coral-100); color: #be123c; }
.alert.ok { background: var(--green-100); color: var(--green-700); }
.alert.info { background: var(--sky-100); color: var(--sky-700); }

/* ---------- spinner ---------- */
.spin { width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block; }
.spin.ink { border-color: var(--violet-100); border-top-color: var(--violet); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .06s; } .d2 { animation-delay: .14s; }
.d3 { animation-delay: .22s; } .d4 { animation-delay: .3s; } .d5 { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding: 48px 0 36px; margin-top: 80px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer a.flink { color: var(--ink-3); font-size: 14.5px; display: block; padding: 4px 0; }
.site-footer a.flink:hover { color: var(--violet); }
.site-footer .legal { margin-top: 28px; color: var(--ink-4); font-size: 13px; }

/* ---------- utility ---------- */
.tnum { font-variant-numeric: tabular-nums; font-family: var(--mono); }
.hide { display: none !important; }
@media (max-width: 720px) { .wrap { padding: 0 18px; } }
