/* ==========================================================================
   resesh — brand stylesheet
   Monospace, lowercase, no border radius anywhere. Tokens below are the
   whole palette; both themes are defined here and nowhere else.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #08150f;
  --bg2: #0b1e16;
  --panel: #0e2620;
  --line: #1d3b31;
  --line2: #2a5548;
  --ink: #dfeae4;
  --ink2: #9db3a8;
  --ink3: #6b8479;
  --accent: #3fd68a;
  --accent-ink: #05170e;
  --amber: #e0b341;

  --grid-opacity: 0.35;
  --hover-ease: 140ms ease;
}

/* Light theme: applied on explicit choice, or by system preference when the
   visitor has not chosen. --ink3 and --accent are darkened rather than
   inverted so small text clears 4.5:1 on both --bg and --bg2. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;

    --bg: #f1f3ef;
    --bg2: #e8ece7;
    --panel: #ffffff;
    --line: #d3dad2;
    --line2: #b9c4b8;
    --ink: #15241d;
    --ink2: #4d635a;
    --ink3: #57685f;
    --accent: #10794a;
    --accent-ink: #ffffff;
    --amber: #9a6b10;

    --grid-opacity: 0.5;
  }
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f1f3ef;
  --bg2: #e8ece7;
  --panel: #ffffff;
  --line: #d3dad2;
  --line2: #b9c4b8;
  --ink: #15241d;
  --ink2: #4d635a;
  --ink3: #57685f;
  --accent: #10794a;
  --accent-ink: #ffffff;
  --amber: #9a6b10;

  --grid-opacity: 0.5;
}

/* --------------------------------------------------------------- base --- */

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  position: relative;
  min-height: 100vh;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--hover-ease), border-color var(--hover-ease), opacity var(--hover-ease);
}

a:hover { color: var(--ink); }

button { transition: color var(--hover-ease), border-color var(--hover-ease); }

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---------------------------------------------------------- structure --- */

.container {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

.container--gutter { padding: 0 40px; }

.section {
  position: relative;
  border-top: 1px solid var(--line);
}

.section--alt { background: var(--bg2); }

/* Decorative hero grid. Sits behind everything; opaque --bg2 sections cover
   it, so it only reads in the transparent hero band. */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--grid-opacity);
  background-image:
    linear-gradient(var(--line2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line2) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(120% 80% at 70% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 80% at 70% 0%, #000 0%, transparent 70%);
}

/* ------------------------------------------------------------- header --- */

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.logo:hover { color: var(--ink); }

.logo__tile {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line2);
  background: var(--panel);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.logo__tile--sm {
  width: 22px;
  height: 22px;
  background: transparent;
  font-size: 11px;
  font-weight: 400;
}

.logo__word {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink2);
}

.nav__link { color: var(--ink2); }
.nav__link:hover { color: var(--ink); }
.nav__link--current { color: var(--ink); }

.theme-toggle {
  padding: 6px 12px;
  border: 1px solid var(--line2);
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--ink3);
}

/* ------------------------------------------------------------ buttons --- */

.btn-fill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14.5px;
  font-weight: 500;
}

.btn-fill:hover {
  color: var(--accent-ink);
  opacity: 0.85;
}

.btn-fill--sm {
  gap: 0;
  padding: 7px 16px;
  font-size: 13px;
}

.btn-fill--cta { padding: 14px 22px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 13px 20px;
  border: 1px solid var(--line2);
  color: var(--ink2);
  font-size: 14.5px;
}

.btn-outline:hover {
  color: var(--ink);
  border-color: var(--ink3);
}

.btn-outline--cta { padding: 14px 20px; }

/* The `$` on primary buttons — a cue, not a label. */
.btn-prompt { opacity: 0.55; }

.btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 64px;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px 40px 72px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  min-width: 0;
}

.hero__title {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -2.5px;
  color: var(--ink);
}

.hero__lede {
  margin: 0;
  max-width: 46ch;
  font-size: 16.5px;
  font-weight: 300;
  color: var(--ink2);
}

.hero__media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink3);
}

.dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.trust-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink3);
}

/* ------------------------------------------- screenshot frames / slots --- */

.frame {
  min-width: 0;
  border: 1px solid var(--line2);
  background: var(--panel);
}

.frame--shadow { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55); }

.frame > img { display: block; width: 100%; height: auto; }
.frame > .session-tree-image { max-height: 560px; object-fit: contain; }

.frame__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink3);
}

.frame__lights {
  display: flex;
  gap: 6px;
}

.frame__lights span {
  width: 8px;
  height: 8px;
  border: 1px solid var(--line2);
}

.frame__caption {
  font-size: 12px;
  color: var(--ink3);
}

.placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background-image: repeating-linear-gradient(135deg, var(--bg2) 0 10px, var(--bg) 10px 20px);
}

.placeholder--4x3 { aspect-ratio: 4 / 3; }

.placeholder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
}

.placeholder--sm .placeholder__inner {
  gap: 6px;
  padding: 14px;
}

.placeholder__tag {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--ink3);
}

.placeholder--sm .placeholder__tag { font-size: 11px; }

.placeholder__desc {
  font-size: 13.5px;
  color: var(--ink2);
}

.placeholder--4x3 .placeholder__desc { font-size: 13px; }
.placeholder--sm .placeholder__desc { font-size: 12px; }

.placeholder__hint {
  font-size: 11.5px;
  color: var(--ink3);
}

.placeholder--empty {
  background-image: none;
}

.placeholder__none {
  font-size: 11.5px;
  color: var(--ink3);
}

/* ---------------------------------------------------- feature summary --- */

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.summary__cell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 40px 36px 44px;
  border-left: 1px solid var(--line);
}

/* Bleed the row to the container edges rather than insetting it. */
.summary__cell:first-child {
  padding-left: 0;
  border-left: 0;
}

.summary__cell:last-child { padding-right: 0; }

.summary__index {
  font-size: 12px;
  color: var(--accent);
}

.summary__title {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.summary__body {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink2);
}

.scrollcue {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink3);
}

.scrollcue__prompt { color: var(--accent); }

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

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

/* An inline keycap sitting inside a sentence. */
.key {
  padding: 2px 6px;
  white-space: nowrap;
  border: 1px solid var(--line2);
  font-size: 11.5px;
  color: var(--ink2);
}

/* ------------------------------------------------------- feature tour --- */

.tour {
  display: flex;
  flex-direction: column;
  gap: 88px;
  padding: 88px 40px;
}

.beat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}

.beat__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.beat__title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1.4px;
  color: var(--ink);
}

.beat__body {
  margin: 0;
  max-width: 50ch;
  font-size: 15.5px;
  font-weight: 300;
  color: var(--ink2);
}

.eyebrow {
  font-size: 12px;
  color: var(--accent);
}

.bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink2);
}

.bullets li {
  position: relative;
  padding-left: 22px;
}

.bullets__mark {
  position: absolute;
  left: 0;
  color: var(--accent);
}

.keycaps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink2);
}

.keycap {
  padding: 5px 10px;
  border: 1px solid var(--line2);
}

.keycaps__note {
  padding: 5px 0 5px 6px;
  color: var(--ink3);
}

.termblock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--bg2);
  font-size: 13px;
  color: var(--ink2);
}

.termblock__prompt { color: var(--accent); }
.termblock__out { color: var(--ink3); }

.tour__more {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.tour__more a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 0;
  font-size: 14.5px;
  color: var(--accent);
}

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

.tour__more .btn-prompt { color: var(--ink3); opacity: 1; }

/* --------------------------------------------------- shared headings --- */

.h2-xl {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1.8px;
  color: var(--ink);
}

.h2-lg {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  letter-spacing: -1.4px;
  color: var(--ink);
}

.h2-md {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -1.2px;
  color: var(--ink);
}

.h2-sm {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -1.1px;
  color: var(--ink);
}

.h2-xs {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--ink);
}

.head-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.lede {
  margin: 0;
  max-width: 58ch;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink2);
}

.lede--narrow { max-width: 44ch; }
.lede--tight { max-width: 40ch; }

.note {
  margin: 0;
  max-width: 66ch;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--ink3);
}

/* ---------------------------------------------------- migration strip --- */

.stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 72px 40px;
}

.stack--tight {
  gap: 24px;
  padding: 64px 40px;
}

/* Cards carry their own borders so empty trailing grid cells stay
   transparent at every column count. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
}

.card__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.card__note {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink3);
}

/* ---------------------------------------------------------- downloads --- */

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 56px;
  padding: 88px 40px;
}

.downloads__copy,
.downloads__list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.downloads__copy { gap: 18px; }
.downloads__list { gap: 12px; }

.downloads__copy .lede {
  max-width: 44ch;
  font-size: 15.5px;
}

.specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink3);
}

.dl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line2);
  color: var(--ink);
}

.dl:hover {
  color: var(--ink);
  border-color: var(--ink3);
}

.dl--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.dl--primary:hover {
  color: var(--accent-ink);
  border-color: var(--accent);
  opacity: 0.85;
}

.dl__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dl__title {
  font-size: 15.5px;
  font-weight: 500;
}

.dl__sub {
  font-size: 12.5px;
  color: var(--ink3);
}

.dl--primary .dl__sub {
  color: inherit;
  opacity: 0.7;
}

.dl__arrow {
  font-size: 18px;
  color: var(--ink3);
}

