/*
 * The landing. The chrome uses Loupe's own tokens (web_frontend/src/styles/
 * tokens.css); artboards bring their own palettes, the way they do on a board.
 * Dark is the default, stamped before paint by index.html.
 */
:root {
  color-scheme: light;
  --page: #ffffff;
  --canvas: #f6f6f4;
  --dot: #dededa;
  --chrome: #fafaf9;
  --surface: #ffffff;
  --muted: #f3f3f1;
  --ink: #15171a;
  --ink-soft: #5b5f66;
  --ink-faint: #686c72;
  --line: #e8e8e5;
  --line-strong: #d8d8d4;
  --accent: #3157d5;
  --accent-soft: #e8edff;
  --accent-ink: #ffffff;
  --lime: #c9ff5a;
  --lime-text: #4e6910;
  --lime-bg: #ebffc0;
  --coral: #ff705d;
  --flag: #b23a27;
  --flag-bg: #ffd9d0;
  --lens: #56710f;
  --frame-shadow: 0 0 0 1px rgb(21 23 26 / 9%), 0 4px 10px rgb(21 23 26 / 6%);

  --agent-amber: #ffc45a;
  --agent-amber-ink: #4a2f00;
  --agent-blue: #5aa9ff;
  --agent-blue-ink: #06274d;
  --agent-violet: #b18bff;
  --agent-violet-ink: #2a1258;

  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --z-ptr: 20;
  --z-nav: 40;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #121316;
  --canvas: #0d0e10;
  --dot: #26282d;
  --chrome: #1a1c20;
  --surface: #202226;
  --muted: #1a1c20;
  --ink: #f1f1ec;
  --ink-soft: #abafb6;
  --ink-faint: #878b93;
  --line: #2e3138;
  --line-strong: #3a3e45;
  --accent: #7b95f0;
  --accent-soft: #232b48;
  --accent-ink: #0e1430;
  --lime-text: #cff56a;
  --lime-bg: #2a3a0e;
  --flag: #ff8a7a;
  --flag-bg: #3a1e19;
  --lens: #c9ff5a;
  --frame-shadow: 0 0 0 1px rgb(255 255 255 / 6%), 0 6px 12px rgb(0 0 0 / 35%);
}

:root[data-theme-switching] * {
  transition: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Anchors land below the sticky header. */
  scroll-padding-top: 4rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: calc(var(--z-nav) + 1);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--page);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

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

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ─── Nav ─────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.nav[data-scrolled="true"] {
  border-bottom-color: var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  height: 4rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.mark svg {
  width: 1.5rem;
  height: 1.5rem;
}

.beta {
  margin-left: 0.15rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}

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

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1.25rem;
}

.nav-mcp {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}

.nav-mcp:hover,
.nav-mcp[aria-current="page"] {
  border-color: var(--ink);
}

/* Products: what Loupe makes, each a section further down. */
.nav-prod {
  position: relative;
}

.nav-prod summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  list-style: none;
  cursor: pointer;
}

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

.nav-prod summary svg {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.2s var(--ease);
}

.nav-prod summary:hover,
.nav-prod[open] summary {
  color: var(--ink);
}

.nav-prod[open] summary svg {
  transform: rotate(180deg);
}

.nav-prod ul {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: -0.75rem;
  z-index: 1;
  display: grid;
  width: 20rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / 22%);
}

.nav-links .nav-prod a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.65rem;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}

.nav-links .nav-prod a:hover {
  background: var(--muted);
}

.nav-prod-i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9px;
  background: var(--muted);
  color: var(--ink);
}

.nav-prod a:hover .nav-prod-i {
  background: var(--lime);
  color: #15171a;
}

.nav-prod-i svg {
  width: 1.15rem;
  height: 1.15rem;
}

.nav-prod b {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.nav-menu-h {
  padding: 0.6rem 0.75rem 0.25rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Below 56rem the links fold into this. */
.nav-menu {
  position: relative;
  display: none;
}

.nav-menu summary {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  list-style: none;
  cursor: pointer;
}

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

.nav-menu summary svg {
  width: 1rem;
  height: 1rem;
}

.nav-menu[open] summary {
  color: var(--ink);
  border-color: var(--line-strong);
}

.nav-menu ul {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 1;
  display: grid;
  min-width: 12rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 6px 8px -4px rgb(0 0 0 / 18%);
}

.nav-menu a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-menu a:hover {
  background: var(--muted);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

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

/* ─── Buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 0.9375rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease), background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--lime);
  color: #15171a;
}

.btn-dark {
  background: var(--ink);
  color: var(--page);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink-faint);
}

.btn-sm {
  min-height: 2.5rem;
  padding: 0 1.1rem;
  font-size: 0.8125rem;
}

/* ─── Shared type ─────────────────────────────────────────────────── */

.h2 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* One word in a heading gets the lime marker; in dark, the word turns lime. */
.hero h1 em,
.h2 em {
  position: relative;
  z-index: 0;
  display: inline-block;
  font-style: normal;
}

.hero h1 em::after,
.h2 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 1%;
  bottom: 0.04em;
  left: -1%;
  height: 0.16em;
  background: var(--lime);
  transform: rotate(-0.8deg);
}

:root[data-theme="dark"] .hero h1 em,
:root[data-theme="dark"] .h2 em {
  color: var(--lime);
}

:root[data-theme="dark"] .hero h1 em::after,
:root[data-theme="dark"] .h2 em::after {
  display: none;
}

.lede {
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.lede b {
  font-weight: 650;
  color: var(--ink);
}

.sec {
  padding-block: clamp(4.5rem, 3rem + 7vw, 9rem);
}

.sec-head {
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
}

/* A section that answers something a visitor would ask: the question, as
   they would put it, sits above the answer. */
.ask {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.8rem 0.35rem 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

.ask::before {
  content: "?";
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--muted);
  font-weight: 500;
  color: var(--ink);
}

/* What you type to your agent. A terminal line, because that is where it is
   typed; the agent it goes to is named, never implied. */
.say {
  display: grid;
  gap: 0.45rem;
  max-width: 36rem;
}

.say-who {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.say-who svg {
  width: 0.85rem;
  height: 0.85rem;
}

.say-line {
  display: flex;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem);
  line-height: 1.55;
  color: var(--ink);
}

.say-line::before {
  content: ">";
  color: var(--ink-faint);
}

/* ─── Frames: an artboard at its real CSS size, shown at a zoom ───── */

.fr {
  --z: 0.5;
  flex: none;
  width: calc(var(--w) * var(--z) * 1px);
  min-width: 0;
}

.fr-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--ink-faint);
  white-space: nowrap;
}

.fr-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.fr-v {
  padding: 0 0.35rem;
  border-radius: 4px;
  background: var(--muted);
  color: var(--ink-soft);
}

.fr-size {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.fr-view {
  position: relative;
  width: calc(var(--w) * var(--z) * 1px);
  height: calc(var(--h) * var(--z) * 1px);
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--frame-shadow);
}

.ab {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--w) * 1px);
  min-height: calc(var(--h) * 1px);
  transform: scale(var(--z));
  transform-origin: 0 0;
  overflow: hidden;
}

/* ─── Hero ────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-top: clamp(3.5rem, 1rem + 9vh, 7rem);
  padding-bottom: clamp(3.5rem, 2rem + 5vw, 6rem);
}

/* Centered: one headline, one line under it, two buttons; the board peeks in below. */
.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 1.2rem + 5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

/* One phrase at a time; the box eases to the width of the one showing. */
.hero-rot {
  position: relative;
  display: inline-block;
  height: 1.14em;
  vertical-align: top;
  text-align: left;
  /* The waiting phrases are wider than the box; on a phone they would scroll the page. */
  overflow-x: clip;
  overflow-clip-margin: 0.35em;
  transition: width 0.5s var(--ease);
}

.hero-w {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.16em;
  /* Room for the cursor, so the measured width includes it. */
  padding-right: 0.2em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}

.hero-w.is-on {
  position: relative;
  opacity: 1;
  transform: none;
}

.hero-w.is-off {
  opacity: 0;
  transform: translateY(-0.4em);
}

/* A real artboard beside the word, with the agent's cursor on it. */
.hero-pic {
  position: relative;
  flex: none;
  display: block;
  height: 0.98em;
}

.hero-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 0.09em;
  background: var(--canvas);
  box-shadow: var(--frame-shadow);
}

.hero-tall {
  width: 0.45em;
}

.hero-wide {
  width: 1.74em;
}

.hero-sq {
  width: 0.98em;
}

.hero-page {
  width: 0.69em;
}

.hero-ptr {
  position: absolute;
  right: -0.14em;
  bottom: -0.1em;
  width: 0.2em;
  height: 0.2em;
}

@media (max-width: 40rem) {
  .hero-line {
    display: inline;
    white-space: normal;
  }

  .hero-rot {
    display: block;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rot,
  .hero-w {
    transition: none;
  }
}

/* "agent" in the headline: which agents, on hover, focus or tap. */
.agent-word {
  text-decoration: underline dotted;
  text-decoration-color: var(--ink-faint);
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.14em;
  cursor: help;
  outline: none;
}

.agent-word:focus-visible {
  border-radius: 0.1em;
  outline: 2px solid var(--accent);
  outline-offset: 0.06em;
}

.agent-tip {
  position: absolute;
  top: var(--ty, 0);
  left: var(--tx, 0);
  z-index: 5;
  width: max-content;
  max-width: min(20rem, calc(100vw - 2rem));
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 6px 8px -4px rgb(0 0 0 / 20%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
}

.agent-tip.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.agent-tip p {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.agent-tip ul {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.55rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.agent-tip li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agent-tip [data-agent] {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  background: var(--muted);
}

.agent-tip svg {
  width: 0.875rem;
  height: 0.875rem;
}

.hero .lede {
  margin-top: 3.25rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero .hero-cta {
  justify-content: center;
  margin-top: 3.25rem;
}

.hero-cta svg {
  width: 0.8rem;
  height: 0.8rem;
}

.btn-len {
  font-weight: 500;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.hero .works {
  justify-content: center;
  margin-top: 3.5rem;
}

.works {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.works-list {
  display: flex;
  gap: 0.85rem;
  color: var(--ink-soft);
}

.works-list [data-agent] {
  display: inline-grid;
  place-items: center;
}

.works-list svg {
  width: 1.05rem;
  height: 1.05rem;
  transform: scale(var(--m-scale, 1));
}

.film-box {
  width: min(92vw, 44rem, calc(100dvh - 9rem));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #0d0e10;
  color: #f1f1ec;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 9%), 0 30px 80px -20px rgb(0 0 0 / 70%);
  overflow: hidden;
  outline: none;
  transition: width 0.45s var(--ease);
}

.film-box.is-peek {
  width: min(92vw, 30rem);
}

.film-box::backdrop {
  background: rgb(8 9 11 / 88%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.film-box[open] {
  animation: film-in 0.3s var(--ease);
}

.film-box[open]::backdrop {
  animation: film-fade 0.3s ease;
}

@keyframes film-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes film-fade {
  from {
    opacity: 0;
  }
}

.film-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.3rem 0.25rem 0.9rem;
}

.film-head p {
  font-size: 0.8125rem;
  color: #abafb6;
}

.film-head b {
  font-weight: 650;
  color: #f1f1ec;
}

.film-box video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  background: #000;
  outline: none;
}

.film-acts {
  display: flex;
  gap: 0.25rem;
}

.film-close {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #abafb6;
  cursor: pointer;
}

.film-close:hover {
  background: rgb(255 255 255 / 10%);
  color: #fff;
}

.film-close svg {
  width: 0.95rem;
  height: 0.95rem;
}

#film-mute .film-off,
#film-mute[aria-pressed="true"] .film-on {
  display: none;
}

#film-mute[aria-pressed="true"] .film-off {
  display: block;
}

/* Click the picture to pause; a thin line shows how far in, and seeks. */
.film-stage {
  position: relative;
  cursor: pointer;
}

.film-paused {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.film-paused svg {
  width: 4.5rem;
  height: 4.5rem;
  padding: 1.1rem 1rem 1.1rem 1.25rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 55%);
  color: #fff;
  backdrop-filter: blur(6px);
}

.film-stage.is-paused .film-paused {
  opacity: 1;
}

.film-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 14px;
  display: flex;
  align-items: flex-end;
  outline: none;
}

.film-bar::before,
.film-bar i {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  transition: height 0.15s ease;
}

.film-bar::before {
  right: 0;
  background: rgb(255 255 255 / 18%);
}

.film-bar i {
  width: 0;
  background: var(--accent);
}

.film-bar:hover::before,
.film-bar:hover i,
.film-bar:focus-visible::before,
.film-bar:focus-visible i {
  height: 6px;
}

.film-full {
  display: none;
}

/* On a phone the square film takes the full width. */
@media (max-width: 40rem) {
  .film-box .film-full {
    display: grid;
  }

  .film-box {
    width: 100vw;
    border-radius: 0;
    box-shadow: none;
  }
}

html:has(.film-box[open]) {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .film-box[open],
  .film-box[open]::backdrop {
    animation: none;
  }
}

.pillars {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.pillars li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.25rem 0.75rem;
  padding-top: 1.25rem;
}

.pillars svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  color: var(--ink-soft);
}

.pillars b {
  display: block;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.pillars span {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (max-width: 48rem) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillars li {
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--line);
  }
}

/* ─── The agents' pointers ───────────────────────────────────────── */

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

/* The agent's pointer. Its position comes from the element it is on, read
   off the page the moment it moves — the way a hotspot is placed on a board. */
.ptr {
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z-ptr);
  display: flex;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0);
  transition: transform 0.95s var(--ease), opacity 0.4s var(--ease);
}

.ptr.on {
  opacity: 1;
}

.ptr > svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 30%));
}

