@font-face {
  font-family: "Biro Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/biro-script.ttf") format("truetype");
}

:root {
  --paper: #f9f9f9;
  --ink: #151618;
  --text-secondary: #60646F;
  --text-tertiary: #858892;
  --muted: var(--text-secondary);
  --soft: #f5f5f3;
  --line: #dededb;
  --orange: #ff5a2a;
  --acid: #dff26b;
  --page-width: 480px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button {
  color: inherit;
}

a {
  text-decoration-color: #d4d4d1;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease, color 160ms ease;
}

a:hover {
  text-decoration-color: var(--ink);
}

button {
  font: inherit;
}

.page {
  position: relative;
  display: flex;
  min-height: 100vh;
  overflow-x: clip;
  justify-content: center;
  padding: 192px 24px 240px;
}

.home-page .page {
  padding-top: 96px;
  padding-bottom: 184px;
}

.roof-illustration-mode .page {
  padding-top: 216px;
}

.ambient-roof-stage {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: calc(50% - 13.5px);
  width: 812px;
  mix-blend-mode: darken;
  opacity: .86;
  pointer-events: none;
  transform: translateX(-50%);
}

.ambient-doodles {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  mix-blend-mode: darken;
  pointer-events: none;
}

.ambient-cafe-floor {
  position: absolute;
  height: auto;
  max-width: none;
  user-select: none;
  transform: scale(.97);
  transform-origin: 50% 100%;
}

.ambient-cafe-roof {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

.ambient-cafe-floor {
  bottom: 260px;
  left: calc(50% + 300px);
  width: clamp(380px, 32vw, 460px);
}

.holder {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, var(--page-width));
  flex-direction: column;
  gap: 48px;
}

.home-intro {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.site-logo {
  position: relative;
  display: block;
  width: 136px;
  height: 44px;
  overflow: hidden;
  color: var(--ink);
  cursor: crosshair;
  text-decoration: none;
}

.site-logo[hidden] {
  display: none;
}

.particle-name canvas {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 180ms var(--ease-out);
}

.particle-name .particle-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 30px;
  font-weight: 700;
  white-space: nowrap;
}

.particle-name.particle-ready canvas { opacity: 1; }
.particle-name.particle-ready .particle-fallback { opacity: 0; }

.site-logo:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.site-signoff .site-signature {
  font-family: "Biro Script", "Segoe Print", "Bradley Hand", cursive;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-copy p,
.elsewhere p,
.portfolio-header p {
  margin: 0;
}

.hero-copy p {
  line-height: 1.55;
}

.inline-preview-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--ink);
  line-height: inherit;
  text-decoration: none;
  vertical-align: baseline;
  white-space: nowrap;
  isolation: isolate;
}

.inline-preview-link > span:first-child {
  text-decoration: underline;
  text-decoration-color: #d6d5d1;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease;
}

.inline-preview-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-self: center;
  align-items: center;
  justify-content: center;
  margin-left: 1px;
  border-radius: 4px;
  transition: opacity 160ms ease, transform 160ms cubic-bezier(.2,.8,.2,1);
}

.inline-preview-icon img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.inline-preview-icon--dribbble img {
  border-radius: 4px;
}

.inline-preview-icon--x {
  border-radius: 50%;
  background: #000;
}

.inline-preview-icon--x img {
  width: 66.6667%;
  height: 66.6667%;
}

.inline-preview-icon--github img,
.inline-preview-icon--about img {
  border-radius: 50%;
}

.inline-preview-icon--about img {
  object-fit: cover;
}

.link-preview {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 50%;
  display: block;
  overflow: hidden;
  border: 1px solid #dededb;
  border-radius: 7px;
  background: #f5f5f3;
  box-shadow: 0 8px 20px rgba(30, 30, 30, 0.1), 0 2px 5px rgba(30, 30, 30, 0.06);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px) scale(.98);
  transform-origin: 50% 0;
  transition: opacity 160ms ease, transform 180ms cubic-bezier(.2,.8,.2,1), visibility 160ms ease;
  visibility: hidden;
}

.link-preview img {
  display: block;
  width: 170px;
  height: auto;
}

@media (hover: hover) and (pointer: fine) {
  .inline-preview-link:hover,
  .inline-preview-link:focus-visible {
    z-index: 30;
  }

  .inline-preview-link:hover .inline-preview-icon,
  .inline-preview-link:focus-visible .inline-preview-icon {
    opacity: .82;
    transform: translateY(-1px);
  }

  .inline-preview-link:hover > span:first-child,
  .inline-preview-link:focus-visible > span:first-child {
    text-decoration-color: var(--ink);
  }

  .inline-preview-link:hover .link-preview,
  .inline-preview-link:focus-visible .link-preview {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    visibility: visible;
  }
}

@media (hover: none), (pointer: coarse) {
  .link-preview {
    display: none;
  }
}

@media (max-width: 1099px) {
  .ambient-roof-stage {
    display: block;
  }

  .ambient-doodles {
    display: block;
  }

  .ambient-cafe-floor {
    left: calc(50% + 86px);
    width: 380px;
  }

}

@media (max-width: 959px) {
  .link-preview {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inline-preview-icon,
  .inline-preview-link > span:first-child,
  .link-preview {
    transition: none;
  }
}

.index-list a,
.elsewhere p {
  line-height: 1.55;
}

.section,
.elsewhere {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.products-section {
  gap: 20px;
}

.product-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.product-card {
  display: flex;
  min-height: 72px;
  margin: 0 -12px;
  padding: 12px;
  align-items: center;
  gap: 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  background: #efefef;
}

.product-card:focus-visible {
  outline: 1px solid rgba(30, 30, 30, .55);
  outline-offset: 2px;
}

.product-card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  border-radius: 12px;
  place-items: center;
  background: #efefee;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
}

.product-card-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card-icon--indie {
  background: #e8e8e5;
  color: #9daf18;
}

.product-card-icon--illustrations {
  background: #7657d8;
  color: #ff7448;
}

.product-card-icon--scenes {
  background: #dff26b;
  color: #244b37;
}

.product-card-icon--ppt {
  background: #244b37;
  color: #bca8ff;
}

.product-card-icon--skills {
  background: #ff7448;
  color: #ffd1dc;
}

.product-card-icon--claude {
  background: #7fb3ff;
  color: #6546c9;
}

.product-card-icon--brain {
  background: #ffd1dc;
  color: #397dd1;
}

.product-card-icon--upcoming {
  background: #244b37;
  color: #dff26b;
}

.product-card-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
}

