:root {
  --bg: #1D1F20;
  --surface: #121212;
  --surface-alt: #272727;
  --border: #1f1f1f;
  --text-primary: #e8e8e8;
  --text-secondary: #888888;
  --text-muted: #4a4a4a;
  --accent: #ffffff;
  --accent-gold: #986C1B;
  --accent-rust: #D77757;
  --code-bg: #0d0d0d;

  --font-mono: 'JetBrains Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  overflow-x: hidden;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.app-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  border: 1px solid var(--accent-gold);
  border-radius: 4px;
  overflow: hidden;
}

header {
  border-bottom: 1px solid var(--accent-gold);
  background: var(--bg);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.nav-right {
  display: flex;
  align-items: center;
  margin-right: -6px;
}

.nav-enterprise {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 4px 8px;
}

.nav-enterprise:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #D2CFC1;
  text-decoration: none;
}

/* Prayukta's Bindu mark: a stem and the pulsing dot, an abstract p.
   Same rules as prayukta.com's home.css, so the mark matches across the family. */
.logo-mark {
  flex: none;
  align-self: center;
  width: 0.63em;
  height: 1.1em;
  margin-right: 0.6em;
  position: relative;
  top: 0.1em;
  overflow: visible;
}

.logo-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
}

.logo-mark circle {
  fill: #F66F53;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    fill: #F66F53;
  }
  50% {
    fill: #07f05c;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-mark circle {
    animation: none;
  }
}

/* Breadcrumb header shared with prayukta.com and yukta.prayukta.com ("prayukta / magnum").
   Colors are prayukta.com's, so the header looks the same across the family. */
.brand {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  font-family: var(--font-mono);
}

.logo-sep {
  margin: 0 10px;
  font-weight: 400;
  color: #73746f;
}

.logo-sub {
  font-size: 14px;
  font-weight: 500;
  color: #9b9b96;
  text-decoration: none;
  transition: color 0.15s ease;
}

a.logo-sub:hover {
  color: #C99A45;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: -8px;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: #9b9b96;
  text-decoration: none;
  border-radius: 3px;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #C99A45;
}

@media (max-width: 768px) {
  .nav-optional {
    display: none;
  }

  .logo-sep {
    margin: 0 7px;
  }

  .nav-link {
    padding: 6px 7px;
  }
}

main {
  background: var(--bg);
}

.intro {
  padding: 80px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.intro-content {
  display: flex;
  flex-direction: column;
}

.intro-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero: the Board, captured in Magnum (the city-heat run). */
.intro-board {
  position: relative;
  width: 100%;
  margin: 0;
}

.intro-board::before {
  content: '';
  position: absolute;
  inset: 12% 6% -4%;
  background: radial-gradient(closest-side, rgba(152, 108, 27, 0.26), transparent);
  filter: blur(32px);
  pointer-events: none;
}

.intro-board img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #2c2c2c;
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.hero-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  transform: rotate(0deg);
  transform-origin: center center;
}

h1 {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: #D2CFC1;
}

.highlight-agentic {
  color: #F66F53;
  font-style: italic;
}

.subtitle-small {
  font-size: 20px;
  font-weight: 400;
  color: #999;
}

.lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 48px;
}

/* "Next:" under the hero lead: where Magnum is going, with a link to enterprise. */
.lead-next {
  margin-top: -32px;
  font-size: 14px;
}

.lead-next a {
  color: var(--accent-rust);
  text-decoration: none;
}

.lead-next a:hover {
  text-decoration: underline;
}

.install-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.install-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-gold);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

/* macOS / Linux switch over the install command. */
.install-os {
  display: flex;
  gap: 6px;
}

.os-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 5px 9px;
  cursor: pointer;
}

.os-tab svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.os-tab:hover {
  color: var(--text-primary);
}

.os-tab.active {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.install {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--code-bg);
  border: 1px solid var(--accent-gold);
  border-radius: 4px;
  position: relative;
}

.install-cmd {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  flex: 1;
  user-select: all;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.install-cmd::-webkit-scrollbar {
  display: none;
}

.copy-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.copy-btn:active {
  transform: scale(0.98);
}

.features {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 48px;
}

h2 {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #D2CFC1;
  text-transform: lowercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px 24px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  padding-left: 20px;
}

.feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 1px;
}

.feature h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #D2CFC1;
}

.feature p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.upcoming {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.upcoming-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.upcoming-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.upcoming-item::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent-rust);
  border-radius: 50%;
  flex-shrink: 0;
}

