/* Datafruit.dev layout — SuperCompress brand colors */

@import url("https://fonts.googleapis.com/css2?family=Platypi:ital,wght@0,300;0,400;0,500;1,400&display=swap");

@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, monospace; font-size: 0.9em; }

:root {
  --frame-buffer: clamp(18px, 4vw, 60px);
  --max-w: 1400px;
  --max-w-wide: 1680px;
  --bg-page: rgb(251, 251, 248);
  --bg-dark: #0a0a0a;
  --text-primary: #0a0a0a;
  --text-body: #6b6b6b;
  --text-muted: #737373;
  --card-border: rgb(237, 236, 233);
  --card-bg: #f2f1ee;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-dark: #1e40af;
  --brand-soft: #dbeafe;
  --brand-light: #93c5fd;
  --brand-mark-dark: #1d4ed8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --feat-blue: #dbeafe;
  --feat-green: #e8eef9;
  --feat-warm: #eef2ff;
  --vision-bg: #f6f8fc;
  --section-bg: #fbfbf7;
  --frame-bg: rgb(242, 242, 239);
  --panel-bg: rgb(249, 249, 247);
  --nav-h: 56px;
  --serif: "Platypi", "EB Garamond", Georgia, serif;
  --sans: "Geist", system-ui, sans-serif;
}

@media (min-width: 640px) {
  :root { --nav-h: 64px; }
}

/* Shell */
.df-page-bg-top,
.df-page-bg-bottom {
  pointer-events: none;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 0;
}
.df-page-bg-top {
  top: 0;
  height: 52vh;
  background: var(--bg-page);
}
.df-page-bg-bottom {
  bottom: 0;
  height: 42vh;
  background: var(--bg-dark);
}

.df-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--sans);
}

/* Header — exact datafruit pattern */
.df-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  overflow-x: clip;
  padding-top: 4px;
}
@media (min-width: 640px) {
  .df-header { padding-top: 8px; }
}

.df-header-blur {
  pointer-events: none;
  position: absolute;
  inset: 0 0 -60% 0;
  z-index: -1;
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62.5%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62.5%, transparent 100%);
}

.df-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--frame-buffer);
  min-height: var(--nav-h);
}

.df-logo-desktop {
  position: absolute;
  top: 50%;
  left: var(--frame-buffer);
  transform: translateY(-50%);
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}
@media (min-width: 820px) {
  .df-logo-desktop { display: inline-flex; }
}

.df-logo-mobile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 820px) {
  .df-logo-mobile { display: none; }
}

.df-logo-word {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}
.df-logo-word em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}

.df-header-end {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
@media (min-width: 820px) {
  .df-header-end { display: flex; }
}

.df-nav-pill--solo {
  padding: 0 4px;
  flex-shrink: 0;
}

.df-header-end .df-github-link {
  flex-shrink: 0;
}

.df-nav-pill,
.df-cta-pill {
  display: flex;
  align-items: center;
  height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 12px 24px rgba(0, 0, 0, 0.08);
}

.df-nav-pill {
  gap: 4px;
  padding: 0 4px;
}

.df-nav-pill a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 32px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.df-nav-pill a:hover {
  background: rgba(229, 229, 229, 0.9);
  color: #404040;
}

.df-cta-pill {
  padding: 0 20px;
  flex-shrink: 0;
}
.df-cta-pill a {
  font-size: 14px;
  color: var(--text-primary);
}
.df-cta-pill a:hover { color: #525252; }
.df-cta-pill a.df-cta-primary {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  margin-right: 12px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 500;
}
.df-cta-pill a.df-cta-primary:hover {
  background: var(--brand-hover);
  color: #fff;
}

.df-features-spacer {
  width: 100%;
  min-height: 0;
  height: 48px;
}
@media (max-width: 767px) {
  .df-features-spacer { height: 32px; }
}

.df-menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.df-menu-btn span {
  display: block;
  height: 1.5px;
  background: var(--text-primary);
}
@media (min-width: 820px) {
  .df-menu-btn { display: none; }
}

.df-mobile-bar {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 820px) {
  .df-mobile-bar { display: none; }
}

.df-mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 8px var(--frame-buffer) 16px;
}
.df-mobile-nav a {
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.df-header-spacer {
  height: var(--nav-h);
}

/* Main */
.df-main-wrap {
  min-height: calc(100dvh - var(--nav-h));
}

.df-main {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 16px;
}
@media (min-width: 640px) {
  .df-main { padding-top: 24px; }
}

/* Hero copy — hero-content-wrapper */
.hero-content-wrapper {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px var(--frame-buffer) 0;
  margin-bottom: 40px;
}
@media (min-width: 640px) {
  .hero-content-wrapper {
    margin-bottom: 48px;
    padding-top: 16px;
  }
}

.hero-content-inner {
  max-width: 64rem;
}

.hero-content-wrapper h1 {
  margin-top: 40px;
  text-align: left;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #000;
  font-size: 32px;
}
@media (min-width: 640px) {
  .hero-content-wrapper h1 {
    font-size: 42px;
    margin-top: 56px;
  }
}

.hero-lead {
  margin-top: 16px;
  max-width: 42rem;
  text-align: left;
  font-size: 16px;
  line-height: 1.625;
  color: #404040;
}
@media (min-width: 640px) {
  .hero-lead { font-size: 18px; }
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: var(--brand);
  color: #fff;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
@media (min-width: 640px) {
  .btn-brand { font-size: 15px; }
}
.btn-brand:hover {
  background: var(--brand-hover);
  color: #fff;
}

.btn-link-muted {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: #737373;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #d4d4d4;
}
.btn-link-muted:hover {
  color: var(--text-primary);
  text-decoration-color: #a3a3a3;
}

/* Hero frame — video slot */
.hero-visual-section {
  position: relative;
  width: 100%;
}

.hero-frame-outer {
  position: relative;
  width: 100%;
  display: none;
}
@media (min-width: 640px) {
  .hero-frame-outer {
    display: block;
    height: 90vh;
    min-height: 780px;
    max-height: 900px;
  }
}

.hero-frame-mobile {
  display: block;
  padding: 0 var(--frame-buffer) 32px;
}
@media (min-width: 640px) {
  .hero-frame-mobile { display: none; }
}

.hero-frame-wrapper {
  position: relative;
  display: flex;
  height: 100%;
  width: 100%;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px var(--frame-buffer) 0;
  overflow: hidden;
}

.hero-frame-wrapper::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 360px;
  z-index: 10;
  background: linear-gradient(90deg, rgba(251, 251, 248, 0), rgba(251, 251, 248, 0.8));
}

.hero-frame {
  position: relative;
  width: 100%;
  min-width: min(1200px, 100%);
  height: 675px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #d8d8d8;
  background: var(--frame-bg);
  box-shadow: 0 24px 48px -12px rgba(30, 25, 20, 0.12);
}

.hero-frame-embed {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
}

.hero-frame-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-frame-youtube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
}

.hero-frame.is-playing .hero-frame-poster {
  display: none;
}

.hero-frame.is-playing .hero-frame-youtube {
  display: block;
}

.hero-frame-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0a0a0a;
}

