/* SuperCompress — Datafruit design system */

@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@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;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: rgb(251, 251, 248);
  --bg-soft: rgb(249, 249, 247);
  --bg-muted: rgb(239, 239, 234);
  --bg-dark: #0a0a0a;
  --surface: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.15);
  --line-faq: rgb(212, 212, 212);
  --text: #0a0a0a;
  --text-secondary: #6b6b6b;
  --text-muted: #9ca3af;
  --accent: #1a1a1a;
  --accent-blue: #4389a4;
  --pink: #f0a8c8;
  --pink-hover: #e890b8;
  --pink-dark: #c9789e;
  --pink-soft: #fce8f2;
  --pink-muted: #f5d4e6;
  --pear: var(--pink);
  --pear-hover: var(--pink-hover);
  --pear-dark: var(--pink-dark);
  --mint: var(--pink-dark);
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1400px;
  --frame: clamp(20px, 4vw, 56px);
  --nav-h: 56px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); font-size: 0.88em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--frame); }

/* ── Datafruit split background ── */
.df-site { position: relative; }
.df-bg-top,
.df-bg-bottom {
  pointer-events: none;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 0;
}
.df-bg-top {
  top: 0;
  height: 100%;
  background: var(--bg);
}
.df-bg-bottom {
  display: none;
}
.df-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ── Datafruit header ── */
.df-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: 4px;
}
.df-header::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0 0 -60%;
  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;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--frame);
  min-height: var(--nav-h);
}
.df-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.df-logo-mark {
  width: 24px;
  height: auto;
  flex-shrink: 0;
}
.df-logo-word {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}
.df-logo-word em {
  font-style: italic;
  font-weight: 400;
}
.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,
.df-cta-pill {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  border-radius: var(--radius-sm);
  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), var(--shadow);
}
.df-nav-pill::before,
.df-cta-pill::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(4px);
  opacity: 0.7;
}
.df-nav-pill {
  gap: 2px;
  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);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.df-nav-pill a:hover {
  color: #404040;
  background: rgba(229, 229, 229, 0.9);
}
.df-cta-pill {
  padding: 0 20px;
}
.df-cta-pill a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  transition: color 0.2s;
}
.df-cta-pill a:hover { color: #525252; }
.df-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.df-menu-btn span {
  display: block;
  height: 1.5px;
  background: var(--text);
}
@media (min-width: 820px) {
  .df-menu-btn { display: none; }
}
.df-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--frame) 16px;
}
.df-mobile-nav a {
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.df-header-spacer {
  height: var(--nav-h);
}
@media (min-width: 640px) {
  .df-header-spacer { height: 64px; }
}

/* Legacy nav (dashboard, api, app) — styled like Datafruit */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: 4px;
  background: transparent;
}
.nav::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0 0 -60%;
  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%);
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--frame);
}
.logo,
.df-logo-word {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo em { font-style: italic; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a:not(.btn) {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:not(.btn):hover {
  background: rgba(229, 229, 229, 0.9);
  color: #404040;
}
.df-logout-btn,
.df-logout-mobile {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.df-logout-mobile {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mode-badge--nav {
  margin: 0 8px;
  font-size: 11px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: var(--sans);
}
.btn-pear,
.btn-primary {
  background: var(--pear);
  color: #262626;
}
.btn-pear:hover,
.btn-primary:hover {
  background: var(--pear-hover);
  color: #171717;
}
.btn-text-link {
  padding: 6px 0;
  margin-left: 8px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: #d4d4d4;
  text-underline-offset: 4px;
  background: transparent;
}
.btn-text-link:hover {
  color: var(--text);
  text-decoration-color: #a3a3a3;
}
.btn-ghost {
  background: var(--bg-muted);
  color: var(--text);
  border-radius: var(--radius-sm);
}
.btn-ghost:hover { background: rgb(228, 228, 223); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.btn-outline:hover { background: var(--bg-muted); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ── Hero (Datafruit layout) ── */
.hero-df {
  padding: 16px 0 0;
  background: var(--bg);
}
.hero-df-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--frame);
}
.hero-df-copy {
  max-width: 640px;
  padding: 40px 0 32px;
}
@media (min-width: 640px) {
  .hero-df-copy { padding-top: 56px; }
}
.hero-df-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--text);
  text-align: left;
}
.hero-df-lead {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .hero-df-lead { font-size: 16px; }
}
.hero-df-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.hero-df-visual {
  padding: 24px 0 48px;
}
.product-mock {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.mock-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 0.82rem;
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.mock-dots span:nth-child(1) { background: #e8a598; }
.mock-dots span:nth-child(2) { background: #e8d498; }
.mock-dots span:nth-child(3) { background: #98c9a3; }
.mock-title { font-weight: 500; color: var(--text); }
.mock-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-muted);
  color: var(--text-secondary);
}
.mock-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 420px;
}
@media (max-width: 768px) {
  .mock-layout { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
}
.mock-sidebar {
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: #fafaf8;
}
.mock-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.mock-stack {
  list-style: none;
  margin-bottom: 24px;
}
.mock-stack li {
  font-size: 0.82rem;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  transition: background 0.2s, color 0.2s;
}
.mock-stack li.active {
  background: var(--pear);
  color: #262626;
}
.mock-block {
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.5;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.mock-main { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.mock-query, .mock-agent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.mock-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
}
.mock-avatar.agent { background: var(--pear-dark); color: #fff; }
.mock-query p, .mock-response p { font-size: 0.92rem; line-height: 1.55; color: var(--text); }
.mock-meta { font-size: 0.78rem !important; color: var(--text-muted) !important; margin-bottom: 6px !important; }
.mock-phases { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mock-phase {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--text-muted);
}
.mock-phase.done { background: var(--pink-soft); border-color: var(--pink-muted); color: var(--pink-dark); }
.mock-phase.active { background: var(--pear); color: #262626; border-color: var(--pear); }
.mock-code {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fafaf8;
}
.mock-code .api-tab {
  padding: 10px 14px;
  font-size: 0.8rem;
}
.mock-code .api-code {
  border-radius: 0;
  margin: 0;
  min-height: 120px;
  background: transparent;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--delay, 0) * 0.1s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-scale {
  opacity: 0;
  transform: translateY(32px) scale(0.96);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--delay, 0) * 0.1s);
}
.reveal-scale.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-section.is-visible { opacity: 1; transform: translateY(0); }
.reveal-section .card,
.reveal-section .metric,
.reveal-section .quote-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal-section.is-visible .card,
.reveal-section.is-visible .metric,
.reveal-section.is-visible .quote-card { opacity: 1; transform: translateY(0); }
.reveal-section.is-visible .grid-3 .card:nth-child(1) { transition-delay: 0.05s; }
.reveal-section.is-visible .grid-3 .card:nth-child(2) { transition-delay: 0.12s; }
.reveal-section.is-visible .grid-3 .card:nth-child(3) { transition-delay: 0.19s; }
.reveal-section.is-visible .metrics .metric:nth-child(1) { transition-delay: 0.05s; }
.reveal-section.is-visible .metrics .metric:nth-child(2) { transition-delay: 0.1s; }
.reveal-section.is-visible .metrics .metric:nth-child(3) { transition-delay: 0.15s; }
.reveal-section.is-visible .metrics .metric:nth-child(4) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale, .reveal-section {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Features (Datafruit 3-col) ── */
.section-title-lg {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 800px;
  color: var(--text);
}
.df-features {
  padding: 0 var(--frame) 64px;
  background: var(--bg);
}
.df-features-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
}
@media (min-width: 768px) {
  .df-features-inner {
    flex-direction: row;
    gap: 10px;
  }
}
.df-feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.df-feature-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
}
.df-feature-visual--blue { background: #f0e4f3; }
.df-feature-visual--pear { background: var(--pink-soft); }
.df-feature-visual--warm { background: #faf0f5; }
.df-feature-inner {
  position: absolute;
  inset: 10%;
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.feat-stack {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feat-stack li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.feat-stack li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  flex-shrink: 0;
}
.feat-stack li.feat-stack--active {
  color: var(--text);
  font-weight: 500;
}
.feat-stack li.feat-stack--active::before {
  background: var(--pink);
}
.feat-stat {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 28px;
  color: var(--text);
  line-height: 1;
}
.feat-stat span {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.feat-bars { display: flex; flex-direction: column; gap: 16px; }
.feat-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.feat-bar-track {
  height: 8px;
  background: var(--bg-muted);
  border-radius: 4px;
  overflow: hidden;
}
.feat-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: #d4d4d4;
}
.feat-bar-fill--sc {
  background: var(--pink);
  width: 35%;
}
.feat-bar-fill--raw { width: 100%; }
.feat-int-list { list-style: none; }
.feat-int-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.feat-int-list li:last-child { border-bottom: none; }
.feat-int-list strong { font-weight: 500; color: var(--text); }
.feat-int-ok {
  font-size: 11px;
  color: var(--pink-dark);
  font-weight: 500;
}
.feat-int-pending {
  font-size: 11px;
  color: var(--text-muted);
}
.df-feature-copy h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  padding-right: 24px;
}
.df-feature-copy p {
  max-width: 400px;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-secondary);
}
.feature-row {
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
}
.feature-row--alt { background: #fff; }
.feature-row-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature-row-inner--reverse .feature-copy { order: 2; }
.feature-row-inner--reverse .feature-visual { order: 1; }
@media (max-width: 900px) {
  .feature-row-inner,
  .feature-row-inner--reverse { grid-template-columns: 1fr; }
  .feature-row-inner--reverse .feature-copy,
  .feature-row-inner--reverse .feature-visual { order: unset; }
}
.feature-copy h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 8px;
}
.feature-copy p {
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-secondary);
}
.feature-visual {
  background: var(--bg-soft);
  border: 0.5px solid rgb(237, 236, 233);
  border-radius: 4px;
  padding: 28px;
}
.flow-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.flow-pipeline i { font-style: normal; color: var(--text-muted); }
.flow-pipeline .core {
  background: var(--pear-dark);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
}
.flow-pipeline span:not(.core) {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.metrics--compact {
  margin-top: 0;
  grid-template-columns: repeat(3, 1fr);
}
.visual-card .tag { margin-bottom: 16px; }
.bar-compare { display: flex; flex-direction: column; gap: 14px; }
.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
}
.bar-row em { font-style: normal; font-family: var(--mono); font-size: 0.75rem; color: var(--text-muted); }
.visual-card--integrations .int-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.int-on { font-size: 0.78rem; color: var(--pink-dark); }
.int-pending {
  font-size: 0.78rem;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-secondary);
}

/* ── Editorial ── */
.editorial {
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.editorial-quote,
.editorial p {
  font-family: var(--serif);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 900px;
}

/* ── Trust cards ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card {
  background: #fff;
  border: 0.5px solid rgb(237, 236, 233);
  border-radius: 4px;
  padding: 24px 28px 28px;
  height: 100%;
}
.trust-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.trust-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--text);
}
@media (min-width: 640px) {
  .trust-card h3 { font-size: 17px; }
}
.trust-card p {
  font-size: 14px;
  color: #404040;
  line-height: 1.5;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .trust-card p { font-size: 15px; }
}
.trust-card ul {
  list-style: none;
  font-size: 14px;
  color: #404040;
}
.trust-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
}
.trust-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

/* ── FAQ ── */
.faq-list {
  margin-top: 32px;
  max-width: 100%;
  border-top: 1px solid var(--line-faq);
}
.faq-item {
  border-bottom: 1px solid var(--line-faq);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.35;
  padding: 20px 0;
  list-style: none;
  color: var(--text);
}
@media (min-width: 640px) {
  .faq-item summary { font-size: 20px; }
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.45;
  padding-bottom: 20px;
  max-width: 640px;
}

/* ── CTA + Footer (Datafruit) ── */
.cta-df {
  padding: 80px 0 100px;
  background: var(--bg);
  text-align: left;
  border-top: 1px solid var(--line);
}
.cta-df-inner {
  max-width: 560px;
}
.cta-df-inner h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.cta-df-inner p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 40px;
  max-width: 520px;
}
@media (min-width: 640px) {
  .cta-df-inner p { font-size: 16px; }
}

.df-footer {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  color: rgb(229, 229, 229);
}
.df-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--frame) 32px;
}
.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;
  }
}
.df-footer-brand {
  font-size: 13px;
  font-weight: 500;
  color: #a3a3a3;
  margin-bottom: 8px;
}
.df-footer-brand em { font-style: italic; }
.df-footer-tagline {
  font-size: 15px;
  line-height: 1.45;
  color: #a3a3a3;
  max-width: 280px;
}
@media (min-width: 640px) {
  .df-footer-tagline { font-size: 16px; }
}
.df-footer-email {
  display: inline-block;
  margin-top: 8px;
  font-size: 15px;
  color: rgb(229, 229, 229);
  transition: color 0.2s;
}
.df-footer-email:hover { color: #fff; }
.df-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 64px;
}
.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: rgb(229, 229, 229);
  transition: color 0.2s;
  white-space: nowrap;
}
.df-footer-links a:hover { color: #fff; }
.df-footer-copy {
  font-size: 13px;
  color: #737373;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.df-footer-copy a {
  color: rgb(229, 229, 229);
  transition: color 0.2s;
}
.df-footer-copy a:hover { color: #fff; }

.footer-df {
  padding: 56px var(--frame) 32px;
  background: var(--bg-dark);
  color: rgb(229, 229, 229);
  max-width: none;
}
.footer-df-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 700px) { .footer-df-grid { grid-template-columns: 1fr; } }
.footer-brand { font-weight: 500; font-size: 13px; color: #a3a3a3; margin-bottom: 8px; }
.footer-brand em { font-style: italic; }
.footer-tagline { font-size: 15px; color: #a3a3a3; }
.footer-heading {
  font-size: 13px;
  font-weight: 500;
  color: #a3a3a3;
  margin-bottom: 12px;
}
.footer-df-grid a {
  display: block;
  font-size: 15px;
  color: rgb(229, 229, 229);
  margin-bottom: 8px;
}
.footer-df-grid a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: #737373; max-width: var(--max); margin: 0 auto; padding: 0 var(--frame); }

/* ── API code blocks ── */
.api-panel-top {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 4px;
}
.api-tab {
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
}
.api-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.api-panel-body { padding: 20px; }
.api-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.pill {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-family: var(--mono);
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
}
.pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.api-code {
  background: #f8f8f7;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.65;
  overflow-x: auto;
  color: #333;
  min-height: 180px;
}
.api-code .kw { color: var(--accent-blue); }
.api-code .str { color: #0d9488; }

/* ── Feature tabs (Opennote) ── */
.section { padding: 88px 0; border-top: 1px solid var(--line); background: var(--bg); }
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
h2.section-title {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.1;
}
.section-lead { color: var(--text-secondary); max-width: 560px; margin-bottom: 40px; font-size: 1.05rem; }

.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}
.feature-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.feature-tab.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.feature-pane { display: none; animation: fadeUp 0.4s var(--ease); }
.feature-pane.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow); }
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.55; }
.card-accent { background: var(--bg-soft); border-color: var(--line-strong); }
.card .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mint);
  margin-bottom: 12px;
}

