@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:400; font-display:swap; src:url('assets/fonts/jetbrains-mono-latin-400.woff2') format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:500; font-display:swap; src:url('assets/fonts/jetbrains-mono-latin-500.woff2') format('woff2'); }
@font-face { font-family:'Newsreader'; font-style:normal; font-weight:400; font-display:swap; src:url('assets/fonts/newsreader-latin-400.woff2') format('woff2'); }
@font-face { font-family:'Newsreader'; font-style:italic; font-weight:400; font-display:swap; src:url('assets/fonts/newsreader-latin-400i.woff2') format('woff2'); }
/* SecureBoard Dashboard — reference-style app shell (sugarcrm-inspired)
 * Soft gray canvas, nested white surfaces, floating icon rail, pill controls.
 * Color semantics unchanged: green=allow, yellow=flag, red=block, obsidian=terminal. */

:root {
  /* Awesomic palette */
  --color-obsidian: #09090b;
  --color-graphite: #18181b;
  --color-slate: #27272a;
  --color-iron: #3f3f46;
  --color-steel: #52525b;
  --color-fog: #71717a;
  --color-ash: #a1a1aa;
  --color-mist: #d4d4d8;
  --color-cloud: #ececee;
  --color-paper: #f4f4f5;
  --color-snow: #ffffff;
  --color-ember: #ff5a00;

  /* Monad surfaces (monad-design.md): warm parchment canvas, periwinkle elevation */
  --canvas: #f6f3f1;            /* Parchment — never pure white */
  --color-parchment: #f6f3f1;
  --color-lime: #c6f135;        /* Sussgate brand accent (logo lime) */
  --color-lime-deep: #a8d317;   /* hover/pressed variant */
  --color-lime-ink: #141414;    /* text on lime — dark, never white */
  --color-periwinkle: #cfdaf5;
  --color-sky: #a0b5eb;
  --color-mint: #a7fccd;
  --color-coral: #ff9473;
  --color-gold: #ecda98;
  --color-offblack: #242424;
  --color-ink: #000000;
  --color-graphite2: #4e4d4d;
  --color-smoke: #797776;
  --color-ashline: #cecac8;     /* 1px hairline everywhere */
  --surface-card: #f6f3f1;
  --surface-subtle-card: #efecea;
  --surface-nested: #eceae7;
  --lime-wash: #eef7d4;           /* brand-tinted surface */
  --lime-wash-deep: #e2f0b8;
  --surface-dark-surface: #242424;
  --surface-deep-dark: #1a1a1a;

  /* Typography: mono IS the brand voice; serif announces at weight 400 only */
  --font-cosmica: var(--font-mono-ui), 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: 'Newsreader', ui-serif, Georgia, Cambria, 'Times New Roman', serif;
  --text-caption: 12px;
  --leading-caption: 1.64;
  --text-body: 15px;
  --leading-body: 1.45;
  --text-body-lg: 18px;
  --text-subheading: 20px;
  --text-heading-sm: 32px;

  /* Spacing */
  --spacing-4: 4px; --spacing-8: 8px; --spacing-12: 12px; --spacing-16: 16px;
  --spacing-20: 20px; --spacing-24: 24px; --spacing-28: 28px; --spacing-32: 32px;
  --spacing-48: 48px; --spacing-64: 64px;

  /* Radii: pill-and-soft-rect, never sharp */
  --radius-cards: 40px;
  --radius-pills: 9999px;
  --radius-badges: 9999px;
  --radius-inputs: 100px;
  --radius-buttons: 100px;

  /* Status colors (semantics preserved) */
  --status-green-bg: #dcfce7;  --status-green-fg: #166534;  --status-green-border: #bbf7d0;
  --status-yellow-bg: #fef9c3; --status-yellow-fg: #854d0e; --status-yellow-border: #fde68a;
  --status-red-bg: #fee2e2;    --status-red-fg: #991b1b;    --status-red-border: #fecaca;

  /* Elevation */
  --shadow-card: 0 1px 2px rgba(9, 9, 11, 0.04), 0 8px 24px -14px rgba(9, 9, 11, 0.10);
  --shadow-pop: 0 2px 6px rgba(9, 9, 11, 0.06), 0 18px 44px -18px rgba(9, 9, 11, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--canvas);
  color: var(--color-offblack);
  font-family: var(--font-cosmica);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.4px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ================= APP SHELL ================= */
.shell { display: flex; min-height: 100vh; gap: 14px; padding: 14px 14px 14px 0; }

/* --- floating icon rail --- */
.rail {
  position: sticky; top: 14px; align-self: flex-start;
  width: 64px; height: calc(100vh - 28px);
  margin-left: 14px;
  background: var(--surface-card);
  border-radius: 26px;
  border: 1px solid var(--color-ashline);
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 0; gap: 6px;
  z-index: 30;
}
.rail .rail-logo {
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; color: var(--color-lime-ink);
  display: grid; place-items: center; font-weight: 500; font-size: 15px;
  margin-bottom: 10px;
}
.rail a.rail-item {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--color-fog); font-size: 17px;
  transition: background 0.12s ease, color 0.12s ease;
}
.rail a.rail-item:hover { background: var(--surface-nested); color: var(--color-graphite); }
.rail a.rail-item.active { background: var(--color-offblack); color: var(--color-parchment); }
.rail .rail-sep { width: 26px; height: 1px; background: var(--color-cloud); margin: 8px 0; }
.rail .rail-label { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ash); }
.rail .rail-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* --- main column --- */
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding-bottom: 14px; }

/* topbar */
.appbar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px;
  background: transparent;
}
.appbar .crumbs { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.appbar h1, .app-switcher-title { font-family: var(--font-serif); font-weight: 400 !important; }
.appbar h1 { font-size: 32px; color: var(--color-offblack); letter-spacing: -0.64px; line-height: 1.2; white-space: nowrap; }
.appbar .crumb-page { color: var(--color-fog); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .spacer { flex: 1; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-card); border: none; box-shadow: var(--shadow-card);
  display: inline-grid; place-items: center; cursor: pointer;
  color: var(--color-iron); font-size: 15px;
}
.icon-btn:hover { color: var(--color-obsidian); }

/* stage: one big soft card on parchment */
.stage {
  background: var(--surface-card);
  border: 1px solid var(--color-ashline);
  border-radius: var(--radius-cards);
  padding: 32px 36px 48px;
  min-height: 70vh;
}

/* ================= PAGE BITS ================= */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .titles h2 { font-family: var(--font-serif); font-weight: 400; font-size: 32px; letter-spacing: -0.64px; color: var(--color-offblack); }
.page-head .titles p { color: var(--color-graphite2); font-size: 14px; margin-top: 4px; }

/* filter toolbar */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 0 18px;
}
.toolbar select, .toolbar input[type='date'], .toolbar input[type='search'] {
  border-radius: var(--radius-pills); padding: 7px 14px; font-size: 13.5px;
  border: 1px solid var(--color-cloud); background: var(--surface-card); color: var(--color-graphite);
}
.toolbar .vs { color: var(--color-ash); font-size: 12px; }
.toolbar .spacer { flex: 1; }
.pill-toggle {
  display: inline-flex; align-items: center; line-height: 1;
  border-radius: var(--radius-pills); border: 1px solid var(--color-ashline);
  background: var(--color-parchment); color: var(--color-offblack);
  font-size: 12px; padding: 8px 16px; font-weight: 500; cursor: pointer;
  text-transform: uppercase; letter-spacing: -0.4px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pill-toggle:hover { border-color: var(--color-mist); }
.pill-toggle.active { background: var(--color-lime); border-color: var(--color-lime); color: var(--color-lime-ink); }

/* ================= SURFACES ================= */
.card {
  background: var(--surface-card);
  border: 1px solid var(--color-ashline);
  border-radius: var(--radius-cards);
  padding: 28px;
}
.panel {
  background: var(--surface-card);
  border: 1px solid var(--color-ashline);
  border-radius: var(--radius-cards);
  padding: 32px;
  margin-bottom: 24px;
}
/* the one elevated colored surface (hero panels) */
.panel.featured, .card.periwinkle { background: var(--lime-wash); border-color: rgba(198,241,53,0.5); }
.panel h2, .card h2 { font-family: var(--font-serif); font-weight: 400; font-size: 24px; letter-spacing: -0.48px; color: var(--color-offblack); margin-bottom: 6px; }
.dark-panel {
  background: var(--surface-dark-surface);
  color: var(--color-snow);
  border-radius: 22px;
  padding: 20px;
}
.dark-panel h2 { color: var(--color-snow); }
.dark-panel .muted { color: var(--color-ash); }

/* stat strip */
.stats-strip {
  display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-end;
  padding: 28px 32px; margin-bottom: 24px;
  background: var(--surface-card); border: 1px solid var(--color-ashline);
  border-radius: var(--radius-cards);
}
.stats-strip .stat .label { color: var(--color-smoke); font-size: 12px; text-transform: uppercase; letter-spacing: -0.4px; }
.stats-strip .stat .value { font-family: var(--font-serif); font-weight: 400; font-size: 40px; letter-spacing: -0.8px; color: var(--color-offblack); line-height: 1.2; margin-top: 2px; }
.stats-strip .stat .value.sm { font-size: var(--text-body-lg); }
.stats-strip .dim { color: var(--color-ash); font-weight: 500; }
.stats-strip .muted { font-size: 12.5px; color: var(--color-fog); margin-top: 2px; }
.trend-up { color: var(--status-red-fg); }
.trend-down { color: var(--status-green-fg); }
.stat-trend { margin-left: auto; }
.trend-bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; margin-top: 6px; }
.trend-bar { position: relative; width: 12px; background: var(--color-mist); border-radius: 3px 3px 0 0; display: block; }
.trend-block { position: absolute; bottom: 0; left: 0; right: 0; background: var(--color-obsidian); border-radius: 3px 3px 0 0; display: block; }
.stats-strip.skeleton span { display: block; height: 44px; background: var(--surface-card); border-radius: 12px; min-width: 120px; }

