/* Vulcan — Lovable for Legal */
:root {
  --bg: #0b0d12;
  --bg-2: #0f131b;
  --panel: #131825;
  --panel-2: #1a2030;
  --border: #232a3d;
  --border-2: #2c3550;
  --text: #e8ecf3;
  --text-dim: #9aa3b8;
  --text-faint: #6b7388;

  --brand: #ff5a36;        /* molten orange */
  --brand-2: #ff8a3d;      /* amber */
  --accent: #7c5cff;       /* electric violet */
  --accent-2: #36d1ff;     /* cyan */
  --good: #2ddb95;
  --warn: #ffb547;
  --bad: #ff6464;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--brand-2); }

button { font-family: inherit; }

/* ---------------- Auth page ---------------- */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background:
    radial-gradient(1200px 600px at 0% 0%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(255, 90, 54, 0.18), transparent 60%),
    linear-gradient(180deg, #0a0c12 0%, #0b0d12 100%);
}
.auth-hero {
  position: relative;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-hero::before {
  content: "";
  position: absolute; inset: -2px;
  background:
    radial-gradient(600px 300px at 20% 30%, rgba(255, 138, 61, 0.15), transparent 70%),
    radial-gradient(500px 280px at 80% 70%, rgba(54, 209, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.brand .mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(255, 90, 54, 0.4);
}
.brand .mark svg { width: 22px; height: 22px; }
.brand .name { background: linear-gradient(135deg, #fff, #cdb6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .tag { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--border-2); }

.hero-headline {
  position: relative; z-index: 1;
  max-width: 560px;
}
.hero-headline h1 {
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 18px 0;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, #c8c0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-headline h1 em { font-style: normal; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-headline p { color: var(--text-dim); font-size: 17px; line-height: 1.55; }

.hero-features {
  position: relative; z-index: 1;
  display: grid;
  gap: 14px;
  max-width: 460px;
  margin-top: 32px;
}
.hero-feat {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(6px);
}
.hero-feat .icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(255, 90, 54, 0.18));
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-feat .icon svg { width: 16px; height: 16px; color: var(--accent-2); }
.hero-feat .ft-title { font-weight: 600; font-size: 14px; }
.hero-feat .ft-sub { color: var(--text-dim); font-size: 13px; line-height: 1.4; margin-top: 2px; }

.hero-foot {
  position: relative; z-index: 1;
  color: var(--text-faint);
  font-size: 13px;
  display: flex; align-items: center; gap: 18px;
}
.hero-foot .dot { width: 6px; height: 6px; background: var(--good); border-radius: 50%; box-shadow: 0 0 0 4px rgba(45, 219, 149, 0.15); }

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: linear-gradient(180deg, rgba(15, 19, 27, 0.4) 0%, rgba(15, 19, 27, 0.85) 100%);
  border-left: 1px solid var(--border);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 80px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.16), transparent);
  pointer-events: none;
}
.auth-tabs {
  position: relative;
  display: flex;
  background: var(--bg-2);
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 26px;
}
.auth-tabs button {
  flex: 1;
  padding: 9px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 7px;
  transition: 0.18s;
}
.auth-tabs button.active {
  color: white;
  background: linear-gradient(135deg, var(--brand), #ff7a3a);
  box-shadow: 0 4px 14px rgba(255, 90, 54, 0.35);
}

.auth-card h2 { margin: 0 0 6px 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.auth-card .lead { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }

.field { display: block; margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-dim); margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.18);
}

.role-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px;
}
.role-toggle label {
  cursor: pointer;
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
  transition: 0.18s;
  position: relative;
}
.role-toggle label .role-title { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.role-toggle label .role-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.role-toggle input { position: absolute; opacity: 0; }
.role-toggle input:checked + .role-card {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(255, 90, 54, 0.12), rgba(255, 90, 54, 0.04));
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.12);
}
.role-toggle .role-card { display: block; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); transition: 0.18s; }
.role-toggle .role-card .role-title { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.role-toggle .role-card .role-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.role-toggle .pill { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; background: rgba(124, 92, 255, 0.18); color: #c8b9ff; }

.btn-primary {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #ff7a3a);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.18s;
  box-shadow: 0 8px 24px rgba(255, 90, 54, 0.32);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255, 90, 54, 0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-ghost {
  padding: 9px 14px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  transition: 0.15s;
}
.btn-ghost:hover { background: var(--panel-2); border-color: var(--brand); }

.alert {
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
  border: 1px solid;
}
.alert-error { background: rgba(255, 100, 100, 0.08); border-color: rgba(255, 100, 100, 0.3); color: #ffb0b0; }
.alert-success { background: rgba(45, 219, 149, 0.08); border-color: rgba(45, 219, 149, 0.3); color: #a4f5ce; }

.auth-foot { margin-top: 18px; text-align: center; color: var(--text-dim); font-size: 13px; }
.auth-foot a { color: var(--brand-2); font-weight: 500; cursor: pointer; }

@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { padding: 36px 28px; }
  .hero-headline h1 { font-size: 40px; }
  .auth-panel { padding: 24px; border-left: none; border-top: 1px solid var(--border); }
  .auth-card { padding: 28px; }
}

/* ---------------- App shell (admin + lawyer) ---------------- */

.app-shell {
  display: grid;
  grid-template-columns: 252px 1fr;
  min-height: 100vh;
  background: var(--bg);
}
.sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand { font-size: 18px; padding: 4px 6px 18px 6px; }
.sidebar .brand .mark { width: 30px; height: 30px; border-radius: 8px; }
.sidebar .brand .mark svg { width: 18px; height: 18px; }

.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-faint); padding: 14px 10px 6px 10px; }

.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.12s;
}
.nav-link:hover { background: var(--panel); color: var(--text); }
.nav-link.active {
  background: linear-gradient(135deg, rgba(255, 90, 54, 0.15), rgba(124, 92, 255, 0.1));
  color: white;
  border: 1px solid rgba(255, 90, 54, 0.25);
  padding: 9px 11px;
}
.nav-link svg { width: 18px; height: 18px; opacity: 0.85; flex-shrink: 0; }
.nav-link.active svg { color: var(--brand-2); opacity: 1; }
.nav-link .badge {
  margin-left: auto; font-size: 11px; padding: 2px 7px; border-radius: 99px;
  background: rgba(124, 92, 255, 0.18); color: #c8b9ff; font-weight: 600;
}

.sidebar .spacer { flex: 1; }
.user-card {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 10px;
}
.user-card .avatar {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: white;
  text-transform: uppercase;
}
.user-card .info { line-height: 1.2; min-width: 0; }
.user-card .info .name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.user-card .info .role { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; }
.user-card .logout { margin-left: auto; color: var(--text-dim); }
.user-card .logout:hover { color: var(--bad); }
.user-card .logout svg { width: 16px; height: 16px; }

.main { padding: 32px 40px; min-width: 0; }
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px; gap: 24px;
}
.page-header h1 { margin: 0 0 6px 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.page-header .sub { color: var(--text-dim); font-size: 14px; max-width: 580px; }
.page-actions { display: flex; gap: 10px; flex-shrink: 0; }

.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px;
}
.kpi {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; right: -20px; top: -20px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.kpi.brand::after { background: radial-gradient(circle, rgba(255, 90, 54, 0.22), transparent 70%); }
.kpi.cyan::after { background: radial-gradient(circle, rgba(54, 209, 255, 0.18), transparent 70%); }
.kpi.green::after { background: radial-gradient(circle, rgba(45, 219, 149, 0.2), transparent 70%); }
.kpi .label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; }
.kpi .val { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; }
.kpi .delta { font-size: 12px; color: var(--good); margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.panel h3 { margin: 0 0 4px 0; font-size: 15px; font-weight: 600; }
.panel .desc { color: var(--text-dim); font-size: 13px; margin-bottom: 16px; }
.panel-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-row h3 { margin: 0; }
.panel-row .meta { color: var(--text-dim); font-size: 13px; }

.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }

.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr 90px; gap: 14px; align-items: center; }
.bar-row .nm { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 99px; }
.bar-row .v { font-family: var(--mono); font-size: 12px; color: var(--text-dim); text-align: right; }

.spark { width: 100%; height: 160px; }

table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(255, 255, 255, 0.015); }
.tbl .name { font-weight: 600; }
.tbl .desc { color: var(--text-dim); font-size: 13px; }
.tbl .pill { padding: 3px 9px; border-radius: 99px; font-size: 12px; background: var(--panel-2); border: 1px solid var(--border); }
.tbl .pill.active { background: rgba(45, 219, 149, 0.12); border-color: rgba(45, 219, 149, 0.3); color: var(--good); }
.tbl .pill.inactive { background: rgba(255, 100, 100, 0.08); border-color: rgba(255, 100, 100, 0.25); color: #ff8e8e; }

.empty {
  text-align: center; padding: 60px 20px; color: var(--text-dim);
  border: 1px dashed var(--border-2); border-radius: var(--radius); background: var(--bg-2);
}
.empty .e-ico {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(255, 90, 54, 0.15));
  display: grid; place-items: center;
}
.empty .e-ico svg { width: 28px; height: 28px; color: var(--accent-2); }
.empty h4 { color: var(--text); margin: 0 0 6px 0; font-size: 16px; }

