/* Codexini · Landing (Status-page briefing direction)
   Reuses tokens from auth-account.css. Dark only. */

:root {
  color-scheme: dark;

  --paper: #F7F5EF;
  --ink: #0A0A0A;
  --live: #FF4C41;
  --ready: #24B8E8;
  --warm: #E25E0D;
  --amber: #F2B441;
  --ok: #1F8A5B;

  --bg: #080808;
  --surface: #0F0E0C;
  --surface2: #15140F;
  --terminal-bg: #040404;

  --text: var(--paper);
  --hush: rgba(247, 245, 239, 0.62);
  --whisper: rgba(247, 245, 239, 0.36);
  --hairline: rgba(247, 245, 239, 0.10);
  --hairline2: rgba(247, 245, 239, 0.18);
  --chip: rgba(247, 245, 239, 0.05);

  --font-display: 'Fraunces', 'Tiempos', Georgia, serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { height: 100%; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img, svg { display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── Topbar ────────────────────────────────────────────────────── */
.tl-topbar {
  height: 56px;
  border-bottom: 1px solid var(--hairline);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.tl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.tl-brand-wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.012em;
  font-weight: 400;
}

.tl-nav {
  display: flex;
  gap: 22px;
  margin-left: 14px;
}

.tl-nav a {
  font-size: 13px;
  color: var(--hush);
  transition: color 140ms ease;
}

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

.tl-topbar-end {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.tl-version-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--hush);
  letter-spacing: 0.04em;
}

.tl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease;
  white-space: nowrap;
}

.tl-btn-primary { background: var(--text); color: var(--bg); }
.tl-btn-primary:hover { opacity: 0.88; }

.tl-btn-secondary { border-color: var(--hairline2); }
.tl-btn-secondary:hover { border-color: rgba(247, 245, 239, 0.36); }

.tl-btn-lg {
  padding: 12px 22px;
  font-size: 13.5px;
  border-radius: 8px;
}

/* ── Status dots ───────────────────────────────────────────────── */
.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

.tl-dot-12 { width: 12px; height: 12px; }
.tl-dot-7  { width: 7px;  height: 7px; }
.tl-dot-6  { width: 6px;  height: 6px; }

.tl-dot-ok    { background: var(--ok);    box-shadow: 0 0 0 5px rgba(31, 138, 91, 0.12); }
.tl-dot-ready { background: var(--ready); box-shadow: 0 0 0 5px rgba(36, 184, 232, 0.12); }
.tl-dot-live  { background: var(--live);  box-shadow: 0 0 0 5px rgba(255, 76, 65, 0.12); }
.tl-dot-amber { background: var(--amber); box-shadow: 0 0 0 5px rgba(242, 180, 65, 0.12); }
.tl-dot-warm  { background: var(--warm);  box-shadow: 0 0 0 5px rgba(226, 94, 13, 0.12); }

/* ── Orb (reused from auth-account) ───────────────────────────── */
.tl-orb {
  width: 22px;
  height: 22px;
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
}

.tl-orb-disc {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(247, 245, 239, 0.08);
}

.tl-orb-svg {
  width: 78%;
  height: auto;
  overflow: visible;
}

/* ── Eyebrow ───────────────────────────────────────────────────── */
.tl-eye {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--whisper);
  margin: 0;
}

.tl-eye-strong { color: var(--hush); }

/* ── Layout container ─────────────────────────────────────────── */
.tl-section {
  max-width: 1200px;
  margin: 0 auto;
}

.tl-section-pad {
  padding: 52px 40px 32px;
}

.tl-section-pad-tight { padding: 36px 40px; }
.tl-section-pad-flow  { padding: 52px 40px; }
.tl-section-pad-install { padding: 40px 40px 36px; }

/* ── Hero ─────────────────────────────────────────────────────── */
.tl-status-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.tl-status-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hush);
}

.tl-status-rule {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.tl-status-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--hush);
  letter-spacing: 0.04em;
}

.tl-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.tl-hero h1 {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 400;
  letter-spacing: -0.030em;
  line-height: 0.94;
  margin: 16px 0 0;
  color: var(--text);
}

.tl-hero h1.is-dim {
  color: var(--whisper);
  margin-top: 0;
}

.tl-hero-sub {
  font-size: 16px;
  color: var(--hush);
  line-height: 1.6;
  margin: 28px 0 26px;
  max-width: 540px;
}

.tl-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tl-arrow { font-family: var(--font-body); }

/* Subsystem card */
.tl-subsystems {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 20px 22px;
}