.hero-frame-video--fallback {
  position: absolute;
  inset: 0;
  display: none;
}

.hero-frame.is-playing .hero-frame-video--fallback.is-active {
  display: block;
}

.hero-frame.is-playing .hero-frame-youtube.is-hidden {
  display: none;
}

.hero-frame-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 15;
}

.hero-frame-mobile .hero-frame {
  min-width: 0;
  height: auto;
  aspect-ratio: 16 / 10;
}

.hero-frame-caption {
  pointer-events: none;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: #6b7280;
  background: rgba(20, 20, 18, 0.04);
  backdrop-filter: blur(6px);
}

.hero-frame.is-playing .hero-frame-play { display: none; }

.launch-video-unmute {
  position: absolute;
  bottom: 48px;
  right: 20px;
  z-index: 6;
}
.launch-video-unmute button {
  padding: 8px 14px;
  border-radius: 6px;
  border: 0.5px solid rgba(255,255,255,0.25);
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--sans);
}

/* Content container */
.df-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--frame-buffer);
}

.df-container-wide {
  max-width: var(--max-w-wide);
}

/* Features — data-palette blueberry */
.df-features {
  width: 100%;
  scroll-margin-top: 64px;
  padding: 32px 0 48px;
}
@media (min-width: 768px) {
  .df-features {
    padding: 48px 0 56px;
  }
}

.df-features-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.df-features-header {
  max-width: 640px;
}