/* Forms */
.form-grid { display: grid; gap: 18px; max-width: 700px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat-grid label { cursor: pointer; padding: 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; text-align: center; font-size: 13px; font-weight: 500; color: var(--text-dim); transition: 0.15s; }
.cat-grid input { display: none; }
.cat-grid input:checked + span { color: white; }
.cat-grid label:has(input:checked) { background: linear-gradient(135deg, rgba(255,90,54,0.15), rgba(124,92,255,0.12)); border-color: var(--brand); color: white; }

.steps-builder { display: flex; flex-direction: column; gap: 10px; }
.step-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; }
.step-row .num { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, var(--brand), var(--accent)); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; color: white; }
.step-row input { flex: 1; padding: 8px 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; outline: none; }
.step-row .rm { background: transparent; border: 1px solid var(--border); color: var(--text-faint); padding: 7px 9px; border-radius: 7px; cursor: pointer; flex-shrink: 0; }
.step-row .rm:hover { color: var(--bad); border-color: var(--bad); }
.add-step { background: transparent; border: 1px dashed var(--border-2); color: var(--text-dim); padding: 10px; border-radius: 10px; cursor: pointer; font-size: 13px; transition: 0.15s; }
.add-step:hover { border-color: var(--brand); color: var(--brand-2); }

.flash-stack { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 50; pointer-events: none; }
.flash {
  pointer-events: auto;
  padding: 12px 16px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  animation: slide-in 0.25s ease-out;
}
.flash.success { border-color: rgba(45, 219, 149, 0.3); color: #b8f7da; }
.flash.error { border-color: rgba(255, 100, 100, 0.3); color: #ffb8b8; }
.flash .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.flash.error .dot { background: var(--bad); }
@keyframes slide-in { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; padding: 16px; }
  .main { padding: 24px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Insight cards (admin) ---------------- */

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.insight-card {
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.08), rgba(255, 90, 54, 0.04));
  border: 1px solid rgba(124, 92, 255, 0.22);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.insight-card::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.insight-card.insight-promote {
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.08), rgba(255, 90, 54, 0.04));
  border-color: rgba(255, 138, 61, 0.28);
}
.insight-card.insight-promote::after { background: radial-gradient(circle, rgba(255, 138, 61, 0.2), transparent 70%); }
.insight-card.insight-gap, .insight-card.insight-adoption {
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.08), rgba(255, 100, 100, 0.04));
  border-color: rgba(255, 181, 71, 0.28);
}
.insight-card.insight-gap::after, .insight-card.insight-adoption::after { background: radial-gradient(circle, rgba(255, 181, 71, 0.18), transparent 70%); }

.insight-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  display: grid; place-items: center; margin-bottom: 10px;
}
.insight-icon svg { width: 18px; height: 18px; color: white; }
.insight-card.insight-promote .insight-icon { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.insight-card.insight-gap .insight-icon, .insight-card.insight-adoption .insight-icon {
  background: linear-gradient(135deg, var(--warn), var(--brand));
}

.insight-tag {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 6px; font-weight: 600;
}
.insight-card h3 { margin: 0 0 8px 0; font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; }
.insight-card p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.55; }
.insight-cta {
  display: inline-block; margin-top: 12px;
  font-size: 13px; font-weight: 600;
  color: var(--brand-2);
}