/* ── Stack flow ── */
.flow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: 32px 0;
}
.flow-chip {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
}
.flow-chip.core { background: var(--text); color: #fff; border-color: var(--text); }
.flow-arrow { color: var(--text-muted); font-size: 0.9rem; }

/* ── Quotes (Opennote) ── */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-card {
  padding: 32px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.quote-card blockquote {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text);
}
.quote-card cite { font-size: 0.85rem; color: var(--text-muted); font-style: normal; }

/* ── Metrics (Exa benchmarks) ── */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}
@media (max-width: 700px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
.metric {
  background: var(--bg);
  padding: 28px 20px;
  text-align: center;
}
.metric-n { font-family: var(--serif); font-size: 2.2rem; color: var(--text); display: block; }
.metric-l { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ── CTA (Jasmine minimal) ── */
.cta-section {
  text-align: center;
  padding: 100px 24px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.cta-section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 12px;
}
.cta-section p { color: var(--text-secondary); margin-bottom: 28px; }

footer:not(.df-footer):not(.footer-df) {
  padding: 48px var(--frame);
  background: var(--bg-dark);
  color: #a3a3a3;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  max-width: none;
  margin: 0;
}
footer:not(.df-footer):not(.footer-df) a {
  color: rgb(229, 229, 229);
}
footer:not(.df-footer):not(.footer-df) a:hover { color: #fff; }

/* ── Dashboard ── */
.dash-page {
  background: var(--bg);
  min-height: 100vh;
}
.dash-auth {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 0.5px solid rgb(237, 236, 233);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.auth-sub { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 28px; }
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--text);
  margin-bottom: 0;
  font-weight: 500;
}
.btn-google:hover { background: var(--bg-muted); }
.btn-google-svg { flex-shrink: 0; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-tertiary);
  font-size: 0.82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.auth-tab {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}
.auth-tab.active { background: var(--pear); color: #262626; border-color: var(--pear); }
.auth-form button[type="submit"] {
  margin-top: 24px;
}
.field-label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); margin: 16px 0 6px; }
.field-input, .field-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
}
.field-input:focus, .field-textarea:focus { outline: none; border-color: var(--text); }
.field-textarea { resize: vertical; min-height: 120px; font-family: var(--mono); font-size: 0.82rem; }
.auth-error { color: #dc2626; font-size: 0.85rem; margin-top: 16px; }
.hidden { display: none !important; }

.dash-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - var(--nav-h));
  max-width: var(--max);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
}
.dash-sidebar {
  padding: 32px 20px 48px;
  border-right: 1px solid var(--line);
}
@media (max-width: 900px) {
  .dash-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px var(--frame) 12px;
  }
  .dash-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .dash-nav-item { flex: 0 0 auto; padding: 8px 14px; font-size: 0.85rem; }
}
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav-item {
  text-align: left;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dash-nav-item:hover { background: rgba(0, 0, 0, 0.04); color: var(--text); }
.dash-nav-item.active {
  background: var(--pink-soft);
  color: var(--text);
  font-weight: 500;
}
.dash-main {
  padding: 40px var(--frame) 96px;
  width: 100%;
  max-width: none;
}
.dash-header { margin-bottom: 32px; }
.dash-header h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.dash-header p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 52ch;
}
.dash-header p code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-muted);
  padding: 2px 6px;
  border-radius: 4px;
}
.dash-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