.df-features-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px) {
  .df-features-charts {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.df-feature-chart-card {
  margin: 0;
  padding: 16px;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 56px -20px rgba(30, 25, 20, 0.22);
}

.df-feature-chart-card img {
  display: block;
  width: 100%;
  height: auto;
}

.df-feature-chart-card .df-feature-chart-legend {
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.df-features-inner--solo {
  max-width: 920px;
  gap: 20px;
}

.df-features-lead {
  margin-top: 12px;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-body);
}

.df-features-lead strong {
  font-weight: 600;
  color: var(--text-primary);
}

.df-legend-note {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
}

/* Quick start — compact block after features */
.df-quickstart {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
  .df-quickstart { margin-top: 56px; padding-top: 48px; }
}

.df-quickstart-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.df-quickstart-code {
  margin: 16px 0 0;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

.df-quickstart-code code {
  font-family: inherit;
  font-size: inherit;
}

.df-quickstart-note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.df-quickstart-note code {
  font-size: 13px;
}

.df-quickstart-note a {
  color: var(--accent);
  text-decoration: none;
}
.df-quickstart-note a:hover { text-decoration: underline; }

.df-features h2 {
  width: 100%;
  max-width: 800px;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  font-size: 24px;
}
@media (min-width: 640px) {
  .df-features h2 { font-size: 28px; }
}
@media (min-width: 1024px) {
  .df-features h2 { font-size: 32px; }
}

.df-features-grid {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 768px) {
  .df-features-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
}

.df-features-grid--compare {
  gap: 10px;
}
@media (min-width: 1024px) {
  .df-features-grid--compare {
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .df-feature-card--wide {
    flex: 1.55;
  }
  .df-feature-card--viz {
    flex: 1;
  }
  .df-features-grid--compare .df-feature-card {
    display: flex;
    flex-direction: column;
  }
  .df-features-grid--compare .df-feature-visual {
    flex: 1;
    aspect-ratio: auto;
    min-height: 520px;
  }
}

.df-feature-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 768px) {
  .df-feature-card {
    flex: 1;
    flex-basis: 0;
    min-width: 0;
  }
}

.df-feature-visual--charts {
  aspect-ratio: auto;
  min-height: 420px;
  padding: 12px;
  display: flex;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .df-feature-visual--charts { min-height: 520px; }
}

.df-feature-visual--sc-viz {
  aspect-ratio: auto;
  min-height: 420px;
  padding: 12px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
@media (min-width: 1024px) {
  .df-feature-visual--sc-viz { min-height: 520px; }
}

.df-feature-chart-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 14px 14px 12px;
  box-shadow: 0 24px 56px -20px rgba(30, 25, 20, 0.28);
}

.df-feature-chart {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  flex: 1;
  min-height: 0;
}
.df-feature-chart img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.df-feature-chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
  font-size: 11px;
  color: #737373;
}
.df-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.df-legend-swatch--base { background: #cbd5e1; }
.df-legend-swatch--sc { background: #2563eb; }

/* SuperCompress token viz — right feature card */
.sc-compress-viz {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 20px 18px;
  box-shadow: 0 24px 56px -20px rgba(30, 25, 20, 0.22);
}

.sc-viz-block + .sc-viz-block { margin-top: 16px; }

.sc-viz-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.sc-viz-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #737373;
}
.sc-viz-tag--out { color: var(--brand-dark); }

.sc-viz-metric {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #404040;
}
.sc-viz-metric--accent {
  color: var(--brand);
  font-weight: 600;
}

.sc-viz-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  min-height: 44px;
  align-content: flex-start;
}
.sc-viz-bar span {
  width: 7px;
  height: 14px;
  border-radius: 2px;
  background: #e5e7eb;
  flex-shrink: 0;
}
.sc-viz-bar--in span {
  animation: sc-viz-fade-in 0.4s ease both;
}
.sc-viz-bar--in span:nth-child(odd) { animation-delay: 0.02s; }
.sc-viz-bar--in span:nth-child(even) { animation-delay: 0.05s; }

.sc-viz-bar--out span.kept {
  background: linear-gradient(180deg, #93c5fd, #2563eb);
  animation: sc-viz-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sc-viz-bar--out span.kept:nth-child(1) { animation-delay: 0.1s; }
.sc-viz-bar--out span.kept:nth-child(2) { animation-delay: 0.15s; }
.sc-viz-bar--out span.kept:nth-child(3) { animation-delay: 0.2s; }
.sc-viz-bar--out span.kept:nth-child(4) { animation-delay: 0.25s; }
.sc-viz-bar--out span.kept:nth-child(5) { animation-delay: 0.3s; }
.sc-viz-bar--out span.kept:nth-child(6) { animation-delay: 0.35s; }
.sc-viz-bar--out span.kept:nth-child(7) { animation-delay: 0.4s; }

.sc-viz-kept-note {
  margin-top: 10px;
  font-size: 10px;
  color: #737373;
  line-height: 1.4;
}

.sc-viz-engine {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 18px 0 6px;
  padding: 14px 0;
}

.sc-viz-engine-ring {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.25);
  animation: sc-viz-pulse 2.4s ease-in-out infinite;
}
.sc-viz-engine-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #dbeafe, #2563eb);
  opacity: 0.15;
}

.sc-viz-engine-label {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-dark);
  letter-spacing: -0.01em;
}
.sc-viz-engine-sub {
  position: relative;
  margin-top: 2px;
  font-size: 10px;
  color: #737373;
}

.sc-viz-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
}

.sc-viz-stat {
  text-align: center;
}
.sc-viz-stat-n {
  display: block;
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.1;
  color: var(--brand-dark);
}
.sc-viz-stat-l {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #737373;
}

@keyframes sc-viz-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sc-viz-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes sc-viz-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-viz-bar--in span,
  .sc-viz-bar--out span.kept,
  .sc-viz-engine-ring {
    animation: none;
  }
}

.df-feature-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  user-select: none;
}

.df-feature-visual--blue { background: var(--feat-blue); }
.df-feature-visual--green { background: var(--feat-green); }
.df-feature-visual--warm { background: var(--feat-warm); }

.df-feature-mock {
  position: absolute;
  inset: 10%;
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.df-feature-copy h3 {
  padding-right: 24px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
}

.df-feature-copy p {
  margin-top: 4px;
  max-width: 400px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-body);
}

