/* FluidMPC — site styles.
   Tokens are the app's own: near-black substrate, hairline structure, one
   accent that means "current or interactive". Depth is one surface step and a
   single hairline, not a stack of shadows and gradients. */

@font-face {
  font-family: "Inter var";
  src: url("fonts/InterVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono.ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05070c;
  --deck: #090d15;
  --surface: #0c121c;
  --surface-2: #121925;
  --raised: #1b2433;
  --surface-4: #232e40;
  --line: #1a2331;
  --line-2: #2d394c;
  --fg: #f6f8fd;
  --muted: #b6c1d3;
  --faint: #8895a9;
  --accent: #5eead4;
  --accent-bright: #a7f3d0;
  --accent-deep: #14b8a6;
  --on-accent: #04120f;
  --ok: #3ddc97;
  --danger: #f08a8a;
  --sans: "Inter var", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.68, 0.2, 1);
  --pad: clamp(20px, 4vw, 44px);
  --type-scale: 1;
  --radius: 12px;
  --radius-sm: 7px;
  --radius-lg: 16px;
  --shadow: 0 18px 46px -40px rgba(0, 0, 0, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  font-feature-settings: "cv05" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* One soft light from above; no blobs, no gradient wash. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 72% -12%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 68%),
    radial-gradient(900px 600px at 8% 104%, color-mix(in srgb, var(--accent-2) 4%, transparent), transparent 70%);
}

/* Fixed grain: tactility at 3.5%, never visible as texture. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.12;
}

p {
  margin: 0;
}

code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.92em;
}

code {
  color: var(--accent-bright);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border: 3px solid var(--bg);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--line-2) 62%, var(--fg) 22%);
}

/* ------------------------------------------------------------- chrome */

.scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  background: transparent;
}
.scroll-line span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transform-origin: 0 50%;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.topbar.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.brand img {
  border-radius: 7px;
  display: block;
}
.brand__tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 5px;
  transform: translateY(0.5px);
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 13.5px;
  color: var(--muted);
}
.nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}
.nav a:hover {
  color: var(--fg);
}
.nav a:hover::after,
.nav a.is-current::after {
  transform: scaleX(1);
}
.nav a.is-current {
  color: var(--fg);
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.chip--quiet {
  color: var(--faint);
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
  display: inline-block;
}
.dot--live {
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 14%, transparent);
  animation: breathe 3.4s ease-in-out infinite;
}

@keyframes line-fade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 14%, transparent);
  }
  50% {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 6%, transparent);
  }
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 520;
  letter-spacing: -0.012em;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--primary {
  background: var(--accent);
  font-family: var(--sans);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 10px 30px -14px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn--primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}
.btn--primary:active {
  transform: translateY(0);
}
.btn--line {
  border-color: var(--line-2);
  color: var(--fg);
}
.btn--line:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.btn--ghost {
  border-color: var(--line);
  color: var(--muted);
}
.btn--ghost:hover {
  color: var(--fg);
  border-color: var(--line-2);
}
.btn--sm {
  height: 33px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 8px;
}

/* --------------------------------------------------------------- hero */

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.86fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: end;
  padding: clamp(108px, 13vh, 148px) var(--pad) clamp(54px, 7vh, 84px);
  max-width: 1300px;
  margin: 0 auto;
}

/* Survey grid: the instrument's graph paper, fading before it reads as a pattern. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 50%;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 74px 74px;
  opacity: 0.5;
  mask-image: radial-gradient(60% 60% at 60% 30%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(60% 60% at 60% 30%, #000 0%, transparent 100%);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 26px;
}
.eyebrow .sep {
  color: var(--accent-deep);
  margin: 0 6px;
}

.hero__title {
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin-bottom: 28px;
}
/* Each line is its own mask: the type rises out of a cut edge, not a fade. */
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero__title .line > span {
  display: block;
  /* Each authored line stays one line: the mask is per line, so a wrap would
     split a line into two un-masked halves. Narrow screens may wrap. */
  white-space: nowrap;
}