/* ---------------- Top-N rank list (Insights page) ---------------- */

.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: var(--bg-2);
  border-radius: 10px;
  transition: 0.15s;
}
.rank-row:hover { background: var(--panel-2); }
.rank-num {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-weight: 700; font-size: 13px; color: white;
  display: grid; place-items: center; flex-shrink: 0;
}
.rank-body { flex: 1; min-width: 0; }
.rank-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rank-stat { text-align: right; flex-shrink: 0; }
.rank-big { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--text); }
.rank-tiny { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------------- Compliance banner (Create Tool) ---------------- */

.compliance-banner {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(45, 219, 149, 0.08), rgba(54, 209, 255, 0.06));
  border: 1px solid rgba(45, 219, 149, 0.22);
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.compliance-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--good), var(--accent-2));
  display: grid; place-items: center; flex-shrink: 0;
}
.compliance-icon svg { width: 20px; height: 20px; color: white; }
.compliance-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.compliance-body { color: var(--text-dim); font-size: 13px; line-height: 1.55; }

.status-pill {
  display: inline-flex; align-items: center;
  font-size: 11px; padding: 2px 8px; border-radius: 99px;
  font-weight: 600; letter-spacing: 0.02em;
}
.status-pill.draft { background: rgba(154, 163, 184, 0.12); color: #b9c0d3; border: 1px solid rgba(154, 163, 184, 0.25); }
.status-pill.review { background: rgba(255, 181, 71, 0.12); color: #ffd07a; border: 1px solid rgba(255, 181, 71, 0.3); }
.status-pill.approved { background: rgba(45, 219, 149, 0.12); color: var(--good); border: 1px solid rgba(45, 219, 149, 0.3); }

.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.15s;
}
.check-item input { margin-top: 2px; accent-color: var(--brand); }
.check-item:hover { border-color: var(--border-2); }
.check-item:has(input:checked) {
  background: linear-gradient(135deg, rgba(255, 90, 54, 0.08), rgba(124, 92, 255, 0.05));
  border-color: var(--brand);
}

.micro-pill {
  display: inline-block; font-size: 10px; padding: 2px 6px; border-radius: 5px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text-dim);
  font-family: var(--mono); letter-spacing: 0.02em;
}

/* ---------------- Agent banner (Manage Workflows) ---------------- */

.agent-banner {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.07), rgba(54, 209, 255, 0.04));
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.agent-banner-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.agent-avatar {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.4);
}
.agent-avatar svg { width: 18px; height: 18px; }
.agent-name { font-weight: 600; font-size: 14px; }
.agent-sub { color: var(--text-dim); font-size: 12px; }
.agent-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.agent-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
}
.agent-card.tone-standardize { border-left-color: var(--brand); }
.agent-card.tone-warn { border-left-color: var(--warn); }
.agent-card.tone-theme { border-left-color: var(--accent-2); }
.agent-card h4 { margin: 0 0 6px 0; font-size: 14px; line-height: 1.35; }
.agent-card p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.5; }
.agent-card-cta { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--brand-2); }

/* ---------------- Filter bar ---------------- */

.filter-bar {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 18px; flex-wrap: wrap;
}
.search-box {
  position: relative;
  flex: 1; min-width: 220px;
}
.search-box svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-faint);
}
.search-box input {
  width: 100%; padding: 11px 14px 11px 38px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 14px;
  outline: none; font-family: inherit;
}
.search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.15); }

.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 7px 12px;
  border-radius: 99px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip .ct {
  font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 99px;
  background: var(--bg-2); color: var(--text-faint);
}
.chip:hover { border-color: var(--border-2); color: var(--text); }
.chip.on {
  background: linear-gradient(135deg, rgba(255, 90, 54, 0.18), rgba(124, 92, 255, 0.12));
  border-color: var(--brand);
  color: white;
}
.chip.on .ct { background: rgba(0,0,0,0.25); color: white; }

/* ---------------- Builder (chat-first workflow creation) ---------------- */

