/* ============================================================
   Quanrel — Application Stylesheet  (Light Mode)
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --bg:           #F7F8FB;
  --surface:      #FFFFFF;
  --surface-2:    #F6F7FA;
  --surface-3:    #ECEFF4;
  --border:       #E7EAF0;
  --border-2:     #D5DAE4;
  --ink:          #202124;
  --ink-2:        #5F6368;
  --ink-3:        #80868B;
  --blue:         #4F46E5;
  --blue-lt:      #EEF2FF;
  --green:        #16A34A;
  --green-lt:     #F0FDF4;
  --red:          #DC2626;
  --red-lt:       #FEF2F2;
  --amber:        #EA8600;
  --amber-lt:     #FFF8E7;
  --purple:       #8E7CFF;
  --purple-lt:    #F3F0FF;
  --blue-rgb:     79, 70, 229;
  --shadow-lg:    0 16px 44px rgba(60,64,67,.10);
  --focus-ring:   rgba(99, 102, 241, .20);
  --overlay:      rgba(15, 23, 42, .5);
  --chrome:       #4F46E5;
  --chart-grid:   #E7EAF0;
  --chart-text:   #5F6368;
  --chart-ticks:  #9AA0A6;
  --code-tag:     #0369A1;
  --code-attr:    #B45309;
  --code-str:     #166534;
  --table-row-worst: #FFF5F5;
  --table-row-worst-hover: #FEE2E2;
  --table-row-submit: #F0FDF4;
  --hero-glow:    rgba(79,70,229,.10);
  --sidebar-w:    332px;
  --topbar-h:     72px;
  --r:            14px;
  --r-sm:         10px;
  --shadow:       0 1px 2px rgba(60,64,67,.06), 0 8px 24px rgba(60,64,67,.06);
  --shadow-md:    0 2px 8px rgba(60,64,67,.08), 0 18px 36px rgba(60,64,67,.08);
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; transition: background-color .2s ease, color .2s ease; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* ── App shell ────────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; background: var(--bg); }

/* ── Sidebar ──────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #fbfbfd;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
  background: #fbfbfd;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #5f5cf6, #4f46e5);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(79,70,229,.24);
}
.logo-icon svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2.5; }
.logo-text { font-size: 1rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }

.sidebar-scroll { padding: 0; }
.sidebar-mission {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.sidebar-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 10px;
  border-right: 1px solid var(--border);
  background: #f8f9fc;
}
.rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 18px;
  color: var(--ink-3);
  transition: all .16s ease;
  position: relative;
}
.rail-item:hover {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(60,64,67,.08);
}
.rail-item.active {
  background: #eceffd;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(79,70,229,.14);
}
.rail-icon-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.92);
}
.rail-item.active .rail-icon-wrap {
  background: rgba(79,70,229,.12);
}
.rail-item svg {
  width: 18px;
  height: 18px;
  opacity: .82;
}
.rail-item.active svg {
  opacity: 1;
}
.rail-label {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}
.rail-badge {
  position: absolute;
  top: -3px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: .62rem;
  font-weight: 800;
  border: 2px solid var(--surface);
}
.rail-badge.nav-badge-critical {
  background: #dc2626;
  color: #fff;
  border-color: #fff;
}
.sidebar-context {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 18px 16px 16px;
  background: #fbfbfd;
}
.sidebar-context-head {
  padding: 4px 4px 14px;
}
.sidebar-context-kicker {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a9096;
  margin-bottom: 6px;
}
.sidebar-context-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}
.sidebar-context-summary {
  font-size: .74rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 7px;
}
.sidebar-context-preview {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.sidebar-context-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: .67rem;
  font-weight: 700;
}
.sidebar-context-analysis {
  padding: 12px 12px 12px;
}
.sidebar-context-analysis .sidebar-context-head {
  padding: 2px 2px 10px;
}
.sidebar-context-analysis .sidebar-context-kicker {
  margin-bottom: 4px;
}
.sidebar-context-analysis .sidebar-context-title {
  font-size: .96rem;
}
.sidebar-context-analysis .sidebar-context-summary {
  font-size: .7rem;
  line-height: 1.4;
  margin-top: 5px;
}
.sidebar-context-analysis .sidebar-context-list {
  gap: 5px;
}
.sidebar-context-analysis .context-section-label {
  padding: 8px 2px 0;
  font-size: .58rem;
}
.sidebar-context-analysis .context-item {
  padding: 9px 10px;
  border-radius: 12px;
  gap: 8px;
}
.sidebar-context-analysis .context-item svg {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}
.sidebar-context-analysis .context-item-title-row {
  gap: 6px;
}
.sidebar-context-analysis .context-item-title {
  font-size: .77rem;
  line-height: 1.2;
}
.sidebar-context-analysis .context-item-summary {
  font-size: .64rem;
  line-height: 1.32;
  margin-top: 2px;
}
.sidebar-context-analysis .context-item-tag {
  padding: 2px 6px;
  font-size: .58rem;
}
.sidebar-context-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}
.context-section-label {
  padding: 10px 4px 2px;
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94a3b8;
}
.context-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  color: var(--ink-2);
  transition: all .16s ease;
  border: 1px solid transparent;
  background: #ffffff;
}
.context-item:hover {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 8px 20px rgba(60,64,67,.08);
  color: var(--ink);
}
.context-item.active {
  background: #eef2ff;
  border-color: rgba(79,70,229,.16);
  color: var(--blue);
  box-shadow: none;
}
.context-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .82;
}
.context-item.active svg { opacity: 1; }
.context-item-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.context-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.context-item-title {
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.25;
}
.context-item-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f6f7fa;
  border: 1px solid var(--border);
  color: #64748b;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.context-item-summary {
  font-size: .69rem;
  color: var(--ink-3);
  line-height: 1.45;
  margin-top: 3px;
}
.context-item-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f3f4f7;
  color: #5f6368;
  font-size: .73rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-left: auto;
}
.context-item.active .context-item-count {
  background: rgba(79,70,229,.12);
  color: var(--blue);
}
.context-item.active .context-item-tag {
  background: rgba(79,70,229,.08);
  border-color: rgba(79,70,229,.14);
  color: var(--blue);
}

.site-bullet { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.sidebar-footer {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  background: #fbfbfd;
}
.avatar-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-uname { display: block; font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-urole { display: block; font-size: .7rem; color: var(--ink-3); }
.btn-logout { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--r-sm); color: var(--ink-3); transition: all .15s; flex-shrink: 0; }
.btn-logout:hover { background: var(--red-lt); color: var(--red); }
.btn-logout svg { width: 15px; height: 15px; }

/* ── Main area ────────────────────────────────────────────────── */
.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #ffffff; }

/* ── Topbar ───────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  padding: 0 28px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.page-title-wrap h1 { font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.15; }
.page-sub { font-size: .76rem; color: var(--ink-3); margin-top: 2px; line-height: 1.4; max-width: 72ch; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.workspace-switcher {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  margin-right: 2px;
}
.workspace-switcher-shell {
  position: relative;
  min-width: 220px;
}
.workspace-switcher-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .06);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease;
}
.workspace-switcher-shell:hover .workspace-switcher-trigger {
  border-color: rgba(var(--blue-rgb), .24);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(60, 64, 67, .08);
}
.workspace-switcher-shell.is-open .workspace-switcher-trigger,
.workspace-switcher-shell:focus-within .workspace-switcher-trigger {
  border-color: rgba(var(--blue-rgb), .45);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.workspace-switcher-trigger-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.workspace-switcher-kicker {
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-shrink: 0;
}
.workspace-switcher-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.workspace-switcher-value {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
}
.workspace-switcher-chevron {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: transform .15s ease, color .15s ease;
}
.workspace-switcher-chevron svg {
  width: 16px;
  height: 16px;
}
.workspace-switcher-shell.is-open .workspace-switcher-chevron {
  transform: rotate(180deg);
  color: var(--ink-2);
}
.workspace-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(60, 64, 67, .12);
  z-index: 80;
}
.workspace-switcher-shell.is-open .workspace-switcher-menu {
  display: block;
}
.workspace-switcher-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.workspace-switcher-option:hover {
  background: var(--surface-2);
}
.workspace-switcher-option.active {
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
}
.workspace-switcher-option-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.workspace-switcher-option-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.workspace-switcher-option-title {
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-switcher-option-sub {
  font-size: .72rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-switcher-check {
  font-size: .82rem;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
}
.topbar-alert-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 14px;
  border: 1px solid var(--border); background: #ffffff;
  color: var(--ink-2); position: relative; transition: all .15s;
}
.topbar-alert-link:hover { border-color: #bfdbfe; background: var(--blue-lt); color: var(--blue); }
.topbar-alert-link.is-alerting {
  border-color: #fecaca;
  background: #fff5f5;
  color: #dc2626;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, .05);
}
.topbar-alert-link.is-alerting:hover {
  border-color: #f87171;
  background: #fef2f2;
  color: #b91c1c;
}
.topbar-alert-link.is-critical {
  animation: bell-alert-pulse 1.8s ease-in-out infinite;
}
.topbar-alert-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.topbar-alert-icon svg { width: 18px; height: 18px; }
.topbar-alert-badge {
  position: absolute; top: -8px; right: -10px;
  min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--red); color: #fff; border: 2px solid var(--surface);
  font-size: .68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}
@keyframes bell-alert-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .12); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

/* Mobile hamburger in topbar — hidden on desktop */
.topbar-ham {
  display: none;
  width: 36px; height: 36px;
  background: none; border: none; border-radius: var(--r-sm);
  color: var(--ink-2); cursor: pointer; padding: 0;
  flex-shrink: 0; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.topbar-ham svg { width: 20px; height: 20px; stroke: currentColor; }
.topbar-ham:active { background: var(--surface-2); }

/* ── Date range dropdown (shared, used on multiple pages) ────── */
.date-range-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ffffff; border: none;
  color: var(--ink); font-weight: 600; font-size: .8rem;
  padding: 8px 13px; border-radius: 12px; cursor: pointer;
  font-family: inherit; transition: all .15s;
  box-shadow: 0 1px 2px rgba(32,33,36,.05), 0 8px 20px rgba(32,33,36,.06);
}
.date-range-btn:hover { color: var(--blue); box-shadow: 0 10px 24px rgba(32,33,36,.08); }

/* ── Page body ────────────────────────────────────────────────── */
.page-body { padding: 22px 28px 56px; background: #ffffff; }
.insight-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow: 0 1px 2px rgba(32,33,36,.04), 0 10px 28px rgba(32,33,36,.05);
}
.insight-bar-copy { min-width: 0; }
.insight-bar-title {
  font-size: .84rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}
.insight-bar-summary {
  font-size: .75rem;
  line-height: 1.45;
  color: var(--ink-3);
}
.insight-bar-pills,
.insight-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.insight-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
.insight-pill-neutral { background: var(--surface-2); }
.insight-pill-blue { background: var(--blue-lt); border-color: color-mix(in srgb, var(--blue) 24%, transparent); color: var(--blue); }
.insight-pill-green { background: var(--green-lt); border-color: color-mix(in srgb, var(--green) 24%, transparent); color: var(--green); }
.insight-pill-amber { background: var(--amber-lt); border-color: color-mix(in srgb, var(--amber) 24%, transparent); color: var(--amber); }
.insight-pill-red { background: var(--red-lt); border-color: color-mix(in srgb, var(--red) 24%, transparent); color: var(--red); }

