/* ================================================================
   CONNEX — Editorial primitives
   Window chrome, big numerals, drop caps, live transcript,
   score gauge, terminal styling, decorative components
   ================================================================ */

/* ----------------------------------------------------------------
   SECTION NUMERAL — big italic Fraunces accent
   ---------------------------------------------------------------- */
.section-marker {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 40px;
}
.section-marker__num {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 56px;
  line-height: 0.9;
  color: var(--accent);
  font-feature-settings: "lnum";
  letter-spacing: -0.02em;
  flex-shrink: 0;
  opacity: 0.85;
}
.section-marker__num sup {
  font-size: 0.32em;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-right: 6px;
  vertical-align: top;
  position: relative;
  top: 0.6em;
}
.section-marker__label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--border-strong);
  padding-top: 14px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-marker__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
@media (max-width: 768px) {
  .section-marker__num { font-size: 42px; }
}

/* Mega numeral — for hero accents */
.mega-numeral {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(120px, 18vw, 280px);
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.04em;
  font-feature-settings: "lnum";
}

/* ----------------------------------------------------------------
   DROP CAP — editorial first-letter accent
   ---------------------------------------------------------------- */
.drop-cap::first-letter {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 6em;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.12em 0 -0.04em;
  color: var(--accent);
  font-feature-settings: "lnum";
}

/* ----------------------------------------------------------------
   TERMINAL / WINDOW CHROME
   ---------------------------------------------------------------- */
.window {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 60px -20px rgba(0, 0, 0, 0.6),
    0 8px 24px -12px rgba(0, 0, 0, 0.4);
}
.window__titlebar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(180deg, #1B2D49 0%, #142339 100%);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.window__lights {
  display: flex;
  gap: 8px;
}
.window__light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.window__light--r { background: #ED6A5E; border-color: #C24E44; }
.window__light--y { background: #F4BF4F; border-color: #C8961E; }
.window__light--g { background: #61C554; border-color: #3F993F; }
.window__title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.window__title strong { color: var(--text-secondary); font-weight: 500; }
.window__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.window__action {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.window__addrbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(10, 22, 40, 0.6);
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
}
.window__breadcrumb {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.window__breadcrumb span.sep { opacity: 0.5; }
.window__breadcrumb span.active { color: var(--accent); }

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}
.lang-switch button {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 160ms ease-out;
}
.lang-switch button:hover { color: var(--text-secondary); }
.lang-switch button.active {
  background: var(--accent);
  color: #1A1208;
}

/* ----------------------------------------------------------------
   SCORE GAUGE — radial progress dial
   ---------------------------------------------------------------- */
.gauge {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.gauge__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}
.gauge__bar {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.gauge__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-feature-settings: "tnum";
}

/* ----------------------------------------------------------------
   LIVE TRANSCRIPT — terminal-style scrolling lines
   ---------------------------------------------------------------- */
.transcript {
  background:
    linear-gradient(180deg, rgba(212, 165, 116, 0.04), transparent),
    var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(212, 165, 116, 0.08),
    0 20px 60px -20px rgba(0, 0, 0, 0.5);
}
.transcript__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.transcript__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.transcript__label .live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse-green 1.5s ease-in-out infinite;
}
.transcript__count {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.transcript__body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  min-height: 240px;
  max-height: 260px;
  overflow: hidden;
  position: relative;
  color: var(--text-secondary);
}
.transcript__body::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 32px;
  background: linear-gradient(180deg, transparent, var(--bg-elevated));
  pointer-events: none;
}
.transcript__line {
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  white-space: nowrap;
  opacity: 1;
}
.transcript__line.entering {
  animation: line-in 360ms ease-out;
}
.transcript__line .ts { color: var(--text-muted); }
.transcript__line .marker { color: var(--accent); }
.transcript__line .good { color: var(--success); }
.transcript__line .key { color: var(--text-primary); font-weight: 500; }
@keyframes line-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.transcript__caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: middle;
  animation: caret-blink 1s steps(2) infinite;
}
@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ----------------------------------------------------------------
   BADGES & PILLS
   ---------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.pill--gold {
  background: rgba(212, 165, 116, 0.1);
  border-color: rgba(212, 165, 116, 0.25);
  color: var(--accent);
}
.pill--success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--success);
}
.pill--warn {
  background: rgba(239, 174, 90, 0.1);
  border-color: rgba(239, 174, 90, 0.3);
  color: #EFAE5A;
}

/* ----------------------------------------------------------------
   KBD — keyboard shortcut chip
   ---------------------------------------------------------------- */
.kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1;
}

/* ----------------------------------------------------------------
   HAIRLINE / DECORATIVE RULE
   ---------------------------------------------------------------- */
.rule-decorative {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
  color: var(--text-muted);
}
.rule-decorative::before,
.rule-decorative::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.rule-decorative__mark {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--accent);
}

/* ----------------------------------------------------------------
   STATUS BAR (top of hero)
   ---------------------------------------------------------------- */
.status-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.status-bar__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 8px;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse-soft 2s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.status-bar__divider { opacity: 0.4; }
.status-bar__count {
  color: var(--accent);
  font-feature-settings: "tnum";
  font-weight: 500;
}

/* ----------------------------------------------------------------
   MARGIN NOTE — editorial sidebar mark
   ---------------------------------------------------------------- */
.margin-note {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ----------------------------------------------------------------
   PROSPECT QUEUE — visualized as inbox-like row list
   ---------------------------------------------------------------- */
.prospect-queue {
  display: flex;
  flex-direction: column;
}
.prospect-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 160ms;
  font-family: inherit;
  color: inherit;
}
.prospect-row:hover { background: rgba(212, 165, 116, 0.04); }
.prospect-row.selected { background: rgba(212, 165, 116, 0.08); }
.prospect-row.selected::before {
  content: '';
  position: absolute;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
}
.prospect-row { position: relative; }
.prospect-row__flag {
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1px;
}
.prospect-row__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.prospect-row__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prospect-row__sub {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prospect-row__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