.builder {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 16px;
  height: calc(100vh - 230px);
  min-height: 540px;
}
.builder-chat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.chat-thread {
  flex: 1; overflow-y: auto;
  padding: 22px 22px 8px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.msg { display: flex; }
.msg.user { justify-content: flex-end; }
.msg .bubble {
  max-width: 78%;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.msg.agent .bubble {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
  color: var(--text);
}
.msg.user .bubble {
  background: linear-gradient(135deg, var(--brand), #ff7a3a);
  color: white;
  border-top-right-radius: 4px;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(255, 90, 54, 0.3);
}
.msg.typing .dots { display: inline-flex; gap: 4px; padding: 2px 0; }
.msg.typing .dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint);
  animation: blink 1.2s infinite ease-in-out both;
}
.msg.typing .dots i:nth-child(2) { animation-delay: 0.18s; }
.msg.typing .dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); } 40% { opacity: 1; transform: scale(1.1); } }

.bubble-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bubble-suggestions .suggest {
  background: var(--panel);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 6px 10px; border-radius: 99px;
  font-size: 12px; cursor: pointer; transition: 0.15s;
  font-family: inherit;
}
.bubble-suggestions .suggest:hover { border-color: var(--brand); color: var(--brand-2); }

.chat-input {
  border-top: 1px solid var(--border);
  padding: 14px;
  display: flex; gap: 10px; align-items: flex-end;
  background: var(--bg-2);
}
.chat-input textarea {
  flex: 1;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  resize: none; outline: none;
  letter-spacing: -0.005em;
}
.chat-input textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.15); }

.builder-preview {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-y: auto;
  padding: 20px;
}
.preview-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.preview-header { padding-bottom: 14px; border-bottom: 1px solid var(--border); }

.step-list { display: flex; flex-direction: column; gap: 10px; }
.step-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 14px;
  position: relative;
  transition: 0.18s;
}
.step-card:hover { border-color: var(--border-2); }
.step-card-num {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-weight: 700; font-size: 12px; color: white;
  display: grid; place-items: center; flex-shrink: 0;
}
.step-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.step-card-title input,
.step-card-meta select,
.step-card-meta input,
.step-card-body textarea {
  width: 100%;
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.step-card-title input { font-weight: 600; font-size: 14px; }
.step-card-body textarea { resize: vertical; min-height: 50px; }
.step-card-meta { display: grid; grid-template-columns: 200px 1fr; gap: 8px; }
.step-card-body input:focus, .step-card-body select:focus, .step-card-body textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 2px rgba(255, 90, 54, 0.15);
}
.step-hint { font-size: 11px; color: var(--text-faint); font-style: italic; }
.step-rm {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-faint); width: 28px; height: 28px; border-radius: 7px;
  cursor: pointer; flex-shrink: 0; font-size: 12px;
}
.step-rm:hover { color: var(--bad); border-color: var(--bad); }

.step-type-pill {
  display: inline-block;
  font-size: 10px; padding: 2px 7px; border-radius: 99px;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.step-type-pill.deterministic { background: rgba(54, 209, 255, 0.12); color: var(--accent-2); border: 1px solid rgba(54, 209, 255, 0.28); }
.step-type-pill.agent { background: rgba(255, 90, 54, 0.12); color: var(--brand-2); border: 1px solid rgba(255, 90, 54, 0.28); }
.step-type-pill.api { background: rgba(124, 92, 255, 0.12); color: #b8a6ff; border: 1px solid rgba(124, 92, 255, 0.28); }

.step-mini-list { display: flex; flex-direction: column; gap: 6px; }
.step-mini { display: flex; gap: 10px; align-items: flex-start; }
.step-mini-num {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--bg-2);
  font-weight: 600; font-size: 11px; color: var(--text-dim);
  display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--border);
}
.step-mini-title { font-size: 13px; font-weight: 500; line-height: 1.4; }
.step-mini-meta { font-size: 11px; margin-top: 2px; display: flex; gap: 6px; align-items: center; }

/* ---------------- Tool palette ---------------- */

