:root {
  color-scheme: light;
  font-family:
    Geist,
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #18181b;
  background: #f6f5f1;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #18181b;
  --ink-soft: #424242;
  --muted: #70706b;
  --paper: #f6f5f1;
  --surface: #ffffff;
  --surface-soft: #efeee9;
  --line: rgba(24, 24, 27, 0.13);
  --line-strong: rgba(24, 24, 27, 0.24);
  --accent: #ef625f;
  --accent-soft: #ffe2df;
  --shadow: 0 24px 70px rgba(24, 24, 27, 0.1);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 85% 4%,
      rgba(239, 98, 95, 0.08),
      transparent 28rem
    ),
    var(--paper);
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(239, 98, 95, 0.35);
  outline-offset: 4px;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand img {
  width: 27px;
  height: 27px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: 0.83rem;
}

.site-nav a {
  text-decoration: none;
}

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

.site-nav .nav-cta,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  color: #fff;
  background: var(--ink);
  font-size: 0.86rem;
  font-weight: 620;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.button:hover,
.site-nav .nav-cta:hover {
  color: #fff;
  background: #303034;
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--ink);
  background: transparent;
}

.button-secondary:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.76rem;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb span[aria-hidden="true"] {
  color: #aaa9a2;
}

.hero {
  padding-block: 88px 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.14fr);
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 610;
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.hero-lede {
  max-width: 39rem;
  margin: 27px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 31px;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.trust-line span + span::before {
  margin-right: 14px;
  color: #b4b3ad;
  content: "·";
}

.product-stage {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 30px;
  background: #e9e8e3;
  box-shadow: var(--shadow);
}

.product-stage::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
  content: "";
  pointer-events: none;
}

.quick-demo {
  display: grid;
  min-height: 470px;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: center;
  padding: 36px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82) 1px, transparent 1px) 0 0 /
      34px 34px,
    linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.68)),
    linear-gradient(145deg, #deddd7, #f6f5f0 58%, #d7d6d0);
}

.quick-rail {
  display: grid;
  gap: 7px;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(24, 24, 27, 0.16);
}

.quick-rail span {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 11px;
  color: #686863;
  font-size: 0.71rem;
  font-weight: 720;
}

.quick-rail span:first-child,
.quick-rail .active {
  color: #fff;
  background: var(--ink);
}

.quick-panel {
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 23px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 60px rgba(24, 24, 27, 0.18);
}

.quick-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.quick-panel-head strong {
  font-size: 0.94rem;
}

.quick-panel-head span {
  color: var(--muted);
  font-size: 0.73rem;
}

.quick-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 17px;
}

.quick-panel-grid article {
  min-height: 105px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #f7f6f2;
}

.quick-panel-grid small,
.quick-panel-grid span {
  display: block;
}

.quick-panel-grid small {
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-panel-grid strong {
  display: block;
  margin-top: 13px;
  font-size: 0.83rem;
}

.quick-panel-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
}

.image-stage {
  min-height: 470px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.76) 1px, transparent 1px) 0 0 /
      38px 38px,
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.7),
      rgba(219, 218, 212, 0.76)
    ),
    #dfded8;
}

.space-stage {
  min-height: 0;
  padding: 18px;
  background: #e9e8e3;
}

.product-illustration {
  position: relative;
}

.product-illustration figcaption {
  position: absolute;
  z-index: 6;
  right: 28px;
  bottom: 28px;
  max-width: calc(100% - 56px);
  border: 1px solid rgba(24, 24, 27, 0.13);
  border-radius: 999px;
  padding: 7px 11px;
  color: #555550;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(24, 24, 27, 0.09);
  font-size: 0.65rem;
  font-weight: 610;
  letter-spacing: 0.015em;
  line-height: 1.3;
}

/* Code-native product illustration: visual Spaces */
.space-illustration {
  position: relative;
  min-height: 434px;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 17%, rgba(239, 98, 95, 0.1), transparent 27%),
    linear-gradient(90deg, rgba(24, 24, 27, 0.035) 1px, transparent 1px) 0 0 /
      28px 28px,
    linear-gradient(rgba(24, 24, 27, 0.035) 1px, transparent 1px) 0 0 / 28px
      28px,
    #f7f6f2;
  box-shadow: 0 18px 45px rgba(24, 24, 27, 0.14);
}

.article-cover .space-illustration {
  min-height: 590px;
}

.space-demo-toolbar {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(24, 24, 27, 0.09);
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  font-size: 0.7rem;
}

