/* SPDX-License-Identifier: Apache-2.0 */
/* Shared by every page under website/: tokens, base, and components. Page-specific rules sit at the end. */

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #101214;
  --ink-2: #16191c;
  --ink-3: #1d2125;
  --rule: #2a2e33;
  --paper: #f5f6f7;
  --text-2: #b9bfc5;
  --text-3: #868e96;
  --mint: #3ee08f;
  --mint-deep: #0a7f4a;
  --mint-wash: rgb(62 224 143 / 0.12);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --gutter: clamp(20px, 4.4vw, 72px);
  --max: 1360px;
  --radius: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--rule) var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px / 1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

a {
  color: inherit;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

h1,
h2,
h3 {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}

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

code,
kbd,
pre {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: var(--mint);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(16 18 20 / 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font: 700 19px / 1 var(--mono);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.logo b {
  color: var(--mint);
  font-weight: 700;
}
.logo .cursor {
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 15px;
}
.nav a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--paper);
}
.nav .gh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 14px;
  transition: border-color 0.2s;
}
.nav .gh:hover {
  border-color: var(--text-3);
}

/* ---------- Command bar ---------- */

.cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 8px 8px 8px 18px;
  font: 400 15px / 1.4 var(--mono);
  max-width: 100%;
}
.cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.cmd .prompt {
  color: var(--mint);
  font-weight: 700;
  margin-right: 0.6ch;
}
.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  border: 0;
  border-radius: 8px;
  background: var(--mint);
  color: var(--ink);
  font: 700 14px / 1 var(--sans);
  padding: 11px 14px;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    background 0.2s;
}
.copy:hover {
  background: #5ce9a2;
}
.copy:active {
  transform: scale(0.97);
}
.copy .done {
  display: none;
}
.copy.is-done .done {
  display: inline;
}
.copy.is-done .idle {
  display: none;
}

