/* Colours match apps/web/src/index.css; the site sets type in Geist */
:root {
  --paper: #f2f4ef;
  --vellum: #fbfcfa;
  --ink: #0d2230;
  --ink-2: #3f505c;
  --ink-3: #55646f;
  --hull: #0f2a38;
  --hull-2: #163647;
  --deep: #081a24;
  --foam: #e8f0ec;
  --mist: #b9c9cf;
  --fog: #8fa6ae;
  --waterline: #5cc8c0;
  --course: #0b7a75;
  --course-tint: #e6f3f2;
  --drift: #d99a1e;
  --drift-text: #6b4800;
  --drift-tint: #fef7ea;
  --agent: #4b3fcb;
  --agent-tint: #e6e4fa;
  --agent-soft: #f6f5fe;
  --line: #d5dad2;
  --line-2: #e3e7e0;
  --r-panel: 14px;
  --r-control: 8px;
  --r-mark: 4px;
  --display: 'Geist', system-ui, -apple-system, sans-serif;
  --body: 'Geist', system-ui, -apple-system, sans-serif;
  --data: 'Geist Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.on-hull :focus-visible {
  outline-color: var(--foam);
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--r-control);
  background: var(--foam);
  color: var(--hull);
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.mono {
  font-family: var(--data);
  font-size: 0.86em;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}
.h-xl {
  font-size: clamp(52px, 10.5vw, 168px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.88;
}
.h-lg {
  font-size: clamp(40px, 6.4vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.h-md {
  font-size: clamp(32px, 4.2vw, 56px);
}
.h-sm {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.12;
}
.lede {
  color: var(--ink-2);
  font-size: clamp(18px, 1.5vw, 21px);
  max-width: 54ch;
}
.on-hull .lede {
  color: var(--mist);
}
.kicker {
  display: block;
  font-family: var(--data);
  font-size: 14px;
  color: var(--course);
  margin-bottom: 20px;
}
.on-hull .kicker {
  color: var(--waterline);
}

/* Buttons: 44px minimum, one shape for every control */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-control);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease),
    color 0.2s var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.btn-primary {
  background: var(--waterline);
  color: var(--hull);
}
.btn-primary:hover {
  background: #84dad3;
}
.btn-agent {
  background: var(--agent);
  color: #fff;
}
.btn-agent:hover {
  background: #3d32b0;
}
.btn-ghost {
  border: 1px solid var(--line);
  background: var(--vellum);
}
.btn-ghost:hover {
  background: var(--paper);
}
.btn-line {
  border: 1px solid #3c5d6d;
  color: var(--foam);
}
.btn-line:hover {
  background: var(--hull-2);
}
.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

/* Status marks: shape + label + colour, never colour alone */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--r-mark);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.mark::before {
  font-size: 10px;
}
.mark-on {
  color: var(--course);
  background: var(--course-tint);
}
.mark-on::before {
  content: '●';
}
.mark-risk {
  color: var(--drift-text);
  background: var(--drift-tint);
  border-color: var(--drift);
}
.mark-risk::before {
  content: '◆';
  color: var(--drift);
}
.mark-agent {
  color: var(--agent);
  background: var(--agent-tint);
  border-color: transparent;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--foam);
  transition:
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.topbar.solid {
  background: rgba(15, 42, 56, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(92, 200, 192, 0.25);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 23px var(--display);
  text-decoration: none;
  letter-spacing: -0.01em;
  min-height: 44px;
}
.nav {
  display: flex;
  gap: 2px;
  margin-left: 12px;
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-control);
  color: var(--mist);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--foam);
}
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--waterline);
}
.nav-signin {
  display: none !important;
}
.topbar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.signin {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--mist);
  text-decoration: none;
  font-weight: 500;
}
.signin:hover {
  color: var(--foam);
}
.menu {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-control);
  place-items: center;
  align-content: center;
  gap: 6px;
}
.menu span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--foam);
  transition: transform 0.3s var(--ease);
}
.menu[aria-expanded='true'] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu[aria-expanded='true'] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Water: the shader canvas behind every dark hero ---------- */
.water {
  position: relative;
  isolation: isolate;
  background: radial-gradient(120% 80% at 70% 10%, #163b4d 0%, var(--hull) 45%, var(--deep) 100%);
  color: var(--foam);
  overflow: hidden;
}
.water canvas {
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

/* Home hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 76px;
}
.hero-main {
  flex: 1;
  display: grid;
  align-content: center;
  padding-block: clamp(40px, 8vh, 96px);
}
.hero h1 {
  max-width: 11ch;
}
.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-top: clamp(32px, 5vh, 56px);
}
.signup-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--fog);
}
.signup-error {
  margin-top: 8px;
  font-size: 14px;
  color: #f6a998;
}

/* Signals floating along the waterline */
.surface {
  position: relative;
  border-top: 1px solid rgba(92, 200, 192, 0.55);
  padding: 14px 0 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.surface-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: drift 60s linear infinite;
}
.surface:hover .surface-track {
  animation-play-state: paused;
}
.surface-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--mist);
  white-space: nowrap;
}
.surface-item .src {
  font-family: var(--data);
  font-size: 12px;
  color: var(--fog);
}
.surface-item .to {
  color: var(--waterline);
  font-weight: 600;
}
@keyframes drift {
  to {
    transform: translateX(-50%);
  }
}
.surface-label {
  width: 100%;
  font: 12px var(--data);
  color: var(--waterline);
  padding-bottom: 10px;
}

/* ---------- Trace: the pinned, scroll-scrubbed delay ---------- */
.trace {
  position: relative;
  background: var(--paper);
}
.trace-pin {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 96px 0 32px;
}
.trace-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.slack {
  position: relative;
}
.slack-num {
  display: block;
  font: 800 clamp(130px, min(19vw, 30vh), 300px) / 0.78 var(--display);
  letter-spacing: -0.07em;
  color: var(--course);
  font-variant-numeric: tabular-nums;
  transition: color 0.5s var(--ease);
}
.slack-num.low {
  color: var(--drift);
}
.slack-cap {
  display: block;
  margin-top: 16px;
  font: 600 clamp(20px, 2vw, 26px) var(--display);
}
.slack-sub {
  margin-top: 8px;
  color: var(--ink-2);
  max-width: 34ch;
}
.trace-card {
  background: var(--vellum);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: 0 40px 80px -40px rgba(13, 34, 48, 0.45);
  overflow: hidden;
}
.trace-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
}
.trace-head strong {
  font: 600 17px var(--display);
}
.trace-head .launch {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 14px;
}
.msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  background: #fff;
}
.msg-chan {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-control);
  background: var(--hull);
  color: var(--waterline);
  font: 600 16px var(--data);
}
.msg small {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}
.msg p {
  font-size: 16px;
}
.chain {
  list-style: none;
  position: relative;
  display: grid;
  gap: 10px;
  padding: 20px;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 16px 16px;
}
.node {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 14px;
  background: var(--vellum);
  border: 1px solid var(--line);
  border-left: 3px solid var(--course);
  border-radius: var(--r-control);
  transition:
    border-color 0.5s var(--ease),
    background 0.5s var(--ease);
}
.node:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 25px;
  bottom: -11px;
  width: 2px;
  height: 10px;
  background: var(--course);
  transition: background 0.5s var(--ease);
}
.node .dot {
  width: 12px;
  height: 12px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--course);
  box-shadow: 0 0 0 4px var(--course-tint);
  transition: all 0.5s var(--ease);
}
.node .team {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
}
.node .name {
  font-weight: 600;
}
.node .date {
  font-family: var(--data);
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}
.node .was {
  display: none;
  color: var(--ink-3);
  text-decoration: line-through;
  margin-right: 6px;
}
.node.moved {
  border-left-color: var(--drift);
  background: var(--drift-tint);
}
.node.moved::after {
  background: var(--drift);
}
.node.moved .dot {
  background: var(--drift);
  box-shadow: 0 0 0 4px rgba(217, 154, 30, 0.25);
  border-radius: 2px;
  transform: rotate(45deg) scale(0.9);
}
.node.moved .was {
  display: inline;
}
.node.milestone .dot {
  background: var(--hull);
  box-shadow: 0 0 0 4px #d9e4e8;
}
.proposal {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--r-control);
  background: var(--agent-soft);
  border: 1px solid #d6d2f5;
  border-left: 3px solid var(--agent);
}
.js .trace .proposal {
  opacity: 0;
  visibility: hidden;
}
.proposal-top {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.proposal h3 {
  font: 600 19px var(--display);
  letter-spacing: -0.01em;
}
.proposal .why {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-2);
}
.proposal-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.audit {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--r-control);
  background: var(--hull);
  color: var(--foam);
  font: 13px/1.7 var(--data);
}
.audit .k {
  color: #7f97a1;
}
.audit[hidden] {
  display: none;
}

/* ---------- Generic sections ---------- */
.section {
  padding: clamp(88px, 12vw, 160px) 0;
}
.section-tight {
  padding: clamp(56px, 8vw, 96px) 0;
}
.dark {
  background: var(--hull);
  color: var(--foam);
}
.dark .lede,
.dark p {
  color: var(--mist);
}
.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.head.single {
  grid-template-columns: minmax(0, 1fr);
}

/* The loop: a real sequence, scrolled sideways on wide screens */
.loop-wrap {
  overflow: hidden;
}
.loop {
  list-style: none;
  display: flex;
  gap: 20px;
  width: max-content;
  padding-inline: var(--gutter);
  counter-reset: step;
}
.loop li {
  counter-increment: step;
  position: relative;
  flex: none;
  width: min(440px, 78vw);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--r-panel);
  background: var(--hull-2);
  border: 1px solid #24485a;
}
.loop li::before {
  content: counter(step);
  font: 800 120px/0.8 var(--display);
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px #3c6a7c;
}
.loop li.gate {
  background: var(--agent);
  border-color: var(--agent);
}
.loop li.gate::before {
  -webkit-text-stroke-color: #b3acf5;
}
.loop strong {
  margin-top: auto;
  font: 700 clamp(28px, 2.6vw, 36px) var(--display);
  letter-spacing: -0.02em;
}
.loop p {
  margin-top: 10px;
  color: var(--mist);
  max-width: 30ch;
}
.loop li.gate p {
  color: #e4e1fb;
}

/* Tabs + mock screens */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  background: #e4e9e2;
}
.tabs button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-control);
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.tabs button[aria-selected='true'] {
  background: var(--vellum);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(13, 34, 48, 0.12);
}
.panel {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  margin-top: 36px;
}
.panel[hidden] {
  display: none;
}
.copy p {
  margin-top: 14px;
  color: var(--ink-2);
}
.dark .copy p {
  color: var(--mist);
}
.ticks {
  margin-top: 20px;
  list-style: none;
}
.ticks li {
  padding: 11px 0 11px 28px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  position: relative;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 19px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--course);
  border-bottom: 2px solid var(--course);
  transform: rotate(-45deg);
}
.dark .ticks li {
  border-color: #24485a;
}
.dark .ticks li::before {
  border-color: var(--waterline);
}
.screen {
  background: var(--vellum);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: 0 24px 48px -28px rgba(13, 34, 48, 0.4);
  overflow: hidden;
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  font-weight: 600;
  font-size: 14px;
}
.screen-bar .mark {
  margin-left: auto;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
}
.split > * {
  padding: 16px;
}
.split > * + * {
  border-left: 1px solid var(--line-2);
}
.pane-title {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.brief {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--r-control);
  padding: 12px;
}
.plan {
  list-style: none;
  font-size: 14px;
}
.plan .epic {
  font-weight: 700;
  padding: 8px 0 4px;
}
.plan .task {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-left: 2px solid var(--agent);
  background: var(--agent-soft);
  border-radius: 0 var(--r-mark) var(--r-mark) 0;
}
.plan .task small {
  grid-column: 1 / -1;
  color: var(--ink-3);
  font-size: 12px;
}
.plan .flag {
  border-left-color: var(--drift);
  background: var(--drift-tint);
}
.screen-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--ink-3);
}
.screen-foot .btn {
  margin-left: auto;
}
.ok {
  color: var(--course);
  font-weight: 600;
}
.transcript {
  list-style: none;
  font-size: 14px;
}
.transcript li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  padding: 8px 6px;
  border-radius: var(--r-mark);
}
.transcript li.hit {
  background: var(--agent-soft);
}
.transcript time {
  font-family: var(--data);
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 2px;
}
.transcript b {
  font-weight: 600;
}
.extract {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.extract li {
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--agent);
  border-radius: var(--r-mark);
  background: #fff;
}
.extract .kind {
  font-size: 12px;
  color: var(--agent);
  font-weight: 600;
}
.extract .src {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
}
.ask-q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  font-size: 17px;
}
.ask-q kbd {
  margin-left: auto;
  font: 12px var(--data);
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-mark);
  color: var(--ink-3);
}
.ask-a {
  padding: 18px 16px;
  font-size: 16px;
  line-height: 1.7;
  max-width: 62ch;
}
.cite {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  margin: 0 2px;
  border-radius: var(--r-mark);
  background: var(--agent-tint);
  color: var(--agent);
  font: 600 12px var(--data);
  vertical-align: 2px;
}
.sources {
  list-style: none;
  border-top: 1px solid var(--line-2);
  padding: 12px 16px 16px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.sources li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

/* Feature rows */
.rows {
  display: grid;
  gap: clamp(88px, 11vw, 144px);
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.row.flip > :first-child {
  order: 2;
}
.row .copy {
  max-width: 52ch;
}
.levels {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #e4e9e2;
  overflow-x: auto;
}
.levels label {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-control);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
}
.levels input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.levels input:checked + label {
  background: var(--vellum);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(13, 34, 48, 0.12);
}
.levels input:focus-visible + label {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.level-note {
  padding: 14px 16px 4px;
  font-size: 14px;
  color: var(--ink-2);
  min-height: 3.6em;
}
.acts {
  list-style: none;
  padding: 8px 16px 16px;
}
.acts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line-2);
  font-size: 15px;
}
.acts .res {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.res.auto {
  color: var(--course);
}
.res.wait {
  color: var(--agent);
}
.badge-demo {
  padding: 20px;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: #fff;
}
.task-row b {
  font-weight: 600;
}
.task-row .mono {
  margin-left: auto;
  color: var(--ink-3);
}
.pop {
  position: relative;
  margin: 14px 0 0 24px;
  padding: 16px;
  border-radius: var(--r-control);
  background: var(--hull);
  color: var(--foam);
  font-size: 14px;
}
.pop::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 28px;
  width: 12px;
  height: 12px;
  background: var(--hull);
  transform: rotate(45deg);
}
.pop p {
  margin: 0 0 12px;
  color: var(--foam);
}
.pop ul {
  list-style: none;
  display: grid;
  gap: 8px;
}
.pop li {
  padding: 10px 12px;
  border-radius: var(--r-mark);
  background: var(--hull-2);
}
.pop small {
  display: block;
  color: var(--fog);
  font-size: 12px;
}
pre.event {
  padding: 24px;
  border-radius: var(--r-panel);
  background: var(--deep);
  border: 1px solid #24485a;
  color: #cfe0e4;
  font: 13px/1.75 var(--data);
  overflow-x: auto;
}
pre.event .s {
  color: var(--waterline);
}
pre.event .a {
  color: #b3acf5;
}
.facts {
  list-style: none;
}
.facts li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.dark .facts li {
  border-color: #24485a;
}
.facts b {
  display: block;
  font: 600 19px var(--display);
}
.facts span {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 16px;
}
.dark .facts span {
  color: var(--mist);
}

/* Comparison table (a real <table>) */
.compare {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
}
.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  padding-block: 14px;
}
.compare tbody th {
  font-weight: 600;
  width: 26%;
}
.compare .them {
  color: var(--ink-3);
}
.compare .us {
  font-weight: 500;
}
.compare thead .us {
  color: var(--course);
  font-weight: 700;
}

/* Inner page hero */
.page-hero {
  padding: clamp(150px, 20vw, 220px) 0 clamp(64px, 9vw, 112px);
}
.page-hero h1 {
  max-width: 14ch;
}
.page-hero .lede {
  margin-top: 28px;
}
.crumbs {
  display: flex;
  gap: 8px;
  list-style: none;
  font: 13px var(--data);
  color: var(--fog);
  margin-bottom: 28px;
}
.crumbs a {
  color: var(--waterline);
  text-decoration: none;
}
.crumbs li + li::before {
  content: '/';
  margin-right: 8px;
  color: #3c6a7c;
}
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  list-style: none;
}
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #3c5d6d;
  border-radius: 999px;
  text-decoration: none;
  color: var(--mist);
  font-weight: 500;
}
.jump a:hover {
  color: var(--foam);
  border-color: var(--waterline);
}

/* Split explainer: model vs code */
.duo {
  width: 100%;
  border-collapse: collapse;
}
.duo th,
.duo td {
  text-align: left;
  vertical-align: top;
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid #24485a;
}
.duo thead th {
  font-weight: 500;
  font-size: 14px;
  color: var(--fog);
}
.duo tbody th {
  font: 600 18px var(--display);
  color: var(--foam);
  width: 24%;
}
.duo td {
  color: var(--mist);
}
.duo .agent {
  color: #c9c3f7;
}

.steps {
  list-style: none;
  counter-reset: s;
  display: grid;
  gap: 0;
}
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font: 600 13px var(--data);
}
.flows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(32px, 5vw, 80px);
}
.flows h3 {
  margin-bottom: 18px;
}
.integrations {
  width: 100%;
  border-collapse: collapse;
}
.integrations th,
.integrations td {
  text-align: left;
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.integrations thead th {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
}
.integrations tbody th {
  font-weight: 600;
}
.when {
  font: 500 13px var(--data);
  white-space: nowrap;
}
.when.now {
  color: var(--course);
}
.when.later {
  color: var(--ink-3);
}

/* FAQ */
.faq {
  border-top: 2px solid var(--ink);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  font: 600 clamp(18px, 1.6vw, 21px) var(--display);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font: 400 28px var(--body);
  color: var(--course);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 0 20px;
  color: var(--ink-2);
  max-width: 64ch;
}

/* Closing band */
.closing {
  padding: clamp(110px, 15vw, 200px) 0;
  text-align: center;
}
.closing h2 {
  margin: 0 auto;
  max-width: 12ch;
}
.closing p {
  margin: 24px auto 36px;
  color: var(--mist);
  max-width: 46ch;
}
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer: links up top, the wordmark half under the waterline at the bottom */
.footer {
  position: relative;
  background: var(--deep);
  color: var(--mist);
  font-size: 15px;
  padding-top: clamp(64px, 8vw, 104px);
  overflow: hidden;
}
.foot {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}
.foot-brand p {
  margin: 12px 0 24px;
  max-width: 30ch;
  font-size: 17px;
  color: var(--mist);
}
.foot h2 {
  color: var(--fog);
  font: 500 13px var(--data);
  letter-spacing: 0;
  margin-bottom: 14px;
}
.foot ul {
  list-style: none;
  display: grid;
  gap: 2px;
}
.foot ul a,
.foot-base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--foam);
  text-decoration: none;
}
.foot ul a:hover,
.foot-base a:hover {
  color: var(--waterline);
}
.foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  padding: 12px 0;
  border-top: 1px solid var(--hull-2);
  color: var(--fog);
}
.footer-mark {
  position: relative;
  margin: clamp(24px, 4vw, 48px) 0 -0.2em;
  font: 800 clamp(120px, 31vw, 520px) / 0.8 var(--display);
  letter-spacing: -0.04em;
  text-align: center;
  user-select: none;
}
/* Above the line it is mist, below it is water */
.footer-mark span {
  display: inline-block;
  background: linear-gradient(180deg, rgba(232, 240, 236, 0.1) 0 57%, rgba(92, 200, 192, 0.22) 57% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-mark::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 57%;
  height: 2px;
  background: var(--waterline);
  opacity: 0.7;
}

/* Split words for the heading reveal; the real text stays in aria-label */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.w > span {
  display: inline-block;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--hull);
    border-bottom: 2px solid var(--waterline);
    transform: translateY(-120%);
    visibility: hidden;
    transition:
      transform 0.4s var(--ease),
      visibility 0.4s;
  }
  .nav.open {
    transform: none;
    visibility: visible;
  }
  .nav a {
    min-height: 52px;
    font-size: 20px;
    font-family: var(--display);
    border-bottom: 1px solid var(--hull-2);
    border-radius: 0;
  }
  .nav a[aria-current='page']::after {
    left: auto;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }
  .nav-signin {
    display: inline-flex !important;
  }
  .menu {
    display: grid;
  }
  .signin {
    display: none;
  }
  .trace-grid,
  .hero-foot,
  .head {
    grid-template-columns: minmax(0, 1fr);
  }
  .trace-pin {
    min-height: 0;
    padding: 96px 0 72px;
  }
  /* Phones: no pin; the proposal follows the card it is about */
  .trace-grid {
    gap: 16px;
  }
  .slack {
    display: contents;
  }
  .trace-card {
    order: 1;
    margin-top: 16px;
  }
  .trace .proposal {
    order: 2;
  }
  .slack-num {
    font-size: clamp(120px, 30vw, 240px);
  }
}
@media (max-width: 860px) {
  .panel,
  .row,
  .flows {
    grid-template-columns: minmax(0, 1fr);
  }
  .row.flip > :first-child {
    order: 0;
  }
  .foot {
    grid-template-columns: 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
  .loop {
    flex-direction: column;
    width: auto;
  }
  .loop li {
    width: auto;
    min-height: 0;
  }
  .loop li::before {
    font-size: 72px;
    margin-bottom: 24px;
  }
  .compare thead {
    display: none;
  }
  .compare tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .compare th,
  .compare td {
    padding: 0;
    border: 0;
  }
  .compare tbody th {
    grid-column: 1 / -1;
    width: auto;
    margin-bottom: 4px;
  }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: var(--ink-3);
    font-weight: 500;
  }
  .duo thead {
    display: none;
  }
  .duo tr {
    display: grid;
    gap: 6px;
    padding: 16px 0;
    border-bottom: 1px solid #24485a;
  }
  .duo th,
  .duo td {
    padding: 0;
    border: 0;
    width: auto !important;
  }
  .duo td::before {
    content: attr(data-label) ': ';
    color: var(--fog);
    font-size: 13px;
  }
}
@media (max-width: 640px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split > * + * {
    border-left: 0;
    border-top: 1px solid var(--line-2);
  }
  .topbar-end .btn {
    display: none;
  }
  .trace-head .launch {
    margin-left: 0;
    width: 100%;
  }
  .proposal-actions .btn {
    flex: 1;
  }
  .tabs button {
    padding: 0 12px;
  }
  .levels {
    flex-wrap: wrap;
  }
  .levels label {
    flex: 1 1 auto;
  }
  .node {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .node:not(:last-child)::after {
    left: 22px;
  }
  .node .was {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .surface-track {
    animation: none;
  }
}
/* Pinned sections get a GSAP spacer; paint it so no paper shows through sub-pixel gaps */
.pin-spacer:has(> .loop-section) {
  background: var(--hull);
}

/* Early access: a five-step track, then a centred FAQ */
.track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  counter-reset: t;
}
.track li {
  counter-increment: t;
  position: relative;
  padding: 24px 22px 26px;
  border-radius: var(--r-panel);
  background: var(--vellum);
  border: 1px solid var(--line);
}
.track li::before {
  content: counter(t);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 36px;
  border-radius: 50%;
  background: var(--hull);
  color: var(--waterline);
  font: 600 14px var(--data);
}
/* Joins each step to the next */
.track li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 42px;
  left: 58px;
  right: -17px;
  height: 2px;
  background: linear-gradient(90deg, var(--hull) 0 50%, transparent 0) 0 0 / 8px 2px;
  opacity: 0.35;
}
.track li:last-child {
  background: var(--agent);
  border-color: var(--agent);
  color: #fff;
}
.track li:last-child::before {
  background: #fff;
  color: var(--agent);
}
.track li:last-child p {
  color: #e4e1fb;
}
.track strong {
  display: block;
  font: 600 19px var(--display);
  letter-spacing: -0.01em;
}
.track p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}
.faq-wrap {
  max-width: 880px;
}
.faq-wrap h2 {
  margin-bottom: 32px;
}
@media (max-width: 1024px) {
  .track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .track li::after {
    display: none;
  }
  .track li:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .track {
    grid-template-columns: minmax(0, 1fr);
  }
  .track li::before {
    margin-bottom: 20px;
  }
}

/* ---------- Waitlist ---------- */
@property --wl-a {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.waitlist {
  position: relative;
  max-width: 520px;
}
.waitlist label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}
/* The field sits in a hairline ring that wakes up and circles while you type or send */
.wl-field {
  position: relative;
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 14px;
  background: rgba(8, 26, 36, 0.72);
  backdrop-filter: blur(6px);
  isolation: isolate;
}
.wl-field::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--wl-a), #3c5d6d 0 70%, var(--waterline) 82%, #b3acf5 90%, #3c5d6d 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease);
}
.wl-field:focus-within::before,
.waitlist.busy .wl-field::before {
  opacity: 1;
  animation: wl-spin 3.2s linear infinite;
}
.waitlist.busy .wl-field::before {
  animation-duration: 0.9s;
}
@keyframes wl-spin {
  to {
    --wl-a: 360deg;
  }
}
.wl-field input[type='email'] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--foam);
  font-size: 17px;
  outline: none;
}
.wl-field input::placeholder {
  color: #7f97a1;
}
.wl-field input[aria-invalid='true'] {
  color: #f6a998;
}
.wl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.wl-field .btn {
  position: relative;
  min-height: 48px;
  border-radius: 10px;
}
.wl-spin {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(15, 42, 56, 0.25);
  border-top-color: var(--hull);
  opacity: 0;
}
.waitlist.busy .wl-label {
  opacity: 0;
}
.waitlist.busy .wl-spin {
  opacity: 1;
  animation: wl-turn 0.7s linear infinite;
}
@keyframes wl-turn {
  to {
    transform: rotate(360deg);
  }
}
.waitlist .signup-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--fog);
}
.waitlist .signup-error {
  margin-top: 10px;
  font-size: 14px;
  color: #f6a998;
}
/* Success: a ticket with your place in line, cut by the waterline */
.wl-done {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(92, 200, 192, 0.16), rgba(75, 63, 203, 0.22));
  border: 1px solid rgba(92, 200, 192, 0.45);
  overflow: hidden;
  outline: none;
}
.wl-done[hidden] {
  display: none;
}
.wl-done::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--waterline);
  transform-origin: left;
  animation: wl-line 1.2s 0.2s var(--ease) both;
}
@keyframes wl-line {
  from {
    transform: scaleX(0);
  }
}
/* The tick draws itself once the sign-up is sent */
.wl-check {
  flex: none;
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--waterline);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wl-check circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: wl-draw 0.7s 0.15s var(--ease) forwards;
}
.wl-check path {
  stroke: var(--foam);
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: wl-draw 0.45s 0.7s var(--ease) forwards;
}
@keyframes wl-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.wl-title {
  font: 700 20px var(--display);
  color: var(--foam);
}
.wl-pos {
  color: var(--waterline);
  font-variant-numeric: tabular-nums;
}
.wl-pos b {
  font-weight: inherit;
}
.wl-sub {
  margin-top: 4px;
  font-size: 15px;
  color: var(--mist);
  overflow-wrap: anywhere;
}
.wl-sub b {
  color: var(--foam);
  font-weight: 600;
}
@media (max-width: 520px) {
  .wl-field {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .wl-field .btn {
    width: 100%;
  }
  .wl-done {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
