/* =============================================================
   LEARNLYNK · OPERATOR
   v3 — clean technical product page, single accent, dense grid
   ============================================================= */

:root {
  --bg:        #fafaf7;
  --bg-2:      #f1efe8;
  --bg-3:      #e9e6dd;
  --surface:   #ffffff;
  --ink:       #0a0a0b;
  --ink-2:     #1f1f22;
  --ink-3:     #56565b;
  --ink-4:     #8a8a8f;
  --ink-5:     #b8b7af;
  --line:      #e5e2d6;
  --line-2:    #d6d3c4;

  --accent:    #d8521f;
  --accent-2:  #f8d8c8;
  --accent-soft: rgba(216, 82, 31, 0.10);

  --good:      #1c7a4f;
  --good-soft: #d6efe1;
  --warn:      #b86a00;
  --warn-soft: #fbe8c8;
  --bad:       #c0382b;
  --bad-soft:  #f7d9d4;

  --sans: 'Geist', -apple-system, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1320px;
  --pad: clamp(20px, 4vw, 56px);

  --r:  8px;
  --r2: 12px;

  --shadow-1: 0 1px 2px rgba(10,10,11,0.04), 0 2px 6px rgba(10,10,11,0.05);
  --shadow-2: 0 6px 18px rgba(10,10,11,0.07), 0 2px 4px rgba(10,10,11,0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  position: relative;
}

/* =============== TYPE =============== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow .num { color: var(--accent); }

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--ink);
  line-height: 1.05;
}

.h-display {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.h-display .accent { color: var(--accent); }
.h-display .underlined { box-shadow: inset 0 -0.18em 0 var(--accent-2); }

.h-section {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.h-section .accent { color: var(--accent); }

.h-card {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.lede {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-3);
  max-width: 56ch;
  letter-spacing: -0.005em;
}

.body { font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.body strong { color: var(--ink); font-weight: 500; }

.mono { font-family: var(--mono); }

/* =============== BUTTONS =============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn-arrow { transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-lg { padding: 13px 22px; font-size: 15px; }

/* =============== NAV =============== */
.nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 14px var(--pad);
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 250, 247, 0.92);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.018em;
}
.brand-logo {
  display: block;
  height: 38px;
  width: auto;
  object-fit: contain;
  /* Recolor the source PNG to ink (near-black) via brightness(0).
     The dark wordmark sits cleanly on the warm-paper bg without
     fighting the accent for attention. Override below for
     `.brand-on-dark` (white) when on a dark-card backdrop. */
  filter: brightness(0);
}
.nav .brand-logo { height: 38px; }
/* Stack-after-card sits on a black background — logo flips to white there.
   Everywhere else (nav, footer) the default filter above renders the
   wordmark in brand orange. */