.ptr-l {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.95rem 0 0 -0.1rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--c);
  color: var(--ci);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgb(0 0 0 / 18%);
}

.ptr-l [data-agent] {
  display: grid;
}

.ptr-l [data-agent] svg {
  width: 0.8rem;
  height: 0.8rem;
}

.ptr-l b {
  font-weight: 700;
}

.ptr.flip {
  flex-direction: row-reverse;
}

.ptr.flip > svg {
  transform: scaleX(-1);
}

.ptr.flip .ptr-l {
  margin: 0.95rem -0.1rem 0 0;
}

/* A finding pinned to the element it is about. */
.pin {
  position: absolute;
  z-index: calc(var(--z-ptr) - 1);
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin: -0.625rem 0 0 -0.625rem;
  border: 2px solid var(--canvas);
  border-radius: 999px;
  background: var(--coral);
  color: #15171a;
  font: 700 0.625rem/1 var(--sans);
  transition: background-color 0.3s, transform 0.4s var(--ease), opacity 0.3s;
}

.pin[data-state="fixed"] {
  background: var(--lime);
}

.pin[hidden] {
  display: none;
}

/* ─── Hero studio: agents in rows, one project per tile ───────────── */

.st {
  width: min(100% - 2 * clamp(1rem, 4vw, 2rem), 88rem);
  margin: clamp(4rem, 2rem + 12vh, 10rem) auto 0;
  perspective: 1800px;
}

/* Leans back under the headline, then stands up flat as it scrolls in.
   --tilt runs 1 → 0, set by main.js. */
.st-box {
  transform: rotateX(calc(var(--tilt, 0) * 16deg)) scale(calc(1 - var(--tilt, 0) * 0.08));
  transform-origin: 50% 0;
  will-change: transform;
}


.st-box {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--chrome);
}

/* The studio's top bar: the projects, what just landed, who is at work. */
.st-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 3.25rem;
  padding: 0 0.7rem 0 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.st-app {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.55rem;
}

.st-app .mark svg {
  width: 1.2rem;
  height: 1.2rem;
}

.st-app b {
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.st-n {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--muted);
  font: 500 0.6875rem/1 var(--mono);
  color: var(--ink-soft);
}

.st-feed {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  height: 1.5rem;
  margin: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.st-feed-k {
  flex: none;
  font-weight: 600;
  color: var(--ink-faint);
}

.st-feed-v {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: var(--ink-soft);
}

.st-feed-i {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--c);
  color: var(--ci);
}

.st-feed-i [data-agent] {
  display: grid;
}

.st-feed-i svg {
  width: 0.7rem;
  height: 0.7rem;
}

.st-feed-v b {
  font-weight: 600;
  color: var(--ink);
}

.st-feed-v > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.st-feed-v > span:last-child::before {
  content: "·";
  margin-right: 0.4rem;
  color: var(--ink-faint);
}

.st-agents {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.st-av {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 1.625rem;
  padding: 0 0.6rem 0 0.45rem;
  border-radius: 999px;
  background: var(--c);
  color: var(--ci);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--chrome);
  transition: opacity 0.3s var(--ease);
}

.st-av [data-agent] {
  display: grid;
  place-items: center;
}

.st-av svg {
  width: 0.8rem;
  height: 0.8rem;
}

.st[data-paused] .st-av {
  opacity: 0.45;
}

/* The agent whose work just landed in the activity line. */
.st-av.ping {
  z-index: 1;
  animation: av-ping 0.9s var(--ease);
}

@keyframes av-ping {
  0% {
    box-shadow: 0 0 0 2px var(--chrome), 0 0 0 2px var(--c);
  }

  30% {
    transform: translateY(-2px);
  }

  100% {
    box-shadow: 0 0 0 2px var(--chrome), 0 0 0 9px transparent;
  }
}

.st-play {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.st-play:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.st-play[hidden],
.st-play .i-play,
.st-play[aria-pressed="true"] .i-pause {
  display: none;
}

.st-play[aria-pressed="true"] .i-play {
  display: inline;
}

.st-play svg {
  width: 0.875rem;
  height: 0.875rem;
}

@media (max-width: 48rem) {
  .st-feed {
    display: none;
  }

  /* Logos only, overlapping, where the names would not fit. */
  .st-agents {
    gap: 0;
  }

  .st-av {
    justify-content: center;
    width: 1.625rem;
    padding: 0;
  }

  .st-av + .st-av {
    margin-left: -0.4rem;
  }

  .st-av b {
    display: none;
  }
}

@media (max-width: 30rem) {
  .st-bar {
    gap: 0.75rem;
    padding-left: 0.9rem;
  }

}

.st-rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 0.6rem + 1vw, 1.5rem);
  padding: 1.5rem clamp(1rem, 0.5rem + 1.5vw, 1.75rem) 1.75rem;
  background-color: var(--canvas);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 18px 18px;
}

.st-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 0.4rem + 1vw, 1.25rem);
}

.tl {
  min-width: 0;
  margin: 0;
}

.tl-h {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
}

/* The project's own app icon. */
.tl-logo {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 5px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent);
}

.tl-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #1b1b1b;
  font: 700 0.75rem/1 var(--sans);
}

.tl-mono i {
  font-style: normal;
  color: #de2b22;
}

.tl-mark {
  display: inline-grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
}

.tl-mark svg {
  width: 0.85rem;
  height: 0.85rem;
}

.tl-h b {
  margin-right: 0.2rem;
  font-weight: 600;
}

.tl-k {
  flex: none;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-faint);
}

.tl-v {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-soft);
}

.tl-b {
  position: relative;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  border-radius: 12px;
  background-color: color-mix(in oklab, var(--p) 22%, var(--canvas));
  background-image: radial-gradient(color-mix(in oklab, var(--p) 30%, var(--dot)) 1px, transparent 1.2px);
  background-size: 16px 16px;
}

:root[data-theme="dark"] .tl-b {
  background-color: color-mix(in oklab, var(--p) 26%, #101113);
  background-image: radial-gradient(color-mix(in oklab, var(--p) 40%, #26282d) 1px, transparent 1.2px);
}

/* A screen inside a tile. Position and width are percentages of the tile, so
   the crop holds at every size: a phone can sit whole, or bleed off the
   bottom to show its top half large. */
.shot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  transform: translateX(-50%) rotate(var(--rot, 0deg));
  border-radius: var(--r, 12px);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 34px -14px rgb(0 0 0 / 45%);
  transition: transform 0.9s var(--ease), box-shadow 0.4s var(--ease), top 0.9s var(--ease), left 0.9s var(--ease);
}

.shot.desk {
  transform: none;
  transform-origin: 0 0;
  border-radius: 10px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot img + img {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.shot img.on {
  opacity: 1;
}

.shot[data-picked] {
  box-shadow: 0 0 0 3px var(--accent), 0 16px 34px -14px rgb(0 0 0 / 45%);
}

/* Drawing: the screen arrives top to bottom while the agent works on it. */
.st.is-live .shot[data-reveal] {
  clip-path: inset(-48px -48px calc((1 - var(--rv, 1)) * 100% - var(--rv, 1) * 48px) -48px);
  transition: clip-path 0.8s var(--ease), transform 0.9s var(--ease), box-shadow 0.4s var(--ease), top 0.9s var(--ease),
    left 0.9s var(--ease);
}

.tl-chip {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: calc(100% - 1.2rem);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 1px 3px rgb(0 0 0 / 18%);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.3s;
}

.tl-chip:empty {
  opacity: 0;
}

.tl-chip b {
  font-weight: 500;
  color: var(--ink);
}

.tl-chip[data-tone="ok"]::before,
.tl-chip[data-tone="pick"]::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--lime);
}

.tl-chip[data-tone="pick"]::before {
  background: var(--accent);
}

.tl .ptr {
  z-index: 4;
}

@media (max-width: 56rem) {
  .st-tiles {
    grid-template-columns: repeat(3, minmax(17rem, 78%));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(-1 * clamp(1rem, 0.5rem + 1.5vw, 1.75rem));
    padding-inline: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  }

  .st-tiles::-webkit-scrollbar {
    display: none;
  }

  .tl {
    scroll-snap-align: center;
  }
}

/* ─── Without / with ──────────────────────────────────────────────── */

/* Two windows side by side, each under its own label: a person drawing a
   screen by hand in a design tool, and an agent drawing three through Loupe. */
.ww {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem clamp(1rem, 0.25rem + 1.75vw, 2rem);
  margin-top: clamp(3rem, 2.5rem + 2vw, 4rem);
}

.ww-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: start;
  margin: 0;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
}

.ww-tag-i {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
}

.ww-tag-i svg {
  width: 0.9rem;
  height: 0.9rem;
}

.ww-tag-off {
  grid-area: 1 / 1;
  background: var(--chrome);
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

.ww-tag-off .ww-tag-i {
  background: var(--line);
}

.ww-tag-on {
  grid-area: 1 / 2;
  background: var(--lime);
  color: #15171a;
}

.ww-tag-on .ww-tag-i {
  background: #15171a;
  color: var(--lime);
}

.ww-by {
  grid-area: 2 / 1;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--chrome);
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--ink-soft);
  user-select: none;
  display: flex;
  flex-direction: column;
  /* Sized by the right side: this column adds no height of its own. */
  contain: size;
}

/* The design tool's own window: whose seat this is, and how far they got. */
.ib-app {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  white-space: nowrap;
  color: var(--ink-faint);
}

.ib-dots {
  display: inline-flex;
  gap: 5px;
  margin-right: 0.2rem;
}

.ib-dots i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--line-strong);
}

.ib-app b {
  font-weight: 600;
  color: var(--ink);
}

.ib-apps {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ib-apps i {
  margin: 0 0.1rem;
  font-style: normal;
  font-weight: 400;
  color: var(--ink-faint);
}

.ib-logo svg {
  display: block;
  width: auto;
  height: 0.95rem;
}

.ib-file {
  flex: none;
}

.ib-who {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}

.ib-time,
.tm-time {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.tm-time {
  margin-left: auto;
  color: #c9ff5a;
}

.ib-av {
  display: inline-grid;
  place-items: center;
  height: 1.15rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font: 600 0.625rem/1 var(--sans);
}

/* A person's cursor: the plain system arrow, slower than any agent. */
.ib-cur {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0);
  transition: transform 0.85s cubic-bezier(0.45, 0, 0.25, 1), opacity 0.3s;
}

.ib-cur.on {
  opacity: 1;
}

.ib-cur svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 30%));
}

.ib-cur span {
  margin: 1rem 0 0 -0.15rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font: 600 0.6875rem/1.3 var(--sans);
}

.ib-sec {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding: 0.55rem 1.25rem 0.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.ib-sec:first-of-type {
  margin-top: 0;
  border-top: 0;
}

.ib-sec::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  margin-top: -0.2rem;
  border-right: 1.5px solid var(--ink-faint);
  border-bottom: 1.5px solid var(--ink-faint);
  transform: rotate(45deg);
}

.ib-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.2rem 1.25rem 0.2rem 2.05rem;
}

.ib-l {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ib-c {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.ib-c i {
  font-style: normal;
}

.ib-in {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.35rem;
  min-width: 2.6rem;
  padding: 0.22rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink);
}

.ib-in[data-k]::before {
  content: attr(data-k);
  color: var(--ink-faint);
}

.ib-w {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ib-dd::after {
  content: "";
  flex: none;
  width: 0.28rem;
  height: 0.28rem;
  margin: -0.15rem 0 0 auto;
  border-right: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  transform: rotate(45deg);
}

.ib-off {
  color: var(--ink-faint);
}

.ib-sw {
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 12%);
}

.ww-with {
  grid-area: 2 / 2;
  display: grid;
  align-content: start;
  gap: 1.25rem;
  min-width: 0;
  padding: clamp(1.25rem, 0.75rem + 1.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

/* The agent's side: its terminal, then the board it drew on. */
.tm {
  overflow: hidden;
  border-radius: 12px;
  background: #15171a;
  color: #9ea2a9;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.45;
}

.tm-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #2a2d33;
}

.tm-bar .ib-dots i {
  background: #3a3e45;
}

.tm-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #f1f1ec;
}

.tm-title svg {
  width: 0.85rem;
  height: 0.85rem;
  color: #ffc45a;
}

.tm-body {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem 1rem 1rem;
}

.tm-in {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
  color: #f1f1ec;
}

.tm-ps {
  color: #c9ff5a;
}

.tm-l {
  display: grid;
  grid-template-columns: 0.9rem auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 0.5rem;
  white-space: nowrap;
}

.tm-l i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #c9ff5a;
}

.tm-l b {
  font-weight: 500;
  color: #f1f1ec;
}

.tm-l span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-l em {
  font-style: normal;
  color: #c9ff5a;
}

.tm-ok {
  margin-top: 0.25rem;
  color: #cff56a;
}

/* While it runs, lines hold their place until they happen. */
.ww.is-live .tm-l:not(.on),
.ww.is-live .tm-ok:not(.on) {
  visibility: hidden;
}

.ww.is-live #tm-prompt:empty::after,
.ww.is-live #tm-prompt.typing::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: #f1f1ec;
  animation: pulse 1s steps(1) infinite;
}

/* The board the agent drew on. */
.ww-board {
  overflow: hidden;
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.ww-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--chrome);
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.ww-bar svg {
  width: 1rem;
  height: 1rem;
  color: var(--ink);
}

.ww-bar b {
  font-weight: 600;
  color: var(--ink);
}

