@import url("tokens.css");

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background-color: var(--ink);
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.045) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 3px solid var(--agent); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--agent); display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--agent); }
.eyebrow.human { color: var(--human); }
.eyebrow.human::before { background: var(--human); }

/* ---------- nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8,12,23,0.86); backdrop-filter: blur(8px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 16px; }
.mark { display: flex; align-items: center; gap: 9px; }
.brand-logo { display: block; height: 22px; width: auto; }
.navlinks { display: flex; align-items: center; gap: 32px; font-size: 0.88rem; color: var(--text-muted); }
.navlinks a:hover, .navlinks a:focus-visible { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.thread-bar { height: 2px; background: var(--thread); }

/* ---------- nav dropdown (desktop) ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 400; color: var(--text-muted);
  background: none; border: none; padding: 0; cursor: pointer;
}
.nav-dropdown-trigger:hover, .nav-dropdown-trigger:focus-visible, .nav-dropdown-trigger[aria-expanded="true"] { color: var(--text); }
.nav-dropdown-trigger .chevron { width: 11px; height: 11px; transition: transform 160ms ease; }
.nav-dropdown-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%); z-index: 70;
  min-width: 220px; display: grid; gap: 2px; padding: 8px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface-2); box-shadow: 0 24px 48px -24px rgba(0,0,0,0.7);
}
.nav-dropdown-menu[hidden] { display: none; }
.nav-dropdown-menu a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.86rem; color: var(--text-muted); }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible, .nav-dropdown-menu a[aria-current] { color: var(--text); background: var(--surface-3); }
.menu-logo {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 6px; background: #F4F6FA; flex: 0 0 auto;
}
.menu-logo svg { width: 12px; height: 12px; }
.menu-brand-mark { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto; }
.menu-vs { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); flex: 0 0 auto; }

.menu-toggle {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text);
}
.menu-toggle .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.btn {
  font-family: var(--font-body); font-weight: 600; font-size: 0.88rem;
  border-radius: var(--radius-sm); padding: 11px 20px; border: 1px solid transparent;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.btn-human {
  background: var(--brand-orange);
  color: #0A0F26;
  transition: filter 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.btn-human:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 28px -10px rgba(238, 133, 13, 0.55);
  transform: translateY(-1px);
}
.btn-agent { background: var(--agent); color: #06131C; }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: #333f56; }
.btn-ghost { background: transparent; color: var(--text-muted); font-size: 0.88rem; font-weight: 500; padding: 11px 8px; }
.btn-ghost:hover { color: var(--text); }

@media (max-width: 860px) {
  .navlinks { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }

  .mobile-nav {
    position: absolute; left: 20px; right: 20px; top: calc(100% + 8px);
    display: grid; gap: 2px; padding: 8px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface-2); box-shadow: 0 24px 48px -24px rgba(0,0,0,0.7);
  }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { display: block; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.92rem; color: var(--text-muted); }
  .mobile-nav a.has-logo { display: flex; align-items: center; gap: 8px; }
  .mobile-nav a:hover, .mobile-nav a:focus-visible, .mobile-nav a[aria-current] { color: var(--text); background: var(--surface-3); }
  .mobile-nav-label {
    display: block; margin-top: 6px; padding: 10px 14px 4px;
    font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim);
  }
  .mobile-nav .mobile-nav-cta { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 8px; }
  .mobile-nav .btn { width: 100%; justify-content: center; }
}
@media (min-width: 861px) { .mobile-nav { display: none !important; } }

/* ---------- hero ---------- */
.hero { padding: 96px 0 40px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero-inner { max-width: 540px; }
h1.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.3rem, 4.2vw, 3.2rem); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 22px;
}
h1.hero-title .accent { color: var(--human); }
.hero-tagline { font-family: var(--font-body); font-weight: 600; font-size: 1.1rem; color: var(--human); max-width: 46ch; margin-bottom: 16px; }
.hero-sub { color: var(--text-muted); font-size: 0.98rem; max-width: 48ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.hero-note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); }

@media (max-width: 640px) {
  .hero { padding: 48px 0 24px; }
  h1.hero-title { margin-bottom: 16px; }
  .hero-tagline { margin-bottom: 12px; }
  .hero-sub { margin-bottom: 24px; }
  .hero-actions { margin-bottom: 10px; }
}