.upcoming-name {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
}

.progress-bar {
  position: relative;
  width: 120px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progress-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 12px;
  flex-shrink: 0;
}

.specs {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px 24px;
}

.spec {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: lowercase;
}

.spec-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
}

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .app-wrapper {
    margin: 20px 16px;
    border-radius: 2px;
  }

  nav {
    padding: 16px 20px;
  }

  .container {
    padding: 0 20px;
  }

  .intro {
    padding: 60px 0 40px;
  }

  .intro-grid {
    gap: 32px;
  }

  .intro-visual {
    display: none;
  }

  h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .lead {
    font-size: 15px;
    margin-bottom: 40px;
  }

  .upcoming-item {
    flex-wrap: wrap;
  }

  .progress-bar {
    width: 100%;
    margin-left: 16px;
  }

  .progress-text {
    margin-left: 8px;
  }

  /* macOS / Linux switch over the install command. */
.install-os {
  display: flex;
  gap: 6px;
}

.os-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 5px 9px;
  cursor: pointer;
}

.os-tab svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.os-tab:hover {
  color: var(--text-primary);
}

.os-tab.active {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.install {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .install-cmd {
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
  }

  .copy-btn {
    width: 100%;
    padding: 10px;
  }

  .features,
  .upcoming,
  .specs {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 480px) {
  /* If the breadcrumb and links can't share a row, the links drop below it, right-aligned */
  header nav {
    flex-wrap: wrap;
    gap: 2px 10px;
  }

  .nav-links {
    margin-left: auto;
  }

  h1 {
    font-size: 22px;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }
}

/* Privacy page styles */
.privacy-content {
  padding: 80px 0;
}

.privacy-section {
  margin-bottom: 80px;
}

.privacy-section:last-child {
  margin-bottom: 0;
}

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.privacy-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  padding-left: 20px;
}

.privacy-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 1px;
}

.privacy-item h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #D2CFC1;
}

.privacy-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.faq-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 20px;
}

.faq-item summary {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: #D2CFC1;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.faq-item summary::before {
  content: '+ ';
  color: var(--accent-gold);
  margin-right: 8px;
}

.faq-item[open] summary::before {
  content: '− ';
}

.faq-item p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  padding-left: 20px;
}

.faq-item a,
.feature a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.15s ease;
}

.faq-item a:hover,
.feature a:hover {
  color: var(--accent-rust);
}

::selection {
  background: var(--text-primary);
  color: var(--bg);
}

::-moz-selection {
  background: var(--text-primary);
  color: var(--bg);
}

/* ---- 2026-11 rework: any agent, any machine ---- */

.install-dmg {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
}

.install-dmg:hover {
  color: var(--accent-gold);
}

.install-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* Sentence headings read as sentences, not labels. */
.section-header h2,
.story h2,
.closing-title {
  text-transform: none;
}

p code,
.faq-item code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: #D2CFC1;
  background: var(--surface-alt);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Hero illustration: Magnum's sidebar, one project on three places. */
.mock {
  width: 100%;
  max-width: 460px;
  margin: 0;
  background: var(--surface);
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.mock-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #222;
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3a3a;
}

.mock-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
}

.mock-project {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 8px 6px;
  font-size: 13px;
  color: #D2CFC1;
}

.mock-project-next {
  margin-top: 8px;
  border-top: 1px solid #222;
  padding-top: 12px;
}

.mock-chevron {
  color: var(--text-muted);
  font-size: 11px;
}

.mock-detail {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.mock-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-primary);
}

.mock-row.is-needs {
  background: #232323;
}

.mock-text {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 1px;
}

.mock-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.mock-row .mock-dot {
  margin-top: 6px;
}

.mock-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a4a4a;
}

.is-working .mock-dot {
  background: #D9A441;
  animation: mock-pulse 1.8s ease-in-out infinite;
}

@keyframes mock-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .is-working .mock-dot { animation: none; }
}

.is-needs .mock-dot,
.mock-ask .mock-dot {
  background: #F66F53;
}

.is-done .mock-dot {
  background: #6FB58A;
}

.mock-ask {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(246, 111, 83, 0.45);
  background: rgba(246, 111, 83, 0.06);
  border-radius: 6px;
}

.mock-ask-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-primary);
}

.mock-ask code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #D2CFC1;
  background: var(--code-bg);
  padding: 6px 8px;
  border-radius: 4px;
}

.mock-ask-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.mock-btn {
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid #333;
  border-radius: 4px;
  color: var(--text-secondary);
}