/* Mock UI inside feature cards */
.mock-req-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--line, rgba(0,0,0,0.08));
  font-size: 11px;
  color: #404040;
}
.mock-req-id {
  font-family: ui-monospace, monospace;
  color: var(--brand);
  font-weight: 500;
  flex-shrink: 0;
}
.mock-pill {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.mock-pill--conflict { background: #fee2e2; color: #b91c1c; }
.mock-pill--ok { background: var(--brand-soft); color: var(--brand-dark, #1e40af); }

.mock-deliverable {
  padding: 12px;
  border: 0.5px solid var(--card-border);
  border-radius: 3px;
  margin-bottom: 8px;
  background: #fafafa;
}
.mock-deliverable strong {
  display: block;
  font-size: 11px;
  margin-bottom: 4px;
}
.mock-deliverable span {
  font-size: 10px;
  color: var(--text-body);
}

.mock-stat-big {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand);
  margin-top: auto;
}
.mock-stat-big span {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-body);
  margin-top: 8px;
}

/* Vision / editorial scroll section */
.df-vision {
  position: relative;
  left: 50%;
  right: 50%;
  margin-top: 48px;
  width: 100vw;
  max-width: 1920px;
  transform: translateX(-50%);
  scroll-margin-top: 64px;
  background: var(--vision-bg);
}
@media (min-width: 640px) {
  .df-vision { margin-top: 64px; }
}

.df-vision-runway {
  position: relative;
  height: 220vh;
  max-height: 1800px;
  width: 100%;
}

.df-vision-sticky {
  position: sticky;
  top: 0;
  display: flex;
  height: 100dvh;
  max-height: 1800px;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
@media (min-width: 640px) {
  .df-vision-sticky { padding: 64px 40px; }
}
@media (min-width: 1024px) {
  .df-vision-sticky { padding: 64px 56px; }
}

.df-vision-text {
  margin: 0 auto;
  width: 100%;
  max-width: 36rem;
  text-align: left;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.38;
  letter-spacing: -0.01em;
  font-size: 22px;
}
@media (min-width: 640px) {
  .df-vision-text { max-width: 42rem; font-size: 24px; }
}
@media (min-width: 1024px) {
  .df-vision-text { font-size: 26px; }
}
@media (min-width: 1280px) {
  .df-vision-text { font-size: 28px; }
}

.df-vision-text .vision-block {
  display: block;
  margin-top: 40px;
}
.df-vision-text .vision-block:first-child {
  margin-top: 0;
}
@media (min-width: 640px) {
  .df-vision-text .vision-block { margin-top: 48px; }
}

.vision-word {
  color: #171717;
  transition: opacity 0.15s linear;
}

/* Trust / security section */
.df-trust {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: 1920px;
  transform: translateX(-50%);
  margin-top: -2px;
  scroll-margin-top: 64px;
  background: var(--section-bg);
  padding: 64px 24px 48px;
}
@media (min-width: 640px) {
  .df-trust { padding: 80px 40px 56px; }
}
@media (min-width: 1024px) {
  .df-trust { padding: 96px 56px 64px; }
}

.df-trust-head {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.df-trust-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #000;
  font-size: 32px;
}
@media (min-width: 640px) {
  .df-trust-head h2 { font-size: 40px; }
}

.df-trust-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 1024px) {
  .df-trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.df-trust-card {
  height: 100%;
  border-radius: 4px;
  border: 0.5px solid var(--card-border);
  background: var(--card-bg);
  padding: 24px 28px 32px;
}
@media (min-width: 640px) {
  .df-trust-card { padding: 32px 28px; }
}

.df-trust-label {
  font-size: 12px;
  font-weight: 500;
  color: #737373;
}

.df-trust-card h3 {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #171717;
}
@media (min-width: 640px) {
  .df-trust-card h3 { font-size: 17px; }
}

.df-trust-card > p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #404040;
}
@media (min-width: 640px) {
  .df-trust-card > p { font-size: 15px; }
}

.df-trust-card ul {
  list-style: none;
  margin-top: 16px;
}

.df-trust-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
  color: #404040;
}

.df-trust-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: #737373;
  flex-shrink: 0;
}

/* Impact calculator — prompt in, token stats out */
.impact-calc {
  width: 100%;
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 900px) {
  .impact-calc {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

.impact-calc-input,
.impact-calc-stats {
  border-radius: 4px;
  border: 0.5px solid var(--card-border);
  background: #fff;
  padding: 24px 28px;
}
@media (min-width: 640px) {
  .impact-calc-input,
  .impact-calc-stats { padding: 28px 32px; }
}

.impact-calc-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #737373;
  margin-bottom: 12px;
}

.impact-calc-input textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--panel-bg);
}
.impact-calc-input textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.impact-calc-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.45;
}

.impact-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.impact-preset-btn,
.impact-drop-zone {
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0.5px solid var(--card-border);
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.impact-preset-btn:hover,
.impact-drop-zone:hover,
.impact-drop-zone--over {
  border-color: var(--brand);
  background: rgba(29, 78, 216, 0.04);
}

.impact-preset-btn.active {
  border-color: var(--brand-dark);
  background: rgba(29, 78, 216, 0.08);
  color: var(--brand-dark);
}

.impact-query-input {
  width: 100%;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-primary);
  background: #fff;
}

.impact-query-input:focus {
  outline: none;
  border-color: var(--brand);
}

.impact-calc-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.impact-calc-hint {
  font-size: 12px;
  color: #737373;
}

.impact-budget-row {
  margin-bottom: 16px;
}

.impact-budget-hint {
  font-weight: 400;
  color: #737373;
}