.brand-on-dark .brand-logo {
  filter: brightness(0) invert(1);
}
/* legacy mark — keep so any stragglers still render */
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--ink);
  display: grid; place-items: center;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.nav-links {
  justify-self: center;
  display: flex; gap: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.nav-links a {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  color: var(--ink-3);
  transition: background .15s, color .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
@media (max-width: 980px) { .nav-links { display: none; } }

.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-signin {
  font-family: "Geist Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 4px;
  transition: color 150ms ease;
}
.nav-signin:hover { color: var(--accent); }

/* =============== HERO =============== */
.hero {
  padding: clamp(56px, 8vw, 96px) var(--pad) clamp(48px, 6vw, 72px);
  position: relative;
}
.hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1100px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-left { display: flex; flex-direction: column; gap: 24px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  align-self: flex-start;
}
.hero-pill .tag {
  background: var(--accent);
  color: white;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.hero-trust {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hero-trust .item {}
.hero-trust .v {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero-trust .v .accent { color: var(--accent); }
.hero-trust .l {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* =============== PRODUCT FRAME (hero right) =============== */
.pframe {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  height: 540px;
  display: flex;
  flex-direction: column;
}
.pframe-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.pframe-dots { display: flex; gap: 5px; }
.pframe-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.pframe-url {
  flex: 1; text-align: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
}
.pframe-url .acc { color: var(--accent); }
.pframe-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 0 8px;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.pframe-tabs::-webkit-scrollbar { display: none; }
.pframe-tab {
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}
.pframe-tab .ico {
  width: 14px; height: 14px;
  display: grid; place-items: center;
  color: var(--ink-4);
}
.pframe-tab:hover { color: var(--ink); }
.pframe-tab.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.pframe-tab.active .ico { color: var(--accent); }
.pframe-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.pframe-screen {
  position: absolute; inset: 0;
  padding: 18px 20px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
}
.pframe-screen.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.pframe-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--line);
  flex-shrink: 0;
  z-index: 5;
}
.pframe-progress-bar {
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: pframe-fill 6s linear infinite;
}
@keyframes pframe-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* shared screen header */
.scr-h {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.scr-h .t { font-size: 14px; font-weight: 600; letter-spacing: -0.012em; }
.scr-h .m {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
}
.scr-h .m .acc { color: var(--accent); }

/* === RECRUIT screen === */
.s-recruit {}
.s-recruit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.s-recruit-col h5 {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.s-recruit-col h5 .ct {
  background: var(--bg-2);
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
}
.lead-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 5px;
  font-size: 12px;
  opacity: 0;
  transform: translateX(-6px);
  animation: slide-in .3s ease forwards;
}
@keyframes slide-in { to { opacity: 1; transform: translateX(0); } }
.lead-row .av {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  display: grid; place-items: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.lead-row .nm { font-weight: 500; line-height: 1.1; }
.lead-row .pg {
  font-size: 10px;
  color: var(--ink-3);
}
.lead-row .sc {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}
.lead-row .sc.high { background: var(--accent-soft); color: var(--accent); }
.lead-row .sc.med  { background: var(--bg-2); color: var(--ink-2); }

.adv-row {
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 5px;
  position: relative;
}
.adv-row.routed {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.adv-row.routed::after {
  content: '+1';
  position: absolute;
  top: -8px; right: 8px;
  background: var(--accent);
  color: white;
  font-family: var(--mono);
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 600;
  animation: badge-pop .35s ease;
}
@keyframes badge-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.adv-row .top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.adv-row .nm { font-weight: 500; }
.adv-row .cap { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.adv-bar {
  height: 4px;
  background: var(--bg-2);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.adv-bar > span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: left;
  transition: width .8s cubic-bezier(.2,.7,.2,1);
}
.adv-row.routed .adv-bar > span { background: var(--accent); }

/* === ENROLL screen === */
.enroll-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.enroll-step {
  padding: 8px 8px 9px;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 11px;
  text-align: center;
  position: relative;
}
.enroll-step .n {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-4);
  margin-bottom: 2px;
}
.enroll-step.done { background: var(--ink); color: white; border-color: var(--ink); }
.enroll-step.done .n { color: var(--ink-5); }
.enroll-step.cur {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.enroll-step.cur .n { color: rgba(255,255,255,0.7); }

.check-list {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.check-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  animation: check-in .3s ease forwards;
}
.check-row:last-child { border-bottom: none; }
@keyframes check-in {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}
.check-row .ic {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.check-row.ok .ic   { background: var(--good-soft); color: var(--good); }
.check-row.bad .ic  { background: var(--bad-soft);  color: var(--bad); }
.check-row.run .ic  { background: var(--bg-2);      color: var(--ink-3); }
.check-row .lbl { color: var(--ink-2); font-size: 11.5px; }
.check-row.bad .lbl { color: var(--bad); font-weight: 500; }
.check-row .stat {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em;
  color: var(--ink-3);
}
.check-row.bad .stat { color: var(--bad); }

.block-banner {
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
}
.block-banner .tag {
  background: var(--bad);
  padding: 2px 7px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* === SCHEDULE screen === */
.sched-grid {
  display: grid;
  grid-template-columns: 56px repeat(5, 1fr);
  grid-template-rows: 24px repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  flex: 1;
  min-height: 0;
  font-size: 10px;
  position: relative;
  overflow: hidden;
}
.sched-cell {
  background: var(--surface);
  padding: 4px;
  position: relative;
  min-width: 0;
}
.sched-cell.head, .sched-cell.row-head {
  background: var(--bg-2);
  font-family: var(--mono);
  color: var(--ink-3);
  letter-spacing: 0.04em;
  font-size: 9.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.sched-cell.row-head { justify-content: flex-end; padding-right: 6px; }
.sched-block {
  position: absolute;
  inset: 2px;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 9.5px;
  color: white;
  font-weight: 500;
  letter-spacing: -0.005em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92);
  animation: pop-in .3s ease forwards;
  cursor: pointer;
  transition: transform .15s;
}
.sched-block:hover { transform: scale(1.02); }
@keyframes pop-in {
  to { opacity: 1; transform: scale(1); }
}
.sched-block .rm { font-size: 8.5px; opacity: 0.78; font-family: var(--mono); }
.sched-block.c-orange { background: var(--accent); }
.sched-block.c-ink    { background: var(--ink); }
.sched-block.c-blue   { background: #2c4178; }
.sched-block.c-green  { background: var(--good); }
.sched-block.c-amber  { background: #b86a00; }
.sched-block.c-plum   { background: #6b3a78; }

.sched-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex-shrink: 0;
}
.sched-stat {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}
.sched-stat .v {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.sched-stat .v .acc { color: var(--accent); }
.sched-stat .l {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3);
  margin-top: 1px;
}

/* === SIGN screen === */
.sign-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; flex: 1; min-height: 0;
}
.sign-doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sign-doc::before {
  content: '';
  position: absolute; top: 0; bottom: 0;
  left: 12px; width: 2px;
  background: var(--accent-soft);
}
.sign-doc h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.012em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.doc-line {
  height: 4px;
  background: var(--bg-2);
  border-radius: 1px;
}
.doc-line.s { width: 60%; }
.doc-line.m { width: 80%; }
.doc-fields { display: flex; flex-wrap: wrap; gap: 5px 6px; padding: 4px 0; }
.doc-field {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px dashed var(--accent);
}
.doc-field.filled {
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-style: solid;
}
.doc-field.filled::before {
  content: '✓ ';
  color: var(--good);
  font-weight: 600;
}
.sig-area {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sig-box {
  position: relative;
  height: 38px;
  border-bottom: 1px solid var(--ink);
}
.sig-box .lbl {
  position: absolute;
  bottom: -14px; left: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.sig-svg { position: absolute; bottom: 2px; left: 2px; width: 75%; height: 30px; }
.sig-svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: sig-draw 2s 0.4s cubic-bezier(.4,.1,.3,1) forwards;
}
@keyframes sig-draw { to { stroke-dashoffset: 0; } }

.audit-trail {
  display: flex; flex-direction: column; gap: 6px;
}
.audit-trail .lbl {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 2px;
}
.audit-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  border-radius: 4px;
  padding: 6px 9px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.audit-step.done {
  border-left-color: var(--good);
  background: var(--good-soft);
}
.audit-step.active {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}
.audit-step .l { font-weight: 500; color: var(--ink-2); }
.audit-step .ts {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-3);
}

.hash-pill {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.hash-pill .acc { color: var(--good); font-weight: 600; }

/* === COMPLY screen === */
.comply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
  min-height: 0;
}
.comply-rules {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.comply-rules .lbl {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  display: flex; justify-content: space-between;
}
.comply-rule {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 8px;
  font-size: 10.5px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0.55;
  transition: opacity .3s, color .3s;
}
.comply-rule:last-child { border-bottom: none; }
.comply-rule .id { color: var(--ink-3); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.04em; }
.comply-rule .l  { color: var(--ink-2); }
.comply-rule .s  { font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; color: var(--ink-3); }
.comply-rule.firing { opacity: 1; color: var(--accent); }
.comply-rule.firing .id, .comply-rule.firing .l, .comply-rule.firing .s { color: var(--accent); }
.comply-rule.passed { opacity: 0.85; }
.comply-rule.passed .s { color: var(--good); }

.comply-log {
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.comply-log .lbl {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
  font-weight: 500;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 4px;
  display: flex; justify-content: space-between;
}
.comply-log .lbl .live::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 5px;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }
.log-row {
  display: grid;
  grid-template-columns: 56px 60px 1fr;
  gap: 6px;
  font-size: 10px;
  opacity: 0;
  animation: log-in .3s ease forwards;
}
.log-row .ts { color: var(--ink-5); }
.log-row .kind { color: var(--accent); font-weight: 600; letter-spacing: 0.04em; }
.log-row .msg  { color: rgba(255,255,255,0.84); }
@keyframes log-in {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============== LOGOS strip =============== */
.logos {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.logos-track {
  display: flex;
  gap: 64px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}
.logos-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-right: 12px;
}
.logos-track .item {
  display: flex; align-items: center; gap: 8px;
  font-weight: 500;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: -0.018em;
  opacity: 0.78;
}
.logos-track .item .badge {
  width: 22px; height: 22px;
  background: var(--ink);
  color: white;
  border-radius: 5px;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* =============== SECTION =============== */
.section {
  padding: clamp(72px, 9vw, 120px) 0;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 20px; } }
.section-head .left { display: flex; flex-direction: column; gap: 12px; }
.section-divided { border-top: 1px solid var(--line); }

/* =============== EXPLORER (modules tabbed) =============== */
.explorer {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 1000px) { .explorer { grid-template-columns: 1fr; } }

.exp-tabs {
  display: flex; flex-direction: column;
  gap: 6px;
}
.exp-tab {
  display: grid;
  grid-template-columns: 28px 1fr 32px;
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r2);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: background .18s, border-color .18s, transform .18s;
  position: relative;
}
.exp-tab:hover { background: var(--surface); border-color: var(--line); }
.exp-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.exp-tab-num {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  align-self: start;
  padding-top: 3px;
}
.exp-tab.active .exp-tab-num { color: rgba(255,255,255,0.5); }
.exp-tab-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.exp-tab-name {
  font-size: 15px; font-weight: 600; letter-spacing: -0.012em;
  display: flex; align-items: center; gap: 6px;
}
.exp-tab-d {
  font-size: 12px; color: var(--ink-3); font-weight: 500;
}
.exp-tab.active .exp-tab-d { color: rgba(255,255,255,0.65); }
.ai-pip {
  display: inline-block;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  background: var(--accent); color: white;
  padding: 2px 5px; border-radius: 3px;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.exp-tab.active .ai-pip { background: white; color: var(--accent); }
.exp-tab-ring {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.exp-tab-ring svg { width: 28px; height: 28px; transform: rotate(-90deg); }
.exp-tab-ring circle {
  fill: none; stroke: var(--line-2); stroke-width: 1.5;
}
.exp-tab-ring circle.prog {
  stroke: var(--ink-4);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.exp-tab.active .exp-tab-ring circle { stroke: rgba(255,255,255,0.18); }
.exp-tab.active .exp-tab-ring circle.prog {
  stroke: var(--accent);
  animation: ring-prog 7s linear forwards;
}
.exp-tab.active.paused .exp-tab-ring circle.prog {
  animation-play-state: paused;
}
@keyframes ring-prog {
  to { stroke-dashoffset: 0; }
}

.exp-stage {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 540px;
}
.exp-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--ink-7);
  border-bottom: 1px solid var(--line);
}
.exp-bar-c {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.exp-bar-mod { color: var(--ink); font-weight: 600; text-transform: uppercase; }
.exp-bar-sep { color: var(--ink-4); }
.exp-bar-r { display: flex; align-items: center; gap: 8px; }
.exp-btn-pause {
  width: 24px; height: 24px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 4px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}
.exp-btn-pause:hover { color: var(--ink); border-color: var(--line-2); }

.exp-screens {
  flex: 1;
  position: relative;
  background: var(--ink-7);
}
.exp-screen {
  position: absolute; inset: 0;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  display: flex; flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.exp-screen.active {
  opacity: 1;
  pointer-events: auto;
}

.dot-live {
  display: inline-block; width: 7px; height: 7px;
  background: #1c7a4f; border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(28,122,79,0.4);
  animation: pulse-live 1.6s ease-out infinite;
}
@keyframes pulse-live {
  0%   { box-shadow: 0 0 0 0 rgba(28,122,79,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(28,122,79,0); }
  100% { box-shadow: 0 0 0 0 rgba(28,122,79,0); }
}

/* ========== RECRUIT ========== */
.rec-h, .enr-h, .sch-h, .cmp-h, .fin-h, .out-h, .cop-h {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rec-h-l, .enr-h-l, .sch-h-l, .cmp-h-l, .fin-h-l, .out-h-l, .cop-h-l { color: var(--ink); font-weight: 600; }
.rec-board {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 10px;
  flex: 1;
  min-height: 0;
}
.rec-col {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r1);
  padding: 12px;
  display: flex; flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.rec-col-h {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-4); text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.rec-col-h .ct {
  background: var(--ink); color: white;
  padding: 1px 6px; border-radius: 3px;
  font-size: 10px;
}
.rec-leads { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; }
.rec-lead {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center;
  padding: 8px 10px;
  background: var(--ink-7);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform .5s cubic-bezier(.4,1.4,.6,1), opacity .3s;
}
.rec-lead.routing {
  transform: translateX(120%);
  opacity: 0;
}
.rec-lead .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: white;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.rec-lead .info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rec-lead .nm { font-size: 12.5px; font-weight: 600; }
.rec-lead .pg { font-size: 10.5px; color: var(--ink-3); }
.rec-lead .sc {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--score, var(--ink));
  background: white;
  border: 1px solid var(--line);
  padding: 3px 7px; border-radius: 4px;
}
.rec-arrow { display: flex; align-items: center; justify-content: center; }
.rec-arrow svg { width: 100%; height: 80%; opacity: .5; }
.rec-advisors { gap: 10px; }
.rec-adv {
  background: var(--ink-7);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  position: relative;
}
.rec-adv-h {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px;
}
.rec-adv-h .nm { font-weight: 600; }
.rec-adv-h .cap { font-family: var(--mono); font-weight: 700; color: var(--ink); margin-left: auto; padding-right: 1px; }
.rec-adv-h .cap-sm { font-family: var(--mono); font-size: 10px; color: var(--ink-4); }
.rec-adv-bar {
  height: 4px; background: var(--line); border-radius: 2px; margin-top: 6px;
  overflow: hidden;
}
.rec-adv-bar span { display: block; height: 100%; background: var(--ink); transition: width .5s; }
.rec-adv.flash .rec-adv-bar span { background: var(--accent); }
.rec-adv-pill {
  position: absolute; right: 10px; top: -8px;
  background: var(--accent); color: white;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  padding: 2px 5px; border-radius: 3px;
  opacity: 0; transform: scale(.7);
  transition: opacity .2s, transform .2s;
  letter-spacing: 0.04em;
}
.rec-adv-pill.show { opacity: 1; transform: scale(1); }

/* ========== ENROLL ========== */
.enr-funnel {
  display: flex; flex-direction: column;
  gap: 6px;
}
.enr-step {
  display: grid;
  grid-template-columns: 160px 1fr 50px;
  gap: 12px; align-items: center;
  font-size: 12px;
}
.enr-step-l { color: var(--ink); font-weight: 500; }
.enr-step.accent .enr-step-l { font-weight: 700; }
.enr-step-bar {
  height: 24px; background: white; border: 1px solid var(--line); border-radius: 4px;
  position: relative; overflow: hidden;
}
.enr-step-bar span {
  display: block; height: 100%; background: var(--ink-2);
  width: 0; transition: width .9s cubic-bezier(.2,.6,.2,1);
}
.enr-step.accent .enr-step-bar span { background: var(--accent); }
.enr-step-v { font-family: var(--mono); font-weight: 700; font-size: 12px; text-align: right; }
.enr-block {
  background: white; border: 1px solid var(--line); border-radius: var(--r1);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  margin-top: auto;
}
.enr-block-h { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.enr-block-h .tag {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  background: var(--accent); color: white;
  padding: 3px 6px; border-radius: 3px; letter-spacing: 0.06em;
}
.enr-block-list { display: flex; flex-direction: column; gap: 4px; }
.enr-blk-row {
  display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center;
  font-size: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.enr-blk-row .ic {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); color: white;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.enr-blk-row .ct { font-family: var(--mono); font-weight: 700; }

/* ========== SCHEDULE ========== */
.sch-board {
  background: white; border: 1px solid var(--line); border-radius: var(--r1);
  padding: 12px;
  display: grid;
  grid-template-columns: 36px repeat(5, 1fr);
  grid-template-rows: 22px repeat(8, 1fr);
  gap: 3px;
  flex: 1;
  min-height: 240px;
}
.sch-cell-h, .sch-cell-time {
  font-family: var(--mono); font-size: 9.5px;
  color: var(--ink-4); letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center;
}
.sch-cell {
  background: var(--ink-7);
  border-radius: 3px;
  position: relative;
  min-height: 16px;
}
.sch-block {
  position: absolute; inset: 1px;
  border-radius: 3px;
  font-family: var(--mono); font-size: 9px;
  color: white;
  padding: 3px 5px;
  opacity: 0; transform: scale(.7);
  transition: opacity .25s, transform .25s;
  display: flex; align-items: flex-start;
  font-weight: 600;
}
.sch-block.show { opacity: 1; transform: scale(1); }
.sch-foot {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 6px;
}
.sch-stat { display: flex; flex-direction: column; gap: 2px; }
.sch-stat .v { font-family: var(--mono); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.sch-stat .v.acc { color: var(--accent); }
.sch-stat .l { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }

/* ========== SIGN ========== */
.sgn-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px;
  flex: 1; min-height: 0;
}
.sgn-doc {
  background: white; border: 1px solid var(--line); border-radius: var(--r1);
  padding: 22px 26px;
  display: flex; flex-direction: column; gap: 9px;
  font-family: 'Geist', sans-serif;
}
.sgn-doc-h { font-size: 14px; font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sgn-line { background: var(--line); border-radius: 1px; }
.sgn-line.m { height: 5px; width: 96%; }
.sgn-line.s { height: 5px; width: 70%; }
.sgn-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 10px; margin: 6px 0; }
.sgn-f {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-4);
  padding: 6px 10px;
  background: var(--ink-7);
  border-radius: 3px;
  position: relative;
  border: 1px dashed var(--line);
  transition: all .3s;
}
.sgn-f.filled {
  background: white;
  border: 1px solid var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.sgn-sig {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.sgn-sig svg { width: 200px; height: 50px; }
.sgn-sig path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: stroke-dashoffset 1.6s ease-in-out;
}
.sgn-sig.signed path { stroke-dashoffset: 0; }
.sgn-l { font-family: var(--mono); font-size: 9.5px; color: var(--ink-4); letter-spacing: 0.04em; }
.sgn-side {
  background: var(--ink); color: white;
  border-radius: var(--r1); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--mono); font-size: 11px;
}
.sgn-side-h, .cop-side-h {
  font-size: 9.5px; font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 8px;
}
.sgn-events { display: flex; flex-direction: column; gap: 5px; flex: 1; min-height: 100px; }
.sgn-evt {
  display: grid; grid-template-columns: 50px 1fr; gap: 8px;
  font-size: 10px;
  padding: 5px 0;
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s, transform .3s;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sgn-evt.show { opacity: 1; transform: none; }
.sgn-evt .t { color: rgba(255,255,255,0.4); }
.sgn-evt .l { color: rgba(255,255,255,0.92); }
.sgn-evt .l b { color: var(--accent); }
.sgn-hash {
  display: flex; flex-direction: column; gap: 3px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  margin-top: auto;
}
.sgn-hash .lbl { font-size: 9px; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; }
.sgn-hash .hash { font-size: 10px; color: var(--accent); word-break: break-all; }

/* ========== COMPLY ========== */
.cmp-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px;
  flex: 1; min-height: 0;
}
.cmp-rules {
  background: white; border: 1px solid var(--line); border-radius: var(--r1);
  padding: 6px 0;
  overflow: hidden;
}
.cmp-rule {
  display: grid; grid-template-columns: 60px 1fr 22px; gap: 10px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  position: relative;
  transition: background .3s;
}
.cmp-rule:last-child { border-bottom: none; }
.cmp-rule.firing { background: rgba(216,82,31,0.06); }
.cmp-rule.passed { background: rgba(28,122,79,0.05); }
.cmp-rule .rid { font-family: var(--mono); font-size: 10px; color: var(--ink-4); font-weight: 600; }
.cmp-rule .rl  { color: var(--ink); font-weight: 500; }
.cmp-rule .rs  {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; color: var(--ink-4);
  background: white;
}
.cmp-rule.passed .rs { background: #1c7a4f; color: white; border-color: #1c7a4f; }
.cmp-rule.failed .rs { background: var(--accent); color: white; border-color: var(--accent); }
.cmp-feed {
  background: var(--ink); color: white;
  border-radius: var(--r1);
  padding: 14px 14px;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono); font-size: 10.5px;
  overflow: hidden;
}
.cmp-feed-h {
  font-size: 9.5px; font-weight: 600; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cmp-evt {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 8px;
  padding: 4px 0;
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}
.cmp-evt.show { opacity: 1; transform: none; }
.cmp-evt .t { color: rgba(255,255,255,0.4); font-size: 9.5px; }
.cmp-evt .l { color: rgba(255,255,255,0.92); }
.cmp-evt .l b { color: var(--accent); }
.cmp-evt.ok .l b { color: #6ed397; }

/* ========== FINANCE ========== */
.fin-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px;
  flex: 1; min-height: 0;
}
.fin-chart, .fin-plans {
  background: white; border: 1px solid var(--line); border-radius: var(--r1);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.fin-chart-h, .fin-plans-h {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-4); letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600;
}
.fin-bars {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px; flex: 1; align-items: end;
  min-height: 160px;
}
.fin-bar { display: flex; flex-direction: column; gap: 6px; align-items: center; height: 100%; justify-content: end; }
.fin-bar .b {
  width: 100%;
  background: var(--ink-2);
  border-radius: 3px 3px 0 0;
  height: 0;
  transition: height .8s cubic-bezier(.2,.6,.2,1);
}
.fin-bar.accent .b { background: var(--accent); }
.fin-bar .l { font-family: var(--mono); font-size: 10px; color: var(--ink-4); }
.fin-plans { padding-bottom: 10px; }
.fin-plan {
  display: grid; grid-template-columns: 1fr auto;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  opacity: 0; transform: translateX(8px);
  transition: opacity .4s, transform .4s;
}
.fin-plan.show { opacity: 1; transform: none; }
.fin-plan:last-child { border-bottom: none; }
.fin-plan .pn { font-weight: 600; }
.fin-plan .pp { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-align: right; }
.fin-plan .pi { font-size: 11px; color: var(--accent); letter-spacing: 0.06em; grid-column: 1 / -1; }

/* ========== OUTCOMES ========== */
.out-chart {
  background: white; border: 1px solid var(--line); border-radius: var(--r1);
  padding: 14px;
  flex: 1; min-height: 220px;
}
.out-chart svg { width: 100%; height: 100%; }
.out-chart .grid line { stroke: var(--line); stroke-width: 1; }
.out-chart .ylabels text, .out-chart .xlabels text {
  font-family: var(--mono); font-size: 9px; fill: var(--ink-4);
}
.out-chart .ylabels text { text-anchor: end; }
.out-chart .xlabels text { text-anchor: middle; }
#out-area {
  fill: rgba(216,82,31,0.1);
  opacity: 0;
  transition: opacity .8s .4s;
}
#out-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.4s ease-in-out;
}
#out-points circle {
  fill: white;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0;
  transition: opacity .25s;
}
#out-points circle.last { fill: var(--accent); }
.out-chart.draw #out-line { stroke-dashoffset: 0; }
.out-chart.draw #out-area { opacity: 1; }
.out-chart.draw #out-points circle { opacity: 1; }
.out-chart.draw #out-points circle:nth-child(2) { transition-delay: .5s; }
.out-chart.draw #out-points circle:nth-child(3) { transition-delay: .8s; }
.out-chart.draw #out-points circle:nth-child(4) { transition-delay: 1.1s; }
.out-chart.draw #out-points circle:nth-child(5) { transition-delay: 1.4s; }

.out-foot {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.out-stat { display: flex; flex-direction: column; gap: 2px; }
.out-stat .v { font-family: var(--mono); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.out-stat .v.acc { color: var(--accent); }
.out-stat .l { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }

/* ========== COPILOT ========== */
.cop-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px;
  flex: 1; min-height: 0;
}
.cop-prompt {
  background: var(--ink); color: white;
  border-radius: var(--r1);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--mono); font-size: 11px;
}
.cop-ctx {
  display: grid; grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cop-ctx .ck { color: rgba(255,255,255,0.5); font-size: 10px; }
.cop-ctx .cv { color: rgba(255,255,255,0.92); }
.cop-action { color: var(--accent); font-size: 11px; }
.cop-out {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r1);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.cop-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  font-family: 'Geist', sans-serif;
}
.cop-cursor {
  display: inline-block;
  color: var(--accent);
  animation: cop-blink 0.9s steps(2) infinite;
  font-weight: 700;
}
@keyframes cop-blink { to { opacity: 0; } }
.cop-actions { display: flex; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.cop-btn {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  padding: 7px 12px; border-radius: 4px;
  border: 1px solid var(--line);
  background: white; color: var(--ink);
  cursor: pointer;
  letter-spacing: 0.02em;
}
.cop-btn.dark { background: var(--ink); color: white; border-color: var(--ink); }
.cop-btn:hover { border-color: var(--ink); }

/* legacy stub kept for any orphan refs */
.modules { display: none; }
.mod {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 18px 20px 20px;
  display: flex; flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  min-height: 280px;
}
.mod:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
  border-color: var(--line-2);
}
.mod-head {
  display: flex; justify-content: space-between; align-items: center;
}
.mod-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
}
.mod-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-2);
  color: var(--ink-3);
  padding: 3px 8px;
  border-radius: 999px;
}

.mod-mark {
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  overflow: hidden;
  flex-shrink: 0;
}
.mod-mark svg { width: 100%; height: 100%; }

.mod-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  display: flex; align-items: center; gap: 8px;
}
.mod-name .ico {
  color: var(--accent);
}
.mod-h {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.35;
}
.mod-d {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
  margin-top: -4px;
}
.mod-bullets {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mod-bullets li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  display: flex;
  gap: 6px;
}
.mod-bullets li::before { content: '→'; color: var(--accent); }

.mod.feature {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  grid-column: span 2;
  min-height: 280px;
}
@media (max-width: 1100px) { .mod.feature { grid-column: span 1; } }
@media (max-width: 600px)  { .mod.feature { grid-column: span 1; } }
.mod.feature .mod-tag { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }
.mod.feature .mod-num { color: rgba(255,255,255,0.4); }
.mod.feature .mod-h   { color: rgba(255,255,255,0.92); }
.mod.feature .mod-d   { color: rgba(255,255,255,0.6); }
.mod.feature .mod-bullets { border-top-color: rgba(255,255,255,0.12); }
.mod.feature .mod-bullets li { color: rgba(255,255,255,0.65); }
.mod.feature .mod-mark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

/* =============== AI showcase =============== */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: 340px;
}
@media (max-width: 700px) { .ai-card { grid-template-columns: 1fr; } }
.ai-card .left {
  padding: 26px 28px 24px;
  display: flex; flex-direction: column;
  gap: 14px;
  background: var(--surface);
}
.ai-card .left .num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--accent);
  text-transform: uppercase;
}
.ai-card h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.08;
}
.ai-card p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.5;
}
.ai-out {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.ai-out .acc {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

.ai-vis {
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  position: relative;
}
.ai-vis-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.ai-vis-h .acc { color: var(--accent); }

/* === Triage === */
.ai-vis-cols {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  gap: 8px;
  align-items: center;
  flex: 1;
}
.ai-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ai-col-h {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}
.ai-li {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  padding: 3px 0;
}
.ai-li .d {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-5);
}
.ai-li .n { color: var(--ink-2); font-weight: 500; }
.ai-li .t {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-3);
}
.ai-li .sc {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
}
.ai-li.dim { opacity: 0.55; }
.ai-li.hi .d { background: var(--accent); }
.ai-li.hi .sc { background: var(--accent-soft); color: var(--accent); }
.ai-li.md .d { background: var(--ink-3); }
.ai-li.md .sc { background: var(--bg-2); color: var(--ink-2); }
.ai-li.lo .d { background: var(--ink-5); }
.ai-li.lo .sc { background: var(--bg-2); color: var(--ink-3); }
.ai-arrow {
  text-align: center;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
  font-weight: 500;
}

/* === Brief === */
.ai-vis-brief {}
.brief-h {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.brief-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brief-id .nm {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.brief-id .nm .prog { color: var(--ink-3); font-weight: 400; }
.brief-id .meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.brief-id .meta .acc { color: var(--accent); font-weight: 600; }
.brief-blk {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding: 4px 0;
  font-size: 11.5px;
  border-bottom: 1px dashed var(--line);
}
.brief-blk:last-child { border-bottom: none; }
.brief-l {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-top: 2px;
}
.brief-v { color: var(--ink-2); line-height: 1.4; }
.warn-pip {
  display: inline-grid;
  place-items: center;
  width: 14px; height: 14px;
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  margin-right: 5px;
  vertical-align: 1px;
}

/* === Doc review === */
.ai-vis-doc {}
.doc-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
  align-self: flex-start;
}
.doc-tab .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.doc-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
.doc-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  font-size: 11.5px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.doc-row:last-child { border-bottom: none; }
.doc-row .lbl { color: var(--ink-3); }
.doc-row .val { color: var(--ink-2); font-weight: 500; }
.doc-row.flagged {
  background: var(--warn-soft);
  margin: 0 -12px;
  padding: 5px 12px;
  border-bottom-color: var(--warn);
  border-top: 1px solid var(--warn);
}
.doc-row.flagged .val { color: var(--warn); font-weight: 600; }
.doc-flag {
  background: var(--ink);
  color: white;
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 11px;
  display: flex;
  gap: 9px;
  align-items: center;
  line-height: 1.4;
}
.doc-flag .tag {
  background: var(--accent);
  color: white;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* === Mail === */
.ai-vis-mail { padding: 14px 16px 12px; }
.mail-h {
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.mail-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 8px;
  font-size: 11px;
  padding: 2px 0;
}
.mail-row .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-top: 2px;
}
.mail-row .v { color: var(--ink-2); font-weight: 500; }
.mail-body {
  flex: 1;
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.45;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mail-body p { margin: 0; }
.mail-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mail-body ul li {
  position: relative;
  padding-left: 12px;
  font-size: 11px;
  color: var(--ink-3);
}
.mail-body ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}
.mail-body .hi {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0 3px;
  border-radius: 2px;
  font-weight: 500;
}
.mail-foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mail-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.mail-actions { display: flex; gap: 6px; }
.mail-actions button {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  cursor: pointer;
}
.mail-actions .mb-edit { background: var(--surface); color: var(--ink-2); }
.mail-actions .mb-send { background: var(--ink); color: white; border-color: var(--ink); }

/* =============== STATS band =============== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--ink);
  color: white;
  border-radius: var(--r2);
  overflow: hidden;
}
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat-cell {
  padding: 28px 28px 26px;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.stat-cell:last-child { border-right: none; }
@media (max-width: 800px) {
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
}
.stat-cell .v {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}
.stat-cell .v .acc { color: var(--accent); }
.stat-cell .l {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stat-cell .d {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  margin-top: 14px;
  line-height: 1.45;
  max-width: 26ch;
}
.stat-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  margin-top: 12px;
  overflow: hidden;
  border-radius: 2px;
}
.stat-bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  width: var(--p, 0);
  transition: width 1.6s cubic-bezier(.2,.7,.2,1);
}

/* =============== STACK / What we replace =============== */
.stack-board {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: stretch;
}
@media (max-width: 900px) {
  .stack-board { grid-template-columns: 1fr; gap: 24px; }
}
.stack-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.stack-h.dark {
  border-bottom-color: rgba(255,255,255,0.12);
}
.stack-l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stack-h.dark .stack-l { color: rgba(255,255,255,0.55); }
.stack-tot {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.stack-h.dark .stack-tot { color: white; }
.stack-tot-d {
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 6px;
  font-size: 11px;
}
.stack-h.dark .stack-tot-d { color: rgba(255,255,255,0.55); }

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
}
.stack-item {
  display: grid;
  /* Two columns: tool name (flex) | cost label (auto-width).
     The role description is hidden (text density) — kept in markup
     for SEO/accessibility but visually suppressed via .stack-role. */
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  padding: 14px 16px;
  font-size: 13.5px;
  position: relative;
}
.stack-role { display: none; }
.stack-name {
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: -0.005em;
  text-decoration: line-through;
  text-decoration-color: var(--bad);
  text-decoration-thickness: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dotx {
  display: inline-grid;
  place-items: center;
  width: 16px; height: 16px;
  background: var(--bad-soft);
  color: var(--bad);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}
.stack-name {  }
.stack-role {
  font-size: 11.5px;
  color: var(--ink-3);
}
.stack-cost {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  text-align: right;
  font-weight: 500;
}
.cost-foot {
  display: block;
  font-size: 9.5px;
  color: var(--bad);
  letter-spacing: 0.04em;
  font-weight: 400;
  margin-top: 1px;
}
.stack-item.glue { background: var(--bg-2); }

/* arrow */
.stack-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 12px;
  z-index: 5;
}
.stack-arrow-line {
  width: 100%;
  height: 1px;
  background: var(--line-2);
  position: absolute;
  top: 50%;
  left: 0;
}
.stack-arrow-tip {
  position: relative;
  z-index: 2;
  background: var(--bg);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
}
.stack-arrow-l {
  position: absolute;
  bottom: calc(50% - 56px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 900px) {
  .stack-arrow { padding: 0; height: 40px; }
  .stack-arrow-line { width: 1px; height: 100%; left: 50%; top: 0; }
  .stack-arrow-tip { transform: rotate(90deg); }
  .stack-arrow-l { display: none; }
}

/* after card — structured into labelled blocks so each chunk reads
   as a discrete part of the consolidation story, not a wall of UI */
.stack-after-card {
  background: var(--ink);
  color: white;
  border-radius: var(--r2);
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.stack-after-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle at top right, var(--accent-soft), transparent 70%);
  opacity: 0.22;
  pointer-events: none;
}

/* Brand row — logo + small tag so it doesn't look orphaned */
.sa-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 2px;
}
.sa-brand-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 4px;
}

/* Block — a section inside the card with a small mono header */
.sa-block { display: flex; flex-direction: column; gap: 10px; }
.sa-block-h {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.sa-block-l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}
.sa-block-c {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* Module pills — uniform, no random highlight */
.stack-mods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.stack-mod {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.005em;
  text-align: center;
}

/* "What you get" — rows mirror the Before column's flat-list rhythm,
   with a green check instead of the Before column's orange strike */
.stack-after-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.saf-row {
  display: grid;
  grid-template-columns: 18px 130px 1fr;
  gap: 10px;
  font-size: 13px;
  align-items: baseline;
}
.saf-ck {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(216, 82, 31, 0.18);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: grid; place-items: center;
  align-self: center;
}
.saf-l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  font-weight: 600;
}
.saf-v { color: rgba(255,255,255,0.95); font-weight: 500; }

.stack-after-cta {
  margin-top: 4px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  text-align: center;
}
.stack-after-cta .acc { color: var(--accent); font-weight: 600; }

/* =============== Lifecycle (unused, retained) =============== */
.lifecycle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 28px 28px 24px;
  margin-top: 24px;
}
.life-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  padding-top: 28px;
}
.life-track::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 5%; right: 5%;
  height: 1px;
  background: var(--line-2);
}
.life-token {
  position: absolute;
  top: 24px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  z-index: 2;
  animation: life-tok 9s linear infinite;
}
@keyframes life-tok {
  0%   { left: 5%; }
  100% { left: calc(95% - 12px); }
}
.life-stop {
  position: relative;
  text-align: center;
  padding-top: 18px;
}
.life-stop::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-2);
  z-index: 1;
}
.life-stop .l {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.1em; color: var(--ink-4); text-transform: uppercase;
  margin-bottom: 2px;
}
.life-stop .n {
  font-size: 16px; font-weight: 600; letter-spacing: -0.022em;
}
.life-stop .d { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 700px) {
  .life-track { grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding-top: 16px; }
  .life-track::before, .life-token { display: none; }
}