@media (max-width: 700px) {
  .hero__title .line > span {
    white-space: normal;
  }
}
.hero__title .ink {
  color: var(--accent);
}

/* One animation per line, fill-mode both: the type rises out of its mask and
   stays put. No second rule has to re-state the resting position, so the
   headline can never end up parked below its own clip. */
html.js .hero__title .line > span {
  animation: line-rise 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}
html.js .hero__title .line:nth-child(1) > span {
  animation-delay: 0.06s;
}
html.js .hero__title .line:nth-child(2) > span {
  animation-delay: 0.14s;
}
html.js .hero__title .line:nth-child(3) > span {
  animation-delay: 0.22s;
}
@keyframes line-rise {
  from {
    transform: translateY(110%);
  }
  to {
    transform: none;
  }
}

.lede {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.62;
  max-width: 47ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 20px;
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  max-width: 560px;
}
.facts div {
  min-width: 0;
}
.facts dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 5px;
}
.facts dd {
  margin: 0;
  font-size: 13px;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* -------------------------------------------------------- route plan */

.plan {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 30px 60px -40px rgba(0, 0, 0, 0.9);
}
.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.plan__name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.plan__state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.plan__task {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  padding: 14px 0 14px 12px;
  border-left: 1px solid var(--line-2);
  margin: 0 0 6px;
}

.funnel {
  list-style: none;
  margin: 0;
  padding: 0;
}
.funnel li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.funnel li + li {
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.funnel__label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.funnel__track {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.funnel__track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition: width 1s var(--ease);
}
.plan.is-in .funnel li:nth-child(1) i {
  width: 100%;
  transition-delay: 0.1s;
}
.plan.is-in .funnel li:nth-child(2) i {
  width: 67.6%;
  transition-delay: 0.2s;
}
.plan.is-in .funnel li:nth-child(3) i {
  width: 56.9%;
  transition-delay: 0.3s;
}
.plan.is-in .funnel li:nth-child(4) i {
  width: 4%;
  transition-delay: 0.4s;
}
.funnel__value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.funnel__last .funnel__value {
  color: var(--accent-bright);
}

.plan__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.plan__foot b {
  color: var(--fg);
  font-weight: 500;
}
.plan__note {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--faint);
}
.plan__note code {
  font-size: 10.5px;
  color: var(--accent-deep);
}

/* A soft light that follows the pointer inside the panel — depth, not decoration. */
.plan::after,
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--accent) 12%, transparent),
    transparent 72%
  );
}
.plan.is-live::after,
.card.is-live::after {
  opacity: 1;
}

/* ------------------------------------------------------------ bands */

.band {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 9vw, 108px) var(--pad);
  max-width: 1300px;
  margin: 0 auto;
  scroll-margin-top: 80px;
}

.sec-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(16px, 3vw, 44px);
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 58px);
}
.sec-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  padding-top: 9px;
}
.sec-head h2 {
  font-size: clamp(1.65rem, 2.9vw, 2.5rem);
  letter-spacing: -0.038em;
  line-height: 1.08;
  max-width: 20ch;
}
.sec-head .lede {
  font-size: 15px;
  line-height: 1.65;
  padding-top: 7px;
  max-width: 54ch;
}

/* ------------------------------------------------------------ steps */

.steps {
  display: grid;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 44px);
  padding: 30px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.step:first-child {
  border-top-color: var(--line-2);
}
.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.5s var(--ease);
}
.step:hover::before {
  width: 96px;
}
.step__n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  padding-top: 5px;
  letter-spacing: 0.06em;
}
.step:hover .step__n {
  color: var(--accent);
}
.step h3 {
  font-size: 19px;
  letter-spacing: -0.028em;
  margin-bottom: 10px;
}
.step p {
  font-size: 15px;
  color: var(--muted);
  max-width: 74ch;
  line-height: 1.65;
}
.step__meta {
  margin-top: 12px !important;
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: 0.02em;
  color: var(--faint) !important;
}