.tool-palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.tool-chip {
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
  cursor: pointer;
  transition: 0.18s;
  font-family: inherit;
  color: var(--text);
}
.tool-chip:hover {
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(255, 90, 54, 0.08), rgba(124, 92, 255, 0.04));
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.chip-head { font-size: 13px; font-weight: 600; }
.chip-cat { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.chip-desc { font-size: 12px; color: var(--text-dim); margin-top: 6px; line-height: 1.4; }

@media (max-width: 1100px) {
  .builder { grid-template-columns: 1fr; height: auto; }
  .builder-chat { min-height: 420px; }
  .step-card-meta { grid-template-columns: 1fr; }
}

/* ---- Workflow detail modal ---- */
.clickable-row { cursor: pointer; transition: background 0.15s; }
.clickable-row:hover { background: rgba(255, 90, 54, 0.04); }
.clickable-row:hover .name { color: var(--brand); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 24px;
  overflow-y: auto;
  animation: modalFade 0.18s ease-out;
}
.modal-backdrop[hidden] { display: none; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  background: linear-gradient(180deg, #1a1d28, #14161e);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  animation: modalRise 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes modalRise {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s;
  z-index: 2;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); border-color: var(--brand); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body { padding: 32px 32px 28px; }

.modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 80px 0;
  color: var(--text-faint);
  font-size: 13px;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.modal-header { padding-right: 40px; margin-bottom: 22px; }
.modal-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.modal-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
.modal-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
  margin: 8px 0 0;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 26px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.modal-stat { min-width: 0; }
.modal-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.modal-stat-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-stat-val.mono { font-family: var(--mono); font-size: 13px; }

.modal-section { margin-top: 22px; }
.modal-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.modal-section-head h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin: 0;
  font-weight: 600;
}
.modal-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 11px;
  font-size: 11px;
  font-weight: 600;
  color: var(--violet);
  font-family: var(--mono);
}

.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-step {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  transition: 0.15s;
}
.modal-step:hover { border-color: rgba(124, 92, 255, 0.3); }
.modal-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
  color: white;
}
.modal-step-body { flex: 1; min-width: 0; }
.modal-step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.modal-step-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.modal-step-tool {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 5px;
}
.modal-step-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 8px;
}

.modal-runs {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.modal-run {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
}
.modal-run + .modal-run { border-top: 1px solid var(--border); }
.modal-run-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(54, 209, 255, 0.5);
  flex-shrink: 0;
}
.modal-run-when {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.modal-run-who {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
  font-family: var(--mono);
}
.modal-run-cost {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

@media (max-width: 720px) {
  .modal-stats { grid-template-columns: repeat(2, 1fr); }
  .modal-body { padding: 28px 22px 24px; }
  .modal-title { font-size: 20px; }
}

/* ---- Pitch deck ---- */
.deck {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at top, #1a1d28 0%, #0a0c12 60%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
}

.deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 18, 0.6);
  backdrop-filter: blur(8px);
  z-index: 5;
}
.deck-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.deck-logo { width: 28px; height: 28px; display: block; }
.deck-logo svg { width: 100%; height: 100%; }
.deck-brand-name {
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  background: linear-gradient(135deg, #fff, #c9c9d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.deck-counter {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.deck-counter span { color: var(--brand); font-weight: 600; }

.deck-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 56px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.05);
  overflow-y: auto;
}
.slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.slide-inner {
  width: 100%;
  max-width: 1100px;
  margin: auto;
}

/* Slide 1 – Title */
.slide-title { background: radial-gradient(circle at 30% 40%, rgba(255, 90, 54, 0.08), transparent 50%), radial-gradient(circle at 70% 70%, rgba(124, 92, 255, 0.08), transparent 50%); }
.title-wrap { text-align: center; max-width: 820px; margin: 0 auto; }
.title-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 32px;
}
.title-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  background: linear-gradient(180deg, #fff 30%, #888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.title-mark {
  width: 78px;
  height: 78px;
  display: inline-block;
  transform: translateY(-6px);
}
.title-mark svg { width: 100%; height: 100%; display: block; }
.title-oneliner {
  font-size: 30px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.title-sub {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 580px;
  margin: 0 auto 56px;
}
.title-team { margin-top: 32px; }
.team-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.team-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.team-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
}
.team-avatar {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  letter-spacing: 0.04em;
}
.team-name { font-size: 14px; font-weight: 600; }
.team-role { font-size: 12px; color: var(--text-faint); margin-top: 1px; }