/* =============== AUDIENCE =============== */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .audience { grid-template-columns: 1fr; } }
.aud {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 240px;
}
.aud .role {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.aud h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.aud p  { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.aud .out {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--ink); letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 6px;
}
.aud .out::before { content: '→'; color: var(--accent); }

/* =============== CTA =============== */
.cta {
  background: var(--ink);
  color: white;
  border-radius: var(--r2);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: end;
}
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; gap: 32px; } }
.cta h2 {
  color: white;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.cta h2 .acc { color: var(--accent); }
.cta p { color: rgba(255,255,255,0.65); margin-top: 16px; max-width: 44ch; }
.cta .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.cta .btn-primary { background: var(--accent); color: white; }
.cta .btn-primary:hover { background: white; color: var(--ink); }
.cta .btn-ghost { color: white; border-color: rgba(255,255,255,0.3); }
.cta .btn-ghost:hover { background: white; color: var(--ink); }

.cta-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  font-size: 13px; color: rgba(255,255,255,0.7);
}
.cta-meta .l {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.cta-meta strong { color: white; font-weight: 500; }

/* =============== FOOTER =============== */
footer {
  padding: 56px var(--pad) 32px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.foot-col h5 {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 500; margin-bottom: 12px;
}
.foot-col a { display: block; padding: 4px 0; font-size: 13.5px; color: var(--ink-2); }
.foot-col a:hover { color: var(--accent); }
.foot-bar {
  max-width: var(--container); margin: 32px auto 0;
  padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.04em;
}
@media (max-width: 600px) { .foot-bar { flex-direction: column; gap: 8px; } }

/* =============== reveal =============== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* =============== EXPLORER · PRODUCT THEME OVERRIDE ===============
   The explorer screens render the actual Learnlynk admin product UI.
   They use the product palette (indigo primary, slate neutrals) — NOT the
   marketing palette (orange accent, warm off-white). Scoped to .exp-screen
   so the marketing page chrome (tabs, hero, etc.) stays untouched. */
.explorer {
  --p-bg:        #f6f8fa;       /* page bg */
  --p-card:      #ffffff;
  --p-muted:     #f1f5f9;       /* slate-100 */
  --p-line:      #e2e8f0;       /* slate-200 */
  --p-line-2:    #cbd5e1;       /* slate-300 */
  --p-ink:       #0f172a;       /* slate-900 */
  --p-ink-2:     #334155;       /* slate-700 */
  --p-ink-3:     #64748b;       /* slate-500 */
  --p-ink-4:     #94a3b8;       /* slate-400 */
  /* Brand accent — burnt orange. Single accent across the whole site. */
  --p-primary:   #d8521f;       /* accent / burnt orange */
  --p-primary-2: #e26a3c;       /* accent lighter for hovers */
  --p-primary-soft: #fdebe2;    /* accent tint for backgrounds */
  --p-success:   #16a34a;       /* green-600 */
  --p-success-soft: #dcfce7;
  --p-warning:   #d97706;       /* amber-600 */
  --p-warning-soft: #fef3c7;
  --p-danger:    #dc2626;
  --p-danger-soft: #fee2e2;
  --p-radius:    10px;
  --p-radius-sm: 6px;
}

/* Stage chrome — neutral slate, not warm */
.explorer .exp-stage {
  background: var(--p-bg);
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.explorer .exp-bar {
  background: var(--p-card);
  border-bottom: 1px solid var(--p-line);
  padding: 11px 14px;
}
.explorer .exp-bar-c { color: var(--p-ink-3); font-family: var(--sans); font-size: 12px; letter-spacing: 0; text-transform: none; }
.explorer .exp-bar-mod { color: var(--p-ink); font-weight: 600; text-transform: none; letter-spacing: -0.005em; }
.explorer .exp-bar-sep { color: var(--p-ink-4); }
.explorer .exp-btn-pause { border-color: var(--p-line); color: var(--p-ink-3); }
.explorer .exp-btn-pause:hover { color: var(--p-ink); border-color: var(--p-line-2); background: var(--p-muted); }
.explorer .pframe-dots span { background: var(--p-line-2) !important; }

.explorer .exp-screens { background: var(--p-bg); }
.explorer .exp-screen { padding: 18px; gap: 12px; }

/* Section headers inside screens — sentence case, sans, no caps */
.explorer .rec-h, .explorer .enr-h, .explorer .sch-h,
.explorer .cmp-h, .explorer .fin-h, .explorer .out-h, .explorer .cop-h {
  font-family: var(--sans);
  font-size: 13px;
  text-transform: none;
  letter-spacing: -0.005em;
  color: var(--p-ink-3);
  font-weight: 500;
  padding: 0 2px 2px;
}
.explorer .rec-h-l, .explorer .enr-h-l, .explorer .sch-h-l,
.explorer .cmp-h-l, .explorer .fin-h-l, .explorer .out-h-l, .explorer .cop-h-l {
  color: var(--p-ink); font-weight: 600;
}
.explorer .dot-live {
  background: var(--p-success);
  box-shadow: 0 0 0 0 rgba(22,163,74,0.4);
  animation: p-pulse 1.6s ease-out infinite;
}
@keyframes p-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
  70%  { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
}

/* Cards — white, slate border, soft shadow */
.explorer .rec-col,
.explorer .enr-block,
.explorer .sch-board,
.explorer .sgn-doc,
.explorer .cmp-rules,
.explorer .fin-chart, .explorer .fin-plans,
.explorer .out-chart,
.explorer .cop-out {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius);
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}

/* ===== RECRUIT ===== */
.explorer .rec-col-h {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--p-ink-3);
  border-bottom: 1px solid var(--p-line);
  padding: 4px 4px 8px;
}
.explorer .rec-col-h .ct {
  background: var(--p-muted);
  color: var(--p-ink-2);
  border: 1px solid var(--p-line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 8px;
}
.explorer .rec-lead {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-sm);
  padding: 9px 11px;
  transition: transform .55s cubic-bezier(.4,1.2,.5,1), opacity .35s, box-shadow .2s;
}
.explorer .rec-lead.routing { box-shadow: 0 4px 16px rgba(79,70,229,0.18); }
.explorer .rec-lead .av {
  background: linear-gradient(135deg, var(--p-primary-2), var(--p-primary));
  font-weight: 600;
}
.explorer .rec-lead .nm { font-size: 13px; color: var(--p-ink); font-weight: 500; }
.explorer .rec-lead .pg { font-size: 11px; color: var(--p-ink-3); }
/* Score → priority pill (red/amber/slate) */
.explorer .rec-lead .sc {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--p-danger-soft);
  color: var(--p-danger);
  border: 1px solid transparent;
  letter-spacing: 0;
}
.explorer .rec-lead .sc.med {
  background: var(--p-warning-soft);
  color: var(--p-warning);
}
.explorer .rec-arrow svg path { stroke: var(--p-primary) !important; }
.explorer .rec-adv {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-sm);
  padding: 11px 13px;
  transition: border-color .25s, background .25s, transform .25s;
}
.explorer .rec-adv.flash {
  border-color: var(--p-primary);
  background: var(--p-primary-soft);
  transform: translateX(2px);
}
.explorer .rec-adv-h .nm { font-size: 13px; color: var(--p-ink); font-weight: 500; }
.explorer .rec-adv-h .cap { font-family: var(--sans); color: var(--p-ink); font-weight: 600; font-size: 12px; }
.explorer .rec-adv-h .cap-sm { font-family: var(--sans); color: var(--p-ink-4); font-size: 11px; font-weight: 500; }
.explorer .rec-adv-bar { background: var(--p-muted); border-radius: 999px; height: 5px; }
.explorer .rec-adv-bar span { background: var(--p-primary); }
.explorer .rec-adv.flash .rec-adv-bar span { background: var(--p-primary); }
.explorer .rec-adv-pill {
  background: var(--p-primary);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  top: -10px;
}