.dl--primary .dl__arrow { color: inherit; }

/* ---------------------------------------------------------------- faq --- */

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 48px;
  padding: 72px 40px;
}

.faq__intro p {
  max-width: 34ch;
  font-size: 14.5px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.faq__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.faq__q {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}

.faq__a {
  max-width: 70ch;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink2);
}

/* ------------------------------------------------------------- footer --- */

.site-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px;
  border-top: 1px solid var(--line);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink3);
}

.site-footer__links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--ink3);
}

.site-footer__links a { color: var(--ink3); }
.site-footer__links a:hover { color: var(--ink); }

/* ================================================== features page ======= */

.page-head {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 80px 40px 56px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--ink3);
}

.breadcrumb a { color: var(--ink3); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb__sep { color: var(--line2); }

.h1-features {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -2.2px;
  color: var(--ink);
}

.page-head__lede {
  margin: 0;
  max-width: 60ch;
  font-size: 16px;
  font-weight: 300;
  color: var(--ink2);
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink3);
}

.chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
}

/* ------------------------------------------------------- feature list --- */

.list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 48px 40px 72px;
}

.legend {
  margin: 0;
  max-width: 78ch;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--ink3);
}

.legend .badge { display: inline-block; }

.badge {
  padding: 3px 9px;
  border: 1px solid var(--amber);
  font-size: 11px;
  color: var(--amber);
}

.rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px 40px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.row__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.row__label {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.row__index {
  font-size: 12px;
  color: var(--accent);
}

.row--planned .row__index { color: var(--ink3); }

.row__title {
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink);
}

.row__badge { align-self: flex-start; }

.row__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: span 2;
  min-width: 0;
}

.row__text {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink2);
}

.row__text strong {
  font-weight: 300;
  color: var(--ink);
}

.row__bullets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--ink3);
}

.row__media {
  min-width: 0;
  border: 1px solid var(--line2);
  background: var(--panel);
  overflow: hidden;
}

.row__media img,
.row__media video {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}

.screenshot-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.screenshot-trigger img {
  transition: opacity 140ms ease;
}

.screenshot-trigger:hover img {
  opacity: 0.86;
}

.screenshot-popover {
  width: fit-content;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  padding: 36px 12px 12px;
  border: 1px solid var(--line2);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.5);
  overflow: auto;
}

.screenshot-popover::backdrop {
  background: rgb(0 0 0 / 0.78);
}

.screenshot-popover img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  margin: 0 auto;
  object-fit: contain;
}

.screenshot-popover__close {
  position: absolute;
  top: 8px;
  right: 12px;
  padding: 4px 7px;
  border: 1px solid var(--line2);
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.screenshot-popover__close:hover,
.screenshot-popover__close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}
/* A text visual (termblock) in place of a screenshot keeps its own border. */
.row__media--text {
  border: 0;
  background: transparent;
}

.row__media--text .termblock { font-size: 12.5px; }

.termblock__ok { color: var(--accent); }

/* "under the hood" cards: a small accent tag above the name. */
.card__tag {
  font-size: 11.5px;
  color: var(--accent);
}

.row__media--empty {
  border: 1px dashed var(--line2);
  background: transparent;
}

/* Inline worked examples inside a feature row. */
.example {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line2);
  background: var(--panel);
  font-size: 12.5px;
  color: var(--ink3);
}

.example__ok { color: var(--accent); }
.example__bad { color: var(--amber); }

.cmdlist {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line2);
  background: var(--panel);
  font-size: 12.5px;
}

.cmdlist__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

.cmdlist__row:last-child { border-bottom: 0; }

.cmdlist__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.cmdlist__dot--bad { background: var(--amber); }

.cmdlist__cmd {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink2);
}

.cmdlist__status { color: var(--amber); }

.cmdlist__actions {
  display: flex;
  gap: 8px;
  flex: none;
  font-size: 11.5px;
  color: var(--ink3);
}

.cmdlist__chip {
  padding: 2px 8px;
  border: 1px solid var(--line2);
}

/* ---------------------------------------------------------- non-goals --- */

.nongoals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 48px;
  padding: 64px 40px;
}

.nongoals__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.nongoal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 18px;
  border-left: 2px solid var(--amber);
}

.nongoal--soft { border-left-color: var(--line2); }

.nongoal__title {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}

.nongoal__body {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink2);
}

/* ----------------------------------------------------- data locations --- */

.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.path {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
}

.path__label {
  font-size: 14.5px;
  color: var(--ink);
}

.path__value {
  font-size: 12.5px;
  color: var(--ink3);
  word-break: break-all;
}

/* --------------------------------------------------------- bottom cta --- */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 72px 40px;
}