/* ---------- shared-context hub (desktop ladder / mobile ring) ---------- */
.rich-wrap { position: relative; width: 100%; height: 460px; }

/* Fictional/illustrative disclosure — required on any visual standing in for the product UI */
.preview-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--border-soft); border-radius: 999px;
  padding: 4px 10px; background: rgba(8,12,23,0.55); backdrop-filter: blur(4px); white-space: nowrap;
}
.rich-wrap .preview-tag { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 5; }

.glow-field { position: absolute; inset: -40px; z-index: 0; overflow: hidden; border-radius: 24px; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); }
.blob.b1 { width: 360px; height: 360px; left: -60px; top: 20px; background: radial-gradient(closest-side, rgba(79,200,255,0.26), transparent 72%); }
.blob.b2 { width: 380px; height: 380px; right: -70px; top: 40px; background: radial-gradient(closest-side, rgba(110,134,255,0.24), transparent 72%); }

.rich-lines { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.rline { fill: none; stroke-width: 2; stroke-linecap: round; transition: stroke 260ms ease, opacity 260ms ease; }
.rline.human { stroke: var(--human); opacity: 0.85; }
.rline.agent { stroke: var(--agent); opacity: 0.85; }
.rline.is-active { stroke: var(--coral); opacity: 1; }
.rdash { stroke-dasharray: 1 8; animation: dashmove 1.8s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -18; } }
@media (prefers-reduced-motion: reduce) { .rdash { animation: none; } }

.rich-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 206px; z-index: 3; text-align: center; }
.rich-hub .glow { position: absolute; inset: -12px; border-radius: 24px; background: var(--thread); filter: blur(18px); opacity: 0.55; z-index: -1; }
.rich-hub .panel { position: relative; background: var(--surface-2); border-radius: 18px; padding: 18px 16px 16px; border: 1.5px solid transparent; }
.rich-hub .panel::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 1.5px; background: var(--thread);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.rich-hub .title {
  font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.01em; margin-bottom: 13px;
  background: var(--thread); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rich-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.rich-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; padding: 3px 2px; margin: 0; font: inherit; color: inherit; cursor: help;
  border-radius: var(--radius-sm);
}
.rich-item svg { width: 14px; height: 14px; }
.rich-item span:not(.rich-tooltip) { font-size: 0.55rem; color: var(--text-muted); line-height: 1.2; }
.rich-item:hover span:not(.rich-tooltip), .rich-item:focus span:not(.rich-tooltip) { color: var(--text); }

/* mini popup shown on hover/focus of a hero context-hub item */
.rich-tooltip {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  width: max-content; max-width: 128px; z-index: 20;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 10px; font-family: var(--font-body); font-size: 0.64rem; font-weight: 400; line-height: 1.45;
  color: var(--text-muted); text-align: center; box-shadow: 0 16px 32px -16px rgba(0,0,0,0.7);
  opacity: 0; visibility: hidden; transition: opacity 160ms ease, transform 160ms ease; pointer-events: none;
}
.rich-item:nth-child(-n+4) .rich-tooltip { bottom: calc(100% + 62px); }
.rich-item:nth-child(n+5) .rich-tooltip { bottom: auto; top: calc(100% + 8px); transform: translate(-50%, -4px); }
.rich-item:hover .rich-tooltip, .rich-item:focus .rich-tooltip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.hub-caption { display: none; }
.mob-chip { display: none; }
.mob-name { display: none; }
.mob-lines { display: none; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.mob-lines path { fill: none; stroke-width: 1.4; opacity: 0.75; transition: stroke 260ms ease, opacity 260ms ease; }
.mob-lines path.human { stroke: var(--human); }
.mob-lines path.agent { stroke: var(--agent); }
.mob-lines path.is-active { stroke: var(--coral); opacity: 1; }

.rnode { position: absolute; transform: translateY(-50%); z-index: 2; width: 150px; }
.rnode .badge { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 0.7rem; padding: 5px 11px; border-radius: 999px; margin-bottom: 6px; color: #06101E; white-space: nowrap; transition: box-shadow 260ms ease, transform 260ms ease; }
.rnode .card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 11px; font-size: 0.76rem; font-weight: 500; color: var(--text); transition: box-shadow 260ms ease, border-color 260ms ease, transform 260ms ease; }
.rnode.human .badge { background: var(--human); }
.rnode.agent .badge { background: var(--agent); }

/* random highlight/unhighlight — toggled by site.js, one node at a time, off entirely under reduced motion */
.rnode.is-active { z-index: 4; }
.rnode.is-active .badge { transform: scale(1.08); }
.rnode.is-active .card { transform: scale(1.03); }
.rnode.human.is-active .badge { box-shadow: 0 0 0 4px var(--human-dim), 0 0 18px rgba(110,134,255,0.6); }
.rnode.agent.is-active .badge { box-shadow: 0 0 0 4px var(--agent-dim), 0 0 18px rgba(79,200,255,0.6); }
.rnode.human.is-active .card { border-color: var(--human); box-shadow: 0 10px 24px -12px rgba(110,134,255,0.6); }
.rnode.agent.is-active .card { border-color: var(--agent); box-shadow: 0 10px 24px -12px rgba(79,200,255,0.6); }

.nl1 { left: 0; top: 13%; }
.nl2 { left: 0; top: 50%; }
.nl3 { left: 0; top: 87%; }
.nr1 { right: 0; top: 13%; text-align: right; }
.nr2 { right: 0; top: 50%; text-align: right; }
.nr3 { right: 0; top: 87%; text-align: right; }
.nr1 .badge, .nr2 .badge, .nr3 .badge { float: right; clear: both; }
.nr1 .card, .nr2 .card, .nr3 .card { text-align: right; clear: both; }
.rnode.nr1, .rnode.nr2, .rnode.nr3 { transform: translateY(-50%); left: auto; }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-inner { max-width: 640px; }
  .rich-wrap { height: 430px; margin-top: 28px; }
  .rich-wrap .preview-tag { top: -26px; left: 50%; right: auto; transform: translateX(-50%); }
  .rich-lines, .rnode, .glow-field { display: none; }
  .rich-hub { width: 208px; }
  .hub-caption { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); line-height: 1.45; }

  .mob-lines { display: block; }
  .mob-chip {
    position: absolute; transform: translate(-50%,-50%); z-index: 2;
    width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1.5px solid;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
    transition: box-shadow 260ms ease, transform 260ms ease;
  }
  .mob-chip.human { border-color: var(--human); color: var(--human); }
  .mob-chip.agent { border-color: var(--agent); color: var(--agent); }
  .mob-name { display: block; position: absolute; transform: translateX(-50%); z-index: 2; font-size: 0.68rem; font-weight: 600; white-space: nowrap; transition: text-shadow 260ms ease; }
  .mob-name.human { color: var(--human); }
  .mob-name.agent { color: var(--agent); }

  /* random highlight/unhighlight — toggled by site.js, one chip at a time, off entirely under reduced motion */
  .mob-chip.is-active { z-index: 4; transform: translate(-50%,-50%) scale(1.18); }
  .mob-chip.human.is-active { box-shadow: 0 0 0 3px var(--human-dim), 0 0 16px rgba(110,134,255,0.65); }
  .mob-chip.agent.is-active { box-shadow: 0 0 0 3px var(--agent-dim), 0 0 16px rgba(79,200,255,0.65); }
  .mob-name.is-active { text-shadow: 0 0 12px currentColor; }
  .mc1 { left: 50%; top: 5%; }
  .mc2 { left: 87%; top: 24%; }
  .mc3 { left: 87%; top: 76%; }
  .mc4 { left: 50%; top: 95%; }
  .mc5 { left: 13%; top: 76%; }
  .mc6 { left: 13%; top: 24%; }
  .mn1 { left: 50%; top: 12%; }
  .mn2 { left: 87%; top: 31%; }
  .mn3 { left: 87%; top: 83%; }
  .mn4 { left: 50%; top: 88%; }
  .mn5 { left: 13%; top: 83%; }
  .mn6 { left: 13%; top: 31%; }
}

/* shared card styles — used by board-mini showcase */
.mockup-thread { height: 2px; background: var(--thread); }
.mockup-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 10px; font-size: 0.8rem; }
.mockup-card .t { font-weight: 600; margin: 6px 0 8px; }
.mockup-card .m { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

.pill { font-weight: 600; font-size: 0.68rem; padding: 3px 9px; border-radius: var(--radius-full); display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-body); }
.pill-high { background: var(--danger-dim); color: var(--danger); }
.pill-medium { background: var(--warning-dim); color: var(--warning); }
.pill-complete { background: var(--success-dim); color: var(--success); }
.pill-todo { background: var(--surface-3); color: var(--text-muted); }
.pill-ontrack { background: var(--success-dim); color: var(--success); }
.pill-review { background: var(--human-dim); color: var(--human); }

/* ---------- board-preview: multi-lane kanban mockup ---------- */
.board-preview { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: 0 40px 80px -48px rgba(0,0,0,0.6); }
.board-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.board-preview-bar-title { font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.board-preview-count { font-family: var(--font-mono); font-size: 0.64rem; color: var(--text-dim); background: var(--surface-3); padding: 2px 8px; border-radius: 999px; }
.board-preview-toggle { display: flex; gap: 4px; font-size: 0.72rem; }
.board-preview-toggle button {
  padding: 4px 10px; border-radius: 999px; color: var(--text-dim);
  background: none; border: none; font: inherit; cursor: pointer;
}
.board-preview-toggle button:hover { color: var(--text); }
.board-preview-toggle button:focus-visible { outline: 2px solid var(--agent); outline-offset: 2px; }
.board-preview-toggle button.on { background: var(--human-dim); color: var(--human); font-weight: 600; }
.board-preview-toggle button.pending {
  color: var(--human); box-shadow: 0 0 0 2px var(--human-dim), 0 0 12px rgba(110,134,255,0.5);
  transition: box-shadow 200ms ease, color 200ms ease;
}
.board-preview-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); font-weight: 700; font-size: 0.9rem; flex-wrap: wrap; }

/* animated crossfade between the kanban and table views */
.board-views { position: relative; }
.board-view { transition: opacity 220ms ease, transform 220ms ease; }
.board-view[hidden] { display: none; }
.board-view.board-view-detached { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
.board-view.board-view-hidden-state { opacity: 0; transform: translateY(-6px) scale(0.98); }
.board-view.board-view-enter-from { opacity: 0; transform: translateY(6px) scale(0.98); }

.board-lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px; }
@media (max-width: 640px) { .board-lanes { grid-template-columns: 1fr; } }
.board-lane-col-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.8rem; font-weight: 600; }
.board-lane-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); flex: 0 0 auto; }
.board-lane-dot.on { background: var(--success); }
.board-ticket-meta-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--text-dim); font-size: 0.7rem; }
.board-ticket-meta-row svg { width: 11px; height: 11px; }
.board-ticket-updated { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-dim); }
.avatar { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--agent), var(--human)); display: inline-block; object-fit: cover; flex: 0 0 auto; }

/* table view */
.board-table-wrap {
  padding: 14px 18px 18px;
  overflow: hidden;
  background: var(--surface-2);
  clip-path: polygon(
    100% 0%, 96% 5%, 100% 10%, 96% 15%, 100% 20%, 96% 25%, 100% 30%, 96% 35%,
    100% 40%, 96% 45%, 100% 50%, 96% 55%, 100% 60%, 96% 65%, 100% 70%, 96% 75%,
    100% 80%, 96% 85%, 100% 90%, 96% 95%, 100% 100%, 0% 100%, 0% 0%
  );
}
.board-table { width: 100%; min-width: 480px; border-collapse: collapse; }
.board-table th {
  text-align: left; padding: 8px 10px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim); border-bottom: 1px solid var(--border);
}
.board-table td { padding: 10px; font-size: 0.74rem; color: var(--text-muted); border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.board-table tbody tr:last-child td { border-bottom: none; }
.board-table td:first-child { color: var(--text); font-weight: 600; white-space: normal; max-width: 200px; }
.board-table-assignee { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- section shell ---------- */
main { display: block; }
section { padding: 88px 0; border-top: 1px solid var(--border-soft); }
.section-head { max-width: 640px; margin-bottom: 56px; }
h2.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.015em; margin-bottom: 16px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- why us ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: 28px; position: relative; overflow: hidden; }
.pillar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.pillar.p1::before { background: var(--agent); }
.pillar.p2::before { background: var(--thread); }
.pillar.p3::before { background: var(--human); }
.pillar-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.pillar.p1 .pillar-icon { background: var(--agent-dim); }
.pillar.p2 .pillar-icon { background: var(--surface-3); }
.pillar.p3 .pillar-icon { background: var(--human-dim); }
.pillar h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 10px; }
.pillar p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ---------- differentiator 1: air traffic control ---------- */
.atc-panel { margin-top: 36px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6); }
.atc-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border-soft); }
.atc-panel-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.98rem; }
.atc-panel-actions { display: flex; align-items: center; gap: 10px; }
.atc-actions-pill { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--text-muted); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; }
.atc-refresh-btn { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 8px; }

