/* Palette follows dashboard/src/app.css: chroma is reserved for state colors. */
:root {
  color-scheme: dark;
  --bg: #14141d;
  --bg-card: #1b1b27;
  --line: #2b2b3a;
  --fg: #d7dae6;
  --fg-dim: #6d7186;
  --c-idle: #8089a6;
  --c-thinking: #7fd4e8;
  --c-tool_running: #f2d27c;
  --c-waiting_permission: #c9a2f5;
  --c-waiting_input: #98df9a;
  --c-done: #7fe3c5;
  --muted: #a4a8bc;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans",
    "Noto Sans CJK JP", "Yu Gothic", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Mono",
    monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
}

a,
a:visited {
  color: var(--c-thinking);
  overflow-wrap: anywhere;
}

a:focus-visible {
  outline: 3px solid var(--c-thinking);
  outline-offset: 3px;
  border-radius: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
}

h2,
h3,
.lead {
  text-wrap: balance;
  word-break: auto-phrase;
}

h2 {
  scroll-margin-top: 1.5rem;
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.wrap {
  width: min(100%, 68rem);
  margin: 0 auto;
  padding: 0 1rem;
}

.block {
  padding-top: clamp(4rem, 12vh, 8rem);
}

.intro {
  max-width: 42rem;
  margin: 0 0 2.5rem;
  color: var(--muted);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.1rem 1rem;
  padding-top: 0.5rem;
  font-size: 0.9rem;
}

.topbar a,
.topbar a:visited {
  color: var(--fg);
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
}

.note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 2.5rem);
}

.hero h1 {
  margin: 0;
  font-size: 1rem;
}

.hero h1 img {
  width: min(100%, 34rem);
}

