/* =============================================
   OPTONOMOUS - Proliferate-Inspired Design
   Restrained black/white/gray, typography-driven
   ============================================= */

:root {
  /* --- Type Scale --- */
  --text-xs:   clamp(0.6875rem, 0.65rem + 0.2vw, 0.8125rem);
  --text-sm:   clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl:   clamp(1.375rem, 1.1rem + 1vw, 2rem);
  --text-2xl:  clamp(1.75rem, 1rem + 2.5vw, 3.25rem);
  --text-hero: clamp(2.75rem, 1rem + 5.5vw, 6rem);

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

  /* --- Radius --- */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Content Widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1140px;

  /* --- Fonts --- */
  --font-display: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  /* --- Display type --- */
  /* Light weight + tight tracking is what carries the look; headings set at
     300 and only tighten as they get larger. */
  --display-weight: 300;
  --tracking-display: -0.03em;
  --tracking-tight: -0.02em;
}


/* =============================================
   LIGHT THEME (default)
   ============================================= */
:root, [data-theme="light"] {
  --color-bg:          #ffffff;
  --color-bg-alt:      #f5f5f5;
  --color-surface:     #fafafa;
  --color-border:      #e5e5e5;
  --color-border-subtle: #eeeeee;
  --color-text:        #0a0a0a;
  --color-text-secondary: #555555;
  --color-text-tertiary: #999999;
  --color-text-inverse: #ffffff;
  --color-accent:      #0a0a0a;
  --color-accent-hover: #333333;
  --color-success:     #0a0a0a;
  --color-warning:     #8A8F9A;
  --color-error:       #C2553A;

  /* No brand hue - the theme is black/white/gray. --color-brand stays defined
     so any consumer resolves to ink rather than an unset var. */
  --color-brand:       #0a0a0a;
  --color-brand-muted: rgba(10,10,10,0.06);
  --color-brand-text:  #0a0a0a;
  --color-positive:    #0a0a0a;
  --color-positive-bg: rgba(10,10,10,0.05);
  --color-negative:    #C2553A;
  --color-negative-bg: rgba(194,85,58,0.08);
  --color-caution:     #B08C3E;
  --color-caution-bg:  rgba(176,140,62,0.08);
  --color-neutral:     #8A8F9A;
  --color-neutral-bg:  rgba(138,143,154,0.08);
  --color-info:        #555555;
  --color-info-bg:     rgba(85,85,85,0.06);
}



/* =============================================
   LAYOUT
   ============================================= */

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 var(--space-8);
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}

.logo-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-text-secondary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn-demo {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
  transition: opacity var(--transition-interactive);
}

.btn-demo:hover {
  opacity: 0.8;
}

.btn-login {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}

.btn-login:hover {
  border-color: var(--color-text-tertiary);
  background: var(--color-surface);
}

/* --- Mobile menu --- */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-text);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--color-bg);
  padding: var(--space-6) var(--space-5);
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  color: var(--color-text-tertiary);
  transition: color var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              border-color var(--transition-interactive);
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* .btn-secondary is used in the markup on several pages but was never defined,
   so those buttons fell back to the UA's blue link styling. Same treatment. */
.btn-outline,
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  text-decoration: none;
}

.btn-outline:hover,
.btn-secondary:hover {
  border-color: var(--color-text-tertiary);
  background: var(--color-surface);
}


/* =============================================
   HERO
   ============================================= */
.hero {
  padding: clamp(var(--space-16), 10vw, var(--space-24)) var(--space-8) clamp(var(--space-12), 6vw, var(--space-20));
  text-align: center;
}

.hero-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking-display);
  line-height: 1;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.hero-sub {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}


/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-8);
}

.section.alt {
  background: var(--color-bg);
}



.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section-center {
  text-align: center;
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking-display);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

.section-center .section-desc {
  margin: 0 auto var(--space-12);
}