/* Slide 2 – Problem / Market / Solution */
.pms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.pms-col {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.pms-col h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.25;
}
.pms-col p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 14px;
}
.pms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.pms-dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-brand { background: var(--brand); box-shadow: 0 0 10px rgba(255, 90, 54, 0.6); }
.dot-violet { background: var(--violet); box-shadow: 0 0 10px rgba(124, 92, 255, 0.6); }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 10px rgba(54, 209, 255, 0.6); }
.pms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pms-list li {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.pms-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-faint);
}
.pms-list li strong { color: var(--text); font-weight: 600; }
.pms-problem { border-top: 2px solid var(--brand); }
.pms-market { border-top: 2px solid var(--violet); }
.pms-solution { border-top: 2px solid var(--cyan); }

.market-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 4px 0 12px;
}
.ms {
  background: rgba(124, 92, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.18);
  border-radius: 11px;
  padding: 12px;
}
.ms-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.ms-lbl { font-size: 11px; color: var(--text-faint); margin-top: 4px; line-height: 1.35; }
.market-foot {
  margin-top: auto !important;
  font-size: 12px !important;
  color: var(--text-faint) !important;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Slide 3 – Progress (blank body) */
.slide-progress { background: radial-gradient(circle at 50% 30%, rgba(54, 209, 255, 0.05), transparent 50%); }
.progress-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.progress-title {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 36px;
  background: linear-gradient(180deg, #fff 40%, #888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.progress-blank {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.012)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.015) 12px 13px);
}
.progress-blank-inner {
  display: flex;
  gap: 14px;
}
.progress-blank-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: pulseDot 1.4s ease-in-out infinite;
}
.progress-blank-dot:nth-child(2) { animation-delay: 0.2s; }
.progress-blank-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulseDot {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); background: var(--cyan); }
}

/* Deck controls */
.deck-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 36px 24px;
  border-top: 1px solid var(--border);
  background: rgba(10, 12, 18, 0.6);
  backdrop-filter: blur(8px);
  z-index: 5;
}
.deck-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s;
}
.deck-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); border-color: var(--brand); }
.deck-btn svg { width: 16px; height: 16px; }
.deck-dots { display: flex; gap: 8px; }
.deck-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: 0.18s;
}
.deck-dot:hover { background: rgba(255, 255, 255, 0.3); }
.deck-dot.active {
  background: linear-gradient(135deg, var(--brand), var(--violet));
  width: 22px;
  border-radius: 4px;
}

@media (max-width: 920px) {
  .pms-grid { grid-template-columns: 1fr; }
  .title-name { font-size: 64px; }
  .title-mark { width: 56px; height: 56px; transform: translateY(-4px); }
  .title-oneliner { font-size: 22px; }
  .progress-title { font-size: 38px; }
  .slide { padding: 28px 22px; }
  .deck-header { padding: 18px 22px; }
}