.impact-budget-control {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.impact-budget-slider {
  flex: 1;
  height: 4px;
  accent-color: #2563eb;
  cursor: pointer;
}

.impact-budget-val {
  min-width: 72px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  font-variant-numeric: tabular-nums;
}

.impact-status {
  margin-top: 10px;
  font-size: 13px;
  min-height: 1.2em;
}

.impact-status--ok {
  color: #166534;
}

.impact-status--error {
  color: #b91c1c;
}

.impact-calc-actions .btn-brand {
  padding: 10px 22px;
  font-size: 14px;
}

.impact-stat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.impact-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}
.impact-stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.impact-stat-row:first-child {
  padding-top: 0;
}

.impact-stat-name {
  font-size: 14px;
  color: #404040;
}

.impact-stat-val {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.impact-stat-row--accent .impact-stat-val {
  color: var(--brand-dark);
}

.impact-stat-val-wrap {
  text-align: right;
}

.impact-stat-unit {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  color: #737373;
  margin-top: 4px;
  font-weight: 400;
}

.df-api-grid {
  margin-top: 32px;
  max-width: none;
}

.df-api-quick { min-height: auto; }
.df-api-quick .code-block { margin: 0; }

.df-api-cta-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.df-api-cta-text {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.5;
}

.df-api-cta-btn { width: fit-content; }
.df-api-cta-link { margin-left: 0; }

/* Demo — contained product frame */
.df-demo {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: 1920px;
  transform: translateX(-50%);
  scroll-margin-top: 64px;
  background: var(--section-bg);
  padding: 80px var(--frame-buffer) 96px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
}
@media (min-width: 640px) {
  .df-demo { padding: 96px var(--frame-buffer) 128px; }
}

.df-demo-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.df-demo-shell {
  margin-top: 48px;
  border: 0.5px solid var(--card-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 48px -12px rgba(30, 25, 20, 0.08);
  overflow: hidden;
}

.df-demo-shell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
  background: var(--panel-bg);
  font-size: 13px;
  color: var(--text-muted);
}

.df-demo-shell-body {
  padding: 28px 24px 32px;
}
@media (min-width: 640px) {
  .df-demo-shell-body { padding: 32px 32px 40px; }
}

.df-api {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: 1920px;
  transform: translateX(-50%);
  padding: 56px var(--frame-buffer) 96px;
  background: var(--bg-page);
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
}

.df-api-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.df-stats-band {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: 1920px;
  transform: translateX(-50%);
  margin-top: -2px;
  background: var(--card-bg);
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
  padding: 48px var(--frame-buffer) 64px;
}
@media (min-width: 640px) {
  .df-stats-band { padding: 56px var(--frame-buffer) 72px; }
}

.df-stats-band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.df-stats-band h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.df-stats-band-lead {
  font-size: 15px;
  color: var(--text-body);
  max-width: 52ch;
  margin-bottom: 32px;
  line-height: 1.5;
}

.demo-viz-grid { display: none; }
@media (min-width: 1024px) {
  .demo-viz-grid { display: grid; }
}

.demo-compare-all {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
}
.demo-compare-all h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mini-compare { margin-top: 0; font-size: 13px; }
.mini-compare th, .mini-compare td { padding: 10px 8px; }

.token-bar-wrap { margin-bottom: 8px; }
.token-bar-label { font-size: 12px; color: var(--text-body); margin-bottom: 6px; }
.line-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.line-reason {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.scale-projection {
  margin-top: 40px;
  padding: 28px 24px;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  background: #fff;
}
.scale-projection h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.scale-projection-lead {
  font-size: 14px;
  color: var(--text-body);
  margin-top: 8px;
  line-height: 1.45;
}

.df-section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #737373;
  margin-bottom: 16px;
}

.df-section-title {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: 28px;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .df-section-title { font-size: 32px; }
}

.df-section-desc {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: 48px;
}

/* FAQ — datafruit two-column */
.df-faq {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: 1920px;
  transform: translateX(-50%);
  margin-top: -2px;
  background: var(--card-bg);
  padding: 56px 24px 32px;
}
@media (min-width: 640px) {
  .df-faq { padding: 80px 40px 48px; }
}
@media (min-width: 1024px) {
  .df-faq { padding: 96px 56px 56px; }
}

.df-faq-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .df-faq-inner {
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
  }
}

.df-faq h2 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #171717;
  font-size: 32px;
}
@media (min-width: 640px) {
  .df-faq h2 { font-size: 40px; }
}

.df-faq-list {
  border-top: 1px solid #d4d4d4;
}

.df-faq-item {
  border-bottom: 1px solid #d4d4d4;
}

.df-faq-item button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-primary);
  cursor: pointer;
}
@media (min-width: 640px) {
  .df-faq-item button { font-size: 20px; }
}

.df-faq-item button svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #404040;
  transition: transform 0.3s;
}
@media (min-width: 640px) {
  .df-faq-item button svg { width: 24px; height: 24px; }
}

.df-faq-item.is-open button svg {
  transform: rotate(180deg);
}

