/* Verde Outreach client portal.
   Warm off-white ground, deep-green sidebar, white cards with soft corners,
   amber reserved for the good news (replies, meetings). Plus Jakarta Sans. */

:root {
  --bg: #f6f5f1;
  --card: #ffffff;
  --text: #172320;
  --muted: #6b7773;
  --faint: #9aa39f;
  --line: #eeede7;
  --line-strong: #e6e4dc;

  --brand: #1f7a5a;
  --brand-deep: #0f2f24;
  --brand-soft: #e6f5ef;
  --amber: #f2a93b;
  --amber-soft: #fdf3e2;
  --amber-text: #b9791a;

  /* Status palette -- reserved for state, always paired with a label + dot */
  --status-good: #1f7a5a;
  --status-good-bg: #e3f5ec;
  --status-good-text: #1b6b34;
  --status-warning: #f2a93b;
  --status-warning-bg: #fdf3e2;
  --status-warning-text: #8a5a00;
  --status-critical: #d9534f;
  --status-critical-bg: #fdeaea;
  --status-critical-text: #b3261e;
  --status-neutral-bg: #eeede7;
  --status-neutral-text: #6b7773;

  /* Metric colors -- fixed per metric so Sent is always blue, Replies always amber */
  --series-sent: #5b8def;
  --series-sent-soft: #eaf1fb;
  --series-delivered: #1f7a5a;
  --series-delivered-soft: #e6f5ef;
  --series-opened: #2bb28a;
  --series-opened-soft: #e4f4f0;
  --series-reply: #f2a93b;
  --series-reply-soft: #fdf3e2;
  --chart-grid: #e8e6df;
  --chart-muted: #8a948f;
  --chart-surface: #ffffff;
  --ring-track: #edece6;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(23, 35, 32, 0.05);
  --shadow-float: 0 12px 30px rgba(15, 47, 36, 0.14);
  --side-w: 236px;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; color: var(--text); line-height: 1.2; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* ---------- App shell ---------- */

.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(90deg, var(--brand-deep) 0, var(--brand-deep) var(--side-w), var(--bg) var(--side-w)); }
.side {
  background: var(--brand-deep);
  color: white;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side-logo { display: block; margin: 4px 0 34px 6px; }
.side-logo img { height: 26px; display: block; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  padding: 10px 12px; border-radius: 12px;
  font-weight: 500; margin-bottom: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.side-nav a:hover { background: rgba(255, 255, 255, 0.07); color: white; text-decoration: none; }
.side-nav a.active { background: rgba(255, 255, 255, 0.12); color: white; }
.side-nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side-grow { flex: 1; }
.side-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--amber); color: var(--text);
  font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none;
}
.side-user-name { font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.side-user a { color: rgba(255, 255, 255, 0.55); font-size: 12px; }
.side-user a:hover { color: white; }

.main { padding: 30px 36px 60px; min-width: 0; }

@media (max-width: 860px) {
  /* Phone shell: header row sized to content (never absorbs spare height),
     logo + avatar on one line, nav as a swipeable strip beneath. */
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; background: var(--bg); }
  .hero .big { font-size: 30px; }
  .hero .meet { min-width: 0; width: 100%; }
  .side {
    position: sticky; top: 0; z-index: 10; height: auto;
    flex-direction: row; flex-wrap: wrap; align-items: center;
    padding: 10px 14px 6px;
    box-shadow: 0 2px 10px rgba(15, 47, 36, 0.25);
  }
  .side-logo { order: 1; margin: 0; }
  .side-logo img { height: 22px; }
  .side-grow { display: none; }
  .side-user { order: 2; margin-left: auto; padding: 0; background: transparent; }
  .side-user .avatar { width: 30px; height: 30px; font-size: 13px; }
  .side-user-text { display: none; }
  .side-nav {
    order: 3; flex-basis: 100%; display: flex; gap: 4px;
    overflow-x: auto; margin-top: 8px; padding-bottom: 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { flex: none; padding: 7px 12px; margin: 0; font-size: 13.5px; }
  .side-nav a svg { display: none; }
  .main { padding: 18px 14px 50px; overflow-x: hidden; }
  .top h1 { font-size: 24px; }
  .tools { width: 100%; }
  .client-row { flex-wrap: wrap; gap: 10px; }
  .mini-stats { width: 100%; justify-content: flex-start; gap: 18px; }
  .mini-stats div { text-align: left; }
  .mini-stats b { font-size: 18px; }
}
}

