/* ===================================================
   REQUIVO ACADEMIA DEMO — ACADEMIC INSTITUTIONAL UI
   =================================================== */

/* === DESIGN TOKENS === */
:root {
  --ink:          #111827;
  --ink-2:        #374151;
  --ink-3:        #6b7280;
  --ink-4:        #9ca3af;
  --paper:        #f8f7f5;
  --white:        #ffffff;
  --border:       #e5e7eb;
  --border-mid:   #d1d5db;

  --accent:       #1e3a5f;
  --accent-mid:   #2d5282;
  --accent-light: #ebf0f8;

  --dark:         #0f172a;
  --dark-2:       #1e293b;

  --green:        #15803d;
  --green-bg:     #f0fdf4;
  --green-border: #bbf7d0;
  --amber:        #b45309;
  --amber-bg:     #fffbeb;
  --amber-border: #fde68a;
  --red:          #b91c1c;
  --red-bg:       #fef2f2;
  --red-border:   #fecaca;

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:  'SF Mono', 'Fira Code', 'Consolas', monospace;

  --wrap:       1100px;
  --sidebar-w:  216px;
  --topbar-h:   54px;
  --r:          4px;
  --r-lg:       8px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); }

/* === WRAP === */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 40px;
}

/* === TOPBAR === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: var(--topbar-h);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--accent-mid);
  color: #fff;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1;
}

.brand-sub {
  font-size: 10px;
  color: #475569;
  line-height: 1;
  margin-top: 3px;
}

.topbar-right {
  font-size: 11px;
  color: #475569;
  letter-spacing: 0.02em;
}

/* === DEMO DISCLAIMER === */
.demo-disclaimer {
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
}
.demo-disclaimer-inner {
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* === PAGE LAYOUT (sidebar + content) === */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 80px;
}

.page { min-width: 0; }

/* === SIDEBAR === */
.sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + 32px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.sidebar h2 {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 11px 14px 9px;
  border-bottom: 1px solid var(--border);
}

.nav-list {
  display: flex;
  flex-direction: column;
  padding: 5px;
}

.nav-link {
  display: block;
  padding: 7px 9px;
  border-radius: var(--r);
  border-left: 2px solid transparent;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
  margin-bottom: 1px;
}

.nav-link small {
  display: block;
  font-size: 9px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 1px;
  line-height: 1;
}

.nav-link strong {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1.3;
}

.nav-link:hover { background: var(--paper); border-left-color: var(--border-mid); }
.nav-link:hover strong { color: var(--ink-2); }

.nav-link.active { background: var(--accent-light); border-left-color: var(--accent); }
.nav-link.active small { color: var(--accent-mid); }
.nav-link.active strong { color: var(--accent); font-weight: 600; }

/* === HERO PANEL (dark, narrative) === */
.hero-panel {
  position: relative;
  background: var(--dark);
  border-radius: var(--r-lg);
  margin-bottom: 18px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(30,58,95,0.38) 0%, transparent 58%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 38px 40px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.hero-inner-solo {
  grid-template-columns: 1fr;
}

.kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #93c5fd;
  opacity: 0.8;
  margin-bottom: 11px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: normal;
  color: #f1f5f9;
  line-height: 1.22;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.7;
}

.hero-side-copy { padding-top: 40px; }

.hero-side-copy p {
  font-size: 13px;
  color: #475569;
  line-height: 1.78;
}

/* === LANDING PAGE === */
.landing {
  background: var(--paper);
  padding-top: 72px;
  padding-bottom: 80px;
}

.landing-hero {
  background: var(--dark);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 32px;
}

.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(30,58,95,0.4) 0%, transparent 55%);
  pointer-events: none;
}

.landing-hero .hero-inner {
  padding: 52px 44px 48px;
  grid-template-columns: 1fr;
  position: relative;
}

.landing-hero .hero-title { font-size: 32px; }

/* === STEP HEADER (compact, light background) === */
.step-header {
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.step-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 7px;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: normal;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 5px;
}

.step-lead {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.68;
  max-width: 520px;
}

/* === PROGRESS STRIP === */
.progress-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.progress-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.07em;
  white-space: nowrap;
  min-width: 28px;
  font-variant-numeric: tabular-nums;
}

.progress-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.progress-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-mid);
  transition: all 0.2s;
}

.progress-dot.progress-dot-done {
  background: var(--accent-mid);
  opacity: 0.4;
}

.progress-dot.active {
  width: 7px;
  height: 7px;
  background: var(--accent);
  animation: activeDotBreath 2.8s ease-in-out infinite;
}

@keyframes activeDotBreath {
  0%, 100% { box-shadow: 0 0 0 0px rgba(30,58,95,0.18); }
  50%       { box-shadow: 0 0 0 3px rgba(30,58,95,0.07); }
}

/* === EDITORIAL SECTION === */
.editorial-section { margin-bottom: 18px; }

.editorial-grid {
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 18px;
}

.editorial-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: normal;
  color: var(--ink);
  line-height: 1.38;
}

.editorial-copy {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.74;
}

.rule { height: 1px; background: var(--border); }

/* === PRODUCT PANEL === */
.product-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-panel:hover {
  box-shadow: 0 3px 16px rgba(30,58,95,0.06);
  border-color: rgba(30,58,95,0.15);
}

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px;
  border-bottom: 1px solid var(--border);
  background: #f9fafb;
  min-height: 42px;
}

.product-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.product-body { padding: 18px; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: background 0.1s, border-color 0.1s, color 0.1s, opacity 0.12s;
  white-space: nowrap;
  line-height: 1.2;
}