/* usage strip */
.usage-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 0 18px; }
.usage-strip strong { color: var(--color-obsidian); font-size: 15px; }
.usage-strip .progress-bar { width: 160px; margin-top: 0; }
.usage-strip button { padding: 6px 14px; font-size: 13px; }

/* cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 20px; }
.card .label { color: var(--color-steel); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.03em; }
.card .value { font-size: var(--text-heading-sm); font-weight: 700; color: var(--color-obsidian); margin-top: 4px; line-height: 1.12; }
.card .muted { color: var(--color-fog); font-size: var(--text-caption); }

/* ================= TABLES ================= */
.table-wrap { background: var(--color-parchment); border: 1px solid var(--color-ashline); border-radius: var(--radius-cards); overflow: hidden; }
table { width: 100%; border-collapse: collapse; background: transparent; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--color-ashline); }
tr:last-child td { border-bottom: none; }
th { color: var(--color-smoke); font-size: 12px; text-transform: uppercase; letter-spacing: -0.4px; font-weight: 400; background: transparent; }
tbody tr { transition: background 0.12s ease; }
tbody tr:hover { background: #efecea; }
td.mono, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }

/* ================= BADGES / PILLS ================= */
.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 9999px; font-size: 11px;
  font-weight: 500; line-height: 1.4; text-transform: uppercase; letter-spacing: -0.3px;
}
.badge.allow { color: var(--status-green-fg); background: var(--status-green-bg); border: 1px solid var(--status-green-border); }
.badge.flag { color: var(--status-yellow-fg); background: var(--status-yellow-bg); border: 1px solid var(--status-yellow-border); }
.badge.block { color: var(--status-red-fg); background: var(--status-red-bg); border: 1px solid var(--status-red-border); }
.badge.score-high { color: var(--status-red-fg); background: var(--status-red-bg); border: 1px solid var(--status-red-border); }
.badge.score-mid { color: var(--status-yellow-fg); background: var(--status-yellow-bg); border: 1px solid var(--status-yellow-border); }
.badge.score-low { color: var(--status-green-fg); background: var(--status-green-bg); border: 1px solid var(--status-green-border); }
.badge.plan { color: var(--color-graphite); background: transparent; border: 1px solid var(--color-cloud); border-radius: var(--radius-pills); }
.tag-pill {
  display: inline-block; background: transparent; border: 1px solid var(--color-cloud);
  color: var(--color-graphite); border-radius: var(--radius-badges);
  padding: 4px var(--spacing-8); font-size: 13px; margin: 2px;
}
.reason-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--color-fog);
  background: var(--surface-card); border: 1px solid var(--color-cloud);
  border-radius: var(--radius-badges); padding: 2px 8px; white-space: nowrap;
}
.reason-tag > span[aria-hidden] { color: var(--color-ash); font-size: 10.5px; }
.row-actions { white-space: nowrap; }
.row-actions a { font-size: 12.5px; color: var(--color-iron); text-decoration: underline; text-underline-offset: 2px; }
.row-actions a:hover { color: var(--color-obsidian); }

/* ================= FORMS ================= */
form.inline { display: flex; gap: var(--spacing-8); align-items: center; margin: var(--spacing-12) 0 var(--spacing-20); flex-wrap: wrap; }
input, select, textarea {
  background: var(--color-parchment); color: var(--color-offblack);
  border: 1px solid var(--color-ashline); border-radius: var(--radius-inputs);
  padding: 10px 18px; font-size: 14px; font-family: inherit;
}
input::placeholder { color: var(--color-ash); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--color-lime-deep); outline-offset: 2px; }
button, .btn {
  background: var(--color-offblack); color: var(--color-parchment);
  border: 1px solid var(--color-offblack); border-radius: var(--radius-buttons);
  padding: 12px 24px; font-size: 14px; font-weight: 500; cursor: pointer;
  text-transform: uppercase; letter-spacing: -0.28px;
  transition: transform 0.15s ease, background 0.15s ease;
}
button:hover:not(:disabled) { background: #000; color: var(--color-parchment); transform: translateY(-1px); }
button:active:not(:disabled) { transform: translateY(0) scale(0.98); }
button.primary { background: var(--color-lime); border-color: var(--color-lime); color: var(--color-lime-ink); }
button.primary:hover:not(:disabled) { background: var(--color-lime-deep); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.secondary {
  background: transparent; color: var(--color-offblack);
  border: 1px solid var(--color-offblack);
}
button.secondary:hover:not(:disabled) { background: rgba(36,36,36,0.06); }
button.danger {
  background: transparent; color: var(--color-iron);
  border: 1px solid var(--color-mist); box-shadow: none;
  padding: 4px var(--spacing-8); font-size: var(--text-caption);
}
button.danger:hover { border-color: var(--color-obsidian); color: var(--color-obsidian); }
.date-range { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.date-range input[type='date'] { border-radius: var(--radius-pills); padding: 6px 12px; font-size: 13px; border-color: var(--color-cloud); background: var(--surface-card); color: var(--color-graphite); }

/* progress */
.progress-bar { height: 8px; background: var(--surface-card); border-radius: var(--radius-pills); overflow: hidden; margin-top: var(--spacing-8); border: 1px solid var(--color-cloud); }
.progress-bar > div { height: 100%; background: var(--color-obsidian); border-radius: var(--radius-pills); }
.progress-bar.warn > div { background: var(--color-ember); }

/* messages */
.muted { color: var(--color-fog); }
.error {
  color: var(--color-obsidian); background: var(--surface-card);
  border: 1px solid var(--color-mist); border-left: 3px solid var(--color-ember);
  border-radius: var(--radius-badges); padding: var(--spacing-8) var(--spacing-12);
  margin: var(--spacing-8) 0; font-size: 14px;
}
.ok {
  color: var(--color-graphite); background: var(--surface-card);
  border: 1px solid var(--color-cloud); border-left: 3px solid var(--color-obsidian);
  border-radius: var(--radius-badges); padding: var(--spacing-8) var(--spacing-12);
  margin: var(--spacing-8) 0; font-size: 14px;
}
.newkey {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all;
  background: var(--surface-dark-surface); color: var(--color-snow);
  border: 1px dashed var(--color-iron); padding: var(--spacing-12) var(--spacing-16);
  border-radius: var(--radius-badges); margin: var(--spacing-8) 0; font-size: 13px;
}

/* ================= APP SWITCHER ================= */
.app-switcher { display: inline-flex; align-items: center; gap: 8px; position: relative; }
.app-switcher-title { font-size: 32px; font-weight: 400; color: var(--color-offblack); letter-spacing: -0.64px; margin: 0; line-height: 1.2; }
.app-switcher-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  background: transparent; border: 1px solid var(--color-offblack);
  border-radius: 50%;
  color: var(--color-offblack); cursor: pointer;
}
.app-switcher-btn:hover { color: var(--color-obsidian); }
.app-switcher-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; min-width: 240px;
  background: var(--color-parchment); border: 1px solid var(--color-ashline);
  border-radius: var(--radius-cards); padding: 8px;
}
.app-switcher-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%;
  background: transparent; border: none; box-shadow: none; cursor: pointer;
  padding: 9px 12px; border-radius: 12px; font-size: 14px; color: var(--color-graphite);
}
.app-switcher-item:hover { background: var(--surface-nested); }
.app-switcher-item.active { background: var(--color-lime); color: var(--color-lime-ink); }
.app-switcher-item.active .muted { color: var(--color-ash); }