.ww-bar-n {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.ww-canvas {
  position: relative;
  overflow: hidden;
  background-color: var(--canvas);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 18px 18px;
}

.ww-row {
  display: flex;
  justify-content: center;
  gap: var(--ww-gap, 1rem);
  padding: 1rem 1rem 1.25rem;
}

.ww-row .fr {
  --z: var(--ww-z, 0.36);
}

.ww.is-live .ww-row .fr .ab {
  clip-path: inset(0 0 100% 0);
}

.ww.is-live .ww-row .fr.on .ab {
  clip-path: inset(0);
  transition: clip-path 0.6s var(--ease);
}

.ww.is-live .ww-row .fr:not(.on) .fr-head {
  visibility: hidden;
}

/* The person's side: tools, a canvas, and the properties of whatever they
   just drew. Everything they draw is a plain shape or a line of text. */
.ds {
  flex: 1;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 11.5rem);
  min-height: 0;
}

.ds-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0;
  border-right: 1px solid var(--line);
}

.ds-tools i {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  color: var(--ink-soft);
}

.ds-tools i.on {
  background: var(--accent);
  color: var(--accent-ink);
}

.ds-tools svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ds-canvas {
  position: relative;
  overflow: hidden;
  background-color: var(--canvas);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 18px 18px;
}

.ds-row {
  display: flex;
  align-items: center;
  gap: var(--ds-gap, 1rem);
  height: 100%;
  padding: 1.1rem 1rem;
  transform: translate(var(--cam-x, 0px), var(--cam-y, 0px)) scale(var(--cam-s, 1));
  transform-origin: 0 0;
  transition: transform 0.7s cubic-bezier(0.45, 0, 0.25, 1);
}

.ds-fr {
  flex: none;
  display: grid;
  gap: 0.35rem;
}

.ds-name {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink);
}

.ds-view {
  position: relative;
  overflow: hidden;
  width: calc(390px * var(--dz, 0.4));
  height: calc(844px * var(--dz, 0.4));
  border-radius: 6px;
  box-shadow: var(--frame-shadow);
}

.ds-ab {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 844px;
  transform: scale(var(--dz, 0.4));
  transform-origin: 0 0;
}

.dp {
  position: absolute;
  left: calc(var(--x) * 1px);
  top: calc(var(--y) * 1px);
  font-style: normal;
}

.dp.r,
.dp.e {
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  border-radius: calc(var(--r, 0) * 1px);
  background: var(--f, var(--m-surface));
}

.dp.e {
  border-radius: 999px;
}

.dp.t {
  font-size: calc(var(--fs) * 1px);
  line-height: 1.15;
  white-space: nowrap;
  color: var(--m-ink);
}

.dp.b {
  font-weight: 600;
}

.dp.soft {
  color: var(--m-soft);
}

.ds.is-live .ds-view:not(.on),
.ds.is-live .ds-name:not(.on),
.ds.is-live .dp:not(.on) {
  visibility: hidden;
}

.ds-insp {
  overflow: hidden;
  border-left: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 98%);
}

.ds-insp .ib-row {
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
}

.ds-insp .ib-sec {
  padding: 0.55rem 0.6rem 0.35rem;
}

.ds-insp .ib-in {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Demos loop on their own; a click pauses one ────────────────── */

.demo {
  position: relative;
  cursor: pointer;
}

.demo-paused {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  z-index: calc(var(--z-ptr) + 1);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font: 600 0.6875rem / 1.3 var(--sans);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.demo.is-paused .demo-paused {
  opacity: 1;
  transform: translateX(-50%);
}

/* ─── Split sections: copy on one side, the result on the other ──── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.split .say {
  margin-top: 2rem;
}

.split-copy {
  display: grid;
  gap: 1.25rem;
  position: sticky;
  top: 6rem;
}

.result {
  min-width: 0;
  padding: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--canvas);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 18px 18px;
}

.row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.row > * {
  scroll-snap-align: start;
}

/* Explore: a draft, other looks beside it, one picked */

.xp {
  display: grid;
  min-width: 0;
}

.xp-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.xp-canvas {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding: 1.1rem 0 1.25rem;
  background-color: var(--canvas);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 18px 18px;
}

.xp-row {
  padding: 0 1.1rem 0.25rem;
  scroll-snap-type: none;
}

/* A flex row drops its end padding when it overflows; this keeps it. */
.xp-row::after {
  content: "";
  flex: none;
  width: 0.1rem;
}

.xp-row .fr {
  --z: 0.44;
  position: relative;
}

.xp-row .fr-head {
  flex-wrap: wrap;
  row-gap: 0.1rem;
}

.xp-row .fr-size {
  flex-basis: 100%;
  margin-left: 0;
}

.fr:not([data-picked]) .pick-tag {
  display: none;
}

.xp-src .fr-view {
  transition: box-shadow 0.2s;
}

.xp-src.is-sel .fr-view {
  box-shadow: 0 0 0 2px var(--accent), var(--frame-shadow);
}

.xp-v {
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.xp.is-live .xp-v:not(.on) {
  opacity: 0;
  transform: translateY(12px) scale(0.97);
}

.xp-note {
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.xp.is-live .xp-note:not(.on) {
  opacity: 0;
  transform: translateY(6px);
}

/* The ask bar as the board shows it while typing: chip, words, then how and send. */
.askbar {
  justify-self: center;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "req req req"
    "about about about"
    "field field field"
    "mode . go";
  align-items: center;
  gap: 0.4rem 0.5rem;
  width: min(30rem, calc(100% - 2.2rem));
  padding: 0.65rem;
  border-radius: 14px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 10px 28px rgb(0 0 0 / 12%);
}

.askbar-req {
  grid-area: req;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0 0.15rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.askbar:not([data-state]) .askbar-req,
.askbar[data-state="idle"] .askbar-req {
  display: none;
}

.askbar-req i {
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--lens);
}

.askbar[data-state="working"] .askbar-req i {
  background: var(--agent-amber);
  animation: pulse 1.2s ease-in-out infinite;
}

.askbar-req b {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--ink);
}

.askbar-req b svg {
  width: 0.75rem;
  height: 0.75rem;
}

.askbar-req span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.askbar-about {
  grid-area: about;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 1.6rem;
  padding: 0 0.5rem 0 0.4rem;
  border-radius: 8px;
  background: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 0.6875rem / 1 var(--mono);
  color: var(--ink-soft);
}

.askbar-about svg {
  width: 0.8rem;
  height: 0.8rem;
  stroke-width: 1.8;
}

.askbar-field {
  grid-area: field;
  min-height: 1.5rem;
  padding: 0.15rem 0.15rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--ink);
}

.askbar-field span:empty::before {
  content: attr(data-ph);
  color: var(--ink-faint);
}

.askbar-field .typing::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -0.12em;
  background: var(--ink);
  animation: pulse 0.9s steps(1) infinite;
}

.askbar-mode {
  grid-area: mode;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.askbar-seg {
  display: flex;
  padding: 2px;
  border-radius: 9px;
  background: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
}

.askbar-seg b {
  height: 1.5rem;
  padding: 0 0.55rem;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5rem;
  color: var(--ink-soft);
  transition:
    background-color 0.15s,
    color 0.15s;
}

.askbar-seg b.on {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong);
  font-weight: 650;
  color: var(--ink);
}

.askbar-mode em {
  padding: 0 0.35rem;
  font: 600 0.75rem / 1 var(--mono);
  font-style: normal;
  color: var(--ink);
}

.askbar-go {
  grid-area: go;
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.75rem;
  border-radius: 9px;
  background: var(--ink);
  color: var(--page);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    color 0.15s,
    transform 0.12s;
}

.askbar-go > span {
  margin-left: 0.25em;
}

.askbar-go kbd {
  margin-left: 0.45rem;
  font: 600 0.6875rem / 1 var(--mono);
  opacity: 0.7;
}

.askbar-go[data-off] {
  background: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-faint);
}

.askbar-go.press {
  transform: scale(0.95);
}

@media (max-width: 30rem) {
  .askbar-go > span {
    display: none;
  }
}

.pick-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.4rem;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
}

.why-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  margin-top: 1.25rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.875rem;
  line-height: 1.5;
}

.why-note + .why-note {
  margin-top: 0.6rem;
}

.av {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--muted);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--ink);
}

.av-agent {
  background: var(--c);
  color: var(--ci);
}

.av-agent svg {
  width: 0.8rem;
  height: 0.8rem;
}

.why-note small {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* Consistent: one screen, its findings, then the fix */

.check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.check .fr {
  --z: 0.62;
}

.check-stage {
  position: relative;
}

.vtabs {
  display: inline-flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.vtabs button {
  padding: 0.3rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: 500 0.8125rem/1.4 var(--sans);
  cursor: pointer;
}

.vtabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--page);
}

.vtabs button span {
  margin-left: 0.3rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  opacity: 0.75;
}

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

.finds li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.875rem;
  line-height: 1.45;
}

.finds .n {
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: var(--coral);
  color: #15171a;
  font-size: 0.6875rem;
  font-weight: 700;
}

.finds code {
  display: block;
  font-size: 0.75rem;
  color: var(--flag);
}

.finds em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.check[data-v="2"] .finds .n {
  background: var(--lime);
}

.check[data-v="2"] .finds code {
  color: var(--lime-text);
}

.check .t2,
.check[data-v="2"] .t1 {
  display: none;
}

.check[data-v="2"] .t2 {
  display: inline;
}

.rules {
  display: grid;
  gap: 0;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.rules li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.45;
}

.rules q {
  color: var(--ink-soft);
}

.rules q::before {
  content: "“";
}

.rules q::after {
  content: "”";
}

.rules svg {
  width: 1rem;
  height: 1rem;
  color: var(--ink-faint);
}

.rules b {
  font-weight: 600;
}

/* Consistent, played: the checker's pins, then a part you point at */

.check-wrap {
  position: relative;
}

.check-wrap .ib-cur {
  z-index: var(--z-ptr);
}

.check-ask {
  margin: 1.5rem auto 0;
}

.askbar-about .k-el {
  display: none;
}

.askbar-about > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.askbar[data-kind="element"] .k-screen {
  display: none;
}

.askbar[data-kind="element"] .k-el {
  display: inline-flex;
}

.el-sel {
  position: absolute;
  z-index: calc(var(--z-ptr) - 2);
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.el-sel.on {
  opacity: 1;
}

.el-sel b {
  position: absolute;
  top: 100%;
  left: -1.5px;
  padding: 0.1rem 0.35rem;
  border-radius: 0 0 4px 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 0.625rem / 1.3 var(--mono);
}

.check-wrap.is-live .finds li,
.check-wrap.is-live .rules li[id] {
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.check-wrap.is-live .finds li:not(.on),
.check-wrap.is-live .rules li[id]:not(.on) {
  opacity: 0;
  transform: translateY(6px);
}

.check-wrap.is-live .pin:not(.on) {
  opacity: 0;
  transform: scale(0.4);
}

.rules li.on[id] b {
  animation: rule-new 1.6s var(--ease);
}

@keyframes rule-new {
  0%,
  40% {
    color: var(--lime-text);
  }
}

/* One place: the projects in our own workspace */

.projs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 2rem 1.5rem;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
}

.pj-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.pj-card {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: color-mix(in oklab, var(--p) 10%, var(--surface));
}

.pj-thumbs {
  position: absolute;
  inset: 12% 0 0 7%;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.pj-thumbs img {
  width: 24%;
  height: auto;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line), 0 6px 12px -8px rgb(0 0 0 / 40%);
}

.pj-desk .pj-thumbs img {
  width: 108%;
  flex: none;
  aspect-ratio: auto;
  border-radius: 8px;
}

.pj-more {
  align-self: center;
  margin-top: -12%;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.pj-desk .pj-more {
  display: none;
}

.pj-pills {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  display: flex;
  gap: 0.35rem;
}

.pj-pills span {
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #15171a;
  color: #f1f1ec;
  font-family: var(--mono);
  font-size: 0.6875rem;
}

.pj-st {
  margin-top: 0.55rem;
  font-size: 0.8125rem;
}

.pj-st[data-tone="ok"] {
  color: var(--lime-text);
}

.pj-st[data-tone="fix"] {
  color: var(--flag);
}

/* ─── Real screens: what HTML in a real browser can do ────────────── */

.cn-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.cn {
  grid-column: span 2;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 1rem;
  min-width: 0;
  padding: clamp(1rem, 0.6rem + 1.2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--canvas);
}

.cn-wide {
  grid-column: span 3;
}

.cn-tag {
  justify-self: start;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink);
}

/* What you typed, as a message: yours, so it's in the selection colour. */
.cn-say {
  justify-self: end;
  max-width: min(100%, 26rem);
  margin-top: -0.25rem;
  padding: 0.6rem 1rem;
  border-radius: 18px 18px 4px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.35;
  text-wrap: balance;
}

.cn-art {
  position: relative;
  min-height: 17rem;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--surface);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 18px 18px;
}

/* Clickable: the links are drawn from the measured buttons. */
.cn-row {
  display: flex;
  justify-content: center;
  gap: var(--cn-gap, 2.75rem);
  padding: 1.1rem 1rem 1.4rem;
}

.cn-row .fr {
  --z: var(--cn-z, 0.36);
}

.cn-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  color: var(--accent);
}

.cn-links .hot {
  fill: color-mix(in srgb, currentColor 14%, transparent);
  stroke: currentColor;
  stroke-width: 1.5;
}

.cn-links .wire {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.cn-links .end {
  fill: currentColor;
}

/* Dark mode: the two renders, side by side. */
.cn-pair,
.cn-size {
  /* Sized by the row; the renders run off the bottom. */
  contain: size;
  min-height: 18rem;
}

.cn-pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 1.25rem;
}

.cn-pair img {
  width: 42%;
  max-width: 12rem;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 16px 34px -14px rgb(0 0 0 / 45%);
}