.btn:disabled { opacity: 0.38; cursor: not-allowed; pointer-events: none; }
.btn:not(:disabled):active { transform: scale(0.975); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-mid);
  border-color: var(--accent-mid);
}

.btn-ghost {
  background: transparent;
  color: #64748b;
  border-color: rgba(255,255,255,0.14);
  font-size: 11.5px;
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255,255,255,0.06);
  color: #94a3b8;
}

.btn-secondary {
  background: var(--white);
  color: var(--ink-2);
  border-color: var(--border-mid);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--paper);
  border-color: var(--ink-3);
}

.btn-row { display: flex; gap: 8px; margin: 12px 0; }

/* === INFO CARDS === */
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
}

.info-card h3 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
  line-height: 1.3;
}

.info-card p {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.62;
}

.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.cards-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }

.info-card ul {
  padding-left: 14px;
  list-style: disc;
  margin-top: 4px;
}

.info-card ul li {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 3px;
}

/* === METRICS === */
.metrics-4 {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.metric-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 13px;
}

.metric-card .value {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-card p {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* === ALERTS === */
.alert {
  padding: 11px 14px;
  border-radius: var(--r);
  border: 1px solid;
  font-size: 12.5px;
  line-height: 1.62;
  margin-bottom: 10px;
}

.alert strong {
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
}

.alert.red   { background: var(--red-bg);   border-color: var(--red-border);   color: var(--red); }
.alert.amber { background: var(--amber-bg); border-color: var(--amber-border); color: var(--amber); }
.alert.green { background: var(--green-bg); border-color: var(--green-border); color: var(--green); }

/* === SOURCE ROWS (ingestion) === */
.source-list { display: flex; flex-direction: column; gap: 5px; }

.source-row {
  display: grid;
  grid-template-columns: 38px 1fr 30px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--white);
  transition: border-color 0.28s ease, background 0.28s ease;
  opacity: 0;
  transform: translateY(4px);
}

.source-row.done {
  border-color: var(--green-border);
  background: #fcfffe;
}

.source-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.source-icon.doc  { background: #dbeafe; color: #1e40af; }
.source-icon.pdf  { background: #fee2e2; color: #991b1b; }
.source-icon.wiki { background: #ede9fe; color: #5b21b6; }
.source-icon.mail { background: #fef3c7; color: #92400e; }
.source-icon.xls  { background: #dcfce7; color: #166534; }

.source-main { min-width: 0; }

.source-main strong {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-muted { font-size: 10.5px; color: var(--ink-4); }

.source-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}

.source-progress-track {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.source-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent-mid);
  border-radius: 2px;
}

.source-row.done .source-progress-fill { background: var(--green); }

.source-progress-number {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-3);
  min-width: 26px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.source-status {
  font-size: 15px;
  color: var(--ink-4);
  text-align: center;
  line-height: 1;
  transition: color 0.2s;
}

.source-status.done { color: var(--green); font-size: 12px; }

/* === SUMMARY BANNER === */
.summary-banner {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--r);
  padding: 11px 14px;
  font-size: 13px;
  color: var(--green);
  line-height: 1.62;
}

.summary-banner strong { font-weight: 600; }

/* === WRITER SHELL === */
.writer-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color 0.18s ease;
}

.writer-shell:hover { border-color: rgba(30,58,95,0.2); }

.writer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: #f9fafb;
}

.writer-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.writer-pill {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--amber);
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  padding: 2px 8px;
  border-radius: 100px;
}

.writer-output {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.74;
  color: var(--ink-2);
  padding: 18px;
  white-space: pre-wrap;
  min-height: 190px;
  max-height: 360px;
  overflow-y: auto;
  background: #f9f9f8;
}

.writer-output-compact { min-height: 160px; max-height: 320px; }
.writer-shell-compact .writer-output { min-height: 160px; max-height: 320px; }

@keyframes blink {
  0%, 100% { border-right-color: var(--accent); }
  50%       { border-right-color: transparent; }
}

.typing-cursor {
  border-right: 1.5px solid var(--accent);
  animation: blink 0.65s step-end infinite;
}

/* === STATUS LINE (analysis) === */
.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  font-size: 12.5px;
  color: var(--ink-2);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-4);
  flex-shrink: 0;
}

.status-dot.live {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent-light); }
  50%       { box-shadow: 0 0 0 5px var(--accent-light); }
}

/* === FINDING CARDS (conflict/gap) === */
.analysis-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}

.finding-card {
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--r);
  padding: 12px 14px;
}

.finding-card.conflict { border-left-color: var(--red);   background: var(--red-bg); }
.finding-card.gap      { border-left-color: var(--amber); background: var(--amber-bg); }

.finding-card h3 {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.3;
}

.finding-card.conflict h3 { color: var(--red); }
.finding-card.gap h3      { color: var(--amber); }

.finding-card p {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.62;
  margin-bottom: 7px;
}

.finding-card ul { padding-left: 14px; list-style: disc; }

.finding-card ul li {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 3px;
}

/* === VERIFIER / THREAD === */
.verifier-grid {
  display: grid;
  grid-template-columns: 196px 1fr;
  gap: 24px;
  align-items: start;
}

.avatar-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 15px;
  text-align: left;
}

.avatar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.avatar-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 2px solid rgba(30,58,95,0.18);
  flex-shrink: 0;
}

.avatar-card h3 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.avatar-role {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-bottom: 10px;
  line-height: 1.45;
}

.avatar-card p {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.62;
  text-align: left;
}

.thread { display: flex; flex-direction: column; gap: 8px; }