/* ================= TOPBAR CONTROLS ================= */
.topbar-controls { display: inline-flex; gap: 10px; align-items: center; position: relative; }
.account-menu {
  position: absolute; right: 0; top: 46px; z-index: 60; width: 300px;
  background: var(--color-parchment); border: 1px solid var(--color-ashline);
  border-radius: var(--radius-cards); padding: 20px;
}

/* ================= TIMELINE ================= */
.tl-users { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tl-user {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--surface-card); border: 1px solid var(--color-cloud);
  border-radius: 16px; padding: 8px 12px; cursor: pointer; box-shadow: none;
  font-size: 13px; color: var(--color-graphite); max-width: 260px;
}
.tl-user.active { background: var(--color-obsidian); border-color: var(--color-obsidian); color: var(--color-snow); }
.tl-user.active .muted { color: var(--color-ash); }
.tl-user-main { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-signup {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface-card); border: 1px solid var(--color-cloud);
  border-radius: var(--radius-inputs); padding: 12px 16px;
}
.tl-list { list-style: none; border-left: 2px solid var(--color-cloud); margin-left: 6px; }
.tl-item { display: flex; gap: 12px; align-items: baseline; padding: 7px 0 7px 18px; position: relative; }
.tl-item::before { content: ''; position: absolute; left: -6px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--color-mist); border: 2px solid var(--surface-nested); }
.tl-item.tl-score::before { background: var(--color-obsidian); }
.tl-time { min-width: 86px; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.tl-body { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }

/* ================= JEV CONSOLE ================= */
.jev-json {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  line-height: 1.55; white-space: pre-wrap; word-break: break-word;
  max-height: 420px; overflow: auto;
  background: var(--surface-dark-surface); color: #e4e4e7;
  border-radius: var(--radius-badges); padding: var(--spacing-16);
  border: 1px solid rgba(255,255,255,0.06);
}
.jev-entry { border: 1px solid var(--color-cloud); border-radius: 20px; background: var(--surface-card); padding: var(--spacing-20); margin-bottom: var(--spacing-16); }
.jev-entry summary { cursor: pointer; font-weight: 600; color: var(--color-obsidian); list-style: none; display: flex; gap: var(--spacing-8); align-items: center; }
.jev-entry summary::-webkit-details-marker { display: none; }
.jev-meta { display: flex; gap: var(--spacing-8); flex-wrap: wrap; align-items: center; margin: var(--spacing-8) 0 var(--spacing-12); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-16); }
.jev-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.jev-card { background: var(--surface-card); border: 1px solid var(--color-cloud); border-radius: var(--radius-inputs); padding: 14px; }
.jev-card-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-steel); margin-bottom: 8px; }