.example-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 12.5px / 1.3 var(--sans);
  color: #f7e3b8;
  background: rgb(242 184 75 / 0.12);
  border: 1px solid rgb(242 184 75 / 0.35);
  border-radius: 999px;
  padding: 5px 12px;
}
.example-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f2b84b;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(245 246 247 / 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.aurora {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.6;
}
.aurora i {
  position: absolute;
  border-radius: 50%;
}
.aurora i:nth-child(1) {
  width: 46vw;
  height: 46vw;
  right: -6vw;
  top: -14vw;
  background: radial-gradient(circle, rgb(62 224 143 / 0.42), transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  width: 36vw;
  height: 36vw;
  right: 18vw;
  top: 16vw;
  background: radial-gradient(circle, rgb(64 160 255 / 0.22), transparent 65%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
  width: 30vw;
  height: 30vw;
  left: -8vw;
  bottom: -10vw;
  background: radial-gradient(circle, rgb(10 127 74 / 0.35), transparent 65%);
  animation: drift-a 38s ease-in-out infinite alternate-reverse;
}
@keyframes drift-a {
  to {
    transform: translate(-6vw, 4vw) scale(1.08);
  }
}
@keyframes drift-b {
  to {
    transform: translate(5vw, -3vw) scale(0.94);
  }
}

.hero > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
  min-height: min(calc(100svh - 68px), 920px);
  padding-block: clamp(48px, 7vh, 88px);
}
.hero-copy {
  min-width: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgb(22 25 28 / 0.7);
  font-size: 13.5px;
  color: var(--text-2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.badge span {
  font-weight: 700;
  color: var(--mint);
  background: var(--mint-wash);
  border-radius: 999px;
  padding: 3px 10px;
}
.hero h1 {
  font-size: clamp(42px, 4.8vw, 74px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.hero .lede {
  margin-top: 24px;
  font-size: clamp(17px, 1.3vw, 19.5px);
  color: var(--text-2);
  max-width: 34em;
}
.hero .cmd {
  margin-top: 36px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.05),
    0 20px 50px -24px rgb(0 0 0 / 0.6);
}
.hero .fine {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-3);
}
.more {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 15px;
  font-weight: 700;
}
.more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.more a .icon {
  color: var(--mint);
  transition: transform 0.25s var(--ease-out);
}
.more a:hover .icon {
  transform: translateX(3px);
}

/* The launch-kit stage: real-looking platform pieces on a tilted 3D table. */

.stage {
  position: relative;
  min-width: 0;
  perspective: 1800px;
}
.stage .example-tag {
  display: inline-flex;
  margin: 0 0 18px;
}
.scene {
  position: relative;
  aspect-ratio: 1 / 0.86;
  transform-style: preserve-3d;
  transform: rotateX(calc(9deg + var(--ty, 0deg))) rotateY(calc(-10deg + var(--tx, 0deg)))
    rotateZ(1deg);
  transition: transform 1.2s var(--ease-out);
}
.scene > * {
  position: absolute;
  margin: 0;
  transform: translateZ(var(--z, 0px));
}

.shine {
  overflow: hidden;
}
.shine::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgb(255 255 255 / 0.08) 42%,
    rgb(255 255 255 / 0.42) 50%,
    rgb(255 255 255 / 0.08) 58%,
    transparent 70%
  );
  transform: translateX(-120%);
}
.shine:hover::after {
  transform: translateX(120%);
  transition: transform 0.9s var(--ease-out);
}

.kit {
  left: 31%;
  top: 58%;
  width: 34%;
  z-index: 3;
  background: linear-gradient(160deg, #fbf8f1, #efe8da);
  color: #1f2a30;
  border-radius: 18px;
  padding: 20px;
  box-shadow:
    inset 0 1px 0 #fff,
    0 40px 70px -30px rgb(0 0 0 / 0.8);
}
.kit .mark {
  font: 700 32px / 1 var(--mono);
  letter-spacing: -0.04em;
}
.kit .mark span {
  color: #d99a24;
}
.swatches {
  display: flex;
  gap: 7px;
  margin-top: 16px;
}
.swatch {
  flex: 1;
  height: 58px;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  padding: 6px 7px;
  font: 400 11px / 1 var(--mono);
}
.kit .type {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #5b6870;
  border-top: 1px solid #e4dccb;
  padding-top: 12px;
}
.kit .type b {
  font-family: var(--mono);
  color: #1f2a30;
}
.kit .kit-label {
  margin-top: 8px;
  font-size: 12px;
  color: #5b6870;
}

.post,
.phone {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.9),
    0 2px 6px rgb(0 0 0 / 0.25),
    0 50px 90px -34px rgb(0 0 0 / 0.85);
}
.post {
  background: #fff;
  color: #1c2227;
  border-radius: 16px;
  font: 400 13px / 1.45 var(--sans);
}
.post img {
  width: 100%;
}
.post > p {
  padding: 0 14px 12px;
}
.post-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px 10px;
}
.post-head b {
  display: block;
  font-size: 13.5px;
}
.post-head small {
  color: #6b747c;
  font-size: 11.5px;
}
.avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #1f2a30;
  color: #f2b84b;
  display: grid;
  place-items: center;
  font: 700 15px / 1 var(--mono);
}
.avatar.ring {
  border-radius: 50%;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #f2b84b;
}
.post-actions {
  display: flex;
  gap: 16px;
  padding: 10px 14px;
  color: #59636b;
  font-size: 12px;
  font-weight: 700;
}
.post-actions span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-actions .icon {
  width: 17px;
  height: 17px;
}
.post figcaption,
.phone figcaption {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font: 700 11px / 1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint-deep);
  background: #eafaf2;
  border: 1px solid #bfe9d3;
  border-radius: 999px;
  padding: 5px 9px;
}
.p-linkedin {
  left: 31%;
  top: 0;
  width: 36%;
  z-index: 2;
}
.p-linkedin .post-actions {
  border-top: 1px solid #eceff1;
  justify-content: space-between;
}
.p-insta {
  left: 0;
  top: 10%;
  width: 28.5%;
  z-index: 2;
}
.p-insta .post-actions {
  padding-bottom: 4px;
}
.p-insta > p {
  padding-top: 4px;
  font-size: 12.5px;
}