.product-card-copy strong {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.product-card-copy > span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.product-card-meta {
  display: inline-flex;
  margin-left: auto;
  margin-right: 8px;
  flex: 0 0 auto;
  align-items: baseline;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  white-space: nowrap;
  transition: color 180ms ease;
}

.product-card:hover .product-card-meta,
.product-card:focus-visible .product-card-meta {
  color: var(--ink);
}

.product-card--upcoming {
  cursor: default;
  opacity: .55;
}

.product-card--upcoming:hover {
  background: transparent;
}

.highlights-section {
  display: block;
}

.highlights-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.highlights-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlights-nav button {
  display: flex;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  align-items: center;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 400;
  justify-content: center;
  line-height: 1;
  transition: color 200ms ease, background-color 200ms ease;
}

.highlights-nav button:hover {
  background: #efefef;
  color: var(--ink);
}

.highlights-nav button:focus-visible {
  color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.highlights-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 12px;
  background: #efefef;
}

.highlights-track {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 12px;
  will-change: transform;
}

.highlights-slide {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #efefef;
  flex: 0 0 100%;
}

.highlights-slide img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: zoom-in;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(0.99);
  transition:
    opacity 420ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.highlights-slide.is-active img {
  opacity: 1;
  transform: scale(1);
}

.highlights-track.is-jumping .highlights-slide img {
  transition: none;
}

.highlights-slide img:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
  .highlights-slide img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.elsewhere {
  gap: 16px;
}

.section-title {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: lowercase;
}

.index-list {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.index-list a {
  display: flex;
  min-height: 25px;
  align-items: baseline;
  gap: 16px;
  text-decoration: none;
}

.index-list a > span:first-child {
  border-bottom: 1px solid #d4d4d1;
  line-height: 20px;
}

.index-list a:hover > span:first-child {
  border-bottom-color: var(--ink);
}

.index-list a:hover .index-arrow {
  color: var(--ink);
}

.index-list small {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: baseline;
  color: var(--muted);
  font-size: 14px;
}

.index-description {
  min-width: 0;
}

.index-arrow {
  display: inline-block;
  width: 14px;
  margin-right: 8px;
  margin-left: auto;
  flex: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.text-button {
  display: inline;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #d4d4d1;
  background: transparent;
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible {
  border-bottom-color: var(--ink);
}

.footer-progressive-blur {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  height: 240px;
  pointer-events: none;
}

.footer-progressive-blur span {
  position: absolute;
  z-index: var(--blur-layer);
  inset: 0;
  -webkit-backdrop-filter: blur(var(--blur-radius));
  backdrop-filter: blur(var(--blur-radius));
  -webkit-mask-image: var(--blur-mask);
  mask-image: var(--blur-mask);
}

.footer-progressive-blur span:nth-child(1) {
  --blur-layer: 1;
  --blur-radius: .1875px;
  --blur-mask: linear-gradient(transparent 0%, #000 12.5%, #000 25%, transparent 37.5%);
}

.footer-progressive-blur span:nth-child(2) {
  --blur-layer: 2;
  --blur-radius: .375px;
  --blur-mask: linear-gradient(transparent 12.5%, #000 25%, #000 37.5%, transparent 50%);
}

.footer-progressive-blur span:nth-child(3) {
  --blur-layer: 3;
  --blur-radius: .75px;
  --blur-mask: linear-gradient(transparent 25%, #000 37.5%, #000 50%, transparent 62.5%);
}

.footer-progressive-blur span:nth-child(4) {
  --blur-layer: 4;
  --blur-radius: 1.5px;
  --blur-mask: linear-gradient(transparent 37.5%, #000 50%, #000 62.5%, transparent 75%);
}

.footer-progressive-blur span:nth-child(5) {
  --blur-layer: 5;
  --blur-radius: 3px;
  --blur-mask: linear-gradient(transparent 50%, #000 62.5%, #000 75%, transparent 87.5%);
}

.footer-progressive-blur span:nth-child(6) {
  --blur-layer: 6;
  --blur-radius: 6px;
  --blur-mask: linear-gradient(transparent 62.5%, #000 75%, #000 87.5%, transparent 100%);
}

.footer-progressive-blur span:nth-child(7) {
  --blur-layer: 7;
  --blur-radius: 12px;
  --blur-mask: linear-gradient(transparent 75%, #000 87.5%, #000 100%);
}

.footer-progressive-blur span:nth-child(8) {
  --blur-layer: 8;
  --blur-radius: 24px;
  --blur-mask: linear-gradient(transparent 87.5%, #000 100%);
}

.footer-progressive-blur::after {
  position: absolute;
  z-index: 9;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(249, 249, 249, 0) 42%,
    rgba(249, 249, 249, .16) 62%,
    rgba(249, 249, 249, .62) 82%,
    rgba(249, 249, 249, .96) 100%
  );
  content: "";
}

.floating-wechat {
  position: fixed;
  z-index: 30;
  bottom: 48px;
  left: 50%;
  display: inline-flex;
  width: 190px;
  min-height: 46px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid rgba(21, 22, 24, .08);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(239, 239, 239, .12);
  backdrop-filter: blur(40px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 0 20px rgba(255, 255, 255, .05),
    0 10px 24px rgba(0, 0, 0, .14);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: 0;
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  -webkit-tap-highlight-color: transparent;
  transform: translateX(-50%);
  transition:
    transform 500ms cubic-bezier(.76, 0, .24, 1),
    box-shadow 220ms ease,
    background-color 500ms cubic-bezier(.76, 0, .24, 1);
}

.floating-wechat::before {
  content: none;
}

.floating-wechat-state {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  filter: blur(1.5px);
  pointer-events: none;
  transform: translate(1px, 4px) scale(.985);
  transition-property: opacity, filter, transform;
  transition-duration: 120ms, 500ms, 500ms;
  transition-timing-function: ease, cubic-bezier(.76, 0, .24, 1), cubic-bezier(.76, 0, .24, 1);
  transition-delay: 100ms, 0ms, 0ms;
  white-space: nowrap;
  will-change: opacity, filter, transform;
}

.floating-wechat-state > span:first-child {
  color: var(--ink);
}

.floating-wechat-state > :last-child {
  color: var(--ink);
}

.floating-wechat-state svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.floating-wechat-state--default {
  opacity: 1;
  filter: blur(0);
  transform: translate(1px, 0) scale(1);
  transition-delay: 240ms, 0ms, 0ms;
}

.floating-wechat-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.floating-wechat:hover,
.floating-wechat:focus-visible {
  background: rgba(239, 239, 239, .18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    inset 0 0 20px rgba(255, 255, 255, .07),
    0 12px 28px rgba(0, 0, 0, .17);
  transform: translateX(-50%);
}

.floating-wechat:hover .floating-wechat-state--default,
.floating-wechat:focus-visible .floating-wechat-state--default {
  opacity: 0;
  filter: blur(1.5px);
  transform: translate(1px, -4px) scale(.985);
  transition-delay: 100ms, 0ms, 0ms;
}

.floating-wechat:hover .floating-wechat-state--hover,
.floating-wechat:focus-visible .floating-wechat-state--hover {
  opacity: 1;
  filter: blur(0);
  transform: translate(1px, 0) scale(1);
  transition-delay: 240ms, 0ms, 0ms;
}

.floating-wechat:active {
  transform: translateX(-50%);
}

.floating-wechat.is-clicking {
  animation: floating-wechat-click 500ms cubic-bezier(.76, 0, .24, 1);
}

@keyframes floating-wechat-click {
  0% {
    transform: translateX(-50%) scale(1);
  }

  40% {
    transform: translateX(-50%) scale(.965);
  }

  100% {
    transform: translateX(-50%) scale(1);
  }
}

.floating-wechat.is-copied {
  color: var(--ink);
}

.floating-wechat.is-copied .floating-wechat-state--default,
.floating-wechat.is-copied .floating-wechat-state--hover {
  opacity: 0;
  filter: blur(1.5px);
  transform: translate(1px, -4px) scale(.985);
  transition-delay: 100ms, 0ms, 0ms;
}

.floating-wechat.is-copied .floating-wechat-state--success {
  opacity: 1;
  filter: blur(0);
  transform: translate(1px, 0) scale(1);
  transition-delay: 240ms, 0ms, 0ms;
}

.floating-wechat:focus-visible {
  outline: 2px solid rgba(0, 0, 0, .58);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .floating-wechat.is-clicking {
    animation: none;
  }
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.site-signoff {
  display: flex;
  padding: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.site-signoff p {
  margin: 0;
  color: var(--text-tertiary);
  line-height: 1.55;
}

.site-signoff p:first-child:not(.site-signature) {
  font-size: 14px;
}

.site-signoff .site-signature {
  transform: rotate(-3deg);
  transform-origin: left center;
}

.site-footer-meta {
  display: flex;
  padding: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer-meta > span {
  color: var(--text-tertiary);
  font-size: 14px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.site-footer-links a,
.site-footer-links .text-button {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  border-bottom: 0;
  color: var(--muted);
  text-decoration: none;
}

.site-footer-links a::after {
  color: var(--muted);
  content: "↗、";
  font-size: 14px;
}

.site-footer-links a:last-child::after {
  content: "↗";
}

.site-footer-links a span,
.site-footer-links .text-button span {
  border-bottom: 1px solid #d4d4d1;
  line-height: 20px;
}

.site-footer-links a:hover span,
.site-footer-links .text-button:hover span,
.site-footer-links .text-button:focus-visible span {
  border-bottom-color: var(--ink);
}

.site-footer-links a:hover,
.site-footer-links .text-button:hover,
.site-footer-links .text-button:focus-visible {
  color: var(--ink);
}

.site-footer-links a:hover::after,
.site-footer-links a:focus-visible::after {
  color: var(--ink);
}

.article-page {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 96px 32px 128px;
}

.back-link {
  display: inline-block;
  margin-bottom: 64px;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

.simple-article,
.product-article {
  width: 100%;
}

.simple-article-header,
.product-header {
  margin-bottom: 40px;
}

.article-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 14px;
  font-style: italic;
}

.simple-article h1,
.product-header h1,
.portfolio-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.about-copy,
.article-prose {
  font-size: 14px;
  line-height: 1.8;
}

.about-copy p,
.article-prose p {
  margin: 0 0 12px;
}

.about-copy h2,
.article-prose h2 {
  margin: 40px 0 16px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: -.02em;
}

.article-prose ul {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

.article-prose li {
  margin-bottom: 6px;
}

.article-prose hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.product-hero {
  display: flex;
  min-height: 360px;
  margin-bottom: 56px;
  padding: 32px;
  border-radius: 12px;
  background: #211f1f;
  color: #fff;
  flex-direction: column;
}

.product-hero span {
  color: rgba(255,255,255,.58);
  font-size: 10px;
  letter-spacing: .12em;
}

.product-hero strong {
  margin: auto 0;
  font-size: clamp(48px, 10vw, 82px);
  font-weight: 780;
  line-height: .88;
  letter-spacing: -.085em;
}

.product-hero small {
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

.placeholder {
  display: grid;
  aspect-ratio: 16 / 9;
  margin: 24px 0 0;
  place-items: center;
  border: 1px solid #e8e8e6;
  border-radius: 8px;
  background: var(--soft);
  color: #aaa;
  font-size: 12px;
}

.floating-cta {
  position: fixed;
  z-index: 10;
  bottom: 24px;
  left: 50%;
  display: inline-flex;
  min-height: 42px;
  padding: 0 18px;
  align-items: center;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transform: translateX(-50%);
}

.portfolio-page {
  --portfolio-column: 540px;
  --portfolio-gutter: 24px;
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 192px var(--portfolio-gutter) 96px;
}

.portfolio-page--floating-wechat {
  padding-bottom: 280px;
}

.portfolio-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.portfolio-holder {
  display: flex;
  width: min(100%, var(--portfolio-column));
  flex-direction: column;
  gap: 48px;
}

.portfolio-header h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -.01em;
}

.portfolio-header p {
  margin: 0;
  font-size: 15px;
  line-height: 20px;
  color: var(--muted);
}

.portfolio-stream {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.portfolio-stream figure {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 22, .08);
  border-radius: 16px;
  background: #f3f3f1;
}

.portfolio-stream img {
  display: block;
  width: 100%;
  height: auto;
}

.portfolio-side-nav {
  position: fixed;
  top: 192px;
  left: 0;
  z-index: 20;
  display: flex;
  max-width: max(0px, calc((100vw - var(--portfolio-column)) / 2 - var(--portfolio-gutter)));
  flex-direction: column;
  align-items: flex-start;
  color: var(--muted);
}

.portfolio-return,
.portfolio-side-title,
.portfolio-side-list a {
  box-sizing: border-box;
  max-width: 100%;
  padding-left: 24px;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.portfolio-return {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  color: var(--muted);
  text-decoration: none;
}

.portfolio-return:hover {
  color: var(--ink);
}

.portfolio-side-title {
  height: 20px;
  margin-top: 44px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
}

.portfolio-side-list {
  display: flex;
  margin-top: 56px;
  flex-direction: column;
}

.portfolio-side-list a {
  display: flex;
  min-height: 28px;
  align-items: center;
  padding-right: 16px;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.portfolio-side-list a:hover,
.portfolio-side-list a.active {
  color: var(--ink);
}

.portfolio-side-list i {
  width: 0;
  height: 1px;
  margin-right: 0;
  background: var(--muted);
  transition: width 180ms ease, margin-right 180ms ease;
}

.portfolio-side-list a.active i {
  width: 14px;
  margin-right: 7px;
}

.portfolio-end {
  display: flex;
  flex-direction: column;
  gap: 40px;
  color: var(--muted);
}

.portfolio-end span {
  width: 90px;
  height: 1px;
  background: #deddd9;
}

.portfolio-end p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 16px;
  font-style: italic;
}

.editorial-holder {
  gap: 48px;
}

.editorial-stream {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.editorial-cover {
  width: 100%;
  aspect-ratio: 2.3 / 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 22, .07);
  border-radius: 16px;
  background: #fff;
}

.editorial-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.editorial-section {
  scroll-margin-top: 96px;
}

.editorial-section-head {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  gap: 14px;
}

.editorial-section-head h2 {
  flex: 0 0 auto;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -.01em;
}

.editorial-section-head > span {
  height: 1px;
  flex: 1 1 auto;
  background: var(--line);
}

.editorial-section-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 13px;
  font-size: 15px;
  line-height: 1.8;
}

.editorial-section-body p,
.editorial-section-body ul,
.editorial-section-body h3 {
  margin: 0;
}

.editorial-section-body h3 {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -.01em;
}

.editorial-section-body ul {
  padding-left: 1.35em;
}

.editorial-section-body li + li {
  margin-top: 6px;
}

.editorial-section-body a {
  color: var(--ink);
  text-decoration-color: #cbc9c3;
  text-underline-offset: 4px;
}

.editorial-section-body a:hover {
  text-decoration-color: var(--ink);
}

.editorial-figure {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 8px 0 0;
  overflow: hidden;
}

.editorial-figure a,
.editorial-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.editorial-figure a {
  text-decoration: none;
}

.editorial-figure img {
  height: auto;
  object-fit: contain;
}

.editorial-gallery {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.product-price {
  color: var(--orange);
  font-weight: 700;
}

/* Indie Builders product page */
.product-detail-page {
  --product-acid: #d4f774;
  --product-dark: #171817;
  --product-wash: #f5f6ee;
  min-height: 100vh;
  padding: 112px 24px 128px;
}

.product-detail-page--floating-wechat {
  padding-bottom: 280px;
}

.product-detail-holder {
  width: min(100%, 860px);
  margin: 0 auto;
}

.product-detail-return {
  display: inline-flex;
  margin-bottom: 72px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.product-detail-return:hover {
  color: var(--ink);
}

.product-detail-hero {
  padding-bottom: 88px;
  border-bottom: 1px solid var(--line);
}

.product-detail-kicker,
.product-detail-section-head > p,
.product-join-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 580;
  line-height: 20px;
  letter-spacing: .02em;
}

.product-detail-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6f735e;
}

.product-detail-kicker > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--product-acid);
  box-shadow: 0 0 0 4px rgba(212, 247, 116, .22);
}

.product-detail-hero h1 {
  max-width: 760px;
  margin: 24px 0 28px;
  font-size: clamp(42px, 6.3vw, 68px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -.065em;
}

.product-detail-lead {
  max-width: 670px;
  margin: 0;
  color: #575755;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: -.018em;
}

.product-detail-facts {
  display: flex;
  margin-top: 32px;
  flex-wrap: wrap;
  gap: 8px;
}

.product-detail-facts span {
  padding: 7px 12px;
  border: 1px solid #e5e5df;
  border-radius: 999px;
  background: #fbfbf9;
  color: #676765;
  font-size: 13px;
  line-height: 18px;
}

.product-detail-purchase {
  display: flex;
  margin-top: 48px;
  padding: 24px;
  border-radius: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--product-dark);
  color: #fff;
}

.product-detail-price {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.product-detail-price strong {
  color: var(--product-acid);
  font-size: 36px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: -.055em;
}

.product-detail-price span {
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  line-height: 18px;
}

.product-buy-button {
  position: relative;
  display: inline-grid;
  width: 238px;
  min-height: 54px;
  padding: 0 20px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  place-items: center;
  background: var(--product-acid);
  color: var(--product-dark);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: transform 180ms ease, background-color 180ms ease;
}

.product-buy-button:hover,
.product-buy-button:focus-visible {
  background: #e0ff88;
  transform: translateY(-2px);
}

.product-buy-button:active {
  transform: translateY(0) scale(.98);
}

.product-buy-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.product-buy-state {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 300ms cubic-bezier(.16, 1, .3, 1);
  white-space: nowrap;
}

.product-buy-state--default,
.product-buy-button.is-copied .product-buy-state--success {
  opacity: 1;
  transform: translateY(0);
}

.product-buy-button.is-copied .product-buy-state--default {
  opacity: 0;
  transform: translateY(-6px);
}

.product-buy-state i {
  margin-left: 3px;
  font-style: normal;
}

.product-detail-checkout-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.product-detail-section,
.product-faq {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.product-detail-section-head {
  display: grid;
  margin-bottom: 36px;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.product-detail-section-head h2,
.product-join-copy h2 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -.045em;
}

.product-case-grid,
.product-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-case-card,
.product-access-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid #e8e8e3;
  border-radius: 18px;
  background: #fbfbf9;
}

.product-case-card h3,
.product-access-card h3,
.product-fit-grid h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -.02em;
}

.product-case-card p,
.product-access-card p,
.product-fit-grid p,
.product-detail-section-copy,
.product-join-copy > p:last-child,
.product-faq details p {
  margin: 0;
  color: #686866;
  font-size: 14px;
  line-height: 1.75;
}

.product-proof-figure {
  width: 100%;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid #ecece8;
  border-radius: 22px;
  background: #f7f7f5;
}

.product-proof-figure a,
.product-proof-figure img {
  display: block;
  width: 100%;
}

.product-proof-figure a {
  text-decoration: none;
}

.product-proof-figure img {
  height: auto;
}

.product-proof-figure figcaption {
  padding: 12px 16px 14px;
  border-top: 1px solid #ecece8;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.product-access-card {
  background: var(--product-wash);
}

.product-access-label {
  margin-bottom: 36px !important;
  color: #8a8e73 !important;
  font-size: 12px !important;
  font-weight: 650;
  letter-spacing: .03em;
}

.product-detail-section-copy {
  max-width: 650px;
  margin: -10px 0 36px;
  font-size: 15px;
}

.product-proof-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-proof-gallery .product-proof-figure {
  margin-top: 0;
}

.product-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.product-fit-grid article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-join-panel {
  display: grid;
  margin-top: 96px;
  padding: 48px;
  border-radius: 28px;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  background: var(--product-dark);
  color: #fff;
}

.product-join-copy > p {
  color: rgba(255, 255, 255, .48);
}

.product-join-copy h2 {
  margin: 18px 0 20px;
}

.product-join-copy > p:last-child {
  color: rgba(255, 255, 255, .56);
}

.product-join-action {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.product-detail-price--join strong {
  font-size: 44px;
}

.product-buy-button--join {
  width: 100%;
}

.product-join-action > p {
  margin: -6px 0 0;
  color: rgba(255, 255, 255, .52);
  font-size: 12px;
  line-height: 1.6;
}

.product-faq {
  border-bottom: 0;
}

.product-faq-list {
  border-top: 1px solid var(--line);
}

.product-faq details {
  border-bottom: 1px solid var(--line);
}

.product-faq summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 580;
  line-height: 22px;
  list-style: none;
}

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

.product-faq summary::after {
  color: var(--muted);
  content: "+";
  font-size: 20px;
  font-weight: 350;
  transition: transform 180ms ease;
}

.product-faq details[open] summary::after {
  transform: rotate(45deg);
}

.product-faq details p {
  max-width: 650px;
  padding: 0 40px 24px 0;
}

.floating-wechat--purchase {
  width: 224px;
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 500ms cubic-bezier(.76, 0, .24, 1),
    color 500ms cubic-bezier(.76, 0, .24, 1),
    box-shadow 220ms ease,
    background-color 500ms cubic-bezier(.76, 0, .24, 1);
}

.floating-wechat--purchase.is-hero-visible {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(24px);
}

@media (max-width: 900px) {
  .portfolio-page {
    padding-top: 96px;
  }

  .portfolio-side-nav {
    position: absolute;
    top: 28px;
    left: 24px;
    max-width: none;
  }

  .portfolio-return {
    padding-left: 0;
  }

  .portfolio-side-title,
  .portfolio-side-list {
    display: none;
  }

  .product-detail-page {
    padding-top: 88px;
  }

  .product-detail-return {
    margin-bottom: 56px;
  }

  .product-case-grid,
  .product-access-grid {
    grid-template-columns: 1fr;
  }

  .product-access-label {
    margin-bottom: 20px !important;
  }

  .product-join-panel {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .product-join-action {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 96px 16px 192px;
  }

  .home-page .page {
    padding-bottom: 168px;
  }

  .roof-illustration-mode .page {
    padding-top: 176px;
  }

  .ambient-roof-stage {
    left: calc(50% - 37px);
    width: 575px;
  }

  .ambient-doodles {
    display: none;
  }

  .holder {
    gap: 48px;
  }



  .site-signoff {
    padding-bottom: 0;
  }

  .floating-wechat {
    bottom: 32px;
    width: 190px;
    min-height: 46px;
    padding: 0 18px;
  }

  .floating-wechat--purchase {
    width: min(224px, calc(100vw - 40px));
  }

  .footer-progressive-blur {
    height: 190px;
  }

  .hero-copy p {
    max-width: 35ch;
  }

  .bookshelf {
    min-height: 250px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .bookshelf::-webkit-scrollbar {
    display: none;
  }

  .book-cover {
    width: 196px;
    height: 242px;
    padding: 18px;
  }

  .book-cover strong {
    margin-top: 24px;
    font-size: 29px;
  }

  .book-spine {
    width: 64px;
    height: 226px;
  }

  .article-page,
  .portfolio-page {
    padding: 72px 20px 104px;
  }

  .portfolio-page--floating-wechat {
    padding-bottom: 232px;
  }

  .back-link {
    margin-bottom: 48px;
  }

  .product-hero {
    min-height: 280px;
    margin-bottom: 48px;
    padding: 24px;
  }

  .portfolio-header {
    margin: 0;
  }

  .portfolio-holder {
    gap: 40px;
  }

  .portfolio-stream {
    gap: 32px;
  }

  .portfolio-side-nav {
    position: absolute;
    top: 28px;
    left: 20px;
    max-width: none;
  }

  .portfolio-return {
    padding-left: 0;
  }

  .portfolio-side-title,
  .portfolio-side-list {
    display: none;
  }

  .floating-cta {
    bottom: 18px;
  }

  .product-detail-page {
    padding: 72px 20px 96px;
  }

  .product-detail-page--floating-wechat {
    padding-bottom: 220px;
  }

  .product-detail-return {
    margin-bottom: 48px;
  }

  .product-detail-hero {
    padding-bottom: 64px;
  }

  .product-detail-hero h1 {
    margin: 20px 0 22px;
    font-size: clamp(34px, 9.6vw, 42px);
    line-height: 1.08;
  }

  .product-detail-lead {
    font-size: 16px;
    line-height: 1.75;
  }

  .product-detail-facts {
    margin-top: 26px;
  }

  .product-detail-purchase {
    margin-top: 36px;
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
  }

  .product-buy-button {
    width: 100%;
  }

  .product-detail-section,
  .product-faq {
    padding: 72px 0;
  }

  .product-detail-section-head {
    margin-bottom: 28px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-case-card,
  .product-access-card {
    padding: 22px;
  }

  .product-proof-figure {
    margin-top: 20px;
    border-radius: 16px;
  }

  .product-detail-section-copy {
    margin-top: -4px;
  }

  .product-fit-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-join-panel {
    margin-top: 72px;
    padding: 28px 24px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Indie Builders landing page v2 */
.product-detail-page {
  --product-acid: #d4f774;
  --product-dark: #171817;
  --product-wash: #f4f4f0;
  min-height: 100vh;
  padding: 48px 24px 144px;
  background: #fff;
}

.product-detail-page--floating-wechat {
  padding-bottom: 260px;
}

.product-detail-holder {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.product-detail-return {
  display: inline-flex;
  margin: 0;
  align-items: center;
  color: #8f8f8c;
  font-size: 14px;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.product-detail-return:hover {
  color: var(--ink);
  transform: translateX(-2px);
}

.product-detail-hero {
  padding: 66px 0 0;
  border-bottom: 0;
  text-align: center;
}

.product-detail-kicker {
  display: inline-flex;
  margin: 0;
  align-items: center;
  gap: 8px;
  color: #6f735e;
  font-size: 13px;
  font-weight: 560;
  line-height: 20px;
  letter-spacing: .01em;
}

.product-detail-kicker > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--product-acid);
  box-shadow: 0 0 0 4px rgba(212, 247, 116, .22);
}

.product-detail-trust {
  display: table;
  margin: 40px auto 18px;
  padding: 7px 12px;
  border: 1px solid #e7e7e2;
  border-radius: 999px;
  background: #fbfbf9;
  color: #747471;
  font-size: 13px;
  line-height: 18px;
}

.product-detail-hero h1 {
  max-width: 920px;
  margin: 0 auto 28px;
  font-size: clamp(54px, 7.2vw, 86px);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -.068em;
}

.product-detail-lead {
  max-width: 720px;
  margin: 0 auto;
  color: #60605d;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: -.018em;
}

.product-detail-hero-action {
  display: flex;
  margin: 36px 0 0;
  padding: 0;
  border-radius: 0;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: transparent;
  color: var(--ink);
}

.product-detail-hero-action > p {
  margin: 0;
  color: #8d8d89;
  font-size: 13px;
  line-height: 18px;
}

.product-buy-button {
  position: relative;
  display: inline-grid;
  width: 264px;
  min-height: 60px;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  place-items: center;
  background: var(--product-dark);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .14),
    0 2px 6px rgba(0, 0, 0, .08),
    inset 0 1px 0 rgba(255, 255, 255, .07);
  color: var(--product-acid);
  cursor: pointer;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0;
  transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.product-buy-button::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(255, 255, 255, .045), transparent 36%, rgba(255, 255, 255, .025));
  content: "";
  pointer-events: none;
}

.product-buy-button:hover,
.product-buy-button:focus-visible {
  background: #111211;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, .18),
    0 3px 8px rgba(0, 0, 0, .1),
    inset 0 1px 0 rgba(255, 255, 255, .09);
  transform: translateY(-2px);
}

.product-buy-button:active {
  transform: translateY(0) scale(.98);
}

.product-buy-button:focus-visible {
  outline: 2px solid rgba(23, 24, 23, .5);
  outline-offset: 3px;
}

.product-buy-state {
  z-index: 1;
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 300ms cubic-bezier(.16, 1, .3, 1);
  white-space: nowrap;
}

.product-buy-state--default,
.product-buy-button.is-copied .product-buy-state--success {
  opacity: 1;
  transform: translateY(0);
}

.product-buy-button.is-copied .product-buy-state--default {
  opacity: 0;
  transform: translateY(-6px);
}

.product-buy-state i {
  margin-left: 3px;
  font-style: normal;
}

.product-hero-stage {
  position: relative;
  height: 520px;
  margin-top: 72px;
  overflow: hidden;
  border: 1px solid #e6e6e0;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 8%, rgba(212, 247, 116, .42), transparent 30%),
    linear-gradient(180deg, #f7f7f3 0%, #ecece7 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

.product-hero-stage::after {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  height: 84px;
  background: linear-gradient(to bottom, transparent, rgba(236, 236, 231, .94));
  content: "";
  pointer-events: none;
}

.product-hero-preview {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: #0e0f0e;
  box-shadow: 0 26px 64px rgba(35, 35, 31, .2);
  text-align: left;
}

.product-hero-preview figcaption {
  display: flex;
  height: 44px;
  padding: 0 18px;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  line-height: 16px;
}

.product-hero-preview figcaption > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--product-acid);
  box-shadow: 0 0 0 4px rgba(212, 247, 116, .12);
}

.product-hero-preview img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.product-hero-preview--main {
  z-index: 3;
  bottom: 34px;
  left: 50%;
  width: 72%;
  transform: translateX(-50%);
}

.product-hero-preview--main img {
  height: 352px;
}

.product-hero-preview--left,
.product-hero-preview--right {
  z-index: 1;
  bottom: 74px;
  width: 43%;
  opacity: .72;
}

.product-hero-preview--left {
  left: -6%;
  transform: rotate(-4deg);
}

.product-hero-preview--right {
  right: -6%;
  transform: rotate(4deg);
}

.product-hero-preview--left img,
.product-hero-preview--right img {
  height: 220px;
}

.product-fact-band {
  display: grid;
  padding: 36px 0 88px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-fact-band p {
  margin: 0;
  padding: 0 36px;
  border-right: 1px solid var(--line);
  color: #8d8d89;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.product-fact-band p:last-child {
  border-right: 0;
}

.product-fact-band span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 580;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.product-detail-section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}

.product-section-intro {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.product-section-intro > p:first-child,
.product-faq-intro > p,
.product-purchase-copy > p:first-child {
  margin: 0 0 18px;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 560;
  line-height: 20px;
  letter-spacing: .02em;
}

.product-section-intro h2,
.product-faq-intro h2,
.product-purchase-copy h2 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 610;
  line-height: 1.12;
  letter-spacing: -.055em;
}

.product-section-intro > p:last-child {
  max-width: 660px;
  margin: 24px auto 0;
  color: #696966;
  font-size: 15px;
  line-height: 1.8;
}

.product-system {
  display: grid;
  margin-top: 60px;
  padding: 12px;
  border: 1px solid #e7e7e1;
  border-radius: 30px;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 12px;
  background: var(--product-wash);
}

.product-system-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-system-tabs button {
  position: relative;
  display: flex;
  min-height: 104px;
  padding: 22px 22px 22px 28px;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  text-align: left;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.product-system-tabs button::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 10px;
  width: 4px;
  border-radius: 999px;
  background: var(--product-acid);
  content: "";
  opacity: 0;
  transform: scaleY(.45);
  transition: opacity 180ms ease, transform 220ms ease;
}

.product-system-tabs button:hover {
  color: var(--ink);
  transform: translateX(2px);
}

.product-system-tabs button[aria-selected="true"] {
  background: #fff;
  box-shadow: 0 8px 28px rgba(37, 37, 33, .07);
  color: var(--ink);
}

.product-system-tabs button[aria-selected="true"]::before {
  opacity: 1;
  transform: scaleY(1);
}

.product-system-tabs button:focus-visible {
  outline: 2px solid rgba(23, 24, 23, .5);
  outline-offset: 2px;
}

.product-system-tabs span {
  font-size: 15px;
  font-weight: 580;
  line-height: 20px;
  letter-spacing: -.015em;
}

.product-system-tabs small {
  color: #999995;
  font-size: 12px;
  line-height: 18px;
}

.product-system-panels,
.product-system-panel {
  min-width: 0;
}

.product-system-panel {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid #ecece7;
  border-radius: 22px;
  background: #fff;
}

.product-system-panel[hidden] {
  display: none;
}

.product-system-copy {
  max-width: 650px;
  padding: 38px 40px 30px;
}

.product-system-copy > p:first-child {
  margin: 0 0 14px;
  color: #8a8e73;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: .03em;
}

.product-system-copy h3 {
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.045em;
}

.product-system-copy > p:last-child {
  margin: 0;
  color: #6d6d69;
  font-size: 14px;
  line-height: 1.75;
}

.product-system-visual {
  height: 328px;
  margin: 0 14px 14px;
  overflow: hidden;
  border: 1px solid #ecece7;
  border-radius: 16px;
  background: #efefec;
}

.product-system-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-section-intro--split {
  display: grid;
  max-width: none;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0 28px;
  text-align: left;
}

.product-section-intro--split > p:first-child {
  grid-row: 1 / span 2;
}

.product-section-intro--split > p:last-child {
  max-width: 620px;
  margin: 22px 0 0;
}

.product-story-list {
  display: flex;
  margin-top: 60px;
  flex-direction: column;
  gap: 20px;
}

.product-story {
  display: grid;
  min-height: 420px;
  overflow: hidden;
  border-radius: 30px;
  grid-template-columns: minmax(0, 1fr) 48%;
  background: #f2f2ef;
}

.product-story-copy {
  display: flex;
  padding: 52px;
  flex-direction: column;
  justify-content: center;
}

.product-story-copy > p:first-child {
  margin: 0 0 36px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 580;
  line-height: 18px;
  letter-spacing: .03em;
}

.product-story-copy h3 {
  margin: 0 0 24px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.05em;
}

.product-story-copy > p:last-child {
  margin: 0;
  color: #666662;
  font-size: 14px;
  line-height: 1.8;
}

.product-story-visual {
  min-height: 0;
  margin: 14px 14px 14px 0;
  border-radius: 20px;
  background-color: #e8e8e4;
  background-image: url("./assets/products/indie-builders/community-live.png");
  background-repeat: no-repeat;
  background-size: 360% auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.product-story-visual--one {
  background-position: 1% 8%;
}

.product-story-visual--two {
  background-position: 52% 88%;
}

.product-story-visual--three {
  background-position: 99% 62%;
}

.product-story--acid {
  background: var(--product-acid);
}

.product-story--acid .product-story-copy {
  order: 2;
}

.product-story--acid .product-story-visual {
  order: 1;
  margin: 14px 0 14px 14px;
}

.product-story--acid .product-story-copy > p:first-child,
.product-story--acid .product-story-copy > p:last-child {
  color: rgba(23, 24, 23, .62);
}

.product-story--dark {
  background: var(--product-dark);
  color: #fff;
}

.product-story--dark .product-story-copy > p:first-child,
.product-story--dark .product-story-copy > p:last-child {
  color: rgba(255, 255, 255, .56);
}

.product-purchase-card {
  display: grid;
  margin: 120px 0;
  padding: 64px;
  overflow: hidden;
  border-radius: 34px;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: center;
  gap: 76px;
  background: var(--product-acid);
  color: var(--product-dark);
}

.product-purchase-copy > p:first-child {
  color: rgba(23, 24, 23, .55);
}

.product-purchase-copy h2 {
  max-width: 600px;
}

.product-purchase-copy > p:last-child {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(23, 24, 23, .64);
  font-size: 14px;
  line-height: 1.8;
}

.product-purchase-action {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 22px;
}

.product-detail-price {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.product-detail-price strong {
  color: var(--product-dark);
  font-size: 64px;
  font-weight: 650;
  line-height: .95;
  letter-spacing: -.065em;
}

.product-detail-price span {
  color: rgba(23, 24, 23, .58);
  font-size: 13px;
  line-height: 18px;
}

.product-buy-button--purchase {
  width: 100%;
}

.product-purchase-contact {
  margin: -4px 0 0;
  color: #ee552f;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.6;
}

.product-faq {
  display: grid;
  padding: 0 0 80px;
  border-bottom: 0;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: start;
  gap: 96px;
}

.product-faq-intro h2 {
  font-size: 38px;
}

.product-faq-list {
  border-top: 0;
}

.product-faq details {
  margin-bottom: 10px;
  padding: 0 24px;
  border: 1px solid #e7e7e1;
  border-radius: 18px;
  background: #f8f8f5;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.product-faq details[open] {
  border-color: #deeea6;
  background: #f1fbcf;
}

.product-faq summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 560;
  line-height: 24px;
  letter-spacing: -.02em;
  list-style: none;
}

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

.product-faq summary::after {
  color: #7e7e79;
  content: "+";
  font-size: 22px;
  font-weight: 350;
  transition: transform 180ms ease;
}

.product-faq details[open] summary::after {
  transform: rotate(45deg);
}

.product-faq details p {
  max-width: 680px;
  margin: 0;
  padding: 0 48px 26px 0;
  color: #62625e;
  font-size: 14px;
  line-height: 1.75;
}

.floating-wechat--purchase {
  width: 224px;
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 500ms cubic-bezier(.76, 0, .24, 1),
    color 500ms cubic-bezier(.76, 0, .24, 1),
    box-shadow 220ms ease,
    background-color 500ms cubic-bezier(.76, 0, .24, 1);
}

.floating-wechat--purchase.is-hero-visible {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(24px);
}

@media (max-width: 900px) {
  .product-detail-page {
    padding-top: 40px;
  }

  .product-detail-hero {
    padding-top: 56px;
  }

  .product-hero-stage {
    height: 440px;
  }

  .product-hero-preview--main {
    width: 82%;
  }

  .product-hero-preview--main img {
    height: 286px;
  }

  .product-hero-preview--left,
  .product-hero-preview--right {
    width: 48%;
  }

  .product-hero-preview--left img,
  .product-hero-preview--right img {
    height: 180px;
  }

  .product-system {
    grid-template-columns: 1fr;
  }

  .product-system-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-system-tabs button {
    min-height: 96px;
    padding: 18px;
  }

  .product-system-tabs button::before {
    top: auto;
    right: 18px;
    bottom: 8px;
    left: 18px;
    width: auto;
    height: 4px;
    transform: scaleX(.45);
  }

  .product-system-tabs button[aria-selected="true"]::before {
    transform: scaleX(1);
  }

  .product-story {
    min-height: 380px;
  }

  .product-story-copy {
    padding: 38px;
  }

  .product-purchase-card {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .product-purchase-action {
    max-width: 420px;
  }

  .product-faq {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .product-faq-intro {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .product-detail-page {
    padding: 28px 18px 104px;
  }

  .product-detail-page--floating-wechat {
    padding-bottom: 210px;
  }

  .product-detail-hero {
    padding-top: 48px;
  }

  .product-detail-trust {
    margin-top: 32px;
  }

  .product-detail-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(34px, 10.7vw, 42px);
    line-height: 1.08;
  }

  .product-detail-lead {
    font-size: 16px;
    line-height: 1.72;
  }

  .product-detail-hero-action {
    margin-top: 30px;
    flex-direction: column;
    gap: 12px;
  }

  .product-buy-button--hero {
    width: min(100%, 320px);
  }

  .product-hero-stage {
    height: 330px;
    margin-top: 48px;
    border-radius: 24px;
  }

  .product-hero-preview {
    border-radius: 12px;
  }

  .product-hero-preview figcaption {
    height: 32px;
    padding: 0 10px;
    font-size: 9px;
  }

  .product-hero-preview--main {
    bottom: 30px;
    width: 92%;
  }

  .product-hero-preview--main img {
    height: 210px;
  }

  .product-hero-preview--left,
  .product-hero-preview--right {
    bottom: 90px;
    width: 58%;
  }

  .product-hero-preview--left img,
  .product-hero-preview--right img {
    height: 132px;
  }

  .product-fact-band {
    padding: 26px 0 66px;
  }

  .product-fact-band p {
    padding: 0 9px;
    font-size: 10px;
    line-height: 15px;
  }

  .product-fact-band span {
    font-size: 16px;
  }

  .product-detail-section {
    padding: 84px 0;
  }

  .product-section-intro h2,
  .product-purchase-copy h2 {
    font-size: 35px;
    line-height: 1.14;
  }

  .product-section-intro > p:last-child {
    margin-top: 20px;
    font-size: 14px;
  }

  .product-system {
    margin-top: 44px;
    padding: 8px;
    border-radius: 22px;
  }

  .product-system-tabs {
    display: flex;
    margin: 0 -8px;
    padding: 0 8px 4px;
    overflow-x: auto;
    flex-direction: row;
    scrollbar-width: none;
  }

  .product-system-tabs::-webkit-scrollbar {
    display: none;
  }

  .product-system-tabs button {
    min-width: 184px;
    min-height: 88px;
    flex: 0 0 184px;
  }

  .product-system-panel {
    min-height: 0;
    border-radius: 16px;
  }

  .product-system-copy {
    padding: 28px 24px 24px;
  }

  .product-system-copy h3 {
    font-size: 26px;
  }

  .product-system-visual {
    height: 220px;
    margin: 0 8px 8px;
    border-radius: 12px;
  }

  .product-section-intro--split {
    display: block;
  }

  .product-section-intro--split > p:first-child {
    margin-bottom: 18px;
  }

  .product-story-list {
    margin-top: 44px;
    gap: 14px;
  }

  .product-story {
    min-height: 0;
    border-radius: 24px;
    grid-template-columns: 1fr;
  }

  .product-story-copy,
  .product-story--acid .product-story-copy {
    order: 1;
    padding: 34px 28px 30px;
  }

  .product-story-copy > p:first-child {
    margin-bottom: 26px;
  }

  .product-story-copy h3 {
    margin-bottom: 18px;
    font-size: 29px;
  }

  .product-story-visual,
  .product-story--acid .product-story-visual {
    min-height: 250px;
    margin: 0 10px 10px;
    order: 2;
    border-radius: 16px;
    background-size: 430% auto;
  }

  .product-purchase-card {
    margin: 84px 0;
    padding: 38px 28px;
    border-radius: 26px;
    gap: 36px;
  }

  .product-purchase-copy > p:last-child {
    margin-top: 20px;
  }

  .product-detail-price strong {
    font-size: 56px;
  }

  .product-purchase-action {
    max-width: none;
  }

  .product-faq {
    padding-bottom: 64px;
    gap: 34px;
  }

  .product-faq-intro h2 {
    font-size: 34px;
  }

  .product-faq details {
    padding: 0 18px;
    border-radius: 15px;
  }

  .product-faq summary {
    min-height: 68px;
    font-size: 15px;
  }

  .product-faq details p {
    padding: 0 32px 22px 0;
    font-size: 13px;
  }
}

/* Indie Builders product record */
.case-study-body {
  background: #f9f9f9;
  color: var(--ink);
}

.case-study-page {
  min-height: 100vh;
  padding: 56px 20px 160px;
}

.case-study-shell {
  width: min(100%, 480px);
  margin: 0 auto;
}

.case-study-section {
  display: grid;
  max-width: 800px;
  margin: 12px 0 20px;
  grid-template-columns: 1fr;
}

.case-study-intro {
  margin-top: 0;
}

.case-study-section h1 {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.01em;
}

.case-study-section h2 {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.015em;
}

.case-study-copy {
  display: block;
}

.case-study-copy p {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.012em;
}

.case-study-copy em {
  font-style: italic;
}

.case-study-copy--subsections h3 {
  margin: 28px 0 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.case-study-copy--subsections h3:first-child {
  margin-top: 0;
}

.case-study-media {
  max-width: 100%;
  margin: 12px 0 40px;
}

.case-study-media--origin {
  margin-bottom: 40px;
}

.case-study-media--github-proof {
  margin-bottom: 40px;
}

.case-study-media--stack {
  display: grid;
  gap: 12px;
}

.case-study-media--community {
  gap: 20px;
  margin-bottom: 40px;
}

.case-study-media--knowledge-home {
  margin-bottom: 40px;
}

.case-study-media--knowledge-stack {
  gap: 20px;
  margin-bottom: 40px;
}

.case-study-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  border-radius: 12px;
  background: #efefef;
  cursor: zoom-in;
  object-fit: cover;
}

.case-study-image:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.case-study-image--wide {
  aspect-ratio: auto;
  object-fit: contain;
}

.case-study-body--deck .case-study-image--wide {
  aspect-ratio: 16 / 9;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 48px 6vw;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.image-lightbox[open] {
  display: grid;
  place-items: center;
}

.image-lightbox::backdrop {
  background: rgba(15, 16, 18, .92);
  backdrop-filter: blur(10px);
}

.image-lightbox-image {
  display: block;
  width: auto;
  max-width: 88vw;
  height: auto;
  max-height: calc(100dvh - 96px);
  border-radius: clamp(12px, 2.2vw, 40px);
  background: #efefef;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
  object-fit: contain;
}

.image-lightbox-close {
  position: fixed;
  z-index: 1;
  top: 20px;
  right: 20px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  place-items: center;
}

.image-lightbox-close svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, .24);
  outline: none;
}

.has-image-lightbox {
  overflow: hidden;
}

.case-study-join {
  margin-top: 20px;
}

.case-study-purchase {
  display: flex;
  margin: 0 0 20px;
  padding: 20px 24px;
  border-radius: 12px;
  background: #efefef;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.case-study-purchase .case-study-highlight {
  margin: 0;
}

.case-study-purchase p:last-child,
.case-study-join .case-study-copy > p:last-child,
.case-study-ending .case-study-copy > p:last-child {
  margin-bottom: 0;
}

.case-study-copy .case-study-highlight {
  color: #e55236;
}

.case-study-footer {
  display: flex;
  margin: 24px 0 0;
  padding: 16px 0;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

.case-study-footer a {
  display: inline-block;
  padding: 8px 14px;
  border-bottom: 0;
  border-radius: 80px;
  background: transparent;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .3s, color .3s;
}

.case-study-footer a:hover,
.case-study-footer a:focus-visible {
  background: rgba(21, 22, 24, .06);
  color: var(--ink);
}

.case-study-body .floating-wechat--purchase {
  width: 224px;
}

@media (max-width: 640px) {
  .case-study-page {
    padding: 40px 20px 150px;
  }

  .case-study-purchase {
    padding: 16px;
  }

  .image-lightbox {
    padding: 16px;
  }

  .image-lightbox-image {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 80px);
  }

  .image-lightbox-close {
    top: 12px;
    right: 12px;
  }

  .case-study-footer {
    margin-top: 24px;
  }

  .case-study-body .floating-wechat--purchase {
    bottom: 32px;
    width: 224px;
  }
}

/* ── 加入面板：材质沿用 .floating-wechat，尺寸放大、圆角收紧 ───────────── */

.join-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-top: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition:
    transform 400ms var(--ease-out),
    box-shadow 220ms ease,
    opacity 220ms ease;
}

.join-cta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.join-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 22, 24, .18);
}

.join-cta:active {
  transform: translateY(0);
}

.join-cta:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.join-panel {
  position: fixed;
  z-index: 40;
  bottom: 48px;
  left: 50%;
  width: 360px;
  max-width: calc(100vw - 32px);
  padding: 24px;
  border: 1px solid rgba(21, 22, 24, .10);
  border-radius: 22px;
  background: rgba(249, 249, 249, .40);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 0 20px rgba(255, 255, 255, .05),
    0 12px 32px rgba(0, 0, 0, .20);
  opacity: 0;
  transform: translateX(-50%) translateY(10px) scale(.94);
  transform-origin: bottom center;
  transition:
    transform 420ms var(--ease-out),
    opacity 200ms ease;
}

.join-panel[hidden] {
  display: none;
}

.join-panel.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.case-study-body::before,
.home-page::before {
  position: fixed;
  z-index: 39;
  inset: 0;
  visibility: hidden;
  background-color: color-mix(in srgb, var(--paper) 25%, transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.case-study-body.has-join-panel::before,
.case-study-body.has-contact-panel::before,
.home-page.has-contact-panel::before {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

body.has-join-panel .floating-wechat--purchase {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

body.has-contact-panel .floating-wechat {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

.contact-qr-image {
  position: absolute !important;
  top: 50%;
  left: 50%;
  width: 130% !important;
  max-width: none;
  height: auto !important;
  transform: translate(-50%, -54%);
}

.contact-wxid {
  margin-top: 8px;
  line-height: 18px;
}

.contact-channel[hidden] {
  display: none;
}

.contact-qr-sheet,
.contact-email-sheet {
  height: 256px;
}

.contact-email-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.contact-email-icon {
  display: grid;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(21, 22, 24, .05);
  color: var(--ink);
  place-items: center;
}

.contact-email-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.contact-email-copy {
  padding: 5px 9px;
}

.contact-email-link {
  height: 40px;
  margin: 8px 0 0;
  text-decoration: none;
}

.contact-note {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.contact-note span {
  white-space: nowrap;
}

.join-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 16px;
}

.join-panel-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.join-panel-close {
  display: grid;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  place-items: center;
  transition: background-color 160ms ease, color 160ms ease;
}

.join-panel-close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.join-panel-close:hover {
  background: rgba(21, 22, 24, .06);
  color: var(--ink);
}

.join-group-label {
  margin: 0;
  padding: 0 0 8px;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
}

.join-tabs {
  display: flex;
  gap: 8px;
  padding: 0 0 16px;
}

.join-tab {
  flex: 1;
  height: 38px;
  display: grid;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  place-items: center;
  transition: background-color 180ms ease, color 180ms ease;
}

.join-tab:hover {
  background: rgba(21, 22, 24, .04);
}

.join-tab[aria-selected="true"] {
  background: rgba(21, 22, 24, .07);
  color: var(--ink);
}

/* 二维码要一张不透明的「纸」，别让黑白码直接浮在玻璃上 */
.join-qr-sheet {
  margin: 0;
  padding: 12px 20px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(21, 22, 24, .06);
  text-align: center;
}

.join-qr {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
}

.join-qr img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.join-qr img[data-missing] {
  display: none;
}

.join-qr[data-loaded] .join-qr-placeholder {
  display: none;
}

.join-qr-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--text-tertiary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.6;
  place-items: center;
  text-align: center;
}

.join-qr-amount {
  margin: 8px 0 0;
  color: #e55236;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.join-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.join-step {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

.join-step-num {
  flex: none;
  width: 18px;
  color: var(--text-tertiary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.join-wxid {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 7px;
  border: 0;
  border-radius: 6px;
  background: rgba(21, 22, 24, .06);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 160ms ease;
  vertical-align: baseline;
}

.join-wxid svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.join-wxid:hover {
  background: rgba(21, 22, 24, .10);
}

.join-wxid.is-copied {
  background: rgba(21, 22, 24, .08);
  color: var(--ink);
}

.join-wxid.is-copied svg {
  display: none;
}

.join-wxid.is-copied::after {
  color: var(--text-secondary);
  content: "✓";
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
}

.join-panel-foot {
  margin-top: 10px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(21, 22, 24, .07);
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  text-align: center;
}

.join-qr-sheet + .join-group-label {
  padding-top: 16px;
}

.join-panel-foot b {
  color: #e55236;
  font-weight: 400;
}

@media (max-width: 640px) {
  .join-panel {
    bottom: 24px;
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .join-qr {
    width: 176px;
    height: 176px;
  }

  .join-qr-sheet {
    padding: 12px 16px 16px;
  }

  .contact-qr-sheet,
  .contact-email-sheet {
    height: 232px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .join-panel {
    transition: opacity 160ms ease;
    transform: translateX(-50%);
  }

  .join-panel.is-open {
    transform: translateX(-50%);
  }

  .join-cta:hover {
    transform: none;
  }
}