/* ===== ENROLL ===== */
.explorer .enr-step {
  font-size: 13px;
  padding: 2px 0;
}
.explorer .enr-step-l { color: var(--p-ink-2); font-weight: 500; }
.explorer .enr-step.accent .enr-step-l { color: var(--p-ink); font-weight: 600; }
.explorer .enr-step-bar {
  background: var(--p-muted);
  border: none;
  height: 26px;
  border-radius: var(--p-radius-sm);
}
.explorer .enr-step-bar span {
  background: var(--p-ink-2);
  border-radius: var(--p-radius-sm);
  opacity: 0.8;
}
.explorer .enr-step.accent .enr-step-bar span { background: var(--p-primary); opacity: 1; }
.explorer .enr-step-v { color: var(--p-ink); font-weight: 600; font-family: var(--sans); }
.explorer .enr-block-h .tag {
  background: var(--p-warning-soft);
  color: var(--p-warning);
  border: 1px solid #fcd34d;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: var(--sans);
  font-size: 10.5px;
  border-radius: 4px;
  padding: 2px 7px;
}
.explorer .enr-block-h { color: var(--p-ink-2); font-size: 13px; }
.explorer .enr-block-h strong { color: var(--p-ink); font-weight: 600; }
.explorer .enr-blk-row {
  font-size: 13px;
  color: var(--p-ink-2);
  border-top-color: var(--p-line);
}
.explorer .enr-blk-row .ic {
  background: var(--p-warning);
  color: white;
  font-weight: 700;
  font-family: var(--sans);
  font-size: 11px;
}
.explorer .enr-blk-row .ct {
  font-family: var(--sans);
  background: var(--p-muted);
  color: var(--p-ink-2);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

/* ===== SCHEDULE ===== */
.explorer .sch-board { padding: 10px; gap: 4px; }
.explorer .sch-cell-h, .explorer .sch-cell-time {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10.5px;
  color: var(--p-ink-3);
  letter-spacing: 0.02em;
  text-transform: none;
}
.explorer .sch-cell { background: var(--p-muted); border-radius: 4px; }
.explorer .sch-block {
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: -0.005em;
}
/* Recolor schedule blocks to indigo/slate palette via JS palette swap (handled in JS) */
.explorer .sch-foot { padding: 4px 4px 0; gap: 14px; }
.explorer .sch-stat .v {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--p-ink);
  letter-spacing: -0.01em;
}
.explorer .sch-stat .v.acc { color: var(--p-primary); }
.explorer .sch-stat .l {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--p-ink-3);
  letter-spacing: 0;
  text-transform: none;
}

/* ===== SIGN ===== */
.explorer .sgn-doc-h {
  font-size: 13px;
  font-weight: 600;
  color: var(--p-ink);
  border-bottom-color: var(--p-line);
}
.explorer .sgn-line { background: var(--p-line); }
.explorer .sgn-f {
  background: var(--p-primary-soft);
  border: 1px dashed var(--p-primary-2);
  color: var(--p-primary);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
}
.explorer .sgn-f.filled {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  color: var(--p-ink);
  font-weight: 600;
}
.explorer .sgn-sig path { stroke: var(--p-primary); }
.explorer .sgn-l { font-family: var(--sans); font-size: 11px; color: var(--p-ink-3); font-weight: 500; letter-spacing: 0; text-transform: none; }
.explorer .sgn-side {
  background: #0f172a;
  border-radius: var(--p-radius);
}
.explorer .sgn-side-h, .explorer .cop-side-h {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom-color: rgba(255,255,255,0.08);
}
.explorer .sgn-evt {
  font-family: var(--sans);
  font-size: 11px;
  border-bottom-color: rgba(255,255,255,0.05);
}
.explorer .sgn-evt .t { color: rgba(255,255,255,0.4); font-family: var(--sans); }
.explorer .sgn-evt .l b { color: var(--p-primary-2); font-weight: 600; }
.explorer .sgn-hash { background: rgba(99,102,241,0.08); border-radius: 6px; }
.explorer .sgn-hash .lbl { font-family: var(--sans); font-size: 10px; color: rgba(255,255,255,0.5); font-weight: 600; letter-spacing: 0.04em; }
.explorer .sgn-hash .hash { color: var(--p-primary-2); font-size: 10.5px; }

/* ===== COMPLY ===== */
.explorer .cmp-rule {
  font-size: 13px;
  border-bottom-color: var(--p-line);
  padding: 12px 14px;
}
.explorer .cmp-rule.firing { background: var(--p-warning-soft); }
.explorer .cmp-rule.passed { background: rgba(22,163,74,0.05); }
.explorer .cmp-rule .rid {
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--p-ink-3);
  font-weight: 600;
  background: var(--p-muted);
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
  width: fit-content;
}
.explorer .cmp-rule .rl { color: var(--p-ink-2); font-weight: 500; }
.explorer .cmp-rule .rs { background: var(--p-card); border-color: var(--p-line); color: var(--p-ink-4); font-family: var(--sans); font-size: 11px; font-weight: 600; }
.explorer .cmp-rule.passed .rs { background: var(--p-success); border-color: var(--p-success); color: white; }
.explorer .cmp-rule.failed .rs { background: var(--p-danger); border-color: var(--p-danger); color: white; }
.explorer .cmp-feed {
  background: #0f172a;
  border-radius: var(--p-radius);
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.explorer .cmp-feed-h {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  border-bottom-color: rgba(255,255,255,0.08);
}
.explorer .cmp-evt .t { color: rgba(255,255,255,0.45); }
.explorer .cmp-evt .l b { color: var(--p-primary-2); }
.explorer .cmp-evt.ok .l b { color: #4ade80; }

/* ===== FINANCE ===== */
.explorer .fin-chart-h, .explorer .fin-plans-h {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--p-ink-3);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.explorer .fin-bar .b { background: var(--p-ink-4); }
.explorer .fin-bar.accent .b { background: var(--p-primary); }
.explorer .fin-bar .l { font-family: var(--sans); color: var(--p-ink-3); font-size: 11px; font-weight: 500; }
.explorer .fin-plan {
  font-size: 13px;
  border-bottom-color: var(--p-line);
  color: var(--p-ink-2);
}
.explorer .fin-plan .pn { color: var(--p-ink); font-weight: 500; }
.explorer .fin-plan .pp { font-family: var(--sans); color: var(--p-ink-3); font-size: 12px; font-weight: 500; }
.explorer .fin-plan .pi { color: var(--p-primary); font-size: 11px; letter-spacing: 0.08em; }

/* ===== OUTCOMES ===== */
.explorer .out-chart .grid line { stroke: var(--p-line); }
.explorer .out-chart .ylabels text, .explorer .out-chart .xlabels text {
  font-family: var(--sans); font-size: 10.5px; fill: var(--p-ink-4); font-weight: 500;
}
.explorer #out-area { fill: rgba(99,102,241,0.12); }
.explorer #out-line { stroke: var(--p-primary); }
.explorer #out-points circle { stroke: var(--p-primary); }
.explorer #out-points circle.last { fill: var(--p-primary); }
.explorer .out-stat .v {
  font-family: var(--sans);
  font-size: 19px;
  color: var(--p-ink);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.explorer .out-stat .v.acc { color: var(--p-primary); }
.explorer .out-stat .l {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--p-ink-3);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* ===== COPILOT ===== */
.explorer .cop-prompt {
  background: #0f172a;
  border-radius: var(--p-radius);
  font-family: var(--sans);
  font-size: 12px;
}
.explorer .cop-ctx { border-bottom-color: rgba(255,255,255,0.08); }
.explorer .cop-ctx .ck { color: rgba(255,255,255,0.5); font-family: var(--sans); font-size: 11px; font-weight: 500; }
.explorer .cop-ctx .cv { color: rgba(255,255,255,0.92); font-family: var(--sans); font-size: 12px; }
.explorer .cop-action { color: var(--p-primary-2); font-size: 12px; font-weight: 500; }
.explorer .cop-text { font-family: var(--sans); font-size: 13px; color: var(--p-ink-2); line-height: 1.6; }
.explorer .cop-cursor { color: var(--p-primary); }
.explorer .cop-actions { border-top-color: var(--p-line); }
.explorer .cop-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--p-ink-2);
  border-color: var(--p-line);
  border-radius: 6px;
  padding: 7px 14px;
  letter-spacing: 0;
}
.explorer .cop-btn.dark { background: var(--p-primary); color: white; border-color: var(--p-primary); }
.explorer .cop-btn:hover { border-color: var(--p-line-2); background: var(--p-muted); }
.explorer .cop-btn.dark:hover { background: var(--p-primary-2); border-color: var(--p-primary-2); }

/* Tab list — keep marketing chrome but pivot active highlight to indigo */
.explorer .exp-tab.active {
  background: var(--p-ink);
  border-color: var(--p-ink);
}
.explorer .exp-tab.active .exp-tab-ring circle.prog { stroke: var(--p-primary-2); }
.explorer .ai-pip { background: var(--p-primary); }
.explorer .exp-tab.active .ai-pip { background: white; color: var(--p-primary); }


/* =============== AI SECTION · PRODUCT THEME OVERRIDE =============== 
   Pivots the AI showcase from warm/orange marketing to the same
   indigo + slate product theme used by the explorer. */
#ai {
  --p-bg:        #f6f8fa;
  --p-card:      #ffffff;
  --p-muted:     #f1f5f9;
  --p-line:      #e2e8f0;
  --p-line-2:    #cbd5e1;
  --p-ink:       #0f172a;
  --p-ink-2:     #334155;
  --p-ink-3:     #64748b;
  --p-ink-4:     #94a3b8;
  --p-primary:   #d8521f;
  --p-primary-2: #e26a3c;
  --p-primary-soft: #fdebe2;
  --p-warning:   #b45309;
  --p-warning-soft: #fef3c7;
  --p-radius:    10px;
  --p-radius-sm: 6px;
}