.bubble {
  border-radius: var(--r);
  padding: 10px 13px;
  font-size: 12.5px;
  line-height: 1.66;
  border: 1px solid;
}

.bubble strong {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 5px;
}

.bubble.ai     { background: var(--accent-light); border-color: rgba(30,58,95,0.12); color: var(--ink-2); }
.bubble.ai strong { color: var(--accent-mid); }

.bubble.human  { background: #fffcf5; border-color: var(--amber-border); color: var(--ink-2); }
.bubble.human strong { color: var(--amber); }

.bubble.system { background: var(--green-bg); border-color: var(--green-border); color: var(--green); }
.bubble.system strong { color: var(--green); }

/* === PERSON CHIPS === */
.person-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11.5px;
  color: var(--ink-2);
  background: var(--white);
}

.person-chip-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-chip-badge.amber { background: var(--amber-bg); color: var(--amber); }
.person-chip-badge.blue  { background: var(--accent-light); color: var(--accent); }
.person-chip-badge.green { background: var(--green-bg); color: var(--green); }

/* === NEXT / PREV === */
.next-prev {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

/* === CLEAN LIST === */
.clean-list { display: flex; flex-direction: column; gap: 5px; }

.clean-list li {
  font-size: 12.5px;
  color: var(--ink-3);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.clean-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-mid);
  opacity: 0.5;
  font-size: 10px;
  top: 3px;
}

/* === LANDING PAGE SELECTOR === */
.selector-wrap { padding: 0 0 16px; }

.selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.selector-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 20px 0 14px;
}

.path-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.14s, box-shadow 0.14s;
}

.path-card:hover {
  border-color: rgba(30,58,95,0.28);
  box-shadow: 0 4px 20px rgba(30,58,95,0.06);
}

.path-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-mid);
}

.path-card h2 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: normal;
  color: var(--ink);
  line-height: 1.32;
}

.path-card p {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.68;
}

.path-card .btn-primary { align-self: flex-start; margin-top: 4px; }

body[data-page="landing"] .editorial-section { margin-bottom: 24px; }

/* === HIDDEN / FLASH === */
.hidden { display: none !important; }

@keyframes flashIn {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: translateY(0); }
}

.flash { animation: flashIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* === PAGE ENTRANCE — makes navigation feel like a real app, not a page reload === */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page {
  animation: pageEnter 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* === COMPACT PAGE (writer, review steps) === */
.page-compact .step-header { padding-top: 18px; }

/* === PAGE BACK BUTTON === */
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-4);
  padding: 4px 0;
  margin-bottom: 14px;
  transition: color 0.12s;
  letter-spacing: 0.01em;
}

.page-back:hover { color: var(--ink-2); }

.page-back-arrow {
  font-size: 12px;
  line-height: 1;
}

/* === SOURCE PILLS (writer page) === */
.source-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.source-pills-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  margin-bottom: 6px;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 4px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--border-mid);
  color: var(--ink-3);
}

.source-pill-badge {
  width: 17px;
  height: 17px;
  border-radius: 3px;
  font-size: 7px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.source-pill-badge.doc  { background: #dbeafe; color: #1e40af; }
.source-pill-badge.pdf  { background: #fee2e2; color: #991b1b; }
.source-pill-badge.wiki { background: #ede9fe; color: #5b21b6; }
.source-pill-badge.mail { background: #fef3c7; color: #92400e; }
.source-pill-badge.xls  { background: #dcfce7; color: #166534; }

/* === VERIFIER PILLS === */
.verifier-pills {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.vpill {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid;
}

.vpill.auto    { background: var(--accent-light); color: var(--accent); border-color: rgba(30,58,95,0.2); }
.vpill.pending { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-border); }
.vpill.verified { background: var(--green-bg); color: var(--green); border-color: var(--green-border); }

/* === PHONE FRAME (verifier) === */
.verifier-phone-layout {
  display: grid;
  grid-template-columns: 1fr 218px;
  gap: 28px;
  align-items: start;
}

.phone-frame {
  width: 200px;
  background: #18182e;
  border-radius: 24px;
  padding: 12px 8px 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.32), 0 0 0 1px rgba(255,255,255,0.07);
  margin: 0 auto;
}

.phone-notch {
  width: 56px;
  height: 5px;
  background: #090914;
  border-radius: 4px;
  margin: 0 auto 10px;
}

.phone-screen {
  background: #f5f6fa;
  border-radius: 14px;
  overflow: hidden;
  min-height: 256px;
}

.phone-app-header {
  background: var(--accent);
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.phone-app-icon {
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,0.22);
  border-radius: 3px;
  font-size: 7px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-msg {
  padding: 12px 11px 8px;
}

.phone-msg-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  margin-bottom: 6px;
}

.phone-msg p {
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.6;
}

.phone-confirm-btn {
  display: block;
  margin: 6px 11px 12px;
  width: calc(100% - 22px);
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, opacity 0.12s;
  font-family: var(--font-sans);
  text-align: center;
}

.phone-confirm-btn:hover { background: var(--accent-mid); }
.phone-confirm-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.phone-confirmed-msg {
  margin: 10px 11px 6px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-verified-pill {
  display: block;
  margin: 0 11px 12px;
  background: var(--green);
  color: #fff;
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.elena-result {
  background: var(--white);
  border: 1px solid var(--green-border);
  border-left: 3px solid var(--green);
  border-radius: var(--r);
  padding: 13px;
  margin-top: 11px;
}

.elena-confirmed-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 6px;
}

.elena-result p {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* === GOVERNED PROCEDURE ITEMS === */
.procedure-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

.procedure-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--white);
  transition: border-color 0.35s, background 0.35s;
}

.procedure-item.verified-row {
  border-color: var(--green-border);
  background: #fafffe;
}

.procedure-text {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.4;
  flex: 1;
}

.procedure-status {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s;
  border: 1px solid;
}

.procedure-status.pending {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: var(--amber-border);
}

.procedure-status.verified {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-border);
}

/* === APPLICATION TILES === */
.app-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.app-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out, border-color 0.18s;
}

.app-tile.active {
  opacity: 1;
  transform: translateY(0);
}

.app-tile:hover { border-color: rgba(30,58,95,0.22); }

.app-tile-icon {
  width: 30px;
  height: 30px;
  background: var(--accent-light);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.app-tile h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}

.app-tile p {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* === COVERAGE BAR === */
.coverage-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  opacity: 0;
  transition: opacity 0.4s;
}

.coverage-section.active { opacity: 1; }

.coverage-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  margin-bottom: 10px;
}

.coverage-track {
  height: 5px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 12px;
}

.coverage-fill {
  height: 100%;
  width: 0;
  background: var(--green);
  border-radius: 5px;
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.coverage-value {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
}

.coverage-desc {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 480px;
}

/* === COVERAGE LOADING LINE === */
.coverage-loading-line {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}

.coverage-loading-line::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0;
  background: var(--green);
  border-radius: 2px;
}

.coverage-loading-line.running::after {
  animation: coverageLineSweep 1.4s ease-in-out forwards;
}

@keyframes coverageLineSweep {
  0%   { width: 0; }
  100% { width: 100%; }
}

/* === COVERAGE METRICS GRID === */
.coverage-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.coverage-metrics-row.visible { opacity: 1; }

.cov-metric-value {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 5px;
}

.cov-metric-label {
  font-size: 10px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.4;
}

/* === PHONE TYPING DOTS === */
.phone-typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px 4px;
}

.phone-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  display: block;
  opacity: 0.35;
}