.phone {
  left: 69.5%;
  top: 4%;
  width: 30.5%;
  z-index: 4;
  aspect-ratio: 9 / 19;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(150deg, #3a4148, #0c0e10 40%, #1b1f23);
}
.phone .screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #fff;
  color: #1c2227;
  padding: 48px 16px 16px;
  font: 400 12.5px / 1.45 var(--sans);
}
.island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 34%;
  height: 22px;
  border-radius: 999px;
  background: #0c0e10;
  transform: translateX(-50%);
}
.app-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.app-row b {
  display: block;
  font-size: 14px;
}
.app-row small {
  color: #6b747c;
  font-size: 11.5px;
}
.appicon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(160deg, #34444d, #1f2a30);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.15);
}
.appicon i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f2b84b;
}
.update {
  margin-left: auto;
  background: #0064d2;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 999px;
  padding: 5px 12px;
}
.phone .wn {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 700;
}
.phone .ver {
  color: #6b747c;
  font-size: 11.5px;
}
.phone ul {
  margin: 10px 0 0;
  padding-left: 16px;
}
.phone li + li {
  margin-top: 6px;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(88px, 12vw, 168px);
  border-top: 1px solid var(--rule);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head h2 {
  font-size: clamp(32px, 3.6vw, 54px);
}
.section-head p {
  color: var(--text-2);
  font-size: 18px;
  max-width: 36em;
}

/* Commits to copy */

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.ledger li {
  display: grid;
  grid-template-columns: minmax(0, 7fr) 150px minmax(0, 5fr);
  gap: 8px 32px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.ledger .line {
  font: 400 clamp(14px, 1.25vw, 17px) / 1.5 var(--mono);
  color: var(--text-3);
  min-height: 1.5em;
}
.ledger .pub .line {
  color: var(--paper);
}
.ledger .line.is-set {
  font-family: var(--sans);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ledger .line .old {
  display: block;
  margin-top: 4px;
  font: 400 13px / 1.4 var(--mono);
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-color: var(--rule);
}
.chip {
  justify-self: start;
  font: 700 11px / 1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
  color: var(--text-3);
  border: 1px solid var(--rule);
}
.chip.is-public {
  color: var(--mint);
  background: var(--mint-wash);
  border-color: rgb(62 224 143 / 0.45);
}
.chip.is-security {
  color: #f7e3b8;
  border-color: rgb(242 184 75 / 0.45);
}
.ledger .why {
  font-size: 14.5px;
  color: var(--text-2);
}
.ledger .why b {
  font: 400 12px var(--mono);
  color: var(--text-3);
  margin-right: 6px;
}
.ledger-foot {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--text-3);
  font-size: 14px;
}

/* Bundle browser */

.bundle {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink-2);
  min-height: 560px;
}
.tree {
  border-right: 1px solid var(--rule);
  padding: 18px 10px;
  font: 400 14px / 1 var(--mono);
}
.tree h3 {
  font-size: 13px;
  color: var(--text-3);
  padding: 4px 10px 14px;
  letter-spacing: 0;
}
.files {
  display: grid;
}
.tree .dir {
  color: var(--text-3);
  padding: 9px 10px;
}
.tree button {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--text-2);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.tree button.sub {
  padding-left: 28px;
}
.tree button:hover {
  background: var(--ink-3);
  color: var(--paper);
}
.tree button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: -2px;
}
.tree button[aria-selected="true"] {
  background: var(--mint-wash);
  color: var(--mint);
}
.viewer {
  position: relative;
  padding: clamp(24px, 3vw, 44px);
  display: grid;
  align-content: start;
  gap: 18px;
}
.viewer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font: 400 13px var(--mono);
  color: var(--text-3);
}
.doc {
  animation: doc-in 0.45s var(--ease-out);
}
.doc[hidden] {
  display: none;
}
@keyframes doc-in {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(4px);
  }
}
.doc.text {
  background: #f7f3ea;
  color: #1f2a30;
  border-radius: 12px;
  padding: clamp(22px, 3vw, 36px);
  max-width: 68ch;
  font-size: 16px;
}
.doc.text h4 {
  margin: 0 0 6px;
  font: 700 22px / 1.2 var(--mono);
  letter-spacing: -0.02em;
}
.doc.text h5 {
  margin: 20px 0 6px;
  font: 700 12px / 1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6870;
}
.doc.text p + p {
  margin-top: 12px;
}
.doc.text ul {
  margin: 0;
  padding-left: 20px;
}
.doc.text li + li {
  margin-top: 6px;
}
.doc.text .meta {
  color: #5b6870;
  font-size: 14px;
}
.doc.code {
  margin: 0;
  background: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
  overflow-x: auto;
}
.doc.images {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.doc.images figure {
  margin: 0;
}
.doc.images figure:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.doc.images figure:nth-child(n + 2) {
  grid-column: span 2;
}
.doc.images img {
  border-radius: 8px;
  width: 100%;
}
.doc.images figcaption {
  margin-top: 6px;
  font: 400 12px var(--mono);
  color: var(--text-3);
}

/* Runs anywhere */

.where {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.tabs {
  display: grid;
  gap: 4px;
}
.tabs [role="tab"] {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.tabs [role="tab"] b {
  display: block;
  font: 700 19px / 1.3 var(--mono);
  letter-spacing: -0.02em;
}
.tabs [role="tab"] span {
  display: block;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15px;
}
.tabs [role="tab"]:hover {
  background: var(--ink-2);
}
.tabs [role="tab"][aria-selected="true"] {
  background: var(--ink-2);
  border-color: var(--rule);
}
.tabs [role="tab"][aria-selected="true"] b {
  color: var(--mint);
}
.tabs [role="tab"]:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
.term {
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--ink-2);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  font: 400 12.5px var(--mono);
  color: var(--text-3);
}
.term-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rule);
}
.term-bar span {
  margin-left: 10px;
}
.term pre {
  margin: 0;
  padding: 24px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
  overflow-x: auto;
}
.term pre .c {
  color: var(--text-3);
}
.term pre .p {
  color: var(--mint);
  font-weight: 700;
}
.term pre .k {
  color: var(--paper);
}
.providers {
  margin-top: 24px;
  color: var(--text-2);
  font-size: 15px;
}
.providers b {
  color: var(--paper);
}