/* ====================================================== front page v2 === */

/* "new" marker: same shape as the amber planned badge, in the accent. */
.badge--new {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-color: var(--accent);
  color: var(--accent);
  font-size: 10.5px;
  vertical-align: 1px;
}

/* Stacked hero: copy on top, the product full width underneath. */
.hero--stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  padding: 88px 40px 64px;
  overflow-x: clip;
}

.hero__copy--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 28px 64px;
  align-items: end;
}

.hero__lead,
.hero__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  min-width: 0;
}

.hero__copy--split .hero__title { max-width: 19ch; font-size: clamp(40px, 4.6vw, 64px); }

.hero__media--wide { position: relative; }

/* A soft accent bloom behind the hero frame; it stays behind the image. */
.frame--glow { position: relative; }

.frame--glow::before {
  content: "";
  position: absolute;
  inset: -12% -3% -18%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60% 55% at 50% 45%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(8px);
}

.frame > video { display: block; width: 100%; height: auto; }

.frame--narrow { justify-self: center; width: min(100%, 308px); }
.frame--narrow > .session-tree-image { max-height: none; }

.summary--four .summary__cell { padding: 36px 30px 40px; }
.summary--four .summary__cell:first-child { padding-left: 0; }
.summary--four .summary__cell:last-child { padding-right: 0; }

/* The spotlight breaks the two-column rhythm for the headline feature. */
.spotlight {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spotlight__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 18px 56px;
  align-items: end;
}

.spotlight__head .beat__body { max-width: 60ch; }

.spotlight .frame {
  width: min(100%, 1026px);
  margin: 0 auto;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 28px 4px 0;
}

.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }

.fact__k {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

.fact__v {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--ink2);
}

.termblock--lg {
  gap: 9px;
  padding: 22px 24px;
  font-size: 13.5px;
}

/* Section head with a trailing link on the same row. */
.head-block--row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}

.link-arrow {
  display: inline-flex;
  gap: 10px;
  font-size: 14px;
}

.link-arrow .btn-prompt { color: var(--ink3); opacity: 1; }

/* Bento: tiles share hairlines by sitting on a --line background. */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 22px 22px 26px;
  background: var(--bg2);
  color: var(--ink);
  transition: background var(--hover-ease);
}

.tile:hover {
  color: var(--ink);
  background: var(--panel);
}

.tile__tag {
  font-size: 11.5px;
  color: var(--accent);
}

.tile__name {
  font-size: 15px;
  font-weight: 500;
}

.tile__note {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink3);
}

.tile:hover .tile__name::after {
  content: " →";
  color: var(--accent);
}

/* Measured numbers. */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 28px 28px 8px 0;
}

.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }

.stat__n {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--accent);
}

.stat__n small {
  margin-left: 4px;
  font-size: 0.42em;
  letter-spacing: 0;
  color: var(--ink3);
}

.stat__k {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

.stat__v {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink3);
}

/* Single-column layouts: row dividers instead of column dividers. */
@media (max-width: 760px) {
  .hero--stacked { padding: 56px 16px 48px; gap: 40px; }
  .site-header { padding: 16px; }
  .container--gutter { padding: 0 16px; }
  .tour { padding: 64px 16px; gap: 64px; }
  .stack, .downloads, .faq { padding-left: 16px; padding-right: 16px; }
  .site-footer { padding: 32px 16px; }
  .summary__cell,
  .summary--four .summary__cell { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .summary__cell:first-child { border-top: 0; }
  .fact + .fact,
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .fact, .stat { padding-right: 0; padding-bottom: 20px; }
  .faq__list { grid-column: auto; }
}

@media (max-width: 1100px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 560px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 18px; }
  .nav__link:not([href="features.html"]) { display: none; }
}

/* The session tree is tall and narrow; show its top half in a feature row. */
.row__media .session-tree-image {
  max-height: 440px;
  object-fit: cover;
  object-position: top left;
}

/* ------------------------------------------------------ demo videos --- */

.demo { position: relative; }

.demo > video { display: block; width: 100%; height: auto; cursor: pointer; }

/* Quiet while playing, visible on hover or focus, prominent while paused. */
.demo__toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 11px;
  border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--hover-ease), color var(--hover-ease), border-color var(--hover-ease);
}

.demo:hover .demo__toggle,
.demo__toggle:focus-visible { opacity: 1; }

.demo__toggle:hover,
.demo__toggle:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.demo__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.demo.is-paused .demo__toggle {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 20px;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 500;
  opacity: 1;
}

.demo.is-paused .demo__toggle:hover { color: var(--accent-ink); opacity: 0.88; }

/* Touch screens have no hover: keep the pause control reachable. */
@media (hover: none) { .demo__toggle { opacity: 0.9; } }
