/* disco website. Plain CSS, no build step. Follows disco's brand (docs/features/brand.md in the app):
   monochrome, black on white and warm grey, black buttons, Clash Display for claims. */

/* Clash Display (Indian Type Foundry, ITF Free Font License, see fonts/README-clash-display.md):
   disco's display face, for claims and the wordmark only. Everything else is the system font. */
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  --on-dark: #8ec5ff; /* disco's blue, lightened for dark terminal and code blocks */
  /* disco: one ink colour, warm grey, a blue only for focus and links in the app */
  --ink: #1a1a1a;
  --ink-hover: #333333;
  --muted-ink: #9a9a96; /* the second line of a claim */
  --accent: #0d99ff;
  --ok: #46a758;
  --warn: #d97706;

  /* legacy names, mapped onto the disco palette */
  --mint: #1a1a1a;
  --mint-press: #333333;
  --mint-soft: #f1f1ef;
  --mint-ink: #1a1a1a;
  --teal: #9a9a96;
  --navy: #1a1a1a;
  --navy-2: #333333;

  /* page */
  --bg: #ffffff;
  --bg-soft: #f5f5f3;
  --bg-tint: #f1f1ef;
  --text: #1a1a1a;
  --text-2: #4b4b48;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-2: #d6d6d3;
  --card: #ffffff;

  /* the tree, as on the board */
  --ost-outcome: #c8b6f5;
  --ost-opportunity: #a6ccf5;
  --ost-solution: #d5f692;
  --ost-experiment: #ffb86b;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-window: 0 1px 0 rgba(0, 0, 0, 0.04), 0 30px 60px -24px rgba(0, 0, 0, 0.28), 0 12px 24px -12px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -18px rgba(0, 0, 0, 0.25);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  --display: 'Clash Display', var(--sans);
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
/* claims: Clash Display, as on disco's start page */
h1,
h2,
.h2,
.claim {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0;
  word-spacing: 0.04em;
  line-height: 1.04;
}
.muted-ink {
  color: var(--muted-ink);
}

p {
  margin: 0;
}

::selection {
  background: var(--ink);
  color: #fff;
}

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

.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

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

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

.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s, transform 0.18s var(--ease-out), box-shadow 0.18s, color 0.18s;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--ink-hover);
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}
.btn-soft {
  background: var(--bg-tint);
  color: var(--ink);
}
.btn-soft:hover {
  background: var(--line);
}
.btn-sm {
  --h: 38px;
  padding: 0 16px;
  font-size: 15px;
}
.btn .i {
  width: 18px;
  height: 18px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-tile {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.45);
}
.brand-dot {
  color: var(--teal);
}
.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 550;
  font-size: 15px;
  color: var(--text-2);
  transition: background-color 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  background: var(--bg-tint);
  color: var(--ink);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--bg-tint);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: grid;
    margin-left: 0;
  }
  .nav-cta {
    margin-left: auto;
  }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 12px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.25);
  }
  .site-header.open .nav-links a {
    padding: 12px 14px;
    font-size: 17px;
  }
}
@media (max-width: 520px) {
  .nav-cta .btn span {
    display: none;
  }
  .nav-cta .btn {
    padding: 0 12px;
  }
}

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

.hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 120px);
  position: relative;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.app-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 28px;
  border-radius: 21px;
  box-shadow: 0 16px 28px -14px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-6px) rotate(-1.5deg);
  }
}
.js .app-icon.reveal.in {
  transform: none;
}
.hero h1 {
  font-size: clamp(38px, 4.4vw, 60px);
}
.hero h1 .soft {
  color: var(--navy);
  font-weight: 400;
}
.hero h1 .mark {
  position: relative;
  z-index: 0;
  padding: 0 0.04em;
}
.hero h1 .mark::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0.1em;
  height: 0.28em;
  background: var(--mint);
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink);
  font-weight: 550;
  max-width: 30ch;
  line-height: 1.4;
}
.hero-copy {
  margin-top: 16px;
  color: var(--text-2);
  max-width: 44ch;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-trust {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--muted);
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-trust .i {
  width: 15px;
  height: 15px;
  color: var(--mint-ink);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- app window frame + player ------------------------------------------------------------- */

.window {
  position: relative;
  border-radius: 14px;
  background: #f5f5f3;
  box-shadow: var(--shadow-window);
  overflow: hidden;
  isolation: isolate;
}
.window::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  z-index: 3;
}
.window-bar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: #fbfbfa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  position: relative;
}
.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e6e8ea;
}
.window-bar i:nth-child(1) {
  background: #ff5f57;
}
.window-bar i:nth-child(2) {
  background: #febc2e;
}
.window-bar i:nth-child(3) {
  background: #28c840;
}
.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  color: #6b7378;
  white-space: nowrap;
}
.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f5f5f3;
}
.screen video,
.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* hero player: stacked slides with progress dots */
.player {
  position: relative;
}
.player .slide {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.player .slide.on {
  opacity: 1;
}
.player-stack {
  position: relative;
}
.player-stack::before,
.player-stack::after {
  /* two cards peeking out behind the window */
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -14px;
  height: 40px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.3), inset 0 0 0 1px var(--line);
  z-index: -1;
}
.player-stack::after {
  left: 12%;
  right: 12%;
  bottom: -26px;
  z-index: -2;
  opacity: 0.7;
}
.player-meta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.player-caption {
  min-height: 1.6em;
  color: var(--text-2);
  transition: opacity 0.3s;
}
.dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-2);
  cursor: pointer;
  overflow: hidden;
  transition: width 0.35s var(--ease-out), background-color 0.2s;
}
.dot::before {
  /* enlarge the hit area without changing the look */
  content: '';
  position: absolute;
  inset: -10px -4px;
}
.dot.on {
  width: 34px;
  background: var(--line);
}
.dot b {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--ink);
  border-radius: inherit;
}
.dot.on b {
  width: var(--p, 0%);
}
.pp {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-tint);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.pp .i {
  width: 15px;
  height: 15px;
}

/* ---- sections ---------------------------------------------------------------------------------- */

.section {
  padding: clamp(72px, 11vw, 150px) 0;
}
.section.tint {
  background: var(--bg-soft);
}
.h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.035em;
}
.lead {
  margin-top: 18px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--text-2);
  max-width: 54ch;
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.feature.flip {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}
.feature.flip .feature-text {
  order: 2;
}
@media (max-width: 960px) {
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
  }
  .feature.flip .feature-text {
    order: 0;
  }
}
.feature-text .lead {
  max-width: 44ch;
}
.note {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-tint);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
}
.note .i {
  width: 16px;
  height: 16px;
  color: var(--mint-ink);
}
.caption {
  margin-top: 16px;
  color: var(--muted);
}

/* key list, like a tool list */
.keys {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.keys li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.keys .sw {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.keys strong {
  display: block;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.25;
}
.keys small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 2px 0 var(--line-2);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
}

/* stats */
.stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  padding: 18px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.section.tint .stat {
  background: #fff;
}
.stat b {
  display: block;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}
@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* chips */
.chips {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg-tint);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}
.section.tint .chip {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
}
.badge-live {
  background: #e9f6ec;
  color: #2b6b36;
}
.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-press);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}
.badge-soon {
  background: #fff4e5;
  color: #8a4b00;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(70, 167, 88, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(70, 167, 88, 0);
  }
}

/* ---- terminal (MCP) ------------------------------------------------------------------------ */