/* Dashboard profile menu */
.dash-page .df-header-end { display: flex; }
.dash-page .df-menu-btn { display: none; }
.dash-page .df-mobile-nav { display: none !important; }

.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.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.dash-profile-btn:hover,
.dash-profile:focus-within .dash-profile-btn {
  border-color: rgba(201, 120, 158, 0.45);
  box-shadow: 0 0 0 3px rgba(240, 168, 200, 0.25);
}
.dash-profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dash-profile-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--pink);
  color: #262626;
  font-size: 14px;
  font-weight: 600;
}
.dash-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 120;
}
.dash-profile:hover .dash-profile-dropdown,
.dash-profile:focus-within .dash-profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dash-profile-dropdown-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}
.dash-profile-dropdown-email {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  word-break: break-all;
}
.dash-profile-signout {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-muted);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.dash-profile-signout:hover { background: var(--pink-soft); }

.dash-page .btn { border-radius: 12px; }
.dash-page .field-input,
.dash-page .field-textarea { border-radius: 12px; }
.dash-page .auth-card { border-radius: 16px; }
.dash-page .modal-card { border-radius: 16px; }

.dash-nav-link {
  display: block;
  text-decoration: none;
  color: var(--text-secondary);
}
.dash-nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}

.dash-panel {
  background: var(--surface);
  border: 0.5px solid rgb(237, 236, 233);
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
}
.dash-panel + .dash-panel { margin-top: 16px; }
.dash-panel-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text);
}
.dash-empty {
  color: var(--text-muted);
  font-size: 14px;
  padding: 32px 0;
  text-align: center;
}
.dash-footnote {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.dash-offline-banner {
  margin-bottom: 24px;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid rgba(180, 83, 9, 0.25);
  background: #fffbeb;
  color: #92400e;
  font-size: 14px;
  line-height: 1.45;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--surface);
  border: 0.5px solid rgb(237, 236, 233);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card-n {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  display: block;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-card-l {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-card.accent .stat-card-n { color: var(--pink-dark); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.data-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.data-table code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-muted);
  padding: 2px 6px;
  border-radius: 4px;
}

/* API keys */
.keys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.key-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 0.5px solid rgb(237, 236, 233);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.key-card-body { flex: 1; }
.key-card-name {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}
.key-card-prefix {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--pink-dark);
  background: var(--pink-soft);
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.key-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Integrations */
.int-explainer {
  margin-bottom: 20px;
  padding: 22px 26px;
}
.int-explainer-lead {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.int-pipeline {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.int-pipeline li { margin-bottom: 4px; }
.int-pipeline code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-muted);
  padding: 1px 5px;
  border-radius: 6px;
}
.int-explainer-foot {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.int-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.int-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 0.5px solid rgb(237, 236, 233);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.int-card--on { border-color: rgba(201, 120, 158, 0.35); }
.int-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.int-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.int-card-icon--logo .int-logo-img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}
.int-card-meta { min-width: 0; }
.int-card-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}
.int-status {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
}
.int-status--on { color: var(--pink-dark); font-weight: 500; }
.int-connected-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pink-dark);
  background: var(--pink-soft);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Playground */