/* Principles */

.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.rules > div {
  padding: clamp(28px, 3.4vw, 48px) clamp(0px, 3vw, 48px) clamp(28px, 3.4vw, 48px) 0;
  border-bottom: 1px solid var(--rule);
}
.rules > div:nth-child(even) {
  padding-left: clamp(24px, 3vw, 48px);
  border-left: 1px solid var(--rule);
}
.rules h3 {
  font-size: clamp(22px, 2.2vw, 30px);
}
.rules p {
  margin-top: 12px;
  color: var(--text-2);
  max-width: 34em;
}

/* Close */

.close {
  text-align: center;
  padding-block: clamp(110px, 14vw, 200px);
  border-top: 1px solid var(--rule);
  background: radial-gradient(50% 60% at 50% 100%, rgb(62 224 143 / 0.08), transparent 70%);
}
.close h2 {
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.04em;
}
.close p {
  margin: 20px auto 0;
  color: var(--text-2);
  font-size: 18px;
  max-width: 34em;
}
.close .cmd {
  margin: 40px auto 0;
  width: fit-content;
  max-width: 100%;
  text-align: left;
}
.close .more {
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 32px;
  color: var(--text-3);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--paper);
}

/* Integrations strip */

.works {
  border-top: 1px solid var(--rule);
  padding-block: 36px;
}
.works-title {
  font: 400 13px / 1 var(--mono);
  letter-spacing: 0.02em;
  color: var(--text-3);
  text-align: center;
}
.marquee ul {
  margin: 22px auto 0;
  padding: 0;
  list-style: none;
  max-width: 980px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 36px;
  font: 700 16px / 1 var(--mono);
  letter-spacing: -0.02em;
  color: var(--text-2);
}
.marquee li {
  white-space: nowrap;
}