/* Section background — pull AI section onto the slate ground so it
   reads as a continuation of the product, not the marketing chrome. */
#ai.section-divided { background: var(--p-bg); }

/* === Section head: kill the orange "accelerator" highlight — too marketing === */
#ai .h-section .accent { color: var(--p-primary); }
#ai .eyebrow .num { color: var(--p-primary); }
#ai .eyebrow .dot { background: var(--p-primary); }

/* === The 4 cards · clean slate-bordered surfaces with indigo product tone === */
#ai .ai-grid { gap: 18px; }

#ai .ai-card {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  overflow: hidden;
}

#ai .ai-card .left {
  padding: 24px 26px 22px;
  background: var(--p-card);
  gap: 12px;
  justify-content: center;
}

/* AI · 01 — TRIAGE label: small indigo identifier in mono */
#ai .ai-card .left .num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#ai .ai-card .left .num::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--p-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.14);
}

#ai .ai-card h3 {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
  color: var(--p-ink);
}

#ai .ai-card p {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  color: var(--p-ink-3);
  line-height: 1.55;
}

#ai .ai-out {
  padding: 10px 12px;
  background: var(--p-muted);
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-sm);
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  color: var(--p-ink-2);
  letter-spacing: 0;
}
#ai .ai-out .acc {
  font-family: 'Geist Mono', ui-monospace, monospace;
  color: var(--p-primary);
  font-weight: 600;
  font-size: 12.5px;
}

/* === Right side · slate-50 panel with the product viz === */
#ai .ai-vis {
  background: var(--p-bg);
  border-left: 1px solid var(--p-line);
  padding: 16px 18px;
  gap: 10px;
}
#ai .ai-vis-h {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p-ink-3);
  border-bottom: 1px solid var(--p-line);
  padding-bottom: 8px;
}
#ai .ai-vis-h .acc { color: var(--p-primary); font-weight: 600; }

/* === TRIAGE === */
#ai .ai-col {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-sm);
  padding: 9px 10px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}
#ai .ai-col-h {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p-ink-4);
  font-weight: 600;
  border-bottom: 1px solid var(--p-line);
  padding-bottom: 6px;
  margin-bottom: 4px;
}
#ai .ai-li {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  padding: 4px 0;
}
#ai .ai-li .n { color: var(--p-ink-2); font-weight: 500; }
#ai .ai-li .t {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  color: var(--p-ink-4);
  letter-spacing: 0.02em;
}
#ai .ai-li .sc {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
}
#ai .ai-li.dim { opacity: 0.5; }
#ai .ai-li.dim .d { background: var(--p-ink-4); }
#ai .ai-li.dim .sc { background: var(--p-muted); color: var(--p-ink-4); border-color: var(--p-line); }
#ai .ai-li.hi .d { background: var(--p-primary); }
#ai .ai-li.hi .sc { background: var(--p-primary-soft); color: var(--p-primary); border-color: rgba(79,70,229,0.18); }
#ai .ai-li.md .d { background: var(--p-ink-3); }
#ai .ai-li.md .sc { background: var(--p-muted); color: var(--p-ink-2); border-color: var(--p-line); }
#ai .ai-li.lo .d { background: var(--p-ink-4); }
#ai .ai-li.lo .sc { background: var(--p-muted); color: var(--p-ink-3); border-color: var(--p-line); }
#ai .ai-arrow {
  color: var(--p-primary);
  font-family: 'Geist Mono', ui-monospace, monospace;
}

/* === BRIEF === */
#ai .brief-h { border-bottom-color: var(--p-line); }
#ai .brief-av {
  background: linear-gradient(135deg, var(--p-primary-2), var(--p-primary));
  color: white;
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 6px rgba(79,70,229,0.22);
}
#ai .brief-id .nm {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  color: var(--p-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
#ai .brief-id .nm .prog { color: var(--p-ink-3); font-weight: 400; }
#ai .brief-id .meta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  color: var(--p-ink-4);
  font-size: 10px;
  letter-spacing: 0.02em;
}
#ai .brief-id .meta .acc { color: var(--p-primary); font-weight: 600; }
#ai .brief-blk { border-bottom-color: var(--p-line); border-bottom-style: solid; padding: 6px 0; }
#ai .brief-blk:last-child { border-bottom: none; }
#ai .brief-l {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--p-ink-4);
  font-weight: 600;
}
#ai .brief-v {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  color: var(--p-ink-2);
  font-size: 12px;
  line-height: 1.45;
}
#ai .warn-pip {
  background: var(--p-warning-soft);
  color: var(--p-warning);
  font-family: 'Geist Mono', ui-monospace, monospace;
}

/* === DOC REVIEW === */
#ai .doc-tab {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-sm);
  font-family: 'Geist Mono', ui-monospace, monospace;
  color: var(--p-ink-2);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
#ai .doc-tab .dot { background: var(--p-primary); }
#ai .doc-body {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-sm);
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
  padding: 9px 13px;
}
#ai .doc-row {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 11.5px;
  border-bottom-color: var(--p-line);
  padding: 5px 0;
}
#ai .doc-row .lbl {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--p-ink-4);
  letter-spacing: 0.02em;
  font-weight: 500;
  text-transform: uppercase;
}
#ai .doc-row .val { color: var(--p-ink); font-weight: 500; }
#ai .doc-row.flagged {
  background: var(--p-warning-soft);
  border-top: 1px solid #f59e0b;
  border-bottom-color: #f59e0b;
}
#ai .doc-row.flagged .val { color: var(--p-warning); font-weight: 600; }
#ai .doc-flag {
  background: var(--p-ink);
  color: rgba(255,255,255,0.92);
  border-radius: var(--p-radius-sm);
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.45;
}
#ai .doc-flag .tag {
  background: var(--p-primary);
  color: white;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* === MAIL === */
#ai .ai-vis-mail { padding: 16px 18px 14px; }
#ai .mail-h { border-bottom-color: var(--p-line); }
#ai .mail-row {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 11.5px;
}
#ai .mail-row .k {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--p-ink-4);
  font-weight: 600;
}
#ai .mail-row .v { color: var(--p-ink); font-weight: 500; }
#ai .mail-body {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  color: var(--p-ink-2);
  line-height: 1.5;
}
#ai .mail-body ul li { color: var(--p-ink-3); font-size: 11.5px; }
#ai .mail-body ul li::before {
  color: var(--p-primary);
  content: '—';
  font-weight: 600;
  left: 0;
}
#ai .mail-body .hi {
  background: var(--p-primary-soft);
  color: var(--p-primary);
  font-weight: 500;
  border-radius: 3px;
}
#ai .mail-foot { border-top-color: var(--p-line); }
#ai .mail-tag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  color: var(--p-ink-4);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 56%;
  line-height: 1.35;
}
#ai .mail-actions button {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--p-radius-sm);
  border: 1px solid var(--p-line);
  transition: background .18s, border-color .18s;
}
#ai .mail-actions .mb-edit {
  background: var(--p-card);
  color: var(--p-ink-2);
}
#ai .mail-actions .mb-edit:hover {
  background: var(--p-muted);
  border-color: var(--p-line-2);
}
#ai .mail-actions .mb-send {
  background: var(--p-primary);
  color: white;
  border-color: var(--p-primary);
}
#ai .mail-actions .mb-send:hover {
  background: var(--p-primary-2);
  border-color: var(--p-primary-2);
}


/* =============== DAY IN THE LIFE · sticky scroll =============== */
#day {
  --p-bg:        #f6f8fa;
  --p-card:      #ffffff;
  --p-muted:     #f1f5f9;
  --p-line:      #e2e8f0;
  --p-line-2:    #cbd5e1;
  --p-ink:       #0f172a;
  --p-ink-2:     #334155;
  --p-ink-3:     #64748b;
  --p-ink-4:     #94a3b8;
  --p-primary:   #4f46e5;
  --p-primary-2: #6366f1;
  --p-primary-soft: #eef2ff;
  --p-warn:      #b45309;
  --p-warn-soft: #fef3c7;
  background: var(--p-bg);
}
#day .h-section .accent { color: var(--p-primary); font-family: 'Geist Mono', ui-monospace, monospace; font-weight: 500; letter-spacing: -0.01em; }

.dil {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  margin-top: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .dil { grid-template-columns: 1fr; gap: 24px; }
}

/* === Left rail === */
.dil-rail {
  position: relative;
  padding: 12px 0 12px 32px;
  display: flex; flex-direction: column;
  gap: 32px;
}
.dil-line {
  position: absolute;
  left: 7px; top: 16px; bottom: 16px;
  width: 2px;
  background: var(--p-line);
  border-radius: 2px;
}
.dil-line-fill {
  position: absolute; top: 0; left: 0;
  width: 100%;
  background: var(--p-primary);
  border-radius: 2px;
  height: 0;
  transition: height .25s ease-out;
}
.dil-step {
  position: relative;
  display: flex; flex-direction: column;
  gap: 3px;
  padding-left: 4px;
  transition: opacity .3s;
}
.dil-step::before {
  content: '';
  position: absolute;
  left: -32px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--p-card);
  border: 2px solid var(--p-line);
  transition: all .3s;
  box-sizing: border-box;
}
.dil-step.active::before {
  background: var(--p-primary);
  border-color: var(--p-primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.18);
  transform: scale(1.1);
}
.dil-step.passed::before { background: var(--p-primary); border-color: var(--p-primary); }
.dil-step .t {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--p-ink-4);
  font-weight: 600;
}
.dil-step.active .t, .dil-step.passed .t { color: var(--p-primary); }
.dil-step .l {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--p-ink-3);
  letter-spacing: -0.01em;
}
.dil-step.active .l { color: var(--p-ink); }
.dil-step .d {
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  color: var(--p-ink-4);
  line-height: 1.4;
}
.dil-step.active .d { color: var(--p-ink-3); }

/* === Right stage · sticky === */
.dil-stage {
  position: sticky;
  top: 80px;
  height: 540px;
}
.dil-window {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
}
.dil-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: #fbfbfd;
  border-bottom: 1px solid var(--p-line);
}
.dil-bar .d { width: 10px; height: 10px; border-radius: 50%; }
.dil-bar .d.r { background: #f87171; }
.dil-bar .d.y { background: #fbbf24; }
.dil-bar .d.g { background: #34d399; }
.dil-url {
  margin-left: 12px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--p-ink-3);
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 6px;
  padding: 4px 10px;
  flex: 1;
  text-align: center;
}
.dil-frame {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.dil-screen {
  position: absolute;
  inset: 0;
  padding: 22px 26px;
  display: flex; flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .4s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.dil-screen.active {
  opacity: 1; transform: none;
  pointer-events: auto;
}
.ds-h {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p-ink-4);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--p-line);
}

/* === Step 0 · Inquiry === */
.ds-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--p-muted);
  border: 1px solid var(--p-line);
  border-radius: 10px;
  padding: 14px 16px;
}
.ds-anim-in { animation: ds-slide-in .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ds-slide-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}
.ds-av {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p-primary-2), var(--p-primary));
  color: white;
  display: grid; place-items: center;
  font-family: 'Geist', sans-serif;
  font-weight: 600; font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(79,70,229,0.22);
}
.ds-id b {
  font-family: 'Geist', sans-serif;
  font-size: 15px; font-weight: 600;
  color: var(--p-ink); letter-spacing: -0.01em;
  display: block;
}
.ds-id span {
  font-family: 'Geist', sans-serif;
  font-size: 12.5px;
  color: var(--p-ink-3);
}
.ds-pill {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--p-primary);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  animation: ds-pulse 1.6s ease-in-out infinite;
}
@keyframes ds-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(79,70,229,0.4); }
  50%     { box-shadow: 0 0 0 8px rgba(79,70,229,0); }
}
.ds-meta {
  display: flex; gap: 18px;
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  color: var(--p-ink-3);
  padding: 8px 4px;
}
.ds-meta b { color: var(--p-ink); font-weight: 600; font-family: 'Geist Mono', ui-monospace, monospace; }
.ds-route {
  font-family: 'Geist', sans-serif;
  font-size: 12.5px;
  color: var(--p-ink-2);
  background: var(--p-primary-soft);
  border: 1px solid rgba(79,70,229,0.15);
  border-radius: 8px;
  padding: 9px 13px;
}
.ds-route.ok {
  background: #f0fdf4;
  border-color: rgba(22,163,74,0.2);
  color: #166534;
}
.ds-route .mono { font-family: 'Geist Mono', ui-monospace, monospace; }
.ds-route b { color: var(--p-primary); font-weight: 600; }