/* ---- Slide 1 facts row ---- */
.title-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
  text-align: left;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.fact {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.fact::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  border-radius: 14px 14px 0 0;
}
.fact-problem::before { background: linear-gradient(135deg, #ff5a36, #7c5cff); }
.fact-market::before { background: linear-gradient(135deg, #7c5cff, #36d1ff); }
.fact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.fact-problem .pms-dot {
  background: linear-gradient(135deg, #ff5a36, #7c5cff);
  box-shadow: 0 0 10px rgba(255, 90, 54, 0.5);
}
.fact-market .pms-dot {
  background: linear-gradient(135deg, #7c5cff, #36d1ff);
  box-shadow: 0 0 10px rgba(54, 209, 255, 0.5);
}
.fact-line {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
}

/* ---- Slide 2 solution + portals ---- */
.solution-head {
  text-align: center;
  margin-bottom: 28px;
}
.solution-head .pms-eyebrow { justify-content: center; margin: 0 0 12px; }
.solution-tagline {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  background: linear-gradient(180deg, #fff 30%, #aaa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
}

.portal-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.portal {
  background: linear-gradient(180deg, #15171f, #10121a);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}
.portal-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}
.portal-chrome span {
  width: 9px; height: 9px; border-radius: 50%;
}
.dot-r { background: #ff6259; }
.dot-y { background: #ffc043; }
.dot-g { background: #51d062; }
.portal-url {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-faint);
  margin-left: 10px;
  letter-spacing: 0.04em;
}
.portal-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.portal-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.portal-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.portal-tag-sub {
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--mono);
}
.portal-tag-sub::before { content: '· '; }

.portal-lawyer .portal-tag { color: var(--brand); }
.portal-admin .portal-tag { color: var(--violet); }

/* Lawyer portal mock */
.mock-chat { display: flex; flex-direction: column; gap: 8px; }
.mock-msg {
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 11px;
  max-width: 85%;
}
.mock-msg.user {
  background: linear-gradient(135deg, rgba(255, 90, 54, 0.15), rgba(124, 92, 255, 0.1));
  border: 1px solid rgba(255, 90, 54, 0.25);
  align-self: flex-end;
  color: var(--text);
}
.mock-msg.agent {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.mock-agent-row { display: flex; gap: 9px; align-items: flex-start; color: var(--text-dim); font-size: 12px; line-height: 1.5; }
.mock-agent-avatar {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  margin-top: 1px;
}
.mock-step {
  display: flex;
  gap: 10px;
  padding: 9px 11px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: center;
}
.mock-step.muted { opacity: 0.55; }
.mock-step-num {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
  color: white;
  flex-shrink: 0;
}
.mock-step-title { font-size: 12.5px; font-weight: 600; margin-bottom: 3px; }
.mock-pill {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  font-family: var(--mono);
}
.mock-pill.det { background: rgba(54, 209, 255, 0.1); color: var(--cyan); border: 1px solid rgba(54, 209, 255, 0.25); }
.mock-pill.ag { background: rgba(124, 92, 255, 0.12); color: var(--violet); border: 1px solid rgba(124, 92, 255, 0.28); }
.mock-pill.cat { background: rgba(255, 255, 255, 0.04); color: var(--text-dim); border: 1px solid var(--border); }

/* Admin portal mock */
.mock-banner {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(54, 209, 255, 0.05));
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: 11px;
  padding: 12px;
}
.mock-banner-head { display: flex; gap: 9px; align-items: center; margin-bottom: 10px; }
.mock-banner-avatar {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  flex-shrink: 0;
}
.mock-banner-title { font-size: 12px; font-weight: 600; }
.mock-banner-sub { font-size: 10.5px; color: var(--text-faint); margin-top: 1px; }
.mock-banner-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-banner-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.mock-banner-card.tone-warm { border-left: 2px solid var(--brand); }
.mock-banner-card.tone-cool { border-left: 2px solid var(--cyan); }
.mb-h { font-size: 11.5px; font-weight: 600; margin-bottom: 3px; }
.mb-b { font-size: 10.5px; color: var(--text-dim); line-height: 1.4; }

.mock-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
  margin-top: 6px;
}
.mock-tbl th, .mock-tbl td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.mock-tbl th {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}
.mock-tbl tbody tr:last-child td { border-bottom: 0; }
.mt-name { font-weight: 600; font-size: 12px; }
.mock-mono { font-family: var(--mono); color: var(--text-dim); }

.mock-tools-head { margin-bottom: 4px; }
.mock-tools-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mock-tools-sub {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
  line-height: 1.4;
}
.mock-tbl-tools .mt-name { margin-bottom: 2px; }
.mt-endpoint {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-faint);
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
}
.mock-status {
  font-size: 10px;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 5px;
  display: inline-block;
  white-space: nowrap;
}
.mock-status.approved {
  color: #2ddb95;
  background: rgba(45, 219, 149, 0.1);
  border: 1px solid rgba(45, 219, 149, 0.3);
}
.mock-status.review {
  color: var(--violet);
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.3);
}
.mock-status.draft {
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

/* ---- Slide 3 quotes ---- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}
.quote-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 22px 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote-mark {
  position: absolute;
  top: 8px;
  right: 18px;
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  font-family: 'Inter', serif;
  pointer-events: none;
}
.quote-card blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.quote-card figcaption {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.q-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: white;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.q-name { font-size: 13px; font-weight: 600; }
.q-org { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }

@media (max-width: 920px) {
  .portal-pair { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .title-facts { grid-template-columns: 1fr; }
  .solution-tagline { font-size: 26px; }
}