#view-playground {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-h) - 48px);
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow: hidden;
}
.dash-header-compact { margin-bottom: 16px; flex-shrink: 0; }
.dash-header-compact h1 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 4px; }
.dash-header-compact p { font-size: 14px; }
.pg-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
@media (max-width: 960px) {
  #view-playground { height: auto; max-height: none; overflow: visible; }
  .pg-layout { grid-template-columns: 1fr; overflow: visible; }
}
.pg-form,
.pg-output {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 22px 24px;
}
.pg-form .pg-field { flex-shrink: 0; }
.pg-form .pg-field-grow {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pg-form .pg-field + .pg-field { margin-top: 14px; }
.pg-form .field-label { margin-top: 0; margin-bottom: 6px; }
.pg-context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
@media (max-width: 640px) { .pg-context-grid { grid-template-columns: 1fr; } }
.pg-context-block {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.pg-context-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pg-item-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  flex: 1;
  overflow: hidden;
}
.pg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  line-height: 1.35;
}
.pg-item-remove {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 6px;
}
.pg-item-remove:hover { color: #dc2626; background: rgba(220, 38, 38, 0.08); }
.pg-add-row {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.pg-add-input { flex: 1; min-width: 0; padding: 8px 12px; font-size: 13px; }
.pg-result {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: 12px;
}
.pg-placeholder, .pg-loading, .pg-error {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  padding: 16px 0;
}
.pg-error { color: #dc2626; }
.pg-running {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 200px;
  padding: 24px;
}
.pg-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--pink-soft);
  border-top-color: var(--pink-dark);
  border-radius: 50%;
  animation: pg-spin 0.8s linear infinite;
}
@keyframes pg-spin { to { transform: rotate(360deg); } }
.pg-running-label { font-size: 14px; color: var(--text-secondary); }
.pg-phase-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.pg-phase {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--bg-muted);
  color: var(--text-muted);
  transition: background 0.25s, color 0.25s;
}
.pg-phase.active {
  background: var(--pink);
  color: #262626;
  font-weight: 500;
}
.btn:disabled, .btn[aria-busy="true"] {
  opacity: 0.65;
  cursor: not-allowed;
}