/* === Step 1 · Brief === */
.ds-brief { display: flex; flex-direction: column; gap: 0; }
.ds-brief .bl {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 9px 4px;
  border-bottom: 1px dashed var(--p-line);
  font-size: 13px;
  animation: ds-fade-up .4s ease both;
}
.ds-brief .bl:nth-child(1) { animation-delay: .05s; }
.ds-brief .bl:nth-child(2) { animation-delay: .15s; }
.ds-brief .bl:nth-child(3) { animation-delay: .25s; }
.ds-brief .bl:nth-child(4) { animation-delay: .35s; }
.ds-brief .bl:nth-child(5) { animation-delay: .45s; }
.ds-brief .bl:last-child { border-bottom: none; }
@keyframes ds-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.ds-brief .k {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p-ink-4);
  padding-top: 2px;
}
.ds-brief .v {
  font-family: 'Geist', sans-serif;
  color: var(--p-ink-2);
  line-height: 1.5;
}
.ds-brief .bl.warn .k { color: var(--p-warn); }
.ds-brief .bl.warn .v {
  background: var(--p-warn-soft);
  margin: -2px -8px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #78350f;
}

/* === Step 2 · Call === */
.ds-call {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 10px;
  padding: 6px 0;
}
.cl-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding: 9px 16px;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: var(--p-ink-2);
  border-bottom: 1px dashed var(--p-line);
  animation: ds-fade-up .35s ease both;
}
.cl-row:nth-child(1) { animation-delay: .1s; }
.cl-row:nth-child(2) { animation-delay: .35s; }
.cl-row:nth-child(3) { animation-delay: .6s; }
.cl-row:nth-child(4) { animation-delay: .9s; }
.cl-row:last-child { border-bottom: none; }
.cl-row .cl-t {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--p-ink-4);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-top: 2px;
}
.cl-row.hi { background: var(--p-primary-soft); }
.cl-row.hi .cl-t { color: var(--p-primary); }
.cl-row.hi b { color: var(--p-primary); font-weight: 600; }

/* === Step 3 · Doc === */
.ds-doc {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 10px;
  padding: 4px 0;
}
.dr {
  display: flex; justify-content: space-between;
  align-items: center;
  padding: 9px 16px;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: var(--p-ink-3);
  border-bottom: 1px solid var(--p-line);
  animation: ds-fade-up .35s ease both;
}
.dr:nth-child(1) { animation-delay: .05s; }
.dr:nth-child(2) { animation-delay: .15s; }
.dr:nth-child(3) { animation-delay: .25s; }
.dr:nth-child(4) { animation-delay: .35s; }
.dr:nth-child(5) { animation-delay: .45s; }
.dr:last-child { border-bottom: none; }
.dr b {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--p-ink);
  font-weight: 600;
}
.dr b.ok { color: #16a34a; }
.dr.flag {
  background: var(--p-warn-soft);
  border-top: 1px solid #f59e0b;
  border-bottom-color: #f59e0b;
  animation: ds-flag-pulse 1.6s ease-in-out infinite;
  animation-delay: 1s;
}
.dr.flag b { color: var(--p-warn); }
@keyframes ds-flag-pulse {
  0%,100% { background: var(--p-warn-soft); }
  50%     { background: #fde68a; }
}
.ds-flag {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--p-ink);
  color: rgba(255,255,255,0.92);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: 'Geist', sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
}
.ds-flag .tg {
  background: var(--p-primary);
  color: white;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* === Step 4 · Sign === */
.ds-sign {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 10px;
  padding: 4px 0;
}
.sg-row {
  display: flex; justify-content: space-between;
  padding: 10px 16px;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: var(--p-ink-3);
  border-bottom: 1px dashed var(--p-line);
}
.sg-row b {
  color: var(--p-ink);
  font-weight: 500;
}
.sg-sigbox {
  margin: 12px 16px 14px;
  padding: 10px 14px;
  background: var(--p-primary-soft);
  border: 1px dashed var(--p-primary-2);
  border-radius: 8px;
  display: flex; align-items: center; gap: 14px;
}
.sg-sigbox svg {
  width: 110px; height: 32px;
  flex-shrink: 0;
}
.sg-sigbox svg path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: ds-sig 1.2s ease-out .2s forwards;
}
@keyframes ds-sig {
  to { stroke-dashoffset: 0; }
}
.sg-l {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--p-primary);
  font-weight: 500;
}

/* === Step 5 · Final === */
.ds-final { display: flex; flex-direction: column; gap: 14px; }
.ff-row {
  display: flex; align-items: center; gap: 14px;
  padding: 4px 0;
}
.ff-av {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p-primary-2), var(--p-primary));
  color: white;
  display: grid; place-items: center;
  font-family: 'Geist', sans-serif;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 4px 12px rgba(79,70,229,0.28);
}
.ff-row > div:last-child b {
  font-family: 'Geist', sans-serif;
  font-size: 16px; font-weight: 600;
  color: var(--p-ink); letter-spacing: -0.01em;
  display: block;
}
.ff-row > div:last-child span {
  font-family: 'Geist', sans-serif;
  font-size: 13px; color: var(--p-ink-3);
}
.ff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ff-c {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex; flex-direction: column;
  gap: 4px;
}
.ff-c span {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p-ink-4);
  font-weight: 600;
}
.ff-c b {
  font-family: 'Geist', sans-serif;
  font-size: 14.5px; font-weight: 600;
  color: var(--p-ink); letter-spacing: -0.005em;
}

/* ── Day-in-the-life: kill bottom padding so no dead zone after last step ── */
#day { padding-bottom: 0 !important; }
/* Stage fills viewport height minus nav */
#day .dil-stage { height: calc(100vh - 96px); }
#day .dil-window { height: 100%; }


/* ── Day-in-life v2: proper sticky structure ── */
.dil-outer {
  padding: 0;
  background: #f6f8fa;
  border-top: 1px solid #e2e8f0;
}
.dil-intro {
  padding: clamp(48px, 6vw, 80px) var(--pad) clamp(32px, 4vw, 56px);
}
.dil-intro .section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .dil-intro .section-head { grid-template-columns: 1fr; gap: 20px; }
}

/* Scroll track — provides scroll budget. JS sets height dynamically. */
.dil-track {
  position: relative;
  /* height set by JS */
}

/* Sticky UI — stays locked for the entire track height
   Constrained to container width so it lines up with every other section. */
.dil-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0 40px;
  align-items: center;
  padding: 24px var(--pad);
  background: transparent;
  overflow: hidden;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .dil-sticky { grid-template-columns: 1fr; height: auto; position: relative; }
}

/* Rail inside sticky — keep position:relative so the absolutely-positioned
   .dil-line is anchored to the rail (not to the sticky grid container).
   Otherwise the line escapes and ends up beside the rail, separate from the dots. */
.dil-sticky .dil-rail {
  position: relative;
  padding: 12px 0 12px 32px;
}

/* Window inside sticky — full height of the sticky container */
.dil-sticky .dil-window {
  height: calc(100vh - 48px);
  max-height: 700px;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 40px rgba(15,23,42,0.1), 0 1px 3px rgba(15,23,42,0.06);
}


/* =============== INTEGRATIONS =============== */
.int-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 260px 1fr;
  gap: 0 4px;
  align-items: center;
  min-height: 460px;
  margin: 16px auto 0;
  /* Cap the diagram so it reads as a focused hub-and-spoke, not a wide
     plain. Tiles cluster toward the hub (see .int-side / .int-side-r
     align-items below), so the diagram looks like a real radial network
     rather than two flat columns of pills. */
  max-width: 920px;
  width: 100%;
}
/* Soft radial backdrop centered on the hub — gives the centre visual weight
   so the layout reads as "hub + spokes" rather than "two stacks of pills". */
.int-wrap::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 520px; height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(216, 82, 31, 0.06) 0%, rgba(216, 82, 31, 0.02) 40%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 900px) {
  .int-wrap { grid-template-columns: 1fr; gap: 24px; min-height: auto; }
}

/* SVG lines overlay */
.int-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

/* Side columns — tiles cluster toward the hub (inner edge), not the
   outer edge. Combined with the .int-wrap max-width:920px cap this
   keeps connecting lines short and energetic, and stops the layout
   from looking like a wide empty plain with stuff at the edges. */
.int-side {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;       /* left column tiles right-align (toward hub) */
  gap: 10px;
  justify-self: stretch;
  width: 100%;
  padding-right: 6px;
}
.int-side-r {
  align-items: flex-start;     /* right column tiles left-align (toward hub) */
  justify-self: stretch;
  padding-right: 0;
  padding-left: 6px;
}
.int-side-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-bottom: 6px;
  margin-bottom: 2px;
  /* Match the tile cluster — labels sit on the inner edge so they read
     as "tag for the cluster" rather than disconnected at the corner. */
  text-align: right;
}

/* Tile — compact pill, auto-width (hugs content) */
.int-tile {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  /* Left side: name (12px padding) on outer edge, icon (7px) on inner edge. */
  padding: 7px 7px 7px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  cursor: default;
  width: auto;
  max-width: 100%;
}
/* Right side: icon (7px) on inner edge, name (12px) on outer edge. */
.int-side-r .int-tile { padding: 7px 12px 7px 7px; flex-direction: row; }
.int-tile:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  transform: translateX(2px);
}
.int-side-r .int-tile:hover { transform: translateX(-2px); }
.int-side-r .int-side-label { text-align: left; }

.int-ico {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--sans);
  line-height: 1;
}
.int-n {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  letter-spacing: -0.005em;
  padding: 0 2px;
}

/* Hub */
.int-hub {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 180px;
}
.int-hub-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(216, 82, 31, 0.22);
  pointer-events: none;
}
.int-hub-ring-1 { width: 220px; height: 220px; animation: int-spin 26s linear infinite; }
.int-hub-ring-2 { width: 170px; height: 170px; animation: int-spin 18s linear infinite reverse; opacity: 0.55; }
@keyframes int-spin { to { transform: rotate(360deg); } }

.int-hub-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 30px;
  box-shadow: 0 8px 28px rgba(216, 82, 31, 0.14), 0 1px 3px rgba(15,23,42,0.06);
}
.int-hub-lbl {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Footer */
.int-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.int-footer-item b { color: var(--ink); font-weight: 600; }


/* =============================================================
   POLISH PASS — typography, spacing, mobile, modal, logo wiring
   ============================================================= */

/* === Integrations hub: hold the actual logo === */
.int-hub-card {
  display: grid;
  place-items: center;
  padding: 14px 18px !important;
}
.int-hub-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* === Footer brand sizing === */
footer .brand-logo { height: 34px; }
.stack-after-card .brand-logo { height: 38px; }

/* === Hero pill: shorter, cleaner === */
.hero-pill {
  font-size: 13px;
  line-height: 1.3;
  max-width: 100%;
}

/* =============================================================
   CONTACT MODAL
   ============================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: max(40px, 6vh) 16px;
  overflow-y: auto;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(6px) saturate(140%);
  cursor: pointer;
  animation: modalBack .2s ease-out;
}
@keyframes modalBack {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 30px 80px rgba(10,10,11,0.25), 0 6px 20px rgba(10,10,11,0.10);
  animation: modalIn .25s cubic-bezier(.2,.8,.2,1);
  margin: auto;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s, color .15s, border-color .15s;
}
.modal-close:hover { background: var(--ink); color: white; border-color: var(--ink); }

.modal-head { margin-bottom: 24px; }
.modal-head .eyebrow { margin-bottom: 12px; display: inline-flex; }
.modal-head h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 10px;
}
.modal-head p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 48ch;
}

.modal-form { display: flex; flex-direction: column; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-l {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.field-l em { color: var(--accent); font-style: normal; }
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
  width: 100%;
  resize: vertical;
}
.field textarea { min-height: 84px; line-height: 1.45; }
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-4); }

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.modal-fineprint {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
}
@media (max-width: 520px) {
  .modal-foot { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .modal-foot .btn { width: 100%; justify-content: center; }
  .modal-fineprint { text-align: center; }
}

.modal-status {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
  min-height: 1em;
}
.modal-status.err { color: var(--bad); }
.modal-status.ok  { color: var(--good); }

/* =============================================================
   MOBILE RESPONSIVENESS — typography, spacing, layout
   ============================================================= */

/* Tablet & below: tighten section spacing & headings */
@media (max-width: 980px) {
  .nav { gap: 16px; padding: 12px var(--pad); }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
  .nav-signin { font-size: 11.5px; padding: 6px 2px; }
  .nav-cta .btn { padding: 8px 14px; font-size: 13px; }

  /* Slide-down mobile menu */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(10,10,11,0.06);
    padding: 12px var(--pad) 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 0;
    justify-self: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 4px;
    font-size: 15px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a:hover { background: transparent; color: var(--accent); }
}

/* Hero on small screens */
@media (max-width: 1100px) {
  .hero { padding-top: 32px; }
  .hero-grid { padding-top: 0; padding-bottom: 56px; }
}
@media (max-width: 760px) {
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .hero-trust .item:nth-child(3) { grid-column: span 2; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; width: 100%; }
}

/* Logos strip — keep balanced on mobile */
@media (max-width: 700px) {
  .logos-track { gap: 28px 32px; flex-wrap: wrap; justify-content: center; }
  .logos-label { width: 100%; text-align: center; margin-right: 0; }
  .logos-track .item { font-size: 13px; }
}

/* Sections: tighten padding */
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .h-display { font-size: clamp(34px, 9vw, 48px); line-height: 1.04; }
  .h-section { font-size: clamp(26px, 7vw, 36px); }
  .lede { font-size: 15px; }
}

/* Stats: 1-col on the smallest screens */
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
}