.df-faq-answer {
  display: none;
  padding-bottom: 20px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-body);
}
.df-faq-item.is-open .df-faq-answer {
  display: block;
}

/* CTA */
.df-cta {
  width: 100%;
  scroll-margin-top: 64px;
  padding: 0 var(--frame-buffer);
}

.df-cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--section-bg);
  padding: 64px 24px;
  text-align: center;
}
@media (min-width: 768px) {
  .df-cta-inner { padding: 80px 24px; }
}

.df-cta h2 {
  margin: 0 auto;
  max-width: 18ch;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-size: 40px;
}
@media (min-width: 640px) {
  .df-cta h2 { font-size: 56px; }
}
@media (min-width: 1024px) {
  .df-cta h2 { font-size: 72px; }
}
@media (min-width: 1280px) {
  .df-cta h2 { font-size: 84px; }
}

.df-cta p {
  margin: 24px auto 0;
  max-width: 520px;
  font-size: 15px;
  color: var(--text-body);
}
@media (min-width: 640px) {
  .df-cta p { font-size: 16px; }
}

.df-cta .btn-brand {
  margin-top: 40px;
  padding: 10px 24px;
}

/* Footer */
.df-footer {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  color: #e5e5e5;
  padding: 0 var(--frame-buffer);
}

.df-footer-inner {
  position: relative;
  z-index: 10;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 0 0;
}
@media (min-width: 640px) {
  .df-footer-inner { padding-top: 40px; }
}

.df-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px 0 64px;
}
@media (min-width: 1024px) {
  .df-footer-grid {
    grid-template-columns: 1fr auto;
    gap: 64px;
    padding-bottom: 96px;
  }
}

.df-footer-brand p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
  color: #a3a3a3;
  max-width: 280px;
}