/* ------------------------------------------------------------ shots */

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.shots figure,
.brain-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.shots figure:hover,
.brain-shot:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.shots img,
.brain-shot img,
.connect-shot img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.035);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.shots figure.is-in img,
.brain-shot.is-in img,
.connect-shot.is-in img {
  transform: scale(1);
}
.shots figcaption,
.brain-shot figcaption {
  padding: 14px 17px 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--faint);
  border-top: 1px solid var(--line);
}
.shots figcaption span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 5px;
}

.deck-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: 44px;
}
.deck-notes > div {
  border-top: 1px solid var(--line-2);
  padding-top: 16px;
}
.deck-notes h3 {
  font-size: 14.5px;
  margin-bottom: 7px;
  letter-spacing: -0.02em;
}
.deck-notes p {
  font-size: 13.5px;
  color: var(--faint);
  line-height: 1.6;
}
kbd {
  display: inline-block;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  border-radius: 5px;
  padding: 0 5px;
  font-size: 10.5px;
  line-height: 17px;
  color: var(--muted);
  margin-right: 2px;
}

/* -------------------------------------------------------- catalogue */

.families {
  list-style: none;
  margin: 0;
  padding: 0;
}
.families li {
  display: grid;
  grid-template-columns: 9px 148px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.families li:first-child {
  border-top-color: var(--line-2);
}
.family__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: hsl(var(--h) 62% 60%);
  box-shadow: 0 0 0 3px hsl(var(--h) 62% 60% / 0.1);
}
.family__name {
  font-size: 14px;
  letter-spacing: -0.012em;
}
.family__track {
  display: block;
  height: 2px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.family__track i {
  display: block;
  height: 100%;
  width: 0;
  background: hsl(var(--h) 58% 56%);
  opacity: 0.85;
  transition: width 1.05s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 45ms);
}
.families.is-in .family__track i {
  width: var(--w);
}
.family__count {
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.family__blurb {
  grid-column: 2 / -1;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--faint);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), opacity 0.35s var(--ease), margin-top 0.35s var(--ease);
}
.families li:hover .family__blurb {
  max-height: 70px;
  opacity: 1;
  margin-top: 8px;
}
.families li:hover .family__name {
  color: var(--accent-bright);
}

.catalogue__total {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.catalogue__sum {
  font-size: 15px;
  letter-spacing: 0;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.catalogue__packs {
  margin-left: auto;
}

/* ---------------------------------------------------------- presets */

.band--split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.sec-head--sticky {
  display: block;
  position: sticky;
  top: 96px;
  margin-bottom: 0;
}
.sec-head--sticky .num {
  display: block;
  padding-top: 0;
  margin-bottom: 18px;
}
.sec-head--sticky h2 {
  margin-bottom: 18px;
  max-width: 18ch;
}
.sec-head--sticky .lede {
  font-size: 15px;
  max-width: 42ch;
  padding-top: 0;
}
.aside-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--faint);
  max-width: 40ch;
}
.aside-note b {
  color: var(--muted);
  font-weight: 500;
}

.preset-group {
  margin-bottom: 26px;
}
.preset-group h3 {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 11px;
}
.preset-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.preset-group li {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--deck);
  border-radius: 7px;
  padding: 5px 9px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  cursor: default;
}
.preset-group li:hover {
  color: var(--accent-bright);
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  transform: translateY(-1px);
}

/* ------------------------------------------------------------ brain */

.brain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}
.guards {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guards li {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.guards li:first-child {
  border-top-color: var(--line-2);
  padding-top: 0;
}
.guards h3 {
  font-size: 15px;
  margin-bottom: 7px;
}
.guards p {
  font-size: 13.5px;
  color: var(--faint);
  line-height: 1.6;
  max-width: 46ch;
}
.guards code {
  color: var(--accent-deep);
  font-size: 11.5px;
}

/* ---------------------------------------------------------- connect */

.connect {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.code-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
}
.code-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--surface);
}
.copy {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.copy:hover {
  color: var(--accent);
  border-color: var(--accent-deep);
}
.copy.is-done {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
}
.code-panel pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.75;
  color: color-mix(in srgb, var(--fg) 86%, var(--muted));
  tab-size: 2;
}
.code-panel pre code {
  color: inherit;
  font-size: inherit;
}
.code-panel__foot {
  padding: 13px 16px 15px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--faint);
}
.code-panel__foot code {
  color: var(--accent-deep);
  font-size: 11.5px;
}