/* Stack board: arrow rotates, items stack */
@media (max-width: 760px) {
  .stack-h { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stack-tot { font-size: 12px; }
  .stack-item {
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto;
    gap: 4px 12px;
  }
  .stack-item .stack-name { grid-column: 1; grid-row: 1; }
  .stack-item .stack-cost { grid-column: 2; grid-row: 1; text-align: right; }
  .stack-item .stack-role {
    grid-column: 1 / -1; grid-row: 2;
    font-size: 12px;
    color: var(--ink-3);
  }
}

/* Integrations: stack vertically on small */
@media (max-width: 900px) {
  .int-wrap {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .int-svg { display: none !important; }
  .int-hub { order: 2; }
  .int-side-l { order: 1; }
  .int-side-r { order: 3; }
  .int-side {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
  }
  /* override on mobile: tiles fill their cell width for tidy 2-up grid */
  .int-side .int-tile { width: 100%; justify-content: flex-start; }
  .int-side-r .int-tile { justify-content: flex-start; flex-direction: row-reverse; }
  .int-side, .int-side-r { align-items: stretch; justify-self: stretch; }
}
@media (max-width: 520px) {
  .int-side { grid-template-columns: 1fr !important; }
}

/* CTA */
@media (max-width: 760px) {
  .cta { padding: 40px 28px !important; }
  .cta h2 { font-size: clamp(28px, 7vw, 38px); }
  .cta-meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cta .actions { flex-direction: column; align-items: stretch; }
  .cta .actions .btn { justify-content: center; width: 100%; }
}

/* Footer: stack to single column on phones */
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Day-in-life: reduce sticky height on mobile */
@media (max-width: 900px) {
  #day .dil-stage { height: auto; }
  .dil-track { height: auto !important; }
  .dil-sticky { position: relative; height: auto; }
}

/* Avoid text overflow anywhere */
body, .h-display, .h-section, .lede, p, h1, h2, h3, h4 { text-wrap: pretty; }
.h-display, .h-section { overflow-wrap: break-word; }
img { max-width: 100%; }


/* =============================================================
   FEATURES — bento heroes + dense chip grid
   ============================================================= */

#features { background: var(--bg); }

/* === HERO BENTO (3 cards: 1 large + 2 smaller) === */
.feat-bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 56px;
}
@media (max-width: 1100px) { .feat-bento { grid-template-columns: 1fr 1fr; } .feat-hero-lg { grid-column: span 2; } }
@media (max-width: 720px)  { .feat-bento { grid-template-columns: 1fr; } .feat-hero-lg { grid-column: auto; } }

.feat-hero {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 28px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  min-height: 380px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.feat-hero:hover {
  border-color: var(--line-2);
  box-shadow: 0 6px 24px rgba(10,10,11,0.06);
  transform: translateY(-2px);
}
.feat-hero-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.feat-hero-mark svg { width: 20px; height: 20px; }
.feat-hero-num {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}
.feat-hero h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-top: 4px;
}
.feat-hero p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 42ch;
}
.feat-hero-vis {
  margin-top: auto;
  padding: 18px 0 24px;
  position: relative;
}

/* Visual: audit binders */
.feat-hero-vis-binders {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  align-items: end;
}
.fhv-binder {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 8px 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  text-align: center;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 60px;
}
.fhv-binder .fhv-tab {
  position: absolute;
  top: 0; left: 8px; right: 8px;
  height: 18px;
  background: var(--c);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}
.fhv-binder em {
  font-style: normal;
  color: var(--good);
  font-size: 11px;
}
.fhv-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.fhv-active em { color: var(--accent); }
.fhv-spin {
  display: inline-block;
  animation: fhv-rot 1.6s linear infinite;
}
@keyframes fhv-rot { to { transform: rotate(360deg); } }

/* Visual: schedule grid */
.feat-hero-vis-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fhg-row { display: grid; grid-template-columns: 30px repeat(4, 1fr); gap: 4px; align-items: center; }
.fhg-l {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}
.fhg-c {
  height: 18px;
  border-radius: 3px;
  background: var(--bg-2);
}
.fhg-c.c-a { background: rgba(216, 82, 31, 0.45); }
.fhg-c.c-b { background: rgba(28, 122, 79, 0.40); }
.fhg-c.c-c { background: rgba(59, 91, 219, 0.35); }

/* Visual: record timeline */
.feat-hero-vis-rec {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  padding-left: 4px;
}
.fhr-step {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.01em;
}
.fhr-dot {
  width: 9px; height: 9px;
  border: 1.5px solid var(--ink-5);
  border-radius: 50%;
  background: var(--surface);
  flex-shrink: 0;
}
.fhr-step.done .fhr-dot { background: var(--good); border-color: var(--good); }
.fhr-step.done { color: var(--ink-3); }
.fhr-step.active .fhr-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.fhr-step.active { color: var(--ink); font-weight: 500; }

/* === GRID HEAD === */
.feat-grid-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  margin-bottom: 20px;
  border-top: 1px solid var(--line);
}
.feat-grid-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.feat-grid-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* === FEATURE CHIP GRID (the rest) === */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 1100px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .feat-grid { grid-template-columns: 1fr; } }

.feat-cell {
  background: var(--surface);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: background .15s;
}
.feat-cell:hover { background: var(--bg-2); }
.feat-num {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}
.feat-cell h4 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--ink);
}
.feat-cell p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0;
}
/* group color dot top-right */
.feat-cell::after {
  content: attr(data-group);
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-4);
  font-weight: 500;
  border: 1px solid var(--line);
}
.feat-cell[data-group="Recruit"]::after { color: #b14512; background: rgba(216, 82, 31, 0.08); border-color: rgba(216,82,31,0.18); }
.feat-cell[data-group="Enroll"]::after  { color: #2a458b; background: rgba(59, 91, 219, 0.08); border-color: rgba(59,91,219,0.18); }
.feat-cell[data-group="Operate"]::after { color: #8a6300; background: rgba(184, 106, 0, 0.10); border-color: rgba(184,106,0,0.20); }
.feat-cell[data-group="Comply"]::after  { color: #155738; background: var(--good-soft); border-color: rgba(28,122,79,0.25); }
.feat-cell[data-group="Finance"]::after { color: #5b4b1a; background: rgba(180, 156, 70, 0.14); border-color: rgba(180,156,70,0.30); }
.feat-cell[data-group="Outcomes"]::after { color: #1f3b66; background: rgba(31, 59, 102, 0.08); border-color: rgba(31,59,102,0.20); }
.feat-cell[data-group="AI"]::after      { color: #4338ca; background: rgba(79, 70, 229, 0.08); border-color: rgba(79,70,229,0.22); }

/* === LEGEND === */
.feat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  justify-content: center;
}
.feat-legend-i {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.feat-legend-i[data-g="Recruit"]  { color: #b14512; background: rgba(216, 82, 31, 0.08); }
.feat-legend-i[data-g="Enroll"]   { color: #2a458b; background: rgba(59, 91, 219, 0.08); }
.feat-legend-i[data-g="Operate"]  { color: #8a6300; background: rgba(184, 106, 0, 0.10); }
.feat-legend-i[data-g="Comply"]   { color: #155738; background: var(--good-soft); }
.feat-legend-i[data-g="Finance"]  { color: #5b4b1a; background: rgba(180, 156, 70, 0.14); }
.feat-legend-i[data-g="Outcomes"] { color: #1f3b66; background: rgba(31, 59, 102, 0.08); }
.feat-legend-i[data-g="AI"]       { color: #4338ca; background: rgba(79, 70, 229, 0.08); }

/* ============================================================================
   §3 · DAY-IN-OPS · App-shell chrome + 6 ops frame idioms
   ────────────────────────────────────────────────────────────────────────────
   .dil-window.app-shell turns the existing window into sidebar+main layout.
   Each .dil-screen is a distinct visual idiom for an academic-ops AI moment.
   Token palette: --p-* (slate-tinged product-mock surface).
============================================================================ */

/* ── App shell ────────────────────────────────────────────────────────── */
.dil-window.app-shell {
  flex-direction: row;
  background: var(--p-bg);
}
.ash-rail {
  width: 56px; flex: 0 0 56px;
  background: linear-gradient(180deg, var(--p-card) 0%, #f8fafc 100%);
  border-right: 1px solid var(--p-line);
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 0;
  position: relative;
}
.ash-brand {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--p-ink);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.ash-brand-mark {
  width: 12px; height: 12px;
  border-radius: 4px;
  background: var(--p-primary);
}
.ash-nav-list {
  display: flex; flex-direction: column; gap: 2px;
  width: 100%; padding: 0 6px;
}
.ash-nav {
  position: relative;
  display: flex; align-items: center;
  height: 36px;
  border-radius: 8px;
  color: var(--p-ink-4);
  cursor: default;
  padding-left: 10px;
  overflow: hidden;
  transition: background .25s ease, color .25s ease;
}
.ash-nav .ash-i {
  width: 18px; height: 18px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
  opacity: .7;
  flex: 0 0 18px;
  position: relative;
  box-sizing: border-box;
}
.ash-nav .ash-t {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .25s ease;
}
.ash-nav.active {
  background: var(--p-primary-soft);
  color: var(--p-primary);
}
.ash-nav.active .ash-i { opacity: 1; }
.ash-nav.active::before {
  content: '';
  position: absolute;
  left: -6px; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--p-primary);
}

/* Distinct inner glyphs */
.ash-i-cohorts::before {
  content: ''; position: absolute; inset: 3px;
  background:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size: 4px 4px;
  background-repeat: no-repeat;
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
}
.ash-i-intakes::before {
  content: ''; position: absolute; inset: 4px;
  border: 1.5px solid currentColor; border-radius: 50%;
  box-sizing: border-box;
}
.ash-i-schedule::before {
  content: ''; position: absolute; left: 3px; right: 3px; top: 5px; height: 1.5px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}
.ash-i-compliance::before {
  content: '✓'; position: absolute; inset: 0;
  font: 700 12px/14px 'Geist', sans-serif;
  text-align: center;
  color: currentColor;
}
.ash-i-finance::before {
  content: '$'; position: absolute; inset: 0;
  font: 700 11px/15px 'Geist Mono', ui-monospace, monospace;
  text-align: center;
  color: currentColor;
}
.ash-i-reports::before {
  content: ''; position: absolute; left: 3px; right: 3px; top: 4px; height: 1px;
  background: currentColor;
  box-shadow: 0 3px 0 currentColor, 0 6px 0 currentColor;
}

.ash-pip {
  position: absolute;
  top: 22px; left: 38px;
  min-width: 14px; height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  background: var(--p-primary);
  color: #fff;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9px; font-weight: 600;
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--p-card);
  transition: top .45s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
  z-index: 2;
}

/* ── Main column ─────────────────────────────────────────────────────── */
.ash-main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}
.ash-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  background: var(--p-card);
  border-bottom: 1px solid var(--p-line);
}
.ash-bar .d { width: 9px; height: 9px; border-radius: 50%; }
.ash-bar .d.r { background: #f87171; }
.ash-bar .d.y { background: #fbbf24; }
.ash-bar .d.g { background: #34d399; }
.ash-bc {
  margin-left: 10px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--p-ink-3);
  background: var(--p-bg);
  border: 1px solid var(--p-line);
  border-radius: 6px;
  padding: 4px 10px;
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  overflow: hidden;
}
.ash-bc-base { color: var(--p-ink-4); }
.ash-bc-sep  { color: var(--p-ink-4); }
.ash-bc-c    { color: var(--p-ink); font-weight: 500; }
.ash-clock {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--p-ink-3);
  padding: 4px 10px;
  border: 1px solid var(--p-line);
  border-radius: 6px;
  background: var(--p-bg);
  white-space: nowrap;
}
.ash-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 18px;
  background: var(--p-card);
  border-bottom: 1px solid var(--p-line);
  font-size: 11.5px;
  color: var(--p-ink-3);
}
.ash-strip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--p-primary);
  box-shadow: 0 0 0 3px var(--p-primary-soft);
  animation: ash-pulse 2.4s ease-in-out infinite;
}
.ash-strip-t { color: var(--p-ink-2); font-weight: 500; }
.ash-strip-sep { color: var(--p-line-2); }
@keyframes ash-pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.15); }
}

.ash-frame {
  flex: 1;
  background:
    linear-gradient(180deg, rgba(216, 82, 31, 0.025), transparent 30%),
    var(--p-bg);
  position: relative;
}
.ash-frame > .dil-screen { padding: 18px 22px; gap: 12px; }

/* ── Shared frame header / AI strip ─────────────────────────────────── */
.ops-h {
  display: flex; justify-content: space-between; align-items: center;
}
.ops-h-t {
  color: var(--p-ink); font-weight: 600;
  font-family: 'Geist', sans-serif;
  font-size: 13px; letter-spacing: -0.005em;
}
.ops-h-r {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--p-ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ops-pip-soft {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--p-primary);
  box-shadow: 0 0 0 3px var(--p-primary-soft);
}
.ops-ai-strip {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: auto;
  padding: 10px 12px;
  background: var(--p-card);
  border: 1px solid var(--p-primary-soft);
  border-radius: 8px;
  font-size: 12.5px; line-height: 1.45;
  color: var(--p-ink-3);
}
.ops-ai-strip b { color: var(--p-ink); font-weight: 600; }
.ops-ai-pip {
  flex: 0 0 16px; width: 16px; height: 16px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 30% 30%, var(--p-primary) 0 35%, transparent 36%),
    radial-gradient(circle at 75% 30%, var(--p-primary) 0 35%, transparent 36%),
    radial-gradient(circle at 30% 75%, var(--p-primary) 0 35%, transparent 36%),
    radial-gradient(circle at 75% 75%, var(--p-primary) 0 35%, transparent 36%);
  background-size: 8px 8px;
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
  background-repeat: no-repeat;
  margin-top: 2px;
  position: relative;
}
.ops-ai-pip::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--p-primary);
  border-radius: 1px;
  opacity: .35;
}
.ops-ai-cta {
  color: var(--p-primary);
  font-weight: 600;
  margin-left: 4px;
  white-space: nowrap;
  cursor: pointer;
}

/* ── Frame 0 · Cohort grid ─────────────────────────────────────────── */
.ops-cohort-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex: 1;
}
.ocg-tile {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 8px;
  padding: 9px 10px;
  display: flex; flex-direction: column; gap: 3px;
  position: relative;
  transition: transform .25s ease, border-color .25s ease;
}
.dil-screen.active .ocg-tile {
  animation: ocg-in .35s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(.35s + var(--d, 0) * 30ms);
}
@keyframes ocg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ocg-in-r {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes clash-pop {
  0%   { transform: scale(.55); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}
.ocg-tile b {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--p-ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ocg-loc {
  font-size: 10.5px;
  color: var(--p-ink-4);
}
.ocg-stat {
  margin-top: auto;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ocg-stat.ok   { color: #16a34a; }
.ocg-stat.warn { color: var(--p-warning); }
.ocg-tile.alert {
  border-color: var(--p-warning);
  background: var(--p-warning-soft);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.08);
}
.ocg-tile.alert::after {
  content: '';
  position: absolute;
  top: 6px; right: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--p-warning);
  animation: ocg-pulse 1.6s ease-in-out infinite;
}
@keyframes ocg-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ── Frame 1 · Forecast ─────────────────────────────────────────────── */
.ops-forecast {
  flex: 1;
  position: relative;
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 8px;
  padding: 14px 22px 12px;
  overflow: hidden;
}
.ofc-grid {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
}
.ofc-cap {
  position: absolute;
  top: 14%; left: 0; right: 0;
  display: flex; align-items: center; gap: 8px;
  pointer-events: none;
  z-index: 2;
}
.ofc-cap-l {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--p-ink-4);
  background: var(--p-card);
  padding: 0 6px;
}
.ofc-cap-line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--p-ink-4) 0 4px, transparent 4px 8px);
  opacity: .55;
}
.ofc-bars {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: end;
  padding-bottom: 26px;
}
.ofc-bar {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  height: 100%;
}
.ofc-fill {
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--p-primary), #b14512);
  border-radius: 6px 6px 0 0;
  margin-top: auto;
  transition: height .9s cubic-bezier(.2,.8,.2,1);
}
.ofc-bar.warn .ofc-fill {
  background: linear-gradient(180deg, var(--p-warning), #92400e);
  opacity: .75;
}
.ofc-fill { transition: height .9s cubic-bezier(.2,.8,.2,1) .35s; }
.dil-screen.active .ofc-fill { height: var(--h, 50%); }
.ofc-v {
  position: absolute;
  bottom: calc(var(--h, 50%) + 4px);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--p-ink);
  opacity: 0;
  transition: opacity .35s ease;
}
.dil-screen.active .ofc-v { opacity: 1; transition-delay: .9s; }
.ofc-bar.warn .ofc-v { color: var(--p-warning); }
.ofc-l {
  position: absolute;
  bottom: -22px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--p-ink-3);
  letter-spacing: 0.02em;
}
.ofc-annot {
  position: absolute;
  bottom: 36%;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--p-warning);
  background: var(--p-warning-soft);
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid rgba(217, 119, 6, 0.3);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s ease, transform .4s ease;
}
.dil-screen.active .ofc-annot { opacity: 1; transform: none; transition-delay: 1.15s; }
.ofc-annot::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%; transform: translateX(-50%);
  width: 1px; height: 10px;
  background: var(--p-warning);
}
.ofc-annot-1 { left: 30%; transform: translate(-50%, 4px); }
.ofc-annot-2 { left: 80%; transform: translate(-50%, 4px); }
.dil-screen.active .ofc-annot-1 { transform: translate(-50%, 0); }
.dil-screen.active .ofc-annot-2 { transform: translate(-50%, 0); transition-delay: 1.35s; }

