/*
 * Landing split sections: the multiplayer phrase/chat split (#multiplayer),
 * the parallel-lanes split (#parallel), and the compounding/share split
 * (#compound). Palette and type come from site-tokens.css. All motion is
 * gated behind prefers-reduced-motion: no-preference; the settled states
 * carry the full information.
 */

/* ── Generic two-column split ─────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.split-copy .sec-title {
  max-width: none;
  margin: 0;
  text-align: left;
}
.split-copy .eyebrow-mono {
  justify-content: flex-start;
  margin-bottom: 14px;
}
.split-line {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 42ch;
}
/* The small CTA closing the copy column. */
.split-cta {
  margin-top: 22px;
}
/* #stack — the connected-tools card standing alone under its head. */
.stack-card {
  margin-top: clamp(28px, 3.4vw, 44px);
}
.btn-sm {
  height: 34px;
  padding: 0 15px;
  font-size: 13.5px;
}
@media (max-width: 880px) {
  .split,
  .split.split-rev {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* Every stacked split leads with its copy: the headline frames the visual
     that follows. Consistent with #multiplayer and #compound, and stops
     #parallel (a plain .split, visual-first in the DOM for its desktop left
     placement) from opening with a context-less board on a phone. */
  .split-copy {
    order: -1;
  }
  .split-visual {
    order: 0;
  }
  /* Let the single-column grid tracks shrink below their content's intrinsic
     width so no child forces the section past the viewport (body clips
     overflow-x, so any excess would silently crop copy). */
  .split-copy,
  .split-visual {
    min-width: 0;
  }
}

/* ── Multiplayer: two big phrases + the chat ─────────────────────────────── */
.mp-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  margin-top: 40px;
}
.mp-phrases {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mp-phrase {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.22;
  font-weight: 300;
  letter-spacing: -0.015em;
  color: var(--ink-subtle);
  max-width: 16ch;
  text-wrap: balance;
}
.mp-phrase.is-strong {
  color: var(--ink-strong);
  font-weight: 440;
}
@media (max-width: 880px) {
  .mp-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .mp-phrase {
    max-width: none;
  }
}

/* ── Full-screen section rhythm — each story owns a viewport ─────────────── */
/* Desktop-only (>=881px) on purpose: on a phone these sections stack to their
   natural (tall) content height. Scrolling is fully free — no scroll-snap:
   snapping fights momentum and reads as the page "locking" mid-scroll. */
@media (min-width: 881px) {
  #multiplayer,
  #parallel,
  #compound,
  #stack {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ── Share dialog mock (#compound) ────────────────────────────────────────── */
.share-mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 24px 60px -36px rgba(26, 24, 21, 0.28);
}
.shm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
/* The live learnings counter riding the card head (scripts.njk ticks it). */
.shm-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-subtle);
  white-space: nowrap;
}
.shm-count b {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
/* A fresh learning sliding in at the top of the list. */
.feat-row.cl-enter {
  animation: cl-in 0.5s var(--ease-entrance, ease);
}
@keyframes cl-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.shm-head .av {
  width: 34px;
  height: 34px;
}
.shm-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-strong);
}
.shm-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-subtle);
}
.shm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.shm-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.shm-row .face {
  width: 30px;
  height: 30px;
}
.shm-name {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
}
.shm-role {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--action-text);
  background: var(--action);
  border-radius: 999px;
  padding: 4px 10px;
}
.shm-role-use {
  color: var(--ink-muted);
  background: var(--panel);
  border: 1px solid var(--line-strong);
}
.shm-invite .shm-name {
  color: var(--ink-subtle);
  font-weight: 400;
}

.shm-plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-subtle);
}
.shm-plus svg {
  width: 14px;
  height: 14px;
}


/* ── Swap groups (shared by #parallel and #compound) ─────────────────────── */
.swap-panel {
  display: none;
}
.swap-panel.active {
  display: block;
}
.acol-tabs,
.feat-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 2px;
  margin-bottom: 18px;
}
.acol-tabs .chat-tab {
  padding: 6px 12px;
  font-size: 12.5px;
  white-space: nowrap;
}
.feat-tabs .chat-tab {
  padding: 7px 16px;
  font-size: 13.5px;
  white-space: nowrap;
}
/* On phones the tabs get the full page width but there are 4–5 of them; let the
   row wrap (like the multiplayer .chat-tabs) instead of a nowrap row whose last
   tab ("Support Rep" / "Permissions") clips off-screen. Placed AFTER the base
   nowrap rule so it wins the cascade at equal specificity. */
@media (max-width: 880px) {
  .acol-tabs,
  .feat-tabs {
    flex-wrap: wrap;
  }
}

/* ── One agent's kanban column (#parallel) — every card is a chat ────────── */
.acol-demo {
  max-width: none;
}
/* The column wears the app's own recessed tone (the gutter) with the real
   white cards on top, exactly like Mission Control. */