.key-form .field-label { margin-top: 0; }
.key-form-submit { margin-top: 16px; }
.key-form .field-input { margin-bottom: 0; }
.field-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: -2px 0 8px;
  line-height: 1.45;
}

.panel {
  background: var(--surface);
  border: 0.5px solid rgb(237, 236, 233);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 20px;
}
.panel h2 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}
.panel-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; }

.dim { color: var(--text-muted); font-size: 0.85rem; }

.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 24px;
}
.modal-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.modal-card h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 20px;
}
.warn-text {
  font-size: 13px;
  color: #b45309;
  margin-bottom: 12px;
}
.key-full { word-break: break-all; margin-bottom: 16px; }
.install {
  background: #f8f8f7;
  border-radius: var(--radius-sm);
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  overflow-x: auto;
  border: 1px solid var(--line);
}
.result-preview {
  background: #f8f8f7;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.85rem;
  line-height: 1.6;
  max-height: none;
  overflow: auto;
  white-space: pre-wrap;
}
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { text-align: center; padding: 18px 12px; background: var(--bg-soft); border-radius: 6px; border: 0.5px solid rgb(237, 236, 233); }
.stat-n { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.stat-l { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; display: block; }
.stat.accent .stat-n { color: var(--pink-dark); }
.result-meta { font-size: 13px; font-weight: 500; margin: 16px 0 8px; }
.phase-list { list-style: none; font-size: 13px; color: var(--text-secondary); margin: 0 0 16px; padding: 0; }
.phase-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.phase-list li:last-child { border-bottom: none; }
.phase-list code { color: var(--pink-dark); margin-right: 8px; font-family: var(--mono); font-size: 12px; }

/* App / demo page */
.app-page {
  background: var(--bg);
}
.app-main { padding: 48px 0 80px; max-width: 800px; margin: 0 auto; }
.app-header h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.app-header p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.mode-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--mint);
  background: var(--pink-soft);
}
.turn-chart { display: flex; flex-direction: column; gap: 20px; }
.turn-row { display: grid; grid-template-columns: 72px 1fr; gap: 16px; }
.bar-track { height: 8px; background: var(--bg-muted); border-radius: 4px; overflow: hidden; }
.bar { height: 100%; border-radius: 4px; }
.bar-raw { background: #d4d4d4; }
.bar-sc { background: var(--pink); }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
}