.terminal {
  margin-top: 28px;
  border-radius: 14px;
  background: var(--ink);
  color: #cfe3ec;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #7f98a6;
  font-size: 11.5px;
}
.terminal-bar .i {
  width: 14px;
  height: 14px;
}
.terminal-body {
  padding: 14px 16px 16px;
  min-height: 182px;
}
.terminal-body p {
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-body .t-user {
  color: #fff;
}
.terminal-body .t-user::before {
  content: '> ';
  color: var(--on-dark);
}
.terminal-body .t-tool {
  color: var(--on-dark);
}
.terminal-body .t-out {
  color: #8fb0bf;
}
.caret {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  vertical-align: -0.2em;
  background: #fff;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---- coming next (mock UIs) ------------------------------------------------------------------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.card {
  position: relative;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 24px;
  overflow: hidden;
}
.card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card h3 .i {
  width: 22px;
  height: 22px;
  color: var(--navy);
}
.card p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15.5px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.mock {
  margin-top: 22px;
  height: 230px;
  border-radius: 12px;
  background: #f5f5f3;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.12) 1px, transparent 0);
  background-size: 16px 16px;
}
.m-sticky {
  position: absolute;
  width: 74px;
  height: 74px;
  padding: 7px;
  border-radius: 3px;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 550;
  color: #1b1b1b;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.35);
}

/* pages mock */
.m-pages {
  position: absolute;
  inset: 10px auto 10px 10px;
  width: 132px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.4), inset 0 0 0 1px var(--line);
  padding: 10px 8px;
  font-size: 11.5px;
}
.m-pages h5 {
  margin: 0 4px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.m-page {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 6px;
  color: var(--text-2);
  transition: background-color 0.3s, color 0.3s;
}
.m-page .i {
  width: 12px;
  height: 12px;
}
.m-page.on {
  background: var(--mint-soft);
  color: var(--ink);
  font-weight: 650;
}
.m-canvas {
  position: absolute;
  inset: 0 0 0 150px;
}
.m-canvas .set {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s, transform 0.45s var(--ease-out);
}
.m-canvas .set.on {
  opacity: 1;
  transform: none;
}

/* comments mock */
.m-pin {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 4px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.4);
}
.m-thread {
  position: absolute;
  width: 230px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.45), inset 0 0 0 1px var(--line);
  padding: 10px 12px;
  font-size: 12px;
}
.m-msg {
  display: flex;
  gap: 8px;
  padding: 4px 0;
}
.m-av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: none;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.m-msg b {
  font-weight: 700;
}
.m-at {
  color: var(--mint-ink);
  font-weight: 700;
  background: var(--mint-soft);
  border-radius: 4px;
  padding: 0 3px;
}
.m-input {
  margin-top: 6px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  padding: 6px 8px;
  min-height: 28px;
  color: var(--ink);
}
.m-suggest {
  position: absolute;
  width: 150px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45), inset 0 0 0 1px var(--line);
  padding: 4px;
  font-size: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.m-suggest.on {
  opacity: 1;
  transform: none;
}
.m-suggest div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 6px;
}
.m-suggest div:first-child {
  background: var(--bg-tint);
}

/* two-way sync mock */
.m-sync {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px;
}
.m-side {
  height: 100%;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 10px;
  font-size: 11px;
  position: relative;
  overflow: hidden;
}
.m-side h6 {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.m-side h6 .i {
  width: 12px;
  height: 12px;
}
.m-row {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px 6px;
  border-radius: 6px;
  margin-bottom: 4px;
  background: var(--bg-soft);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.m-row i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}
.m-row.flash {
  background: var(--mint-soft);
  box-shadow: inset 0 0 0 1px var(--mint-press);
}
.m-arrows {
  display: grid;
  gap: 10px;
  color: var(--navy);
}
.m-arrows .i {
  width: 22px;
  height: 22px;
  transition: color 0.3s, transform 0.3s;
}
.m-arrows .i.go {
  color: var(--mint-press);
  transform: scale(1.25);
}

/* navigation mock */
.m-nav {
  position: absolute;
  inset: 10px 10px 10px auto;
  width: 170px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.4), inset 0 0 0 1px var(--line);
  padding: 8px;
  font-size: 11px;
}
.m-nav .row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background-color 0.3s;
}
.m-nav .row.on {
  background: var(--bg-tint);
  font-weight: 700;
}
.m-nav .row i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}
.m-world {
  position: absolute;
  left: 0;
  top: 0;
  transition: transform 0.9s var(--ease-out);
}

/* ---- showcase grid ---------------------------------------------------------------------------- */

.show {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 36px);
}
@media (max-width: 760px) {
  .show {
    grid-template-columns: 1fr;
  }
}
.show figure {
  margin: 0;
}
.show .window {
  border-radius: 12px;
}
.show figcaption {
  margin-top: 16px;
}
.show figcaption b {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.show figcaption span {
  color: var(--text-2);
  font-size: 15px;
}
.screen.top img {
  object-position: top;
}

/* ---- pricing ---------------------------------------------------------------------------------- */

.price-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
}
@media (max-width: 860px) {
  .price-card {
    grid-template-columns: 1fr;
  }
}
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
}
.price b {
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--ink);
}
.price span {
  color: var(--muted);
}
.included {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.included li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.included li:last-child {
  border-bottom: 0;
}
.tick {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.tick .i {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}
.included small {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
}
.included .soon .tick {
  background: #fff4e5;
  color: #8a4b00;
}

/* savings calculator */
.calc {
  margin-top: 28px;
  border-radius: 20px;
  background: var(--bg-soft);
  padding: 24px;
}
.calc h3 {
  font-size: 20px;
}
.calc-row {
  margin-top: 18px;
}
.calc-row label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.calc-row output {
  font-family: var(--mono);
  font-weight: 500;
}
input[type='range'] {
  width: 100%;
  margin: 10px 0 0;
  accent-color: var(--mint-press);
  height: 28px;
}
.calc-rate {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.calc-rate input {
  width: 96px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  padding: 0 10px;
  font: inherit;
  font-family: var(--mono);
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}
.calc-out {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.calc-out div {
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}
.calc-out b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.calc-out span {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---- download --------------------------------------------------------------------------------- */

.dl {
  display: grid;
  gap: 12px;
}
.dl-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.2s;
}
.dl-card.rec {
  box-shadow: inset 0 0 0 2px var(--mint-press), 0 14px 30px -18px rgba(0, 0, 0, 0.3);
}
.dl-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-tint);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.dl-ico .i {
  width: 24px;
  height: 24px;
}
.dl-card h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dl-card p {
  font-size: 13px;
  color: var(--muted);
}
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-tint);
}
.seg button {
  border: 0;
  background: transparent;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}
.seg button[aria-pressed='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
@media (max-width: 760px) {
  .dl-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .dl-card .seg,
  .dl-card .btn {
    grid-column: 1 / -1;
  }
  .dl-card .btn {
    width: 100%;
  }
}
.dl-foot {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

/* ---- FAQ -------------------------------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 6vw, 80px);
}
@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 650;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .i {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease-out);
  color: var(--muted);
}
.faq details[open] summary .i {
  transform: rotate(45deg);
  color: var(--ink);
}
.faq .answer {
  overflow: hidden;
}
.faq .answer p {
  padding: 0 0 22px;
  color: var(--text-2);
  max-width: 62ch;
}

/* ---- CTA band + footer ------------------------------------------------------------------------ */

.cta-band {
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
}
.cta-band p {
  margin-top: 12px;
  color: #b8ced9;
  max-width: 50ch;
}
@media (max-width: 760px) {
  .cta-band {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: clamp(72px, 10vw, 120px);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid > :first-child {
    grid-column: 1 / -1;
  }
}
.foot-grid h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.foot-grid a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 15px;
}
.foot-grid a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot-tag {
  margin-top: 14px;
  color: var(--text-2);
  max-width: 36ch;
  font-size: 15px;
}
.foot-base {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

/* ---- toast ------------------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  transition: opacity 0.25s, transform 0.3s var(--ease-out);
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast .i {
  color: #fff;
}

/* ---- reveal on scroll -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* pricing page hero */
.page-hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 5vw, 56px);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: -0.045em;
}
.page-hero .lead {
  margin: 20px auto 0;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- prototype password gate (assets/js/gate.js) ------------------------------------------ */

html.locked,
html.locked body {
  overflow: hidden;
}
html.locked body > *:not(.gate) {
  visibility: hidden;
}
.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--bg-soft);
  transition: opacity 0.45s ease, visibility 0.45s;
}
.gate.open {
  opacity: 0;
  visibility: hidden;
}
.gate-card {
  width: min(380px, 100%);
  padding: 36px 32px 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-window);
  text-align: center;
}
.gate-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 17px;
  box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.45);
}
.gate-title {
  font-size: 26px;
  letter-spacing: -0.03em;
}
.gate-copy {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
}
.gate-input {
  width: 100%;
  height: 48px;
  margin-top: 22px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-soft);
  text-align: center;
}
.gate-input:focus {
  outline: none;
  border-color: var(--mint-press);
  box-shadow: 0 0 0 4px rgba(13, 153, 255, 0.25);
  background: #fff;
}
.gate-btn {
  width: 100%;
  margin-top: 10px;
}
.gate-error {
  min-height: 1.4em;
  margin-top: 12px;
  font-size: 14px;
  color: #b42318;
}
.gate-card.shake {
  animation: shake 0.4s;
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}

/* ---- docs page (mcp.html) -------------------------------------------------------------------- */

.docs-hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px);
}
.docs-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  max-width: 20ch;
}
.steps {
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  counter-reset: step;
}
.steps li {
  list-style: none;
  counter-increment: step;
  padding: 18px 18px 18px 60px;
  position: relative;
  border-radius: 16px;
  background: var(--bg-soft);
  font-size: 15px;
  color: var(--text-2);
}
.steps li b {
  display: block;
  color: var(--ink);
  font-size: 16px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.docs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  font-size: 14px;
}
.toc b {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--ink);
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}
.toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.toc a:hover {
  color: var(--ink);
}
.toc a.on {
  color: var(--ink);
  font-weight: 650;
  border-left-color: var(--mint-press);
}
@media (max-width: 900px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
  }
  .toc ol {
    columns: 2;
  }
}

.prose {
  max-width: 760px;
  min-width: 0;
}
.prose > section {
  padding-top: 8px;
  margin-bottom: 64px;
}
.prose h2 {
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.prose h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 32px 0 10px;
}
.prose p,
.prose li {
  color: var(--text-2);
}
.prose p + p {
  margin-top: 12px;
}
.prose ul,
.prose ol.list {
  padding-left: 20px;
  margin: 12px 0;
}
.prose li + li {
  margin-top: 6px;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-tint);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.prose a {
  color: var(--ink);
  text-decoration-color: var(--mint-press);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.code {
  position: relative;
  margin: 16px 0;
  border-radius: 14px;
  background: var(--ink);
  color: #d8e8ef;
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 12px;
  color: #7f98a6;
}
.code pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
}
.code pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.code .c {
  color: #6f8a97;
}
.code .k {
  color: var(--on-dark);
}
.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #d8e8ef;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.copy:hover {
  background: rgba(255, 255, 255, 0.16);
}
.copy .i {
  width: 14px;
  height: 14px;
}

.tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-tint);
  margin-top: 8px;
}
.tabs button {
  border: 0;
  background: transparent;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}
.tabs button[aria-selected='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
[role='tabpanel'][hidden] {
  display: none;
}

.callout {
  display: flex;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-soft);
  font-size: 15px;
  color: var(--text-2);
}
.callout .i {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--navy);
}
.callout.warn {
  background: #fff6e8;
}
.callout.warn .i {
  color: #8a4b00;
}
.callout b {
  color: var(--ink);
}

.table-wrap {
  margin: 16px 0;
  overflow-x: auto;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.table-wrap th,
.table-wrap td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.table-wrap tr:last-child td {
  border-bottom: 0;
}
.table-wrap th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--ink);
  font-size: 13.5px;
}
.table-wrap td {
  color: var(--text-2);
}
.table-wrap td:first-child {
  white-space: nowrap;
}

.prompts {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.prompt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.prompt .i {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--mint-ink);
}
.prompt p {
  color: var(--ink) !important;
  font-weight: 550;
}
.prompt small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 13.5px;
  margin-top: 2px;
}