.tools h3 {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tool-grid li {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-grid li:hover {
  color: var(--accent);
}
.tools__foot {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--faint);
  max-width: 52ch;
}
.tools__foot code {
  color: var(--accent-deep);
  font-size: 11.5px;
}

.connect-shot {
  margin: 40px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.3s var(--ease);
}
.connect-shot:hover {
  border-color: var(--line-2);
}
.connect-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.connect-shot figcaption {
  padding: 14px 17px 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--faint);
}
.connect-shot figcaption span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 5px;
}

/* --------------------------------------------------------- download */

.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 24px 24px 22px;
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card__os {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.card__file {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--fg);
  margin-top: 4px;
}
.card__meta {
  font-size: 12.5px;
  color: var(--faint);
  line-height: 1.6;
  max-width: 40ch;
}
.card__spec {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--faint);
}
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 13.5px;
  color: var(--fg);
}
.card__cta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}
.card:hover {
  border-color: var(--line-2);
}
.card--download:hover {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -38px color-mix(in srgb, var(--accent-deep) 70%, transparent);
}
.card--download:hover .card__cta svg {
  transform: translateY(3px);
}

.download-hash {
  margin-top: 14px;
}

.build {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.build h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.build p {
  font-size: 13.5px;
  color: var(--faint);
  max-width: 42ch;
  line-height: 1.6;
}
.code-panel--compact pre {
  font-size: 12px;
  padding: 15px 18px;
}

/* ----------------------------------------------------------- footer */

.foot {
  display: flex;
  align-items: center;
  gap: 16px 28px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 30px var(--pad) 38px;
  max-width: 1300px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--faint);
}
.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--fg);
  font-weight: 520;
}
.foot__brand img {
  border-radius: 6px;
}
.foot__line {
  font-size: 12px;
  color: var(--faint);
}
.foot__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  font-size: 12px;
  min-width: 0;
}
.foot__links a {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.foot__links a:hover {
  color: var(--accent);
}

.motion-toggle {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.motion-toggle:hover {
  color: var(--accent);
  border-color: var(--accent-deep);
}
.motion-toggle b {
  font-weight: 400;
  color: var(--muted);
}

/* ---------------------------------------------------------- reveals */

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s var(--ease) var(--d, 0ms),
    transform 0.7s var(--ease) var(--d, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 44px;
  }
  .hero::before {
    inset: 0;
    opacity: 0.35;
  }
  .plan {
    max-width: 560px;
  }
  .sec-head {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .sec-head .lede {
    grid-column: 2;
    padding-top: 14px;
  }
  .band--split {
    grid-template-columns: minmax(0, 1fr);
  }
  .sec-head--sticky {
    position: static;
    margin-bottom: 36px;
  }
  .brain-grid,
  .connect,
  .downloads,
  .build {
    grid-template-columns: minmax(0, 1fr);
  }
  .deck-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }
  .topbar__meta {
    margin-left: auto;
  }
  .shots {
    grid-template-columns: minmax(0, 1fr);
  }
  .step {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .sec-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .sec-head .num {
    padding-top: 0;
    margin-bottom: 10px;
  }
  .sec-head .lede {
    grid-column: auto;
    padding-top: 10px;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .families li {
    grid-template-columns: 9px minmax(0, 1fr) 64px;
  }
  .family__track {
    display: none;
  }
  .family__blurb {
    max-height: none;
    opacity: 1;
    margin-top: 6px;
    grid-column: 2 / -1;
  }
  .deck-notes {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .hero h1 {
    letter-spacing: -0.04em;
  }
}

@media (max-width: 520px) {
  .brand__tag,
  .chip {
    display: none;
  }
  .funnel li {
    grid-template-columns: 70px minmax(0, 1fr) 62px;
    gap: 9px;
  }
  .plan {
    padding: 17px 16px 15px;
  }
  .foot__links {
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* Reduced motion means reduced, not removed: the large moves go (the 3.5% image
   push, the full-height type rise), while the short fades, hovers and the pointer
   light stay — they are the difference between a page that answers and a page
   that sits there.

   The mode is a class on <html>, set before first paint from the visitor's
   stored choice or the operating system, and switchable in the footer. A media
   query alone would make the choice unreachable on a machine that has animations
   off; this way the setting is still the default, not a cage. */

html.motion-reduced {
  scroll-behavior: auto;
}
html.motion-reduced.js .hero__title .line > span {
  animation: line-fade 0.55s cubic-bezier(0.22, 0.68, 0.2, 1) both;
}
html.motion-reduced .shots img,
html.motion-reduced .brain-shot img,
html.motion-reduced .connect-shot img {
  transform: none !important;
}
html.motion-reduced .families .family__track i {
  width: var(--w) !important;
  transition: none;
}
html.motion-reduced [data-reveal] {
  transition-duration: 0.35s;
}
html.motion-reduced .plan .funnel__track i {
  transition: none;
}
html.motion-reduced .dot--live {
  animation: none;
}

/* -------------------------------------------------------------- themes */

.chip--button {
  font: inherit;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip--button:hover {
  color: var(--fg);
  border-color: var(--line-2);
}
.chip--button:focus-visible {
  outline: 2px solid var(--accent);
}

.theme-chip-swatch {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.theme-dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 32px);
}
.theme-dialog[hidden] {
  display: none;
}
.theme-dialog__scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}
.theme-dialog__panel {
  position: relative;
  width: min(820px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 40px 80px -50px rgba(0, 0, 0, 0.95);
  animation: theme-in 0.28s var(--ease);
}
@keyframes theme-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.theme-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.theme-dialog__head h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
  margin-top: 6px;
}
.theme-dialog__close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-dialog__close:hover {
  color: var(--fg);
  border-color: var(--line-2);
}
.theme-dialog__close svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.theme-dialog__lede {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--faint);
  max-width: 62ch;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 4px;
}
.theme-card {
  display: grid;
  gap: 9px;
  padding: 9px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease);
}
.theme-card:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
}
.theme-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
.theme-card__preview {
  position: relative;
  display: block;
  height: 58px;
  border: 1px solid;
  border-radius: 8px;
  overflow: hidden;
}
.theme-card__strip {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 9px;
  border: 1px solid;
  border-radius: 4px;
}
.theme-card__dots {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 5px;
}
.theme-card__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
}
.theme-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 12.5px;
  letter-spacing: -0.01em;
}
.theme-card__meta b {
  font-weight: 500;
}
.theme-card__meta small {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.theme-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.theme-editor {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.theme-editor[hidden] {
  display: none;
}
.theme-editor__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}
.theme-editor__name {
  flex: 1 1 240px;
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.theme-editor__name input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: -0.01em;
}
.theme-editor__note {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.theme-editor__colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  margin: 16px 0 6px;
}
.theme-color {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px 78px;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.theme-color input[type="color"] {
  width: 30px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: none;
  cursor: pointer;
}
.theme-color code {
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.theme-group {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.theme-group:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.theme-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px 64px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.theme-option select {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 12px;
}
.theme-option input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.theme-option code {
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.02em;
  text-align: right;
}
.theme-preview__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.theme-preview__swatches span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
}
.theme-editor__share {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.theme-editor__share input {
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.theme-editor__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.theme-editor__error {
  font-size: 12px;
  color: var(--danger);
}
html.theme-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .theme-editor__colors {
    grid-template-columns: 1fr;
  }
}

/* A hidden control stays hidden even when it is a flex button. */
[hidden] {
  display: none !important;
}

/* ------------------------------------------------------- control plane */

.band--control {
  border-top: 1px solid var(--line);
}

.control-head {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.control-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.03;
  max-width: 18ch;
}
.control-head h2 .ink {
  color: var(--accent);
}
.control-head .lede {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.65;
}
.control-head .actions {
  margin-top: 4px;
}

.flow {
  list-style: none;
  margin: clamp(38px, 6vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.flow li {
  position: relative;
  padding: 24px 22px 26px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.flow li + li {
  border-left: 1px solid var(--line);
}
.flow li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.flow__n {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--faint);
}
.flow h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.flow p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.flow code {
  margin-top: 4px;
  font-size: 10px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 7px;
  justify-self: start;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(34px, 5vw, 52px);
}
.feat {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 18px 18px 20px;
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
}
.feat__k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
}
.feat h3 {
  font-size: 15px;
  letter-spacing: -0.02em;
}
.feat p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.contract-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: clamp(34px, 5vw, 54px);
  align-items: start;
}

.contract-mock,
.run-mock {
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 20px;
  min-width: 0;
  box-shadow: 0 30px 70px -55px rgba(0, 0, 0, 0.9);
}
.contract-mock__head,
.run-mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.contract-mock__head .chip {
  font-size: 9px;
  border-radius: 5px;
}
.contract-mock__head .chip .dot {
  margin: 0;
  width: 5px;
  height: 5px;
}
.contract-mock dl {
  margin: 0;
  padding: 6px 0 4px;
  display: grid;
}
.contract-mock dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.contract-mock dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 2px;
}
.contract-mock dd {
  margin: 0;
  font-size: 12.5px;
  color: var(--fg);
  overflow-wrap: anywhere;
}
.contract-mock__rules {
  padding-top: 13px;
  display: grid;
  gap: 6px;
}
.contract-mock__rules span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.contract-mock__rules p {
  font-size: 12px;
  color: var(--muted);
  padding-left: 12px;
  border-left: 1px solid var(--line-2);
}

.run-mock__head .mono {
  font-size: 10.5px;
  color: var(--muted);
}
.chip--warn {
  color: #f5c26b;
  border-color: color-mix(in srgb, #f5c26b 32%, var(--line));
  background: color-mix(in srgb, #f5c26b 8%, transparent);
}
.run-mock ol {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
}
.run-mock li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  position: relative;
  min-width: 0;
}
.run-mock li + li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -9px;
  height: 9px;
  width: 1px;
  background: var(--line-2);
}
.run-mock li > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  margin-top: 4px;
}
.run-mock li.ok > span {
  background: var(--ok);
  border-color: var(--ok);
}
.run-mock li.wait > span {
  background: #f5c26b;
  border-color: #f5c26b;
  box-shadow: 0 0 0 3px color-mix(in srgb, #f5c26b 18%, transparent);
}
.run-mock li.pending > span {
  background: transparent;
}
.run-mock li div {
  min-width: 0;
}
.run-mock li b {
  display: block;
  font-weight: 500;
  font-size: 12px;
}
.run-mock li small {
  display: block;
  color: var(--faint);
  font-size: 10.5px;
  overflow-wrap: anywhere;
}
.run-mock li.wait b {
  color: #f5c26b;
}
.approval-mock {
  margin-top: 8px;
  border: 1px solid color-mix(in srgb, #f5c26b 34%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, #f5c26b 6%, var(--surface));
  padding: 13px 14px;
  display: grid;
  gap: 5px;
}
.approval-mock > div {
  display: grid;
  gap: 4px;
}
.approval-mock b {
  font-weight: 500;
  font-size: 13px;
}
.approval-mock p {
  font-size: 11.5px;
  color: var(--faint);
}
.approval-mock__acts {
  display: flex;
  gap: 7px;
  margin-top: 5px;
}
.approval-mock__acts .btn {
  font-size: 11px;
  min-height: 27px;
  padding: 3px 10px;
}

.control-foot {
  margin-top: clamp(30px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.5px;
  max-width: 88ch;
}

/* ------------------------------------------------------------ pricing */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.price-card--featured {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, var(--surface)), var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}
.price-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.price-card__head h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
}
.price-card .price {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
}
.price-card > p {
  color: var(--muted);
  font-size: 12.5px;
  min-height: 34px;
}
.price-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  flex: 1;
}
.price-card li {
  color: var(--muted);
  font-size: 12.5px;
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  gap: 7px;
}
.price-card li::before {
  content: "+";
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
}
.price-card .btn {
  width: 100%;
}
.fine {
  margin-top: 18px;
  color: var(--faint);
  font-size: 11.5px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.faq {
  margin-top: clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-size: 14px;
  flex: none;
}
.faq details[open] summary::after {
  content: "−";
}
.faq p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
  padding: 9px 24px 2px 0;
}

/* ---------------------------------------------------------- changelog */

.changelog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
}
.changelog li {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 44px);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.changelog time {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--faint);
  padding-top: 4px;
}
.changelog h3 {
  font-size: 15px;
  letter-spacing: -0.015em;
  margin-bottom: 5px;
}
.changelog p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
  max-width: 82ch;
}