.cn-pair img + img {
  margin: 1.5rem 0 0 -6%;
}

/* Played: the dark render swept over the light one, then set beside it. */
.cn-sweep {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}

.cn-sweep::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin: -0.55rem 0 0 -0.55rem;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--accent);
}

/* Clickable, played: each link drawn in, then a tap walks them. */
.cn-row .fr-view {
  transition: box-shadow 0.25s;
}

.cn-row .fr.is-now .fr-view {
  box-shadow: 0 0 0 2px var(--accent), var(--frame-shadow);
}

.cn-wire.is-live .cn-links [data-i] {
  transition: opacity 0.3s;
}

.cn-wire.is-live .cn-links [data-i]:not(.on) {
  opacity: 0;
}

.cn-wire [data-link].is-tap {
  transform: scale(0.94);
}

/* Any size: one screen, real HTML, laid out again at each width. */
.cn-size {
  display: grid;
  place-items: center;
  padding: 2.5rem 1rem 1rem;
}

.sz-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  display: flex;
  gap: 0.5rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font: 500 0.6875rem / 1.2 var(--mono);
  color: var(--ink-faint);
}

.sz-tag b {
  font-weight: 600;
  color: var(--ink);
}

.sz-fr {
  --z: 0.22;
}

.sz-fr,
.sz-fr .fr-view {
  transition:
    width 0.9s var(--ease),
    height 0.9s var(--ease);
}

.sz-ab {
  container-type: inline-size;
  transition:
    width 0.9s var(--ease),
    min-height 0.9s var(--ease),
    transform 0.9s var(--ease),
    background-color 0.5s var(--ease);
}

.sz-in {
  display: flex;
  flex-direction: column;
  min-height: inherit;
}

.sz-main {
  display: grid;
  gap: 18px;
  padding: 56px 22px 24px;
}

.sz-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sz-side .m-card {
  padding: 14px;
}

.sz-side b {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.sz-side .sz-list {
  grid-column: 1 / -1;
  padding: 4px 18px;
}

.sz-list b {
  display: inline;
  margin: 0;
  font-size: 15px;
}

.sz-nav {
  order: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: auto;
  padding: 7px 8px 34px;
  border-top: 1px solid var(--m-line);
  background: var(--m-surface);
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  color: var(--m-soft);
}

.sz-nav b {
  display: none;
}

.sz-nav .on {
  color: var(--moss);
}

@container (min-width: 700px) {
  .sz-in {
    flex-direction: row;
  }

  .sz-nav {
    order: 0;
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 4px;
    width: 210px;
    margin: 0;
    padding: 30px 16px;
    border-top: 0;
    border-right: 1px solid var(--m-line);
    font-size: 15px;
    text-align: left;
    color: var(--m-soft);
  }

  .sz-nav b {
    display: block;
    margin: 0 10px 22px;
    font: 700 22px / 1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--m-ink);
  }

  .sz-nav span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
  }

  .sz-nav span::before {
    width: 20px;
    height: 20px;
    margin: 0;
    color: var(--moss);
  }

  .sz-nav .on {
    background: var(--moss-soft);
    color: var(--m-ink);
  }

  .sz-main {
    flex: 1;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
      "head head"
      "chart side";
    align-content: start;
    gap: 24px;
    padding: 40px;
  }

  .sz-head {
    grid-area: head;
  }

  .sz-chart {
    grid-area: chart;
  }

  .sz-side {
    grid-area: side;
    grid-template-columns: 1fr;
    align-content: start;
  }
}

@container (min-width: 1200px) {
  .sz-main {
    grid-template-columns: minmax(0, 1fr) 380px;
    padding: 48px 56px;
  }

  .sz-side {
    grid-template-columns: 1fr 1fr;
  }

  .sz-head .m-h {
    font-size: 42px;
  }
}

/* Built from your pick: the frame, and what the agent does with it. */
.cn-build {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem 1.25rem;
}

.cn-build .fr {
  --z: 0.38;
}

.fr[data-picked] .fr-view {
  box-shadow: 0 0 0 2px var(--accent), var(--frame-shadow);
}

.cn-term {
  display: grid;
  gap: 0.55rem;
  align-self: center;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: #15171a;
  color: #9ea2a9;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.45;
}

.cn-term p {
  display: grid;
  grid-template-columns: 0.9rem minmax(0, 1fr);
  column-gap: 0.4rem;
}

.cn-term i {
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.4em;
  border-radius: 999px;
  background: #c9ff5a;
}

.cn-term b {
  font-weight: 500;
  color: #f1f1ec;
}

.cn-term span {
  grid-column: 2;
}

.cn-term .t-who {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
  color: #f1f1ec;
}

.cn-term .t-who svg {
  width: 0.85rem;
  height: 0.85rem;
  color: #ffc45a;
}

.cn-term .t-ok {
  display: block;
  margin-top: 0.2rem;
  color: #cff56a;
}