/* =============================================
   KPI ROW
   ============================================= */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.kpi {
  padding: var(--space-8) var(--space-6);
  text-align: center;
  border-right: 1px solid var(--color-border);
}

.kpi:last-child {
  border-right: none;
}

.kpi-value {
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  font-weight: var(--display-weight);
  color: var(--color-text);
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
}

.kpi-label {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-top: var(--space-2);
  font-weight: 500;
}


/* =============================================
   NUMBERED STEP CARDS (How It Works)
   ============================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.step-card {
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  margin-bottom: var(--space-5);
}

.step-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.step-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}


/* =============================================
   FEATURE CARDS (2-column)
   ============================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.feature-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.feature-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-3);
}

.feature-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.tag {
  font-size: 0.6875rem;
  padding: 3px var(--space-2);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-tertiary);
  font-weight: 500;
}


/* =============================================
   ARCHITECTURE - Pipeline
   ============================================= */
.arch-pipeline {
  display: flex;
  align-items: stretch;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.arch-step {
  flex: 1;
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-right: 1px solid var(--color-border);
}

.arch-step:last-of-type {
  border-right: none;
}

.arch-step-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.arch-step-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.arch-step-items span {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.3;
}

.arch-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-1);
  flex-shrink: 0;
  color: var(--color-text-tertiary);
}

.arch-arrow svg {
  width: 16px;
  height: 16px;
  opacity: 0.35;
}

/* --- Logo Banner (Proliferate-style) --- */
.logo-banner {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.logo-banner-title {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.logo-banner-desc {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  max-width: 480px;
  margin: 0 auto var(--space-8);
  line-height: 1.5;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-6) var(--space-8);
}

.logo-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

.logo-item svg {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  opacity: 0.55;
}


.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
}

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


/* =============================================
   WORKFLOW CARDS
   ============================================= */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.workflow-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.workflow-header {
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.workflow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  flex-shrink: 0;
}

.workflow-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
}

.workflow-steps {
  padding: 0;
  list-style: none;
}

.workflow-steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.workflow-steps li:last-child {
  border-bottom: none;
}

.wf-step-num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  padding-top: 2px;
  font-weight: 500;
}


/* =============================================
   DASHBOARD MOCK
   ============================================= */
.dashboard-mock {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: visible;
}

.dash-toolbar {
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-dot.red { background: #ef4444; }
.dash-dot.yellow { background: #eab308; }
.dash-dot.green { background: #22c55e; }

.dash-url {
  flex: 1;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
  margin-left: var(--space-2);
}

.dash-content {
  padding: var(--space-6);
}

.dash-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.dash-tab {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-tertiary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--transition-interactive);
}

.dash-tab.active {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

.dash-tab:hover:not(.active) {
  color: var(--color-text-secondary);
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.dash-kpi {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.dash-kpi-label {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-1);
  font-weight: 500;
}

/* Dense product-mock UI - stays at 600, not the 300 display weight, so the
   numbers hold up at widget scale. */
.dash-kpi-value {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--color-text);
}

.dash-kpi-delta {
  font-size: var(--text-xs);
  font-weight: 500;
  margin-top: var(--space-1);
}

.dash-kpi-delta.positive { color: var(--color-positive); }
.dash-kpi-delta.negative { color: var(--color-negative); }
.dash-kpi-delta.neutral { color: var(--color-neutral); }

.dash-table {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dash-table thead th {
  background: var(--color-bg-alt);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-table tbody td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-badge.pending { color: var(--color-warning); }
.status-badge.pending .status-dot { background: var(--color-warning); }
.status-badge.approved { color: var(--color-success); }
.status-badge.approved .status-dot { background: var(--color-success); }
.status-badge.escalated { color: var(--color-error); }
.status-badge.escalated .status-dot { background: var(--color-error); }

.action-btns { display: flex; gap: var(--space-2); }

.action-btn {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  transition: border-color var(--transition-interactive), color var(--transition-interactive);
}

.action-btn:hover {
  border-color: var(--color-text-tertiary);
  color: var(--color-text);
}


/* =============================================
   TIMELINE
   ============================================= */
.timeline {
  position: relative;
  padding-left: var(--space-10);
  max-width: 700px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-10) + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
}

.timeline-duration {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  font-weight: 500;
  margin-bottom: 2px;
}

.timeline-item h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--color-text);
}

.timeline-item p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}


/* =============================================
   STRETCH / ROADMAP
   ============================================= */
.stretch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.stretch-item {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.stretch-item h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.stretch-item p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}


/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  text-align: center;
  padding: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-8);
  position: relative;
  overflow: hidden;
}