/* simulator readout */
.sim-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.sim-counts { display: flex; gap: 12px; font-style: normal; font-weight: 600; }
.sim-bar { display: flex; height: 10px; border-radius: var(--radius-pills); overflow: hidden; margin-top: 8px; background: var(--surface-card); border: 1px solid var(--color-cloud); }
.sim-seg { height: 100%; }
.sim-seg.sim-allow { background: #34d399; }
.sim-seg.sim-flag { background: #fbbf24; }
.sim-seg.sim-block { background: #f87171; }

/* flow legend */
.flow-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.flow-legend { display: flex; gap: 14px; font-size: 12px; color: var(--color-steel); }
.flow-legend span { display: inline-flex; align-items: center; gap: 6px; }
.flow-legend i { width: 10px; height: 10px; border-radius: 4px; display: inline-block; }
.flow-breakdown { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--color-steel); }
.flow-breakdown .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.flow-breakdown .dot-green { background: #34d399; }
.flow-breakdown .dot-yellow { background: #f59e0b; }
.flow-breakdown .dot-red { background: #f87171; }
.flow-breakdown strong { color: var(--color-graphite); font-weight: 600; }
.flow-breakdown .eq, .flow-breakdown .plus { color: var(--color-ash); }
.flow-breakdown .sep { width: 1px; height: 14px; background: var(--color-cloud); margin: 0 6px; }
.flow-scroll-hint { display: none; font-size: 12px; color: var(--color-fog); margin-top: 4px; }

/* ================= LOGIN ================= */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: var(--spacing-32); background: var(--canvas); }
.login-card {
  width: 400px; background: var(--surface-card); border-radius: 28px;
  padding: var(--spacing-32); text-align: center; box-shadow: var(--shadow-pop);
}
.login-card h1 { font-size: var(--text-heading-sm); margin-bottom: var(--spacing-4); color: var(--color-obsidian); }
.login-card p { color: var(--color-steel); margin-bottom: var(--spacing-20); }
.login-card form { text-align: left; }
.login-card input { width: 100%; }
.login-card button { width: 100%; }

/* ================= MOBILE RAIL BAR (legacy hooks kept harmless) ================= */
.mobile-topbar { display: none; }
.drawer, .drawer-backdrop { display: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .shell { flex-direction: column; padding: 10px; gap: 10px; }
  .rail {
    position: static; width: 100%; height: auto; margin-left: 0;
    flex-direction: row; align-items: center; overflow-x: auto;
    padding: 8px 10px; gap: 4px; border-radius: 20px;
  }
  .rail .rail-logo { margin-bottom: 0; margin-right: 6px; }
  .rail .rail-sep { width: 1px; height: 26px; margin: 0 6px; }
  .rail .rail-label { display: none; }
  .rail .rail-foot { margin-top: 0; margin-left: auto; flex-direction: row; }
  .appbar { padding: 4px 6px 0; }
  .appbar h1 { font-size: 24px; }
  .stage { padding: 18px 16px 32px; border-radius: 22px; }
  .split { grid-template-columns: 1fr; }
  .jev-panels { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .stats-strip { gap: 20px; }
  .stat-trend { margin-left: 0; }
  .flow-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .flow-scroll svg { min-width: 900px; }
  .flow-scroll-hint { display: block; }
}
@media (max-width: 768px) {
  .signups-table thead { display: none; }
  .signups-table, .signups-table tbody, .signups-table tr, .signups-table td { display: block; width: 100%; }
  .signups-table tr { border-bottom: 1px solid var(--color-cloud); background: transparent; padding: 12px 0; }
  .signups-table td { border: none; padding: 3px 0; }
  .signups-table td[data-label]::before { content: attr(data-label); color: var(--color-fog); font-size: 11px; text-transform: uppercase; margin-right: 8px; }
  .signups-table td.tl-email { font-weight: 600; color: var(--color-obsidian); font-size: 15px; }
}

.toolbar-pill { border-radius: var(--radius-pills); padding: 7px 14px; font-size: 13.5px; border-color: var(--color-cloud); }

/* ================================================================
   MARKETING / LANDING — Awesomic system: paper canvas, snow cards,
   obsidian CTAs, ember accent reserved for badges. Cosmica→Inter.
   ================================================================ */
.mk-root { background: var(--color-parchment); color: var(--color-offblack); min-height: 100vh; }
.mk-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-32); }

/* nav */
.mk-nav {
  position: sticky; top: 0; z-index: 50; height: 80px;
  display: flex; align-items: center; gap: 28px;
  background: rgba(246,243,241,0.9); backdrop-filter: blur(12px);
  padding: 0 clamp(16px, 4vw, 48px);
}
.mk-brand { font-family: var(--font-cosmica); font-size: 21px; font-weight: 500; color: var(--color-offblack); letter-spacing: -0.6px; display: inline-flex; align-items: center; gap: 10px; }
.mk-brand span { color: var(--color-smoke); }
.mk-links { display: flex; gap: 26px; margin-left: auto; }
.mk-links a { font-size: 14px; color: var(--color-offblack); text-transform: uppercase; letter-spacing: -0.28px; }
.mk-links a:hover { color: var(--color-smoke); }
.mk-cta { display: flex; align-items: center; gap: 10px; }
.mk-ghost { font-size: 14px; color: var(--color-iron); padding: 8px 12px; }
.mk-ghost:hover { color: var(--color-obsidian); }

/* buttons — lake blue = the single primary action; black + ghost secondary */
.mk-blue-btn, .mk-dark-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--color-lime); color: var(--color-lime-ink);
  border: 1px solid var(--color-lime); border-radius: var(--radius-buttons);
  padding: 16px 32px; font-size: 14px; font-weight: 500; cursor: pointer;
  text-transform: uppercase; letter-spacing: -0.28px; line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease;
}
.mk-blue-btn::after { content: '▸'; font-size: 13px; color: var(--color-lime-ink); }
.mk-blue-btn:hover, .mk-dark-btn:hover { background: var(--color-lime-deep); border-color: var(--color-lime-deep); transform: translateY(-2px); }
.mk-black-btn {
  display: inline-flex; align-items: center; background: var(--color-offblack); color: var(--color-parchment);
  border: 1px solid var(--color-offblack); border-radius: var(--radius-buttons);
  padding: 16px 32px; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: -0.28px;
  transition: transform 0.18s ease;
}
.mk-black-btn:hover { background: #000; color: var(--color-parchment); transform: translateY(-2px); }
.mk-dark-btn.lg { padding: 18px 36px; font-size: 15px; }
.mk-dark-btn.wide { display: flex; justify-content: center; }
.mk-outline-btn {
  display: block; text-align: center; background: transparent;
  color: var(--color-offblack); border: 1px solid var(--color-offblack);
  border-radius: var(--radius-buttons); padding: 16px 32px; font-size: 14px; font-weight: 500;
  text-transform: uppercase; letter-spacing: -0.28px; transition: background 0.18s ease, transform 0.18s ease;
}
.mk-outline-btn:hover { background: rgba(36,36,36,0.06); transform: translateY(-2px); }
.mk-ghost { font-size: 14px; color: var(--color-offblack); padding: 8px 4px; text-transform: uppercase; letter-spacing: -0.28px; }

/* hero — pure typographic, centered, with atmospheric washes */
.mk-hero { padding: 120px 0 80px; position: relative; overflow: hidden; }
.mk-wash { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; pointer-events: none; }
.mk-wash.coral-sky { width: 560px; height: 420px; right: -120px; top: -80px; background: radial-gradient(circle at 30% 30%, var(--color-lime), rgba(255,255,255,0) 78%); animation: drift 14s ease-in-out infinite alternate; }
.mk-wash.sky-mint { width: 480px; height: 380px; left: -140px; bottom: -120px; background: radial-gradient(circle at 60% 40%, rgba(198,241,53,0.85), rgba(255,255,255,0) 80%); animation: drift 18s ease-in-out infinite alternate-reverse; }
.mk-hero-inner { position: relative; text-align: center; max-width: 900px; margin: 0 auto; padding: 0 24px; }
.mk-ember-badge {
  display: inline-block; background: transparent; color: var(--color-offblack);
  border: 1px solid var(--color-ashline); border-radius: 9999px;
  padding: 6px 16px; font-size: 12px; font-weight: 500;
  margin-bottom: 28px; text-transform: uppercase; letter-spacing: -0.4px;
}
.mk-ember-badge.sm { margin-bottom: 0; margin-block-end: 12px; }
.mk-display {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(44px, 7vw, 80px); line-height: 1.2;
  color: var(--color-offblack); letter-spacing: -1.6px; margin-bottom: 24px;
}
.mk-display em { font-style: italic; color: #7fae0d; }  /* deep lime: readable at display size on parchment */
.mk-lede { font-size: 20px; color: var(--color-graphite2); line-height: 1.35; letter-spacing: -0.4px; max-width: 60ch; margin: 0 auto; }
.mk-lede.center { margin: 8px auto 36px; text-align: center; }
.mk-capture { display: flex; justify-content: center; gap: 12px; margin: 36px auto 12px; max-width: 520px; }
.mk-capture input {
  flex: 1; background: #fff; border: 1px solid var(--color-ashline);
  border-radius: var(--radius-inputs); padding: 15px 22px; font-size: 14px;
}
.mk-fineprint { font-size: 12.5px; margin-top: 4px; }

/* product shot mock — pipeline-node language (mono pills + curved ash lines) */
.mk-shot {
  background: var(--color-parchment); border: 1px solid var(--color-ashline);
  border-radius: var(--radius-cards); padding: 20px; position: relative;
}
.mk-shot-bar { display: flex; gap: 6px; padding: 2px 4px 12px; }
.mk-shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #c9ccd3; }
.mk-shot-body { display: flex; gap: 10px; background: var(--color-paper); border-radius: 26px; padding: 10px; }
.mk-shot-rail {
  width: 46px; background: var(--surface-card); border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0;
}
.mk-shot-rail i {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  font-style: normal; font-size: 13px; color: var(--color-fog);
}
.mk-shot-rail i.on { background: var(--color-lime); color: var(--color-lime-ink); }
.mk-shot-main { flex: 1; background: var(--surface-card); border-radius: 20px; padding: 14px 16px; min-width: 0; }
.mk-shot-title { font-family: var(--font-serif); font-size: 20px; font-weight: 400; color: var(--color-offblack); margin-bottom: 12px; letter-spacing: -0.4px; }
.mk-shot-title b { color: var(--color-ash); font-weight: 400; margin-left: 2px; }
.mk-shot-title span { color: var(--color-fog); font-weight: 400; font-size: 12px; }
.mk-mini-flow { display: flex; align-items: center; gap: 4px; }
.mf-src { background: var(--color-paper); }
.mf-node {
  border-radius: 14px; padding: 10px 12px; font-size: 11.5px; font-weight: 600;
  color: var(--color-obsidian); display: flex; flex-direction: column; gap: 2px; min-width: 84px;
}
.mf-node b { font-size: 16px; }
.mf-node.ok { background: var(--color-mint); color: #14532d; }
.mf-node.warn { background: var(--color-gold); color: #713f12; }
.mf-node.bad { background: var(--color-lime); color: var(--color-lime-ink); }
.mf-links { width: 60px; height: 120px; flex-shrink: 0; }
.mf-col { display: flex; flex-direction: column; gap: 8px; }
.mk-shot-rows { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.mk-shot-rows span {
  display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--color-steel);
  background: var(--color-paper); border-radius: 10px; padding: 6px 10px;
}
.mk-shot-rows .badge { font-size: 10px; padding: 1px 7px; }
.mk-shot-rows em.badge { font-style: normal; margin-left: auto; }

/* stats row */
.mk-stats { padding: 8px 0 72px; }
.mk-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mk-stats-row > div {
  background: transparent; border: none;
  border-top: 1px solid var(--color-ashline);
  border-radius: 0; padding: 28px 8px;
}
.mk-stats-row b { font-family: var(--font-serif); font-weight: 400; font-size: 48px; letter-spacing: -0.96px; color: var(--color-offblack); display: block; line-height: 1.2; }
.mk-stats-row span { color: var(--color-graphite2); font-size: 14px; display: block; margin-top: 8px; }

/* generic section */
.mk-section { padding: 96px 0; }
.mk-h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; color: var(--color-offblack); letter-spacing: -0.96px; margin-bottom: 16px; }
.mk-h2.light { color: var(--color-parchment); }
.mk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.mk-step {
  background: transparent; border: 1px solid var(--color-ashline);
  border-radius: var(--radius-cards); padding: 40px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.mk-step:hover { border-color: var(--color-offblack); transform: translateY(-3px); }
.mk-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--lime-wash-deep); color: var(--color-offblack);
  display: grid; place-items: center; font-size: 14px; font-weight: 500; margin-bottom: 8px;
}
.mk-step h3 { font-family: var(--font-serif); font-weight: 400; font-size: 24px; letter-spacing: -0.48px; color: var(--color-offblack); }
.mk-step p { color: var(--color-graphite2); font-size: 15px; flex: 1; }
.mk-code {
  font-family: var(--font-cosmica); font-size: 12px; line-height: 1.6;
  background: var(--color-parchment); border: 1px solid var(--color-ashline); color: var(--color-offblack);
  border-radius: 16px; padding: 16px 18px; overflow-x: auto; white-space: pre;
}
.mk-code.dark { background: var(--color-offblack); color: var(--color-parchment); border-color: var(--color-offblack); }

/* dark feature band */
.mk-dark-band { background: var(--color-offblack); border-radius: var(--radius-cards); margin: 0 clamp(16px, 4vw, 48px); padding: 88px clamp(24px, 5vw, 64px); position: relative; overflow: hidden; }
.mk-dark-band::before { content: ''; position: absolute; right: -140px; top: -140px; width: 420px; height: 320px; border-radius: 50%; background: radial-gradient(circle, var(--color-sky), var(--color-mint)); filter: blur(70px); opacity: 0.35; pointer-events: none; }
.mk-arrows { list-style: none; margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
.mk-arrows li { position: relative; padding-left: 32px; color: var(--color-parchment); font-size: 18px; font-weight: 400; line-height: 1.35; letter-spacing: -0.4px; }
.mk-arrows li::before { content: '→'; position: absolute; left: 0; top: 2px; color: var(--color-mint); font-size: 16px; }

/* pricing */
.mk-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mk-plan {
  background: transparent; border: 1px solid var(--color-ashline);
  border-radius: var(--radius-cards); padding: 40px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.2s ease;
}
.mk-plan:hover { border-color: var(--color-offblack); }
.mk-plan.featured { background: linear-gradient(165deg, var(--lime-wash), #f4f8e6); border-color: rgba(198,241,53,0.6); position: relative; }
.mk-plan-name { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: -0.4px; color: var(--color-smoke); }
.mk-plan-price { font-family: var(--font-serif); font-weight: 400; font-size: 40px; letter-spacing: -0.8px; color: var(--color-offblack); line-height: 1.2; }
.mk-plan-price span { font-size: 13px; font-weight: 400; color: var(--color-fog); }
.mk-plan .mk-dark-btn, .mk-plan .mk-outline-btn { margin-top: 14px; }

/* final CTA */
.mk-cta-band { background: var(--color-offblack); border-radius: var(--radius-cards); margin: 0 clamp(16px, 4vw, 48px) 96px; padding: 96px 24px; position: relative; overflow: hidden; }
.mk-cta-band::before { content: ''; position: absolute; left: 50%; bottom: -220px; transform: translateX(-50%); width: 640px; height: 360px; border-radius: 50%; background: radial-gradient(circle, var(--color-lime), rgba(255,255,255,0)); filter: blur(80px); opacity: 0.35; pointer-events: none; }
.mk-cta-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mk-cta-center .mk-fineprint { color: var(--color-ash); }

/* footer */
.mk-footer { border-top: 1px solid var(--color-ashline); background: var(--color-parchment); padding: 32px 0; }
.mk-foot-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.mk-foot-links a { color: var(--color-iron); text-decoration: underline; text-underline-offset: 2px; }

/* responsive */
@media (max-width: 1024px) {
  .mk-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mk-steps, .mk-plans { grid-template-columns: 1fr 1fr; }
  .mk-stats-row { grid-template-columns: 1fr; }
  .mk-arrows { grid-template-columns: 1fr; }
  .mk-links { display: none; }
}
@media (max-width: 640px) {
  .mk-steps, .mk-plans { grid-template-columns: 1fr; }
  .mk-capture { flex-direction: column; }
  .mk-hero { padding: 48px 0 40px; }
}


/* ================================================================
   MOTION — entrance, reveal, ambient; all disabled under
   prefers-reduced-motion per accessibility guidance.
   ================================================================ */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-40px,26px,0) scale(1.08); } }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(198,241,53,0.55); } 50% { box-shadow: 0 0 0 7px rgba(198,241,53,0); } }
@keyframes flow-dash { to { stroke-dashoffset: -28; } }
@keyframes count-pop { from { transform: scale(0.94); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes menu-pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }

/* entrance on load (staggered via inline delays where set) */
.mk-hero-inner > * { animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.mk-hero-inner > *:nth-child(2) { animation-delay: 0.08s; }
.mk-hero-inner > *:nth-child(3) { animation-delay: 0.16s; }
.mk-hero-inner > *:nth-child(4) { animation-delay: 0.24s; }
.mk-hero-inner > *:nth-child(5) { animation-delay: 0.32s; }
.mk-shot { animation: fade-up 0.9s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* scroll reveal utility (IntersectionObserver adds .in) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* dashboard stage children cascade in on route change */
.stage > * { animation: fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.stage > *:nth-child(2) { animation-delay: 0.05s; }
.stage > *:nth-child(3) { animation-delay: 0.1s; }
.stage > *:nth-child(4) { animation-delay: 0.15s; }
.stats-strip .stat { animation: count-pop 0.5s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* rail + pills micro-interactions */
.rail a.rail-item { transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.rail a.rail-item:hover { transform: translateY(-2px); }
.rail .rail-logo { animation: pulse-dot 3s ease-in-out infinite; }
.app-switcher-menu, .account-menu { animation: menu-pop 0.18s ease-out both; }
.mf-links path { stroke-dasharray: 14 14; animation: flow-dash 1.6s linear infinite; }
.trend-bar { animation: fade-up 0.5s both; }
.trend-bars .trend-bar:nth-child(n) { animation-delay: calc(var(--i, 0) * 0.03s); }
.skeleton span, .stats-strip.skeleton span {
  background: linear-gradient(90deg, #efecea 25%, #e5e2df 50%, #efecea 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite linear;
}
tbody tr { animation: fade-in 0.35s ease both; }
button.primary::after { content: '▸'; margin-left: 8px; font-size: 12px; display: inline-block; transition: transform 0.15s ease; }
button.primary:hover::after { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}

.mk-shot-wrap { display: flex; justify-content: center; margin: 64px auto 0; padding: 0 clamp(16px, 4vw, 40px); position: relative; width: 100%; }
.mk-shot-wrap > * { flex: 1; min-width: 0; }
@media (min-width: 1280px) { .mk-shot-wrap { max-width: 1180px; } }
.mk-shot-wide .mk-shot-body { min-height: 320px; }
.mk-h2.center { text-align: center; }
.mk-section-head-center { text-align: center; }

.mk-black-btn.wide { display: flex; justify-content: center; }
.mk-blue-btn.lg { padding: 15px 30px; font-size: 14px; }


/* ================================================================
   LIVE FEED DEMO (landing) — friendly, zero-technical
   ================================================================ */
.mk-live {
  background: var(--color-parchment); border: 1px solid var(--color-ashline);
  border-radius: var(--radius-cards); padding: 28px 30px; text-align: left;
}
.mk-live-head { font-size: 12px; text-transform: uppercase; letter-spacing: -0.4px; color: var(--color-smoke); margin-bottom: 18px; }
.mk-feed { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feed-row {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--color-ashline); border-radius: 9999px;
  padding: 12px 18px; font-size: 14px; color: var(--color-offblack);
  opacity: 0; transform: translateY(14px);
  animation: feed-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.35s + var(--i, 0) * 0.5s);
}
@keyframes feed-in { to { opacity: 1; transform: none; } }
.feed-avatar { font-size: 20px; line-height: 1; }
.feed-mail { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-check { color: var(--color-smoke); font-size: 12px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-row .badge { flex-shrink: 0; }
.r-bot .badge.block { animation: stamp 0.45s 1.55s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.r-leech .badge.flag { animation: stamp 0.45s 2.05s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.r-human .badge.allow { animation: stamp 0.45s 1.05s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes stamp { 0% { transform: scale(1.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.mk-live-foot { margin-top: 16px; font-size: 12px; text-align: right; }

/* marquee word ticker under hero fine print */
.mk-ticker { overflow: hidden; border-block: 1px solid var(--color-ashline); padding: 14px 0; margin-top: 48px; background: transparent; }
.mk-ticker-track { display: inline-flex; gap: 48px; white-space: nowrap; animation: ticker 26s linear infinite; will-change: transform; }
.mk-ticker span { font-size: 13px; text-transform: uppercase; letter-spacing: -0.4px; color: var(--color-smoke); }
.mk-ticker b { color: #7fae0d; font-weight: 500; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* floating emoji badges around hero shot */
.mk-float { position: absolute; font-size: 22px; filter: grayscale(15%); animation: bob 5s ease-in-out infinite; }
.mk-float.f1 { top: -18px; left: 8%; animation-delay: 0.4s; }
.mk-float.f2 { bottom: -14px; right: 10%; animation-delay: 1.2s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }

/* gentle continuous breathing for the stage-like card */
.mk-shot-wrap .mk-live { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.mk-shot-wrap:hover .mk-live { transform: translateY(-4px); }

/* steps get a slow highlight sweep on hover */
.mk-step { position: relative; overflow: hidden; }
.mk-step::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(207,218,245,0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.9s ease; pointer-events: none;
}
.mk-step:hover::after { transform: translateX(120%); }

/* plan featured gentle pulse ring */
.mk-plan.featured { animation: glow-ring 4.5s ease-in-out infinite; }
@keyframes glow-ring {
  0%,100% { box-shadow: 0 0 0 0 rgba(198,241,53,0.0); }
  50% { box-shadow: 0 0 0 6px rgba(198,241,53,0.22); }
}

/* CTA arrow nudge */
.mk-blue-btn.lg { transition: transform 0.18s ease, background 0.18s ease; }
.mk-blue-btn.lg:hover { transform: translateY(-2px); }

/* ---------- landing mini flow demo (inside live card) ---------- */
.mk-flow-demo { display: flex; align-items: center; gap: 6px; margin-bottom: 22px; }
.fd-node {
  border-radius: 9999px; padding: 12px 18px; font-size: 13px; font-weight: 500;
  color: var(--color-offblack); white-space: nowrap;
  animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fd-src { background: #fff; border: 1px solid var(--color-ashline); animation-delay: 0.1s; }
.fd-node.ok { background: var(--color-mint); animation-delay: 0.5s; }
.fd-node.warn { background: var(--color-gold); animation-delay: 0.65s; }
.fd-node.bad { background: var(--color-lime); animation-delay: 0.8s; }
.fd-links { width: 90px; height: 150px; flex-shrink: 0; }
.fd-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 8; opacity: 0.9; }
.l-allow { stroke: #34d399; animation: flow-dash 1.4s linear infinite; }
.l-flag { stroke: #f59e0b; animation: flow-dash 1.4s linear infinite; }
.l-block { stroke: #f87171; animation: flow-dash 1.4s linear infinite; }
@media (max-width: 640px) {
  .mk-flow-demo { flex-direction: column; }
  .fd-links { width: 40px; height: 120px; transform: rotate(90deg); }
}


/* ================================================================
   MONAD PIPELINE DIAGRAM — one coordinate stage: SVG wires anchored
   to absolutely-placed pill nodes around a centered black hub.
   ================================================================ */
.mk-pipe {
  width: 100%; max-width: 1120px; margin: 0 auto;
  background: var(--color-parchment); border: 1px solid var(--color-ashline);
  border-radius: var(--radius-cards);
  padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 40px) calc(clamp(16px, 2.4vw, 26px) + 8px);
}
.pipe-stage { position: relative; width: 100%; aspect-ratio: 1000 / 420; min-height: 240px; }
.pipe-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.wire { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 9; animation: flow-dash 2.2s linear infinite; }
.w-ok { stroke: var(--color-lime-deep); }
.w-warn { stroke: #b9bcc2; }
.w-bad { stroke: var(--color-offblack); }
.pipe-halo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(167,252,205,0.7), rgba(167,252,205,0) 65%);
  filter: blur(14px); animation: halo-breathe 5s ease-in-out infinite;
}
@keyframes halo-breathe { 0%,100% { opacity: 0.8; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.1); } }
.pipe-node, .pipe-hub { position: absolute; z-index: 2; }
.pipe-node {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--color-parchment); border: 1px solid var(--color-ashline);
  border-radius: 9999px; padding: clamp(8px, 1.4vw, 13px) clamp(12px, 2vw, 22px);
  font-size: clamp(11px, 1.35vw, 15px); letter-spacing: -0.3px; color: var(--color-offblack);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
  animation: node-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.n-src { left: 2%; transform: translate(0, -50%); }
.n-out { right: 2%; transform: translate(0, -50%); justify-content: flex-end; }
.pipe-col .n-out:nth-of-type(1) { color: #4d7c0f; } /* welcome */
.pipe-col .n-out:nth-of-type(2) { color: #a16207; } /* review */
.pipe-col .n-out:nth-of-type(3) { color: var(--color-offblack); } /* blocked */
[data-pos="in-top"] { top: 20.5%; animation-delay: 0.15s; }
[data-pos="in-mid"] { top: 50%; animation-delay: 0.3s; }
[data-pos="in-low"] { top: 79.5%; animation-delay: 0.45s; }
[data-pos="out-top"] { top: 20.5%; animation-delay: 0.9s; }
[data-pos="out-mid"] { top: 50%; animation-delay: 1.05s; }
[data-pos="out-low"] { top: 79.5%; animation-delay: 1.2s; }
.pipe-node.ok { background: #eefaf3; border-color: #bfe8d2; }
.pipe-node.warn { background: #fdf6e3; border-color: #ecdcae; }
.pipe-node.bad { background: #fdefec; border-color: #f3cdbf; }
@keyframes node-in { from { opacity: 0; transform: translate(0,-50%) scale(0.94); } to { opacity: 1; transform: translate(0,-50%); } }
.pipe-hub {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--color-offblack); color: var(--color-parchment);
  border-radius: 9999px; padding: clamp(14px, 2.6vw, 26px) clamp(20px, 4vw, 44px);
  text-align: center; z-index: 3;
  animation: hub-pop 0.65s 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.pipe-hub b { font-family: var(--font-serif); font-weight: 400; font-size: clamp(15px, 2.2vw, 26px); letter-spacing: -0.5px; line-height: 1.1; }
.pipe-hub em { font-style: normal; font-size: clamp(9px, 1.1vw, 13px); color: var(--color-ash); }
.hub-dot { width: clamp(6px, 0.9vw, 10px); height: clamp(6px, 0.9vw, 10px); border-radius: 50%; background: var(--color-lime); animation: pulse-dot 2.4s ease-in-out infinite; }
@keyframes hub-pop { from { opacity: 0; transform: translate(-50%,-50%) scale(0.7); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
.pipe-caption { text-align: center; font-size: clamp(11px, 1.3vw, 14px); margin-top: clamp(10px, 2vw, 20px); }

/* small screens: switch to a vertical stack (pure CSS, same DOM) */
@media (max-width: 720px) {
  .pipe-stage { aspect-ratio: auto; height: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0; }
  .pipe-svg, .pipe-halo { display: none; }
  .pipe-node, .pipe-hub { position: static; transform: none !important; animation-name: fade-up; }
  @keyframes fade-up-mini { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }
  .n-src::before, .n-out::after { content: none; }
  .pipe-arrow { display: block; }
}


/* ================================================================
   HOW SECUREBOARD WORKS — monad-style alternating feature cards
   ================================================================ */
.how-stack { display: flex; flex-direction: column; gap: clamp(24px, 4vw, 48px); margin-top: 56px; }
.how-card {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
  border: 1px solid var(--color-ashline); border-radius: var(--radius-cards);
  padding: clamp(28px, 4vw, 48px); background: var(--color-parchment);
}
.how-card.periwinkle { background: linear-gradient(160deg, var(--lime-wash), #f2f7e2); border-color: rgba(198,241,53,0.55); }
.how-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: -0.4px; color: var(--color-smoke); display: block; margin-bottom: 14px; }
.how-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.64px; color: var(--color-offblack); margin-bottom: 14px; }
.how-card p { color: var(--color-graphite2); font-size: 15px; max-width: 52ch; }
.text-arrow { display: inline-block; margin-top: 18px; font-size: 14px; text-transform: uppercase; letter-spacing: -0.28px; color: var(--color-offblack); border-bottom: 1px solid var(--color-offblack); padding-bottom: 2px; transition: color 0.15s ease, border-color 0.15s ease; }
.text-arrow:hover { color: #7fae0d; border-color: #7fae0d; }
.how-art { display: flex; justify-content: center; min-width: 0; }

/* art 1: mini pipeline */
.art-pipe { position: relative; width: 100%; max-width: 420px; height: 280px; }
.art-pipe svg { position: absolute; inset: 24px 90px; width: calc(100% - 180px); height: calc(100% - 48px); overflow: visible; }
.art-pill { position: absolute; white-space: nowrap; background: var(--color-parchment); border: 1px solid var(--color-ashline); border-radius: 9999px; padding: 8px 14px; font-size: 12px; color: var(--color-offblack); box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset; }
.how-card.periwinkle .art-pill { background: #fff; }
.art-pill.src { left: 0; top: 50%; transform: translateY(-50%); }
.art-pill.ok { right: 0; top: 12%; }
.art-pill.warn { right: 0; top: 44%; }
.art-pill.bad { right: 0; bottom: 12%; }

/* art 2: verdict rows */
.art-verdicts { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 10px; }
.vd-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--color-ashline); border-radius: 9999px;
  padding: 10px 16px; font-size: 13px; color: var(--color-offblack);
  animation: fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.vd-row:nth-child(2) { animation-delay: 0.12s; }
.vd-row:nth-child(3) { animation-delay: 0.24s; }
.vd-row:nth-child(4) { animation-delay: 0.36s; }
.vd-row i { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-ghost { opacity: 0.55; border-style: dashed; }
.how-stats { display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap; }
.how-stats b { font-family: var(--font-serif); font-weight: 400; font-size: 28px; letter-spacing: -0.56px; color: var(--color-offblack); display: block; }
.how-stats span { font-size: 12px; color: var(--color-smoke); }

/* art 3: rule lines + switch */
.art-rules { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.rule-line {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid var(--color-ashline); border-radius: 9999px; padding: 12px 18px; font-size: 13px;
}
.rl-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.rl-dot.allow { background: #34d399; } .rl-dot.warn { background: #eab308; } .rl-dot.bad { background: #f87171; }
.rule-line i { font-style: normal; color: var(--color-smoke); }
.rule-line b { font-weight: 500; color: var(--color-offblack); margin-left: auto; }
.art-toggle { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 0 6px; font-size: 13px; color: var(--color-graphite2); }
.switch { width: 42px; height: 24px; border-radius: 9999px; background: var(--color-lime); position: relative; display: inline-block; box-shadow: inset 0 0 0 1px rgba(20,20,20,0.12); }
.switch::after { content: ''; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }

@media (max-width: 900px) {
  .how-card { grid-template-columns: 1fr; }
  .how-art { order: 2; }
}


/* ================================================================
   MONAD BENTO — "How SecureBoard Works" (screenshot-faithful)
   ================================================================ */
.bento { display: grid; grid-template-columns: 0.9fr 1.35fr; grid-auto-rows: auto; gap: clamp(16px, 2vw, 24px); margin-top: 56px; }
.bento-cell {
  border: 1px solid var(--color-ashline); border-radius: var(--radius-cards);
  background: var(--color-parchment); padding: clamp(24px, 3vw, 40px); position: relative; overflow: hidden;
}
.bc-icon { font-size: 22px; color: var(--color-offblack); display: inline-block; margin-bottom: 18px; line-height: 1; }
.bento-cell h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.56px; color: var(--color-offblack); margin-bottom: 12px; }
.bento-cell p { color: var(--color-graphite2); font-size: 14.5px; max-width: 46ch; }

/* tall pipeline cell */
.bc-pipeline { grid-row: span 2; display: flex; flex-direction: column; }
.bp-flow { margin-top: auto; padding-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.bp-node {
  width: min(280px, 100%); background: #fff; border: 1px solid rgba(206,202,200,0.6);
  border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 1px 2px rgba(36,36,36,0.05);
}
.bp-node i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--color-ashline); display: grid; place-items: center; font-size: 15px; background: var(--color-parchment); flex-shrink: 0; }
.bp-node b { font-size: 13.5px; font-weight: 500; color: var(--color-offblack); display: block; line-height: 1.2; }
.bp-node em { font-style: normal; font-size: 11px; color: var(--color-smoke); display: block; }
.bp-link { width: 2px; height: 22px; background: var(--color-mist); }
.bp-chip {
  background: #fff; border: 1.5px solid var(--color-lime-deep); color: #3f5a05;
  border-radius: 9999px; padding: 5px 14px; font-size: 12px; display: inline-flex; gap: 6px; align-items: center;
}
.bp-chip::before { content: '⛓'; font-size: 11px; }
.bp-fork { display: flex; gap: 10px; margin-top: 22px; width: 100%; justify-content: center; flex-wrap: wrap; }
.bp-leaf {
  flex: 1; min-width: 96px; background: #fff; border: 1px solid rgba(206,202,200,0.7); border-radius: 14px;
  padding: 10px 8px; text-align: center; font-size: 12px; color: var(--color-offblack); position: relative;
}
.bp-leaf small { display: block; color: var(--color-smoke); font-size: 10.5px; margin-top: 2px; }
.bp-leaf::before { content: ''; position: absolute; top: -14px; left: 50%; width: 1px; height: 14px; background: var(--color-mist); }
.bp-leaf.ok { background: linear-gradient(180deg, #f3fae0, #fff); }
.bp-leaf.warn { background: linear-gradient(180deg, #f7f7ef, #fff); }
.bp-leaf.bad { background: linear-gradient(180deg, #f4f4f4, #fff); }
/* soft corner wash on the tall card like the screenshot */
.bc-pipeline::after {
  content: ''; position: absolute; inset: auto -20% -30% -20%; height: 70%; z-index: -0; pointer-events: none;
  background: radial-gradient(60% 60% at 30% 40%, rgba(255,148,115,0.28), transparent 70%), radial-gradient(60% 60% at 70% 60%, rgba(198,241,53,0.35), transparent 70%);
  filter: blur(28px);
}

/* verdicts cell with gradient machine art */
.bc-verdicts { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: center; }
.bc-art { position: relative; height: 220px; display: grid; place-items: center; }
.art-blob { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--color-lime), rgba(255,255,255,0) 75%); opacity: 0.6; filter: blur(26px); animation: halo-breathe 6s ease-in-out infinite; }
.art-machine {
  position: relative; width: 130px; height: 150px; background: linear-gradient(160deg, #fff, var(--color-lime) 130%); box-shadow: inset 0 0 0 1px rgba(198,241,53,0.65);
  clip-path: polygon(0 0, 100% 0, 100% 18%, 82% 30%, 82% 70%, 100% 82%, 100% 100%, 0 100%, 0 82%, 18% 70%, 18% 30%, 0 18%);
  display: grid; place-items: center; animation: bob 7s ease-in-out infinite;
}
.am-dots { letter-spacing: 3px; color: var(--color-offblack); font-size: 20px; animation: spin-slow 9s linear infinite; display: inline-block; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.art-shape { position: absolute; border: 1.5px solid var(--color-ashline); }
.art-shape.pent { width: 34px; height: 34px; left: 8%; top: 18%; clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); background: #fff; animation: drift 9s ease-in-out infinite alternate; }
.art-shape.circle.blue { right: 6%; top: 14%; width: 26px; height: 26px; border-radius: 50%; background: var(--color-lime-deep); border: none; animation: drift 11s ease-in-out infinite alternate-reverse; }
.art-shape.dot.orange { right: 14%; bottom: 12%; width: 18px; height: 18px; border-radius: 50%; background: var(--color-lime-deep); border: none; animation: bob 6s 0.8s ease-in-out infinite; }

/* rules cell w/ green wash + mock rule card */
.bc-rules { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; }
.bc-rules::before { content: ''; position: absolute; inset: -30% -10% auto auto; width: 70%; height: 130%; background: radial-gradient(circle, rgba(167,252,205,0.55), transparent 65%); filter: blur(26px); pointer-events: none; }
.rules-mock { position: relative; z-index: 1; }
.rm-chips { display: flex; gap: 10px; margin-bottom: -14px; padding-left: 20px; }
.rm-chips span { background: #fff; border: 1.5px solid var(--color-lime-deep); color: #3f5a05; font-size: 12px; border-radius: 9999px; padding: 5px 14px; }
.rm-card { background: #fff; border-radius: 18px; box-shadow: 0 10px 30px -12px rgba(36,36,36,0.18); padding: 18px 20px; }
.rm-card > b { font-size: 14px; color: var(--color-offblack); display: block; margin-bottom: 12px; }
.rm-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--color-graphite2); padding: 8px 0; border-top: 1px dashed var(--color-cloud); }
.rm-row i { font-style: normal; color: var(--color-ash); font-size: 11px; }
.rm-row code { background: var(--color-parchment); border: 1px solid var(--color-cloud); border-radius: 8px; padding: 2px 8px; font-size: 11.5px; color: var(--color-offblack); }
.rm-row .tag { font-style: normal; background: #f4fbe0; border: 1px solid #ddf0ae; color: #3f5a05; border-radius: 8px; padding: 2px 8px; font-size: 11px; margin-left: 4px; white-space: nowrap; }
@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr; }
  .bc-pipeline { grid-row: auto; }
  .bc-verdicts, .bc-rules { grid-template-columns: 1fr; }
}

/* ================================================================
   WHY GRID — four pastel-wash cards (monad 'Why Teams Choose')
   ================================================================ */
.mk-section.tight { padding: 40px 0 96px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); margin-top: 40px; }
.why-card {
  border: 1px solid var(--color-ashline); border-radius: 24px; padding: clamp(24px, 3vw, 36px);
  position: relative; overflow: hidden; background: var(--color-parchment);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}
.why-card:hover { transform: translateY(-4px); border-color: var(--color-offblack); }
.why-card::before { content: ''; position: absolute; inset: -40% -20% auto -20%; height: 120%; filter: blur(30px); opacity: 0.8; pointer-events: none; }
.w-periwinkle::before { background: radial-gradient(50% 60% at 25% 20%, rgba(198,241,53,0.5), transparent 70%); }
.w-gold::before { background: radial-gradient(50% 60% at 30% 15%, rgba(198,241,53,0.32), transparent 72%); }
.w-coralsoft::before { background: radial-gradient(55% 60% at 25% 20%, rgba(198,241,53,0.42), transparent 72%); }
.w-orange::before { background: radial-gradient(55% 65% at 35% 25%, rgba(168,211,23,0.5), transparent 72%); }
.why-icon { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; font-size: 18px; color: var(--color-offblack); }
.why-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.5px; color: var(--color-offblack); margin-bottom: 10px; position: relative; }
.why-card p { color: var(--color-graphite2); font-size: 14.5px; position: relative; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* ================================================================
   FINAL CTA — big radial orange wash banner
   ================================================================ */
.mk-cta-band2 { position: relative; margin: 0 clamp(16px, 4vw, 48px) 96px; border-radius: var(--radius-cards); border: 1px solid var(--color-ashline); overflow: hidden; background: var(--color-parchment); }
.cta-wash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 130% at 50% 115%, rgba(198,241,53,0.85), rgba(240,248,214,0.55) 45%, transparent 72%), radial-gradient(60% 50% at 50% -10%, rgba(198,241,53,0.25), transparent 70%); }
.mk-cta-band2 .mk-cta-center { position: relative; padding: clamp(64px, 10vw, 120px) 24px; }
.mk-display.light2 { color: var(--color-offblack); }
.onwash { color: var(--color-graphite2); }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.mk-black-btn.solid { background: var(--color-offblack); border-color: var(--color-offblack); color: var(--color-parchment); }
.mk-black-btn.solid:hover { color: var(--color-parchment); }
.mk-white-btn { display: inline-flex; align-items: center; background: #fff; color: var(--color-offblack); border: 1px solid var(--color-ashline); border-radius: var(--radius-buttons); padding: 16px 32px; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: -0.28px; transition: transform 0.18s ease; }
.mk-white-btn:hover { transform: translateY(-2px); }


/* ================================================================
   ONE-LINE SETUP BAND (dark, typewriter code moment)
   ================================================================ */
.mk-setup-band {
  position: relative; overflow: hidden; background: var(--color-offblack);
  border-radius: var(--radius-cards); margin: 0 clamp(16px, 4vw, 48px) 96px;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 64px);
}
.mk-setup-band .cta-wash.dim { opacity: 0.22; }
.setup-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.how-kicker.light { color: var(--color-ash); }
.mk-setup-band .mk-h2.light { margin-bottom: 22px; }
.setup-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.setup-list li { color: #e7e5e4; font-size: 15.5px; display: flex; gap: 12px; align-items: baseline; }
.setup-list b { color: var(--color-mint); font-weight: 500; font-family: var(--font-cosmica); }
.setup-note { font-size: 13.5px; max-width: 46ch; margin-bottom: 26px; color: var(--color-ash); }

/* editor mock */
.setup-demo { position: relative; }
.sd-editor {
  background: #1c1c1f; border: 1px solid #333338; border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6); transform: rotate(-1.2deg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.setup-demo:hover .sd-editor { transform: rotate(0deg) translateY(-4px); }
.sd-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid #2c2c31; }
.sd-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3d3d44; }
.sd-bar span { margin-left: auto; font-size: 11px; color: #6f6f78; font-family: var(--font-cosmica); }
.sd-code { padding: 20px 22px; font-family: var(--font-cosmica); font-size: 13px; line-height: 2.1; display: flex; flex-direction: column; }
.sd-line { color: #8b8b94; white-space: nowrap; overflow: hidden; }
.sd-line.plain .sd-tag { color: #8b8b94; }
.sd-line.hl { position: relative; color: #e7e5e4; animation: type-in 2.6s steps(1,end) both; }
.sd-line.hl .sd-tag { color: var(--color-mint); }
.sd-caret { display: inline-block; width: 7px; height: 15px; background: var(--color-mint); vertical-align: middle; margin-right: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes type-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.sd-toast {
  position: absolute; right: -14px; bottom: -20px; display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--color-offblack); border-radius: 9999px; padding: 10px 18px;
  font-size: 13px; box-shadow: 0 14px 34px -12px rgba(0,0,0,0.5);
  animation: toast-pop 0.6s 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.sd-toast i { font-style: normal; }
@keyframes toast-pop { from { opacity: 0; transform: translateY(12px) scale(0.9); } to { opacity: 1; transform: none; } }
.sd-badge {
  position: absolute; left: -18px; background: #fff; border-radius: 9999px; padding: 8px 14px;
  font-size: 12px; color: var(--color-offblack); box-shadow: 0 12px 28px -12px rgba(0,0,0,0.5);
  animation: bob 6s ease-in-out infinite;
}
.sd-badge.ok { top: -18px; }
.sd-badge.bad { top: 46%; left: auto; right: -26px; animation-delay: 1.4s; }
@media (max-width: 980px) {
  .setup-grid { grid-template-columns: 1fr; }
  .sd-toast { right: 6px; }
}

/* brand lockups */
.brand-lockup { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-cosmica); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.brand-gate { color: var(--color-smoke); }
.rail .rail-logo { background: transparent; padding: 2px; }
.login-brand { display: flex; justify-content: center; align-items: center; margin-bottom: 4px; font-size: 26px !important; }

.pipe-node.n-out { gap: 10px; }
.pipe-node.n-out:first-of-type span, .pipe-node [data-dot] { }

/* monochrome glyph accents */
.bp-leaf.ok i, .pipe-node.n-out span { font-style: normal; }
.pipe-node.n-src, .pipe-node.n-out { letter-spacing: -0.2px; }
.bp-node i { border-color: var(--color-lime-deep); background: #f7fbea; }
.sd-badge.ok { color: #4d7c0f; } .sd-badge.bad { color: var(--color-offblack); }


/* ================================================================
   WAITLIST MODAL
   ================================================================ */
.wl-overlay {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(20,20,20,0.45); backdrop-filter: blur(6px);
  animation: fade-in 0.25s ease both; padding: 20px;
}
.wl-card {
  position: relative; width: min(440px, 92vw); display: flex; flex-direction: column; align-items: center;
  background: var(--color-parchment); border: 1px solid var(--color-ashline);
  border-radius: var(--radius-cards); padding: 40px 36px 30px; text-align: center;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.45);
  animation: wl-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes wl-pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
.wl-x {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: transparent; border: 1px solid var(--color-ashline); color: var(--color-smoke);
  display: grid; place-items: center; font-size: 13px; cursor: pointer; box-shadow: none; padding: 0;
}
.wl-x:hover { color: var(--color-offblack); border-color: var(--color-offblack); }
.wl-done h3 { margin-inline: auto; }
.wl-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 28px; letter-spacing: -0.56px; color: var(--color-offblack); margin-bottom: 8px; }
.wl-sub { font-size: 14px; margin-bottom: 22px; }
.wl-card input[type='email'] {
  width: 100%; border-radius: var(--radius-inputs); border: 1px solid var(--color-ashline);
  background: #fff; padding: 14px 20px; font-size: 15px; margin-bottom: 12px;
}
.wl-card input:focus { outline: 2px solid var(--color-lime-deep); outline-offset: 1px; }
.wl-card .mk-blue-btn.wide-btn, .wide-btn { width: 100%; justify-content: center; }
.wl-err { color: #b91c1c; font-size: 13px; margin: -4px 0 12px; }
.wl-fine { font-size: 12px; margin-top: 16px; }
.wl-done { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 100%; padding-top: 6px; }
.wl-done .wl-check-ring { width: 100%; display: flex; align-items: center; margin-bottom: 16px; }
.wl-done .wl-check-pad { flex: 1 1 0; }
.wl-done .wl-check { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--color-lime); color: var(--color-lime-ink); line-height: 0; transform-origin: 50% 50%; animation: wl-check-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes wl-check-pop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
.wl-done .mk-black-btn { margin-top: 4px; }
.wl-done p { margin: 6px 0 20px; font-size: 14px; }

.wl-open-form { display: inline-block; margin: 8px 0 4px; padding: 10px 20px; border-radius: var(--radius-buttons); background: var(--color-lime); color: var(--color-lime-ink); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: -0.28px; }
.wl-open-form:hover { background: var(--color-lime-deep); }

/* unlimited plan accent */
.mk-plan.unlimited .mk-plan-price { color: var(--color-offblack); }
.mk-plan.unlimited { border-color: rgba(168,211,23,0.55); }

.mk-made-with a { color: var(--color-offblack); text-decoration: underline; text-underline-offset: 2px; }
.mk-made-with a:hover { color: #7fae0d; border-color: #7fae0d; }

/* ---------- FAQ (AEO) ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); margin-top: 8px; }
.faq-item { border: 1px solid var(--color-ashline); border-radius: var(--radius-cards); padding: clamp(22px, 3vw, 34px); background: transparent; }
.faq-item h3 { font-family: var(--font-serif); font-weight: 400; font-size: 22px; letter-spacing: -0.44px; color: var(--color-offblack); margin-bottom: 10px; }
.faq-item p { color: var(--color-graphite2); font-size: 15px; line-height: 1.55; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }
