/* phigon.online
   A white page with black ink, and one black object: the live demo console.
   Color appears only where it means something: an AI agent's own brand
   color, or a status (allowed, waiting for approval, blocked). */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/fonts/BricolageGrotesque-Variable.woff2") format("woff2-variations");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/IBMPlexSans-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/IBMPlexSans-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/IBMPlexSans-600.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-500.woff2") format("woff2");
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-2: #474747;
  --ink-3: #6e6e6e;
  --rule: #e6e6e6;
  --rule-strong: #c9c9c9;
  --wash: #f3f3f3;

  --console: #000000;
  --console-line: #262626;
  --console-raise: #171717;
  --console-hover: #121212;
  --console-text-2: #a8a8a8;
  --console-text-3: #7d7d7d;

  --signal-ok: #3ccf6e;
  --signal-wait: #f7b733;
  --signal-block: #ff5a4e;
  --signal-block-ink: #d92d20;
  --signal-wait-ink: #b97a00;

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-text: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-code: "IBM Plex Mono", "Cascadia Code", Consolas, ui-monospace, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 68px;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.05;
  text-wrap: balance;
}

p {
  margin: 0;
}

code,
pre {
  font-family: var(--font-code);
}

.icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 860px;
}

.small {
  font-size: 15px;
}

.muted {
  color: var(--ink-3);
}

.nowrap {
  white-space: nowrap;
}

/* Buttons ---------------------------------------------------------------- */

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: transparent;
  font: 600 16px/1.1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: #2b2b2b;
}

.button-secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--wash);
}

.button-light {
  background: var(--paper);
  color: var(--ink);
}

.button-light:hover {
  background: #e3e3e3;
}

.button-outline-light {
  border-color: var(--paper);
  color: var(--paper);
}

.button-outline-light:hover {
  background: #1f1f1f;
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
}

.site-header-inner {
  display: flex;
  height: var(--header);
  max-width: var(--container);
  align-items: center;
  gap: 36px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-mark {
  width: 24px;
  height: 25px;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}

.site-nav a,
.header-link {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.header-link:hover,
.header-link[aria-current="page"] {
  color: var(--ink);
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 200ms ease;
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-menu {
  display: grid;
  padding: 8px var(--gutter) 24px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 19px;
  font-weight: 500;
  text-decoration: none;
}

/* Agent logos ------------------------------------------------------------ */

.agent-tile {
  display: inline-grid;
  width: var(--tile);
  height: var(--tile);
  flex: none;
  place-items: center;
  border-radius: calc(var(--tile) * 0.27);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.agent-tile img {
  width: 72%;
  height: 72%;
}

.agent-tile-letter,
.agent-tile-add {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: calc(var(--tile) * 0.5);
  font-weight: 700;
  line-height: 1;
}

.agent-tile-add {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--rule-strong);
  color: var(--ink-3);
}

/* Hero ------------------------------------------------------------------- */

.hero {
  padding-top: clamp(36px, 4.5vw, 64px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.hero-title {
  max-width: 17ch;
  font-size: clamp(46px, 6.5vw, 96px);
  font-stretch: 78%;
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

/* Each word sits in a clipping box and rises into place once, on load. */
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  vertical-align: top;
}

.hero-title .word > span {
  display: inline-block;
  animation: word-in 760ms cubic-bezier(0.2, 0.75, 0.15, 1) both;
  animation-delay: calc(var(--w) * 55ms);
}

@keyframes word-in {
  from {
    transform: translateY(105%);
  }
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px 64px;
  margin-top: clamp(22px, 2.6vw, 32px);
  animation: fade-up 700ms 420ms cubic-bezier(0.2, 0.75, 0.15, 1) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.hero-lede {
  max-width: 56ch;
  color: var(--ink-2);
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
}

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

.hero-note {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 14px;
}

.console-wrap {
  margin-top: clamp(28px, 3.4vw, 44px);
}

/* Notes above the demo, one per console column. They explain the screen
   and arrive one by one as the demo boots. */
.console-notes {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 340px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.console-note-item {
  position: relative;
  padding: 0 24px 16px 40px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.2, 0.75, 0.15, 1);
}

/* A short leader line drops from each note to its part of the console. */
.console-note-item::before {
  position: absolute;
  top: 3px;
  bottom: -14px;
  left: 24px;
  width: 2px;
  border-radius: 2px;
  background: var(--ink);
  content: "";
  transform-origin: top;
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.15, 1);
}

.console-notes.is-sequencing .console-note-item:not(.is-on) {
  opacity: 0;
  transform: translateY(6px);
}

.console-notes.is-sequencing .console-note-item:not(.is-on)::before {
  transform: scaleY(0);
}

.console-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 18px;
}

.console-caption {
  color: var(--ink-3);
  font-size: 15px;
}

.works-with {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.works-with-label {
  color: var(--ink-3);
  font-size: 15px;
}

.works-with-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.works-with-more {
  color: var(--ink-2);
  font-size: 15px;
}

/* Demo console ----------------------------------------------------------- */

.console {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--console);
  color: var(--paper);
  font-size: 15px;
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.55);
}

.console :focus-visible {
  outline-color: var(--paper);
}

.console-bar {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--console-line);
}

.console-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.console-brand svg {
  width: 20px;
  height: 21px;
}

.console-tabs {
  display: flex;
  gap: 4px;
  margin-inline: auto;
  padding: 4px;
  border-radius: 12px;
  background: var(--console-raise);
}

.console-tab {
  padding: 8px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--console-text-2);
  font: 500 15px/1.2 var(--font-text);
  cursor: pointer;
}

.console-tab:hover {
  color: var(--paper);
}

.console-tab[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--console-text-2);
  font-size: 14px;
  white-space: nowrap;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal-ok);
}

.live-dot::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--signal-ok);
  content: "";
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.console.is-paused .live-dot {
  background: var(--console-text-3);
}

.console.is-paused .live-dot::after {
  display: none;
}

@keyframes ping {
  75%,
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

.console-pause {
  margin-left: 4px;
  padding: 6px 12px;
  border: 1px solid var(--console-line);
  border-radius: 8px;
  background: transparent;
  color: var(--paper);
  font: 500 13px/1 var(--font-text);
  cursor: pointer;
}

.console-pause:hover {
  border-color: #4a4a4a;
}

.console-view[hidden] {
  display: none;
}

.console-heading {
  margin: 0 0 10px 6px;
  color: var(--console-text-3);
  font-size: 13px;
  font-weight: 500;
}

.console-note {
  max-width: 60ch;
  margin-bottom: 18px;
  color: var(--console-text-2);
}

.view-activity {
  display: grid;
  min-height: 520px;
  grid-template-columns: 260px minmax(0, 1fr) 340px;
}

.view-agents,
.view-rules,
.view-usage {
  min-height: 520px;
  padding: 24px;
}

/* Team */

.team {
  padding: 18px 12px;
  border-right: 1px solid var(--console-line);
}

.team-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-row {
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.team-row:hover {
  background: var(--console-hover);
}

.team-row.is-current {
  background: var(--console-raise);
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #2b2b2b;
  font-size: 12px;
  font-weight: 600;
}

.avatar-all {
  background: var(--paper);
  color: var(--ink);
}

.team-name {
  min-width: 0;
}

.team-name strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-name small {
  color: var(--console-text-3);
  font-size: 12.5px;
}

.team-agents {
  display: flex;
  gap: 4px;
}

.team-agents .agent-tile {
  box-shadow: none;
}

/* Feed */

.feed-panel {
  min-width: 0;
  padding: 18px 16px;
  border-right: 1px solid var(--console-line);
}

.feed-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.feed-filter {
  margin-right: 6px;
  color: var(--console-text-2);
  font-size: 13px;
}

.feed {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-button {
  display: grid;
  width: 100%;
  grid-template-columns: 44px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--console-line);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.event-button:hover {
  border-color: #474747;
}

.event-button[aria-pressed="true"] {
  border-color: var(--paper);
  background: var(--console-hover);
}

.event[data-status="blocked"] .event-button {
  border-color: rgba(255, 90, 78, 0.5);
}

.event[data-status="blocked"] .event-button[aria-pressed="true"] {
  border-color: var(--signal-block);
}

.event[data-status="waiting"] .event-button {
  border-color: rgba(247, 183, 51, 0.45);
}

.event-time {
  color: var(--console-text-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.event-body {
  min-width: 0;
}

.event-line {
  display: block;
  overflow: hidden;
  color: var(--console-text-2);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-line strong {
  color: var(--paper);
  font-weight: 600;
}

.event-text {
  display: block;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event.is-new {
  animation: event-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.event.is-alarm .event-button {
  animation: alarm 1.4s ease-out;
}

@keyframes event-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes alarm {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 90, 78, 0.7);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(255, 90, 78, 0);
  }
}

/* Status chips (shared by feed, detail, and tables) */

.status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.status-done,
.status-idle,
.status-stopped {
  box-shadow: inset 0 0 0 1px #3a3a3a;
  color: var(--console-text-2);
}

.status-blocked,
.status-denied {
  background: rgba(255, 90, 78, 0.16);
  color: #ff8a80;
}

.status-waiting {
  background: rgba(247, 183, 51, 0.16);
  color: var(--signal-wait);
}

.status-allowed,
.status-approved,
.status-running {
  background: rgba(60, 207, 110, 0.15);
  color: #6ee79a;
}

/* Detail */

.detail {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 20px;
}

.detail.is-updating {
  animation: detail-in 280ms ease-out;
}

@keyframes detail-in {
  from {
    opacity: 0.2;
    transform: translateX(8px);
  }
}

.detail-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.detail-head strong {
  display: block;
  font-size: 16px;
}

.detail-head span {
  color: var(--console-text-2);
  font-size: 13px;
}

.detail-head .detail-time {
  align-self: start;
  color: var(--console-text-3);
  font-size: 13px;
}

.detail-what {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.detail-code {
  margin: 0;
  overflow-x: auto;
  padding: 12px 14px;
  border: 1px solid var(--console-line);
  border-radius: 10px;
  background: var(--console-raise);
  font-size: 13px;
  line-height: 1.5;
}

.detail-files {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.detail-files code {
  color: var(--console-text-2);
}

.detail-rule {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button-console {
  min-height: 38px;
  padding: 0 16px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
}

.button-console:hover {
  background: #e0e0e0;
}

.button-console-quiet {
  min-height: 38px;
  padding: 0 16px;
  border-color: #3d3d3d;
  color: var(--paper);
  font-size: 14px;
}

.button-console-quiet:hover {
  border-color: var(--paper);
}

.button-tiny {
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.detail-result:empty {
  display: none;
}

.detail-result {
  color: #6ee79a;
  font-size: 14px;
}

/* Agents table */

.agents-table {
  width: 100%;
  border-collapse: collapse;
}

.agents-table th {
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--console-line);
  color: var(--console-text-3);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.agents-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--console-line);
  vertical-align: middle;
}

.agents-table td:last-child {
  text-align: right;
}

.cell-agent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.cell-person small {
  display: block;
  color: var(--console-text-3);
  font-size: 12.5px;
}

/* Rules */

.rules {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--console-line);
  border-radius: 14px;
}

.rule-text strong {
  display: block;
  font-weight: 600;
}

.rule-text small {
  color: var(--console-text-2);
  font-size: 13.5px;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #3a3a3a;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  transition: transform 180ms cubic-bezier(0.3, 0.7, 0.3, 1.2);
}

.switch[aria-checked="true"] {
  background: var(--signal-ok);
}

.switch[aria-checked="true"] span {
  transform: translateX(20px);
}

/* Usage */

.usage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.usage-head .console-heading {
  margin: 0;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: var(--console-raise);
}

.segmented button {
  padding: 7px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--console-text-2);
  font: 500 14px/1 var(--font-text);
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}

.usage {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.usage-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 16px;
}

.usage-track {
  height: 14px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--console-raise);
}

.usage-bar {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: 7px;
  background: var(--c);
  transition: width 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.usage-value {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.console-toast {
  position: absolute;
  bottom: 16px;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.console-toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Boot sequence: rows and logos arrive before the first event. */
.console.is-booting .team-row {
  animation: row-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.console.is-booting .team-list li:nth-child(2) .team-row { animation-delay: 90ms; }
.console.is-booting .team-list li:nth-child(3) .team-row { animation-delay: 180ms; }
.console.is-booting .team-list li:nth-child(4) .team-row { animation-delay: 270ms; }
.console.is-booting .team-list li:nth-child(5) .team-row { animation-delay: 360ms; }

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
}

/* Sections --------------------------------------------------------------- */

.section {
  padding-block: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--rule);
}

.section h2 {
  max-width: 21ch;
  font-size: clamp(36px, 4.6vw, 60px);
  font-stretch: 84%;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.section h3 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.section-lede {
  max-width: 52ch;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 19px;
}

.section-link {
  margin-top: 32px;
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 7vw, 112px);
}

/* Problem */

.risk-list {
  margin: 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
  list-style: none;
}

.risk-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 19px;
  line-height: 1.45;
}

.risk-dot {
  width: 11px;
  height: 11px;
  flex: none;
  border-radius: 50%;
}

.dot-blocked {
  background: var(--signal-block-ink);
}

.dot-waiting {
  background: var(--signal-wait);
}

.risk-list .risk-answer {
  padding-top: 28px;
  border-bottom: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 650;
  line-height: 1.2;
}

/* Steps (a real sequence, so it is numbered) */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  position: absolute;
  top: 22px;
  right: 0;
  left: 22px;
  height: 1.5px;
  background: var(--rule-strong);
  content: "";
}

.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
}

.step-number {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.step p {
  max-width: 34ch;
  color: var(--ink-2);
}

.mini-terminal {
  margin-top: 12px;
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  white-space: nowrap;
}

.mini-terminal .prompt {
  color: #8a8a8a;
}

.mini-consent {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  font-size: 14.5px;
}

.mini-consent-text {
  color: var(--ink-2);
}

.mini-consent-actions,
.mini-key {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.mini-button {
  padding: 7px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.mini-button-primary {
  background: var(--ink);
  color: var(--paper);
}

.mini-key {
  align-items: center;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
}

.mini-key-field {
  flex: 1;
  padding: 6px 8px;
  color: var(--ink-2);
  font-family: var(--font-code);
  font-size: 14px;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 48px;
  margin: 48px 0 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
  list-style: none;
}

.feature {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--rule);
}

.feature p {
  max-width: 36ch;
  color: var(--ink-2);
}

.feature-link {
  justify-self: start;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
}

/* Trust */

.trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.trust-column {
  padding: clamp(24px, 3vw, 40px);
  border-radius: 20px;
  background: var(--wash);
}

.trust-column h3 {
  margin-bottom: 20px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-2);
}

.check-list li::before {
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.check-list li::after {
  position: absolute;
  top: calc(0.35em + 5px);
  left: 5px;
  width: 8px;
  height: 5px;
  border-bottom: 1.5px solid var(--paper);
  border-left: 1.5px solid var(--paper);
  content: "";
  transform: rotate(-45deg);
}

/* Agents */

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.agent-grid li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  font-weight: 600;
}

.agent-grid .agent-own {
  border-style: dashed;
  color: var(--ink-3);
}

/* FAQ */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 48px;
}

.faq {
  border-top: 1.5px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-size: 19px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  content: "";
  transform: translateY(-50%);
  transition: transform 200ms ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  max-width: 62ch;
  padding-bottom: 24px;
  color: var(--ink-2);
}

/* Final call and footer -------------------------------------------------- */

.final-call {
  padding-block: clamp(80px, 10vw, 136px);
  background: var(--ink);
  color: var(--paper);
}

.final-inner {
  display: grid;
  gap: 40px;
}

.final-call h2 {
  max-width: 16ch;
  font-size: clamp(44px, 7.4vw, 110px);
  font-stretch: 80%;
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  border-top: 1px solid #2a2a2a;
  background: var(--ink);
  color: #b8b8b8;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 64px var(--gutter) 48px;
}

.site-footer-brand {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 18px;
  max-width: 34ch;
}

.site-footer-brand .brand {
  color: var(--paper);
}

.site-footer-contact {
  font-size: 15px;
  line-height: 1.8;
}

.site-footer-group h2 {
  margin-bottom: 16px;
  color: var(--paper);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
}

.site-footer-group ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.site-footer .button:hover {
  text-decoration: none;
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 24px var(--gutter) 40px;
  background: linear-gradient(#2a2a2a, #2a2a2a) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  color: #8c8c8c;
  font-size: 14px;
}

/* Inner pages ------------------------------------------------------------ */

.page-hero {
  padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 3vw, 40px);
}

.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(44px, 6.4vw, 88px);
  font-stretch: 82%;
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.page-lede {
  max-width: 58ch;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: clamp(18px, 1.5vw, 20px);
}

.page-section {
  padding-block: 24px clamp(80px, 10vw, 128px);
}

.command {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
}

.command code {
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 14px;
  white-space: nowrap;
}

.copy-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid #3a3a3a;
  border-radius: 9px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--paper);
}

.copy-button.copied {
  background: var(--paper);
  color: var(--ink);
}

.book-layout {
  display: grid;
  gap: 24px;
}

.booking-frame {
  display: grid;
  gap: 12px;
}

.booking-frame iframe {
  width: 100%;
  height: 760px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--paper);
}

.book-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 20px;
  background: var(--wash);
}

.panel h2 {
  font-size: 24px;
}

.not-found {
  min-height: 60vh;
}

/* Prose (docs, privacy, security) ---------------------------------------- */

.prose {
  min-width: 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.75;
}

.prose h1 {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(38px, 4.6vw, 56px);
  font-stretch: 85%;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.prose h2 {
  position: relative;
  margin: 56px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-size: 28px;
  font-stretch: 90%;
}

.prose h3 {
  position: relative;
  margin: 36px 0 12px;
  color: var(--ink);
  font-size: 21px;
}

.prose .anchor {
  position: absolute;
  left: -1.1em;
  color: var(--ink-3);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.prose h2 .anchor {
  top: 32px;
}

.prose h2:hover .anchor,
.prose h3:hover .anchor {
  opacity: 1;
}

.prose p,
.prose ul,
.prose ol,
.prose pre,
.prose blockquote,
.prose .table-scroll {
  margin: 0 0 20px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 6px;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--ink);
}

.prose hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.prose :not(pre) > code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--wash);
  color: var(--ink);
  font-size: 0.86em;
}

.prose pre {
  overflow-x: auto;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.6;
}

.prose blockquote {
  padding: 16px 20px;
  border-left: 3px solid var(--ink);
  border-radius: 0 12px 12px 0;
  background: var(--wash);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--wash);
  color: var(--ink);
  font-weight: 600;
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose input[type="checkbox"] {
  margin: 0 8px 0 -1.3em;
  accent-color: var(--ink);
}

.prose li:has(> input[type="checkbox"]) {
  list-style: none;
}

/* Docs layout ------------------------------------------------------------ */

.docs {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 200px;
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
  padding-block: 48px 112px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: calc(var(--header) + 32px);
  max-height: calc(100vh - var(--header) - 48px);
  overflow-y: auto;
}

.docs-nav-toggle {
  display: none;
}

.docs-nav-group + .docs-nav-group {
  margin-top: 28px;
}

.docs-nav h2,
.docs-toc h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
}

.docs-nav ul,
.docs-toc ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}

.docs-nav a:hover {
  background: var(--wash);
  color: var(--ink);
}

.docs-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
}

.docs-toc a {
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}

.docs-toc a:hover {
  border-left-color: var(--ink);
  color: var(--ink);
}

.docs-crumb {
  margin-bottom: 14px;
  color: var(--ink-3);
  font-size: 15px;
}

.docs-crumb a {
  color: var(--ink-2);
}

.docs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.docs-pager a {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.docs-pager a[rel="next"] {
  justify-items: end;
  text-align: right;
}

.docs-pager a:hover {
  border-color: var(--ink);
}

.docs-pager small {
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 400;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1180px) {
  .view-activity {
    grid-template-columns: 220px minmax(0, 1fr) 300px;
  }

  .console-notes {
    grid-template-columns: 220px minmax(0, 1fr) 300px;
  }

  .team-agents {
    display: none;
  }
}

@media (max-width: 1080px) {
  .console-notes {
    display: none;
  }

  .docs {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .docs-toc {
    display: none;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-activity {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .team {
    grid-column: 1 / -1;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--console-line);
  }

  .team .console-heading {
    display: none;
  }

  .team-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .team-list li {
    flex: none;
  }

  .team-name strong {
    overflow: visible;
  }

  .team-row {
    width: auto;
    grid-template-columns: 30px auto;
    padding: 6px 12px 6px 6px;
    box-shadow: inset 0 0 0 1px var(--console-line);
  }

  .team-row .avatar {
    width: 30px;
    height: 30px;
  }

  .team-name small {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-nav,
  .site-header-actions .button,
  .header-link {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-header-actions {
    margin-left: auto;
  }

  .hero-row,
  .split,
  .trust,
  .book-cards,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .console-bar {
    flex-wrap: wrap;
  }

  .console-tabs {
    order: 3;
    width: 100%;
    overflow-x: auto;
    margin: 0;
  }

  .console-live {
    margin-left: auto;
  }

  .view-activity {
    grid-template-columns: 1fr;
  }

  .feed-panel {
    border-right: 0;
  }

  .detail {
    border-top: 1px solid var(--console-line);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps::before {
    top: 22px;
    bottom: 0;
    left: 21px;
    width: 1.5px;
    height: auto;
  }

  .step {
    padding-left: 68px;
  }

  .step-number {
    position: absolute;
    top: 0;
    left: 0;
  }

  .agents-table th:nth-child(2),
  .agents-table td:nth-child(2) {
    display: none;
  }

  .usage-row {
    grid-template-columns: 150px minmax(0, 1fr) 76px;
  }

  .docs {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
  }

  .docs-nav-toggle {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    padding: 0 16px;
    border: 1.5px solid var(--ink);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font: 600 15px/1 var(--font-text);
    cursor: pointer;
  }

  .docs-nav {
    display: none;
    margin-top: 12px;
  }

  .docs-nav.open {
    display: block;
  }

  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-actions .button,
  .final-actions .button {
    width: 100%;
  }

  .console-brand span,
  .console-pause {
    font-size: 12px;
  }

  .event-button {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
  }

  .event-time {
    display: none;
  }

  .event-button .status {
    grid-column: 2;
    justify-self: start;
  }

  .view-agents,
  .view-rules,
  .view-usage {
    padding: 16px;
  }

  .usage-row {
    grid-template-columns: minmax(0, 1fr) 70px;
  }

  .usage-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .agents-table td,
  .agents-table th {
    padding-inline: 8px;
  }

  .agents-table th:nth-child(3),
  .agents-table td:nth-child(3) {
    display: none;
  }

  .booking-frame iframe {
    height: 640px;
  }

  .docs-pager {
    grid-template-columns: 1fr;
  }

  .prose .anchor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .live-dot::after {
    display: none;
  }

  .console-notes.is-sequencing .console-note-item,
  .console-notes.is-sequencing .console-note-item::before {
    opacity: 1;
    transform: none;
  }
}