.df-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 64px;
}
@media (min-width: 640px) {
  .df-footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.df-footer-email {
  display: inline-block;
  margin-top: 12px;
  font-size: 15px;
  color: #e5e5e5;
  transition: color 0.2s;
}
.df-footer-email:hover { color: #fff; }

.df-footer-brand .df-footer-heading {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: #a3a3a3;
  margin-bottom: 0;
}

.df-footer-heading {
  font-size: 13px;
  font-weight: 500;
  color: #a3a3a3;
  margin-bottom: 16px;
}

.df-footer-links ul {
  list-style: none;
}

.df-footer-links li {
  margin-bottom: 12px;
}

.df-footer-links a {
  font-size: 15px;
  color: #e5e5e5;
  white-space: nowrap;
}
.df-footer-links a:hover { color: #fff; }

.df-footer-copy {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #737373;
}

.df-footer-watermark {
  pointer-events: none;
  position: relative;
  z-index: 0;
  max-width: var(--max-w);
  margin: 0 auto;
}

.df-footer-watermark p {
  user-select: none;
  white-space: nowrap;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.04);
  font-size: 28vw;
}
@media (min-width: 640px) {
  .df-footer-watermark p { font-size: 24vw; }
}
@media (min-width: 1024px) {
  .df-footer-watermark p { font-size: min(20vw, 280px); }
}

/* Hero enter animation — datafruit */
@keyframes hero-enter {
  from {
    filter: blur(5px);
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-hero-enter {
  animation: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both hero-enter;
  animation-delay: var(--enter-delay, 0s);
}

.animate-hero-word {
  display: inline-block;
  animation: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both hero-enter;
  animation-delay: calc(var(--enter-delay, 0.1s) + var(--stagger, 0) * 80ms);
}

/* Scroll reveal — site-wide (beyond hero) */
.df-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--reveal-delay, 0ms);
}

.df-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.df-reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: calc(var(--stagger-i, 0) * 80ms);
}

.df-reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Demo components (keep functional) */
.demo-controls label { display: block; margin-bottom: 20px; font-size: 13px; font-weight: 500; color: #525252; }
.demo-controls textarea,
.demo-controls input {
  width: 100%; margin-top: 8px; padding: 14px 16px;
  border: 0.5px solid var(--card-border); border-radius: 6px;
  background: #fff; font-family: ui-monospace, monospace; font-size: 13px;
}
.demo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.demo-actions .btn-link-muted { margin-left: 0; }
.demo-status { font-size: 14px; color: var(--text-body); margin-top: 16px; }
.demo-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
@media (max-width: 768px) { .demo-compare-grid { grid-template-columns: 1fr; } }
.demo-panel { border: 0.5px solid var(--card-border); border-radius: 6px; padding: 24px; background: #fff; }
.demo-panel--primary { background: #fafcff; border-color: rgba(37, 99, 235, 0.15); }
.demo-panel-head { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.demo-badge { font-size: 11px; padding: 4px 8px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); font-family: monospace; }
.demo-stats { font-size: 13px; color: var(--text-body); margin-bottom: 12px; }
.demo-output { font-size: 12px; max-height: 200px; overflow: auto; white-space: pre-wrap; line-height: 1.5; }
.demo-viz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
@media (max-width: 768px) { .demo-viz-grid { grid-template-columns: 1fr; } }
.demo-viz { border: 0.5px solid var(--card-border); border-radius: 6px; padding: 20px; background: var(--section-bg); }
.demo-viz h4 { font-size: 13px; margin-bottom: 12px; }
.demo-impact-panel { margin-top: 32px; padding: 24px 28px; border: 0.5px solid var(--card-border); border-radius: 6px; background: #fff; }
.impact-panel-title { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: #737373; margin-bottom: 16px; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 640px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
.impact-val { font-family: var(--serif); font-size: 28px; line-height: 1; }
.impact-lbl { font-size: 12px; color: #737373; margin-top: 6px; display: block; }
.impact-note { margin-top: 16px; font-size: 12px; color: #737373; }
.token-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #eee; margin: 8px 0; }
.token-bar-kept { background: var(--brand); }
.token-bar-removed { background: #e5e5e5; }
.line-heatmap { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 12px; }
.heat-cell { width: 5px; height: 14px; border-radius: 2px; }
.heat-cell.kept { background: var(--brand); }
.heat-cell.removed { background: #e5e5e5; }
.line-viz { max-height: 200px; overflow: auto; font-size: 11px; }
.line-row { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 4px 0; border-bottom: 0.5px solid rgba(0,0,0,0.06); }
.line-row.removed { opacity: 0.5; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 32px; }
.compare-table th, .compare-table td { text-align: left; padding: 16px 12px; border-bottom: 0.5px solid rgba(0,0,0,0.08); }
.compare-table th { font-size: 12px; color: #737373; font-weight: 500; }
.benchmark-table .row-highlight { background: var(--section-bg); }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 32px; }
@media (max-width: 768px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-figure { border-radius: 6px; overflow: hidden; border: 0.5px solid var(--card-border); }
.chart-figure img { display: block; width: 100%; }
.dash-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 24px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
.dash-grid--compact { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .dash-grid--compact { grid-template-columns: 1fr; } }
.dash-card {
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  padding: 20px 14px;
  text-align: center;
  background: #fff;
}
.dash-val { font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); display: block; line-height: 1.1; }
.dash-label { font-size: 11px; color: #737373; margin-top: 8px; display: block; line-height: 1.35; }
.scale-slider-label { display: block; margin: 20px 0 12px; font-size: 14px; color: var(--text-body); }
.scale-slider-label input[type="range"] { width: 100%; margin: 12px 0 8px; accent-color: var(--brand); }
.scale-slider-label span { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text-primary); }
.code-block { padding: 20px; background: #f8f8f7; border: 0.5px solid var(--card-border); border-radius: 6px; font-family: ui-monospace, monospace; font-size: 12px; line-height: 1.6; overflow-x: auto; }
.code-block .kw { color: var(--brand); }
.code-block .str { color: #0d9488; }
.code-block .cm { color: #737373; }
.hidden { display: none !important; }

/* ── API Dashboard (matches lander) ── */
.dash-page .df-page-bg-bottom {
  display: none;
}

.dash-page .df-page-bg-top {
  height: 100vh;
  background: var(--bg-page);
}

.dash-page .df-page-inner {
  min-height: 100vh;
  background: var(--bg-page);
  position: relative;
  z-index: 1;
}

.dash-page .df-header-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.df-github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 12px 24px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, color 0.2s;
}
.df-github-link:hover {
  background: rgba(229, 229, 229, 0.9);
  color: #404040;
}

.dash-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--nav-h) - 48px);
  padding: 48px var(--frame-buffer) 80px;
}

.dash-auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  padding: 36px 32px 40px;
  box-shadow: 0 24px 56px -20px rgba(30, 25, 20, 0.12);
}

.dash-section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #737373;
  margin-bottom: 12px;
}

.dash-auth-card h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.dash-auth-sub {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 24px;
}

.dash-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  background: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s;
}
.dash-btn-google:hover { background: var(--panel-bg); }

.dash-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: #737373;
}
.dash-auth-divider::before,
.dash-auth-divider::after {
  content: "";
  flex: 1;
  height: 0.5px;
  background: var(--card-border);
}

.dash-auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.dash-auth-tab {
  flex: 1;
  padding: 10px;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  background: var(--panel-bg);
  font-family: var(--sans);
  font-size: 14px;
  color: #737373;
  cursor: pointer;
}
.dash-auth-tab.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-color: rgba(37, 99, 235, 0.25);
}

.dash-field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #737373;
  margin: 16px 0 8px;
}

.dash-field-input {
  width: 100%;
  padding: 12px 14px;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px;
  background: var(--panel-bg);
  color: var(--text-primary);
}
.dash-field-input:focus {
  outline: none;
  border-color: var(--brand);
}

.dash-auth-submit {
  width: 100%;
  margin-top: 24px;
  padding: 10px 16px;
}

.dash-auth-error {
  margin-top: 16px;
  font-size: 13px;
  color: #dc2626;
}

.dash-shell {
  min-height: calc(100vh - var(--nav-h));
  padding: 32px 0 80px;
  background: var(--bg-page);
}

.dash-shell .df-container-wide {
  width: 100%;
}

.dash-api-banner {
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 0.5px solid rgba(37, 99, 235, 0.2);
  border-radius: 4px;
  background: var(--brand-soft);
  font-size: 13px;
  line-height: 1.5;
  color: var(--brand-dark);
}
.dash-api-banner code {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  font-size: 11px;
  overflow-x: auto;
}

.dash-info-banner {
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  background: #fafafa;
  font-size: 13px;
  line-height: 1.55;
  color: #404040;
}
.dash-info-banner code {
  font-size: 12px;
}

.dash-topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.dash-topnav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  background: #fff;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.dash-topnav-item:hover {
  background: var(--panel-bg);
  color: var(--text-primary);
}
.dash-topnav-item.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-color: rgba(37, 99, 235, 0.25);
}
.dash-topnav-link { text-decoration: none; }

.dash-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.dash-panel-head h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.dash-panel-head p {
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-body);
}