.tl-subsystems-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.tl-subsystems-pct {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ready);
  letter-spacing: 0.04em;
}

.tl-subsystem {
  display: grid;
  grid-template-columns: 1.3fr 2fr 56px;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--hairline);
}

.tl-subsystem:first-of-type { border-top: none; }

.tl-subsystem-name {
  font-size: 12.5px;
  color: var(--text);
}

.tl-subsystem-bars {
  display: flex;
  gap: 1.5px;
  height: 18px;
}

.tl-subsystem-bars span {
  flex: 1;
  background: var(--ready);
  border-radius: 1px;
}

.tl-subsystem-bars span:nth-child(3n) { opacity: 0.55; }
.tl-subsystem-bars span:nth-child(3n+1) { opacity: 0.70; }
.tl-subsystem-bars span:nth-child(3n+2) { opacity: 0.85; }

.tl-subsystem-pct {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ready);
  text-align: right;
  letter-spacing: 0.04em;
}

/* ── Showcase ─────────────────────────────────────────────────── */
.tl-window {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}

.tl-window-chrome {
  padding: 12px 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tl-window-chrome > .tl-traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.tl-traffic-live { background: var(--live); }
.tl-traffic-amber { background: var(--amber); }
.tl-traffic-ready { background: var(--ready); }

.tl-window-title {
  margin-left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--hush);
  letter-spacing: 0.04em;
}

.tl-window-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--whisper);
  letter-spacing: 0.18em;
}

.tl-showcase-body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.tl-showcase-col {
  padding: 28px 32px;
}

.tl-showcase-col-left {
  border-right: 1px solid var(--hairline);
}

.tl-showcase-col h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1;
  margin: 8px 0 16px;
  color: var(--text);
}

/* Console */
.tl-console {
  background: var(--terminal-bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 18px 20px;
  min-height: 220px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
}

.tl-console .line-whisper { color: var(--whisper); }
.tl-console .line-hush    { color: var(--hush); }
.tl-console .line-ready   { color: var(--ready); }
.tl-console .line-amber   { color: var(--amber); }
.tl-console .line-live    { color: var(--live); }

.tl-console-bars {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}

.tl-console-bars span {
  display: block;
  height: 13px;
  background: var(--live);
  opacity: 0.78;
  box-shadow: 0 0 16px rgba(255, 76, 65, 0.18);
}

.tl-console-paragraph {
  margin: 8px 0 0;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
  min-height: 80px;
}

.tl-secret {
  color: var(--live);
  font-weight: 500;
}

.tl-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--ready);
  margin-left: 4px;
  vertical-align: -2px;
  animation: tl-cursor 1s steps(2) infinite;
}

@keyframes tl-cursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Reveal button + meter */
.tl-reveal-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.tl-reveal-btn {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 13px 18px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  transition: opacity 140ms ease;
}

.tl-reveal-btn:hover { opacity: 0.88; }

.tl-reveal-btn[data-active='true'],
.tl-reveal-btn[data-active='done'] {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--hairline2);
  cursor: default;
}

.tl-reveal-btn:disabled { cursor: default; }

.tl-reveal-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tl-reveal-btn-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.62;
}

.tl-meter {
  padding: 11px 14px;
  background: var(--surface2);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.tl-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tl-meter-status {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--whisper);
  text-transform: uppercase;
}

.tl-meter-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.04em;
}

.tl-meter-bar {
  width: 100%;
  height: 4px;
  background: var(--hairline);
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}

.tl-meter-fill {
  width: 0%;
  height: 100%;
  background: var(--amber);
  transition: width 0.4s ease-out, background 0.2s ease-out;
}

.tl-meter-fill.is-done { background: var(--ready); }

/* Event log */
.tl-event-log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

.tl-event-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.tl-event-count.is-open { color: var(--ready); }
.tl-event-count.is-locked { color: var(--live); }

.tl-event-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.tl-event-row:last-child { border-bottom: none; }

.tl-event-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.tl-event-tplus {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--whisper);
  letter-spacing: 0.16em;
  margin-top: 2px;
}

.tl-event-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.tl-event-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tl-event-tag-redacted { color: var(--live); }
.tl-event-tag-1 { color: var(--live); }
.tl-event-tag-2 { color: var(--ready); }
.tl-event-tag-3 { color: var(--warm); }
.tl-event-tag-4 { color: var(--ready); }
.tl-event-tag-5 { color: var(--warm); }