.space-demo-toolbar span:first-child {
  font-weight: 680;
}

.space-demo-toolbar span:last-child {
  color: var(--muted);
}

.space-demo-canvas {
  position: absolute;
  inset: 48px 0 0;
}

.space-demo-node {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 13px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 13px 30px rgba(24, 24, 27, 0.1);
}

.space-demo-node small,
.space-demo-node strong {
  display: block;
}

.space-demo-node small {
  color: #8e4744;
  font-size: 0.54rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.space-demo-node strong {
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: -0.015em;
}

.space-demo-node p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.42;
}

.space-demo-question {
  top: 8%;
  left: 6%;
  width: 34%;
  min-height: 106px;
}

.space-demo-link {
  top: 7%;
  left: 47%;
  display: grid;
  width: 32%;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
}

.space-demo-file {
  top: 53%;
  left: 10%;
  display: grid;
  width: 29%;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
}

.space-demo-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #565650;
  background: #efeee9;
  font-size: 0.55rem;
  font-weight: 760;
}

.space-demo-link .space-demo-icon {
  color: #904543;
  background: var(--accent-soft);
  font-size: 0.92rem;
}

.space-demo-visual {
  top: 39%;
  left: 43%;
  width: 28%;
  min-height: 158px;
  transform: rotate(-1.5deg);
}

.space-demo-art {
  position: relative;
  height: 82px;
  margin-bottom: 11px;
  overflow: hidden;
  border-radius: 9px;
  background:
    radial-gradient(circle at 26% 30%, #ffd9c8 0 13%, transparent 14%),
    linear-gradient(140deg, #cfdde0, #efe7d7 52%, #d5c6d9);
}

.space-demo-art span {
  position: absolute;
  bottom: -16px;
  width: 58px;
  height: 72px;
  border-radius: 50% 50% 12px 12px;
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(18deg);
}

.space-demo-art span:nth-child(1) {
  left: 8%;
}

.space-demo-art span:nth-child(2) {
  left: 38%;
  height: 58px;
  background: rgba(69, 82, 78, 0.36);
}

.space-demo-art span:nth-child(3) {
  right: 3%;
  height: 84px;
  background: rgba(239, 98, 95, 0.24);
}

.space-demo-checklist {
  top: 51%;
  right: 5%;
  width: 25%;
  min-height: 128px;
  transform: rotate(1deg);
}

.space-demo-checklist p {
  display: flex;
  align-items: center;
  gap: 6px;
}

.space-demo-checklist p span {
  display: grid;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #aaa9a2;
  border-radius: 3px;
  color: #fff;
  background: #fff;
  font-size: 0.48rem;
}

.space-demo-checklist p:first-of-type span {
  border-color: var(--ink);
  background: var(--ink);
}

/* Code-native product illustration: desktop pop-out */
.popout-illustration {
  position: relative;
  width: 100%;
  min-height: 434px;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.56) 1px, transparent 1px) 0 0 /
      32px 32px,
    linear-gradient(145deg, #deddd7, #f5f4ef 58%, #d4d3cd);
}

.article-cover .popout-illustration {
  min-height: 590px;
}

.popout-workspace {
  position: absolute;
  top: 12%;
  left: 7%;
  width: 65%;
  height: 72%;
  border: 1px solid rgba(24, 24, 27, 0.09);
  border-radius: 18px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 42px rgba(24, 24, 27, 0.09);
}

.popout-workspace span {
  display: block;
  margin-bottom: 31px;
  color: #696964;
  font-size: 0.68rem;
  font-weight: 700;
}

.popout-workspace i {
  display: block;
  width: 82%;
  height: 8px;
  margin-top: 13px;
  border-radius: 99px;
  background: rgba(24, 24, 27, 0.07);
}

.popout-workspace i:nth-of-type(2) {
  width: 68%;
}

.popout-workspace i:nth-of-type(3) {
  width: 76%;
  margin-top: 34px;
}

.popout-workspace i:nth-of-type(4) {
  width: 54%;
}

.popout-window {
  position: absolute;
  z-index: 3;
  top: 9%;
  right: 4%;
  width: 58%;
  min-width: 292px;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.16);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 70px rgba(24, 24, 27, 0.27);
  transform: rotate(-0.8deg);
}

.popout-window-bar {
  display: grid;
  min-height: 43px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
  background: #f6f5f1;
}

.popout-window-bar strong {
  font-size: 0.64rem;
  font-weight: 650;
  white-space: nowrap;
}