/* ── Frame 2 · Schedule conflict ───────────────────────────────────── */
.ops-cal {
  flex: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  min-height: 0;
}
.ocl-grid {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
  gap: 4px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
.dil-screen.active .ocl-grid { opacity: 1; transform: none; transition-delay: .35s; }
.ocl-d {
  text-align: center;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  color: var(--p-ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 0;
  border-bottom: 1px solid var(--p-line);
}
.ocl-c {
  background: var(--p-bg);
  border-radius: 4px;
  padding: 5px 6px;
  font-size: 9.5px;
  line-height: 1.25;
  color: var(--p-ink-3);
  display: flex; flex-direction: column; gap: 1px;
}
.ocl-c:empty { background: transparent; }
.ocl-c.clash {
  background: var(--p-warning-soft);
  border: 1px solid var(--p-warning);
  color: var(--p-warning);
  position: relative;
}
.dil-screen.active .ocl-c.clash {
  animation:
    clash-pop .45s cubic-bezier(.34, 1.56, .64, 1) .55s both,
    clash-pulse 1.8s ease-in-out 1.05s infinite;
}
.ocl-c.clash b { color: var(--p-warning); font-weight: 600; }
.ocl-c.clash i {
  font-style: normal;
  font-size: 9px;
  color: var(--p-warning);
  opacity: .85;
}
.clash-bolt {
  position: absolute;
  top: -6px; right: -6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--p-warning);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  display: grid; place-items: center;
  box-shadow: 0 0 0 3px var(--p-card);
}
@keyframes clash-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); }
}
.ocl-fixes {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.dil-screen.active .ocl-fixes { animation: ocg-in-r .45s cubic-bezier(.2,.8,.2,1) .5s both; }
.dil-screen.active .ocl-fix { animation: ocg-in .3s cubic-bezier(.2,.8,.2,1) both; }
.dil-screen.active .ocl-fix:nth-child(2) { animation-delay: .8s; }
.dil-screen.active .ocl-fix:nth-child(3) { animation-delay: .95s; }
.dil-screen.active .ocl-fix:nth-child(4) { animation-delay: 1.1s; }
.ocl-fix-h {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  color: var(--p-ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--p-line);
}
.ocl-fix {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  font-size: 11px;
  color: var(--p-ink-3);
  transition: background .25s ease;
}
.ocl-fix b { display: block; color: var(--p-ink); font-weight: 600; font-size: 11.5px; }
.ocl-fix i { display: block; font-style: normal; font-size: 10px; color: var(--p-ink-4); margin-top: 1px; font-family: 'Geist Mono', ui-monospace, monospace; }
.ocl-rk {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--p-bg);
  border: 1px solid var(--p-line);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px; font-weight: 600;
  color: var(--p-ink-3);
  display: grid; place-items: center;
}
.ocl-fix.accepted {
  background: var(--p-primary-soft);
  border-radius: 6px;
  margin: 0 -6px;
  padding: 6px;
}
.ocl-fix.accepted .ocl-rk { background: var(--p-primary); border-color: var(--p-primary); color: #fff; }
.ocl-fix.accepted::after {
  content: '✓';
  color: var(--p-primary);
  font-weight: 700;
  align-self: center;
  font-size: 13px;
}

/* ── Frame 3 · Compliance ledger ──────────────────────────────────── */
.ops-comp {
  flex: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
  min-height: 0;
}
.ocp-list {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.ocp-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid var(--p-line);
  font-size: 11.5px;
  position: relative;
}
.dil-screen.active .ocp-row {
  animation: ocg-in .3s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(.35s + var(--d, 0) * 35ms);
}
.ocp-row:last-child { border-bottom: none; }
.ocp-c {
  font-family: 'Geist Mono', ui-monospace, monospace;
  color: var(--p-ink);
  font-weight: 600;
}
.ocp-s {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.ocp-s.ok   { color: #16a34a; background: rgba(22, 163, 74, 0.08); }
.ocp-s.warn { color: var(--p-warning); background: var(--p-warning-soft); }
.ocp-d {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--p-ink-4);
}
.ocp-row.drift {
  background: var(--p-warning-soft);
}
.ocp-row.drift::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--p-warning);
}
.ocp-diff {
  background: var(--p-card);
  border: 1px solid var(--p-warning);
  border-radius: 8px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 7px;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.06);
}
.dil-screen.active .ocp-diff { animation: ocg-in-r .5s cubic-bezier(.2,.8,.2,1) .65s both; }
.dil-screen.active .ocp-diff-row { animation: ocg-in .3s ease both; }
.dil-screen.active .ocp-diff-row:nth-child(2) { animation-delay: .9s; }
.dil-screen.active .ocp-diff-row:nth-child(3) { animation-delay: 1.05s; }
.dil-screen.active .ocp-diff-row:nth-child(4) { animation-delay: 1.2s; }
.dil-screen.active .ocp-diff-action { animation: ocg-in .3s ease 1.4s both; }
.ocp-diff-h {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--p-line);
}
.ocp-diff-pg {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--p-ink);
}
.ocp-diff-tag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  color: var(--p-warning);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ocp-diff-row {
  display: grid;
  grid-template-columns: 60px 1fr 14px 1fr;
  gap: 6px;
  align-items: center;
  font-size: 11px;
}
.ocp-diff-l {
  color: var(--p-ink-4);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ocp-diff-old {
  font-family: 'Geist Mono', ui-monospace, monospace;
  color: var(--p-ink-4);
  text-decoration: line-through;
  text-decoration-color: rgba(148, 163, 184, 0.6);
}
.ocp-diff-new {
  font-family: 'Geist Mono', ui-monospace, monospace;
  color: var(--p-ink);
  font-weight: 600;
}
.ocp-arr {
  color: var(--p-warning);
  font-weight: 600;
  text-align: center;
}
.ocp-diff-action {
  margin-top: 4px;
  padding: 6px 10px;
  background: var(--p-warning-soft);
  border: 1px dashed var(--p-warning);
  border-radius: 6px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--p-warning);
  text-align: center;
}

/* ── Frame 4 · Fee rebuild ────────────────────────────────────────── */
.ops-fee {
  flex: 1;
  position: relative;
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
}
.ofe-policy {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px;
  background: var(--p-primary-soft);
  border: 1px solid rgba(216, 82, 31, 0.2);
  border-radius: 6px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
}
.ofe-policy-l {
  color: var(--p-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 6px;
}
.ofe-policy-old {
  color: var(--p-ink-4);
  text-decoration: line-through;
}
.ofe-arr { color: var(--p-primary); font-weight: 600; }
.ofe-policy-new { color: var(--p-ink); font-weight: 600; }
.ofe-rows {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 3px;
  position: relative;
}
.ofe-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 10.5px;
  padding: 3px 6px;
  border-radius: 4px;
}
.dil-screen.active .ofe-row {
  animation: ocg-in .25s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(.35s + var(--d, 0) * 30ms);
}
.ofe-row.review { background: var(--p-warning-soft); }
.ofe-n {
  font-family: 'Geist Mono', ui-monospace, monospace;
  color: var(--p-ink-2);
}
.ofe-bar {
  display: flex; align-items: center; gap: 4px;
  height: 12px;
}
.ofe-old {
  height: 4px;
  flex: 0 0 36%;
  background: var(--p-line-2);
  border-radius: 2px;
}
.ofe-new {
  height: 6px;
  flex: 0 0 42%;
  background: linear-gradient(90deg, var(--p-primary), #b14512);
  border-radius: 2px;
}
.ofe-row.review .ofe-new {
  background: linear-gradient(90deg, var(--p-warning), #92400e);
}
.ofe-st {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  white-space: nowrap;
}
.ofe-st.ok   { color: #16a34a; }
.ofe-st.warn { color: var(--p-warning); }
.ofe-more {
  margin-top: 4px;
  padding: 5px 8px;
  text-align: center;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--p-ink-4);
  background: var(--p-bg);
  border-radius: 4px;
  border: 1px dashed var(--p-line);
}
.ofe-sweep {
  position: absolute;
  top: 0; bottom: 0; left: -25%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(216, 82, 31, 0.18), transparent);
  pointer-events: none;
}
.dil-screen.active .ofe-sweep { animation: ofe-sweep 1.5s ease-out .55s both; }
@keyframes ofe-sweep {
  from { left: -25%; }
  to   { left: 110%; }
}

/* ── Frame 5 · PTIRU report ───────────────────────────────────────── */
.ops-report {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, #fffefa 0%, #fafaf2 100%);
  border: 1px solid var(--p-line);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.ops-report::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--p-line) 1px, transparent 1px);
  background-size: 100% 18px;
  background-position: 0 22px;
  opacity: .35;
  pointer-events: none;
}
.orp-stamp {
  position: absolute;
  top: 14px; right: 18px;
  padding: 6px 14px;
  border: 2px solid #16a34a;
  color: #16a34a;
  border-radius: 4px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: rgba(22, 163, 74, 0.05);
  transform: rotate(-6deg);
  z-index: 2;
  opacity: 0;
}
.dil-screen.active .orp-stamp {
  animation: orp-stamp-in .55s cubic-bezier(.34, 1.56, .64, 1) .35s both;
}
@keyframes orp-stamp-in {
  from { opacity: 0; transform: rotate(-30deg) scale(1.6); }
  to   { opacity: 1; transform: rotate(-6deg) scale(1); }
}
.orp-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--p-ink);
  position: relative;
  z-index: 1;
}
.orp-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
  z-index: 1;
}
.orp-k {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.orp-k span {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  color: var(--p-ink-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.orp-k b {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 16px;
  color: var(--p-ink);
  font-weight: 600;
}
.orp-k b.ok { color: #16a34a; font-size: 13px; }
.orp-k b i { font-style: normal; font-size: 10px; color: var(--p-ink-3); font-weight: 500; margin-left: 2px; }
.orp-hashes {
  display: flex; flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  background: var(--p-card);
  border: 1px dashed var(--p-line);
  border-radius: 6px;
  position: relative;
  z-index: 1;
}
.orp-hash {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--p-ink-3);
  background: var(--p-bg);
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--p-line);
}
.orp-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--p-line);
  position: relative; z-index: 1;
}
.orp-foot-l {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--p-ink-3);
}
.orp-cta {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--p-primary);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.orp-cta:hover { background: var(--p-primary-2); }

/* ── App-shell mobile fallback ─────────────────────────────────────── */
@media (max-width: 800px) {
  .dil-window.app-shell { flex-direction: column; }
  .ash-rail {
    width: 100%; flex: none;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--p-line);
    padding: 8px 10px;
    gap: 4px;
    overflow-x: auto;
  }
  .ash-brand { margin: 0 8px 0 0; flex-shrink: 0; }
  .ash-nav-list { flex-direction: row; flex-wrap: nowrap; padding: 0; }
  .ash-nav { flex-shrink: 0; padding: 0 8px; height: 28px; }
  .ash-nav .ash-t { display: none; }
  .ash-nav.active::before { display: none; }
  .ash-pip { display: none; }
  .ops-cohort-grid { grid-template-columns: repeat(3, 1fr); }
  .ops-cal { grid-template-columns: 1fr; }
  .ops-comp { grid-template-columns: 1fr; }
  .orp-kpis { grid-template-columns: repeat(2, 1fr); }
  .ash-frame > .dil-screen { padding: 14px 16px; gap: 10px; }
  .ofc-bars { gap: 14px; }
}