.tl-event-title {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.tl-event-body {
  font-size: 13px;
  color: var(--hush);
  margin-top: 3px;
  line-height: 1.5;
}

.tl-event-redact {
  display: grid;
  gap: 7px;
}

.tl-event-redact span {
  display: block;
  height: 11px;
  background: var(--live);
}

.tl-event-redact span:nth-child(1) { opacity: 0.68; }
.tl-event-redact span:nth-child(2) { opacity: 0.62; }

/* Card visibility while locked vs unlocked */
.tl-event-row.is-locked .tl-event-title,
.tl-event-row.is-locked .tl-event-body { display: none; }

.tl-event-row:not(.is-locked) .tl-event-redact { display: none; }

/* ── Flow section ─────────────────────────────────────────────── */
.tl-flow-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.tl-flow-head h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.04;
  margin: 6px 0;
  color: var(--text);
}

.tl-flow-head p {
  font-size: 14px;
  color: var(--hush);
  line-height: 1.55;
  margin: 0;
  max-width: 580px;
}

.tl-flow-btn-stack {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
}

.tl-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tl-flow-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 20px 22px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tl-flow-card.is-locked { border-color: rgba(255, 76, 65, 0.22); }

.tl-flow-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tl-flow-edge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.tl-flow-edge-1.is-on { color: var(--live); }
.tl-flow-edge-2.is-on { color: var(--warm); }
.tl-flow-edge-3.is-on { color: var(--ready); }

.tl-flow-edge { color: var(--live); }

.tl-flow-status {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--whisper);
  letter-spacing: 0.16em;
}

.tl-flow-card.is-open .tl-flow-status { color: var(--ready); }

.tl-flow-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.014em;
  margin: 0;
  color: var(--text);
}

.tl-flow-card p {
  font-size: 13.5px;
  color: var(--hush);
  line-height: 1.55;
  margin: 0;
}

.tl-flow-spark {
  display: flex;
  gap: 1.5px;
  height: 12px;
  margin-top: auto;
}

.tl-flow-spark span {
  flex: 1;
  border-radius: 1px;
}

.tl-flow-card.is-open .tl-flow-spark span { background: currentColor; }

.tl-flow-spark span:nth-child(3n) { opacity: 0.45; }
.tl-flow-spark span:nth-child(3n+1) { opacity: 0.63; }
.tl-flow-spark span:nth-child(3n+2) { opacity: 0.81; }

.tl-flow-card-1.is-open { color: var(--live); }
.tl-flow-card-2.is-open { color: var(--warm); }
.tl-flow-card-3.is-open { color: var(--ready); }

.tl-flow-locked-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.tl-flow-target {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 76, 65, 0.7);
  letter-spacing: 0.18em;
}

.tl-flow-count {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  color: var(--live);
  letter-spacing: -0.025em;
  line-height: 1;
}

.tl-flow-redact {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.tl-flow-redact span {
  display: block;
  height: 10px;
  background: var(--live);
  opacity: 0.62;
}

/* Locked vs open content swap */
.tl-flow-card.is-open .tl-flow-locked-body { display: none; }
.tl-flow-card:not(.is-open) .tl-flow-open-body { display: none; }

/* Incident strip */
.tl-incident {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tl-incident-meta {
  flex: 1;
}

.tl-incident-eye {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ready);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tl-incident-body {
  font-size: 13px;
  color: var(--hush);
  margin-top: 3px;
}

.tl-incident-body .tl-mono {
  font-family: var(--font-mono);
  color: var(--text);
}

.tl-incident-slo {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--hush);
  letter-spacing: 0.04em;
}

/* ── Install section ──────────────────────────────────────────── */
.tl-install-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

.tl-install-grid > div {
  min-width: 0;
}

.tl-install-grid h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.02;
  margin: 6px 0 14px;
  color: var(--text);
}

.tl-install-grid > div > p {
  font-size: 14px;
  color: var(--hush);
  line-height: 1.6;
  margin: 0 0 20px;
}

.tl-preflight {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
}

.tl-preflight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tl-preflight-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ready);
  letter-spacing: 0.18em;
}

.tl-preflight-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
}

.tl-preflight-row:first-of-type { border-top: none; }

.tl-preflight-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.tl-preflight-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tl-preflight-status.is-pass { color: var(--ready); }
.tl-preflight-status.is-warn { color: var(--amber); }