.popout-window-dots {
  display: flex;
  gap: 5px;
}

.popout-window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c7c6c0;
}

.popout-window-dots i:first-child {
  background: var(--accent);
}

.popout-on-top {
  justify-self: end;
  border: 1px solid rgba(24, 24, 27, 0.13);
  border-radius: 999px;
  padding: 4px 7px;
  color: #8d4542;
  background: var(--accent-soft);
  font-size: 0.51rem;
  font-weight: 720;
}

.popout-note-body {
  padding: 22px 23px 18px;
}

.popout-note-body small {
  color: var(--accent);
  font-size: 0.54rem;
  font-weight: 740;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.popout-note-body h3 {
  margin: 8px 0 17px;
  font-size: 1.08rem;
  font-weight: 630;
  letter-spacing: -0.035em;
}

.popout-note-body p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  color: #4c4c48;
  font-size: 0.67rem;
}

.popout-note-body p span {
  display: grid;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #aeada7;
  border-radius: 4px;
  color: #fff;
  background: #fff;
  font-size: 0.5rem;
}

.popout-note-body p:first-of-type span {
  border-color: var(--ink);
  background: var(--ink);
}

.popout-edit-line {
  margin-top: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
  color: #aaa9a2;
  font-size: 0.61rem;
}

.popout-edit-line i {
  display: inline-block;
  width: 1px;
  height: 0.8rem;
  margin-left: 3px;
  vertical-align: -0.13rem;
  background: var(--accent);
}

.popout-window footer {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 0 11px 0 18px;
  color: var(--muted);
  background: #fbfaf7;
  font-size: 0.53rem;
}

.popout-resize {
  width: 12px;
  height: 12px;
  border-right: 2px solid #aaa9a2;
  border-bottom: 2px solid #aaa9a2;
  opacity: 0.7;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.proof-strip article {
  min-height: 145px;
  padding: 28px 24px;
}

.proof-strip article + article {
  border-left: 1px solid var(--line);
}

.proof-strip strong {
  display: block;
  font-size: 0.92rem;
}

.proof-strip p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.content-section {
  padding-block: 96px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(48px, 9vw, 120px);
}

.section-heading {
  position: sticky;
  top: 28px;
  align-self: start;
}

.section-heading h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-heading p:not(.eyebrow) {
  max-width: 30rem;
  margin: 19px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.detail-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.detail-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 29px 0 31px;
  border-bottom: 1px solid var(--line);
}

.detail-number {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  color: #9d4543;
  background: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 720;
}

.detail-list h3 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.detail-list p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.callout {
  margin-top: 31px;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 19px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

.related-section {
  padding-block: 18px 96px;
}

.related-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}

.related-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.related-card {
  min-height: 235px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 27px;
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition:
    transform 170ms ease,
    background-color 170ms ease;
}

.related-card:hover {
  background: #fff;
  transform: translateY(-2px);
}

.related-card small {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.related-card h3 {
  max-width: 16ch;
  margin: 44px 0 0;
  font-size: 1.55rem;
  font-weight: 610;
  letter-spacing: -0.04em;
}

.related-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  margin-bottom: 86px;
  border-radius: 28px;
  padding: clamp(30px, 6vw, 58px);
  color: #fff;
  background: var(--ink);
}

.cta-band h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1;
}

.cta-band p {
  max-width: 38rem;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.cta-band .button {
  border-color: #fff;
  color: var(--ink);
  background: #fff;
}

.cta-band .button:hover {
  color: var(--ink);
  background: #f1f0ec;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 124px;
}

.footer-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-links a {
  text-decoration: none;
}

/* Editorial pages */
.article-hero {
  max-width: 890px;
  padding-block: 76px 54px;
}

.article-hero h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.article-deck {
  max-width: 720px;
  margin: 27px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 0.78rem;
}

.article-cover {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  background: #e9e8e3;
  box-shadow: var(--shadow);
}

.article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 720px);
  justify-content: center;
  gap: 64px;
  padding-block: 76px 96px;
}

.article-toc {
  position: sticky;
  top: 30px;
  align-self: start;
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
}