.lead {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(1.5rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin: 0.75rem 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.badge,
.badge:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.badge:hover {
  border-color: var(--c-idle);
}

.badge svg {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
}

.notices {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}

.notice {
  margin: 0;
  padding: 0.45rem 0.75rem;
  border-left: 3px solid var(--c-idle);
  background: var(--bg-card);
  font-size: 0.85rem;
  line-height: 1.45;
}

.notice.warn {
  border-left-color: var(--c-tool_running);
}

/* State scene: the stage is plain sticky CSS; site.js only moves between scenes. */
.scene {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.stage {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 0.5rem 0;
  background: var(--bg);
}

.frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;

}

.frame img {
  width: 100%;
  transition: transform 0.8s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.stage[data-scene="thinking"] .frame { border-color: var(--c-thinking); }
.stage[data-scene="idle"] .frame { border-color: var(--c-idle); }
.stage[data-scene="permission"] .frame { border-color: var(--c-waiting_permission); }
.stage[data-scene="all"] .frame { border-color: var(--c-done); }

.stage[data-scene="thinking"] img { transform: scale(2) translate(25%, 25%); }
.stage[data-scene="idle"] img { transform: scale(2) translate(1.75%, 25%); }
.stage[data-scene="permission"] img { transform: scale(2) translate(1.75%, -16%); }

.stage figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.steps {
  display: grid;
}

.step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62vh;
  padding: 1rem 0;
}

.step .label {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
}

.step h3 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.step p {
  margin: 0;
  color: var(--muted);
}

.step.on p {
  color: var(--fg);
}

.label.thinking { color: var(--c-thinking); }
.label.idle { color: var(--c-idle); }
.label.permission { color: var(--c-waiting_permission); }
.label.all { color: var(--c-done); }

/* Features, use cases, screens */
.cards {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards li {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
}

.cards p {
  margin: 0;
  color: var(--muted);
}

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

.uses li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.uses h3 {
  font-size: 1.3rem;
}

.uses p {
  margin: 0;
  color: var(--muted);
}

.screens {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.screens figure {
  margin: 0;
}

.screens img {
  border: 1px solid var(--line);
  border-radius: 10px;
}

.screens figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.diagram {
  margin: 2rem 0 0;
}

.diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram .wide {
  display: none;
}

.diagram .narrow {
  max-width: 26rem;
}

.diagram figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.diagram text {
  font-family: var(--font);
}

.d-t { fill: var(--fg); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
.d-b { font-weight: 600; }
.d-m { fill: var(--muted); }
.d-k { fill: var(--c-idle); font-family: var(--mono) !important; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
.d-box, .d-chip { fill: var(--bg-card); stroke: var(--line); }
.d-box .d-t, .d-chip .d-t { stroke: none; }
.d-host { fill: none; stroke: var(--line); }
.d-chip-d { fill: var(--bg-card); stroke: var(--c-idle); stroke-dasharray: 4 3; }
.d-line { fill: none; stroke: var(--c-idle); stroke-width: 1.5; }
.d-dash { fill: none; stroke: var(--c-idle); stroke-width: 1; stroke-dasharray: 5 4; opacity: 0.7; }
.d-head, .d-node { fill: var(--c-idle); }

.start {
  padding-bottom: 4rem;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Section indicator. Visible by default; site.js hides it near the hero and
   footer only from an observer callback. */
.toc {
  display: none;
  position: fixed;
  top: 50%;
  right: 0.75rem;
  z-index: 2;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
}

.toc ol {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 2.25rem;
  height: 1rem;
  border-radius: 3px;
}

.toc a::after {
  content: "";
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--fg-dim);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.toc a:hover::after,
.toc a[aria-current="true"]::after {
  transform: scaleX(1.8);
  background: var(--c-thinking);
}

.toc span {
  position: absolute;
  right: 2.75rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--fg);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.toc a:hover span,
.toc a:focus-visible span {
  opacity: 1;
}

.toc.off {
  opacity: 0;
  visibility: hidden;
}

/* Motion changes position only: an absent callback cannot dim the content. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @supports (animation-timeline: view()) {
    .rise {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }

    @keyframes rise {
      from {
        transform: scale(0.94) translateY(1.5rem);
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .toc,
  .toc a::after,
  .toc span,
  .frame,
  .frame img,
  .reveal {
    transition: none;
  }
}

@media (max-height: 500px) {
  .stage {
    position: static;
  }

  .step {
    min-height: 0;
  }
}

@media (min-width: 48rem) {
  .notices {
    grid-template-columns: 1fr 1fr;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .wrap {
    width: min(100% - 5rem, 68rem);
    margin-left: max(1rem, calc((100% - 68rem) / 2 - 1.5rem));
    margin-right: auto;
  }

  .toc {
    display: block;
  }

  .screens {
    grid-template-columns: 2.4fr 1fr;
  }

  .cards.four,
  .uses.two {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60rem) {
  .scene {
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
  }

  .cards.four {
    grid-template-columns: repeat(4, 1fr);
  }

  .diagram .wide {
    display: block;
  }

  .diagram .narrow {
    display: none;
  }

  .stage {
    top: 12vh;
  }

  .step {
    min-height: 80vh;
  }
}

/* A quiet frame around the product; state colors remain the only accents. */
.skip {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  z-index: 5;
  padding: 0.4rem 0.8rem;
  background: var(--bg-card);
  transform: translateY(-150%);
}
.skip:focus { transform: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 3.5rem;
  align-items: center;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
h2 { scroll-margin-top: 5rem; }
.wrap { max-width: 76rem; }
.hero {
  display: grid;
  grid-template-areas: "copy" "notices" "preview";
  align-content: center;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  min-height: calc(100svh - 3.5rem);
}
.hero-copy { grid-area: copy; min-width: 0; }
.hero h1 img { width: min(100%, 20rem); }
.lead { margin: 1.25rem 0; font-size: clamp(1.65rem, 3.3vw, 2.75rem); line-height: 1.25; }
.lead-sub { margin: -0.5rem 0 1rem; font-size: 1.05rem; line-height: 1.4; color: var(--muted); }
.actions { gap: 0.75rem 1.1rem; font-size: 0.95rem; }
.actions a:not(.badge) { text-underline-offset: 0.3em; }
.hero .notices { grid-area: notices; margin: 0; }
.notice { background: none; padding-left: 0.8rem; }
.hero-preview {
  grid-area: preview;
  align-self: center;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 24px 64px #0003;
}
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 0.7rem 0.9rem; }
.preview-bar span { width: 6px; height: 6px; background: var(--c-idle); border-radius: 50%; }
.preview-bar b { margin-left: auto; font: 0.7rem var(--mono); color: var(--muted); font-weight: 400; }
.hero-preview figcaption { font-size: 0.75rem; color: var(--muted); padding: 0.65rem 0.9rem; }
.block { padding-top: clamp(4.5rem, 10vw, 8rem); }
.eyebrow { display: flex; gap: 0.65rem; align-items: center; margin: 0 0 1.25rem; color: var(--muted); font: 0.8rem var(--mono); letter-spacing: 0.06em; }
.eyebrow span { color: var(--fg); }
.intro { max-width: 46rem; }
.stage { top: 3.5rem; }
.step { min-height: 55vh; }
.step .label { margin-bottom: 0.75rem; }
.step p { margin-top: 0.75rem; }
.cards { gap: 1px; padding: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
.cards li { border: 0; border-radius: 0; padding: 1.6rem; }
.cards h3 { margin-bottom: 0.8rem; }
.cards.four { background: none; padding: 0; gap: 0.75rem; }
.cards.four li { border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; }
.uses { counter-reset: use; gap: 1.75rem 2.5rem; }
.uses li { counter-increment: use; padding-top: 1.5rem; }
.uses li::before { content: "0" counter(use); display: block; color: var(--muted); font: 0.8rem var(--mono); margin-bottom: 1rem; }
.uses h3 { margin-bottom: 0.75rem; }
.uses .director::before { color: var(--c-thinking); }
.diagram { padding: 1.25rem 0; border-block: 1px solid var(--line); }
.diagram .narrow { margin-inline: auto; }
.screens { gap: 1.5rem; }
.start { padding-bottom: 5rem; }
.toc a { width: 2.75rem; height: 1.75rem; }
.toc a::after { background: var(--muted); }
.toc.off:focus-within { opacity: 1; visibility: visible; }

@media (min-width: 48rem) {
  .wrap { width: min(100% - 6rem, 76rem); margin-left: max(1.5rem, calc((100% - 76rem) / 2)); }
  .toc { right: 1rem; }
  .cards:not(.four) { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .hero { grid-template-areas: "copy preview" "notices notices"; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; }
  .hero-preview { transform: none; }
  .hero-copy { padding-block: 1rem; }
  .stage { top: 7rem; }
  .step { min-height: 65vh; }
}
@media (prefers-reduced-motion: reduce) {
  .stage img, .hero-preview, .rise, .reveal { transform: none !important; animation: none !important; }
}
@media (max-height: 500px) {
  .stage { position: static; }
  .step { min-height: 0; }
}
@media (max-width: 47.99rem) {
  .topbar { font-size: 0.78rem; gap: 0.25rem 0.8rem; }
  .hero { padding-top: 1.5rem; gap: 1rem; }
  .hero h1 img { width: 15rem; }
  .lead { font-size: 1.5rem; line-height: 1.3; margin-block: 1rem; }
  .hero .actions { margin-bottom: 0; }
}

/* In a single column a pinned screenshot would cover the explanation. */
@media (max-width: 59.99rem) {
  .stage { position: static; }
  .step { min-height: 0; padding-block: 2rem; border-bottom: 1px solid var(--line); }
}

.intro-film { scroll-margin-top: 5rem; }
.intro-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.intro-film figcaption { padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.film-play, .film-play:visited { display: flex; align-items: center; gap: 1rem; color: var(--fg); text-decoration: none; }
.play-icon { display: grid; place-items: center; flex: 0 0 3rem; height: 3rem; border-radius: 50%; background: var(--c-thinking); color: var(--bg); font-size: 1.1rem; }
.film-play strong { display: block; font-size: clamp(1rem, 1.7vw, 1.3rem); }
.film-play small { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.75rem; }
.film-play:hover .play-icon { background: var(--fg); }
.film-note { margin: 0.75rem 0 0; font-size: 0.7rem; color: var(--muted); }
.film-jump { margin: 0 0 1rem; font-size: 0.95rem; font-weight: 600; }
.film-jump a { text-underline-offset: 0.35em; }
@media (min-width: 48rem) {
  .hero { grid-template-areas: "copy preview" "notices notices"; grid-template-columns: 1fr 1.2fr; gap: 2rem; }
}
@media (max-width: 47.99rem) {
  .hero h1 img { width: 13rem; }
  .hero .lead { font-size: 1.375rem; line-height: 1.25; margin-block: 0.75rem; }
  .film-jump { margin-bottom: 0.5rem; font-size: 0.9rem; }
  .intro-film figcaption { padding: 0.85rem 1rem; }
}

/* Subpages (issue 1058). */
.topbar a[aria-current="page"] { color: var(--c-thinking); }
.page-head { padding-top: clamp(2.5rem, 7vw, 5rem); }
.page-head h1 { margin: 0 0 1rem; font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -0.02em; }
.page-head .lead { max-width: 46rem; margin: 0; color: var(--muted); font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-weight: 400; line-height: 1.5; }
.eyebrow a, .eyebrow a:visited { color: var(--fg); }
.cards h3 a { text-decoration: none; }
.cards h3 a:hover { text-decoration: underline; }
.cards h3 small { color: var(--muted); font-size: 0.8em; font-weight: 400; }
.cards.three { grid-template-columns: 1fr; }
.notice.future { margin: 0 0 1.5rem; border-left-color: var(--c-waiting_permission); font-size: 0.95rem; }
.notice.warn + .intro, .notice + .path, .notice + .cards { margin-top: 1.5rem; }
.path { max-width: 46rem; margin: 1.5rem 0 0; padding-left: 1.5rem; }
.path li { margin-bottom: 0.6rem; padding-left: 0.25rem; }
.path li::marker { color: var(--muted); font-family: var(--mono); }
.table-wrap { margin: 1rem 0 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.table-wrap:focus-visible { outline: 3px solid var(--c-thinking); outline-offset: 3px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.55; }
.table-wrap table.wide { min-width: 36rem; }
.table-wrap th, .table-wrap td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap thead th { background: var(--bg-card); color: var(--muted); font-weight: 600; }
.table-wrap tbody th { font-weight: 600; }
.table-wrap th:first-child { white-space: nowrap; }
.table-wrap small { color: var(--muted); }
.diagram.stack svg { max-width: 30rem; margin-inline: auto; }
.d-out { fill: none; stroke: var(--fg-dim); stroke-dasharray: 6 4; }
.d-future { fill: none; stroke: var(--c-waiting_permission); stroke-dasharray: 8 5; }
.d-future-chip { fill: var(--bg-card); stroke: var(--c-waiting_permission); stroke-dasharray: 5 4; }
.next { padding-bottom: 1rem; }
.next .next-title { font-size: 1.3rem; }
@media (min-width: 48rem) {
  .cards.three { grid-template-columns: repeat(3, 1fr); }
}

/* Features page: three article layouts (split, stack, card) under .features-page. */
.features-page .block {
  padding-top: clamp(4rem, 9vw, 7rem);
}
.features-page h2, .feature {
  scroll-margin-top: 9rem;
}
.feature-top {
  display: grid;
  gap: 2rem 3rem;
}
.feature-top-shot {
  margin: 0;
}
.feature-top-shot img {
  border: 1px solid var(--line);
  border-radius: 12px;
}
.feature-top-shot figcaption, .feature-media figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.feature-index ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: feature-index;
}
.feature-index li {
  counter-increment: feature-index;
}
.feature-index a, .feature-index a:visited {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  height: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--fg);
  text-decoration: none;
  line-height: 1.45;
}
.feature-index a::before {
  content: "0" counter(feature-index);
  flex: none;
  color: var(--c-thinking);
  font: 0.8rem var(--mono);
}
.feature-index a:hover {
  border-color: var(--c-thinking);
}
.feature {
  display: grid;
  gap: 1.5rem 3.5rem;
  padding-block: 2.75rem;
  border-top: 1px solid var(--line);
}
.feature h3 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.35;
}
.feature-copy {
  max-width: 44rem;
}
.feature-main, .feature-support {
  margin: 0;
}
.feature-support {
  margin-top: 0.8rem;
  color: var(--muted);
}
.feature-media {
  margin: 0;
  min-width: 0;
}
.feature-media .table-wrap {
  margin: 0;
}
.plate {
  display: grid;
  justify-items: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
}
.plate img {
  border-radius: 6px;
}
.plate.scroll {
  overflow-x: auto;
}
.shot.phone img {
  width: min(100%, 17.5rem);
}
.feature-media-row {
  display: grid;
  gap: 1.5rem;
}
.face-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.face-strip li {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 1rem 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--tone);
  border-radius: 12px;
  background: var(--bg-card);
  text-align: center;
  --tone: var(--c-idle);
}
.face-strip li[data-state="thinking"] { --tone: var(--c-thinking); }
.face-strip li[data-state="waiting_permission"] { --tone: var(--c-waiting_permission); }
.face-strip strong {
  margin-top: 0.4rem;
  color: var(--tone);
}
.face-strip span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.face-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  text-align: center;
}
.face-pair p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.face-pair .arrow {
  color: var(--fg-dim);
  font-size: 1.5rem;
}
.flow {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
.flow li {
  position: relative;
  padding: 1.25rem 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  counter-increment: flow;
}
.flow li::before {
  content: "0" counter(flow);
  display: block;
  margin-bottom: 0.6rem;
  color: var(--c-thinking);
  font: 0.8rem var(--mono);
}
.flow li + li::after {
  content: "↓";
  position: absolute;
  top: -1.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--fg-dim);
}
.flow strong {
  display: block;
  font-size: 1.1rem;
}
.flow p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1.25rem;
  align-items: start;
  padding-block: 2.75rem;
  border-top: 1px solid var(--line);
}
.feature.card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.feature.card .plate {
  background: var(--bg);
}
@media (max-width: 47.99rem) {
  .plate.scroll {
    justify-items: start;
  }
  .plate.scroll img {
    width: 34rem;
    max-width: none;
  }
}
@media (min-width: 48rem) {
  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
  .flow li + li::after {
    content: "→";
    top: 50%;
    left: -1.75rem;
    transform: translateY(-50%);
  }
  .feature-media-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
  }
}
@media (min-width: 60rem) {
  .feature-top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
  }
  .feature-index {
    grid-column: 1 / -1;
  }
  .feature.split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
  }
  .feature.split.flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .feature.split.flip > .feature-media {
    order: -1;
  }
}