/* Install tabs */
.tl-install-tabs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tl-install-tab-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.tl-install-tab {
  appearance: none;
  border: 1px solid var(--hairline2);
  background: transparent;
  color: var(--hush);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.tl-install-tab:hover { color: var(--text); }

.tl-install-tab.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.tl-install-panel-wrap {
  position: relative;
  max-width: 100%;
  min-width: 0;
  border-radius: 12px;
  background: var(--terminal-bg);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.tl-install-panel-chrome {
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hush);
}

.tl-install-panel-chrome .tl-traffic {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.tl-install-panel-chrome .tl-traffic-1 { background: #FF5F57; }
.tl-install-panel-chrome .tl-traffic-2 { background: #FEBC2E; }
.tl-install-panel-chrome .tl-traffic-3 { background: #28C840; }
.tl-install-panel-chrome .tl-traffic-label { margin-left: 12px; }

.tl-install-panel {
  display: none;
  max-width: 100%;
  margin: 0;
  padding: 28px 28px 64px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
}

.tl-install-panel.is-active { display: block; }

.tl-install-copy {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 140ms ease;
}

.tl-install-copy:hover { opacity: 0.88; }
.tl-install-copy.is-copied { background: var(--ready); color: var(--ink); }

.tl-install-foot {
  font-size: 12.5px;
  color: var(--hush);
  margin: 16px 0 0;
  line-height: 1.55;
}

.tl-install-foot a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* DMG download row (kept from previous landing for direct asset download) */
.tl-dmg-row {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.tl-dmg-row .tl-dmg-meta {
  flex: 1;
  font-size: 12.5px;
  color: var(--hush);
  line-height: 1.55;
}

.tl-dmg-row .tl-btn { padding: 8px 14px; font-size: 12.5px; }

.tl-dmg-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--whisper);
  letter-spacing: 0.04em;
  margin: 12px 0 0;
}

.tl-dmg-status.is-ready { color: var(--ready); }
.tl-dmg-status.is-missing { color: var(--amber); }

/* ── Footer ───────────────────────────────────────────────────── */
.tl-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 12px;
}

.tl-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 36px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 36px;
}

.tl-footer-brand p {
  font-size: 12.5px;
  color: var(--hush);
  line-height: 1.6;
  margin: 14px 0;
  max-width: 280px;
}

.tl-footer-uptime {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--hush);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tl-footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--whisper);
  margin: 0 0 12px;
  font-weight: 400;
}

.tl-footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tl-footer-col a {
  font-size: 12.5px;
  color: var(--hush);
  transition: color 140ms ease;
}

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

.tl-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 40px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--hush);
}

.tl-footer-mini {
  display: flex;
  gap: 18px;
  align-items: center;
}

.tl-footer-mini a { color: var(--hush); }
.tl-footer-mini a:hover { color: var(--text); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .tl-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .tl-showcase-body { grid-template-columns: 1fr; }
  .tl-showcase-col-left { border-right: none; border-bottom: 1px solid var(--hairline); }
  .tl-install-grid { grid-template-columns: 1fr; gap: 28px; }
  .tl-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .tl-topbar { padding: 0 18px; gap: 14px; height: auto; min-height: 56px; flex-wrap: wrap; }
  .tl-nav { display: none; }
  .tl-topbar-end { margin-left: auto; }
  .tl-section-pad,
  .tl-section-pad-tight,
  .tl-section-pad-flow,
  .tl-section-pad-install { padding-left: 20px; padding-right: 20px; }
  .tl-hero h1 { font-size: 64px; }
  .tl-showcase-col { padding: 22px 20px; }
  .tl-showcase-col h2 { font-size: 28px; }
  .tl-flow-grid { grid-template-columns: 1fr; }
  .tl-flow-head { flex-direction: column; align-items: stretch; }
  .tl-flow-head h2 { font-size: 36px; }
  .tl-flow-btn-stack { width: 100%; }
  .tl-install-grid h2 { font-size: 36px; }
  .tl-install-panel-chrome {
    min-width: 0;
    padding: 10px 12px;
  }
  .tl-install-panel-chrome .tl-traffic-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tl-install-panel {
    padding: 20px 16px 62px;
    overflow-x: hidden;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .tl-install-tab {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    padding: 12px 10px;
    min-height: 44px;
    text-align: center;
  }
  .tl-install-copy {
    min-width: 72px;
    min-height: 44px;
    padding: 12px 20px;
  }
  .tl-btn,
  .tl-reveal-btn { min-height: 44px; }
  .tl-footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; }
  .tl-footer-bottom { padding: 16px 20px; }
}