.phone-typing-dots.active span:nth-child(1) { animation: typingDot 1.1s ease-in-out infinite 0s; }
.phone-typing-dots.active span:nth-child(2) { animation: typingDot 1.1s ease-in-out infinite 0.22s; }
.phone-typing-dots.active span:nth-child(3) { animation: typingDot 1.1s ease-in-out infinite 0.44s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* === PHONE REPLY MESSAGE (slide in from right) === */
.phone-reply-msg {
  margin: 4px 11px 6px;
  background: #e2f9ea;
  border: 1px solid #bbf7d0;
  border-radius: 10px 2px 10px 10px;
  padding: 8px 10px;
  font-size: 10.5px;
  color: #166534;
  line-height: 1.55;
  transform: translateX(24px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease-out;
}

.phone-reply-msg.visible {
  transform: translateX(0);
  opacity: 1;
}


/* === PROCEDURE NUMBER === */
.procedure-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(30,58,95,0.18);
  transition: background 0.35s, color 0.35s, border-color 0.35s;
  font-variant-numeric: tabular-nums;
}

.procedure-item.verified-row .procedure-number {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-border);
}

/* === GOVERNED FINAL STATE === */
.governed-final-banner {
  background: var(--accent);
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
}

.governed-final-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.governed-final-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}

.governed-final-text {
  flex: 1;
}

.governed-final-text strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.governed-final-text p {
  font-size: 11.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}

/* === APP TILE KNOWLEDGE LAYER PILL === */
.app-tile-kl-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  background: var(--accent-light);
  border: 1px solid rgba(30,58,95,0.15);
  border-radius: 100px;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* === APP TILE STATUS PILLS === */
.app-tile-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 9px;
}

.app-tile-status-pill {
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid;
}

.app-tile-status-pill.draft    { background: var(--amber-bg);   color: var(--amber);   border-color: var(--amber-border); }
.app-tile-status-pill.verified { background: var(--green-bg);   color: var(--green);   border-color: var(--green-border); }
.app-tile-status-pill.review   { background: var(--accent-light); color: var(--accent); border-color: rgba(30,58,95,0.2); }

/* === APP TILE SEARCH + STATS (Knowledge Manager) === */
.app-tile-search {
  margin-top: 9px;
  width: 100%;
  padding: 5px 9px;
  font-size: 11px;
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  font-family: var(--font-sans);
  color: var(--ink-4);
  background: var(--paper);
  outline: none;
  pointer-events: none;
}