/* ---------- Page header ---------- */

.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.top .sub { color: var(--muted); margin-top: 4px; }
.top .sub b { color: var(--brand); font-weight: 600; }
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg { display: flex; background: var(--card); border-radius: 999px; padding: 4px; box-shadow: var(--shadow-card); }
.seg a, .seg span {
  padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13px;
  color: var(--muted); text-decoration: none; transition: background 0.15s ease, color 0.15s ease;
}
.seg a:hover { color: var(--text); text-decoration: none; }
.seg a.on { background: var(--brand-deep); color: white; }
.back-link { display: inline-block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.back-link:hover { color: var(--brand); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--brand); color: white;
  border: 1.5px solid transparent; border-radius: 999px;
  padding: 10px 18px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; text-decoration: none; font-family: inherit; line-height: 1.3;
  box-shadow: 0 6px 14px rgba(31, 122, 90, 0.22);
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #196549; box-shadow: 0 8px 18px rgba(31, 122, 90, 0.3); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: none; box-shadow: none; }
.btn.secondary { background: var(--card); color: var(--brand); border-color: var(--brand); box-shadow: none; }
.btn.secondary:hover { background: var(--brand-soft); }
.btn.ghost { background: transparent; color: var(--muted); border-color: var(--line-strong); box-shadow: none; }
.btn.ghost:hover { color: var(--text); background: var(--card); }
.btn.small { padding: 7px 13px; font-size: 12.5px; }

/* ---------- Cards ---------- */

.card {
  background: var(--card); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow-card);
}
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

/* ---------- Hero band ---------- */