.cta-band {
  margin-top: clamp(34px, 5vw, 54px);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  background:
    radial-gradient(600px 220px at 12% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
    var(--surface);
}
.cta-band h3 {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: -0.03em;
  margin-top: 8px;
  max-width: 40ch;
}
.cta-band .actions {
  margin: 0;
}

@media (max-width: 1080px) {
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flow li:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .flow li:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .feat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contract-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .pricing {
    grid-template-columns: minmax(0, 1fr);
  }
  .price-card > p {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .flow li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .feat-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }
  .changelog li {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }
  .changelog time {
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .contract-mock,
  .run-mock {
    padding: 15px;
  }
  .contract-mock dl div {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ------------------------------------------------- theme workshop runtime
   The theme registry writes these dataset flags and custom properties before
   first paint. The rules here give every workshop control a visible effect on
   the public site, not just the picker preview. */

html {
  font-size: calc(16px * var(--type-scale, 1));
}
body {
  font-size: calc(16px * var(--type-scale, 1));
}

html[data-density="compact"] {
  --pad: clamp(16px, 3vw, 32px);
}
html[data-density="compact"] .band {
  padding-block: clamp(38px, 5vw, 60px);
}
html[data-density="compact"] .card {
  padding: 18px 18px 16px;
}
html[data-density="compact"] .section-head {
  margin-bottom: clamp(24px, 3vw, 34px);
}
html[data-density="compact"] .flow li {
  padding: 18px 18px 20px;
}

/* Corner radius is one workshop token, applied to the surfaces that carry the
   layout. Pills and circular dots keep their own geometry. */
.card,
.btn,
.theme-dialog__panel,
.theme-card,
.download-hash,
.signin-card,
.contract-mock,
.run-mock {
  border-radius: var(--radius);
}
.btn--sm {
  border-radius: var(--radius-sm);
}
.section-head,
.theme-dialog__panel {
  border-radius: var(--radius-lg);
}

html[data-shadow="none"] .card,
html[data-shadow="none"] .theme-card,
html[data-shadow="none"] .theme-dialog__panel,
html[data-shadow="none"] .btn--primary,
html[data-shadow="none"] .signin-card {
  box-shadow: none !important;
}
html[data-shadow="strong"] .card,
html[data-shadow="strong"] .theme-dialog__panel,
html[data-shadow="strong"] .signin-card {
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--line-2) 60%, transparent);
}

html[data-backdrop="solid"] body::before {
  background: none;
}
html[data-backdrop="gradient"] body::before {
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 56%),
    linear-gradient(20deg, color-mix(in srgb, var(--accent-2) 9%, transparent), transparent 62%);
}
html[data-backdrop="grid"] body::before {
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line-2) 55%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line-2) 55%, transparent) 1px, transparent 1px),
    radial-gradient(1000px 520px at 72% -10%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
  background-size: 58px 58px, 58px 58px, 100% 100%;
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 96%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 96%);
}

html[data-motion="reduced"] {
  scroll-behavior: auto;
}
html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