.acol {
  background: var(--app-gutter);
  border: 1px solid var(--app-line);
  border-radius: 16px;
  padding: 14px;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05),
    0 32px 64px -22px rgba(0, 0, 0, 0.18),
    0 64px 120px -48px rgba(0, 0, 0, 0.22);
}
.acol .tcard {
  margin-bottom: 8px;
}
.acol-more {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-subtle);
  padding-top: 6px;
}
.acol-h {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-strong);
  padding: 2px 4px 12px;
}
.acol-h .av {
  width: 22px;
  height: 22px;
}
.acol-n {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-subtle);
}
.ast {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.ast-run { background: var(--app-warning); }
.ast-need { background: var(--app-danger); }
.ast-done { background: var(--app-success); }
@media (prefers-reduced-motion: no-preference) {
  .ast-run {
    animation: lane-blink 2.2s infinite var(--ease-standard);
  }
}
@keyframes lane-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ── Feature views of one agent (#compound) ──────────────────────────────── */
.feat-demo {
  max-width: none;
}
.feat-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 30px 32px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05),
    0 32px 64px -22px rgba(0, 0, 0, 0.16),
    0 64px 120px -48px rgba(0, 0, 0, 0.2);
}
/* Scaled-up interior: the card is the section's hero, everything reads from
   two meters away. */
.feat-card .shm-head {
  gap: 14px;
  padding-bottom: 18px;
}
.feat-card .shm-head .av {
  width: 42px;
  height: 42px;
}
.feat-card .shm-count {
  font-size: 12.5px;
}
/* Rows as cards: each learning/skill is its own bordered card, matching the
   file-gallery language. The panel stacks them with gaps instead of rules. */
.feat-card .swap-panel.active {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
}
.feat-card .feat-row {
  padding: 14px 16px;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.feat-card .feat-row,
.feat-card .feat-row:last-child {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.feat-card .feat-note {
  font-size: 15px;
}
.feat-card .face {
  width: 26px;
  height: 26px;
}
.feat-card .feat-when {
  font-size: 12px;
}
.feat-card .skill-logos svg {
  width: 18px;
  height: 18px;
}
/* When a learning was taught — quiet date before the teacher's face. */
.feat-when {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ink-subtle);
  white-space: nowrap;
}
.feat-when ~ .face,
.feat-when ~ .feat-faces {
  margin-left: 0;
}
/* The tools a skill drives — real marks, right-aligned. */
.skill-logos {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.skill-logos svg {
  width: 15px;
  height: 15px;
}
/* The context gallery — team files as tiles, not a list. */
.file-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.file-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 7px 7px 11px;
  display: flex;
  flex-direction: column;
  background: var(--card);
}
/* Preview thumbnail: a quiet gray stage with a miniature of the file itself
   (page with text lines / mini spreadsheet / folder) and a type badge. */
.file-prev {
  position: relative;
  height: 76px;
  border-radius: 9px;
  background: var(--panel);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.fp-page {
  width: 42px;
  height: 54px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.fp-page i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #dcdcdc;
}
.fp-page i:last-child {
  width: 60%;
}
.fp-sheet {
  padding: 0;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 11px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 14px 100%,
    #fff;
}
.fp-folder {
  position: relative;
  width: 48px;
  height: 34px;
  background: var(--panel-raised);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.fp-folder::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 22px;
  height: 8px;
  background: inherit;
  border-radius: 4px 4px 0 0;
}
.fp-badge {
  position: absolute;
  right: 7px;
  bottom: 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--ink-strong);
  color: #fff;
  border-radius: 5px;
  padding: 2.5px 6px;
}
.file-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  padding: 10px 6px 0;
}
.file-meta {
  font-size: 11px;
  color: var(--ink-subtle);
  padding: 2px 6px 0;
}
@media (max-width: 520px) {
  .file-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.feat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.feat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.feat-note {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}
.feat-meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-subtle);
  white-space: nowrap;
}
.feat-faces {
  margin-left: auto;
  display: inline-flex;
}
.feat-faces .feat-face {
  margin-left: -6px;
}
.feat-faces .feat-face:first-child {
  margin-left: 0;
}
.feat-face {
  width: 22px;
  height: 22px;
  margin-left: auto;
  box-shadow: none;
  font-size: 10px;
  flex-shrink: 0;
}
.feat-logo {
  display: flex;
  flex-shrink: 0;
}
.feat-logo svg {
  width: 16px;
  height: 16px;
}
.feat-chip {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: #1b6b3a; /* forest, AA on the tint below */
  background: rgba(0, 162, 64, 0.1);
  border-radius: 999px;
  padding: 3px 9px;
}

.tc-head .ast {
  margin-top: 0;
  margin-left: 6px;
  align-self: center;
}