.app-tile-stats {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.app-tile-stat strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.app-tile-stat {
  font-size: 10px;
  color: var(--ink-4);
  line-height: 1.8;
}

/* === APP TILE VERIFIER INNER === */
.app-tile-verifier-inner {
  display: flex;
  gap: 8px;
  margin-top: 9px;
  align-items: flex-start;
}

.app-tile-proc-names {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app-tile-proc-name {
  font-size: 10.5px;
  color: var(--ink-2);
  line-height: 1.4;
  padding: 3px 0;
  border-bottom: 1px solid var(--border);
}

.app-tile-proc-name:last-child { border-bottom: none; }

.app-tile-people-pills {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.app-tile-person-pill {
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
}

.app-tile-person-pill.amber { background: var(--amber-bg);    color: var(--amber);   border-color: var(--amber-border); }
.app-tile-person-pill.blue  { background: var(--accent-light); color: var(--accent);  border-color: rgba(30,58,95,0.2); }
.app-tile-person-pill.green { background: var(--green-bg);    color: var(--green);   border-color: var(--green-border); }

/* === APP TILE MCP INNER === */
.app-tile-mcp-inner {
  margin-top: 9px;
  background: #0f172a;
  border-radius: var(--r);
  padding: 9px 11px;
}

.app-tile-mcp-query {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #7dd3a8;
  line-height: 1.55;
  margin-bottom: 6px;
}

.app-tile-mcp-result {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #94a3b8;
  line-height: 1.5;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* ===================================================
   PREMIUM DESIGN ADDITIONS — Apr 2026 refactor
   =================================================== */

/* === ROUNDED TOKENS OVERRIDE === */
:root {
  --r:    6px;
  --r-lg: 10px;
  --r-xl: 20px;
}

/* === PAGE HEADER (light, replaces dark hero-panel on step pages) === */
.page-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.page-header-body { flex: 1; }

.page-header-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 9px;
}

.page-header-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: normal;
  color: var(--ink);
  line-height: 1.22;
  margin-bottom: 8px;
}

.page-header-lead {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.7;
  max-width: 540px;
}

.page-header-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.page-header-pill.blue {
  background: var(--accent-light);
  color: var(--accent);
  border-color: rgba(30,58,95,0.22);
}

/* === PREMIUM BUTTON — beam sweep === */
.btn {
  border-radius: 7px;
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary:not(:disabled)::after {
  content: '';
  position: absolute;
  top: 0; left: -130%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: btnBeamSweep 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btnBeamSweep {
  0%   { left: -130%; }
  32%  { left: 160%; }
  100% { left: 160%; }
}

/* === HEAD PILL (Automated / Auto-generated) in product-head === */
.head-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid;
  white-space: nowrap;
}

.head-pill.blue     { background: var(--accent-light); color: var(--accent);  border-color: rgba(30,58,95,0.22); }
.head-pill.amber    { background: var(--amber-bg);     color: var(--amber);   border-color: var(--amber-border); }
.head-pill.green    { background: var(--green-bg);     color: var(--green);   border-color: var(--green-border); }

/* === FINDING CARDS — horizontal slide === */
.finding-card {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.32s ease-out, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.finding-card.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === APP TILES — horizontal slide === */
.app-tile {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.32s ease-out, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s;
}

.app-tile.active {
  opacity: 1;
  transform: translateX(0);
}

/* === PROCEDURE MEMBERS (governed page) === */
.procedure-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.procedure-members {
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.procedure-members.visible { opacity: 1; }

.member-circle {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  font-size: 7.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  margin-left: -5px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  flex-shrink: 0;
}

.member-circle:first-child { margin-left: 0; }

.member-circle.neutral {
  background: var(--accent-light);
  color: var(--accent);
  border-color: rgba(30,58,95,0.15);
}

.member-circle.verified-member {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-border);
}

.procedure-count {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-4);
  min-width: 28px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s;
}

.procedure-item.verified-row .procedure-count { color: var(--green); }

/* === PROCEDURE ITEM updated layout === */
.procedure-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--white);
  transition: border-color 0.35s, background 0.35s;
}

/* === MODERN PHONE FRAME === */
.phone-frame {
  width: 210px;
  background: #16162a;
  border-radius: 38px;
  padding: 10px 7px 22px;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.42),
    0 0 0 1px rgba(255,255,255,0.09),
    inset 0 1px 0 rgba(255,255,255,0.06);
  margin: 0 auto;
}

.phone-pill-notch {
  width: 66px;
  height: 8px;
  background: #060610;
  border-radius: 100px;
  margin: 0 auto 7px;
}

.phone-screen {
  background: #f0f2f7;
  border-radius: 18px;
  overflow: hidden;
  min-height: 270px;
}

.phone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px 4px;
  background: var(--accent);
}