.dash-panel-head p code {
  font-size: 0.9em;
  background: var(--panel-bg);
  padding: 2px 6px;
  border-radius: 3px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
}

.dash-stat-card {
  padding: 20px 18px;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  background: #fff;
}
.dash-stat-card--accent {
  background: var(--feat-blue);
  border-color: rgba(37, 99, 235, 0.15);
}

.dash-stat-n {
  display: block;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
  color: var(--text-primary);
}

.dash-stat-l {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #737373;
}

.dash-keys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.dash-key-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  background: #fff;
}

.dash-key-card-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.dash-key-card-prefix {
  display: block;
  font-size: 12px;
  color: var(--brand);
  margin-bottom: 12px;
}

.dash-key-card-meta {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-body);
}

.dash-key-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

button.btn-link-muted {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.dash-key-card-actions button.btn-link-muted {
  margin-left: 0;
  padding: 7px 14px;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  background: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.dash-key-card-actions button.btn-link-muted:hover {
  background: var(--panel-bg);
  border-color: #d4d4d4;
  color: var(--text-primary);
  text-decoration: none;
}

.dash-key-card-actions button.btn-revoke {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.3);
}

.dash-key-card-actions button.btn-revoke:hover {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.45);
  color: #b91c1c;
}

.dash-table-panel {
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.dash-table-wrap { overflow-x: auto; }

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dash-table th,
.dash-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 0.5px solid var(--card-border);
}

.dash-table th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #737373;
  background: var(--panel-bg);
}

.dash-empty {
  grid-column: 1 / -1;
  padding: 48px 32px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-body);
  text-align: center;
  background: #fff;
  border: 0.5px solid var(--card-border);
  border-radius: 8px;
}

.dash-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(4px);
}

.dash-modal-card {
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 24px 56px -20px rgba(30, 25, 20, 0.22);
}

.dash-modal-card h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 24px;
  margin-bottom: 16px;
}

.dash-modal-card .btn-brand {
  width: 100%;
  margin-top: 20px;
  padding: 10px 16px;
}

.dash-modal-card .btn-link-muted {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  text-align: center;
}

.dash-modal-card button.btn-link-muted {
  padding: 8px;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
}

.dash-warn {
  font-size: 13px;
  color: #b45309;
  margin-bottom: 12px;
}

.dash-key-full {
  display: block;
  padding: 14px;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  background: var(--panel-bg);
  font-size: 12px;
  word-break: break-all;
  line-height: 1.5;
  margin-bottom: 12px;
}

.dash-integrate {
  margin-bottom: 24px;
  padding: 20px;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  background: #fff;
}

.dash-integrate--modal {
  margin: 20px 0 16px;
  background: var(--panel-bg);
}

.dash-integrate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.dash-integrate-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #737373;
}

.dash-snippet-tabs {
  display: flex;
  gap: 4px;
}

.dash-snippet-tab {
  padding: 6px 12px;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  background: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dash-snippet-tab:hover {
  background: var(--panel-bg);
  color: var(--text-primary);
}

.dash-snippet-tab.active {
  background: var(--brand-soft);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--brand-dark);
}

.dash-snippet-code {
  margin: 0;
  padding: 16px;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  background: #f8f8f7;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
  color: var(--text-primary);
}

.dash-integrate-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.dash-integrate-hint {
  font-size: 12px;
  color: var(--text-body);
}

.dash-integrate-hint code {
  font-size: 0.92em;
  background: var(--panel-bg);
  padding: 2px 6px;
  border-radius: 3px;
}

.dash-modal-card--wide {
  max-width: 560px;
}

.dash-profile {
  position: relative;
}

.dash-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.dash-profile-initial {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-dark);
}

.dash-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 12px;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 50;
}

.dash-profile:hover .dash-profile-dropdown,
.dash-profile:focus-within .dash-profile-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dash-profile-dropdown-name {
  font-size: 14px;
  font-weight: 500;
}

.dash-profile-dropdown-email {
  font-size: 12px;
  color: #737373;
  margin: 4px 0 12px;
}

.dash-profile-signout {
  width: 100%;
  padding: 8px 12px;
  border: 0.5px solid var(--card-border);
  border-radius: 4px;
  background: var(--panel-bg);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
}
.dash-profile-signout:hover { background: #fee2e2; color: #991b1b; }

@media (prefers-reduced-motion: reduce) {
  .animate-hero-enter,
  .animate-hero-word {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .df-reveal,
  .df-reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