.cn-build.is-live .cn-term p {
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.cn-build.is-live .cn-term p:not(.on) {
  opacity: 0;
  transform: translateY(4px);
}

@media (max-width: 64rem) {
  .cn-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cn,
  .cn-wide {
    grid-column: auto;
  }

  .cn-pair,
  .cn-size {
    min-height: clamp(18rem, 42vw, 26rem);
  }
}

@media (max-width: 36rem) {
  .cn-row {
    justify-content: flex-start;
  }

  .cn-build {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding-bottom: 1.25rem;
  }

  .cn-build .fr {
    --z: 0.46;
  }

  /* On a phone the top of the screen is enough to know which one. */
  .cn-build .fr-view {
    max-height: 13rem;
  }

  .cn-term {
    justify-self: stretch;
  }
}

/* ─── Tokens: what Loupe spares the agent's plan ─────────────────── */

.tk {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.tk li {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.tk-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.tk-h b {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.tk-h code {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.tk-bars {
  display: grid;
  gap: 0.4rem;
}

.tk-bars span {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.tk-bars em {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-style: normal;
  color: var(--ink-faint);
}

.tk-bars i {
  width: var(--w);
  height: 0.5rem;
  border-radius: 999px;
  background: var(--line-strong);
}

.tk-bars .lo em {
  color: var(--ink);
}

.tk-bars .lo i {
  background: var(--lens);
}

/* ─── Also included (from the live landing) ──────────────────────── */

.f-also {
  /* A tiny example shop's own colours, whatever the page theme. */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1px;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.f-also li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--surface);
}

.f-also li > b {
  padding: 1.4rem 1.5rem 0;
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.f-also li > span {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.a-vis {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 8.5rem;
  margin: auto 1.5rem 0;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background-color: var(--page);
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1.5px);
  background-size: 18px 18px;
}

.a-vis:has(.a-sw),
.a-vis:has(.a-tl) {
  flex-direction: row;
}

.a-pill {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}

.a-pill.a-go {
  border-color: transparent;
  background: var(--lime);
  color: #15171a;
}

.a-sw {
  width: 1.75rem;
  height: 1.75rem;
  margin-right: -0.2rem;
  border: 1px solid rgb(0 0 0 / 8%);
  border-radius: 999px;
  background: var(--c);
}

.a-aa {
  margin-left: 0.75rem;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: var(--ink);
}

.a-tl {
  position: relative;
  display: flex;
  gap: 0.55rem;
}

.a-tl::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: 50%;
  height: 1px;
  background: var(--line-strong);
}

.a-tl span {
  position: relative;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-soft);
}

.a-tl .a-now {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}

/* ─── How it compares (from the live landing) ────────────────────── */

.c-wrap {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0.75rem 0.25rem 0.25rem;
  overflow-x: auto;
}

.c-table {
  width: 100%;
  min-width: 60rem;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
}

.c-table th,
.c-table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.c-table tbody tr:last-child > * {
  border-bottom: 0;
}

.c-table thead td,
.c-table tbody th {
  width: 17%;
  padding-left: 0;
  font-weight: 600;
  color: var(--ink);
}

.c-table td {
  color: var(--ink-soft);
}

.c-table thead th {
  padding-block: 1.1rem;
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  vertical-align: top;
}

.c-name {
  display: block;
}

.c-price {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.c-price small {
  margin-left: 0.1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.c-pnote {
  display: block;
  min-height: 2.4em;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.c-logo {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.c-logo svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Loupe's column is one raised card running the height of the table. */
.c-table [data-us] {
  background: var(--surface);
  border-left: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
}

.c-table thead [data-us] {
  padding-top: 1.1rem;
  border-top: 1.5px solid var(--ink);
  border-radius: 14px 14px 0 0;
}

.c-table tbody tr:last-child [data-us] {
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0 0 14px 14px;
}

.c-table thead [data-us] .c-logo {
  border-color: transparent;
  background: var(--lime);
  color: #15171a;
}

.c-table thead [data-us] .c-logo svg circle {
  stroke: currentColor;
}

.c-v {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.c-yes {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  background: var(--lime);
}

.c-yes::before {
  content: "";
  width: 0.45rem;
  height: 0.25rem;
  margin-top: -0.1rem;
  border-left: 1.6px solid #15171a;
  border-bottom: 1.6px solid #15171a;
  transform: rotate(-45deg);
}

/* Why not Figma's MCP: the compare table's look, two columns wide. */
@media (min-width: 64.01rem) {
  #figma .split {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  }
}

.vs-wrap {
  margin-top: 0;
}

.c-table.vs {
  min-width: 0;
}

.vs thead td,
.vs tbody th {
  width: 30%;
}

.vs thead th {
  font-size: 1.0625rem;
}

@media (max-width: 37.5rem) {
  .c-table.vs {
    font-size: 0.875rem;
  }

  .vs th,
  .vs td {
    padding: 0.85rem 0.7rem;
  }

  .vs thead td,
  .vs tbody th {
    width: 28%;
  }

  .vs .c-yes {
    display: none;
  }
}

.c-foot {
  margin: 0.9rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.c-swipe {
  display: none;
}

@media (max-width: 48rem) {
  /* The label column stays put while the rest scrolls on a phone. */
  .c-table tbody th,
  .c-table thead td {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--page);
  }

  .c-swipe {
    display: inline;
  }
}

/* What you could ask for */

.made {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.tile {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1rem;
  min-width: 0;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--canvas);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 18px 18px;
}

.tile-wide {
  grid-column: span 7;
}

.tile-tall {
  grid-column: span 5;
}

.tile-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.tile-wide .fr {
  --z: 0.42;
}

.tile-tall .fr {
  --z: 0.54;
}

.tile figcaption.say {
  max-width: none;
}

.tile figcaption .say-line {
  font-size: 0.8125rem;
}

/* Setup — the connect block is the live landing's, restyled to these tokens */

.setup {
  margin-top: 2.5rem;
  max-width: 60rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.v-setup-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.v-agents {
  display: flex;
  gap: 0.25rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fl, 0px), #000 calc(100% - var(--fr, 0px)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fl, 0px), #000 calc(100% - var(--fr, 0px)), transparent);
}

.v-agents::-webkit-scrollbar {
  display: none;
}

.v-agent {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem 0.45rem 0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
}

.v-agent svg {
  width: 1.1rem;
  height: 1.1rem;
}

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

.v-agent[aria-selected="true"] {
  background: var(--ink);
  color: var(--page);
}

.setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.v-pane {
  grid-row: 2;
  grid-column: 1;
}

.v-pane[hidden] {
  display: block;
  visibility: hidden;
}

.v-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 0.5rem 1.5rem;
  padding: 1.4rem 1.5rem;
}

.v-row + .v-row {
  border-top: 1px solid var(--line);
}

.v-row-n {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.6rem;
  color: var(--ink-faint);
}

.v-row-t b {
  display: block;
  font-weight: 600;
  line-height: 1.6rem;
}

.v-row-t span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.v-row-t:last-child {
  grid-column: 2 / -1;
}

.v-row-a {
  min-width: 0;
}

.v-open {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--page);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.v-hint {
  margin: 0.9rem 0 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.v-hint a {
  color: inherit;
  text-underline-offset: 3px;
}

.v-open + .v-cmd {
  margin-top: 0.75rem;
}

.v-cmd {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 4.75rem 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
}

.v-cmd-p {
  flex: none;
  color: var(--ink-faint);
}

.v-cmd pre {
  margin: 0;
  min-width: 0;
  font: inherit;
  white-space: pre;
  overflow-x: auto;
  scrollbar-width: thin;
}

.v-cmd-json pre {
  white-space: pre;
  overflow-x: auto;
  overflow-wrap: normal;
  scrollbar-width: thin;
}

.v-cmd-copy {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font: 500 0.75rem/1.4 var(--sans);
  cursor: pointer;
}

.v-cmd-copy:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.v-cmd-copy[data-copied="true"] {
  color: var(--lime-text);
}

.setup-alt {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

/* Pricing and questions */

.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem 4rem;
  align-items: start;
}

.plan {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.plan-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.plan h3 {
  font-size: 1.125rem;
  font-weight: 650;
}

.plan-price {
  font-size: 2.75rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan ul {
  display: grid;
  gap: 0.55rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.plan li {
  display: flex;
  gap: 0.6rem;
}

.plan li::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.3rem;
  border-radius: 999px;
  background: var(--lime-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%234e6910' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 0.75rem no-repeat;
}

:root[data-theme="dark"] .plan li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23cff56a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.plan-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.qs {
  display: grid;
  border-top: 1px solid var(--line);
}

.q {
  border-bottom: 1px solid var(--line);
}

.q summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.q summary::after {
  content: "+";
  flex: none;
  font-weight: 400;
  color: var(--ink-faint);
  transition: transform 0.2s var(--ease);
}

.q[open] summary::after {
  transform: rotate(45deg);
}

.q p {
  padding-bottom: 1.2rem;
  max-width: 40rem;
  color: var(--ink-soft);
}

/* Close */

.close {
  padding-block: clamp(5rem, 3rem + 8vw, 10rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.close .h2 {
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.4rem);
  letter-spacing: -0.035em;
}

.close .lede {
  margin: 1.25rem auto 0;
}

.close .hero-cta {
  justify-content: center;
}

.foot {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.foot a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

/* ─── /mcp ────────────────────────────────────────────────────────── */

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.mcp-hero h1 {
  max-width: 14em;
}

.mcp-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem 4rem;
  align-items: center;
}

.mcp-top .facts {
  grid-template-columns: repeat(2, minmax(0, auto));
}

.mcp-session {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.mcp-session .cn-term {
  padding: 1.25rem 1.35rem;
  font-size: 0.8125rem;
}

@media (max-width: 64rem) {
  .mcp-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: start;
  gap: 1rem 2.5rem;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.facts dd {
  margin: 0.2rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  overflow-wrap: break-word;
}

.facts code {
  font-weight: 500;
}

.loop {
  display: grid;
  gap: 0;
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.loop > li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 1.25rem 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.loop-n {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.875rem;
}

.loop-body {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.loop-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.loop-body > p {
  max-width: 40rem;
  color: var(--ink-soft);
}

.out {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.out .e {
  color: var(--flag);
}

.out .w {
  color: var(--ink);
}

.loop-tools {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.loop-tools code,
.toolsets code {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.75rem;
}

.toolsets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem 2.5rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.toolsets h3 {
  font-size: 1.0625rem;
  font-weight: 650;
}

.toolsets p {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.toolsets ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

/* One row per client: who, the one thing to do, what happens next. */
.connect {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.cx {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) minmax(0, 15rem);
  align-items: center;
  gap: 0.75rem 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.cx h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 650;
}

.cx h3 [data-agent],
.cx-i {
  display: inline-grid;
  place-items: center;
}

.cx h3 svg {
  width: 1.1rem;
  height: 1.1rem;
}

.cx-a {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cx-alt {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.cx p {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

@media (max-width: 48rem) {
  .cx {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 64rem) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loop > li {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .loop-tools {
    grid-column: 2;
  }

}

@media (max-width: 30rem) {
  .loop > li {
    grid-template-columns: minmax(0, 1fr);
  }

  .loop-tools {
    grid-column: 1;
  }
}

/* ─── Artboards. Their own palettes; the page theme never reaches in. ─ */

/* Moss is drawn as a first-party iOS app: SF, grouped inset lists, system colours. */
.moss {
  --m-bg: #f2f2f7;
  --m-surface: #ffffff;
  --m-ink: #000000;
  --m-soft: #6c6c70;
  --m-faint: #aeaeb2;
  --m-line: #d1d1d6;
  --moss: #248a3d;
  --moss-soft: #e5e5ea;
  --m-on: #ffffff;
  --m-switch: #34c759;
  --c-food: #ff9500;
  --c-home: #5856d6;
  --c-fun: #ff2d55;
  --c-move: #30b0c7;
  --m-num: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--m-bg);
  color: var(--m-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color-scheme: light;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

.moss * {
  transition: inherit;
  transition-property: background-color, color, border-color;
}

.moss p,
.moss h2,
.moss h3 {
  margin: 0;
}

.m-phone {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}

.m-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  margin: 0 -16px;
  padding: 14px 30px 0 34px;
  font-weight: 600;
  font-size: 17px;
}

.m-sig {
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-sig i {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.m-sig i::before,
.m-sig i::after,
.m-sig s,
.m-sig s::before {
  content: "";
  display: block;
  width: 3px;
  border-radius: 1px;
  background: currentColor;
}

.m-sig i::before {
  height: 5px;
}

.m-sig i::after {
  height: 7px;
}

.m-sig s {
  height: 9px;
}

.m-sig u {
  display: block;
  width: 24px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3.5px;
  padding: 1.5px;
  opacity: 0.9;
}

.m-sig u::before {
  content: "";
  display: block;
  width: 70%;
  height: 100%;
  border-radius: 1.5px;
  background: currentColor;
}

/* Large title, with the date above it the way Health and Fitness do. */
.m-nav {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 6px;
}

.m-date {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--m-soft);
}

.m-h {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.m-sub {
  margin-top: 4px;
  font-size: 15px;
  color: var(--m-soft);
}

.m-card {
  padding: 14px 16px 16px;
  border-radius: 12px;
  background: var(--m-surface);
}

.m-lab {
  font-size: 15px;
  color: var(--m-soft);
}

.m-big {
  margin-top: 2px;
  font-family: var(--m-num);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.m-big small {
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--m-soft);
}

.m-up {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--moss);
}

/* Section header: title left, a tinted text button right. */
.m-sec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 10px 0 -4px;
}

.m-sec b {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.m-sec span {
  font-size: 17px;
  color: var(--moss);
}

.m-spent {
  margin-top: 14px;
  font-size: 15px;
  color: var(--m-soft);
}

.m-spent b {
  margin-right: 4px;
  font-family: var(--m-num);
  font-size: 28px;
  font-weight: 700;
  color: var(--m-ink);
  font-variant-numeric: tabular-nums;
}

.m-bar {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--moss-soft);
}

.m-bar i {
  display: block;
  width: calc(var(--p) * 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--c, var(--moss));
}

.m-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-list.m-card {
  padding: 0 0 0 16px;
}

.m-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0 12px;
  align-items: center;
  min-height: 60px;
  padding: 8px 16px 8px 0;
  border-bottom: 1px solid var(--m-line);
  font-size: 17px;
}

.m-list li:last-child {
  border-bottom: 0;
}

.m-list b {
  font-weight: 400;
}

.m-list span {
  font-size: 15px;
  color: var(--m-soft);
}

.m-list em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.m-list .m-bar {
  grid-column: 2 / -1;
  margin-top: 2px;
}

/* A merchant monogram, the way Wallet lists payments. */
.m-dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--c);
  color: var(--m-on);
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
}

.m-av {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--m-faint);
  color: var(--m-on);
  font-size: 15px;
  font-weight: 600;
}

.m-btn {
  display: block;
  padding: 15px 20px;
  border-radius: 12px;
  background: var(--moss);
  color: var(--m-on);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.m-btn-2 {
  display: block;
  padding: 14px;
  font-size: 17px;
  text-align: center;
  color: var(--moss);
}

/* Tab bar with SF-Symbols-style glyphs, in the order every Moss screen uses. */
.m-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: auto -16px 0;
  padding: 7px 8px 34px;
  border-top: 1px solid var(--m-line);
  background: var(--m-surface);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--m-soft);
}

.m-tabs span::before,
.sz-nav span::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 3px;
  background: currentColor;
  -webkit-mask: var(--g) center / contain no-repeat;
  mask: var(--g) center / contain no-repeat;
}

.m-tabs span:nth-child(1),
.sz-nav span:nth-of-type(1) {
  --g: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3.2 2.8 11a1 1 0 0 0 1.3 1.5l.9-.8V20a1 1 0 0 0 1 1h4.5v-5.5h3V21H18a1 1 0 0 0 1-1v-8.3l.9.8A1 1 0 0 0 21.2 11Z'/></svg>");
}

.m-tabs span:nth-child(2),
.sz-nav span:nth-of-type(2) {
  --g: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11 3.05A9 9 0 1 0 20.95 13H11Z'/><path d='M13 2.05V11h8.95A9 9 0 0 0 13 2.05Z'/></svg>");
}

.m-tabs span:nth-child(3),
.sz-nav span:nth-of-type(3) {
  --g: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M16 2.5l5.5 4.75L16 12V8.6H7.5V5.9H16Z'/><path d='M8 12l-5.5 4.75L8 21.5v-3.4h8.5v-2.7H8Z'/></svg>");
}

.m-tabs span:nth-child(4),
.sz-nav span:nth-of-type(4) {
  --g: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 4a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm0 14a8 8 0 0 1-6.2-2.9C7 15.3 9.3 14.5 12 14.5s5 .8 6.2 2.6A8 8 0 0 1 12 20Z'/></svg>");
}

.m-tabs .on {
  color: var(--moss);
}

@container (min-width: 700px) {
  .sz-nav span::before {
    margin: 0;
  }
}

/* Native segmented control. */
.m-seg {
  display: flex;
  padding: 2px;
  border-radius: 9px;
  background: var(--moss-soft);
  font-size: 13px;
}

.m-seg b,
.m-seg span {
  flex: 1;
  padding: 5px 0;
  border-radius: 7px;
  font-weight: 500;
  text-align: center;
}

.m-seg b {
  background: var(--m-surface);
  font-weight: 600;
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 4%), 0 3px 8px rgb(0 0 0 / 12%);
}

/* Spending so far against last month, as a running total. */
.m-chart {
  display: block;
  width: 100%;
  height: 120px;
  margin-top: 14px;
  overflow: visible;
}

.m-chart path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.m-chart .grid {
  stroke: var(--m-line);
  stroke-width: 1;
}

.m-chart .last {
  stroke: var(--m-faint);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.m-chart .line {
  stroke: var(--moss);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.m-chart .now {
  stroke: var(--moss);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.m-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--m-soft);
  font-variant-numeric: tabular-nums;
}

.m-key {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--m-soft);
}

.m-key i {
  display: inline-block;
  width: 14px;
  height: 0;
  margin-right: 6px;
  border-top: 3px solid var(--moss);
  vertical-align: 3px;
}

.m-key .k-last {
  border-top: 2px dashed var(--m-faint);
}

.m-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Moss · amounts and actions */

.m-amt {
  padding: 18px 0 2px;
  text-align: center;
}

.m-amt .m-big {
  font-size: 64px;
  line-height: 1.1;
}

.m-actions {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-bottom: 30px;
}

/* Moss · settings */

.m-group {
  padding: 0 0 0 16px;
}

.m-group-h {
  margin: 10px 16px -6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--m-soft);
}

.m-set {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-right: 16px;
  border-bottom: 1px solid var(--m-line);
  font-size: 17px;
}

.m-set:last-child {
  border-bottom: 0;
}

.m-set span {
  color: var(--m-soft);
}

.m-set span::after,
.m-chev::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-top: 2px solid var(--m-faint);
  border-right: 2px solid var(--m-faint);
  transform: rotate(45deg);
  vertical-align: 1px;
}

.m-tog {
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: var(--m-switch);
}

.m-tog::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: var(--m-surface);
  box-shadow: 0 3px 8px rgb(0 0 0 / 15%);
}

.m-tog.off {
  background: var(--moss-soft);
}

.m-tog.off::after {
  right: auto;
  left: 2px;
}

.m-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  padding: 10px 16px;
}

.m-profile .m-av {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.m-profile div {
  flex: 1;
}

.m-profile b {
  display: block;
  font-size: 20px;
  font-weight: 600;
}

.m-profile span {
  font-size: 15px;
  color: var(--m-soft);
}

/* Moss · split */

.m-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 44px;
}

.m-back {
  font-size: 17px;
  color: var(--moss);
}

.m-top h3 {
  font-size: 17px;
  font-weight: 600;
}

.m-people li {
  min-height: 56px;
}

.m-chip {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--moss-soft);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.m-amt + div {
  text-align: center;
}

.check[data-v="1"] .m-chip {
  width: 150px;
  overflow: hidden;
  text-overflow: clip;
}

.m-caption {
  font-size: 13px;
  text-align: center;
  color: var(--m-soft);
}

.check[data-v="1"] .m-caption {
  color: var(--m-faint);
}

.check[data-v="1"] #split-btn {
  background: #2e9147;
}

.check[data-v="2"] #split-btn {
  margin-top: 6px;
  padding: 19px 20px;
  border-radius: 14px;
  font-size: 19px;
  font-weight: 700;
}

/* Moss · onboarding, the welcome sheet Apple's own apps open with. */

.m-onb {
  gap: 0;
}

.moss .m-welcome {
  margin: 84px 0 52px;
  font-size: 36px;
  line-height: 1.15;
  text-align: center;
}

.m-welcome span {
  color: var(--moss);
}

.m-feats {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0 10px 0 6px;
  list-style: none;
}

.m-feats li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.m-feats svg {
  width: 40px;
  height: 40px;
  fill: var(--moss);
}

.m-feats b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.m-feats span {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--m-soft);
}

/* Moss · home: the plain first draft, a different app's defaults. */

.xp-draft {
  --m-bg: #ffffff;
  --m-surface: #f4f5f7;
  --m-ink: #111827;
  --m-soft: #6b7280;
  --m-faint: #9ca3af;
  --m-line: #e5e7eb;
  --moss: #2563eb;
  --moss-soft: #dbeafe;
  gap: 16px;
  padding: 0 20px;
}

.xp-draft .m-h {
  font-size: 26px;
}

.xp-draft .m-big {
  font-family: inherit;
}

.xp-draft .m-dot {
  border-radius: 8px;
  background: var(--m-line);
  color: var(--m-soft);
}

.xp-draft .m-list.m-card {
  padding: 0 0 0 14px;
}

.xp-draft .m-tabs {
  margin: auto -20px 0;
}

.xp-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Night: the same iOS system in dark, true black, no glow. */

.xp-night {
  --m-bg: #000000;
  --m-surface: #1c1c1e;
  --m-ink: #ffffff;
  --m-soft: #98989f;
  --m-faint: #636366;
  --m-line: #38383a;
  --moss: #30d158;
  --moss-soft: #2c2c2e;
  --m-on: #000000;
  --c-food: #ff9f0a;
  --c-move: #40c8e0;
  --c-fun: #ff375f;
  color-scheme: dark;
}

.xn-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 6px;
}

.xn-hero {
  padding: 18px 16px 16px;
  border-radius: 12px;
  background: var(--m-surface);
}

.xn-big {
  margin-top: 4px;
  font-family: var(--m-num);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.xn-big sup {
  font-size: 0.5em;
  color: var(--m-soft);
  vertical-align: 0.7em;
}

.xn-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.xn-acts .xn-ghost {
  background: var(--moss-soft);
  color: var(--m-ink);
}

.xp-night .m-dot,
.xp-night .m-av {
  color: var(--m-ink);
}

.xn-in {
  color: var(--moss);
}

.xp-night .m-tabs {
  background: var(--m-surface);
}

/* Ledger: data first. One typeface, hairline rules, red only where it is over. */

.xp-ledger {
  --m-bg: #ffffff;
  --m-surface: #ffffff;
  --m-ink: #0a0a0a;
  --m-soft: #5f5f5f;
  --m-line: #0a0a0a;
  --moss: #0a0a0a;
  --l-red: #e0301e;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  gap: 0;
  padding: 0 20px;
}

.xl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--m-ink);
}

.xl-head h3 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.xl-head span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.xl-total {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--m-line);
}

.xl-total p {
  padding: 14px 0 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.xl-total p + p {
  padding-left: 14px;
  border-left: 1px solid var(--m-line);
}

.xl-total b {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  letter-spacing: -0.03em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

.xl-strip {
  display: flex;
  height: 14px;
  margin: 16px 0 6px;
  gap: 2px;
}

.xl-strip i {
  flex: var(--g) 1 0;
  background: var(--m-ink);
}

.xl-strip i:nth-child(2) {
  opacity: 0.6;
}

.xl-strip i:nth-child(3) {
  background: var(--l-red);
}

.xl-strip i:nth-child(4) {
  opacity: 0.3;
}

.xl-strip i:last-child {
  background: none;
  box-shadow: inset 0 0 0 1px var(--m-ink);
}

.xl-tab {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.xl-tab th {
  padding: 8px 0;
  border-bottom: 1px solid var(--m-line);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: right;
}

.xl-tab td {
  padding: 13px 0;
  border-bottom: 1px solid rgb(10 10 10 / 15%);
  text-align: right;
}

.xl-tab th:first-child,
.xl-tab td:first-child {
  text-align: left;
}

.xl-tab td:first-child {
  font-weight: 700;
}

.xl-tab .over td:last-child {
  font-weight: 700;
  color: var(--l-red);
}

.xp-ledger .m-tabs {
  margin: auto -20px 0;
  border-top: 3px solid var(--m-ink);
  color: var(--m-soft);
}

.xp-ledger .m-tabs .on {
  color: var(--m-ink);
}

/* Bright: neo-brutalism. Thick rules, hard shadows, flat colour, heavy grotesk. */

@font-face {
  font-family: "Archivo Black";
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/ArchivoBlack-400.woff2) format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-weight: 300 700;
  font-display: swap;
  src: url(assets/fonts/SpaceGrotesk.woff2) format("woff2");
}

@font-face {
  font-family: "Space Mono";
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/SpaceMono-700.woff2) format("woff2");
}

.xp-bright {
  --m-bg: #f3efe6;
  --m-surface: #ffffff;
  --m-ink: #111111;
  --m-soft: #111111;
  --moss: #111111;
  --b-yel: #ffd400;
  --b-blue: #2f4cff;
  --b-org: #ff6b3d;
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: 0;
  gap: 18px;
  padding: 0 18px;
  background-color: var(--m-bg);
  background-image:
    linear-gradient(#e2ddd0 1px, transparent 1px),
    linear-gradient(90deg, #e2ddd0 1px, transparent 1px);
  background-size: 26px 26px;
}

.xb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.xb-logo {
  padding: 9px 12px 8px;
  background: var(--m-ink);
  color: var(--m-bg);
  font: 400 22px / 1 "Archivo Black", sans-serif;
}

.xb-tag {
  padding: 8px 10px;
  border: 3px solid var(--m-ink);
  background: var(--m-surface);
  box-shadow: 3px 3px 0 var(--m-ink);
  font: 700 13px / 1 "Space Mono", monospace;
}

.xb-box {
  border: 3px solid var(--m-ink);
  background: var(--m-surface);
  box-shadow: 6px 6px 0 var(--m-ink);
}

.xb-sum {
  padding: 16px 16px 18px;
  background: var(--b-yel);
}

.xb-lab {
  font: 700 12px / 1 "Space Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.xb-big {
  margin-top: 10px;
  font: 400 88px / 0.9 "Archivo Black", sans-serif;
  letter-spacing: -0.03em;
}

.xb-acts {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.xb-acts span {
  padding: 15px 12px 13px;
  border: 3px solid var(--m-ink);
  background: var(--m-surface);
  box-shadow: 4px 4px 0 var(--m-ink);
  font: 400 16px / 1 "Archivo Black", sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.xb-acts span:first-child {
  background: var(--b-blue);
  color: var(--m-surface);
}

.xb-where {
  padding: 14px 14px 16px;
}

.xb-bars {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.xb-bars p {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.xb-bars i {
  display: block;
  width: calc(var(--g) / 412 * 100%);
  height: 30px;
  border: 3px solid var(--m-ink);
  background: var(--c);
  font: 400 14px / 24px "Archivo Black", sans-serif;
  font-style: normal;
  min-width: 52px;
  padding-left: 6px;
  white-space: nowrap;
}

.xb-bars p:nth-child(2) i {
  color: var(--m-surface);
}

.xp-bright .m-tabs {
  margin: auto 0 24px;
  padding: 0;
  border: 3px solid var(--m-ink);
  background: var(--m-surface);
  box-shadow: 5px 5px 0 var(--m-ink);
  font: 700 13px / 48px "Space Grotesk", sans-serif;
  color: var(--m-ink);
}

.xp-bright .m-tabs span::before {
  display: none;
}

.xp-bright .m-tabs span + span {
  border-left: 3px solid var(--m-ink);
}

.xp-bright .m-tabs .on {
  background: var(--m-ink);
  color: var(--b-yel);
}

/* Beacon — a dark analytics dashboard */

.beacon {
  --b-bg: #0b0d12;
  --b-panel: #12151c;
  --b-line: #1e2330;
  --b-ink: #e9ebf1;
  --b-soft: #8d95a8;
  --b-acc: #ff8a3d;
  --b-good: #5fd39a;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  padding: 22px 28px 28px;
  background: var(--b-bg);
  color: var(--b-ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
}

.b-top {
  display: flex;
  align-items: center;
  gap: 26px;
}

.b-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.b-logo i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--b-acc);
  box-shadow: inset -6px -6px 0 rgb(0 0 0 / 22%);
}

.b-tabs {
  display: flex;
  gap: 6px;
  color: var(--b-soft);
}

.b-tabs span {
  padding: 7px 12px;
  border-radius: 8px;
}

.b-tabs .on {
  background: var(--b-panel);
  color: var(--b-ink);
}

.b-range {
  margin-left: auto;
  padding: 7px 12px;
  border: 1px solid var(--b-line);
  border-radius: 8px;
  color: var(--b-soft);
  font-family: var(--mono);
  font-size: 12px;
}

.b-kpis {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--b-line);
  border-radius: 14px;
  background: var(--b-line);
}

.b-kpis div {
  padding: 18px 20px;
  background: var(--b-panel);
}

.b-kpis span {
  display: block;
  color: var(--b-soft);
  font-size: 13px;
}

.b-kpis b {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.b-kpis div:first-child b {
  font-size: 42px;
}

.b-kpis em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--b-good);
}

.b-body {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
}

.b-panel {
  padding: 18px 20px;
  border: 1px solid var(--b-line);
  border-radius: 14px;
  background: var(--b-panel);
}

.b-panel h5 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
}

.b-panel h5 span {
  font-weight: 400;
  color: var(--b-soft);
}

.b-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 250px;
  padding-top: 10px;
  border-bottom: 1px solid var(--b-line);
}

.b-bars i {
  flex: 1;
  height: calc(var(--h) * 1%);
  border-radius: 4px 4px 0 0;
  background: #2a3142;
}

.b-bars i.hi {
  background: var(--b-acc);
}

.b-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--b-soft);
}

.b-table {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.b-table li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--b-line);
}

.b-table li:last-child {
  border-bottom: 0;
}

.b-table span {
  font-family: var(--mono);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b-table b {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--b-soft);
}

.b-table i {
  grid-column: 1 / -1;
  display: block;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--b-acc) calc(var(--p) * 100%), #1c212d 0);
}

/* Tempo — a habit tracker */

.tempo {
  --t-bg: #fff6ee;
  --t-card: #ffffff;
  --t-ink: #221a14;
  --t-soft: #7b6a5d;
  --t-line: #f0e2d4;
  --t-acc: #ff6b3d;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 22px 30px;
  background: var(--t-bg);
  color: var(--t-ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

.t-head p {
  color: var(--t-soft);
  font-size: 15px;
  font-weight: 600;
}

.t-head h3 {
  margin: 2px 0 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.t-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
  padding: 16px;
  border-radius: 22px;
  background: var(--t-card);
}

.t-grid i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: color-mix(in srgb, var(--t-acc) calc(var(--l, 0) * 25%), var(--t-line));
}

.t-grid-h {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 600;
  color: var(--t-soft);
}

.t-grid-h b {
  color: var(--t-acc);
}

.t-habits {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.t-habits li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--t-card);
}

.t-habits li > i {
  width: 40px;
  height: 40px;
  border: 3px solid var(--t-line);
  border-radius: 999px;
}

.t-habits li.done > i {
  border-color: var(--t-acc);
  background: var(--t-acc)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.3 8.3l2.4 2.4 5-5.2' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 22px no-repeat;
}

.t-habits b {
  display: block;
  font-size: 17px;
  font-weight: 700;
}

.t-habits span {
  font-size: 14px;
  color: var(--t-soft);
}

.t-habits em {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--t-acc);
}

/* Slate — a team week calendar */

.slate {
  --s-bg: #ffffff;
  --s-ink: #1b1d24;
  --s-soft: #6b7080;
  --s-line: #eceef3;
  --s-a: #4b6bfb;
  --s-b: #16a37f;
  --s-c: #e5484d;
  --s-d: #f5a524;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  background: var(--s-bg);
  color: var(--s-ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.35;
}

.s-rail {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 20px;
  border-right: 1px solid var(--s-line);
  background: #f8f9fb;
}

.s-rail h5 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--s-soft);
}

.s-rail .s-logo {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.s-proj {
  display: grid;
  gap: 8px;
  font-weight: 500;
}

.s-proj span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.s-proj span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
}

.s-main {
  display: grid;
  grid-template-rows: auto auto 1fr;
  padding: 22px 26px;
}

.s-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.s-head h4 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.s-head span {
  margin-left: auto;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--s-ink);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.s-days {
  display: grid;
  grid-template-columns: 44px repeat(5, 1fr);
  border-bottom: 1px solid var(--s-line);
  padding-bottom: 8px;
  font-size: 13px;
  color: var(--s-soft);
}

.s-days b {
  display: block;
  font-size: 20px;
  color: var(--s-ink);
}

.s-days .today b {
  color: var(--s-a);
}

.s-week {
  display: grid;
  grid-template-columns: 44px repeat(5, 1fr);
  grid-template-rows: repeat(16, 34px);
  column-gap: 6px;
  background-image: linear-gradient(var(--s-line) 1px, transparent 1px);
  background-size: 100% 68px;
  background-position: 0 -1px;
}

.s-week em {
  grid-column: 1;
  font-style: normal;
  font-size: 11px;
  color: var(--s-soft);
  transform: translateY(-7px);
}

.s-ev {
  margin: 2px 0;
  padding: 7px 9px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--c) 14%, white);
  box-shadow: inset 3px 0 0 var(--c);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
}

.s-ev span {
  display: block;
  font-weight: 400;
  color: var(--s-soft);
}

/* ─── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 56rem) {
  .nav-menu {
    display: block;
  }

  .nav-mcp {
    display: none;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 64rem) {

  .split,
  .price {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-copy {
    position: static;
  }

  .tile-wide,
  .tile-tall {
    grid-column: span 12;
  }

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

  .ww-tag-off,
  .ww-by,
  .ww-tag-on,
  .ww-with {
    grid-area: auto;
  }

  .ww-tag-on {
    margin-top: 1.5rem;
  }

  .ww-by {
    contain: none;
    height: 27rem;
  }
}

@media (max-width: 48rem) {
  .v-row {
    grid-template-columns: 1.75rem minmax(0, 1fr);
    padding: 1.2rem 1rem;
  }

  .v-row-a {
    grid-column: 1 / -1;
  }

  .nav-end .btn-ghost {
    display: none;
  }

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

  .check .fr {
    --z: 0.56;
  }

  .rules li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .rules svg {
    transform: rotate(90deg);
  }

  .tile-wide .fr {
    --z: 0.24;
  }

  .tile-tall .fr {
    --z: 0.62;
  }

  .ib-file {
    display: none;
  }

  .ds {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }

  .ds-insp {
    display: none;
  }
}

/* ─── Slides and posts: one scene each, played in numbered steps ─── */

.sc {
  position: relative;
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0;
}

.sc .ib-cur {
  z-index: calc(var(--z-ptr) + 2);
}

.sc-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.sc-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: var(--chrome);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  counter-increment: step;
  transition:
    background-color 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}

