.landing-demo {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 8px 24px #18384c06;
  font-size: 1rem;
  line-height: 1.5;
  overflow: hidden;
}
.landing-demo [hidden] {
  display: none !important;
}
.landing-demo.demo-pending [data-demo-controls][hidden] {
  display: block !important;
  visibility: hidden;
}
.landing-demo.demo-pending .demo-controls[hidden] {
  display: flex !important;
}
.landing-demo.demo-pending .demo-reset[hidden] {
  display: inline-block !important;
}
.landing-demo p {
  margin: 0;
}
.landing-demo .demo-kicker {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.demo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.demo-heading strong {
  color: var(--ink);
}
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.demo-controls button,
.demo-reset {
  min-height: 44px;
  min-width: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 220ms ease;
}
.demo-controls button[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.demo-controls button:disabled {
  cursor: default;
  color: var(--muted);
  background: var(--soft);
}
.demo-controls button:not(:disabled):active,
.demo-reset:active {
  transform: scale(0.97);
}
.demo-controls button:focus-visible,
.demo-reset:focus-visible,
.demo-range:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.landing-demo .demo-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}
.demo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.demo-angle-controls {
  margin-bottom: 16px;
}
.demo-compare-media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 400px;
  margin-inline: auto;
  background: var(--soft);
  border-radius: 16px;
  overflow: hidden;
}
.demo-compare-controls {
  min-height: 148px;
}
.demo-compare-frame {
  --reveal: 50%;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: var(--soft);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.demo-compare-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.demo-compare-frame [data-compare-after] {
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
}
.demo-compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--reveal);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px #17394d55;
  transform: translateX(-50%);
  pointer-events: none;
}
.demo-compare-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transform: translate(-50%, -50%);
  box-shadow: 0 3px 14px #102b4533;
}
.demo-range {
  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 4px 0;
  accent-color: var(--accent);
  cursor: ew-resize;
}
.demo-weights {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-variant-numeric: tabular-nums;
}
.demo-weights div {
  display: grid;
  gap: 3px;
}
.demo-weights div:last-child {
  text-align: right;
}
.demo-weights span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.demo-weights strong {
  font-size: 1.0625rem;
}
.landing-demo .demo-difference {
  margin-top: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.demo-placeholder {
  position: absolute;
  inset: auto 12px 12px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.demo-placeholder strong {
  display: block;
  margin-bottom: 4px;
}
.demo-placeholder p {
  font-size: 0.875rem;
  color: var(--muted);
}
.demo-compare-fallback {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
  margin: 0;
  border-radius: 16px;
}
.demo-tree-art {
  display: block;
  width: 100%;
  height: 240px;
  margin-top: 8px;
  color: var(--accent);
  background: var(--soft);
  border-radius: 16px;
}
.demo-tree-art .demo-rock {
  fill: var(--canvas);
  stroke: var(--line);
  stroke-width: 2;
}
.demo-tree-art .demo-trunk {
  fill: var(--accent);
}
.demo-tree-art .demo-root,
.demo-tree-art .demo-branch {
  stroke: var(--accent);
  fill: none;
  stroke-linecap: round;
}
.demo-tree-art .demo-leaf {
  fill: var(--accent);
}
.demo-growth-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}
.demo-growth-number {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.demo-growth-meta span:last-child {
  color: var(--muted);
  font-size: 0.875rem;
}
.demo-tree-progress {
  width: 100%;
  height: 8px;
  appearance: none;
  accent-color: var(--accent);
  display: block;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
  margin: 8px 0 16px;
}
.demo-tree-progress::-webkit-progress-bar {
  background: var(--soft);
}
.demo-tree-progress::-webkit-progress-value {
  background: var(--accent);
}
.demo-tree-progress::-moz-progress-bar {
  background: var(--accent);
}
.demo-tree-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.demo-tree-actions button {
  padding: 10px 8px;
}
.demo-tree-actions small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  margin-top: 4px;
}
.demo-reset {
  padding: 8px 12px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.demo-privacy-card {
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.demo-post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.demo-post-author img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.demo-post-author strong,
.demo-post-author span {
  display: block;
}
.demo-post-author span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.demo-post-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  margin-top: 16px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}
.demo-post-badge svg {
  width: 16px;
  height: 16px;
}
.demo-privacy-audience {
  margin-top: 16px;
  min-height: 48px;
}
.demo-privacy-audience p {
  color: var(--muted);
  font-size: 0.875rem;
}
.demo-members {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
}
.demo-members svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.demo-privacy-controls {
  margin-top: 16px;
}
@media (max-width: 430px) {
  .landing-demo {
    padding: 16px;
    border-radius: 20px;
  }
  .demo-heading {
    gap: 8px;
  }
  .demo-controls button {
    padding-inline: 12px;
  }
  .demo-tree-actions {
    grid-template-columns: 1fr;
  }
  .demo-growth-meta {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .landing-demo *,
  .landing-demo *::after {
    transition: none !important;
    animation: none !important;
  }
}