/* ── Shared site scope switcher ─────────────────────────────── */
.scope-bar {
  background: var(--surface);
  border: none;
  border-radius: var(--r);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(32,33,36,.04), 0 10px 28px rgba(32,33,36,.05);
}
.scope-label {
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
  flex-shrink: 0;
}
.scope-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: none;
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 600;
  transition: all .15s;
}
.scope-pill:hover {
  color: var(--ink);
  background: #eef2ff;
}
.scope-pill.active {
  color: var(--blue);
  background: var(--blue-lt);
}
.scope-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: .82rem; font-weight: 600;
  border: 1px solid var(--border-2);
  background: var(--surface); color: var(--ink-2);
  cursor: pointer; transition: all .15s; line-height: 1;
}
.btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--border-2); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: #1D4ED8; border-color: #1D4ED8; box-shadow: 0 3px 12px rgba(37,99,235,.3); }
.btn-sm { padding: 5px 12px; font-size: .77rem; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-danger { background: var(--red-lt); color: var(--red); border-color: #FECACA; }
.btn-danger:hover { background: #FEE2E2; }
.btn-copy { background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); border-radius: var(--r-sm); padding: 4px 10px; font-size: .75rem; font-weight: 600; cursor: pointer; transition: all .15s; font-family: inherit; }
.btn-copy:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-copy-code { display: inline-flex; align-items: center; gap: 5px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--ink-2); border-radius: var(--r-sm); padding: 4px 10px; font-size: .75rem; cursor: pointer; transition: all .15s; font-family: inherit; }
.btn-copy-code svg { width: 13px; height: 13px; }
.btn-copy-code:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: none;
  overflow: hidden;
}
.card-header {
  padding: 22px 24px 12px;
  border-bottom: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-title { font-size: .98rem; font-weight: 700; color: var(--ink); }
.card-body { padding: 0 24px 24px; }

/* ── Grid layouts ─────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.two-col    { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three-col  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ── Stat card ────────────────────────────────────────────────── */
.stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: none;
  transition: border-color .18s ease, background .18s ease;
}
.stat-card:hover { border-color: var(--border-2); background: #fcfcfd; }
.stat-icon { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 18px; height: 18px; }
.stat-label { font-size: .76rem; letter-spacing: .03em; text-transform: none; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.stat-value { font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: 8px; }
.stat-sub { font-size: .9rem; color: var(--ink-2); line-height: 1.55; }

/* ── Flash messages ───────────────────────────────────────────── */
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: .85rem; font-weight: 500; border: 1px solid; }
.flash svg { width: 16px; height: 16px; flex-shrink: 0; }
.flash-success { background: var(--green-lt); border-color: #86EFAC; color: #166534; }
.flash-error   { background: var(--red-lt);   border-color: #FECACA; color: #991B1B; }
.flash-warning { background: var(--amber-lt); border-color: #FDE68A; color: #92400E; }
.flash-info    { background: var(--blue-lt);  border-color: #BFDBFE; color: #1E40AF; }

/* ── Tables ───────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.data-table th { padding: 10px 16px; text-align: left; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-bottom: 2px solid var(--border); white-space: nowrap; background: var(--surface-2); }
.data-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tr.row-worst { background: var(--table-row-worst); }
.data-table tr.row-worst:hover { background: var(--table-row-worst-hover); }
.data-table tr.row-worst td:first-child { border-left: 3px solid var(--red); }
.data-table tr.row-submit { background: var(--table-row-submit); }
.data-table tr.row-submit td:first-child { border-left: 3px solid var(--green); }

/* ── Drop-off bar ─────────────────────────────────────────────── */
.dropoff-cell { display: flex; align-items: center; gap: 8px; }
.bar-wrap { width: 70px; height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; flex-shrink: 0; }
.bar-fill { height: 100%; border-radius: 99px; transition: width .5s ease; }
.bar-success { background: var(--green); }
.bar-warning { background: var(--amber); }
.bar-danger  { background: var(--red); }
.pct-success { font-size: .8rem; font-weight: 700; color: var(--green); min-width: 42px; }
.pct-warning { font-size: .8rem; font-weight: 700; color: var(--amber); min-width: 42px; }
.pct-danger  { font-size: .8rem; font-weight: 700; color: var(--red);   min-width: 42px; }

/* ── Badges ───────────────────────────────────────────────────── */
.badge-red   { font-size: .7rem; font-weight: 600; background: var(--red-lt);    color: var(--red);   border: 1px solid #FECACA; padding: 2px 8px; border-radius: 99px; }
.badge-green { font-size: .7rem; font-weight: 600; background: var(--green-lt);  color: var(--green); border: 1px solid #86EFAC; padding: 2px 8px; border-radius: 99px; }
.badge-blue  { font-size: .7rem; font-weight: 600; background: var(--blue-lt);   color: var(--blue);  border: 1px solid #BFDBFE; padding: 2px 8px; border-radius: 99px; }
.cr-badge    { font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.site-tag    { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; border: 1px solid; display: inline-block; }
.pill        { font-size: .72rem; font-weight: 500; padding: 3px 9px; border-radius: 99px; display: inline-flex; align-items: center; }
.pill-blue   { background: var(--blue-lt);  color: var(--blue);   }
.pill-green  { background: var(--green-lt); color: var(--green);  }
.pill-red    { background: var(--red-lt);   color: var(--red);    }
.pill-purple { background: var(--purple-lt);color: var(--purple); }
.pill-gray   { background: var(--surface-2);color: var(--ink-3);  }
.category-tag{ font-size: .7rem; font-weight: 500; background: var(--surface-2); color: var(--ink-3); padding: 2px 8px; border-radius: 99px; }
.worst-badge { font-size: .67rem; font-weight: 700; background: var(--red-lt); color: var(--red); border: 1px solid #FECACA; padding: 2px 7px; border-radius: 99px; margin-left: 6px; }
.field-type-badge { font-size: .62rem; font-weight: 700; background: var(--surface-2); color: var(--ink-3); padding: 2px 6px; border-radius: 4px; font-family: monospace; }

/* ── Status indicators ────────────────────────────────────────── */
.status-live { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; color: var(--green); font-weight: 500; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }

/* ── Sites grid ───────────────────────────────────────────────── */
.sites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 20px; }
.site-card { background: #ffffff; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; transition: border-color .18s ease, background .18s ease; display: block; box-shadow: none; }
.site-card:hover { border-color: var(--border-2); background: #fcfcfd; transform: none; }
.site-card-bar { height: 4px; }
.site-card-body { padding: 22px 24px; }
.site-card-name { font-size: .9rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.site-card-domain { font-size: .82rem; color: var(--ink-2); margin-bottom: 14px; }
.site-card-stats { display: flex; gap: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.scn { font-size: 1rem; font-weight: 700; }
.scl { font-size: .68rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-top: 1px; }
.site-card-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 120px; border: 2px dashed var(--border-2); color: var(--ink-3); cursor: pointer; font-size: .83rem; font-weight: 500; }
.site-card-add:hover { border-color: var(--border-2); color: var(--ink); transform: none; box-shadow: none; background: #fcfcfd; }
.site-card-add svg { width: 22px; height: 22px; }

/* ── Site list rows ───────────────────────────────────────────── */
.sites-list { display: flex; flex-direction: column; gap: 14px; }
.site-row-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); display: flex; align-items: stretch; overflow: hidden; box-shadow: var(--shadow); transition: all .2s; }
.site-row-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); }
.src-colour { width: 5px; flex-shrink: 0; }
.src-main { flex: 1; padding: 16px 20px; min-width: 0; }
.src-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.src-name { font-size: .95rem; font-weight: 700; color: var(--ink); }
.src-name:hover { color: var(--blue); }
.src-domain { font-size: .78rem; color: var(--ink-3); }
.src-stats { display: flex; gap: 24px; margin-bottom: 10px; }
.src-stat { display: flex; flex-direction: column; }
.src-stat-val { font-size: 1rem; font-weight: 700; }
.src-stat-l { font-size: .68rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.src-key { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.key-label { font-size: .73rem; color: var(--ink-3); font-weight: 600; }
.key-label-sm { font-size: .7rem; color: var(--ink-3); font-weight: 600; margin-bottom: 6px; }
.api-key-display { font-family: monospace; font-size: .75rem; background: var(--surface-2); padding: 4px 8px; border-radius: var(--r-sm); color: var(--ink-2); word-break: break-all; }
.api-key-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.src-actions { padding: 16px; display: flex; flex-direction: column; gap: 6px; justify-content: center; border-left: 1px solid var(--border); }

/* ── Forms (inputs) ───────────────────────────────────────────── */
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: .81rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: .88rem; color: var(--ink); background: var(--surface-2);
  outline: none; transition: all .15s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.fg input:disabled { opacity: .55; cursor: not-allowed; }
.fg-hint { font-size: .75rem; color: var(--ink-3); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Colour picker ────────────────────────────────────────────── */
.colour-picker { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 0; }
.colour-opt input { display: none; }
.colour-opt span { display: block; width: 28px; height: 28px; border-radius: 7px; cursor: pointer; border: 2px solid transparent; transition: all .15s; }
.colour-opt input:checked + span { border-color: var(--ink); transform: scale(1.15); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.colour-opt span:hover { transform: scale(1.1); }

/* ── Modals ───────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.5); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay { background: var(--overlay); }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); overflow: hidden; animation: modalIn .2s ease; }
@keyframes modalIn { from{opacity:0;transform:scale(.96) translateY(8px)} to{opacity:1;transform:scale(1) translateY(0)} }
.modal-header { padding: 20px 22px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h2 { font-size: 1rem; font-weight: 700; }
.modal-close { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: none; background: var(--surface-2); border-radius: var(--r-sm); cursor: pointer; transition: all .15s; }
.modal-close:hover { background: var(--red-lt); color: var(--red); }
.modal-close svg { width: 15px; height: 15px; }
.modal-form { padding: 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }

/* ── Empty states ─────────────────────────────────────────────── */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ink-3); }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 14px; opacity: .4; }
.empty-state h3 { font-size: 1rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.empty-state p { font-size: .85rem; max-width: 360px; line-height: 1.6; }

/* ── Section header ───────────────────────────────────────────── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-size: .88rem; font-weight: 700; color: var(--ink); }

/* ── Form analysis card ───────────────────────────────────────── */
.form-analysis-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow); }
.fac-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.fac-title-block { flex: 1; min-width: 0; }
.fac-title { font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.fac-url { font-size: .75rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.fac-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.fac-cr { text-align: right; flex-shrink: 0; }
.fac-cr-val { font-size: 2rem; font-weight: 800; line-height: 1; }
.fac-cr-label { font-size: .7rem; color: var(--ink-3); margin-top: 2px; }

/* ── Insight banner ───────────────────────────────────────────── */
.insight-banner { margin: 0 0 0; padding: 12px 20px; background: var(--amber-lt); border-bottom: 1px solid rgba(251,191,36,.35); display: flex; align-items: flex-start; gap: 10px; font-size: .83rem; color: color-mix(in srgb, var(--amber) 82%, var(--ink) 18%); }
.insight-banner svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; stroke: var(--amber); }

/* ── Funnel ───────────────────────────────────────────────────── */
.funnel-section { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.funnel-label { font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; }
.funnel-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.funnel-field-name { font-size: .76rem; color: var(--ink-2); width: 120px; flex-shrink: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.funnel-bar-track { flex: 1; height: 26px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.funnel-bar-fill { height: 100%; border-radius: 6px; display: flex; align-items: center; padding-left: 10px; font-size: .72rem; font-weight: 600; color: #fff; transition: width .8s cubic-bezier(.16,1,.3,1); min-width: 40px; }
.funnel-success { background: linear-gradient(90deg, #16A34A, #22C55E); }
.funnel-warning { background: linear-gradient(90deg, #D97706, #F59E0B); }
.funnel-danger  { background: linear-gradient(90deg, #DC2626, #EF4444); }
.funnel-drop { width: 60px; text-align: right; font-size: .75rem; font-weight: 600; flex-shrink: 0; }
.drop-success { color: var(--green); }
.drop-warning { color: var(--amber); }
.drop-danger  { color: var(--red); }

/* ── Legend ───────────────────────────────────────────────────── */
.legend-row { display: flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--ink-3); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ── Device chart legend ──────────────────────────────────────── */
.device-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.dev-item { display: flex; align-items: center; gap: 5px; font-size: .75rem; color: var(--ink-2); }
.dev-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dev-desktop { background: var(--blue); }
.dev-mobile  { background: var(--green); }
.dev-tablet  { background: var(--purple); }
.dev-unknown { background: var(--ink-3); }

/* ── Code blocks ──────────────────────────────────────────────── */
.code-block { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
.code-block-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 8px; background: var(--surface); border-bottom: 1px solid var(--border); }
.code-lang { font-size: .7rem; font-weight: 600; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.code-block pre { padding: 16px 18px; overflow-x: auto; }
.code-block pre code { font-size: .82rem; line-height: 1.8; color: var(--ink); }
.c-tag  { color: var(--code-tag); }
.c-attr { color: var(--code-attr); }
.c-str  { color: var(--code-str); }
.c-cm   { color: var(--ink-3); }

/* ── Install page ─────────────────────────────────────────────── */
.site-selector-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.site-selector-tab { display: flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--border); font-size: .82rem; font-weight: 500; color: var(--ink-2); transition: all .15s; cursor: pointer; }
.site-selector-tab:hover { background: var(--surface-2); }
.site-selector-tab.active {
  background: color-mix(in srgb, var(--site-accent, var(--blue)) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--site-accent, var(--blue)) 50%, var(--border));
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--site-accent, var(--blue)) 14%, transparent);
}
.step-num-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; margin-right: 4px; }
.install-key-row { margin-top: 16px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-sm); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.install-key-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.iki-label { font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.iki-val { font-family: monospace; font-size: .78rem; color: var(--ink-2); word-break: break-all; }
.how-it-works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hiw-item { padding: 16px; background: var(--surface-2); border-radius: var(--r-sm); }
.hiw-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.hiw-icon svg { width: 18px; height: 18px; }
.hiw-title { font-size: .83rem; font-weight: 700; margin-bottom: 5px; }
.hiw-desc { font-size: .78rem; color: var(--ink-3); line-height: 1.6; }
.verify-steps { display: flex; flex-direction: column; gap: 10px; }
.vs-step { display: flex; align-items: flex-start; gap: 12px; font-size: .85rem; }
.vs-num { width: 24px; height: 24px; border-radius: 50%; background: var(--blue-lt); color: var(--blue); font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid #BFDBFE; }

/* ── Analytics ────────────────────────────────────────────────── */
.range-tabs { display: flex; background: var(--surface-2); border-radius: var(--r-sm); padding: 2px; gap: 2px; }
.range-tab { padding: 5px 12px; border-radius: 5px; font-size: .78rem; font-weight: 600; color: var(--ink-3); transition: all .15s; }
.range-tab:hover { color: var(--ink); }
.range-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.site-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sbr-name { width: 120px; flex-shrink: 0; font-size: .8rem; font-weight: 500; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbr-bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.sbr-fill { height: 100%; border-radius: 99px; transition: width .6s ease; }
.sbr-pct { font-size: .78rem; font-weight: 700; width: 42px; text-align: right; flex-shrink: 0; }

/* ── Settings ─────────────────────────────────────────────────── */
.info-grid { display: flex; flex-direction: column; gap: 0; }
.ig-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.ig-row:last-child { border-bottom: none; }
.ig-label { color: var(--ink-3); font-weight: 500; }
.ig-val { font-weight: 600; }

/* ── Toast ────────────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: var(--r-sm); font-size: .82rem; font-weight: 500; box-shadow: var(--shadow-md); border: 1px solid; opacity: 0; transform: translateX(16px); transition: all .25s; min-width: 220px; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(0); pointer-events: all; }
.toast-success { background: var(--green-lt); border-color: #86EFAC; color: #166534; }
.toast-error   { background: var(--red-lt);   border-color: #FECACA; color: #991B1B; }
.toast-info    { background: var(--blue-lt);   border-color: #BFDBFE; color: #1E40AF; }

/* ── Utilities ────────────────────────────────────────────────── */
.text-muted { color: var(--ink-3); }
.text-sm    { font-size: .8rem; }
code { font-family: monospace; font-size: .85em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; color: var(--ink-2); }

/* ══════════════════════════════════════════════════════════════
   MOBILE NAVIGATION  (≤768 px)
   ══════════════════════════════════════════════════════════════ */

/* Overlay behind the open sidebar */
.mob-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 149;
  background: var(--overlay);
}
.mob-overlay.mob-overlay-show { display: block; }

/* Sidebar — slides in from the left on mobile */
@media (max-width: 768px) {
  .sidebar {
    display: flex !important;
    position: fixed; inset: 0 auto 0 0; z-index: 150;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
  }
  .sidebar.mob-open { transform: translateX(0); }

  .scope-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .scope-bar::-webkit-scrollbar { display: none; }
  .scope-label,
  .scope-pill { flex-shrink: 0; }
}

/* Bottom navigation bar */
.mob-nav {
  display: none;                    /* hidden on desktop */
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 140;
  height: 60px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,.07);
  flex-direction: row;
  align-items: stretch;
}

.mob-nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  color: var(--ink-3); text-decoration: none;
  font-size: .62rem; font-weight: 600;
  background: transparent; border: none; cursor: pointer;
  font-family: inherit; padding: 6px 2px;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.mob-nav-item svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.mob-nav-item.mob-active       { color: var(--blue); }
.mob-nav-item.mob-active svg   { stroke: var(--blue); }
.mob-nav-item:active           { color: var(--blue); }

/* Show bottom nav on mobile */
@media (max-width: 768px) {
  .mob-nav { display: flex; }
  .topbar-ham { display: flex; }

  /* Push page content above the bottom nav */
  .page-body    { padding: 16px 14px; padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .topbar {
    height: auto;
    min-height: var(--topbar-h);
    padding: 10px 14px 12px 10px;
    z-index: 160;
    overflow: visible;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .topbar-left {
    flex: 1 1 100%;
    min-width: 0;
    align-items: flex-start;
  }
  .page-title-wrap {
    min-width: 0;
    flex: 1;
  }
  .page-title-wrap h1 {
    font-size: 1rem;
    line-height: 1.25;
  }
  .page-sub {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .topbar-actions {
    width: 100%;
    padding-left: 48px;
    gap: 6px;
    overflow: visible;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .topbar-actions > * {
    max-width: 100%;
  }
  .insight-bar {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 10px;
  }
  .insight-bar-actions {
    width: 100%;
  }
  .workspace-switcher {
    display: none;
  }
  .sidebar-mission {
    display: block;
  }
  .theme-toggle {
    padding: 0 10px;
  }
  .theme-toggle-label {
    font-size: .76rem;
  }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .src-actions  { flex-direction: row; border-left: none; border-top: 1px solid var(--border); }
  .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #toast-container { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }

  /* Bottom nav height accounts for iOS safe area */
  .mob-nav {
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE MENU PANEL  (full-screen overlay, ≤768 px)
   ══════════════════════════════════════════════════════════════ */

/* The panel — hidden by default, shown only on mobile */
.mob-menu {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
@media (max-width: 768px) {
  .mob-menu { display: flex; pointer-events: none; }
  .mob-menu.mob-menu-open { pointer-events: auto; }
}
.mob-menu.mob-menu-open {
  opacity: 1;
  visibility: visible;
}
.mob-menu-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: var(--overlay);
  cursor: pointer;
}
.mob-menu-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(12px);
  transition: transform .2s ease;
  outline: none;
}
.mob-menu.mob-menu-open .mob-menu-panel {
  transform: translateY(0);
}

.mob-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--surface); z-index: 1;
}
.mob-menu-title {
  font-size: 1rem; font-weight: 700; color: var(--ink);
}
.mob-menu-close {
  width: 36px; height: 36px; border: none;
  background: var(--surface-2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-2);
  -webkit-tap-highlight-color: transparent;
}
.mob-menu-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.mob-menu-section {
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.mob-menu-section:last-child { border-bottom: none; padding-bottom: 32px; }

.mob-menu-section-label {
  font-size: .68rem; font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .07em;
  padding: 10px 18px 4px;
}
.mob-menu-section-label.active { color: var(--blue); }

.mob-menu-link {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 18px;
  color: var(--ink-2); font-size: .95rem; font-weight: 500;
  transition: background .1s, color .1s;
  -webkit-tap-highlight-color: transparent;
}
.mob-menu-link svg {
  width: 20px; height: 20px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; color: var(--ink-3);
}
.mob-menu-link:active,
.mob-menu-link.mob-active {
  background: var(--blue-lt); color: var(--blue);
}
.mob-menu-link.mob-active svg,
.mob-menu-link:active svg { color: var(--blue); }
.mob-menu-link-parent {
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.mob-menu-link-child {
  padding-left: 30px;
}
.mob-menu-link-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.mob-menu-link-title {
  font-size: .92rem;
  font-weight: 700;
  color: inherit;
  line-height: 1.25;
}
.mob-menu-link-sub {
  font-size: .73rem;
  color: var(--ink-3);
  line-height: 1.45;
  margin-top: 2px;
}
.mob-menu-link.mob-active .mob-menu-link-sub,
.mob-menu-link:active .mob-menu-link-sub { color: color-mix(in srgb, var(--blue) 70%, #64748b 30%); }
.mob-menu-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.mob-menu-link.mob-active .mob-menu-link-badge,
.mob-menu-link:active .mob-menu-link-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.mob-menu-link-logout { color: var(--red); }
.mob-menu-link-logout svg { color: var(--red); }
.mob-menu-link-logout:active { background: var(--red-lt); }

/* ── Responsive (desktop breakpoints, unchanged) ─────────────── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col    { grid-template-columns: 1fr; }
  .how-it-works-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .add-site-label { display: none; }
  .topbar h1 { font-size: 1rem; }
  .topbar .page-sub { display: none; }
}

/* ── Conversion Blocker cards ─────────────────────────────── */
.blockers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.blocker-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s;
}
.blocker-card:hover { box-shadow: var(--shadow-md); }
.blocker-stripe-high   { height: 4px; background: var(--red); }
.blocker-stripe-medium { height: 4px; background: var(--amber); }
.blocker-stripe-low    { height: 4px; background: var(--green); }
.blocker-card-top { padding: 18px 20px 0; flex: 1; }
.blocker-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-3);
  font-size: .68rem; font-weight: 700; margin-right: 6px; vertical-align: middle;
}
.blocker-impact {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 99px; vertical-align: middle;
}
.impact-high   { background: var(--red-lt);   color: var(--red);   border: 1px solid #FECACA; }
.impact-medium { background: var(--amber-lt); color: var(--amber); border: 1px solid #FDE68A; }
.impact-low    { background: var(--green-lt); color: var(--green); border: 1px solid #86EFAC; }
.blocker-title { font-size: .92rem; font-weight: 700; color: var(--ink); margin: 10px 0 8px; line-height: 1.3; }
.blocker-explanation { font-size: .81rem; color: var(--ink-2); line-height: 1.65; margin-bottom: 14px; }
.blocker-fix {
  margin: 0 20px 18px; padding: 11px 13px; border-radius: var(--r-sm);
  background: var(--blue-lt); border: 1px solid #BFDBFE;
}
.blocker-fix-label { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.blocker-fix-text  { font-size: .79rem; color: #1E40AF; line-height: 1.55; }

/* ── Page list (sidebar within page) ─────────────────────── */
.page-list { display: flex; flex-direction: column; gap: 1px; }
.page-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-sm);
  font-size: .81rem; color: var(--ink-2); transition: all .15s;
}
.page-list-item:hover { background: var(--surface-2); color: var(--ink); }
.page-list-item.active { background: var(--blue-lt); color: var(--blue); font-weight: 600; }
.page-list-item-url { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-list-item-views { font-size: .72rem; color: var(--ink-3); flex-shrink: 0; }
.page-list-item.active .page-list-item-views { color: rgba(37,99,235,.55); }

/* ── Scroll depth bars ────────────────────────────────────── */
.scroll-depth-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.scroll-depth-label { font-size: .75rem; color: var(--ink-3); width: 34px; flex-shrink: 0; text-align: right; }
.scroll-depth-bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.scroll-depth-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), #60A5FA); transition: width .6s ease; }
.scroll-depth-pct { font-size: .76rem; font-weight: 700; color: var(--ink-2); width: 36px; text-align: right; flex-shrink: 0; }

@media (max-width: 1024px) {
  .blockers-grid { grid-template-columns: 1fr; }
}

/* ── Vitals score badges ──────────────────────────────────────── */
.vitals-good             { display:inline-block; font-size:.78rem; font-weight:700; padding:2px 8px; border-radius:99px; background:var(--green-lt); color:var(--green); border:1px solid #86EFAC; }
.vitals-needs-improvement{ display:inline-block; font-size:.78rem; font-weight:700; padding:2px 8px; border-radius:99px; background:var(--amber-lt); color:var(--amber); border:1px solid #FDE68A; }
.vitals-poor             { display:inline-block; font-size:.78rem; font-weight:700; padding:2px 8px; border-radius:99px; background:var(--red-lt);   color:var(--red);   border:1px solid #FECACA; }
.vitals-none             { display:inline-block; font-size:.78rem; font-weight:700; padding:2px 8px; border-radius:99px; background:var(--surface-2);color:var(--ink-3); border:1px solid var(--border); }

/* ── Issue type badge ─────────────────────────────────────────── */
.issue-type-badge { display:inline-flex; align-items:center; font-size:.7rem; font-weight:700; letter-spacing:.04em; padding:2px 8px; border-radius:99px; white-space:nowrap; }

/* ── Feature summary cards (analytics overview) ──────────────── */
.four-col { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.feature-card {
  display:flex; flex-direction:column; align-items:flex-start; gap:12px;
  background:#ffffff; border:1px solid var(--border); border-radius:24px;
  padding:22px 24px; box-shadow:none; transition:border-color .18s ease, background .18s ease; cursor:pointer;
}
.feature-card:hover { border-color:var(--border-2); background:#fcfcfd; transform:none; }
.feature-card-icon { width:46px; height:46px; border-radius:16px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.feature-card-icon svg { width:18px; height:18px; }
.feature-card-label { font-size:1rem; font-weight:700; color:var(--ink); }
.feature-card-sub   { font-size:.95rem; color:var(--ink-2); margin-top:0; line-height:1.65; }

@media (max-width:1100px) { .four-col { grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px)  { .four-col { grid-template-columns:1fr; } }

/* ── Animations ───────────────────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.form-analysis-card { animation: fadeUp .3s ease both; }
.form-analysis-card:nth-child(2) { animation-delay: .05s; }
.form-analysis-card:nth-child(3) { animation-delay: .10s; }

/* ── Chart.js fixes ──────────────────────────────────────────── */
/* Canvas must sit inside a position:relative div with a fixed height.
   Chart.js responsive mode reads the parent height, not the canvas attr. */
canvas {
    display: block;
    max-width: 100%;
}
/* Prevent charts from collapsing in flex/grid containers */
.card-body canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* ============================================================
   Conversion Insights — CRO Dashboard Components
   ============================================================ */

/* ── Section labels ───────────────────────────────────────── */
.insight-section-label {
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-3);
  margin: 28px 0 12px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* ── Insight banners ──────────────────────────────────────── */
.insight-banner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--r-sm);
  margin-bottom: 16px; font-size: .84rem; line-height: 1.55;
  font-weight: 500; border: 1px solid;
}
.insight-banner svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.insight-banner-ok   { background: var(--green-lt);  border-color: #86EFAC; color: #166534; }
.insight-banner-ok svg { stroke: #16A34A; }
.insight-banner-warn { background: var(--amber-lt); border-color: #FDE68A; color: #92400E; }
.insight-banner-warn svg { stroke: #D97706; }
.insight-banner-crit { background: var(--red-lt);   border-color: #FECACA; color: #991B1B; }
.insight-banner-crit svg { stroke: #DC2626; }
.insight-banner-info { background: var(--blue-lt);  border-color: #BFDBFE; color: #1E40AF; }
.insight-banner-info svg { stroke: #2563EB; }

/* ── Overall score banner ─────────────────────────────────── */
.insight-score-banner {
  display: flex; align-items: center; gap: 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px 28px;
  box-shadow: var(--shadow); margin-bottom: 28px;
  border-left: 4px solid var(--score-colour, var(--blue));
}
.score-ring-wrap { flex-shrink: 0; }
.score-ring { width: 80px; height: 80px; }
.score-detail { flex: 1; }
.score-headline { font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.score-summary  { font-size: .82rem; color: var(--ink-2); line-height: 1.55; margin-bottom: 10px; }
.score-factors  { display: flex; flex-wrap: wrap; gap: 6px; }
.score-factor   { font-size: .72rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; border: 1px solid; }
.factor-ok  { background: var(--green-lt); color: #166534; border-color: #86EFAC; }
.factor-bad { background: var(--red-lt);   color: #991B1B; border-color: #FECACA; }

/* ── Priority badges ──────────────────────────────────────── */
.priority-critical { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.priority-high     { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #FFEDD5; color: #9A3412; border: 1px solid #FED7AA; }
.priority-medium   { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--amber-lt); color: #92400E; border: 1px solid #FDE68A; }
.priority-low      { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--border); }

/* ── CR bar ────────────────────────────────────────────────── */
.cr-bar-wrap  { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; flex: 1; }
.cr-bar-fill  { height: 100%; border-radius: 99px; transition: width .5s ease; }

/* ── Mini metrics ─────────────────────────────────────────── */
.mini-metric { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 16px; }
.mini-label  { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.mini-val    { font-size: 1.4rem; font-weight: 800; color: var(--ink); line-height: 1; }

/* ── Big metric ────────────────────────────────────────────── */
.big-metric  { text-align: center; padding: 8px 0 16px; }
.big-val     { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.big-label   { font-size: .78rem; color: var(--ink-3); font-weight: 500; text-transform: uppercase; letter-spacing: .07em; }

/* ── User journey funnel ──────────────────────────────────── */
.journey-funnel { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 4px; }
.funnel-stage {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-radius: var(--r-sm);
  transition: all .2s; cursor: default;
}
.funnel-pct   { font-size: 1.15rem; font-weight: 800; }
.funnel-label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }

/* ── Field type badge ─────────────────────────────────────── */
.badge-type { font-size: .68rem; font-weight: 600; background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; font-family: monospace; }

/* ── Severity warning colours ──────────────────────────────── */
.badge-warn   { font-size: .7rem; font-weight: 700; background: var(--amber-lt); color: #92400E; border: 1px solid #FDE68A; padding: 2px 8px; border-radius: 99px; }
.badge-danger { font-size: .7rem; font-weight: 700; background: var(--red-lt);   color: var(--red);   border: 1px solid #FECACA; padding: 2px 8px; border-radius: 99px; }

/* ── Prioritised actions list ─────────────────────────────── */
.actions-list  { display: flex; flex-direction: column; gap: 12px; }
.action-card   {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 20px;
  box-shadow: var(--shadow); transition: all .2s;
}

/* ============================================================
   Marketing Homepage Refresh
   ============================================================ */
body.mk-shell {
  background:
    radial-gradient(circle at 14% 14%, rgba(129, 140, 248, .18), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(96, 165, 250, .14), transparent 24%),
    linear-gradient(180deg, #06101f 0%, #0b1426 22%, #eef4ff 22.1%, #f8fbff 100%);
}
.mk-home {
  color: #0f172a;
}
.mk-home .section-wrap {
  width: min(92vw, 1460px);
  max-width: 1460px;
}
.mk-kicker,
.mk-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, .24);
  background: rgba(255, 255, 255, .74);
  color: #3454d1;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mk-kicker-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e 0%, #3b82f6 100%);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, .08);
}
.mk-hero {
  position: relative;
  padding: 118px 0 56px;
  overflow: hidden;
}
.mk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(99, 102, 241, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, .08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.88), rgba(0,0,0,.12) 68%, transparent);
  pointer-events: none;
}
.mk-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(520px, .96fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.mk-hero-copy {
  padding: clamp(24px, 2vw, 32px) 0;
}
.mk-hero-title {
  font-size: clamp(3.4rem, 6vw, 6.2rem);
  line-height: .95;
  letter-spacing: -.065em;
  font-weight: 800;
  color: #0f172a;
  margin: 22px 0 24px;
  max-width: 11ch;
}
.mk-hero-title span {
  display: block;
  background: linear-gradient(135deg, #3153d7 0%, #5987ff 62%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mk-hero-sub {
  max-width: 56ch;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #5b6b86;
  margin-bottom: 30px;
}
.mk-hero-actions,
.mk-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.mk-btn-primary,
.mk-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.mk-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #635bff 0%, #4454ff 100%);
  box-shadow: 0 16px 36px rgba(79, 70, 229, .26);
  gap: 8px;
}
.mk-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(79, 70, 229, .34);
}
.mk-btn-primary svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}
.mk-btn-secondary {
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, .35);
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.mk-btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, .35);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}
.mk-proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.mk-proof-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #445066;
  font-size: .92rem;
  font-weight: 600;
}
.mk-proof-line span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 0 5px rgba(124, 58, 237, .08);
}
.mk-command {
  position: relative;
  border-radius: 30px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(11, 18, 36, .98)),
    linear-gradient(90deg, rgba(59, 130, 246, .12), transparent);
  border: 1px solid rgba(148, 163, 184, .16);
  box-shadow: 0 28px 60px rgba(2, 6, 23, .36);
  overflow: hidden;
}
.mk-command::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.mk-command-top,
.mk-stack-head,
.mk-cap-head,
.mk-proof-points div,
.mk-mini-card,
.mk-band-grid > div {
  position: relative;
  z-index: 1;
}
.mk-command-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.mk-command-label {
  color: #f8fafc;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.03em;
}
.mk-command-top p {
  color: #8ea0bd;
  margin-top: 6px;
  font-size: .96rem;
}
.mk-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .14);
  border: 1px solid rgba(96, 165, 250, .16);
  color: #8fbcff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.mk-chip-live {
  background: rgba(49, 83, 215, .18);
  color: #c7d2fe;
}
.mk-command-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 320px;
  gap: 16px;
}
.mk-priority-card,
.mk-score-panel,
.mk-stack-card,
.mk-value-card,
.mk-process-card,
.mk-cap-card,
.mk-use-card,
.mk-quote-card {
  border-radius: 24px;
}
.mk-priority-card {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,245,255,.94));
  border: 1px solid rgba(226, 232, 240, .8);
  padding: 26px;
  min-height: 248px;
}
.mk-priority-card h3 {
  margin: 16px 0 14px;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -.045em;
  color: #162033;
}
.mk-priority-card p {
  color: #55657f;
  line-height: 1.78;
}
.mk-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.mk-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(203, 213, 225, .8);
  color: #334155;
  font-size: .82rem;
  font-weight: 700;
}
.mk-score-panel {
  grid-row: span 2;
  background: linear-gradient(180deg, rgba(17, 24, 39, .95), rgba(15, 23, 42, .92));
  border: 1px solid rgba(100, 116, 139, .24);
  padding: 22px;
}
.mk-score-ring {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  margin: 6px auto 22px;
  background: conic-gradient(#60a5fa 0 295deg, rgba(255,255,255,.12) 295deg 360deg);
  display: grid;
  place-items: center;
}
.mk-score-ring-inner {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: #0f172a;
  display: grid;
  place-items: center;
  text-align: center;
}
.mk-score-ring-inner strong {
  display: block;
  color: #f8fafc;
  font-size: 2.6rem;
  line-height: 1;
}
.mk-score-ring-inner span {
  display: block;
  margin-top: 4px;
  color: #8ea0bd;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mk-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mk-mini-card {
  padding: 14px;
  background: rgba(30, 41, 59, .84);
  border: 1px solid rgba(71, 85, 105, .26);
  color: #cbd5e1;
}
.mk-mini-card strong {
  display: block;
  color: #f8fafc;
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.mk-mini-card span {
  font-size: .82rem;
  line-height: 1.55;
}
.mk-stack {
  display: grid;
  gap: 16px;
}
.mk-stack-card {
  background: rgba(15, 23, 42, .84);
  border: 1px solid rgba(71, 85, 105, .26);
  padding: 18px;
}
.mk-stack-head,
.mk-cap-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.mk-stack-head > span:first-child {
  color: #dbeafe;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mk-queue-item,
.mk-signal-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(148, 163, 184, .14);
}
.mk-queue-item:first-of-type,
.mk-signal-item:first-of-type {
  border-top: 0;
  padding-top: 4px;
}
.mk-queue-item strong,
.mk-signal-item span {
  display: block;
  color: #f8fafc;
  font-size: .95rem;
  font-weight: 700;
}
.mk-queue-item span {
  display: block;
  color: #8ea0bd;
  font-size: .82rem;
  margin-top: 4px;
}
.mk-queue-item b,
.mk-signal-item b {
  align-self: center;
  min-width: 40px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, .14);
  color: #bfdbfe;
  font-size: .82rem;
}
.mk-band {
  padding: 14px 0 24px;
}
.mk-band-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.mk-band-grid > div {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(203, 213, 225, .7);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
}
.mk-band-grid strong {
  display: block;
  color: #122033;
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.mk-band-grid span {
  display: block;
  color: #64748b;
  line-height: 1.72;
}
.mk-section {
  padding: clamp(72px, 8vw, 110px) 0;
}
.mk-section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(244,248,255,.92) 100%);
}
.mk-section-head {
  max-width: 860px;
  margin-bottom: 36px;
}
.mk-section-head h2 {
  margin-top: 18px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  color: #0f172a;
}
.mk-section-head p {
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #64748b;
  max-width: 60ch;
}
.mk-value-grid,
.mk-process-grid,
.mk-cap-grid,
.mk-use-grid {
  display: grid;
  gap: 18px;
}
.mk-value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mk-value-card,
.mk-process-card,
.mk-cap-card,
.mk-use-card {
  padding: 26px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(203, 213, 225, .74);
  box-shadow: 0 20px 48px rgba(15, 23, 42, .06);
}
.mk-card-index,
.mk-process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dbeafe 0%, #eef2ff 100%);
  color: #3454d1;
  font-size: .92rem;
  font-weight: 800;
}
.mk-value-card h3,
.mk-process-card h3,
.mk-cap-card h3,
.mk-use-card h3,
.mk-proof-copy h2,
.mk-final-box h2 {
  margin-top: 18px;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -.04em;
  color: #0f172a;
}
.mk-value-card p,
.mk-process-card p,
.mk-cap-card p,
.mk-use-card p,
.mk-proof-copy p,
.mk-final-box p {
  margin-top: 12px;
  color: #64748b;
  line-height: 1.76;
}
.mk-process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mk-cap-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mk-cap-head span,
.mk-use-card span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3454d1;
  font-size: .76rem;
  font-weight: 800;
}
.mk-cap-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.mk-cap-card li {
  position: relative;
  padding-left: 18px;
  color: #334155;
  line-height: 1.65;
}
.mk-cap-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
}
.mk-proof-section {
  background: linear-gradient(180deg, #091120 0%, #0b1528 100%);
}
.mk-proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 24px;
  align-items: start;
}
.mk-proof-copy h2,
.mk-proof-copy p,
.mk-proof-copy .mk-section-label,
.mk-quote-card p,
.mk-quote-card strong,
.mk-quote-card span {
  color: #f8fafc;
}
.mk-proof-copy p {
  color: #a5b4cc;
}
.mk-proof-copy .mk-section-label {
  background: rgba(79, 70, 229, .12);
  border-color: rgba(129, 140, 248, .22);
}
.mk-proof-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.mk-proof-points div {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(15, 23, 42, .66);
  border: 1px solid rgba(71, 85, 105, .28);
}
.mk-proof-points strong {
  display: block;
  color: #f8fafc;
  margin-bottom: 6px;
}
.mk-proof-points span {
  display: block;
  color: #94a3b8;
  line-height: 1.7;
}
.mk-quote-stack {
  display: grid;
  gap: 18px;
}
.mk-quote-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(20, 28, 48, .9), rgba(15, 23, 42, .82));
  border: 1px solid rgba(71, 85, 105, .28);
}
.mk-quote-card p {
  font-size: 1.08rem;
  line-height: 1.8;
}
.mk-quote-card div {
  margin-top: 18px;
}
.mk-quote-card strong {
  display: block;
  font-size: .98rem;
}
.mk-quote-card span {
  display: block;
  color: #94a3b8;
  margin-top: 4px;
}
.mk-use-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mk-final-cta {
  padding: 0 0 clamp(88px, 9vw, 126px);
}
.mk-final-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 30px;
  background: linear-gradient(135deg, #0b1529 0%, #162548 64%, #294bb6 100%);
  box-shadow: 0 28px 60px rgba(15, 23, 42, .22);
}
.mk-final-box .mk-section-label {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.14);
  color: #c7d2fe;
}
.mk-final-box h2,
.mk-final-box p {
  color: #fff;
}
.mk-final-box p {
  color: rgba(226, 232, 240, .86);
  max-width: 58ch;
}
.mk-final-box .mk-btn-secondary {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}

@media (max-width: 1200px) {
  .mk-hero-grid,
  .mk-proof-layout,
  .mk-final-box {
    grid-template-columns: 1fr;
  }
  .mk-command-grid {
    grid-template-columns: 1fr;
  }
  .mk-score-panel {
    grid-row: auto;
  }
}

@media (max-width: 960px) {
  .mk-band-grid,
  .mk-value-grid,
  .mk-process-grid,
  .mk-cap-grid,
  .mk-use-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mk-hero {
    padding-top: 104px;
  }
}

@media (max-width: 768px) {
  .mk-home .section-wrap {
    width: min(100vw - 32px, 1460px);
  }
  .mk-hero-title {
    max-width: none;
    font-size: clamp(2.9rem, 14vw, 4.6rem);
  }
  .mk-band-grid,
  .mk-value-grid,
  .mk-process-grid,
  .mk-cap-grid,
  .mk-use-grid,
  .mk-mini-grid {
    grid-template-columns: 1fr;
  }
  .mk-hero-actions,
  .mk-final-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .mk-btn-primary,
  .mk-btn-secondary {
    width: 100%;
  }
  .mk-command {
    padding: 18px;
    border-radius: 24px;
  }
  .mk-command-top,
  .mk-stack-head,
  .mk-cap-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Marketing Subpages
   ============================================================ */
.mk-subpage {
  padding-bottom: 24px;
}
.mk-page-hero {
  padding: 122px 0 34px;
  position: relative;
  overflow: hidden;
}
.mk-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(99, 102, 241, .14), transparent 22%),
    radial-gradient(circle at 82% 12%, rgba(59, 130, 246, .12), transparent 20%),
    linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px);
  background-size: auto, auto, 34px 34px, 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.18) 72%, transparent);
  pointer-events: none;
}
.mk-page-hero-grid,
.mk-contact-grid,
.mk-consult-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
}
.mk-page-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  align-items: start;
}
.mk-page-copy {
  padding: 10px 0 18px;
}
.mk-page-copy h1 {
  margin-top: 18px;
  font-size: clamp(2.9rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.06em;
  color: #0f172a;
  max-width: 11.5ch;
}
.mk-page-copy p {
  margin-top: 20px;
  max-width: 60ch;
  color: #5f6f88;
  font-size: 1.08rem;
  line-height: 1.82;
}
.mk-page-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.mk-page-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(203, 213, 225, .75);
  color: #334155;
  font-size: .86rem;
  font-weight: 700;
}
.mk-side-panel,
.mk-contact-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(203, 213, 225, .74);
  box-shadow: 0 22px 48px rgba(15, 23, 42, .06);
}
.mk-side-panel {
  display: grid;
  gap: 14px;
}
.mk-side-stat {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(248,250,252,.9);
  border: 1px solid rgba(226,232,240,.9);
}
.mk-side-stat strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  margin-bottom: 6px;
}
.mk-side-stat span {
  display: block;
  color: #64748b;
  line-height: 1.72;
}
.mk-billing-toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(203,213,225,.75);
  box-shadow: 0 18px 40px rgba(15,23,42,.05);
}
.mk-billing-label {
  color: #64748b;
  font-size: .95rem;
  font-weight: 700;
}
.mk-billing-label.active {
  color: #0f172a;
}
.mk-billing-label b {
  color: #15803d;
  font-size: .8rem;
}
.mk-billing-switch {
  position: relative;
  width: 54px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
}
.mk-billing-switch.on {
  background: #6366f1;
}
.mk-billing-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}
.mk-billing-switch.on .mk-billing-thumb {
  transform: translateX(24px);
}
.mk-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mk-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border-radius: 28px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(203,213,225,.78);
  box-shadow: 0 22px 48px rgba(15,23,42,.06);
}
.mk-plan-featured {
  background: linear-gradient(180deg, #101a30 0%, #13213c 100%);
  border-color: rgba(96,165,250,.18);
  box-shadow: 0 28px 56px rgba(15,23,42,.16);
}
.mk-plan-featured .mk-plan-tier,
.mk-plan-featured h2,
.mk-plan-featured p,
.mk-plan-featured .mk-plan-sub,
.mk-plan-featured li,
.mk-plan-featured .mk-plan-price span,
.mk-plan-featured .mk-plan-price strong {
  color: #f8fafc;
}
.mk-plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(96,165,250,.14);
  color: #c7d2fe;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.mk-plan-tier {
  display: inline-block;
  color: #3454d1;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mk-plan-card h2 {
  margin-top: 14px;
  font-size: 1.65rem;
  line-height: 1.12;
  letter-spacing: -.04em;
  color: #0f172a;
}
.mk-plan-card p,
.mk-plan-sub,
.mk-plan-card li {
  color: #64748b;
  line-height: 1.72;
}
.mk-plan-price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 22px 0 8px;
}
.mk-plan-price strong {
  font-size: 3.2rem;
  line-height: .95;
  letter-spacing: -.06em;
  color: #0f172a;
}
.mk-plan-price span {
  padding-bottom: 7px;
  font-weight: 600;
}
.mk-plan-sub {
  font-size: .9rem;
  margin-bottom: 16px;
}
.mk-plan-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}
.mk-plan-card li {
  position: relative;
  padding-left: 18px;
}
.mk-plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
}
.mk-plan-card .mk-btn-primary,
.mk-plan-card .mk-btn-secondary {
  margin-top: auto;
}
.mk-contact-grid,
.mk-consult-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mk-contact-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.mk-contact-list span {
  position: relative;
  padding-left: 20px;
  color: #334155;
  line-height: 1.7;
}
.mk-contact-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e 0%, #3b82f6 100%);
}
.mk-form-submit {
  border: 0;
  cursor: pointer;
}
.success-msg {
  display: none;
  padding: 24px;
  border-radius: 22px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  margin-top: 12px;
}
.success-msg h3 {
  font-size: 1.2rem;
  color: #0f172a;
  margin-bottom: 10px;
}
.success-msg p {
  color: #166534;
  line-height: 1.7;
}
.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.7);
  margin-bottom: 14px;
}
.success-icon svg {
  width: 24px;
  height: 24px;
}
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .mk-page-hero-grid,
  .mk-plan-grid,
  .mk-contact-grid,
  .mk-consult-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .mk-page-copy h1 {
    max-width: none;
  }
}
.action-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); }
.action-rank   {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 800;
}
.action-body   { flex: 1; }
.action-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.action-title  { font-size: .9rem; font-weight: 700; color: var(--ink); }
.action-fix    { font-size: .83rem; color: var(--ink-2); line-height: 1.55; margin-bottom: 8px; }
.action-meta   { display: flex; gap: 16px; flex-wrap: wrap; font-size: .78rem; }
.action-impact { color: var(--green); font-weight: 500; }
.action-effort { color: var(--ink-3); }

/* ── Quick wins grid ──────────────────────────────────────── */
.wins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.win-card  {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 20px;
  box-shadow: var(--shadow);
}
.win-type  { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.win-title { font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.win-compare { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.win-before, .win-after { flex: 1; padding: 8px 10px; border-radius: var(--r-sm); font-size: .78rem; line-height: 1.5; }
.win-before span, .win-after span { display: block; font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
.win-before { background: var(--red-lt); border: 1px solid #FECACA; color: #991B1B; }
.win-before span { color: #DC2626; }
.win-after  { background: var(--green-lt); border: 1px solid #86EFAC; color: #166534; }
.win-after span { color: #16A34A; }
.win-arrow  { font-size: 1.2rem; color: var(--ink-3); margin-top: 22px; flex-shrink: 0; }
.win-body   { font-size: .82rem; color: var(--ink-2); line-height: 1.55; }

/* ── Segment cards ────────────────────────────────────────── */
.seg-card   { background: var(--surface-2); border-radius: var(--r-sm); padding: 16px 18px; border: 1px solid var(--border); }
.seg-device { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.seg-cr     { font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.seg-sub    { font-size: .77rem; color: var(--ink-3); margin-bottom: 10px; }

/* ── Trust recommendations ────────────────────────────────── */
.trust-rec       { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.trust-rec:last-child { border-bottom: none; }
.trust-rec-icon  { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-lt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-rec-icon svg { width: 16px; height: 16px; }
.trust-rec-title { font-size: .84rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.trust-rec-body  { font-size: .78rem; color: var(--ink-2); line-height: 1.5; }

/* ── Card sub-label ───────────────────────────────────────── */
.card-sub { font-size: .76rem; color: var(--ink-3); font-weight: 400; }

/* ============================================================
   Admin Dashboard
   ============================================================ */

/* ── Role badges ──────────────────────────────────────────── */
.admin-role-badge  { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; border: 1px solid; }
.admin-role-superadmin { background: #F5F3FF; color: #6D28D9; border-color: #DDD6FE; }
.admin-role-admin      { background: var(--blue-lt); color: var(--blue); border-color: #BFDBFE; }
.admin-role-user       { background: var(--surface-2); color: var(--ink-3); border-color: var(--border); }


/* ============================================================
   Quanrel — Unified Platform Stylesheet
   Shared entrypoint for app + marketing surfaces
   ============================================================ */

/* ── 1. Design Tokens ──────────────────────────────────────── */
:root {
  /* Brand */
  --blue:        #2563EB;
  --blue-d:      #1D4ED8;
  --blue-mid:    #3B82F6;
  --blue-lt:     #EFF6FF;
  --indigo:      #4F46E5;

  /* Text */
  --ink:         #111827;
  --ink-2:       #4B5563;
  --ink-3:       #6B7280;

  /* Surfaces */
  --bg:          #FFFFFF;
  --bg-2:        #F9FAFB;
  --surface:     #FFFFFF;
  --border:      #F3F4F6;
  --border-2:    #E5E7EB;

  /* Dark */
  --dark:        #111827;
  --dark-2:      #1F2937;
  --dark-3:      #374151;

  /* Status */
  --green:       #059669;
  --green-lt:    #ECFDF5;
  --amber:       #D97706;
  --amber-lt:    #FFFBEB;
  --red:         #DC2626;
  --red-lt:      #FEF2F2;

  /* Radii */
  --r:           12px;
  --r-sm:        8px;
  --r-lg:        16px;
  --r-xl:        24px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 6px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 10px 24px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.05);
  --shadow-lg:   0 20px 48px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.06);
  --shadow-blue: 0 8px 24px rgba(37,99,235,.28), 0 2px 6px rgba(37,99,235,.18);
  --shadow-card: 0 4px 16px rgba(15,23,42,.06), 0 1px 4px rgba(15,23,42,.04);

  /* Layout gutter */
  --gutter: clamp(20px, 5vw, 96px);
}

/* ── 2. Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
body.page-shell,
body.landing-shell {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
body.page-shell a,
body.landing-shell a { color: inherit; text-decoration: none; }
body.page-shell img,
body.landing-shell img { max-width: 100%; display: block; }
body.page-shell a:focus-visible,
body.page-shell button:focus-visible,
body.page-shell input:focus-visible,
body.page-shell select:focus-visible,
body.page-shell textarea:focus-visible,
body.landing-shell a:focus-visible,
body.landing-shell button:focus-visible,
body.landing-shell input:focus-visible,
body.landing-shell select:focus-visible,
body.landing-shell textarea:focus-visible {
  outline: 3px solid rgba(37,99,235,.22);
  outline-offset: 3px;
}

/* ── 3. Navigation ──────────────────────────────────────────
   Fixed transparent → frosted dark on scroll
   ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(5,10,20,.985);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(129,140,248,.18);
  box-shadow: 0 16px 38px rgba(2,6,23,.42);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled,
body.page-shell .nav {
  background: rgba(5,10,20,.995);
  border-bottom-color: rgba(129,140,248,.22);
  box-shadow: 0 18px 42px rgba(2,6,23,.48);
}
.nav-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2.5vw;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.08rem;
  color: #ffffff;
  letter-spacing: -.03em;
  flex-shrink: 0;
  margin-right: 28px;
  transition: opacity .15s ease;
}
.nav-logo:hover { opacity: .86; }
.nav-logo-mark,
.nav-logo-icon {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #818CF8 0%, #4F46E5 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(129,140,248,.34), 0 10px 24px rgba(99,102,241,.34);
}
.nav-logo-mark svg,
.nav-logo-icon svg { width: 16px; height: 16px; fill: #fff; stroke: none; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: .9rem;
  font-weight: 500;
  color: #eef2ff;
  padding: 0 14px;
  border-radius: 10px;
  transition: color .15s ease, background .15s ease;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.nav-link:hover { color: #ffffff; background: rgba(255,255,255,.1); }
.nav-link.active { color: #ffffff; font-weight: 700; background: rgba(99,102,241,.28); }

/* Nav CTAs */
.nav-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.btn-nav-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-size: .9rem;
  font-weight: 600;
  color: #f8fafc;
  padding: 0 14px;
  border-radius: 10px;
  transition: color .15s ease, background .15s ease;
}
.btn-nav-ghost:hover { color: #ffffff; background: rgba(255,255,255,.1); }
.btn-nav-primary {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  min-height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 0 0 1px rgba(99,102,241,.42), 0 10px 24px rgba(99,102,241,.28);
  transition: opacity .15s ease, transform .12s ease, box-shadow .15s ease;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.btn-nav-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(99,102,241,.54), 0 14px 28px rgba(99,102,241,.34);
}
.btn-nav-primary svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 2.5; transition: transform .15s ease; }
.btn-nav-primary:hover svg { transform: translateX(2px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: #f8fafc; margin-left: auto;
  border-radius: 10px; transition: background .15s ease, color .15s ease;
}
.nav-hamburger:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-hamburger svg { width: 22px; height: 22px; }

/* Mobile drawer */
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 10px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(7,11,22,.98);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { min-height: 44px; padding: 0 12px; font-size: .92rem; color: #eef2ff; }
.nav-mobile .nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-mobile-divider { height: 1px; background: rgba(255,255,255,.08); margin: 6px 0; }
.nav-mobile .btn-nav-primary { width: 100%; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 12px; margin-top: 4px; }

body.mk-shell .nav .nav-logo,
body.mk-shell .nav .nav-logo span,
body.mk-shell .nav .nav-link,
body.mk-shell .nav .btn-nav-ghost,
body.mk-shell .nav .nav-hamburger {
  color: #f8fafc !important;
  opacity: 1 !important;
}

body.mk-shell .nav .nav-link.active {
  color: #ffffff !important;
  background: rgba(99,102,241,.28) !important;
}

body.mk-shell .nav .nav-link:hover,
body.mk-shell .nav .btn-nav-ghost:hover,
body.mk-shell .nav .nav-hamburger:hover {
  color: #ffffff !important;
}

body.mk-shell .nav .nav-mobile .nav-link {
  color: #f8fafc !important;
}

body.mk-shell {
  color: #0f172a;
}

body.mk-shell .mk-hero-sub,
body.mk-shell .mk-proof-line span,
body.mk-shell .mk-priority-card p,
body.mk-shell .mk-band-grid span,
body.mk-shell .mk-section-head p,
body.mk-shell .mk-value-card p,
body.mk-shell .mk-process-card p,
body.mk-shell .mk-cap-card p,
body.mk-shell .mk-use-card p,
body.mk-shell .mk-page-copy p,
body.mk-shell .mk-page-proof span,
body.mk-shell .mk-side-stat span,
body.mk-shell .mk-plan-card p,
body.mk-shell .mk-plan-sub,
body.mk-shell .mk-plan-price span,
body.mk-shell .mk-plan-card li,
body.mk-shell .mk-contact-list span,
body.mk-shell .mk-contact-card p,
body.mk-shell .form-note,
body.mk-shell .success-msg p {
  color: #334155;
}

body.mk-shell .mk-kicker,
body.mk-shell .mk-section-label,
body.mk-shell .mk-cap-head span,
body.mk-shell .mk-use-card span,
body.mk-shell .mk-plan-tier,
body.mk-shell .mk-billing-label {
  color: #1d4ed8;
}

body.mk-shell .mk-band-grid > div,
body.mk-shell .mk-value-card,
body.mk-shell .mk-process-card,
body.mk-shell .mk-cap-card,
body.mk-shell .mk-use-card,
body.mk-shell .mk-side-panel,
body.mk-shell .mk-contact-card,
body.mk-shell .mk-plan-card,
body.mk-shell .mk-billing-toggle,
body.mk-shell .mk-page-proof span {
  background: rgba(255,255,255,.92);
  border-color: rgba(148,163,184,.22);
}

body.mk-shell .mk-proof-section .mk-proof-copy p,
body.mk-shell .mk-proof-section .mk-proof-points span,
body.mk-shell .mk-proof-section .mk-quote-card span,
body.mk-shell .mk-proof-section .mk-quote-card p {
  color: #dbe7f7;
}

body.mk-shell .mk-command-top p,
body.mk-shell .mk-score-ring-inner span,
body.mk-shell .mk-queue-item span,
body.mk-shell .mk-mini-card span {
  color: #cbd5e1;
}

body.mk-shell .mk-stack-card,
body.mk-shell .mk-score-panel,
body.mk-shell .mk-quote-card,
body.mk-shell .mk-proof-points div {
  border-color: rgba(148,163,184,.2);
}

body.mk-shell .mk-final-box p {
  color: #e2e8f0;
}

body.mk-shell .footer-bottom-copy,
body.mk-shell .footer-bottom-links a {
  color: #94a3b8;
}

body.mk-shell .footer-bottom-links a:hover {
  color: #e2e8f0;
}

body.mk-shell .mk-home,
body.mk-shell .mk-subpage {
  color: #0f172a;
}

body.mk-shell .mk-home h1,
body.mk-shell .mk-home h2,
body.mk-shell .mk-home h3,
body.mk-shell .mk-home strong,
body.mk-shell .mk-subpage h1,
body.mk-shell .mk-subpage h2,
body.mk-shell .mk-subpage h3,
body.mk-shell .mk-subpage strong {
  color: #0f172a;
}

body.mk-shell .mk-home p,
body.mk-shell .mk-home li,
body.mk-shell .mk-home span,
body.mk-shell .mk-subpage p,
body.mk-shell .mk-subpage li,
body.mk-shell .mk-subpage span,
body.mk-shell .mk-subpage label,
body.mk-shell .mk-subpage .form-note,
body.mk-shell .mk-subpage .fg label,
body.mk-shell .mk-subpage .success-msg p {
  color: #334155;
}

body.mk-shell .mk-home .mk-kicker,
body.mk-shell .mk-home .mk-section-label,
body.mk-shell .mk-subpage .mk-section-label,
body.mk-shell .mk-subpage .mk-plan-tier,
body.mk-shell .mk-subpage .mk-billing-label,
body.mk-shell .mk-home .mk-cap-head span,
body.mk-shell .mk-home .mk-use-card span,
body.mk-shell .mk-subpage .mk-use-card span {
  color: #1d4ed8;
}

body.mk-shell .mk-home .mk-page-proof span,
body.mk-shell .mk-subpage .mk-page-proof span,
body.mk-shell .mk-home .mk-band-grid > div,
body.mk-shell .mk-home .mk-value-card,
body.mk-shell .mk-home .mk-process-card,
body.mk-shell .mk-home .mk-cap-card,
body.mk-shell .mk-home .mk-use-card,
body.mk-shell .mk-subpage .mk-side-panel,
body.mk-shell .mk-subpage .mk-contact-card,
body.mk-shell .mk-subpage .mk-plan-card,
body.mk-shell .mk-subpage .mk-use-card,
body.mk-shell .mk-subpage .mk-value-card,
body.mk-shell .mk-subpage .mk-billing-toggle {
  background: rgba(255,255,255,.94);
  border-color: rgba(148,163,184,.24);
}

body.mk-shell .mk-home .mk-command,
body.mk-shell .mk-home .mk-score-panel,
body.mk-shell .mk-home .mk-stack-card,
body.mk-shell .mk-home .mk-quote-card,
body.mk-shell .mk-home .mk-proof-points div,
body.mk-shell .mk-subpage .mk-quote-card,
body.mk-shell .mk-final-box,
body.mk-shell .footer {
  color: #f8fafc;
}

body.mk-shell .mk-home .mk-command h1,
body.mk-shell .mk-home .mk-command h2,
body.mk-shell .mk-home .mk-command h3,
body.mk-shell .mk-home .mk-command strong,
body.mk-shell .mk-home .mk-score-panel strong,
body.mk-shell .mk-home .mk-stack-card strong,
body.mk-shell .mk-home .mk-proof-section h2,
body.mk-shell .mk-home .mk-proof-section h3,
body.mk-shell .mk-home .mk-proof-section strong,
body.mk-shell .mk-subpage .mk-quote-card strong,
body.mk-shell .mk-final-box h2,
body.mk-shell .footer h4,
body.mk-shell .footer strong {
  color: #f8fafc;
}

body.mk-shell .mk-home .mk-command p,
body.mk-shell .mk-home .mk-command span,
body.mk-shell .mk-home .mk-command li,
body.mk-shell .mk-home .mk-score-panel span,
body.mk-shell .mk-home .mk-stack-card span,
body.mk-shell .mk-home .mk-stack-card p,
body.mk-shell .mk-home .mk-proof-section p,
body.mk-shell .mk-home .mk-proof-section span,
body.mk-shell .mk-subpage .mk-quote-card p,
body.mk-shell .mk-subpage .mk-quote-card span,
body.mk-shell .mk-final-box p,
body.mk-shell .footer p,
body.mk-shell .footer a,
body.mk-shell .footer span {
  color: #dbe7f7;
}

body.mk-shell .mk-home .mk-chip,
body.mk-shell .mk-home .mk-chip-live,
body.mk-shell .mk-home .mk-pill,
body.mk-shell .mk-home .mk-queue-item b,
body.mk-shell .mk-home .mk-signal-item b {
  color: #eff6ff;
}

body.mk-shell .mk-home .mk-pill {
  background: rgba(255,255,255,.12);
  border-color: rgba(148,163,184,.28);
}

body.mk-shell .mk-subpage .mk-plan-featured h2,
body.mk-shell .mk-subpage .mk-plan-featured h3,
body.mk-shell .mk-subpage .mk-plan-featured p,
body.mk-shell .mk-subpage .mk-plan-featured li,
body.mk-shell .mk-subpage .mk-plan-featured span,
body.mk-shell .mk-subpage .mk-plan-featured strong {
  color: #f8fafc;
}

body.mk-shell .mk-subpage .mk-plan-featured .mk-plan-badge {
  color: #dbeafe;
}

/* ── Marketing light theme override ─────────────────────────── */
body.mk-shell {
  background:
    radial-gradient(circle at 14% 14%, rgba(129, 140, 248, .12), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(96, 165, 250, .1), transparent 24%),
    linear-gradient(180deg, #f7faff 0%, #eef4ff 36%, #ffffff 100%);
}

body.mk-shell .nav,
body.mk-shell .nav.scrolled,
body.mk-shell .nav-light,
body.mk-shell .nav-home {
  background: rgba(255,255,255,.94) !important;
  border-bottom: 1px solid rgba(203,213,225,.9) !important;
  box-shadow: 0 12px 34px rgba(15,23,42,.08) !important;
}

body.mk-shell .nav .nav-logo,
body.mk-shell .nav .nav-logo span,
body.mk-shell .nav .nav-link,
body.mk-shell .nav .btn-nav-ghost,
body.mk-shell .nav .nav-hamburger,
body.mk-shell .nav .nav-mobile .nav-link {
  color: #0f172a !important;
}

body.mk-shell .nav .nav-link.active {
  color: #1d4ed8 !important;
  background: rgba(37,99,235,.1) !important;
}

body.mk-shell .nav .nav-link:hover,
body.mk-shell .nav .btn-nav-ghost:hover,
body.mk-shell .nav .nav-hamburger:hover {
  color: #0f172a !important;
  background: rgba(37,99,235,.08) !important;
}

body.mk-shell .nav-mobile {
  background: rgba(255,255,255,.98) !important;
  border-top: 1px solid rgba(203,213,225,.9) !important;
}

body.mk-shell .nav-mobile-divider {
  background: rgba(203,213,225,.85) !important;
}

body.mk-shell .mk-command,
body.mk-shell .mk-score-panel,
body.mk-shell .mk-stack-card,
body.mk-shell .mk-proof-section,
body.mk-shell .mk-quote-card,
body.mk-shell .mk-proof-points div,
body.mk-shell .mk-final-box,
body.mk-shell .footer {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(203,213,225,.9) !important;
  box-shadow: 0 22px 48px rgba(15,23,42,.06) !important;
}

body.mk-shell .mk-command::before,
body.mk-shell .mk-hero::before,
body.mk-shell .mk-page-hero::before,
body.mk-shell .footer::before {
  opacity: .35;
}

body.mk-shell .mk-command-label,
body.mk-shell .mk-command h1,
body.mk-shell .mk-command h2,
body.mk-shell .mk-command h3,
body.mk-shell .mk-score-panel strong,
body.mk-shell .mk-stack-card strong,
body.mk-shell .mk-proof-section h2,
body.mk-shell .mk-proof-section h3,
body.mk-shell .mk-proof-section strong,
body.mk-shell .mk-quote-card strong,
body.mk-shell .mk-final-box h2,
body.mk-shell .footer-brand-logo,
body.mk-shell .footer-col h4 {
  color: #0f172a !important;
}

body.mk-shell .mk-command p,
body.mk-shell .mk-command span,
body.mk-shell .mk-command li,
body.mk-shell .mk-score-panel span,
body.mk-shell .mk-stack-card span,
body.mk-shell .mk-stack-card p,
body.mk-shell .mk-proof-section p,
body.mk-shell .mk-proof-section span,
body.mk-shell .mk-quote-card p,
body.mk-shell .mk-quote-card span,
body.mk-shell .mk-final-box p,
body.mk-shell .footer p,
body.mk-shell .footer a,
body.mk-shell .footer span,
body.mk-shell .footer-bottom-copy,
body.mk-shell .footer-bottom-links a {
  color: #334155 !important;
}

body.mk-shell .mk-score-ring {
  background: conic-gradient(#60a5fa 0 295deg, rgba(148,163,184,.22) 295deg 360deg) !important;
}

body.mk-shell .mk-score-ring-inner {
  background: #ffffff !important;
  border: 1px solid rgba(203,213,225,.85);
}

body.mk-shell .mk-mini-card,
body.mk-shell .mk-stack-card,
body.mk-shell .mk-quote-card,
body.mk-shell .mk-proof-points div {
  background: #f8fbff !important;
}

body.mk-shell .mk-chip,
body.mk-shell .mk-chip-live,
body.mk-shell .mk-queue-item b,
body.mk-shell .mk-signal-item b {
  background: rgba(37,99,235,.1) !important;
  color: #1d4ed8 !important;
  border-color: rgba(37,99,235,.14) !important;
}

body.mk-shell .mk-pill {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: rgba(203,213,225,.85) !important;
}

body.mk-shell .mk-final-box .mk-section-label,
body.mk-shell .mk-proof-copy .mk-section-label {
  background: rgba(37,99,235,.06) !important;
  color: #1d4ed8 !important;
  border-color: rgba(37,99,235,.14) !important;
}

body.mk-shell .mk-final-box .mk-btn-secondary {
  color: #0f172a !important;
  background: rgba(255,255,255,.92) !important;
  border-color: rgba(148,163,184,.26) !important;
}

body.mk-shell .footer-brand-logo-icon {
  box-shadow: 0 10px 24px rgba(99,102,241,.18);
}

/* ── 4. Section Primitives ──────────────────────────────────── */
body.page-shell .section-wrap,
body.landing-shell .section-wrap {
  width: min(92vw, 1440px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
}
body.page-shell .section-eyebrow,
body.page-shell .section-label,
body.landing-shell .section-eyebrow,
body.landing-shell .section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 16px;
}
body.page-shell .section-title,
body.landing-shell .section-title {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -.04em; color: var(--ink);
}
body.page-shell .section-title em,
body.landing-shell .section-title em { font-style: normal; color: var(--blue); }
body.page-shell .section-sub,
body.landing-shell .section-sub {
  font-size: 1.0625rem; color: var(--ink-2);
  line-height: 1.7; max-width: 720px; margin-top: 14px;
}

/* ── 5. Buttons ─────────────────────────────────────────────── */
body.page-shell .btn-primary,
body.landing-shell .btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #6366F1 0%, #2563EB 100%);
  color: #fff;
  font-weight: 700; font-size: .9375rem;
  padding: 13px 26px; border-radius: 10px;
  box-shadow: 0 8px 20px rgba(99,102,241,.24);
  transition: background .18s, transform .12s, box-shadow .18s;
  white-space: nowrap;
}
body.page-shell .btn-primary:hover,
body.landing-shell .btn-primary:hover {
  background: linear-gradient(135deg, #5457E8 0%, #1D4ED8 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(99,102,241,.32);
}
body.page-shell .btn-primary svg,
body.landing-shell .btn-primary svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform .15s; }
body.page-shell .btn-primary:hover svg,
body.landing-shell .btn-primary:hover svg { transform: translateX(2px); }

body.page-shell .btn-secondary,
body.landing-shell .btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.9); color: var(--ink);
  font-weight: 600; font-size: .9375rem;
  padding: 13px 26px; border-radius: 10px;
  border: 1px solid rgba(148,163,184,.3);
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
  transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
}
body.page-shell .btn-secondary:hover,
body.landing-shell .btn-secondary:hover {
  border-color: rgba(99,102,241,.3);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,23,42,.10);
}
body.page-shell .btn-secondary svg,
body.landing-shell .btn-secondary svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ── 6. Footer ──────────────────────────────────────────────── */
.footer {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(99,102,241,.10) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(59,130,246,.07) 0%, transparent 45%),
    linear-gradient(180deg, #070C18 0%, #0A1020 100%);
  color: #94A3B8;
  padding: 88px 0 0;
  border-top: 1px solid rgba(99,102,241,.12);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(99,102,241,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 80%);
  pointer-events: none;
}
.footer-inner {
  width: 100%; max-width: 100%; margin: 0 auto;
  padding: 0 var(--gutter) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 40px;
  position: relative; z-index: 1;
}
.footer-brand { min-width: 0; }
.footer-brand-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem;
  color: #fff; letter-spacing: -.03em;
  margin-bottom: 16px;
}
.footer-brand-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #6366F1, #2563EB);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(99,102,241,.30);
}
.footer-brand-logo-icon svg { width: 15px; height: 15px; fill: #fff; stroke: none; }
.footer-brand-desc {
  font-size: .92rem; line-height: 1.82; color: #64748B; margin-bottom: 28px;
}
.footer-cta-list { display: flex; flex-direction: column; gap: 10px; }
.footer-action {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px;
  border: 1px solid rgba(99,102,241,.22);
  background: rgba(99,102,241,.07);
  color: #A5B4FC; font-size: .88rem; font-weight: 600;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
  width: fit-content;
}
.footer-action:hover {
  background: rgba(99,102,241,.14);
  border-color: rgba(99,102,241,.40);
  color: #C7D2FE; transform: translateY(-1px);
}
.footer-cols { display: contents; }
.footer-col h4 {
  font-size: .72rem; font-weight: 700; letter-spacing: .10em;
  text-transform: uppercase; color: #fff; margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: .9rem; color: #64748B;
  line-height: 1; margin-bottom: 14px;
  transition: color .15s, padding-left .15s;
}
.footer-col a:hover { color: #fff; padding-left: 6px; }
.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 22px 0 28px; position: relative; z-index: 1;
}
.footer-bottom-inner {
  width: 100%; max-width: 100%; margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-bottom-copy { font-size: .8rem; color: #334155; }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: .8rem; color: #334155; transition: color .15s; }
.footer-bottom-links a:hover { color: #94A3B8; }

/* ── 7. Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── 8. Shared Page Utilities ───────────────────────────────── */
/* Light-bg inner pages (pricing, about, contact) */
.page-shell {
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.08), transparent 30%),
    linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 20%, #F8FAFC 100%);
}

/* Shared section padding wrapper used on inner pages */
.section-block { padding: 76px 24px; }

/* Hero pill badge (pricing / about / contact) */
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(37,99,235,.14);
  background: rgba(255,255,255,.88);
  color: #1D4ED8; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px;
}
.hero-pill::before {
  content: ''; width: 8px; height: 8px; border-radius: 999px;
  background: #22C55E; box-shadow: 0 0 0 8px rgba(34,197,94,.12);
}

/* Shared card surface (about + contact) */
.surface-card {
  border-radius: 26px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 40px rgba(15,23,42,.05);
  padding: 28px;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s, border-color .2s;
}
.surface-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(15,23,42,.10);
  border-color: rgba(99,102,241,.18);
}
.surface-card h2 {
  font-size: 1.4rem; line-height: 1.15; letter-spacing: -.04em;
  color: #0F172A; margin-bottom: 12px;
}
.surface-card h3 {
  font-size: 1.18rem; line-height: 1.25; letter-spacing: -.03em;
  color: #0F172A; margin-bottom: 12px;
}
.surface-card p { color: #475569; font-size: .95rem; line-height: 1.8; }

/* Accent panel (gradient dark, about + contact) */
.accent-panel {
  border-radius: 28px; padding: 32px;
  background: linear-gradient(135deg, #0F172A 0%, #1D4ED8 72%, #0EA5E9 100%);
  color: #F8FAFC; box-shadow: 0 28px 60px rgba(15,23,42,.16);
}
.accent-panel h3 { font-size: 1.8rem; line-height: 1.08; letter-spacing: -.04em; margin-bottom: 14px; }
.accent-panel p  { color: rgba(255,255,255,.82); line-height: 1.8; }

/* Kill all inner max-width boxes */
.section-wrap .reveal,
.section-wrap > div,
.pricing-hero-inner,
.about-hero-inner,
.contact-hero-inner,
.pricing-grid,
.contact-layout,
.section-block > .section-wrap > * {
  max-width: none !important;
}
.pricing-hero-inner,
.about-hero-inner,
.contact-hero-inner { width: 100%; }

/* ── 9. Home Page ───────────────────────────────────────────── */
body.landing-shell { background: #050A14; }
.hero-offset { padding-top: 74px; }

.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  background: linear-gradient(175deg, #060B18 0%, #080E1C 60%, #0A1020 100%);
  padding: clamp(80px,12vh,140px) 0 clamp(80px,10vh,120px);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(99,102,241,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.065) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; top: -10%; left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 160vw); height: 700px;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(99,102,241,.20) 0%, transparent 52%),
    radial-gradient(ellipse at 75% 50%, rgba(37,99,235,.14) 0%, transparent 52%),
    radial-gradient(ellipse at 50% 0%,  rgba(139,92,246,.10) 0%, transparent 45%);
  filter: blur(52px); pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(40px,5vw,80px); align-items: center;
}

/* Hero copy */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid rgba(99,102,241,.28); border-radius: 999px;
  background: rgba(99,102,241,.10); color: #A5B4FC;
  font-size: .73rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22C55E; box-shadow: 0 0 0 5px rgba(34,197,94,.18); flex-shrink: 0;
}
.hero-h1 {
  font-size: clamp(3.2rem, 5.8vw, 5.8rem);
  line-height: .90; letter-spacing: -.07em;
  color: #F1F5F9; font-weight: 800; margin-bottom: 28px;
}
.hero-h1-grad {
  display: block;
  background: linear-gradient(110deg, #818CF8 0%, #60A5FA 45%, #38BDF8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 6px;
}
.hero-sub { font-size: 1.08rem; line-height: 1.82; color: #64748B; margin-bottom: 36px; max-width: 50ch; }
.hero-btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-size: 1rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  box-shadow: 0 0 0 1px rgba(99,102,241,.5), 0 16px 36px rgba(99,102,241,.30);
  letter-spacing: -.01em; transition: transform .14s, box-shadow .14s, opacity .14s;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(99,102,241,.6), 0 22px 44px rgba(99,102,241,.40);
}
.btn-hero-primary svg { stroke: #fff; fill: none; stroke-width: 2.5; width: 14px; height: 14px; transition: transform .14s; }
.btn-hero-primary:hover svg { transform: translateX(2px); }

.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px;
  font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05); backdrop-filter: blur(10px);
  letter-spacing: -.01em; transition: background .15s, border-color .15s, color .15s, transform .14s;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.28);
  color: #fff; transform: translateY(-2px);
}

/* Trust pills */
.hero-trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(255,255,255,.04); color: #64748B;
  font-size: .8rem; font-weight: 500;
}
.trust-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; flex-shrink: 0; }

/* Hero dashboard card */
.hero-visual { position: relative; }
.hero-card {
  position: relative; border-radius: 24px;
  background: linear-gradient(160deg, #0D1628 0%, #111827 100%);
  border: 1px solid rgba(99,102,241,.16);
  box-shadow: 0 0 0 1px rgba(99,102,241,.08) inset, 0 48px 96px rgba(0,0,0,.50), 0 0 80px rgba(99,102,241,.10);
  overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 90% 0%, rgba(99,102,241,.18), transparent 40%);
  pointer-events: none;
}
.hcard-top {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.hcard-dots { display: flex; gap: 6px; }
.hcard-dot { width: 10px; height: 10px; border-radius: 50%; }
.hcard-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #64748B; }
.hcard-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.24);
  color: #4ADE80; font-size: .72rem; font-weight: 700;
}
.hcard-pulse { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.24); }
.hcard-body {
  position: relative; z-index: 1; padding: 20px;
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 14px;
}

/* Priority card (light inside dark) */
.pcard { border-radius: 18px; background: linear-gradient(145deg, #fff 0%, #F0F6FF 100%); padding: 18px; color: #0F172A; }
.pcard-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #DBEAFE, #EEF2FF); border: 1px solid rgba(99,102,241,.2);
  color: #4338CA; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.pcard-title { margin-top: 12px; font-size: 1.1rem; font-weight: 700; line-height: 1.25; letter-spacing: -.03em; color: #0F172A; }
.pcard-copy  { margin-top: 8px; font-size: .84rem; line-height: 1.65; color: #475569; }
.pcard-tags  { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ptag { display: inline-flex; padding: 5px 9px; border-radius: 999px; border: 1px solid #DBEAFE; background: #fff; color: #1E293B; font-size: .7rem; font-weight: 700; }

/* Queue card */
.qcard { border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: 16px; }
.qcard-head { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #6366F1; margin-bottom: 12px; }
.qitem { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); margin-bottom: 8px; }
.qitem:last-child { margin-bottom: 0; }
.qitem-title { font-size: .8rem; font-weight: 600; color: #CBD5E1; line-height: 1.35; }
.qitem-sub   { font-size: .72rem; color: #475569; margin-top: 3px; line-height: 1.4; }
.qscore { flex-shrink: 0; padding: 4px 8px; border-radius: 8px; font-size: .7rem; font-weight: 800; }

/* Score ring */
.scard { border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.scard-head { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #6366F1; }
.sring {
  display: grid; place-items: center; width: 100px; height: 100px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at center, #0D1628 0 50%, transparent 51%), conic-gradient(#818CF8 0 232deg, rgba(148,163,184,.18) 232deg 360deg);
  box-shadow: 0 0 20px rgba(99,102,241,.20);
}
.sring-inner { text-align: center; color: #F1F5F9; }
.sring-val   { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.sring-lbl   { font-size: .66rem; color: #64748B; }
.smeta-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.smeta { padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05); }
.smeta strong { display: block; font-size: .88rem; color: #F1F5F9; font-weight: 800; margin-bottom: 2px; }
.smeta span   { font-size: .7rem; color: #475569; line-height: 1.4; }

/* Floating signal chips */
.hero-floaters { position: absolute; bottom: 18px; left: -30px; display: grid; gap: 9px; width: min(220px,48%); z-index: 2; }
.floater {
  display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: 14px;
  border: 1px solid rgba(148,163,184,.16); background: rgba(13,22,40,.88); backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(0,0,0,.24); color: #94A3B8; font-size: .78rem; line-height: 1.4;
}
.floater-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Stats band */
.stats-band {
  background: #060B14;
  border-top: 1px solid rgba(99,102,241,.10);
  border-bottom: 1px solid rgba(99,102,241,.08);
  padding: 36px 0;
}
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.stat-item { display: flex; flex-direction: column; gap: 6px; padding: 0 0 0 24px; border-left: 2px solid rgba(99,102,241,.24); }
.stat-item:first-child { border-left: none; padding-left: 0; }
.stat-val   { font-size: clamp(1.9rem,3vw,2.6rem); font-weight: 800; letter-spacing: -.05em; color: #F1F5F9; line-height: 1; }
.stat-grad  { background: linear-gradient(110deg,#818CF8,#38BDF8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: .85rem; color: #475569; line-height: 1.5; }

/* Platform section */
.plat-section { background: #fff; padding: clamp(72px,8vw,110px) 0; }
.sect-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: #6366F1; margin-bottom: 18px;
}
.sect-eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 999px; background: linear-gradient(90deg,#6366F1,#38BDF8); }
.sect-h2 { font-size: clamp(2rem,3.4vw,3.1rem); font-weight: 800; line-height: 1.06; letter-spacing: -.055em; color: #0F172A; margin-bottom: 16px; }
.sect-h2 em { font-style: normal; background: linear-gradient(110deg,#6366F1,#3B82F6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sect-sub    { font-size: 1.05rem; line-height: 1.82; color: #64748B; max-width: 58ch; }
.sect-header { margin-bottom: clamp(36px,4vw,56px); }

.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.feat-card {
  border-radius: 22px; border: 1px solid rgba(148,163,184,.16); background: #fff;
  padding: 28px; box-shadow: 0 2px 10px rgba(15,23,42,.05);
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s, border-color .22s;
}
.feat-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(15,23,42,.10); border-color: rgba(99,102,241,.20); }
.feat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.feat-card h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.025em; color: #0F172A; margin-bottom: 10px; line-height: 1.25; }
.feat-card p  { font-size: .92rem; line-height: 1.78; color: #64748B; }

/* How it works */
.hiw-section { background: linear-gradient(180deg,#F8FBFF 0%,#fff 100%); padding: clamp(72px,8vw,110px) 0; }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px;
  margin-top: clamp(36px,4vw,56px); position: relative;
}
.steps-grid::before {
  content: ''; position: absolute; top: 44px;
  left: calc(16.6% + 24px); right: calc(16.6% + 24px);
  height: 1px; background: linear-gradient(90deg,rgba(99,102,241,.3),rgba(59,130,246,.3));
}
.step-card {
  border-radius: 22px; border: 1px solid rgba(148,163,184,.14); background: #fff;
  padding: 28px 24px 24px; box-shadow: 0 2px 10px rgba(15,23,42,.04);
  position: relative; padding-top: 80px; transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,.09); }
.step-num {
  position: absolute; top: 24px; left: 24px;
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg,#818CF8,#4F46E5); color: #fff;
  font-size: 1rem; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(99,102,241,.30);
}
.step-card h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.025em; color: #0F172A; margin-bottom: 10px; }
.step-card p  { font-size: .92rem; line-height: 1.78; color: #64748B; }

/* Capabilities */
.cap-section { background: #fff; padding: clamp(72px,8vw,110px) 0; }
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(36px,4vw,56px); }
.cap-card {
  border-radius: 22px; border: 1px solid rgba(148,163,184,.14);
  background: linear-gradient(145deg,#fff 0%,#F8FBFF 100%); padding: 28px;
  box-shadow: 0 2px 10px rgba(15,23,42,.04);
  display: grid; grid-template-columns: 1fr minmax(0,180px); gap: 24px; align-items: start;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.cap-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,.09); border-color: rgba(99,102,241,.18); }
.cap-card h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.025em; color: #0F172A; margin-bottom: 8px; }
.cap-card p  { font-size: .9rem; line-height: 1.75; color: #64748B; }
.cap-points  { margin-top: 16px; display: grid; gap: 9px; }
.cap-point   { display: flex; gap: 9px; align-items: flex-start; font-size: .88rem; color: #64748B; line-height: 1.6; }
.cap-point-icon {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg,#DBEAFE,#EEF2FF); color: #4338CA;
  font-size: .7rem; font-weight: 800; display: inline-grid; place-items: center; flex-shrink: 0; margin-top: 2px;
}
.cap-mini { border-radius: 16px; border: 1px solid rgba(148,163,184,.16); background: linear-gradient(145deg,#F8FAFC,#EFF6FF); padding: 16px; }
.cap-mini-head { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #6366F1; margin-bottom: 12px; }
.cap-bars       { display: grid; gap: 9px; }
.cap-bar-wrap   { display: block; height: 9px; border-radius: 999px; background: rgba(99,102,241,.12); overflow: hidden; }
.cap-bar-fill   { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#6366F1,#38BDF8); }

/* Use cases */
.uc-section { background: linear-gradient(180deg,#F4F8FF 0%,#fff 100%); padding: clamp(72px,8vw,110px) 0; }
.uc-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: clamp(36px,4vw,56px); }
.uc-card {
  border-radius: 22px; border: 1px solid rgba(148,163,184,.14); background: #fff;
  padding: 28px; box-shadow: 0 2px 10px rgba(15,23,42,.04);
  min-height: 300px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.uc-card::after {
  content: ''; position: absolute; top: -50px; right: -50px; width: 160px; height: 160px;
  border-radius: 50%; background: radial-gradient(circle,rgba(99,102,241,.06),transparent 70%);
}
.uc-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(15,23,42,.10); border-color: rgba(99,102,241,.18); }
.uc-role {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  background: linear-gradient(135deg,#EEF2FF,#EFF6FF); border: 1px solid rgba(99,102,241,.18);
  color: #4F46E5; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 18px; width: fit-content;
}
.uc-card h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.025em; color: #0F172A; margin-bottom: 10px; line-height: 1.25; }
.uc-card p  { font-size: .9rem; line-height: 1.75; color: #64748B; flex: 1; }
.uc-list    { display: grid; gap: 9px; margin-top: 20px; }
.uc-item    { display: flex; align-items: flex-start; gap: 8px; font-size: .86rem; color: #64748B; line-height: 1.6; }
.uc-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #6366F1; margin-top: 8px; flex-shrink: 0; }

/* Proof / social proof section */
.proof-section {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(99,102,241,.14), transparent 40%),
    radial-gradient(ellipse at 88% 80%, rgba(37,99,235,.09), transparent 42%),
    linear-gradient(180deg, #060B14 0%, #080E1C 100%);
  padding: clamp(72px,8vw,110px) 0; position: relative; overflow: hidden;
}
.proof-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(99,102,241,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.04) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.25) 20%, rgba(0,0,0,.25) 80%, transparent);
  pointer-events: none;
}
.proof-section .sect-eyebrow { color: #818CF8; }
.proof-section .sect-eyebrow::before { background: linear-gradient(90deg,#818CF8,#60A5FA); }
.proof-section .sect-h2  { color: #F1F5F9; }
.proof-section .sect-sub { color: #475569; }
.proof-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: clamp(36px,4vw,56px); }
.pstrip-card {
  padding: 22px 20px; border-radius: 20px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(148,163,184,.10);
  backdrop-filter: blur(10px); transition: border-color .2s, background .2s;
}
.pstrip-card:hover { border-color: rgba(99,102,241,.26); background: rgba(99,102,241,.07); }
.pstrip-val  { display: block; font-size: 1.65rem; font-weight: 800; letter-spacing: -.04em; color: #F1F5F9; margin-bottom: 8px; }
.pstrip-desc { font-size: .84rem; color: #475569; line-height: 1.65; }
.quotes-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.quote-card {
  border-radius: 22px; padding: 28px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(148,163,184,.10);
  backdrop-filter: blur(10px); transition: border-color .2s, transform .22s cubic-bezier(.16,1,.3,1);
}
.quote-card:hover { border-color: rgba(99,102,241,.24); transform: translateY(-4px); }
.quote-text { font-size: .96rem; line-height: 1.82; color: #94A3B8; font-style: italic; }
.quote-text::before { content: '\201C'; font-size: 1.4em; line-height: 0; vertical-align: -.3em; color: #6366F1; margin-right: 2px; }
.quote-text::after  { content: '\201D'; font-size: 1.4em; line-height: 0; vertical-align: -.3em; color: #6366F1; margin-left: 2px; }
.quote-meta { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07); }
.quote-avatar {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg,rgba(99,102,241,.24),rgba(59,130,246,.24));
  border: 1px solid rgba(99,102,241,.24); color: #A5B4FC;
  font-weight: 800; font-size: .85rem; display: grid; place-items: center; flex-shrink: 0;
}
.quote-name { display: block; color: #F1F5F9; font-size: .88rem; font-weight: 700; }
.quote-role { font-size: .78rem; color: #475569; }

/* Final CTA */
.cta-section { background: #fff; padding: clamp(60px,7vw,100px) 0 clamp(80px,9vw,120px); }
.cta-block {
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(56,189,248,.22), transparent 38%),
    radial-gradient(ellipse at 15% 100%, rgba(99,102,241,.18), transparent 40%),
    linear-gradient(135deg, #080E1C 0%, #1E1B4B 50%, #1D4ED8 100%);
  padding: clamp(44px,5vw,80px); position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(99,102,241,.22), 0 40px 80px rgba(8,14,28,.30);
}
.cta-block::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 58px 58px; opacity: .18;
}
.cta-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: 32px; align-items: end;
}
.cta-inner h2 { font-size: clamp(1.9rem,3.6vw,3.2rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.04; color: #F1F5F9; margin-bottom: 16px; }
.cta-inner p  { font-size: 1rem; line-height: 1.82; color: rgba(255,255,255,.62); max-width: 54ch; }
.cta-proof-tag { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: rgba(255,255,255,.48); font-size: .82rem; }
.cta-proof-tag svg { stroke: rgba(255,255,255,.38); fill: none; stroke-width: 2; width: 14px; height: 14px; }
.cta-btns { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; flex-shrink: 0; }
.btn-cta-white {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 12px;
  background: #fff; color: #0F172A; font-size: .95rem; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 10px 28px rgba(0,0,0,.18); transition: transform .14s, box-shadow .14s; white-space: nowrap;
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.24); }
.btn-cta-outline {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.8); font-size: .95rem; font-weight: 600; letter-spacing: -.01em;
  backdrop-filter: blur(10px); transition: background .15s, border-color .15s, color .15s, transform .14s; white-space: nowrap;
}
.btn-cta-outline:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.35); color: #fff; transform: translateY(-2px); }

/* ── 10. Pricing Page ───────────────────────────────────────── */
.pricing-hero { padding: 92px 24px 64px; position: relative; overflow: hidden; }
.pricing-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.4), transparent 80%);
}
.pricing-hero-inner { position: relative; z-index: 1; max-width: none; margin: 0 auto; text-align: center; }
.pricing-hero h1 { font-size: clamp(2.7rem,5vw,4.6rem); line-height: 1; letter-spacing: -.06em; color: #0F172A; margin-bottom: 18px; }
.pricing-hero p  { max-width: 68ch; margin: 0 auto; font-size: 1.08rem; line-height: 1.8; color: #475569; }
.pricing-proof   { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; color: #64748B; font-size: .88rem; }

.billing-toggle {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 34px;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid rgba(148,163,184,.22); background: rgba(255,255,255,.92);
  box-shadow: 0 18px 40px rgba(15,23,42,.05);
}
.toggle-label { font-size: .9rem; color: #64748B; }
.toggle-label.active { color: #0F172A; font-weight: 700; }
.toggle-track { width: 48px; height: 28px; border-radius: 999px; background: #CBD5E1; position: relative; cursor: pointer; transition: background .2s; }
.toggle-track.on { background: #2563EB; }
.toggle-thumb { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 999px; background: #fff; box-shadow: 0 8px 18px rgba(15,23,42,.16); transition: transform .2s cubic-bezier(.16,1,.3,1); }
.toggle-track.on .toggle-thumb { transform: translateX(20px); }
.save-badge { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: #DCFCE7; color: #166534; font-size: .7rem; font-weight: 700; }

.pricing-grid { max-width: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.plan-card {
  position: relative; border-radius: 26px;
  border: 1px solid rgba(148,163,184,.18); background: rgba(255,255,255,.92);
  box-shadow: 0 18px 40px rgba(15,23,42,.05); padding: 30px 26px;
  display: flex; flex-direction: column; min-height: 100%;
}
.plan-card.featured {
  background: linear-gradient(180deg, #0F172A 0%, #111827 100%);
  color: #F8FAFC; transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(15,23,42,.18);
}
.plan-badge { position: absolute; top: 18px; right: 18px; padding: 7px 10px; border-radius: 999px; background: #DBEAFE; color: #1D4ED8; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.plan-card.featured .plan-badge  { background: rgba(96,165,250,.16); color: #BFDBFE; }
.plan-tier                        { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: #64748B; margin-bottom: 12px; }
.plan-card.featured .plan-tier    { color: #94A3B8; }
.plan-title                       { font-size: 1.42rem; line-height: 1.15; letter-spacing: -.03em; color: #0F172A; margin-bottom: 10px; }
.plan-card.featured .plan-title   { color: #F8FAFC; }
.plan-copy                        { font-size: .92rem; line-height: 1.7; color: #475569; margin-bottom: 22px; }
.plan-card.featured .plan-copy    { color: #CBD5E1; }
.plan-price { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 8px; }
.plan-price strong { font-size: 3.1rem; line-height: .9; letter-spacing: -.06em; color: #0F172A; }
.plan-card.featured .plan-price strong { color: #F8FAFC; }
.plan-price span { font-size: .9rem; color: #64748B; padding-bottom: 6px; }
.plan-card.featured .plan-price span { color: #94A3B8; }
.plan-sub { font-size: .82rem; color: #64748B; margin-bottom: 20px; }
.plan-card.featured .plan-sub { color: #94A3B8; }
.plan-features { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; color: #334155; font-size: .9rem; line-height: 1.65; }
.plan-card.featured .plan-features li { color: #E2E8F0; }
.plan-mark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: #DBEAFE; color: #1D4ED8; font-size: .76rem; font-weight: 800; flex-shrink: 0; margin-top: 2px; }
.plan-card.featured .plan-mark { background: rgba(96,165,250,.16); color: #BFDBFE; }
.plan-actions { display: grid; gap: 10px; }
.plan-actions .btn-primary,
.plan-actions .btn-secondary { justify-content: center; }

.compare-section { background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%); }
.compare-grid { max-width: none; margin: 34px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.compare-card { border-radius: 22px; border: 1px solid rgba(148,163,184,.18); background: #fff; box-shadow: 0 16px 34px rgba(15,23,42,.04); padding: 24px; }
.compare-card h3 { font-size: 1rem; line-height: 1.25; color: #0F172A; margin-bottom: 10px; }
.compare-card p  { font-size: .88rem; line-height: 1.7; color: #475569; }

.enterprise-panel {
  max-width: none; margin: 28px auto 0; border-radius: 28px; padding: 34px 30px;
  background: linear-gradient(135deg, #0F172A 0%, #1D4ED8 72%, #0EA5E9 100%);
  color: #F8FAFC; display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: 20px; align-items: end; box-shadow: 0 28px 60px rgba(15,23,42,.18);
}
.enterprise-panel h3 { font-size: 1.7rem; line-height: 1.05; letter-spacing: -.04em; margin-bottom: 12px; }
.enterprise-panel p  { max-width: 66ch; color: rgba(255,255,255,.82); line-height: 1.75; }

.faq-grid { max-width: none; margin: 40px auto 0; display: grid; gap: 12px; }
.faq-item { border-radius: 18px; border: 1px solid rgba(148,163,184,.18); background: #fff; overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; color: #0F172A; font-size: .96rem; font-weight: 700;
}
.faq-a { display: none; padding: 0 22px 20px; color: #475569; font-size: .9rem; line-height: 1.75; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-q svg { width: 18px; height: 18px; transition: transform .2s; }

/* ── 11. About Page ─────────────────────────────────────────── */
.about-hero { padding: 92px 24px 64px; position: relative; overflow: hidden; }
.about-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.35), transparent 80%);
}
.about-hero-inner { position: relative; z-index: 1; max-width: none; margin: 0 auto; text-align: center; }
.about-hero h1 { font-size: clamp(2.7rem,5vw,4.5rem); line-height: 1; letter-spacing: -.06em; color: #0F172A; margin-bottom: 18px; }
.about-hero p  { max-width: 68ch; margin: 0 auto; font-size: 1.08rem; line-height: 1.8; color: #475569; }

.story-grid,
.values-grid,
.team-grid,
.principles-grid { display: grid; gap: 20px; }
.story-grid { grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr); align-items: start; }
.values-grid,
.principles-grid,
.team-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }

.story-prose h2 { font-size: 2rem; line-height: 1.1; letter-spacing: -.05em; color: #0F172A; margin-bottom: 18px; }
.story-prose p  { font-size: 1rem; line-height: 1.85; color: #475569; margin-bottom: 18px; }

.story-metric { padding: 20px 0; border-bottom: 1px solid rgba(148,163,184,.16); }
.story-metric:last-child { border-bottom: none; padding-bottom: 0; }
.story-metric strong { display: block; font-size: 2rem; line-height: 1; letter-spacing: -.05em; color: #0F172A; margin-bottom: 8px; }
.story-metric span   { display: block; font-size: .88rem; line-height: 1.7; color: #475569; }

.team-card { text-align: left; }
.avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 18px; }
.role   { display: block; margin-top: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1D4ED8; }

.career-cta { max-width: none; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: end; }

/* ── 12. Contact Page ───────────────────────────────────────── */
.contact-hero { padding: 92px 24px 60px; position: relative; overflow: hidden; }
.contact-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.35), transparent 80%);
}
.contact-hero-inner { position: relative; z-index: 1; max-width: none; margin: 0 auto; text-align: center; }
.contact-hero h1 { font-size: clamp(2.7rem,5vw,4.4rem); line-height: 1; letter-spacing: -.06em; color: #0F172A; margin-bottom: 18px; }
.contact-hero p  { max-width: 68ch; margin: 0 auto; font-size: 1.08rem; line-height: 1.8; color: #475569; }

.contact-layout { max-width: none; margin: 0 auto; display: grid; grid-template-columns: minmax(280px,.82fr) minmax(0,1.18fr); gap: 24px; }
.contact-methods { display: grid; gap: 14px; margin-top: 24px; }
.contact-method  { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(148,163,184,.16); }
.contact-method:first-child { border-top: none; padding-top: 0; }
.contact-icon  { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.contact-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #64748B; margin-bottom: 4px; }
.contact-value { font-size: .94rem; font-weight: 700; color: #0F172A; }
.contact-note  { font-size: .82rem; color: #64748B; margin-top: 4px; }
.contact-list  { display: grid; gap: 10px; margin-top: 22px; }
.contact-list span { display: flex; gap: 10px; align-items: flex-start; color: #475569; font-size: .9rem; line-height: 1.7; }
.contact-list i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: #DBEAFE; color: #1D4ED8; font-style: normal; font-size: .76rem; font-weight: 800; flex-shrink: 0; margin-top: 2px; }

/* Form styles */
body.page-shell .form-row,
body.landing-shell .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body.page-shell .fg,
body.landing-shell .fg { margin-bottom: 16px; }
body.page-shell .fg label,
body.landing-shell .fg label { display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #64748B; }
body.page-shell .fg input,
body.page-shell .fg select,
body.page-shell .fg textarea,
body.landing-shell .fg input,
body.landing-shell .fg select,
body.landing-shell .fg textarea { width: 100%; padding: 13px 14px; border-radius: 16px; border: 1px solid rgba(148,163,184,.24); background: #fff; color: #0F172A; font-size: .95rem; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
body.page-shell .fg input:focus,
body.page-shell .fg select:focus,
body.page-shell .fg textarea:focus,
body.landing-shell .fg input:focus,
body.landing-shell .fg select:focus,
body.landing-shell .fg textarea:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
body.page-shell .fg textarea,
body.landing-shell .fg textarea { min-height: 140px; resize: vertical; }
body.page-shell .form-submit-btn,
body.landing-shell .form-submit-btn { width: 100%; min-height: 50px; border: none; border-radius: 16px; background: #2563EB; color: #fff; font-size: .96rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; }
body.page-shell .form-submit-btn:hover,
body.landing-shell .form-submit-btn:hover { background: #1D4ED8; transform: translateY(-1px); }
body.page-shell .form-note,
body.landing-shell .form-note { margin-top: 14px; font-size: .82rem; line-height: 1.7; color: #64748B; }
body.page-shell .form-note a,
body.landing-shell .form-note a { color: #1D4ED8; }
.success-msg { display: none; text-align: center; padding: 42px 20px; }
.success-icon { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: #DCFCE7; margin: 0 auto 18px; }

.support-strip { max-width: none; margin: 24px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.mini-card { border-radius: 22px; border: 1px solid rgba(148,163,184,.18); background: #fff; box-shadow: 0 16px 34px rgba(15,23,42,.04); padding: 24px; }
.mini-card h3 { font-size: 1rem; color: #0F172A; margin-bottom: 10px; }
.mini-card p  { color: #475569; font-size: .88rem; line-height: 1.72; }

/* ── 13. Global Responsive ──────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .nav-inner   { padding: 0 20px; height: 62px; }
  .nav-links, .nav-ctas { display: none; }
  .nav-hamburger { display: flex; }
  .section-wrap  { padding: 0 20px; }
  .footer-inner  { grid-template-columns: 1fr 1fr; padding: 0 20px 48px; gap: 32px 24px; }
  .footer-brand  { grid-column: 1 / -1; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom-inner { align-items: center; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

/* ── 14. Page Responsive ────────────────────────────────────── */
/* Home */
@media (max-width: 1100px) {
  .hero-grid, .cta-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 800px; margin: 0 auto; }
  .cta-btns { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .steps-grid::before { display: none; }
}
@media (max-width: 960px) {
  .feat-grid, .cap-grid, .uc-grid, .quotes-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .proof-strip, .stats-row { grid-template-columns: 1fr 1fr; }
  .cap-card { grid-template-columns: 1fr; }
  .hero-floaters { position: static; width: auto; margin-top: 14px; }
}
@media (max-width: 640px) {
  .feat-grid, .cap-grid, .uc-grid, .quotes-grid,
  .steps-grid, .proof-strip, .stats-row { grid-template-columns: 1fr; }
  .hero-h1 { font-size: clamp(2.6rem,11vw,3.4rem); }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn-hero-primary, .btn-hero-ghost, .btn-cta-white, .btn-cta-outline { width: 100%; justify-content: center; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-btns { align-items: stretch; }
  .stat-item { border-left: none; padding-left: 0; border-top: 1px solid rgba(99,102,241,.14); padding-top: 20px; }
  .stat-item:first-child { border-top: none; padding-top: 0; }
}

/* Pricing */
@media (max-width: 980px) {
  .pricing-grid, .compare-grid { grid-template-columns: 1fr 1fr; }
  .enterprise-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pricing-hero, .section-block { padding-left: 16px; padding-right: 16px; }
  .pricing-hero { padding-top: 64px; padding-bottom: 44px; }
  .pricing-grid, .compare-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
}

/* About */
@media (max-width: 960px) {
  .story-grid, .values-grid, .principles-grid, .team-grid, .career-cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .about-hero, .section-block { padding-left: 16px; padding-right: 16px; }
  .about-hero { padding-top: 64px; padding-bottom: 44px; }
}

/* Contact */
@media (max-width: 980px) {
  .contact-layout, .support-strip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .contact-hero, .section-block { padding-left: 16px; padding-right: 16px; }
  .contact-hero { padding-top: 64px; padding-bottom: 44px; }
  .form-row { grid-template-columns: 1fr; }
  .surface-card { padding: 22px; }
}

/* ── Absolute Final Marketing Light Theme Override ─────────── */
body.landing-shell,
body.mk-shell,
body.mk-shell .mk-home,
body.mk-shell .mk-subpage {
  background:
    radial-gradient(circle at 14% 14%, rgba(129, 140, 248, .12), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(96, 165, 250, .1), transparent 24%),
    linear-gradient(180deg, #f7faff 0%, #eef4ff 36%, #ffffff 100%) !important;
  color: #0f172a !important;
}

body.mk-shell .nav,
body.mk-shell .nav.scrolled,
body.mk-shell .nav-light,
body.mk-shell .nav-home,
body.landing-shell .nav,
body.landing-shell .nav.scrolled {
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid rgba(203,213,225,.9) !important;
  box-shadow: 0 12px 34px rgba(15,23,42,.08) !important;
}

body.mk-shell .nav .nav-logo,
body.mk-shell .nav .nav-logo span,
body.mk-shell .nav .nav-link,
body.mk-shell .nav .btn-nav-ghost,
body.mk-shell .nav .nav-hamburger,
body.mk-shell .nav .nav-mobile .nav-link,
body.landing-shell .nav .nav-logo,
body.landing-shell .nav .nav-logo span,
body.landing-shell .nav .nav-link,
body.landing-shell .nav .btn-nav-ghost,
body.landing-shell .nav .nav-hamburger,
body.landing-shell .nav .nav-mobile .nav-link {
  color: #0f172a !important;
  opacity: 1 !important;
}

body.mk-shell .nav .nav-link.active,
body.landing-shell .nav .nav-link.active {
  color: #1d4ed8 !important;
  background: rgba(37,99,235,.1) !important;
}

body.mk-shell .nav-mobile,
body.landing-shell .nav-mobile {
  background: rgba(255,255,255,.98) !important;
  border-top: 1px solid rgba(203,213,225,.9) !important;
}

body.mk-shell .hero,
body.landing-shell .hero,
body.mk-shell .mk-proof-section,
body.mk-shell .mk-final-box,
body.mk-shell .footer,
body.landing-shell .footer,
body.mk-shell .mk-command,
body.mk-shell .mk-score-panel,
body.mk-shell .mk-stack-card,
body.mk-shell .mk-quote-card,
body.mk-shell .mk-proof-points div,
body.mk-shell .qcard,
body.mk-shell .scard {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(203,213,225,.88) !important;
  box-shadow: 0 20px 44px rgba(15,23,42,.06) !important;
}

body.mk-shell .hero::before,
body.mk-shell .hero::after,
body.landing-shell .hero::before,
body.landing-shell .hero::after,
body.mk-shell .mk-command::before,
body.mk-shell .mk-page-hero::before,
body.mk-shell .mk-hero::before,
body.mk-shell .footer::before,
body.landing-shell .footer::before {
  opacity: .18 !important;
}

body.mk-shell .hero-h1,
body.mk-shell .hero-h1-grad,
body.mk-shell .hero-sub,
body.mk-shell .hcard-label,
body.mk-shell .pcard-title,
body.mk-shell .pcard-copy,
body.mk-shell .qcard-head,
body.mk-shell .qitem-title,
body.mk-shell .qitem-sub,
body.mk-shell .scard-head,
body.mk-shell .smeta span,
body.mk-shell .sring-lbl,
body.mk-shell .footer-brand-logo,
body.mk-shell .footer-brand-desc,
body.mk-shell .footer-col h4,
body.mk-shell .footer-col a,
body.mk-shell .footer-bottom-copy,
body.mk-shell .footer-bottom-links a,
body.mk-shell .mk-command-label,
body.mk-shell .mk-command p,
body.mk-shell .mk-command span,
body.mk-shell .mk-command li,
body.mk-shell .mk-proof-section h2,
body.mk-shell .mk-proof-section h3,
body.mk-shell .mk-proof-section p,
body.mk-shell .mk-proof-section span,
body.mk-shell .mk-final-box h2,
body.mk-shell .mk-final-box p {
  color: #334155 !important;
}

body.mk-shell .hero-h1,
body.mk-shell .pcard-title,
body.mk-shell .qitem-title,
body.mk-shell .sring-val,
body.mk-shell .mk-command-label,
body.mk-shell .mk-proof-section h2,
body.mk-shell .mk-proof-section h3,
body.mk-shell .mk-final-box h2,
body.mk-shell .footer-brand-logo,
body.mk-shell .footer-col h4 {
  color: #0f172a !important;
}

body.mk-shell .btn-hero-ghost,
body.mk-shell .btn-cta-outline,
body.mk-shell .mk-btn-secondary {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: rgba(203,213,225,.88) !important;
}

body.mk-shell .hcard-badge,
body.mk-shell .pcard-chip,
body.mk-shell .mk-chip,
body.mk-shell .mk-chip-live,
body.mk-shell .qscore,
body.mk-shell .mk-queue-item b,
body.mk-shell .mk-signal-item b {
  background: rgba(37,99,235,.1) !important;
  color: #1d4ed8 !important;
  border-color: rgba(37,99,235,.14) !important;
}

body.mk-shell .ptag,
body.mk-shell .mk-pill {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: rgba(203,213,225,.85) !important;
}

/* ── Homepage Contrast Patch ────────────────────────────────── */
body.mk-shell .hero,
body.landing-shell .hero {
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 42%, #ffffff 100%) !important;
}

body.mk-shell .hero-h1,
body.landing-shell .hero-h1 {
  color: #0f172a !important;
  opacity: 1 !important;
}

body.mk-shell .hero-h1-grad,
body.landing-shell .hero-h1-grad {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

body.mk-shell .hero-sub,
body.landing-shell .hero-sub {
  color: #475569 !important;
}

body.mk-shell .hero-card,
body.landing-shell .hero-card,
body.mk-shell .qcard,
body.landing-shell .qcard,
body.mk-shell .scard,
body.landing-shell .scard {
  background: #ffffff !important;
  border: 1px solid rgba(203,213,225,.88) !important;
  box-shadow: 0 20px 44px rgba(15,23,42,.06) !important;
}

body.mk-shell .hcard-label,
body.landing-shell .hcard-label,
body.mk-shell .qcard-head,
body.landing-shell .qcard-head,
body.mk-shell .scard-head,
body.landing-shell .scard-head,
body.mk-shell .pcard-title,
body.landing-shell .pcard-title,
body.mk-shell .qitem-title,
body.landing-shell .qitem-title,
body.mk-shell .sring-val,
body.landing-shell .sring-val {
  color: #0f172a !important;
}

body.mk-shell .pcard-copy,
body.landing-shell .pcard-copy,
body.mk-shell .qitem-sub,
body.landing-shell .qitem-sub,
body.mk-shell .smeta span,
body.landing-shell .smeta span,
body.mk-shell .sring-lbl,
body.landing-shell .sring-lbl {
  color: #475569 !important;
}

/* ── Final Button Contrast System ───────────────────────────── */
body.mk-shell .btn-nav-primary,
body.mk-shell .btn-hero-primary,
body.mk-shell .btn-cta-white,
body.mk-shell .mk-btn-primary,
body.mk-shell .form-submit-btn,
body.mk-shell .mk-form-submit,
body.landing-shell .btn-nav-primary,
body.landing-shell .btn-hero-primary {
  background: linear-gradient(135deg, #5b5cf0 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(67,56,202,.28) !important;
  box-shadow: 0 14px 30px rgba(79,70,229,.24) !important;
}

body.mk-shell .btn-nav-primary,
body.mk-shell .btn-nav-primary * ,
body.mk-shell .btn-hero-primary,
body.mk-shell .btn-hero-primary * ,
body.mk-shell .btn-cta-white,
body.mk-shell .btn-cta-white * ,
body.mk-shell .mk-btn-primary,
body.mk-shell .mk-btn-primary * ,
body.mk-shell .form-submit-btn,
body.mk-shell .form-submit-btn * ,
body.mk-shell .mk-form-submit,
body.mk-shell .mk-form-submit * ,
body.landing-shell .btn-nav-primary,
body.landing-shell .btn-nav-primary * ,
body.landing-shell .btn-hero-primary,
body.landing-shell .btn-hero-primary * {
  color: #ffffff !important;
  fill: #ffffff !important;
}

body.mk-shell .btn-nav-primary svg,
body.mk-shell .btn-hero-primary svg,
body.mk-shell .btn-cta-white svg,
body.mk-shell .mk-btn-primary svg,
body.landing-shell .btn-nav-primary svg,
body.landing-shell .btn-hero-primary svg {
  stroke: #ffffff !important;
}

body.mk-shell .btn-nav-primary:hover,
body.mk-shell .btn-hero-primary:hover,
body.mk-shell .btn-cta-white:hover,
body.mk-shell .mk-btn-primary:hover,
body.mk-shell .form-submit-btn:hover,
body.mk-shell .mk-form-submit:hover,
body.landing-shell .btn-nav-primary:hover,
body.landing-shell .btn-hero-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%) !important;
  color: #ffffff !important;
}

body.mk-shell .btn-nav-ghost,
body.mk-shell .btn-hero-ghost,
body.mk-shell .btn-cta-outline,
body.mk-shell .mk-btn-secondary,
body.landing-shell .btn-nav-ghost,
body.landing-shell .btn-hero-ghost {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(148,163,184,.28) !important;
  box-shadow: 0 8px 24px rgba(15,23,42,.06) !important;
}

body.mk-shell .btn-nav-ghost:hover,
body.mk-shell .btn-hero-ghost:hover,
body.mk-shell .btn-cta-outline:hover,
body.mk-shell .mk-btn-secondary:hover,
body.landing-shell .btn-nav-ghost:hover,
body.landing-shell .btn-hero-ghost:hover {
  background: #f8fbff !important;
  color: #0f172a !important;
  border-color: rgba(99,102,241,.26) !important;
}

body.mk-shell .footer-action,
body.landing-shell .footer-action {
  background: #ffffff !important;
  color: #1d4ed8 !important;
  border: 1px solid rgba(37,99,235,.16) !important;
}

body.mk-shell .footer-action:hover,
body.landing-shell .footer-action:hover {
  background: #eef4ff !important;
  color: #1d4ed8 !important;
}

body.mk-shell .pcard-chip,
body.mk-shell .mk-chip,
body.mk-shell .mk-chip-live,
body.mk-shell .qscore,
body.mk-shell .save-badge,
body.mk-shell .hcard-badge,
body.landing-shell .pcard-chip,
body.landing-shell .qscore {
  color: #1d4ed8 !important;
  font-weight: 800 !important;
}

body.mk-shell .ptag,
body.mk-shell .mk-pill,
body.landing-shell .ptag {
  color: #1e293b !important;
  font-weight: 700 !important;
}

/* ── Final Marketing Light Theme Override ───────────────────── */
body.mk-shell,
body.mk-shell .mk-home,
body.mk-shell .mk-subpage {
  background:
    radial-gradient(circle at 14% 14%, rgba(129, 140, 248, .12), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(96, 165, 250, .1), transparent 24%),
    linear-gradient(180deg, #f7faff 0%, #eef4ff 36%, #ffffff 100%) !important;
  color: #0f172a !important;
}

body.mk-shell .nav,
body.mk-shell .nav.scrolled,
body.mk-shell .nav-light,
body.mk-shell .nav-home {
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid rgba(203,213,225,.9) !important;
  box-shadow: 0 12px 34px rgba(15,23,42,.08) !important;
}

body.mk-shell .nav .nav-logo,
body.mk-shell .nav .nav-logo span,
body.mk-shell .nav .nav-link,
body.mk-shell .nav .btn-nav-ghost,
body.mk-shell .nav .nav-hamburger,
body.mk-shell .nav .nav-mobile .nav-link {
  color: #0f172a !important;
  opacity: 1 !important;
}

body.mk-shell .nav .nav-link.active {
  color: #1d4ed8 !important;
  background: rgba(37,99,235,.1) !important;
}

body.mk-shell .nav .nav-link:hover,
body.mk-shell .nav .btn-nav-ghost:hover,
body.mk-shell .nav .nav-hamburger:hover {
  color: #0f172a !important;
  background: rgba(37,99,235,.08) !important;
}

body.mk-shell .nav-mobile {
  background: rgba(255,255,255,.98) !important;
  border-top: 1px solid rgba(203,213,225,.9) !important;
}

body.mk-shell .nav-mobile-divider {
  background: rgba(203,213,225,.85) !important;
}

body.mk-shell .mk-command,
body.mk-shell .mk-score-panel,
body.mk-shell .mk-stack-card,
body.mk-shell .mk-proof-section,
body.mk-shell .mk-quote-card,
body.mk-shell .mk-proof-points div,
body.mk-shell .mk-final-box,
body.mk-shell .footer,
body.mk-shell .qcard,
body.mk-shell .scard {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(203,213,225,.9) !important;
  box-shadow: 0 22px 48px rgba(15,23,42,.06) !important;
}

body.mk-shell .mk-command::before,
body.mk-shell .mk-hero::before,
body.mk-shell .mk-page-hero::before,
body.mk-shell .footer::before {
  opacity: .25 !important;
}

body.mk-shell .mk-command-label,
body.mk-shell .mk-command h1,
body.mk-shell .mk-command h2,
body.mk-shell .mk-command h3,
body.mk-shell .mk-score-panel strong,
body.mk-shell .mk-stack-card strong,
body.mk-shell .mk-proof-section h2,
body.mk-shell .mk-proof-section h3,
body.mk-shell .mk-proof-section strong,
body.mk-shell .mk-quote-card strong,
body.mk-shell .mk-final-box h2,
body.mk-shell .footer-brand-logo,
body.mk-shell .footer-col h4,
body.mk-shell .qitem-title,
body.mk-shell .scard-head,
body.mk-shell .qcard-head {
  color: #0f172a !important;
}

body.mk-shell .mk-home p,
body.mk-shell .mk-home li,
body.mk-shell .mk-home span,
body.mk-shell .mk-subpage p,
body.mk-shell .mk-subpage li,
body.mk-shell .mk-subpage span,
body.mk-shell .mk-command p,
body.mk-shell .mk-command span,
body.mk-shell .mk-command li,
body.mk-shell .mk-score-panel span,
body.mk-shell .mk-stack-card span,
body.mk-shell .mk-stack-card p,
body.mk-shell .mk-proof-section p,
body.mk-shell .mk-proof-section span,
body.mk-shell .mk-quote-card p,
body.mk-shell .mk-quote-card span,
body.mk-shell .mk-final-box p,
body.mk-shell .footer p,
body.mk-shell .footer a,
body.mk-shell .footer span,
body.mk-shell .footer-bottom-copy,
body.mk-shell .footer-bottom-links a,
body.mk-shell .qitem-sub,
body.mk-shell .smeta span,
body.mk-shell .hcard-label {
  color: #334155 !important;
}

body.mk-shell .mk-kicker,
body.mk-shell .mk-section-label,
body.mk-shell .mk-cap-head span,
body.mk-shell .mk-use-card span,
body.mk-shell .mk-plan-tier,
body.mk-shell .mk-billing-label,
body.mk-shell .mk-final-box .mk-section-label,
body.mk-shell .mk-proof-copy .mk-section-label,
body.mk-shell .hero-eyebrow,
body.mk-shell .pcard-chip {
  color: #1d4ed8 !important;
  background: rgba(37,99,235,.06) !important;
  border-color: rgba(37,99,235,.14) !important;
}

body.mk-shell .mk-band-grid > div,
body.mk-shell .mk-value-card,
body.mk-shell .mk-process-card,
body.mk-shell .mk-cap-card,
body.mk-shell .mk-use-card,
body.mk-shell .mk-side-panel,
body.mk-shell .mk-contact-card,
body.mk-shell .mk-plan-card,
body.mk-shell .mk-billing-toggle,
body.mk-shell .mk-page-proof span,
body.mk-shell .surface-card,
body.mk-shell .mini-card,
body.mk-shell .compare-card,
body.mk-shell .faq-item {
  background: rgba(255,255,255,.94) !important;
  border-color: rgba(148,163,184,.24) !important;
}

body.mk-shell .mk-plan-featured {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%) !important;
  border-color: rgba(148,163,184,.24) !important;
}

body.mk-shell .mk-plan-featured h2,
body.mk-shell .mk-plan-featured h3,
body.mk-shell .mk-plan-featured p,
body.mk-shell .mk-plan-featured li,
body.mk-shell .mk-plan-featured span,
body.mk-shell .mk-plan-featured strong {
  color: #0f172a !important;
}

body.mk-shell .mk-score-ring {
  background: conic-gradient(#60a5fa 0 295deg, rgba(148,163,184,.22) 295deg 360deg) !important;
}

body.mk-shell .mk-score-ring-inner {
  background: #ffffff !important;
  border: 1px solid rgba(203,213,225,.85) !important;
}

body.mk-shell .mk-chip,
body.mk-shell .mk-chip-live,
body.mk-shell .mk-queue-item b,
body.mk-shell .mk-signal-item b,
body.mk-shell .qscore {
  background: rgba(37,99,235,.1) !important;
  color: #1d4ed8 !important;
  border-color: rgba(37,99,235,.14) !important;
}

body.mk-shell .mk-pill,
body.mk-shell .btn-cta-outline,
body.mk-shell .btn-hero-ghost {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: rgba(203,213,225,.85) !important;
}

/* ── Final Marketing Button Contrast Lock ───────────────────── */
body.mk-shell .btn-nav-primary,
body.mk-shell .btn-nav-primary:visited,
body.mk-shell .btn-hero-primary,
body.mk-shell .btn-hero-primary:visited,
body.mk-shell .btn-cta-white,
body.mk-shell .btn-cta-white:visited,
body.mk-shell .mk-btn-primary,
body.mk-shell .mk-btn-primary:visited,
body.mk-shell .form-submit-btn,
body.mk-shell .mk-form-submit,
body.landing-shell .btn-nav-primary,
body.landing-shell .btn-nav-primary:visited,
body.landing-shell .btn-hero-primary,
body.landing-shell .btn-hero-primary:visited {
  background: linear-gradient(135deg, #5b5cf0 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  border-color: rgba(67, 56, 202, .34) !important;
}

body.mk-shell .btn-nav-primary *,
body.mk-shell .btn-hero-primary *,
body.mk-shell .btn-cta-white *,
body.mk-shell .mk-btn-primary *,
body.mk-shell .form-submit-btn *,
body.mk-shell .mk-form-submit *,
body.landing-shell .btn-nav-primary *,
body.landing-shell .btn-hero-primary * {
  color: #ffffff !important;
  fill: #ffffff !important;
}

body.mk-shell .btn-nav-primary svg,
body.mk-shell .btn-hero-primary svg,
body.mk-shell .btn-cta-white svg,
body.mk-shell .mk-btn-primary svg,
body.mk-shell .form-submit-btn svg,
body.mk-shell .mk-form-submit svg,
body.landing-shell .btn-nav-primary svg,
body.landing-shell .btn-hero-primary svg {
  stroke: #ffffff !important;
}

body.mk-shell .btn-nav-primary:hover,
body.mk-shell .btn-hero-primary:hover,
body.mk-shell .btn-cta-white:hover,
body.mk-shell .mk-btn-primary:hover,
body.mk-shell .form-submit-btn:hover,
body.mk-shell .mk-form-submit:hover,
body.landing-shell .btn-nav-primary:hover,
body.landing-shell .btn-hero-primary:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%) !important;
}

body.mk-shell .btn-nav-ghost,
body.mk-shell .btn-nav-ghost:visited,
body.mk-shell .btn-hero-ghost,
body.mk-shell .btn-hero-ghost:visited,
body.mk-shell .btn-cta-outline,
body.mk-shell .btn-cta-outline:visited,
body.mk-shell .mk-btn-secondary,
body.mk-shell .mk-btn-secondary:visited,
body.landing-shell .btn-nav-ghost,
body.landing-shell .btn-nav-ghost:visited,
body.landing-shell .btn-hero-ghost,
body.landing-shell .btn-hero-ghost:visited {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(203, 213, 225, .9) !important;
}

body.mk-shell .btn-nav-ghost *,
body.mk-shell .btn-hero-ghost *,
body.mk-shell .btn-cta-outline *,
body.mk-shell .mk-btn-secondary *,
body.landing-shell .btn-nav-ghost *,
body.landing-shell .btn-hero-ghost * {
  color: #0f172a !important;
  fill: #0f172a !important;
}

body.mk-shell .btn-nav-ghost svg,
body.mk-shell .btn-hero-ghost svg,
body.mk-shell .btn-cta-outline svg,
body.mk-shell .mk-btn-secondary svg,
body.landing-shell .btn-nav-ghost svg,
body.landing-shell .btn-hero-ghost svg {
  stroke: #0f172a !important;
}

/* ── Final Clean Border System ───────────────────────────── */
.card,
.stat-card,
.site-card,
.site-row-card,
.form-analysis-card,
.feature-card,
.surface-card,
.overview-card,
.mini-stat,
.entity,
.note-box,
.advisory-box,
.alerts-stat,
.alerts-panel,
.mon-hero-card,
.mon-panel,
.mon-stat,
.mon-focus-rail,
.mon-target-card,
.mon-trend-card,
.mon-snapshot-card,
.mon-classify-card,
.mon-systems-card,
.user-card,
.hero-tile,
.smart-funnel-stat,
.site-command-card,
.site-health-card,
.alerts-hero,
.mon-banner,
.mon-analytics-card,
.key-page-stat,
.site-overview-item,
.site-signal,
.mon-map-pill,
.mon-item,
.mon-target-metric,
.mon-guide-box,
.landing-journey-stat {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 22px !important;
  box-shadow: none !important;
}

.card-header,
.admin-card-head,
.section-card-header,
.brain-card-head,
.mon-classify-head,
.mon-systems-head {
  border-bottom: 0 !important;
}

.alerts-panel,
.mon-panel,
.mon-classify-card,
.mon-systems-card,
.user-card,
.brain-card,
.section-card {
  overflow: hidden !important;
}

.site-row-card:hover,
.form-analysis-card:hover,
.feature-card:hover,
.overview-card:hover,
.mini-stat:hover,
.entity:hover,
.alerts-stat:hover,
.mon-stat:hover,
.site-command-card:hover,
.site-health-card:hover,
.workflow-stage-panel:hover {
  background: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
}

.stat-card,
.alerts-stat,
.mon-stat,
.smart-funnel-stat,
.hero-tile {
  padding: 22px 24px !important;
}

.feature-card,
.site-command-card,
.site-health-card,
.surface-card {
  padding: 22px 24px !important;
}

.feature-card-icon,
.stat-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 16px !important;
}

.subtle-table td,
.table-wrap .data-table th,
.table-wrap .data-table td,
.mon-systems-table th,
.mon-systems-table td {
  border-color: #e5e7eb !important;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-nav-ghost,
.btn-hero-ghost,
.btn-cta-outline,
.mk-btn-secondary,
.date-range-btn,
.journey-tab,
.mon-tab,
.alerts-pill,
.scope-pill,
.workflow-stat-chip,
.workflow-quicklink,
.note-template-btn,
.label-choice,
.mon-label-btn {
  box-shadow: none !important;
}

.btn,
.btn-nav-ghost,
.btn-hero-ghost,
.btn-cta-outline,
.mk-btn-secondary,
.date-range-btn,
.journey-tab,
.mon-tab,
.alerts-pill,
.scope-pill,
.workflow-stat-chip,
.workflow-quicklink,
.note-template-btn,
.label-choice,
.mon-label-btn {
  border: 1px solid #e5e7eb !important;
  background: #ffffff !important;
}

.btn-primary {
  box-shadow: none !important;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus,
body.landing-shell .fg textarea:focus {
  box-shadow: none !important;
}

/* ============================================================
   2026 Dashboard Refresh
   Shared shadcn-inspired shell and component overrides
   ============================================================ */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --surface-3: #e4e4e7;
  --border: #e4e4e7;
  --border-2: #d4d4d8;
  --ink: #09090b;
  --ink-2: #3f3f46;
  --ink-3: #71717a;
  --blue: #18181b;
  --blue-lt: #f4f4f5;
  --green: #16a34a;
  --green-lt: #f0fdf4;
  --red: #dc2626;
  --red-lt: #fef2f2;
  --amber: #d97706;
  --amber-lt: #fffbeb;
  --purple: #7c3aed;
  --purple-lt: #f5f3ff;
  --blue-rgb: 24, 24, 27;
  --shadow: 0 1px 2px rgba(9, 9, 11, .05);
  --shadow-md: 0 12px 36px rgba(9, 9, 11, .08);
  --shadow-lg: 0 24px 60px rgba(9, 9, 11, .16);
  --focus-ring: rgba(24, 24, 27, .12);
  --chrome: #09090b;
  --chart-grid: #e4e4e7;
  --chart-text: #52525b;
  --chart-ticks: #71717a;
  --hero-glow: rgba(24, 24, 27, .05);
  --sidebar-w: 19rem;
  --topbar-h: 4.5rem;
  --r: 1rem;
  --r-sm: .75rem;
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.9), rgba(250,250,250,0) 28rem),
    linear-gradient(180deg, #fcfcfc 0%, #fafafa 100%);
  color: var(--ink);
}

.app-shell {
  background: transparent;
}

.sidebar {
  width: var(--sidebar-w);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-right: 1px solid rgba(228, 228, 231, .9);
}

.sidebar-logo {
  padding: 1.25rem 1.25rem 1rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(250,250,250,.96) 100%);
}

.logo-link {
  align-items: flex-start;
  gap: .875rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .85rem;
  background: #111827;
  box-shadow: none;
}

.logo-copy {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}

.logo-kicker {
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.sidebar-mission {
  grid-template-columns: 5rem minmax(0, 1fr);
}

.sidebar-rail {
  padding: 1rem .75rem;
  gap: .5rem;
  background: linear-gradient(180deg, #fcfcfc 0%, #fafafa 100%);
}

.rail-item {
  border-radius: 1rem;
  color: var(--ink-3);
  border: 0;
}

.rail-item:hover {
  color: var(--ink);
  box-shadow: var(--shadow);
}

.rail-item.active {
  color: var(--ink);
  box-shadow: none;
}

.rail-icon-wrap,
.rail-item.active .rail-icon-wrap {
  background: transparent;
}

.rail-item.active .rail-badge {
  border-color: #fff;
}

.rail-item.active .rail-icon-wrap {
  transform: scale(1.02);
}

.rail-item.active svg {
  color: var(--ink);
  opacity: 1;
  stroke-width: 2.35;
}

.rail-item.active .rail-label {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: .06em;
}

.sidebar-context {
  padding: .95rem .9rem .9rem;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(250,250,250,.98) 100%);
}

.sidebar-context-head {
  padding: .2rem .2rem .7rem;
}

.sidebar-context-kicker,
.context-section-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.sidebar-context-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.sidebar-context-summary {
  margin-top: .35rem;
  max-width: 24ch;
  color: var(--ink-3);
  font-size: .74rem;
  line-height: 1.45;
}

.sidebar-context-preview {
  margin-top: .9rem;
}

.sidebar-context-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-2);
  padding: .35rem .6rem;
  font-weight: 700;
}

.context-section-label {
  margin: .9rem 0 .35rem;
}

.context-item {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .65rem;
  border-radius: .55rem;
  padding: .52rem .55rem;
  margin-bottom: .08rem;
  border: 1px solid transparent;
  color: var(--ink-2);
  min-height: 2.2rem;
}

.context-item:hover {
  background: rgba(250,250,250,.9);
  border-color: transparent;
  color: var(--ink);
  box-shadow: none;
}

.context-item.active {
  background: #f4f4f5;
  border-color: #e4e4e7;
  box-shadow: none;
  color: #111827;
}

.context-item svg {
  width: 1rem;
  height: 1rem;
  opacity: .9;
}

.context-item-copy,
.context-item-title-row {
  min-width: 0;
}

.context-item-title {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.context-item-count {
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 .35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 800;
  color: var(--ink-3);
  background: #fff;
  border: 1px solid var(--border);
}

.context-item-tag,
.context-item-count,
.rail-badge,
.badge-red,
.badge-green,
.badge-blue,
.cr-badge,
.site-tag,
.pill,
.category-tag,
.worst-badge,
.field-type-badge,
.badge-type,
.badge-warn,
.badge-danger {
  border-radius: 999px;
}

.sidebar-footer {
  padding: .95rem 1rem 1.2rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.95);
}

.avatar-sm {
  background: #18181b;
  color: #fff;
}

.btn-logout {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: .8rem;
}

.main-area {
  background: transparent;
}

.topbar {
  min-height: var(--topbar-h);
  height: auto;
  padding: 1rem 1.5rem;
  background: rgba(250,250,250,.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(228, 228, 231, .9);
  box-shadow: none;
}

.page-title-wrap {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.page-eyebrow {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.page-title-wrap h1,
.topbar h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.page-sub {
  max-width: 60ch;
  font-size: .85rem;
  color: var(--ink-3);
}

.topbar-actions {
  gap: .75rem;
}

.workspace-switcher-shell {
  min-width: 16rem;
}

.workspace-switcher-trigger,
.date-range-btn,
.btn,
.btn-copy,
.btn-copy-code {
  min-height: 2.5rem;
  border-radius: .75rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.workspace-switcher-trigger:hover,
.date-range-btn:hover,
.btn:hover,
.btn-copy:hover,
.btn-copy-code:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--ink);
  box-shadow: none;
}

.btn {
  padding: .65rem .95rem;
  font-size: .82rem;
  font-weight: 700;
}

.btn-sm {
  min-height: 2rem;
  padding: .45rem .8rem;
  font-size: .76rem;
}

.btn-primary,
.btn-primary:hover {
  background: #18181b !important;
  border-color: #18181b !important;
  color: #fff !important;
  box-shadow: none !important;
}

.site-selector-tab,
.range-tab,
.scope-pill,
.journey-tab,
.mon-tab,
.alerts-pill,
.workflow-stat-chip,
.workflow-quicklink,
.note-template-btn,
.label-choice,
.page-list-item {
  transition:
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}

.site-selector-tab.active,
.range-tab.active,
.scope-pill.active,
.journey-tab.active,
.mon-tab.active,
.alerts-pill.active,
.workflow-stat-chip.active,
.workflow-quicklink.active,
.note-template-btn.active,
.label-choice.active,
.page-list-item.active,
.workspace-switcher-option.active {
  background: #18181b !important;
  color: #fff !important;
  border-color: #18181b !important;
  box-shadow: 0 10px 24px rgba(9, 9, 11, .12) !important;
}

.site-selector-tab.active *,
.range-tab.active *,
.scope-pill.active *,
.journey-tab.active *,
.mon-tab.active *,
.alerts-pill.active *,
.workflow-stat-chip.active *,
.workflow-quicklink.active *,
.note-template-btn.active *,
.label-choice.active *,
.page-list-item.active *,
.workspace-switcher-option.active * {
  color: inherit !important;
}

.site-selector-tab.active .site-bullet,
.scope-pill.active .scope-pill-dot,
.workspace-switcher-option.active .workspace-switcher-dot {
  box-shadow: 0 0 0 2px rgba(255,255,255,.28);
}

.site-selector-tab.active,
.range-tab.active {
  transform: translateY(-1px);
}

.range-tabs {
  background: #ededf0;
  padding: 3px;
}

.range-tab {
  border: 1px solid transparent;
  font-weight: 700;
}

.range-tab:hover {
  background: rgba(255,255,255,.7);
}

.scope-pill,
.site-selector-tab {
  border-width: 1px;
  font-weight: 700;
}

.scope-pill.active,
.site-selector-tab.active {
  background: #111827 !important;
}

.page-list-item.active {
  font-weight: 700;
}

.page-list-item.active .page-list-item-views,
.workspace-switcher-option.active .workspace-switcher-option-sub {
  color: rgba(255,255,255,.72) !important;
}

.btn-danger,
.btn-danger:hover {
  background: #fff !important;
  color: var(--red) !important;
  border-color: #fecaca !important;
}

.page-body {
  padding: 1.5rem;
}

.card,
.form-analysis-card,
.site-row-card,
.blocker-card,
.feature-card,
.admin-card,
.overview-card,
.priority-card,
.beh-card,
.site-command-card,
.site-health-card {
  background: rgba(255,255,255,.98) !important;
  border: 1px solid var(--border) !important;
  border-radius: 1rem !important;
  box-shadow: none !important;
}

.card-header,
.priority-card-head,
.admin-card-head {
  padding: 1rem 1.25rem !important;
  border-bottom: 1px solid var(--border) !important;
  background: linear-gradient(180deg, rgba(250,250,250,.9) 0%, rgba(255,255,255,.95) 100%);
}

.card-title,
.priority-card-title,
.admin-card-head h2,
.section-title {
  font-size: .95rem !important;
  font-weight: 800 !important;
  letter-spacing: -.02em;
  color: var(--ink) !important;
}

.card-sub,
.admin-card-head p,
.overview-card span,
.insight-bar-summary,
.empty-state p,
.fg-hint,
.workspace-switcher-option-sub,
.site-card-domain,
.text-muted {
  color: var(--ink-3) !important;
}

.card-body,
.admin-card-body {
  padding: 1.25rem !important;
}

.insight-bar,
.scope-bar,
.install-key-row,
.mini-metric {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: none;
}

.stats-grid,
.two-col,
.three-col,
.four-col,
.blockers-grid {
  gap: 1rem;
}

.stat-card {
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid var(--border);
  box-shadow: none;
}

.stat-card:hover {
  border-color: var(--border-2);
  box-shadow: none;
}

.stat-icon {
  border-radius: .9rem;
}

.stat-label,
.scl,
.mini-label,
.funnel-label,
.data-table th,
.ig-label {
  color: var(--ink-3);
}

.stat-value,
.scn,
.mini-val,
.big-val {
  color: var(--ink);
}

.data-table {
  font-size: .84rem;
}

.data-table th {
  padding: .8rem 1rem;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  font-size: .68rem;
  font-weight: 800;
}

.data-table td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--border);
}

.data-table tbody tr:hover {
  background: #fafafa;
}

.fg label {
  margin-bottom: .45rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-2);
}

.fg input,
.fg select,
.fg textarea,
.modal-close {
  border-radius: .75rem;
}

.fg input,
.fg select,
.fg textarea {
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  background: #fff;
  font-size: .9rem;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, .08) !important;
}

.flash,
.toast,
.empty-state,
.modal,
.code-block,
.workspace-switcher-menu {
  border-radius: 1rem;
}

.flash {
  padding: .9rem 1rem;
  font-weight: 600;
}

.empty-state h3 {
  color: var(--ink);
  font-weight: 800;
}

.empty-state svg {
  opacity: .22;
}

.site-card,
.site-card-add {
  border-radius: 1rem;
}

.site-card-add {
  background: rgba(255,255,255,.75);
}

.pagination-nav {
  padding-top: .25rem;
}

@media (max-width: 1024px) {
  .topbar {
    padding: 1rem 1.1rem;
  }

  .page-body {
    padding: 1.1rem;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: min(100vw, 22rem);
    background: #fff;
  }

  .topbar {
    padding: .9rem .95rem 1rem .7rem;
    background: rgba(255,255,255,.95);
  }

  .page-title-wrap h1,
  .topbar h1 {
    font-size: 1.2rem;
  }

  .page-body {
    padding: 1rem .95rem;
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }

  .mob-nav {
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
  }

  .mob-nav-item.mob-active {
    color: var(--ink);
  }

  .mob-menu-panel {
    background: #fff;
  }
}