.sc-steps li::before {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--muted);
  font: 600 0.6875rem / 1 var(--mono);
  content: counter(step);
}

.sc-steps li.done::before {
  color: var(--lens);
  content: "✓";
}

.sc-steps li.on {
  background: var(--ink);
  box-shadow: none;
  color: var(--page);
}

.sc-steps li.on::before {
  background: var(--lime);
  color: #15171a;
}

.sc-win {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sc-tools {
  display: flex;
  gap: 0.35rem;
  margin-left: 0.5rem;
}

.sc-tool,
.pg-dl,
.pg-fold {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 1.6rem;
  padding: 0 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  transition:
    transform 0.12s,
    background-color 0.2s,
    color 0.2s;
}

.sc-tool svg,
.pg-dl svg,
.pg-fold svg {
  width: 0.8rem;
  height: 0.8rem;
}

.sc-tool.press,
.pg-dl.press {
  background: var(--ink);
  color: var(--page);
  transform: scale(0.94);
}

/* Short enough that the steps, the bar and the scene fit on one screen. */
.sc-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  max-height: calc(100svh - 12.5rem);
  overflow: hidden;
  container-type: size;
}

/* What you asked for, over the board until the work lands. */
.sc-say {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  display: grid;
  gap: 0.45rem;
  width: min(27rem, calc(100% - 2rem));
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.35s,
    transform 0.35s var(--ease);
}