/* ---- disco brand: wordmark, disco ball, disco lights ---------------------------------------------- */

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
  gap: 8px;
}
.brand .disco-ball {
  width: 28px;
  height: 28px;
  flex: none;
}
/* The ball is the switch for the disco lights; a little room around it makes it easy to hit. */
.brand-ball {
  display: inline-flex;
  margin: -6px;
  padding: 6px;
}
.disco-ball .disco-ball-tiles {
  transform-box: view-box;
  transform: translateX(calc(var(--disco-shift, 0) * 1px));
}
.disco-ball .disco-ball-sparkle {
  transform-box: fill-box;
  transform-origin: center;
}
.disco-ball.spinning .disco-ball-sparkle {
  animation: disco-twinkle 1.8s ease-in-out infinite;
}
@keyframes disco-twinkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.35) rotate(45deg);
  }
}
/* the room dims like a night club, then spots of light sweep across the page */
.disco-dim {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: #241046;
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity 1.4s ease;
}
.disco-dim.on {
  opacity: 0.62;
  transition-duration: 2.6s;
}
.disco-lights {
  position: fixed;
  inset: 0;
  z-index: 91;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.disco-lights.on {
  opacity: 1;
}

/* ---- feature cards ----------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.cards .card h3 {
  font-family: var(--sans);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.cards .card .i-tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.cards .card .i-tile .i {
  width: 20px;
  height: 20px;
}
.cards .card .badge {
  margin-top: 14px;
}
.card .needs {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---- video tabs ------------------------------------------------------------------------------- */

.vtabs {
  margin-top: 24px;
}
.vtabs [role='tabpanel'] video {
  display: block;
}

/* ---- every feature table (index.html#all-features) ------------------------------------------------ */

.badge-review {
  background: #e8f3ff;
  color: #0b6fc2;
}
.ftable table {
  font-size: 15px;
}
.ftable th[scope='row'] {
  font-weight: 650;
  color: var(--ink);
  white-space: normal;
  width: 26%;
  background: none;
  font-size: 15px;
}
.ftable thead th:last-child,
.ftable td:last-child {
  width: 1%;
  white-space: nowrap;
}
.ftable .ft-group th {
  background: var(--bg-soft);
  font-size: 15px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.ftable .ft-group .i {
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-right: 10px;
  vertical-align: -3px;
}
.ftable tbody tr:not(.ft-group):hover {
  background: #fafaf9;
}
/* phones: one card per feature instead of three squeezed columns */
@media (max-width: 640px) {
  .ftable thead {
    display: none;
  }
  .ftable tr:not(.ft-group) {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .ftable tr:not(.ft-group) > * {
    padding: 0;
    border: 0;
    width: auto;
  }
  .ftable tr:not(.ft-group) td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 14px;
  }
  .ftable tr:not(.ft-group) td:last-child {
    grid-column: 2;
    grid-row: 1;
  }
  .ftable .ft-group,
  .ftable .ft-group th {
    display: block;
  }
}

/* long addresses, like the app's, wrap instead of pushing the page sideways */
.dl-card > div {
  min-width: 0;
}
.dl-card p,
[data-app-url] {
  overflow-wrap: anywhere;
}

/* desktop app: one button per system */
.row-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dl-card h3 .badge {
  font-size: 12px;
}
@media (max-width: 760px) {
  .dl-card .row-btns {
    grid-column: 1 / -1;
  }
  .dl-card .row-btns .btn {
    flex: 1;
  }
}

/* Claude deeplinks */
.small-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted) !important;
}
.prompt .try {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--line-2);
}
.prompt .try:hover {
  border-bottom-color: var(--ink);
}
.prompt .try::before {
  content: '› ';
  color: var(--muted);
}
/* buttons inside the guide keep their own colours, not the prose link style */
.prose a.btn {
  text-decoration: none;
}
.prose a.btn-primary {
  color: #fff;
}
.prose .hero-actions {
  margin-top: 14px;
}