.article-toc strong {
  display: block;
  margin-bottom: 11px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-toc a {
  display: block;
  padding-block: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  text-decoration: none;
}

.prose {
  min-width: 0;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 3.4rem 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 610;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.prose h3 {
  margin: 2.25rem 0 0.7rem;
  font-size: 1.23rem;
  font-weight: 640;
  letter-spacing: -0.025em;
}

.prose p,
.prose li {
  color: #353535;
  font-size: 1.01rem;
  line-height: 1.82;
}

.prose p {
  margin: 0 0 1.35rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.6rem;
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.58rem;
}

.prose blockquote {
  margin: 2.2rem 0;
  border-left: 3px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.35rem;
}

.prose blockquote p {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 540;
  line-height: 1.62;
}

.prose .note-box {
  margin: 2.3rem 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.prose .note-box strong {
  display: block;
  margin-bottom: 7px;
}

.prose .note-box p:last-child {
  margin-bottom: 0;
}

.inline-cta {
  margin-top: 3rem;
  border-block: 1px solid var(--line);
  padding-block: 27px;
}

.inline-cta strong,
.inline-cta p {
  display: block;
}

.inline-cta p {
  margin: 7px 0 17px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* 404 */
.error-main {
  display: grid;
  min-height: calc(100vh - 201px);
  place-items: center;
  padding-block: 72px;
}

.error-card {
  width: min(760px, 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(34px, 7vw, 70px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.error-code {
  display: block;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.error-card h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
}

.error-card p {
  max-width: 34rem;
  margin: 22px 0 29px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (max-width: 880px) {
  .site-header-inner {
    align-items: flex-start;
    padding-block: 20px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px 17px;
  }

  .hero-grid,
  .section-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .section-heading,
  .article-toc {
    position: static;
  }

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

  .proof-strip article:nth-child(3) {
    border-left: 0;
  }

  .proof-strip article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .article-layout {
    gap: 44px;
  }

  .article-toc {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 18px;
  }

  .article-toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header-inner {
    display: grid;
    gap: 16px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a:not(.nav-cta) {
    font-size: 0.78rem;
  }

  .site-nav .nav-cta {
    min-height: 37px;
    padding-inline: 0.9rem;
  }

  .hero {
    padding-block: 60px 52px;
  }

  h1,
  .article-hero h1 {
    max-width: none;
    font-size: clamp(2.7rem, 15vw, 4.3rem);
  }

  .product-stage,
  .quick-demo,
  .image-stage {
    min-height: 390px;
  }

  .product-illustration figcaption {
    right: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
    font-size: 0.57rem;
  }

  .space-illustration,
  .article-cover .space-illustration,
  .popout-illustration,
  .article-cover .popout-illustration {
    min-height: 430px;
  }

  .space-demo-canvas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 10px 10px 48px;
  }

  .space-demo-node {
    position: static;
    width: auto;
    min-height: 0;
    padding: 9px;
    transform: none;
  }

  .space-demo-question {
    grid-column: 1 / -1;
  }

  .space-demo-link,
  .space-demo-file {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 7px;
  }

  .space-demo-icon {
    width: 28px;
    height: 28px;
  }

  .space-demo-visual {
    display: grid;
    grid-template-columns: 44% 1fr;
    column-gap: 8px;
  }

  .space-demo-art {
    height: auto;
    min-height: 60px;
    grid-row: 1 / 3;
    margin: 0;
  }

  .space-demo-checklist p {
    margin-top: 3px;
  }

  .space-demo-node strong {
    margin-top: 4px;
    font-size: 0.62rem;
  }

  .space-demo-node p {
    font-size: 0.53rem;
  }

  .popout-workspace {
    top: 9%;
    left: 4%;
    width: 78%;
    height: 74%;
    padding: 18px;
  }

  .popout-window {
    top: 10%;
    right: 3%;
    width: 82%;
    min-width: 0;
  }

  .popout-note-body {
    padding: 18px 18px 15px;
  }

  .popout-note-body h3 {
    font-size: 0.94rem;
  }

  .quick-demo {
    grid-template-columns: 50px 1fr;
    gap: 10px;
    padding: 18px;
  }

  .quick-rail {
    padding: 5px;
  }

  .quick-rail span {
    width: 33px;
    height: 33px;
    font-size: 0.63rem;
  }

  .quick-panel {
    padding: 15px;
  }

  .quick-panel-grid article {
    min-height: 90px;
    padding: 10px;
  }

  .proof-strip,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .content-section {
    padding-block: 70px;
  }

  .detail-list article {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .cta-band {
    grid-template-columns: 1fr;
    margin-bottom: 58px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    padding-block: 30px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .article-hero {
    padding-block: 54px 42px;
  }

  .article-cover {
    padding: 9px;
  }

  .article-layout {
    padding-block: 56px 72px;
  }

  .article-toc {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