.sc-say.on {
  opacity: 1;
  transform: none;
}

.sc-say .say-line {
  box-shadow: 0 8px 22px rgb(0 0 0 / 8%);
}

.sc-say .typing::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: var(--ink);
  animation: pulse 1s steps(1) infinite;
}

/* What you took away: the file, named, with what is in it. */
.sc-file {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 10px 28px rgb(0 0 0 / 16%);
  font-size: 0.8125rem;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s,
    transform 0.35s var(--ease);
}

.sc-file svg {
  width: 1rem;
  height: 1rem;
  color: var(--ink-soft);
}

.sc-file span {
  color: var(--ink-faint);
  font: 500 0.75rem / 1.3 var(--mono);
}

.sc-file.on {
  opacity: 1;
  transform: none;
}

/* ── Slides: on the board, presenting, then the deck open ── */

.sl-board,
.sl-present,
.sl-deck {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s var(--ease),
    visibility 0s 0.45s;
}

.sl[data-view="board"] .sl-board,
.sl[data-view="present"] .sl-present,
.sl[data-view="deck"] .sl-deck {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease);
}

.sl-mini {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--mw);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  container-type: inline-size;
  border-radius: 6px;
  box-shadow: var(--frame-shadow);
  opacity: 0;
  transform: translate(var(--x), var(--y)) rotate(var(--r, 0deg));
  transition:
    transform 0.6s var(--ease),
    opacity 0.35s;
}

.sl-mini.on {
  opacity: 1;
}

.sl-mini .dk-slide,
.sl-now .dk-slide,
.sl-next .dk-slide {
  border-radius: inherit;
}

.sl-mini .dk-slide {
  opacity: 1;
}

.sl-mini .dk-flag,
.sl-now .dk-flag,
.sl-next .dk-flag {
  display: none;
}

.sl-stack-name {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin: 0;
  font-size: 0.875rem;
  white-space: nowrap;
}

.sl-stack-name span {
  color: var(--ink-faint);
  font: 500 0.75rem / 1 var(--mono);
}

.sl-board .sl-stack-name {
  position: absolute;
  left: 50%;
  top: var(--name-y, 80%);
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.3s;
}

.sl.is-stacked .sl-board .sl-stack-name {
  opacity: 1;
}

.sl-present {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  background: #0d0e10;
  color: #f1f1ec;
}

.sl-now,
.sl-next {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  container-type: inline-size;
  border-radius: 8px;
}

.sl-side {
  display: grid;
  gap: 0.5rem;
  align-content: center;
}

.sl-lab {
  margin: 0.25rem 0 0;
  color: #878b93;
  font: 600 0.625rem / 1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sl-notes {
  min-height: 4.5em;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.sl-clock {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid #2e3138;
  color: #abafb6;
  font: 500 0.8125rem / 1 var(--mono);
  font-variant-numeric: tabular-nums;
}

.sl-deck {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) 15rem;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
}

.dk-strip {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dk-t {
  display: grid;
  grid-template-columns: 0.9rem minmax(0, 1fr);
  gap: 0.35rem;
  align-items: start;
  color: var(--ink-faint);
  font: 600 0.625rem / 1 var(--mono);
}

.dk-t em {
  grid-column: 1;
  justify-self: center;
  font-style: normal;
}

.dk-ok {
  color: var(--lens);
}

.dk-bad {
  color: var(--flag);
}

.dk-mini {
  grid-row: span 2;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: var(--pic) center / cover;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.2s;
}

.dk-t.on .dk-mini {
  box-shadow: 0 0 0 2px var(--accent);
}

.dk-stage {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  /* Room below it for what runs off the slide. */
  width: min(100%, (100cqh - 9rem) * 16 / 9);
  border-radius: 10px;
  box-shadow: var(--frame-shadow);
}

/* A slide is Puck's own render; 1cqi is 19.2 of its 1920 px. */
.dk-slide {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #000;
  /* Set by the slide's own width, so a small slide is the same slide, smaller. */
  font-size: 3.2cqi;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.dk-slide.on {
  opacity: 1;
}

.dk-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

/* Slide 2's faces, over the same row in the render: 4 tiles of 360 × 222 at x 140, y 560. */
.dk-faces {
  position: absolute;
  top: 29.1667cqi;
  left: 7.2917cqi;
  display: grid;
  grid-template-columns: repeat(4, 18.75cqi);
  gap: 1.25cqi;
  width: 78.75cqi;
  background: #000;
}

.dk-faces img {
  display: block;
  width: 100%;
  height: auto;
}

/* The first draft: the tiles half as big again, two by two, past the bottom edge. */
.dk-fix:not(.fit) .dk-faces {
  grid-template-columns: repeat(2, 28.125cqi);
}

/* What the slide cannot hold: drawn past its bottom edge, where the room would lose it. */
.dk-stage .dk-fix:not(.fit) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 2px 0 0 var(--coral);
}

/* A veil over whatever hangs past the edge. */
.dk-stage .dk-fix:not(.fit)::after {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 5em;
  background: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, var(--canvas) 70%, transparent) 0 6px,
    color-mix(in srgb, var(--coral) 22%, var(--canvas)) 6px 8px
  );
  content: "";
}

.dk-flag {
  position: absolute;
  right: 3%;
  bottom: -1.1em;
  z-index: 1;
  padding: 0.3em 0.7em;
  border-radius: 6px;
  background: var(--flag-bg);
  color: var(--flag);
  font: 600 0.75em / 1.2 var(--sans);
}

.dk-fix.fit .dk-flag {
  display: none;
}

.dk-stage .el-sel {
  border-radius: 4px;
}

.dk-ask {
  position: absolute;
  z-index: var(--z-ptr);
  left: 8px;
  display: grid;
  gap: 8px;
  width: min(22.5rem, calc(100% - 16px));
  padding: 10px 12px 12px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 10px 28px rgb(0 0 0 / 18%);
  color: var(--ink);
  font: 400 0.8125rem / 1.4 var(--sans);
}

.dk-ask[hidden] {
  display: none;
}

.dk-ask-what {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.dk-ask-what span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dk-ask-what i {
  font-style: normal;
}

.dk-ask-field {
  min-height: 2.4rem;
}

.dk-ask-field span:empty::before {
  content: attr(data-ph);
  color: var(--ink-faint);
}

.dk-ask-field .typing::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -0.12em;
  background: var(--ink);
  animation: pulse 0.9s steps(1) infinite;
}

.dk-ask-go {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dk-btn {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 0.8125rem;
  white-space: nowrap;
  transition: transform 0.12s;
}

.dk-btn[data-primary] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--page);
  font-weight: 600;
}

.dk-btn.press {
  transform: scale(0.95);
}

.dk-notes {
  display: grid;
  align-content: start;
}

.dk-notes .why-note:first-child {
  margin-top: 0;
}

.sc.is-live .dk-note,
.sc.is-live .pg-note {
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.sc.is-live .dk-note:not(.on),
.sc.is-live .pg-note:not(.on) {
  opacity: 0;
  transform: translateY(6px);
}

/* ── Posts: one card on the board, opened in place as a grid ── */

.pg-card,
.pg-grid {
  transition:
    opacity 0.45s var(--ease),
    transform 0.5s var(--ease),
    visibility 0s 0.45s;
}

.pg[data-view="grid"] .pg-card,
.pg[data-view="board"] .pg-grid {
  opacity: 0;
  visibility: hidden;
}

.pg[data-view="board"] .pg-card,
.pg[data-view="grid"] .pg-grid {
  transition:
    opacity 0.45s var(--ease),
    transform 0.5s var(--ease);
}

.pg-card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 1rem;
  transform: translate(-50%, -50%);
}

.pg.is-live .pg-card:not(.on) {
  opacity: 0;
  transform: translate(-50%, -44%);
}

.pg[data-view="grid"] .pg-card {
  transform: translate(-50%, -50%) scale(1.6);
}

.pg-fan {
  display: flex;
  align-items: center;
}

.pg .fr {
  --z: var(--pg-z, 0.15);
  position: relative;
}

.pg-fan .fr {
  --z: 0.15;
  transition: transform 0.5s var(--ease);
}

.pg-fan .fr:nth-child(1) {
  transform: rotate(-7deg) translateX(22%);
}

.pg-fan .fr:nth-child(2) {
  z-index: 1;
}

.pg-fan .fr:nth-child(3) {
  transform: rotate(7deg) translateX(-22%);
}

.pg-card.wide .pg-fan .fr:nth-child(1) {
  transform: rotate(-11deg) translateX(8%);
}

.pg-card.wide .pg-fan .fr:nth-child(3) {
  transform: rotate(11deg) translateX(-8%);
}

.pg-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 11rem repeat(3, max-content);
  grid-auto-rows: max-content;
  gap: 0.75rem 1rem;
  align-content: center;
  justify-content: center;
  padding: 1rem 1rem 2.25rem;
}

.pg-fold {
  justify-self: start;
  align-self: end;
}

.pg-col {
  align-self: end;
  color: var(--ink-faint);
  font: 500 0.6875rem / 1.3 var(--mono);
  white-space: nowrap;
}

.pg-row {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.35rem;
}

.pg-row h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.25;
}

.pg-n {
  margin: 0 0 0.25rem;
  color: var(--ink-faint);
  font: 500 0.6875rem / 1.3 var(--mono);
}