/* The problem */

.problem h2 {
  font-size: clamp(34px, 4.4vw, 64px);
  letter-spacing: -0.04em;
  max-width: 15em;
}
.problem-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.problem-lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--text-2);
}
.before-after {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.before-after li {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--ink-2), rgb(22 25 28 / 0.4));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
}
.before-after s {
  font: 400 14px / 1.4 var(--mono);
  color: var(--text-3);
  text-decoration-color: rgb(255 120 120 / 0.6);
}
.before-after span {
  font-size: 17px;
  font-weight: 700;
  color: var(--paper);
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 1px;
  background: linear-gradient(90deg, var(--mint), rgb(62 224 143 / 0.15));
}
.steps li {
  position: relative;
  padding-top: 40px;
}
.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--mint);
  box-shadow: 0 0 0 6px var(--ink);
}
.steps h3 {
  font-size: 24px;
}
.steps p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 15.5px;
}
.steps code {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-3);
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: 5px 9px;
}
.ledger-title {
  margin: clamp(72px, 9vw, 120px) 0 24px;
  font-size: clamp(22px, 2vw, 28px);
}

/* Brand */

.brand-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.brand-copy h2 {
  font-size: clamp(32px, 3.6vw, 54px);
}
.brand-copy p {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 17.5px;
}
.brand-copy p code,
.faq code {
  font-size: 0.9em;
  color: var(--paper);
  background: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1px 6px;
}
.brand-copy .term {
  margin-top: 28px;
}
.term.small pre {
  font-size: 13px;
  padding: 18px 20px;
}
.brand-copy .note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-3);
}
.mosaic {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  gap: 16px;
  perspective: 1600px;
}
.mosaic figure {
  position: relative;
  margin: 0;
  border-radius: 14px;
  background: var(--ink-2);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 30px 60px -30px rgb(0 0 0 / 0.9);
  transition: transform 0.6s var(--ease-out);
}
.mosaic figure:hover {
  transform: translateY(-4px) rotateX(3deg);
}
.mosaic img {
  width: 100%;
}
.mosaic figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  font: 400 11.5px / 1 var(--mono);
  color: #f7f3ea;
  background: rgb(16 18 20 / 0.7);
  border-radius: 999px;
  padding: 6px 10px;
  backdrop-filter: blur(6px);
}
.m-insta {
  grid-row: 1 / span 3;
  align-self: center;
}