.atc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; padding: 22px 24px; }
.atc-lane { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); padding: 18px; display: flex; flex-direction: column; }
.atc-lane-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.atc-lane-head-main { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.atc-lane-icon { flex-shrink: 0; width: 15px; height: 15px; margin-top: 2px; }
.atc-lane-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; }
.atc-count { flex-shrink: 0; margin-top: 1px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); background: var(--surface-3); padding: 1px 7px; border-radius: 999px; }
.atc-lane-desc { font-size: 0.78rem; color: var(--text-dim); line-height: 1.5; }
.atc-empty { font-size: 0.85rem; color: var(--text-dim); padding-top: 8px; border-top: 1px solid var(--border-soft); flex: 1; }
.atc-card { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 14px; display: flex; flex-direction: column; flex: 1; }
.atc-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.atc-avatar { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; flex: 0 0 22px; }
.atc-avatar.agent { background: var(--agent-dim); color: var(--agent); }
.atc-agent-name { font-size: 0.82rem; font-weight: 600; }
.atc-chevron { margin-left: auto; flex-shrink: 0; }
.atc-ticket-title { font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.atc-project { font-size: 0.76rem; color: var(--text-dim); margin-bottom: 12px; }
.atc-meta { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--border-soft); margin-top: auto; }
.atc-meta div { display: flex; justify-content: space-between; font-size: 0.78rem; }
.atc-meta span:first-child { color: var(--text-dim); }
.atc-meta span:last-child { color: var(--text-muted); }
.atc-flag { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 0.72rem; font-weight: 600; color: var(--warning); background: var(--warning-dim); padding: 4px 10px; border-radius: 999px; }
.atc-flag.danger { color: var(--danger); background: var(--danger-dim); }

/* card pop animation — simulates live dashboard movement; offset non-round durations so lanes don't move in lockstep */
.atc-stack { position: relative; flex: 1; min-height: 210px; }
.atc-stack .atc-card { position: absolute; inset: 0; }
.atc-stack.waiting .atc-empty { position: absolute; inset: 0; }