.mock-btn-primary {
  background: #D2CFC1;
  border-color: #D2CFC1;
  color: #1D1F20;
}

/* Agents and plans. */
.agents,
.faq,
.closing {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-lead {
  max-width: 60ch;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.agent {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
}

.agent h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: #D2CFC1;
}

.agent p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.agents-foot {
  max-width: 70ch;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq .faq-list {
  margin-top: 0;
}

.closing-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.closing-title {
  font-size: 22px;
  text-wrap: balance;
}

.closing-link {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-rust);
  text-decoration: none;
  border: 1px solid var(--accent-gold);
  border-radius: 4px;
  padding: 8px 14px;
}

.closing-link:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .agent-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .agents,
  .faq,
  .closing {
    padding: 56px 0;
  }
  .mock {
    max-width: 100%;
  }
  /* The old hero animation hid here; the sidebar illustration explains the product, so it shows. */
  .intro-visual {
    display: flex;
  }
}

@media (min-width: 768px) {
  /* The install command scrolls in its box instead of widening the text column. */
  .intro-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

/* From here the Board gets the wider column, so it reads at a glance. */
@media (min-width: 1024px) {
  .intro-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

/* "Backed by" badge above the headline: the Claude mark in its own colour, quiet otherwise. */
.backed {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-bottom: 28px;
  padding: 7px 14px 7px 10px;
  border: 1px solid #3b302b;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.3;
  color: #D2CFC1;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.backed:hover,
.backed:focus-visible {
  border-color: #D97757;
}

.backed:focus-visible {
  outline: 2px solid #D97757;
  outline-offset: 2px;
}

.backed-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: #D97757;
}

/* How it works: a scenario beside a drawing of the Magnum screen that does it, alternating sides. */
.stories {
  border-top: 1px solid var(--border);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.story:last-child {
  border-bottom: none;
}

.story:nth-child(even) .story-text {
  order: 2;
}

.story h2 {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.3;
  text-wrap: balance;
}

.story-text p {
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.story-text .story-example {
  margin-top: 12px;
  font-size: 15px;
  color: #D2CFC1;
}

.ill {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary);
}

.ill code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #D2CFC1;
}

.ill-head {
  font-size: 14px;
  font-weight: 600;
  color: #D2CFC1;
}

.ill-steps {
  display: grid;
  gap: 9px;
  list-style: none;
}

.ill-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ill-steps li::before {
  content: '';
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
}

.ill-steps li.done::before {
  content: '✓';
  background: #6FB58A;
  border-color: #6FB58A;
  color: #13261b;
}

.ill-foot {
  padding-top: 10px;
  border-top: 1px solid #222;
  font-size: 12px;
  color: var(--text-secondary);
}

.ill-field code {
  display: block;
  padding: 8px 10px;
  background: var(--code-bg);
  border: 1px solid #2a2a2a;
  border-radius: 4px;
}

/* A night, in order: the timeline is a real sequence. */
.ill-timeline {
  display: grid;
  padding: 6px 0;
  list-style: none;
}

.ill-timeline li {
  position: relative;
  margin-left: 64px;
  padding: 0 0 20px 22px;
  border-left: 1px solid #2f2f2f;
}

.ill-timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.ill-timeline li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4a4a4a;
}

.ill-timeline li.done::before {
  background: #6FB58A;
}

.ill-timeline li.needs::before {
  background: #F66F53;
}

.ill-timeline time {
  position: absolute;
  left: -64px;
  top: 1px;
  width: 50px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.ill-approval {
  border-color: rgba(246, 111, 83, 0.45);
}

.ill-who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.ill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ill .dot.needs {
  background: #F66F53;
}

.ill-diff {
  margin: 0;
  padding: 10px 12px;
  overflow-x: auto;
  background: var(--code-bg);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre;
}

.ill-diff .del {
  color: #E08A7A;
}

.ill-diff .add {
  color: #7CC59A;
}

.ill-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ill-actions-start {
  justify-content: flex-start;
}

.ill .btn {
  padding: 5px 12px;
  border: 1px solid #333;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.ill .btn-primary {
  background: #D2CFC1;
  border-color: #D2CFC1;
  color: #1D1F20;
}

.ill-branch code {
  font-size: 14px;
}

.ill-sub {
  margin-top: -6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.ill-files {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid #222;
  list-style: none;
}

.ill-files li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.ill-files span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ill-files b {
  font-weight: 600;
}

.ill-files b.m {
  color: #D9A441;
}

.ill-files b.a {
  color: #7CC59A;
}

.ill-files em {
  font-style: normal;
}

.ill-files em.add {
  color: #7CC59A;
}

.ill-files em.del {
  color: #E08A7A;
}

.ill-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .story {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 48px 0;
  }
  .story:nth-child(even) .story-text {
    order: 0;
  }
}

/* Many agents: a lead and its workers, and the Board that shows them. */
.next {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(152, 108, 27, 0.06), transparent 70%);
}

.next-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.next h2 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.3;
  text-transform: none;
  text-wrap: balance;
}