/* FAQ */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.faq-wrap h2 {
  font-size: clamp(32px, 3.6vw, 54px);
}
.faq {
  border-top: 1px solid var(--rule);
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font: 700 18px / 1.4 var(--sans);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  color: var(--mint);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary .icon {
  transform: rotate(45deg);
}
.faq summary:hover {
  color: var(--mint);
}
.faq details p {
  padding: 0 48px 24px 0;
  color: var(--text-2);
  max-width: 62ch;
}

.close {
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.aurora.soft {
  opacity: 0.45;
}
.aurora.soft i:nth-child(1) {
  left: 30%;
  right: auto;
  top: auto;
  bottom: -30vw;
}
.aurora.soft i:nth-child(2) {
  left: 10%;
  right: auto;
  top: auto;
  bottom: -20vw;
}
.term pre.yaml {
  color: var(--paper);
}
.term pre .k {
  white-space: nowrap;
}

/* ---------- Motion ---------- */
/* Content is visible by default. Script adds .js-motion to <html> before paint; only then do pieces start hidden. */

.js-motion .scene > * {
  opacity: 0;
  transform: translateZ(var(--z, 0px)) translateY(26px) scale(0.95);
  filter: blur(8px);
}
.js-motion .stage.is-dealt .scene > * {
  opacity: 1;
  transform: translateZ(var(--z, 0px));
  filter: none;
  transition:
    opacity 0.8s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter 0.8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js-motion .stage.is-dealt .shine::after {
  animation: sweep 1.3s var(--ease-out) both;
  animation-delay: calc(var(--d, 0ms) + 700ms);
}
@keyframes sweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .logo .cursor,
  .aurora i {
    animation: none !important;
  }
  .js-motion .scene > * {
    opacity: 1 !important;
    transform: translateZ(var(--z, 0px)) !important;
    filter: none !important;
    transition: none !important;
  }
  .shine::after {
    display: none;
  }
  .scene,
  .mosaic figure {
    transition: none;
  }
  .doc {
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero > .wrap {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .stage {
    max-width: 760px;
    width: 100%;
    margin: 24px auto 0;
  }
  .section-head,
  .where,
  .brand-grid,
  .faq-wrap,
  .problem-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
  .steps::before {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .nav a:not(.gh) {
    display: none;
  }
  .cmd {
    flex-wrap: wrap;
    font-size: 12px;
    padding: 14px 12px;
  }
  .cmd code {
    flex-basis: 100%;
  }
  .cmd .copy {
    flex: 1;
    justify-content: center;
  }
  .stage {
    perspective: none;
  }
  .stage .example-tag {
    position: static;
    display: inline-flex;
    margin-bottom: 14px;
  }
  .scene {
    aspect-ratio: auto;
    transform: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
  }
  .scene > * {
    position: relative;
    inset: auto;
    width: auto;
  }
  .js-motion .scene > *,
  .js-motion .stage.is-dealt .scene > * {
    transform: none;
  }
  .kit {
    grid-column: 1 / -1;
  }
  .swatch {
    height: 40px;
  }
  .phone {
    border-radius: 34px;
  }
  .phone .screen {
    border-radius: 27px;
    padding: 40px 10px 12px;
    font-size: 11.5px;
  }
  .appicon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }
  .update {
    display: none;
  }
  .p-linkedin {
    grid-column: 1 / -1;
    order: 5;
  }
  .p-insta > p,
  .p-insta .post-actions {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .mosaic {
    grid-template-columns: 1fr 1fr;
  }
  .m-insta {
    grid-row: span 2;
  }
  .ledger li {
    grid-template-columns: 1fr;
  }
  .bundle {
    grid-template-columns: 1fr;
  }
  .tree {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    overflow-x: auto;
  }
  .files {
    display: flex;
    gap: 4px;
  }
  .tree button.sub {
    padding-left: 10px;
  }
  .tree .dir,
  .tree h3 {
    display: none;
  }
  .tree button {
    white-space: nowrap;
  }
  .doc.code,
  .term pre {
    white-space: pre-wrap;
    font-size: 12.5px;
  }
  .doc.images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .doc.images figure:nth-child(n) {
    grid-column: span 1;
    grid-row: auto;
  }
  .rules {
    grid-template-columns: 1fr;
  }
  .rules > div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
  .faq details p {
    padding-right: 0;
  }
}

/* Hero piece fit: badges stay clear of names and the notch; the phone row fits its width. */
.post figcaption,
.phone figcaption {
  top: 10px;
  right: 10px;
  font-size: 11px;
  padding: 4px 7px;
}
.phone figcaption {
  top: auto;
  right: auto;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}
.phone .screen {
  font-size: 12px;
  padding-bottom: 48px;
}
.app-row {
  gap: 8px;
}
.appicon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}
.update {
  font-size: 11px;
  padding: 4px 10px;
}
.app-row small {
  display: none;
}

.badge span {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .badge {
    font-size: 12.5px;
  }
  .where > * {
    min-width: 0;
  }
}
.mosaic figcaption {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .phone li:nth-child(n + 3) {
    display: none;
  }
  .p-insta figcaption {
    top: auto;
    bottom: 10px;
  }
  .mosaic figcaption {
    font-size: 11px;
    padding: 5px 8px;
    left: 8px;
    bottom: 8px;
  }
  .m-nl {
    grid-column: 1 / -1;
  }
}

/* Try the rules */

.try {
  margin-top: clamp(56px, 7vw, 96px);
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--ink-2), rgb(22 25 28 / 0.5));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
  padding: clamp(24px, 3vw, 40px);
}
.try-head h3 {
  font-size: clamp(22px, 2vw, 28px);
}
.try-head p {
  margin-top: 8px;
  color: var(--text-2);
  max-width: 60ch;
}
.try-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.try-form {
  display: grid;
  gap: 18px;
}
.try-field {
  display: grid;
  gap: 8px;
}
.try-field > span,
.try-labels legend {
  font: 700 12px / 1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.try input[type="text"],
.try select {
  width: 100%;
  font: 400 15px / 1.4 var(--mono);
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 13px 14px;
}
.try select {
  font-family: var(--sans);
}
.try input[type="text"]:focus-visible,
.try select:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
.try-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.try-examples button {
  font: 400 13px / 1 var(--mono);
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.try-examples button:hover {
  color: var(--paper);
  border-color: var(--text-3);
}
.try-labels {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.try-labels legend {
  margin-bottom: 10px;
}
.try-labels label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 14px / 1 var(--mono);
  color: var(--text-2);
  cursor: pointer;
}
.try-labels input {
  accent-color: var(--mint);
  width: 16px;
  height: 16px;
}
.try-out {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--ink);
  padding: 24px;
  min-height: 220px;
}
.try-out .chip {
  justify-self: start;
}
.try-reason {
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
}
.try-by {
  font: 400 13px / 1.4 var(--mono);
  color: var(--text-3);
}
.try-next {
  color: var(--text-2);
  font-size: 15px;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
@media (max-width: 900px) {
  .try-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.chip.is-ai {
  color: var(--paper);
  border-color: var(--text-3);
}

.try-trace {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.try-trace > p {
  font-size: 13px;
  color: var(--text-3);
}
.try-trace ol {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  counter-reset: check;
}
.try-trace li {
  counter-increment: check;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 400 13px / 1.9 var(--mono);
  color: var(--text-2);
}
.try-trace li::before {
  content: counter(check);
  width: 1.6em;
  color: var(--text-3);
}
.try-trace li span {
  margin-left: auto;
  color: var(--text-3);
}
.try-trace li.is-hit {
  color: var(--mint);
  font-weight: 700;
}
.try-trace li.is-hit span {
  color: var(--mint);
}
.try-trace li.is-skip {
  color: var(--text-3);
  opacity: 0.55;
}

/* Brand mosaic: captions sit under the images, and Pebble's kit fills the open cell. */
.mosaic figure {
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.mosaic figure img {
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 30px 60px -30px rgb(0 0 0 / 0.9);
}
.mosaic figcaption {
  position: static;
  display: block;
  margin-top: 10px;
  padding: 0;
  background: none;
  backdrop-filter: none;
  color: var(--text-3);
  font-size: 12px;
}
.mosaic .shine::after {
  display: none;
}
.m-insta {
  grid-row: 1 / span 2;
  align-self: start;
}
.m-kit {
  grid-column: 1;
  grid-row: 3 / span 2;
  align-self: start;
  background: linear-gradient(160deg, #fbf8f1, #efe8da);
  color: #1f2a30;
  border-radius: 14px;
  padding: 18px;
  box-shadow:
    inset 0 1px 0 #fff,
    0 30px 60px -30px rgb(0 0 0 / 0.9);
}
.m-kit .mark {
  font: 700 28px / 1 var(--mono);
  letter-spacing: -0.04em;
}
.m-kit .mark span {
  color: #d99a24;
}
.m-kit .swatches {
  margin-top: 14px;
}
.m-kit .swatch {
  height: 48px;
  font-size: 11px;
}
.m-kit .type {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e4dccb;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #5b6870;
}
.m-kit .type b {
  font-family: var(--mono);
  color: #1f2a30;
}
@media (max-width: 760px) {
  .m-kit {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}
.m-col {
  display: grid;
  gap: 20px;
  align-content: start;
}
.mosaic {
  align-items: center;
}
.mosaic .m-insta,
.mosaic .m-kit {
  grid-row: auto;
  grid-column: auto;
}
@media (max-width: 760px) {
  .mosaic {
    grid-template-columns: minmax(0, 1fr);
  }
}
.try-trace li span {
  white-space: nowrap;
}