@keyframes atcPop {
  0%, 40% { opacity: 1; transform: scale(1) translateY(0); }
  48% { opacity: 0; transform: scale(0.93) translateY(6px); }
  92% { opacity: 0; transform: scale(0.93) translateY(6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes atcPopRare {
  0%, 55% { opacity: 0; transform: scale(0.93) translateY(6px); }
  63%, 85% { opacity: 1; transform: scale(1) translateY(0); }
  93%, 100% { opacity: 0; transform: scale(0.93) translateY(6px); }
}
@keyframes atcFadeRare {
  0%, 55% { opacity: 0; }
  63%, 85% { opacity: 1; }
  93%, 100% { opacity: 0; }
}

.atc-pop-a { animation: atcPop var(--atc-dur, 13s) ease-in-out infinite; }
.atc-pop-b { animation: atcPop var(--atc-dur, 13s) ease-in-out infinite; animation-delay: calc(var(--atc-dur, 13s) / -2); }
.atc-stack.waiting .atc-card { animation: atcPopRare 21s ease-in-out infinite; }

.atc-count-wrap { position: relative; display: inline-flex; }
.atc-count-over { position: absolute; inset: 0; opacity: 0; animation: atcFadeRare 21s ease-in-out infinite; background: var(--surface-3); border-radius: 999px; display: flex; align-items: center; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .atc-pop-a, .atc-pop-b, .atc-stack.waiting .atc-card, .atc-count-over { animation: none !important; }
  .atc-pop-b, .atc-stack.waiting .atc-card, .atc-count-over { opacity: 0 !important; }
  .atc-pop-a { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 1080px) { .atc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .atc-grid { grid-template-columns: 1fr; padding: 16px; }
  .atc-panel-header { padding: 16px; }
}

.atc-footer { border-top: 1px solid var(--border-soft); padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.atc-footer b { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.atc-footer span { font-size: 0.8rem; color: var(--text-dim); }
.atc-footer-count { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--agent); flex-shrink: 0; border: 1px solid var(--border); border-radius: 8px; padding: 7px 14px; }

/* ---------- differentiator 2: board showcase ---------- */
.showcase { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
/* Grid items default to min-width:auto, which refuses to shrink below a
   child's intrinsic content width (e.g. the board table's min-width:480px).
   That let the table view force this column wider than the kanban view did,
   stealing space from the copy column and reflowing its text. min-width:0
   lets each column actually honor its fr share regardless of content. */
.showcase > div { min-width: 0; }
/* Anchor to the top instead of centering: the board mockup's height is
   pinned to its taller view via JS, but top-aligning the copy is a second,
   independent guarantee that it never shifts even by a pixel. */
#human-teams .showcase { align-items: start; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }
.feature-list { display: flex; flex-direction: column; gap: 22px; }
.feature { display: flex; gap: 16px; }
.feature-dot { flex: 0 0 8px; height: 8px; width: 8px; border-radius: 50%; background: var(--agent); margin-top: 8px; }
.feature h4 { font-weight: 600; font-size: 0.98rem; margin-bottom: 4px; }
.feature p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }

.board-mini { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.board-mini .mockup-thread { height: 2px; }
.board-mini-inner { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.board-lane-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 26px 22px; display: flex; flex-direction: column; }
.price-card.featured { border-color: transparent; position: relative; background: var(--surface-2); }
.price-card.featured::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); padding: 1px; background: var(--thread);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.price-tag { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 10px; min-height: 2.4em; }
.price-card.featured .price-tag { color: var(--human); }
.price-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.price-amount { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; margin-bottom: 2px; }
.price-amount span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.price-annual { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--success); margin-bottom: 6px; }
.price-save {
  display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--success); background: var(--success-dim);
  border-radius: 999px; padding: 2px 8px;
}
.price-desc { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 20px; min-height: 52px; }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.price-feats li { display: flex; gap: 8px; font-size: 0.8rem; color: var(--text-muted); align-items: flex-start; line-height: 1.4; }
.price-feats li .check { color: var(--success); flex: 0 0 auto; }
.price-card .btn { width: 100%; justify-content: center; font-size: 0.82rem; padding: 10px 14px; }
.price-note { text-align: center; color: var(--text-dim); font-size: 0.82rem; margin-top: 28px; font-family: var(--font-mono); }

/* ---------- final cta ---------- */
.final-cta { text-align: center; padding: 96px 0; }
.final-cta h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 18px; letter-spacing: -0.02em; }
.final-cta p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 34px; }
.final-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

footer.site { border-top: 1px solid var(--border-soft); padding: 40px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.foot-links { display: flex; gap: 26px; font-size: 0.85rem; color: var(--text-muted); }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--text); }
.foot-copy { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }

/* ---------- compare pages: breadcrumb + hero ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; font-size: 0.82rem; color: var(--text-dim); }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--text-muted); }
.breadcrumb span[aria-current] { color: var(--text-muted); }

.compare-hero { padding: 48px 0 64px; text-align: center; }
.vs-lockup { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 30px; }
.vs-lockup-brand img { height: 22px; width: auto; }
.vs-lockup-x {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.08em;
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px;
}
.vs-lockup-competitor { display: flex; align-items: center; gap: 10px; }
.vs-lockup-mark {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px; background: #F4F6FA; flex: 0 0 auto;
}
.vs-lockup-mark svg { width: 22px; height: 22px; }
.vs-lockup-competitor-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text-muted); }
.vs-logo-linear svg { color: #5E6AD2; }
.vs-logo-notion svg { color: #000000; }
.vs-logo-jira svg { color: #0052CC; }
.vs-logo-asana svg { color: #F06A6A; }
.page-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; background: var(--surface);
}
.compare-hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 18px;
}
.compare-hero .compare-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 56ch; margin: 0 auto 30px; }
.compare-hero .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- compare hub: card grid ---------- */
.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  text-align: left; transition: border-color 160ms ease, background 160ms ease;
}
.compare-card:hover, .compare-card:focus-visible { border-color: var(--text-dim); background: var(--surface-2); }
.compare-card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.compare-card-brand img { height: 18px; width: auto; }
.compare-card-competitor { display: flex; align-items: center; gap: 10px; }
.compare-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.compare-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
.compare-card-link {
  margin-top: auto; padding-top: 4px; font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--agent); display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- compare pages: capability table ---------- */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: none; }
.compare-table thead th {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); font-weight: 600; border-bottom: 1px solid var(--border);
}
.compare-table th[scope="row"] { font-size: 0.92rem; font-weight: 600; color: var(--text); width: 30%; }
.compare-table td.us { background: var(--human-dim); }
.compare-table .verdict-detail { display: block; color: var(--text-dim); font-size: 0.82rem; margin-top: 8px; }
.pill-good { background: var(--success-dim); color: var(--success); }
.pill-bad { background: var(--danger-dim); color: var(--danger); }
.pill-partial { background: var(--warning-dim); color: var(--warning); }
.pill-neutral { background: var(--surface-3); color: var(--text); }

.text-center { text-align: center; }
.eyebrow.center { justify-content: center; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- compare pages: illustrative mock cards ---------- */
.mock-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 80px -48px rgba(0,0,0,0.6); }
.mock-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.mock-card-title { font-size: 0.92rem; font-weight: 700; }
.mock-card-sub { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); padding: 14px 20px 0; }
.mock-card-body { padding: 12px 20px 20px; color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.mock-card-foot { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border-soft); color: var(--text-dim); font-size: 0.8rem; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--border-soft); font-size: 0.86rem; }
.mock-row:last-child { border-bottom: none; }
.mock-row-label { color: var(--text); }
.mock-row-meta { display: block; color: var(--text-dim); font-size: 0.76rem; margin-top: 2px; }
.mock-row-actions { display: flex; gap: 10px; padding: 14px 20px; }
.mock-row-actions .btn { padding: 8px 16px; font-size: 0.8rem; }
.mock-card-caption { text-align: center; margin-top: 14px; }

/* ---------- compare pages: FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-item { padding: 24px 0; border-top: 1px solid var(--border-soft); }
.faq-item:first-child { border-top: none; }
.faq-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.faq-item p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* ---------- compare pages: better-fit callout ---------- */
.better-fit { max-width: 640px; margin: 0 auto; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 32px 36px; }
.better-fit h3 { font-family: var(--font-display); font-size: 1.15rem; margin-top: 8px; margin-bottom: 12px; }
.better-fit p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* ---------- compare pages: CTA band ---------- */
.cta-band {
  text-align: center; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--border);
  padding: clamp(48px, 6vw, 72px) clamp(24px, 5vw, 48px); position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--thread); }
.cta-band h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-band p { color: var(--text-muted); font-size: 1rem; margin-bottom: 30px; }
.cta-band .final-actions { justify-content: center; }

/* ---------- compare pages: rich footer ---------- */
.foot-columns { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--border-soft); }
@media (max-width: 780px) { .foot-columns { grid-template-columns: repeat(2, 1fr); } }
.foot-col h4 { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 14px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--text-muted); font-size: 0.86rem; }
.foot-col a:hover, .foot-col a:focus-visible { color: var(--text); }
.foot-about p { color: var(--text-dim); font-size: 0.85rem; max-width: 32ch; margin-top: 10px; }
.foot-legal { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 0.78rem; color: var(--text-dim); }
.foot-disclaimer { padding-top: 18px; font-size: 0.74rem; color: var(--text-dim); line-height: 1.6; max-width: 90ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