.hero {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: white; border-radius: var(--radius-lg);
  padding: 26px 30px; margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  box-shadow: var(--shadow-float);
}
.hero .big { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.hero .big em { font-style: normal; color: var(--amber); }
.hero .line { margin-top: 10px; color: rgba(255, 255, 255, 0.8); display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.hero .line b { color: white; }
.hero .up { color: #7be0b3; font-weight: 700; }
.hero .down { color: #ffb4a8; font-weight: 700; }
.hero .meet { background: rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 16px 22px; text-align: center; min-width: 150px; }
.hero .meet .n { font-size: 36px; font-weight: 800; color: var(--amber); line-height: 1; }
.hero .meet small { color: rgba(255, 255, 255, 0.75); font-size: 12.5px; }
.hero.quiet { background: linear-gradient(135deg, #1e3a30, #2f5d4b); }
@media (max-width: 700px) { .hero .big { font-size: 32px; } }

/* ---------- KPI tiles ---------- */

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px 14px 12px; }
  .kpi .ic { width: 28px; height: 28px; margin-bottom: 8px; }
  .kpi .val { font-size: 24px; }
  .kpi .row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .kpi .spark { width: 100%; height: 28px; }
  .hero { padding: 20px 20px; }
  .hero .meet { min-width: 0; width: 100%; padding: 12px 16px; }
  .hero .meet .n { font-size: 28px; }
  .card { padding: 16px 16px; }
}

.kpi { background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-card); min-width: 0; }
.kpi .ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.kpi .ic svg { width: 18px; height: 18px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kpi.sent .ic { background: var(--series-sent-soft); } .kpi.sent .ic svg { stroke: var(--series-sent); }
.kpi.delivered .ic { background: var(--series-delivered-soft); } .kpi.delivered .ic svg { stroke: var(--series-delivered); }
.kpi.opened .ic { background: var(--series-opened-soft); } .kpi.opened .ic svg { stroke: var(--series-opened); }
.kpi.replied .ic { background: var(--series-reply-soft); } .kpi.replied .ic svg { stroke: var(--series-reply); }
.kpi .lab { color: var(--muted); font-weight: 600; font-size: 13px; }
.kpi .val { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 2px 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kpi .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.kpi .rate { color: var(--muted); font-size: 12.5px; }
.kpi .spark { flex: none; }
.delta { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.delta.up { background: var(--status-good-bg); color: var(--status-good-text); }
.delta.down { background: var(--status-critical-bg); color: var(--status-critical-text); }
.delta.flat { background: var(--status-neutral-bg); color: var(--status-neutral-text); }

/* ---------- Funnel ---------- */

.funnel { display: flex; align-items: stretch; gap: 6px; }
@media (max-width: 760px) { .funnel { flex-direction: column; } .fn-arrow { width: auto; padding: 4px 0; } }
.fn-step { flex: 1; background: var(--bg); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.fn-label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.fn-value { font-size: 22px; font-weight: 800; margin: 2px 0 8px; }
.fn-bar { height: 8px; background: var(--line-strong); border-radius: 999px; overflow: hidden; }
.fn-bar div { height: 100%; border-radius: 999px; }
.fn-arrow { display: flex; align-items: center; justify-content: center; width: 52px; flex: none; }
.fn-arrow span { background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 700; color: var(--brand); }

/* ---------- Two-column area ---------- */

.grid2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
.grid2 > .card { min-width: 0; }
@media (max-width: 960px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend i.round { border-radius: 50%; }

/* ---------- Replies feed / meetings ---------- */

.rep { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rep:last-child { border: 0; }
.rep .dot { width: 36px; height: 36px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-text); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.rep .dot.neg { background: var(--status-neutral-bg); color: var(--muted); }
.rep b { display: block; font-size: 13.5px; }
.rep span { color: var(--muted); font-size: 13px; }
.rep small { color: var(--faint); font-size: 11.5px; margin-left: auto; white-space: nowrap; }
.empty { color: var(--muted); font-size: 13.5px; padding: 8px 0; }

/* ---------- Domains ---------- */

.dom { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dom:last-child { border: 0; padding-bottom: 0; }
.dom-body { flex: 1; min-width: 0; }
.dom-name { font-weight: 700; }
.dom-mb { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; word-break: break-all; }
.split { height: 7px; background: #f3d3d1; border-radius: 999px; overflow: hidden; }
.split.empty-split { background: var(--line-strong); }
.split div { height: 100%; background: var(--brand); border-radius: 999px; }
.dom-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; gap: 8px; }
.dom-meta .tag { font-weight: 700; }
.dom-client { font-size: 12px; color: var(--muted); }

/* ---------- Warm-up banner ---------- */

.warm { background: var(--card); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.warm .bar { flex: 1; min-width: 160px; height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.warm .bar div { height: 100%; background: linear-gradient(90deg, var(--brand), var(--series-opened)); border-radius: 999px; }

/* ---------- Client list (admin) ---------- */

.client-row { display: flex; align-items: center; gap: 16px; }
.client-row .grow { flex: 1; min-width: 0; }
.client-row h3 { margin: 0; }
.client-row h3 a { color: var(--text); }
.client-row h3 a:hover { color: var(--brand); text-decoration: none; }
.mini-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.mini-stats div { text-align: right; }
.mini-stats b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.mini-stats small { color: var(--muted); font-size: 12px; }
.mini-stats .amber b { color: var(--amber-text); }

/* ---------- Forms ---------- */

input, textarea, select {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; margin-bottom: 14px; background: white; color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31, 122, 90, 0.15); }
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-card { max-width: 520px; }

/* ---------- Tables (kept for the simpler admin pages) ---------- */

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
tbody tr:last-child td { border-bottom: none; }

/* ---------- Pills + flash ---------- */

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.green { background: var(--status-good-bg); color: var(--status-good-text); }
.pill.grey { background: var(--status-neutral-bg); color: var(--status-neutral-text); }
.pill.warning { background: var(--status-warning-bg); color: var(--status-warning-text); }
.pill.critical { background: var(--status-critical-bg); color: var(--status-critical-text); }

.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13.5px; font-weight: 600; }
.flash.success { background: var(--status-good-bg); color: var(--status-good-text); }
.flash.error { background: var(--status-critical-bg); color: var(--status-critical-text); }

/* ---------- Chart hover layer ---------- */

.trend-chart { position: relative; }
.trend-chart svg { display: block; overflow: visible; cursor: crosshair; width: 100%; height: auto; }
/* On narrow screens let the chart be taller than its natural aspect ratio so
   bars and axis labels stay readable, instead of shrinking to a thumbnail. */
@media (max-width: 700px) {
  .daily-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
  .daily-chart svg { min-width: 560px; }
}
.trend-chart svg:focus { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 6px; }
.trend-tooltip {
  position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
  background: var(--brand-deep); color: white; font-size: 12px; padding: 5px 10px; border-radius: 8px;
  pointer-events: none; opacity: 0; transition: opacity 0.1s ease; white-space: nowrap; z-index: 2;
}
.trend-tooltip.visible { opacity: 1; }
.trend-tooltip .tt-value { font-weight: 700; }
.trend-tooltip .tt-date { opacity: 0.7; margin-left: 6px; }

/* ---------- Auth pages ---------- */

.auth-page { background: var(--bg); }
.auth-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-brand {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at -10% -10%, rgba(31, 122, 90, 0.55), transparent 60%),
              radial-gradient(900px 500px at 110% 110%, rgba(242, 169, 59, 0.22), transparent 55%),
              linear-gradient(160deg, #0f2f24 0%, #143a2c 55%, #0f2f24 100%);
  display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px;
}
.auth-brand::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand-top img { height: 30px; }
.auth-brand-body { max-width: 520px; margin: 40px 0; }
.auth-brand-body h2 { color: #fff; font-size: 34px; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 800; }
.auth-brand-body p { color: rgba(255,255,255,0.72); font-size: 15px; line-height: 1.6; margin: 0 0 28px; }
.auth-mock { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 16px; backdrop-filter: blur(6px); }
.mock-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-kpi { background: rgba(255,255,255,0.07); border-radius: 12px; padding: 10px 12px; }
.mock-kpi span { display: block; font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 600; }
.mock-kpi b { display: block; font-size: 20px; letter-spacing: -0.02em; margin: 2px 0 6px; }
.mock-kpi i { display: block; height: 3px; border-radius: 3px; width: 60%; }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; padding: 0 4px 10px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 12px; }
.mock-bars div { flex: 1; background: linear-gradient(180deg, #7ad7c1, #1f7a5a); border-radius: 4px 4px 0 0; opacity: 0.9; }
.mock-reply { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.mock-reply .mock-dot { width: 30px; height: 30px; border-radius: 9px; background: var(--amber); color: #0f2f24; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.mock-reply b { display: block; font-size: 13px; }
.mock-reply small { color: rgba(255,255,255,0.6); font-size: 12px; }
.mock-reply em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: #7ad7c1; background: rgba(122,215,193,0.15); padding: 3px 9px; border-radius: 999px; }
.auth-brand-foot { display: flex; gap: 10px; flex-wrap: wrap; }
.auth-pill { font-size: 12px; color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); padding: 6px 11px; border-radius: 999px; }
.auth-wrap { width: 100%; max-width: 440px; margin: 0 auto; padding: 60px 24px; display: flex; flex-direction: column; justify-content: center; }
.auth-card { background: var(--card); border-radius: var(--radius-lg); padding: 34px 32px 26px; box-shadow: var(--shadow-float); }
.auth-logo { text-align: center; margin-bottom: 14px; }
.auth-logo img { height: 30px; }
.auth-card h1 { font-size: 22px; text-align: center; margin-bottom: 4px; }
.auth-card .btn { width: 100%; margin-top: 4px; padding: 12px 20px; }
.auth-card input { padding: 12px 14px; }
.auth-foot { text-align: center; margin-top: 14px; font-size: 13.5px; }
.auth-legal { color: var(--faint); font-size: 12px; text-align: center; margin-top: 18px; line-height: 1.5; }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { padding: 28px 24px; }
  .auth-brand-body { margin: 22px 0; }
  .auth-brand-body h2 { font-size: 26px; }
  .auth-mock { display: none; }
  .auth-wrap { padding: 32px 18px 48px; }
}

/* ---------- Motion ---------- */

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card, .kpi, .hero, .warm { animation: fadeIn 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) both; }
.kpis .kpi:nth-child(2) { animation-delay: 0.04s; }
.kpis .kpi:nth-child(3) { animation-delay: 0.08s; }
.kpis .kpi:nth-child(4) { animation-delay: 0.12s; }

/* KPI tiles are links to the contact-level view */
a.kpi { display: block; color: inherit; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.kpi:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 47, 36, 0.12); }
a.kpi .val { color: var(--text); }
.dom-link { font-size: 12.5px; margin-top: 6px; }