.pg-po {
  align-self: start;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.pg.is-live .pg-grid .pg-po:not(.on) {
  opacity: 0;
  transform: scale(0.94);
}

/* The parts of a story Instagram covers with its own bars. */
.po-bar {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  background: repeating-linear-gradient(-45deg, rgb(255 112 93 / 55%) 0 5px, rgb(255 112 93 / 20%) 5px 9px);
  opacity: 0;
  transition:
    opacity 0.35s,
    background-color 0.35s;
}

.po-bar-top {
  top: 0;
  height: 14%;
}

.po-bar-bottom {
  bottom: 0;
  height: 35%;
}

.pg-story.flagged .po-bar {
  opacity: 1;
}

.pg-story.clear .po-bar {
  background: repeating-linear-gradient(-45deg, rgb(201 255 90 / 45%) 0 5px, rgb(201 255 90 / 15%) 5px 9px);
  opacity: 1;
}

/* On the line where the reply bar starts. */
.po-flag {
  position: absolute;
  top: 65%;
  left: 50%;
  z-index: 2;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: var(--flag-bg);
  color: var(--flag);
  font: 600 0.6875rem / 1.3 var(--sans);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgb(0 0 0 / 25%);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.pg-story.flagged .po-flag,
.pg-story.clear .po-flag {
  opacity: 1;
}

.pg-story.clear .po-flag {
  background: var(--lime-bg);
  color: var(--lime-text);
}

.pg .sc-file,
.ss .sc-file {
  left: 1rem;
  right: auto;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0.5rem;
  row-gap: 0.15rem;
}

.pg .sc-file svg,
.ss .sc-file svg {
  grid-row: span 2;
}

.pg .sc-file span,
.ss .sc-file span {
  grid-column: 2;
}

.pg-note {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  width: min(17rem, calc(100% - 2rem));
  margin: 0;
  box-shadow: 0 10px 28px rgb(0 0 0 / 12%);
}

/* A post: Puck's own render at the platform's pixels. */
.po-pic {
  height: calc(var(--h) * 1px);
  background: #000;
}

.po-pic img {
  display: block;
  width: 100%;
  height: 100%;
}

/* The first draft of the story: the same post pushed 640px down, its words into the reply bar. */
.po-draft {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.po-draft img {
  transform: translateY(640px);
}

.po-low .po-draft {
  opacity: 1;
}

/* The draft's words: the eyebrow, the headline and the line under it, y 290 to 750 before the push. */
.po-words {
  position: absolute;
  top: 930px;
  left: 80px;
  width: 920px;
  height: 460px;
}

/* A size nobody has drawn yet: an empty slot in the grid, as on the board. */
.pg-gap .fr-view {
  background: none;
  box-shadow: none;
  outline: 1.5px dashed var(--line);
  outline-offset: -1px;
}

.pg-none {
  display: grid;
  place-items: center;
  height: calc(var(--h) * 1px);
  color: var(--ink-faint);
  font: 500 64px / 1 var(--mono);
}

/* ── Store listing: every picture at the store's size, the text counted ── */

.ss-set {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: max-content max-content;
  align-content: center;
  justify-content: center;
  align-items: end;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1rem 4.25rem;
}

.ss-shots {
  display: grid;
  gap: 0.75rem;
}

.ss-kit {
  display: grid;
  gap: 0.75rem;
  width: max(calc(1024px * var(--ss-z, 0.1)), 12rem);
}

.ss-text {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.ss-t {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.1rem 0.5rem;
  margin: 0;
}

.ss-t span {
  grid-column: 1 / -1;
  color: var(--ink-faint);
  font: 500 0.625rem / 1.3 var(--mono);
}

.ss-t b {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1.3;
}

.ss-t i {
  align-self: end;
  color: var(--lime-text);
  font: 500 0.625rem / 1.3 var(--mono);
  font-style: normal;
  white-space: nowrap;
}

.ss-text .ss-ok {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.ss-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: opacity 0.35s var(--ease);
}

.ss-top h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.25;
}

.ss-row {
  display: flex;
  gap: 1rem;
}

.ss .fr {
  --z: var(--ss-z, 0.1);
  position: relative;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.ss.is-live .ss-fr:not(.on) {
  opacity: 0;
  transform: scale(0.94);
}

.ss .fr-head {
  min-height: 1.1rem;
  align-items: center;
}

.ss-ok {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--lime-bg);
  color: var(--lime-text);
  font: 700 0.625rem / 1 var(--sans);
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease);
}

.ss.is-live .ss-top:not(.on) {
  opacity: 0;
}

.ss.is-live .ss-ok:not(.on) {
  opacity: 0;
  transform: scale(0.6);
}

/* Over the frame that is caught. */
.ss-flag {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: var(--flag-bg);
  color: var(--flag);
  font: 600 0.6875rem / 1.3 var(--sans);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgb(0 0 0 / 25%);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.ss-fr.flagged .ss-flag,
.ss-fr.clear .ss-flag {
  opacity: 1;
}

.ss-fr.clear .ss-flag {
  background: var(--lime-bg);
  color: var(--lime-text);
}

.ss-fr.flagged .fr-view {
  box-shadow:
    0 0 0 2px var(--flag),
    var(--frame-shadow);
}

.ss-note {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  width: min(17rem, calc(100% - 2rem));
  margin: 0;
  box-shadow: 0 10px 28px rgb(0 0 0 / 12%);
}

.sc.is-live .ss-note {
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.sc.is-live .ss-note:not(.on) {
  opacity: 0;
  transform: translateY(6px);
}

/* A store picture at the store's own pixels: Praxis's real ones, as shipped in v1.1.0. */
.ss-pic {
  height: calc(var(--h) * 1px);
  background: #efede7;
}

.ss-pic img {
  display: block;
  width: 100%;
  height: 100%;
}

/* The first draft's headline on one line, over the shipped two-line one. #efede7 is the picture's own background. */
.ss-h {
  position: absolute;
  top: 370px;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  height: 330px;
  margin: 0;
  padding: 0 110px;
  background: #efede7;
  color: #1b1c1a;
  font: 750 150px / 1 var(--sans);
  letter-spacing: -0.035em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.ss-pic.ss-wide .ss-h {
  opacity: 1;
}

@media (max-width: 48rem) {
  .sc-body {
    aspect-ratio: 5 / 6;
  }

  .sc-tools .sc-tool:not(#sl-pdf) {
    display: none;
  }

  .sl-deck {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  .sl-deck .dk-strip {
    display: none;
  }

  .sl-present {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
  }

  .sl-present .sl-lab:first-child,
  .sl-next {
    display: none;
  }

  .pg .sc-body {
    aspect-ratio: 3 / 4;
  }

  .pg-grid {
    grid-template-columns: repeat(3, max-content);
  }

  .pg-fold {
    display: none;
  }

  /* Spans the columns without widening them: a long idea wraps instead. */
  .pg-row {
    grid-column: 1 / -1;
    width: 0;
    min-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.6rem;
  }

  .pg-n {
    margin: 0;
  }

  .pg-note {
    right: 1rem;
    width: auto;
  }

  .ss .sc-body {
    aspect-ratio: 2 / 3;
  }

  .ss-set {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 5.5rem;
  }

  .ss-row {
    gap: 0.5rem;
  }

  .ss-kit {
    grid-template-columns: max-content max-content minmax(0, 1fr);
    align-items: end;
    width: auto;
  }

  .ss-kit .fr-name {
    display: none;
  }

  .ss-text {
    width: auto;
  }

  .ss-t:last-of-type {
    display: none;
  }

  .ss .fr-size {
    display: none;
  }

  .ss-note {
    right: 1rem;
    width: auto;
  }
}

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

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

@media (max-width: 30rem) {
  .nav-in {
    gap: 0.75rem;
  }

  .nav-end {
    gap: 0.5rem;
  }

  .mark {
    font-size: 1.125rem;
  }

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

  .beta {
    display: none;
  }
}

@media (max-width: 37.5rem) {
  .tk-h {
    flex-direction: column;
    align-items: flex-start;
  }

  .tm-l {
    grid-template-columns: 0.9rem minmax(0, 1fr);
    white-space: normal;
  }

  .tm-l span {
    grid-column: 2;
  }
}

/* ─── /possible ───────────────────────────────────────────────────── */

.pz-hero h1 {
  max-width: 12em;
  font-size: clamp(2.6rem, 1.3rem + 4.4vw, 4.75rem);
}

.pz-hero .lede {
  margin-top: 1.5rem;
}

.pz-sec {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.pz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.pz {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--canvas);
}

.pz-wide {
  grid-column: 1 / -1;
}

.pz .say {
  max-width: none;
}

.pz-shots {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0.75rem;
  scroll-snap-type: x mandatory;
}

/* Each render at its measured shape; a long page shows its top, the link shows the rest. */
.pz-shot {
  position: relative;
  flex: none;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--frame-shadow);
  scroll-snap-align: start;
}

.pz-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar);
}

.pz-phone {
  max-height: 33rem;
}

.pz-phone {
  flex: 1 1 0;
  max-width: 15rem;
  min-width: min(13rem, 62vw);
}

/* Cut off at the card's height: fade out so it reads as more below, not broken. */
.pz-long {
  mask-image: linear-gradient(#000 82%, transparent);
}

.pz-desk {
  width: 100%;
}

.pz-slide {
  width: min(30rem, 80vw);
  border-radius: 8px;
}

.pz-post {
  width: min(15rem, 62vw);
  align-self: start;
  border-radius: 10px;
}

.pz-shot .dk {
  display: none;
}

:root[data-theme="dark"] .pz-shot.has-dark .lt {
  display: none;
}

:root[data-theme="dark"] .pz-shot.has-dark .dk {
  display: block;
}

.pz-open {
  justify-self: start;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.pz-open:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 52rem) {
  .pz-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─── /words ──────────────────────────────────────────────────────── */

.w-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.w-toc a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.w-toc a:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
}

.w-list {
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

.w {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: center;
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}

.w-text {
  display: grid;
  gap: 0.9rem;
}

.w-h {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.w-m {
  max-width: 34rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.w-demo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.w-pane {
  display: grid;
  gap: 0.5rem;
}

@media (max-width: 30rem) {
  .w-demo {
    grid-template-columns: minmax(0, 1fr);
  }
}

.w-lbl {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-faint);
}

/* The demos are tiny artboards: light, like a screen, in both themes. */
.w-stage {
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 6px;
  min-height: 9.5rem;
  padding: 1rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--frame-shadow);
  color: #15171a;
  font-size: 12px;
}

.w-stage i {
  font-style: normal;
}

.w-t {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.w-s {
  font-size: 11px;
  color: #6b7076;
}

.w-xl {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.w-bar {
  display: block;
  width: 8rem;
  height: 8px;
  border-radius: 4px;
  background: #c9ccd1;
}

.w-short {
  width: 5rem;
}

.w-card {
  display: grid;
  border: 1px solid #e3e5e8;
  border-radius: 10px;
}

.w-tight {
  gap: 2px;
  padding: 3px;
}

.w-airy {
  gap: 10px;
  padding: 16px;
}

.w-rows {
  display: grid;
  width: 9rem;
}

.w-rows i {
  display: block;
  border-bottom: 1px solid #e3e5e8;
}

.w-loose i {
  height: 30px;
}

.w-dense i {
  height: 15px;
}

.w-col {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.w-even {
  gap: 10px;
}

.w-c {
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: #6b7076;
}

.w-para {
  max-width: 12rem;
  font-size: 11px;
  line-height: 1.5;
  color: #3b3f45;
}

.w-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.w-chip {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.w-dot {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.w-btn {
  padding: 6px 12px;
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.w-link {
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #3157d5;
}

.w-sk {
  background: linear-gradient(90deg, #e6e8eb, #f2f3f5, #e6e8eb);
  background-size: 200% 100%;
  animation: w-shimmer 1.6s linear infinite;
}

@keyframes w-shimmer {
  to {
    background-position: -200% 0;
  }
}

.w-spin {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #d5d8dc;
  border-top-color: #6b7076;
  border-radius: 999px;
  animation: w-spin 0.9s linear infinite;
}

@keyframes w-spin {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  .w-sk,
  .w-spin {
    animation: none;
  }
}

.w-tap {
  display: block;
  border-radius: 8px;
  background: #e8edff;
  box-shadow: inset 0 0 0 1.5px #3157d5;
}

.w-phone {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  width: 5.5rem;
  height: 7.5rem;
  padding: 10px 8px;
  border: 1px solid #e3e5e8;
  border-radius: 12px;
  overflow: hidden;
}

.w-phone .w-bar {
  width: 100%;
}

.w-phone .w-short {
  width: 60%;
}

.w-foot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  height: 16px;
  border-radius: 5px;
  background: #3157d5;
}

.w-mini {
  display: block;
  width: 2.25rem;
  height: 4rem;
  border: 1px solid #d5d8dc;
  border-radius: 6px;
  background: linear-gradient(#c9ccd1 0 0) 5px 6px / 60% 5px no-repeat, linear-gradient(#e3e5e8 0 0) 5px 16px / 75% 18px no-repeat, #fff;
}

.w-mini-b {
  background: linear-gradient(#c9ccd1 0 0) center 6px / 70% 22px no-repeat, linear-gradient(#e3e5e8 0 0) 5px 34px / 50% 5px no-repeat, #fff;
}

.w-mini-c {
  background: linear-gradient(#c9ccd1 0 0) 5px 6px / 40% 5px no-repeat, linear-gradient(#e3e5e8 0 0) 5px 15px / 80% 4px no-repeat, linear-gradient(#e3e5e8 0 0) 5px 22px / 80% 4px no-repeat, linear-gradient(#e3e5e8 0 0) 5px 29px / 80% 4px no-repeat, #fff;
}

.w-arrow {
  font-size: 16px;
  color: #3157d5;
}

@media (max-width: 52rem) {
  .w {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─── /three-directions ───────────────────────────────────────────── */

.sk-hero h1 {
  max-width: 13em;
  font-size: clamp(2.6rem, 1.3rem + 4.4vw, 4.75rem);
}

.sk-hero .lede {
  margin-top: 1.5rem;
}

.sk-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 0.2rem + 2vw, 2rem);
  max-width: 62rem;
  margin: 0 auto;
}

.sk-three figure {
  margin: 0;
  overflow: hidden;
  border-radius: 6% / 2.8%;
  box-shadow: var(--frame-shadow);
}

.sk-three img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 1385;
}

.sk-film {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 0.2rem + 2vw, 2rem);
  max-width: 76rem;
  margin: 0 auto;
}

.sk-film figure {
  margin: 0;
  overflow: hidden;
  border-radius: 1.1rem;
  box-shadow: var(--frame-shadow);
}

.sk-film img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

@media (max-width: 700px) {
  .sk-film {
    grid-template-columns: minmax(0, 1fr);
    max-width: 28rem;
  }
}

.sk-sec {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.sk-sec .v-cmd {
  margin-top: 2rem;
  max-width: 48rem;
}

.sk-sec .v-cmd pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sk-steps {
  display: grid;
  gap: 0;
  max-width: 44rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.sk-steps li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
}

.sk-full {
  max-width: 48rem;
  margin-top: 2rem;
}

.sk-full summary {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

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

.sk-full[open] summary {
  margin-bottom: 1rem;
}

.sk-full .v-cmd {
  margin-top: 0;
  max-width: none;
}

.sk-full .v-cmd pre {
  font-size: 0.8125rem;
  line-height: 1.65;
}

.sk-hero .hero-cta,
.sk-sec .hero-cta {
  justify-content: flex-start;
}

/* ─── Resume: the page on a board, the PDF beside it ─── */

.rs-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  align-items: center;
  gap: clamp(1.25rem, 1rem + 2vw, 3rem);
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
}

.rs-side {
  display: grid;
  justify-items: end;
  gap: 1.25rem;
}

.rs-say {
  display: grid;
  gap: 0.45rem;
  width: min(27rem, 100%);
}

.rs-page img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  background: #fff;
  box-shadow: var(--frame-shadow);
}

.rs-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 10px 28px rgb(0 0 0 / 16%);
  font-size: 0.8125rem;
}

.rs-file svg {
  width: 1rem;
  height: 1rem;
}

.rs-file span {
  color: var(--ink-faint);
}

@media (max-width: 40rem) {
  .rs-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .rs-side {
    justify-items: stretch;
  }
}

/* ─── Search pages: what you get, and the details ─── */

.seo-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 44rem;
  padding: 0 0 0 1.1rem;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.seo-list a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-table {
  width: 100%;
  max-width: 44rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.seo-table th,
.seo-table td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.seo-table th {
  width: 11rem;
  padding-right: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.seo-table td {
  color: var(--ink-soft);
}

/* changelog */
.cl { padding: 8px 0 72px; }
.cl-r { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.cl-d { font-family: "Azeret Mono", monospace; font-size: 0.8125rem; color: var(--ink-faint); padding-top: 6px; }
.cl-h { font-size: 1.375rem; line-height: 1.25; margin: 0 0 12px; }
.cl-b ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.cl-b li { max-width: 62ch; }
@media (max-width: 640px) { .cl-r { grid-template-columns: 1fr; gap: 8px; } }