@media (max-width: 520px) {
  .tl-hero h1 { font-size: 52px; }
  .tl-subsystem { grid-template-columns: 1fr; gap: 4px; }
  .tl-subsystem-pct { text-align: left; }
  .tl-version-pill { display: none; }
  .tl-event-row { grid-template-columns: 1fr; }
  .tl-status-meta { display: none; }
  .tl-dmg-row {
    align-items: stretch;
  }
  .tl-dmg-row .tl-dmg-meta {
    flex-basis: 100%;
  }
  .tl-dmg-row .tl-btn {
    flex: 1 1 100%;
    justify-content: center;
    min-width: 0;
  }
}

/* ───────────────────────────────────────────────────────────────
   v2 · 4-host additions
   Content + layout only. Reuses existing tokens.
   ─────────────────────────────────────────────────────────────── */

/* Hosts overview strip between hero and showcase */
.tl-hosts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tl-hosts-strip-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
}

.tl-hosts-strip-eye {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--whisper);
  margin: 0;
}

.tl-hosts-strip-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 0;
}

.tl-hosts-strip-line {
  font-size: 12.5px;
  color: var(--hush);
  line-height: 1.5;
  margin: 0;
}

.tl-hosts-strip-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--whisper);
  letter-spacing: 0.04em;
}

/* Two-line hero "Four agents. One voice." stack */
.tl-hosts-intro {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 22px;
}

.tl-hosts-intro h2 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  color: var(--text);
}

.tl-hosts-intro h2 .is-dim { color: var(--whisper); }

.tl-hosts-intro p {
  font-size: 14.5px;
  color: var(--hush);
  line-height: 1.6;
  margin: 0;
  max-width: 62ch;
}

/* Worker list inside the subsystems aside */
.tl-host-workers {
  margin: 6px 0 2px;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tl-host-worker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--hush);
}

.tl-host-worker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

.tl-host-worker-tail {
  margin-left: auto;
  color: var(--whisper);
}

/* Install grid wide variant: narrower left, wider right (for 4 host cards) */
.tl-install-grid.is-hosts {
  grid-template-columns: 0.55fr 1.45fr;
}

/* 4-host install grid — 2-column grid of host cards */
.tl-hostgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.tl-host {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tl-host-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
}

.tl-host-traffic {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.tl-host-traffic-1 { background: #FF5F57; }
.tl-host-traffic-2 { background: #FEBC2E; }
.tl-host-traffic-3 { background: #28C840; }

.tl-host-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(247, 245, 239, 0.06);
  border: 1px solid var(--hairline);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.tl-host-name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-transform: lowercase;
  margin-left: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-host-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hush);
  border: 1px solid var(--hairline);
  padding: 2px 7px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.tl-host-tag.is-coding { color: var(--ready); border-color: rgba(36, 184, 232, 0.35); }
.tl-host-tag.is-personal { color: var(--warm); border-color: rgba(226, 94, 13, 0.35); }

.tl-host-copy-chrome {
  appearance: none;
  background: rgba(247, 245, 239, 0.08);
  color: var(--text);
  border: 1px solid var(--hairline2);
  border-radius: 5px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 140ms ease;
}

.tl-host-copy-chrome:hover { background: rgba(247, 245, 239, 0.16); }

.tl-host-copy-chrome.is-copied {
  background: var(--ready);
  color: var(--ink);
  border-color: transparent;
}

.tl-host-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tl-host-desc {
  font-size: 12.5px;
  color: var(--hush);
  line-height: 1.55;
  margin: 0;
}

.tl-host-desc strong { color: var(--text); font-weight: 500; }
.tl-host-desc code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  background: rgba(247, 245, 239, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
}

.tl-host-snippet {
  background: var(--terminal-bg);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 11px 13px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: hidden;
}

.tl-host-snippet .tl-snippet-cmt { color: var(--whisper); }

.tl-host-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--whisper);
  padding-top: 2px;
}

.tl-host-foot a {
  color: var(--hush);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: auto;
  transition: color 140ms ease;
}

.tl-host-foot a:hover { color: var(--text); }

@media (max-width: 1080px) {
  .tl-install-grid.is-hosts { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .tl-hosts-strip { grid-template-columns: repeat(2, 1fr); }
  .tl-hostgrid { grid-template-columns: 1fr; }
  .tl-hosts-intro { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .tl-hosts-intro h2 { font-size: 36px; }
}

@media (max-width: 520px) {
  .tl-hosts-strip { grid-template-columns: 1fr; }
  .tl-hosts-intro h2 { font-size: 30px; }
  .tl-host-head { flex-wrap: wrap; padding: 8px 10px; gap: 6px; }
  .tl-host-name { width: 100%; margin-left: 0; order: -1; }
  .tl-host-copy-chrome { min-height: 32px; padding: 6px 10px; font-size: 10px; }
}