.next-text > p {
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.next-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  list-style: none;
}

.next-list li {
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.next-list b {
  font-weight: 600;
  color: #D2CFC1;
}

.ill-plan {
  border-color: #4a3d22;
}

.ill-plan-task {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid #222;
}

.ill-plan-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.ill-plan-task b {
  font-size: 15px;
  font-weight: 600;
  color: #D2CFC1;
}

.ill-plan-lead {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ill-plan-where {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ill-plan-tree {
  display: grid;
  gap: 10px;
  margin-left: 3px;
  padding-left: 18px;
  border-left: 1px solid #333;
  list-style: none;
}

.ill-plan-tree li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ill-plan-tree li > span:first-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ill .dot.working {
  background: #D9A441;
}

.ill .dot.done {
  background: #6FB58A;
}

.ill .dot {
  flex-shrink: 0;
}

.ill-plan-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #222;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .next {
    padding: 56px 0;
  }
  .next-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* The film under the intro: a poster with one play button, then the video's own controls. */
.film {
  margin-top: 72px;
}

.film-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #2c2c2c;
  border-radius: 8px;
}

.film-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface);
}

.film-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.film-play[hidden] {
  display: none;
}

.film-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  background: rgba(18, 18, 18, 0.88);
  border: 1px solid var(--accent-gold);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #D2CFC1;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.film-play svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-rust);
}

.film-play:hover .film-play-pill,
.film-play:focus-visible .film-play-pill {
  transform: scale(1.04);
  border-color: #E0B45C;
}

.film-play:focus-visible {
  outline: 2px solid #E0B45C;
  outline-offset: -3px;
}

.film-caption {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  color: var(--text-secondary);
}

/* The Board, drawn: two machines' columns, cards of fixed height, lines in the gutter. */
.next-board {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  margin-top: 72px;
}

.next-board .next-text {
  order: 2;
}

.ill-board {
  gap: 16px;
}

.board-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--text-secondary);
}

.board-arrange {
  display: inline-flex;
  padding: 2px;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
}

.board-arrange > * {
  padding: 2px 9px;
  border-radius: 4px;
  font-weight: 400;
}

.board-arrange b {
  background: var(--surface-alt);
  font-weight: 500;
  color: #D2CFC1;
}

.board-counts {
  display: inline-flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.board-counts > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.board-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
}

.board-col {
  display: grid;
  grid-template-rows: 22px 56px 56px;
  gap: 8px;
  min-width: 0;
}

.board-col-head {
  align-self: end;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.board-card {
  position: relative;
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding: 0 12px;
  background: #181818;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
}

.board-card.is-lead {
  border-color: #4a3d22;
}

.board-card.is-needs {
  border-color: rgba(246, 111, 83, 0.45);
}

/* A worker on the lead's own machine hangs under it. */
.board-card.is-worker::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 15px;
  height: 8px;
  border-left: 1.5px solid #3a3a3a;
}

.board-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12.5px;
  color: var(--text-primary);
}

.board-card-title > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-card-meta {
  padding-left: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
}

.board-lines {
  width: 36px;
  height: 150px;
  overflow: visible;
}

.board-lines path {
  fill: none;
  stroke-width: 1.5;
}

.board-lines .working {
  stroke: #D9A441;
}

.board-lines .needs {
  stroke: #F66F53;
}

@media (prefers-reduced-motion: reduce) {
  .film-play-pill {
    transition: none;
  }
}

@media (max-width: 768px) {
  .film {
    margin-top: 48px;
  }
  .next-board {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 56px;
  }
  .next-board .next-text {
    order: 0;
  }
}

@media (max-width: 480px) {
  .ill-board {
    padding: 14px;
  }
  .board-cols {
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
  }
  .board-lines {
    width: 16px;
  }
  .board-card {
    padding: 0 8px;
  }
  .board-card-title {
    gap: 6px;
    font-size: 11.5px;
  }
  .board-card-meta {
    padding-left: 14px;
    font-size: 9.5px;
  }
}