.phone-time {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.phone-app-name {
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.phone-signal {
  font-size: 7px;
  color: rgba(255,255,255,0.6);
  letter-spacing: -1px;
}

.phone-chat {
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-question-bubble {
  background: var(--accent-light);
  border: 1px solid rgba(30,58,95,0.14);
  border-radius: 3px 10px 10px 10px;
  padding: 8px 10px;
  font-size: 10px;
  color: var(--ink-2);
  line-height: 1.55;
}

.phone-question-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 4px;
}

/* Override old phone-reply-msg to match new chat style */
.phone-reply-msg {
  background: #d1f7dd;
  border: 1px solid #a7f0ba;
  border-radius: 10px 3px 10px 10px;
  padding: 8px 10px;
  font-size: 10px;
  color: #14532d;
  line-height: 1.56;
  transform: none;
  opacity: 1;
  transition: none;
  margin: 0 0 2px;
  min-height: 18px;
}

/* Remove old slide-in behaviour */
.phone-reply-msg.visible {
  transform: none;
  opacity: 1;
}

/* === PHONE VERIFIED AREA === */
.phone-verified-area {
  margin: 6px 10px 10px;
  background: var(--white);
  border: 1px solid var(--green-border);
  border-radius: var(--r);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-verified-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-verified-label {
  flex: 1;
}

.phone-verified-label strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}

.phone-verified-label span {
  font-size: 9px;
  color: var(--ink-4);
  line-height: 1.4;
}

/* === KNOWLEDGE HEALTHY BANNER === */
.knowledge-healthy-banner {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--r);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.knowledge-healthy-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.healthy-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.healthy-text strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 2px;
}

.healthy-text p {
  font-size: 11.5px;
  color: var(--green);
  opacity: 0.75;
  line-height: 1.4;
}

/* === GOVERNED BLUE BANNER (final step 5) === */
.governed-blue-banner {
  background: var(--accent);
  border-radius: var(--r);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.governed-blue-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.governed-blue-banner-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.governed-blue-banner-text strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.governed-blue-banner-text p {
  font-size: 11.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.4;
}

/* === WRITER CONFIRM BOX === */
.writer-confirm-box {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--r);
  margin-top: 12px;
}

.writer-confirm-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.writer-confirm-body {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.62;
}

.writer-confirm-body strong {
  font-weight: 600;
  color: var(--green);
}

.writer-confirm-sub {
  font-size: 11.5px;
  color: var(--ink-4);
  margin-top: 4px;
}

/* === SOURCE PILL ACTIVE === */
.source-pill.pill-active {
  background: var(--accent-light);
  border-color: rgba(30,58,95,0.3);
  color: var(--accent);
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}

.source-pill.pill-active .source-pill-badge.doc  { background: #bfdbfe; color: #1e40af; }
.source-pill.pill-active .source-pill-badge.pdf  { background: #fecaca; color: #991b1b; }
.source-pill.pill-active .source-pill-badge.wiki { background: #ddd6fe; color: #5b21b6; }
.source-pill.pill-active .source-pill-badge.mail { background: #fde68a; color: #92400e; }
.source-pill.pill-active .source-pill-badge.xls  { background: #bbf7d0; color: #166534; }

/* === COST OF INACTION REVEAL === */
.inaction-reveal {
  background: var(--white);
  border: 1px solid var(--red-border);
  border-left: 3px solid var(--red);
  border-radius: var(--r);
  padding: 14px 16px;
}

.inaction-claim {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 12px;
  line-height: 1.4;
}

.inaction-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.inaction-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

.inaction-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.inaction-dot.red   { background: var(--red); }
.inaction-dot.amber { background: var(--amber); }

/* === COVERAGE METRICS — improved === */
.coverage-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.coverage-metrics-row.visible { opacity: 1; }

.cov-metric {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 11px 13px;
}

.cov-metric-value {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 5px;
}

.cov-metric-label {
  font-size: 10px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.4;
}

/* === FINDING SUMMARY (analysis step, third animated card) === */
.finding-summary {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.32s ease-out, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.62;
}

.finding-summary strong {
  font-weight: 600;
  color: var(--accent);
}

.finding-summary.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === PREMIUM BUTTON REFINEMENT === */
.btn-primary {
  background: linear-gradient(180deg, #2d5282 0%, var(--accent) 100%);
  box-shadow: 0 1px 3px rgba(30,58,95,0.22), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #3a64a0 0%, var(--accent-mid) 100%);
  box-shadow: 0 2px 6px rgba(30,58,95,0.28), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* === PHONE REPLY TYPING CONTAINER === */
/* When empty (during typing), show as a small visible bubble */
.phone-reply-msg:empty {
  min-height: 28px;
}

/* ===================================================
   PRECISION REFINEMENTS — Apr 2026 quality pass
   =================================================== */

/* === LANDING HERO — LIGHTER, MORE BREATHABLE === */
.landing-hero {
  background: linear-gradient(148deg, #0c1c35 0%, #111827 100%);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 44px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.16);
}

.landing-hero .hero-inner {
  padding: 68px 56px 62px;
}

.landing-hero::before {
  background: radial-gradient(ellipse 55% 80% at 12% 50%, rgba(45,82,130,0.3) 0%, transparent 65%);
}

/* Bottom edge accent — draws in on load */
.landing-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(45,82,130,0.6) 20%,
    rgba(96,165,250,0.85) 50%,
    rgba(45,82,130,0.6) 80%,
    transparent 100%
  );
  animation: heroEdgeAccent 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
  pointer-events: none;
}

@keyframes heroEdgeAccent {
  0%   { width: 0; opacity: 0; }
  8%   { opacity: 1; }
  100% { width: 100%; opacity: 1; }
}

.landing-hero .hero-title {
  font-size: 34px;
}

.landing-hero .hero-lead {
  font-size: 14px;
  max-width: 560px;
}

/* === PATH CARDS — IMPROVED === */
.path-card {
  padding: 28px 28px 26px;
  gap: 14px;
}

.path-card h2 {
  font-size: 18px;
}

/* === APP TILE — PRECISION CARD ARCHITECTURE === */
.app-tile {
  padding: 18px 18px 16px;
  transform: translateX(-14px);
  transition: opacity 0.38s ease-out, transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s;
}

.app-tile.active {
  transform: translateX(0);
}

/* Head row: icon left, pill right */
.app-tile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}

.app-tile-head .app-tile-icon {
  margin-bottom: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(30,58,95,0.14);
  font-size: 10.5px;
}

.app-tile-head .app-tile-kl-pill {
  margin-bottom: 0;
  flex-shrink: 0;
}

.app-tile h3 {
  font-size: 12.5px;
  margin-bottom: 5px;
  line-height: 1.28;
}

.app-tile p {
  font-size: 11.5px;
  line-height: 1.62;
  margin-bottom: 0;
}

/* === COVERAGE SECTION ENTRANCE === */
.coverage-section {
  transform: translateY(8px);
  transition: opacity 0.44s ease-out, transform 0.44s cubic-bezier(0.16, 1, 0.3, 1);
}

.coverage-section.active {
  transform: translateY(0);
}

.coverage-loading-line.running::after {
  animation: coverageLineSweep 1.5s cubic-bezier(0.22, 0, 0.18, 1) forwards;
}

/* === KNOWLEDGE HEALTHY BANNER — STRONG FINAL SIGNAL === */
.knowledge-healthy-banner {
  border-left: 3px solid var(--green);
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fffc 100%);
  box-shadow: 0 2px 14px rgba(21, 128, 61, 0.07);
}

.healthy-icon {
  width: 28px;
  height: 28px;
  font-size: 12px;
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.1);
}

.healthy-text strong {
  font-size: 13px;
  letter-spacing: -0.01em;
}

/* === CONTACT PAGE === */
.contact-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0 6px;
}

.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 1px solid rgba(30,58,95,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.contact-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 4px;
}

.contact-email {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.14s;
}

.contact-email:hover {
  color: var(--accent-mid);
}

/* === PROFESSOR MEET PAGE — page-header variant === */
.page-header-side-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.7;
  max-width: 540px;
}

/* === APP TILE — CONTENT ZONE SEPARATOR === */
/* Visual break between card header (icon/title/desc) and the UI demo area */
.app-tile .app-tile-pills-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.app-tile .app-tile-search {
  margin-top: 12px !important;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.app-tile .app-tile-verifier-inner {
  margin-top: 12px !important;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.app-tile .app-tile-mcp-inner {
  margin-top: 12px !important;
}

/* Tile transition: slightly longer for more elegance */
.app-tile {
  transition: opacity 0.44s ease-out, transform 0.44s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s;
}

/* Tile hover: subtle lift */
.app-tile:hover {
  border-color: rgba(30,58,95,0.22);
  box-shadow: 0 2px 12px rgba(30,58,95,0.05);
}

/* Tiles grid: tighter gap */
.app-tiles-grid {
  gap: 10px;
  margin-bottom: 14px;
}

/* === COVERAGE METRICS — INLINE SEPARATOR STYLE === */
/* Replace boxed metrics with a clean horizontal stat bar */
.coverage-metrics-row {
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.cov-metric {
  background: var(--paper);
  border: none;
  border-radius: 0;
  border-right: 1px solid var(--border);
  padding: 12px 14px;
}

.cov-metric:last-child {
  border-right: none;
}

.cov-metric-value {
  font-size: 22px;
  margin-bottom: 4px;
}

.cov-metric-label {
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

/* First metric (Coverage%) — visually dominant */
.coverage-metrics-row .cov-metric:first-child .cov-metric-value {
  font-size: 26px;
  color: var(--accent);
}

/* === COVERAGE SECTION — INTEGRATED HEADER === */
.coverage-section {
  padding: 16px 18px;
}

.coverage-section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.coverage-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mid);
  opacity: 0.7;
}

/* === HEALTHY BANNER — FINAL SIGNAL REFINEMENTS === */
.knowledge-healthy-banner {
  margin-top: 12px;
}

.healthy-text p {
  letter-spacing: 0.01em;
}

/* === INGESTION PAGE — PROFESSOR BUTTON IN PRODUCT-HEAD === */
/* Move button out of product-head visually (already correct in institutional) */
.product-head .btn {
  margin-left: auto;
}

/* ===================================================
   STEP 6 — APPLICATION CARD ARCHITECTURE REFINEMENTS
   =================================================== */

/* Equal-height row: grid stretches cells to tallest in row */
.app-tiles-grid {
  align-items: stretch;
}

/* Flex column layout: separates description zone from module zone */
.app-tile {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

/* Description text stretches to fill vertical space */
.app-tile > p {
  flex: 1;
}

/* All module zones: auto-margin pins them to card bottom */
.app-tile .app-tile-pills-row,
.app-tile .app-tile-search,
.app-tile .app-tile-verifier-inner,
.app-tile .app-tile-mcp-inner {
  margin-top: auto !important;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Subtle elevation on revealed tiles */
.app-tile.active {
  box-shadow: 0 2px 14px rgba(30,58,95,0.07);
}

/* Stats: stronger number weight, more breathing room */
.app-tile-stats {
  gap: 16px;
  margin-top: 0;
}

.app-tile-stat strong {
  font-size: 16px;
}

/* Coverage: widen gap between primary and secondary metrics */
.coverage-metrics-row .cov-metric:first-child .cov-metric-value {
  font-size: 28px;
}

/* Coverage section entrance: also clip the loading line animation */
.coverage-section {
  padding: 16px 18px 18px;
}

/* ===================================================
   STEP 6 — APPLICATION CARD v2 REFINEMENTS (Apr 2026)
   =================================================== */

/* Module zones — extend auto-push rule to new module elements */
.app-tile .app-tile-writer-list,
.app-tile .app-tile-mcp-endpoints {
  margin-top: auto !important;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* === KNOWLEDGE WRITER — ARTICLE LIST === */
.app-tile-writer-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app-tile-writer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

.app-tile-writer-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.app-tile-writer-item-label {
  font-size: 10.5px;
  color: var(--ink-2);
  line-height: 1.4;
  flex: 1;
}

/* === KNOWLEDGE MANAGER — SINGLE STAT LINE === */
.app-tile-manager-stat {
  font-size: 10px;
  color: var(--ink-4);
  line-height: 1.5;
  border-top: none !important;
  padding-top: 6px !important;
  margin-top: 0 !important;
}

/* The search field already has the separator; stat sits right below */
.app-tile-search + .app-tile-manager-stat {
  padding-top: 6px;
  border-top: none;
}

/* === KNOWLEDGE MANAGER TILE — reduce bottom-push so search sits higher === */
.app-tile--manager > p {
  flex: 0 !important;
}
.app-tile--manager .app-tile-search {
  margin-top: 14px !important;
}

/* === MCP INTERFACE — ENDPOINT LIST === */
.app-tile-mcp-endpoints {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-tile-mcp-ep {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--ink-2);
}

.app-tile-mcp-method {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent-mid);
  flex-shrink: 0;
  min-width: 30px;
}

.app-tile-mcp-ep-text {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-3);
}

/* === COVERAGE SECTION — ROW LAYOUT (replaces 4-tile grid) === */
.coverage-metrics-row {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.cov-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.cov-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.cov-row-label {
  font-size: 11.5px;
  color: var(--ink-3);
  flex: 1;
}

.cov-row-bar-track {
  flex: 0 0 100px;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.cov-row-fill {
  height: 100%;
  width: 0;
  background: var(--green);
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.coverage-metrics-row.visible .cov-row-fill {
  width: 87%;
}

.cov-row-value {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  min-width: 28px;
  text-align: right;
  line-height: 1;
}

.cov-row-value--green  { color: var(--green); }
.cov-row-value--red    { color: var(--red); }
.cov-row-value--orange { color: var(--amber); }

/* Slim the loading line above coverage rows */
.coverage-section .coverage-loading-line {
  margin-bottom: 10px;
}

/* ===================================================
   GET IN TOUCH — CONTACT PANEL REFINEMENTS
   =================================================== */

/* More generous contact layout on the simplified page */
.contact-panel {
  padding: 22px 0 14px;
  gap: 20px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.contact-email {
  font-size: 16px;
}

/* ===================================================
   STEP 6 — PRE-STATE + REVEAL ZONE
   =================================================== */

/* Compact 2×2 ghost grid shown before button click */
.app-pre-state {
  padding: 2px 0 4px;
}

.app-pre-state-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.app-pre-state-card {
  height: 42px;
  border: 1.5px dashed rgba(30,58,95,0.18);
  border-radius: var(--r-lg);
  background: transparent;
}

/* Reveal zone: hidden until JS adds .active */
#appRevealZone {
  display: none;
}

#appRevealZone.active {
  display: block;
}

/* ===================================================
   STEP 6 — PRECISION PASS 2 (Apr 2026)
   =================================================== */

/* === PRE-STATE — compact ghost placeholders === */
.app-pre-state-card {
  height: 20px;
}

/* === MCP INTERFACE — governed system endpoint feel === */
.app-tile-mcp-inner {
  background: #0c1622;
  border: 1px solid rgba(255,255,255,0.07);
  padding: 0;
  overflow: hidden;
}

.app-tile-mcp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
}

.app-tile-mcp-endpoint {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #475569;
  letter-spacing: 0.02em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-tile-mcp-badge {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(45,82,130,0.55);
  color: #93c5fd;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid rgba(147,197,253,0.18);
  flex-shrink: 0;
}

.app-tile-mcp-query {
  padding: 8px 10px 7px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.app-tile-mcp-response {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
}

.app-tile-mcp-ok {
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4ade80;
  background: rgba(74,222,128,0.1);
  padding: 1px 7px;
  border-radius: 3px;
  border: 1px solid rgba(74,222,128,0.15);
  flex-shrink: 0;
}

.app-tile-mcp-meta {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #475569;
  line-height: 1.4;
  text-align: right;
}

/* === COVERAGE METRICS — semantic color context === */
.cov-metric--primary .cov-metric-value {
  color: var(--accent);
}

.cov-metric--warn .cov-metric-value {
  color: var(--amber);
}

.cov-metric--ok .cov-metric-value {
  color: var(--green);
}

/* === COVERAGE STATUS DOT — live pulse === */
.coverage-status-dot {
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(21,128,61,0.15);
  animation: pulseDot 2.4s ease-in-out infinite;
}

/* ===================================================
   LANDING PAGE v2 — LIGHT PREMIUM ENTRY POINT
   Replaces the heavy dark hero block with a restrained
   institutional intro and a moving accent line.
   =================================================== */

/* Remove top padding — intro block owns its own spacing */
.landing {
  padding-top: 0;
}

/* Light intro section: calm, breathing, institutional */
.landing-intro {
  padding: 68px 0 52px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  position: relative;
}

/* Accent line at top — 1px border with a slow blue beam sweep */
.landing-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  overflow: hidden;
}

.landing-accent-beam {
  position: absolute;
  top: 0;
  left: -42%;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(45, 82, 130, 0.68) 48%,
    rgba(45, 82, 130, 0.68) 52%,
    transparent 100%
  );
  animation: landingBeamSweep 5.8s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes landingBeamSweep {
  0%   { left: -42%; opacity: 0; }
  6%   { opacity: 1; }
  72%  { left: 118%; opacity: 1; }
  78%  { left: 118%; opacity: 0; }
  100% { left: 118%; opacity: 0; }
}

/* Kicker: restrained, system-label feel */
.landing-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 18px;
  opacity: 0.85;
}

/* Title: serif, calm, no hero weight */
.landing-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: normal;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.012em;
}

/* Lead: secondary, under 520px width, comfortable line height */
.landing-lead {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.75;
  max-width: 510px;
}

/* Selector section: pull eyebrow closer to cards */
.selector-wrap {
  padding-bottom: 40px;
}

.selector-eyebrow {
  padding-bottom: 16px;
  padding-top: 0;
  color: var(--ink-3);
}

/* ===================================================
   PATH CARDS — system-consistent card architecture
   Header separator mirrors product-panel product-head
   =================================================== */

/* Card header row: label + optional pill, with separator */
.path-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

/* Left-border accent on hover — institutional precision */
.path-card {
  border-left-width: 2px;
  border-left-color: transparent;
  transition: border-color 0.16s ease, border-left-color 0.16s ease,
              box-shadow 0.16s ease;
}

.path-card:hover {
  border-color: var(--border);
  border-left-color: var(--accent-mid);
  box-shadow: 0 4px 24px rgba(30, 58, 95, 0.07);
}

/* Track tag pill inside card head — subtle system identifier */
.path-track-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}