.cta-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-body);
  font-size: clamp(4rem, 12vw, 14rem);
  font-weight: var(--display-weight);
  color: var(--color-border);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.03em;
  opacity: 0.5;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking-display);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.cta-banner p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}


/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) var(--space-8) var(--space-8);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.footer-brand .logo-text {
  margin-bottom: var(--space-3);
  display: block;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  max-width: 280px;
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-col a:hover {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.footer-bottom p,
.footer-bottom a {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.footer-bottom a {
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-bottom a:hover {
  color: var(--color-text-secondary);
}


/* =============================================
   TAB PANELS
   ============================================= */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}


/* =============================================
   PRICING
   ============================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.pricing-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: left;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-accent);
  border-width: 2px;
}

.pricing-badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-tier {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.pricing-price {
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking-display);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.pricing-period {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-tertiary);
}

.pricing-note {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.pricing-features li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  line-height: 1.4;
}

.pricing-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-tertiary);
  flex-shrink: 0;
  margin-top: 6px;
}

.pricing-card.featured .pricing-features li::before {
  background: var(--color-accent);
}

.pricing-overage {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-6);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-border);
  line-height: 1.5;
}

.pricing-addons {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.pricing-addons h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.addon-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.addon-price {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
}

.addon-name {
  font-size: var(--text-sm);
  font-weight: 600;
}

.addon-desc {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  line-height: 1.4;
}


/* =============================================
   ANIMATIONS
   ============================================= */
/* Scroll-triggered fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }
.fade-in:nth-child(6) { transition-delay: 0.4s; }


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-demo { display: none; }
  .btn-login { display: none; }
  .mobile-menu-btn { display: flex; }
  .site-header { padding: 0 var(--space-4); }
  .section { padding-left: var(--space-4); padding-right: var(--space-4); }
  .hero { padding-left: var(--space-4); padding-right: var(--space-4); }

  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-bottom: 1px solid var(--color-border); }
  .kpi:nth-child(2) { border-right: none; }

  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; }
  .stretch-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .addons-grid { grid-template-columns: 1fr; }

  .arch-pipeline { flex-direction: column; }
  .arch-step { border-right: none; border-bottom: 1px solid var(--color-border); }
  .arch-step:last-of-type { border-bottom: none; }
  .arch-arrow { padding: var(--space-2) 0; transform: rotate(90deg); }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }

  /* Dashboard mobile fix */
  .dashboard-mock { border-radius: var(--radius-md); }
  .dash-content { padding: var(--space-4); }
  .dash-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0; flex-wrap: nowrap; scrollbar-width: none; -ms-overflow-style: none; }
  .dash-tabs::-webkit-scrollbar { display: none; }
  .dash-tab { white-space: nowrap; padding: var(--space-2) var(--space-4); font-size: 13px; flex-shrink: 0; }
  .dash-toolbar { padding: var(--space-2) var(--space-3); }
  .dash-url { font-size: 10px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }

  .timeline { padding-left: var(--space-8); }
  .timeline-item::before { left: calc(-1 * var(--space-8) + 10px); }
}

@media (max-width: 480px) {
  .kpi-row { grid-template-columns: 1fr; }
  .kpi { border-right: none; }
  .dash-kpis { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; }
}


/* =================================================================
   MAKO LAYER
   Ports the mako site's design language onto Optonomous's markup:
   floating pill nav, 100vh video hero, left-aligned section heads,
   large soft surfaces, pill links. Appended last so it overrides the
   original centered/bordered treatments by source order.
   ================================================================= */
:root {
  --mk-maxw: 1536px;
  --mk-surface: #f7f7f8;
  --mk-surface-faint: rgba(0, 0, 0, 0.02);
  --mk-border: rgba(0, 0, 0, 0.10);
  --mk-border-soft: rgba(0, 0, 0, 0.05);
  --mk-muted: rgba(0, 0, 0, 0.55);
  --mk-faint: rgba(0, 0, 0, 0.45);
  --mk-radius: 1.5rem;
  --mk-radius-lg: 2rem;
  --mk-radius-xl: 3rem;
  --mk-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Floating nav ───────────────────────────────────────────────── */
.mk-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  pointer-events: none;
}
.mk-nav > * { pointer-events: auto; }
.mk-nav-left { display: flex; align-items: center; gap: 12px; }

.mk-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: #000;
}
.mk-logo-text {
  display: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mk-menu-btn {
  display: flex; align-items: center; gap: 8px;
  background: #000; border: none; border-radius: 9999px;
  padding: 3px 14px 3px 3px;
  cursor: pointer; font-family: inherit;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.mk-menu-btn:active { transform: scale(0.92); }
.mk-menu-circle {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 9999px; background: #fff; color: #000;
  transition: transform 0.3s ease;
}
.mk-menu-btn[data-open='true'] .mk-menu-circle { transform: rotate(45deg); }
.mk-menu-label { font-size: 11px; color: #fff; }

.mk-tags-pill {
  display: none; align-items: center; gap: 16px;
  background: #f4f4f6; border-radius: 9999px;
  padding: 11px 18px;
  font-size: 11px; color: rgba(0, 0, 0, 0.7);
}

.mk-cta-btn {
  display: flex; align-items: center; gap: 8px;
  background: #000; border-radius: 9999px;
  padding: 3px 15px 3px 3px;
  text-decoration: none; cursor: pointer;
  transition: opacity 0.2s ease;
}
.mk-cta-btn:hover { opacity: 0.85; }
.mk-cta-circle {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 9999px; background: #fff; color: #000;
}
.mk-cta-label {
  font-size: 11px; color: #fff;
  letter-spacing: 0.01em; white-space: nowrap;
}

/* ── Menu overlay ───────────────────────────────────────────────── */
.mk-overlay {
  position: fixed; inset: 0; z-index: 40;
  /* solid, not backdrop-blur - live blur over a playing video repaints every frame */
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  flex-direction: column; justify-content: center;
  padding: 96px 24px 48px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0.35s;
}
.mk-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mkLinkIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.mk-overlay .mk-overlay-link,
.mk-overlay .mk-overlay-meta { opacity: 0; }
.mk-overlay.open .mk-overlay-link,
.mk-overlay.open .mk-overlay-meta { opacity: 1; }
.mk-overlay.open .mk-overlay-link {
  animation: mkLinkIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.mk-overlay.open .mk-overlay-link:nth-child(1) { animation-delay: 0.06s; }
.mk-overlay.open .mk-overlay-link:nth-child(2) { animation-delay: 0.12s; }
.mk-overlay.open .mk-overlay-link:nth-child(3) { animation-delay: 0.18s; }
.mk-overlay.open .mk-overlay-link:nth-child(4) { animation-delay: 0.24s; }
.mk-overlay.open .mk-overlay-link:nth-child(5) { animation-delay: 0.30s; }
.mk-overlay.open .mk-overlay-link:nth-child(6) { animation-delay: 0.36s; }
.mk-overlay.open .mk-overlay-link:nth-child(7) { animation-delay: 0.42s; }
.mk-overlay.open .mk-overlay-meta {
  animation: mkLinkIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: 0.4s;
}
.mk-overlay-links {
  display: flex; flex-direction: column; gap: 4px;
  max-width: 1024px; width: 100%; margin: 0 auto;
}
.mk-overlay-link {
  display: flex; align-items: baseline; gap: 16px;
  text-decoration: none; color: #111;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.3;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.mk-overlay-link:hover { opacity: 0.5; transform: translateX(12px); }
.mk-overlay-num { font-size: 12px; font-weight: 400; color: rgba(0, 0, 0, 0.4); }
.mk-overlay-meta {
  max-width: 1024px; width: 100%; margin: 32px auto 0;
  font-size: 12px; color: var(--mk-faint);
}

/* ── Hero ───────────────────────────────────────────────────────── */
.mk-hero {
  position: relative;
  min-height: 100vh;
  background: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  color: #000;
}
.mk-video-layer {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
}
.mk-video-wrap { position: relative; width: 80%; height: 80%; }
.mk-video-wrap video { width: 100%; height: 100%; object-fit: cover; }
/* The video's near-white background never exactly matches page white, so at 80%
   size its rectangular edge shows on mobile. Feather it into the page. */
@media (max-width: 767px) {
  .mk-video-wrap::after {
    content: '';
    position: absolute; inset: -1px;
    pointer-events: none;
    box-shadow: inset 0 0 40px 32px #fff;
  }
}

.mk-hero-footer {
  position: relative; z-index: 30;
  margin-top: auto;            /* nav is fixed / out of flow, so this pins the block */
  display: flex; flex-direction: column; gap: 28px;
  padding: 48px 16px 28px;
  background: linear-gradient(to top, #fff 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
}
.mk-subtitle {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--mk-muted);
}
.mk-subtitle-dot {
  width: 8px; height: 8px; border-radius: 9999px;
  background: #000; flex-shrink: 0;
}
.mk-heading {
  margin: 14px 0 0;
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #000;
}
.mk-hero-btns { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.mk-hero-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mk-hero-tag {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 9999px;
  padding: 8px 14px;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.7);
}

/* Hero waitlist form sits inline with the buttons */
.mk-hero-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mk-hero-input {
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 9999px;
  padding: 12px 20px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.8);
  min-width: 240px;
}
.mk-hero-input:focus { outline: none; border-color: #000; }

/* ── Mako buttons ───────────────────────────────────────────────── */
.mk-btn {
  font-family: inherit;
  font-size: 13px;
  border-radius: 9999px;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.mk-btn-primary { background: #000; color: #fff; border: 1px solid #000; }
.mk-btn-primary:hover { opacity: 0.85; }
.mk-btn-secondary { background: transparent; color: #000; border: 1px solid rgba(0, 0, 0, 0.35); }
.mk-btn-secondary:hover { background: rgba(0, 0, 0, 0.05); }

/* Outline pill used beside section headings */
.mk-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #000; font-size: 14px;
  padding: 10px 20px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mk-pill:hover { background: #000; color: #fff; }

/* ── Sections: mako geometry + left-aligned heads ───────────────── */
.section {
  max-width: var(--mk-maxw);
  margin: 0 auto;
  padding: 1.5rem 0.75rem;
}
.section-inner { max-width: none; }
/* mako never centers a section head */
.section-center { text-align: left; }
.section-center .section-desc { margin: 0 0 var(--space-10); }

.section-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mk-faint);
  margin-bottom: 8px;
  text-align: left !important;   /* a few section labels carry inline centering */
}
.section-title {
  font-size: clamp(1.875rem, 1rem + 2.4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 36rem;
  margin-bottom: var(--space-4);
}
.section-desc { max-width: 40rem; color: var(--mk-muted); }

/* Head row: heading left, optional pill link right */
.mk-head {
  display: flex; flex-direction: column;
  gap: 1.5rem;
  padding: 0 0.5rem;
  margin-bottom: 2rem;
}

/* ── Cards: big soft surfaces, no hard borders ──────────────────── */
.feature-card,
.step-card,
.workflow-card,
.stretch-item,
.pricing-card,
.calc-panel,
.ac {
  background: var(--mk-surface);
  border: none;
  border-radius: var(--mk-radius);
  transition: box-shadow 0.3s ease;
}
.feature-card:hover,
.workflow-card:hover,
.pricing-card:hover {
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.06);
}

/* Metrics band - mako's bordered, very-soft panel */
.kpi-row {
  background: var(--mk-surface-faint);
  border: 1px solid var(--mk-border-soft);
  border-radius: var(--mk-radius-xl);
  padding: 2rem 1rem;
}
.kpi-value { font-weight: 300; letter-spacing: -0.03em; }
.kpi-label { color: var(--mk-muted); }

/* ── Full-bleed CTA with video ──────────────────────────────────── */
.mk-cta {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 0.75rem;
  background: #fff;
}
.mk-cta-inner {
  position: relative;
  width: 100%;
  max-width: var(--mk-maxw);
  min-height: 70vh;
  border-radius: var(--mk-radius);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.mk-cta-inner > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.mk-cta-content {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 6rem 1.5rem;
  color: #fff;
}
.mk-cta-content h2 {
  font-size: clamp(2.25rem, 1rem + 4vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 48rem;
  color: #fff;
}
.mk-cta-actions { margin-top: 2.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.mk-btn-light {
  background: #fff; color: #000;
  font-size: 14px; font-weight: 500;
  padding: 14px 24px; border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.mk-btn-light:hover { background: rgba(255, 255, 255, 0.9); }
.mk-btn-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 14px; font-weight: 500;
  padding: 14px 24px; border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.mk-btn-glass:hover { background: rgba(255, 255, 255, 0.22); }

/* ── Reveal ─────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--mk-ease), transform 0.55s var(--mk-ease);
}
.fade-in.visible { opacity: 1; transform: none; }

/* ── Desktop ────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .mk-nav { padding: 24px 32px; }
  .mk-logo-text { display: inline; }
  .mk-menu-circle, .mk-cta-circle { width: 32px; height: 32px; }
  .mk-tags-pill { display: flex; }

  .mk-video-wrap { width: 100%; height: 100%; }
  .mk-hero-footer {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 64px 32px 32px;
  }
  .mk-heading { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }

  .section { padding: 3rem 1.25rem; }
  .mk-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 1rem;
    margin-bottom: 3rem;
  }
  .kpi-row { padding: 4rem; }
  .mk-cta { padding: 1.25rem; }
  .mk-cta-inner { border-radius: var(--mk-radius-xl); }
  .feature-card, .workflow-card, .pricing-card, .calc-panel { border-radius: var(--mk-radius-lg); }
}

/* ── Card eyebrows: mako has no uppercase tracked labels ────────── */
.feature-label,
.calc-card-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mk-faint);
}
.feature-card h3,
.workflow-card h3,
.step-card h3 {
  font-size: clamp(1.5rem, 1rem + 1.2vw, 1.875rem);
  font-weight: 300;
  letter-spacing: -0.03em;
}
.feature-card p,
.workflow-card p,
.step-card p {
  color: var(--mk-muted);
  font-size: 14px;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.mk-footer {
  width: 100%;
  border-top: 1px solid var(--mk-border);
  background: #fff;
}
.mk-footer-inner {
  max-width: var(--mk-maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
}
.mk-footer-brand { max-width: 20rem; }
.mk-footer-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #000;
}
.mk-footer-brand p {
  margin-top: 0.75rem;
  font-size: 14px;
  color: var(--mk-muted);
  line-height: 1.6;
}
.mk-footer-legal {
  margin-top: 1.5rem !important;
  font-size: 12px !important;
  color: rgba(0, 0, 0, 0.35) !important;
}
.mk-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.mk-footer-head {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  margin-bottom: 1rem;
}
.mk-footer-cols ul { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.mk-footer-cols a {
  font-size: 14px;
  color: var(--mk-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}
.mk-footer-cols a:hover { color: #000; }

@media (min-width: 768px) {
  .mk-footer-inner { flex-direction: row; padding: 4rem 2.5rem; }
  .mk-footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4rem; }
}

/* ── Dashboard preview: calm it down ────────────────────────────────
   The mock was carrying uppercase tracked titles, traffic-light window
   dots and red/amber/green status semantics - all of which fight the
   monochrome theme. Scoped to #dashboard so it can't leak elsewhere. */
/* The mock paints bars, donuts and deltas via inline var(--color-*). Rather than
   chase each call site, remap those vars to a grayscale ramp inside the preview -
   data encoding survives, the traffic-light palette doesn't. */
#dashboard {
  --color-positive:    #0a0a0a;
  --color-brand:       rgba(0, 0, 0, 0.62);
  --color-negative:    rgba(0, 0, 0, 0.45);
  --color-caution:     rgba(0, 0, 0, 0.30);
  --color-info:        rgba(0, 0, 0, 0.36);
  --color-neutral:     rgba(0, 0, 0, 0.18);
  --color-positive-bg: rgba(0, 0, 0, 0.05);
  --color-negative-bg: rgba(0, 0, 0, 0.05);
  --color-caution-bg:  rgba(0, 0, 0, 0.05);
  --color-neutral-bg:  rgba(0, 0, 0, 0.05);
  --color-info-bg:     rgba(0, 0, 0, 0.05);
  --color-brand-muted: rgba(0, 0, 0, 0.05);
  --color-success:     #0a0a0a;
}

#dashboard .dash-card,
#dashboard .dash-panel {
  background: #fff;
  border: 1px solid var(--mk-border-soft);
  border-radius: 16px;
  box-shadow: none;
}
#dashboard .dash-card-title,
#dashboard .dash-panel-title,
#dashboard .dash-kpi-label,
#dashboard .dash-mini-kpi-label,
#dashboard .dash-bar-label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 13px;
  color: var(--mk-faint);
}
#dashboard .dash-card-big-number,
#dashboard .dash-kpi-value,
#dashboard .dash-mini-kpi-value {
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Trends and deltas read as ink, not traffic lights. (The old red down-arrow
   on "chargeback ratio ↓" was actively misleading - lower is better there.) */
#dashboard .dash-card-trend.up,
#dashboard .dash-card-trend.down,
#dashboard [style*="--color-positive"],
#dashboard [style*="--color-negative"] {
  color: var(--mk-muted) !important;
  font-weight: 400;
}

/* Status badges: monochrome outline pills */
#dashboard .dash-pill,
#dashboard .dash-pill-deflected,
#dashboard .dash-pill-active,
#dashboard .dash-pill-won,
#dashboard .dash-badge,
#dashboard .dash-status,
#dashboard .dash-tag {
  background: transparent !important;
  border: 1px solid var(--mk-border) !important;
  color: var(--mk-muted) !important;
  font-weight: 400 !important;
  border-radius: 9999px !important;
}

/* Browser chrome: neutral dots, not macOS traffic lights */
#dashboard .dash-dot,
#dashboard .dash-dot.red,
#dashboard .dash-dot.yellow,
#dashboard .dash-dot.green {
  background: rgba(0, 0, 0, 0.14);
}

/* Tab bar */
#dashboard .dash-tab {
  font-weight: 400;
  color: var(--mk-faint);
}
#dashboard .dash-tab.active {
  font-weight: 500;
  color: #000;
}

/* "Launching on" strip - label and logos share the left edge with every other
   section head, instead of the label hanging off to the left of centered logos. */
.mk-logos { padding: 0 0.5rem; }
.mk-logos .logo-row { justify-content: flex-start; margin-top: 0.75rem; }
@media (min-width: 768px) {
  .mk-logos { padding: 0 1rem; }
}
