/**
 * AUTO-GENERATED — Do not edit manually.
 * Generated from tokens.json by generate-css.ts.
 *
 * BarefootJS Design Tokens
 */

:root {
  /* ── Typography ──────────────────────────────────────── */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;

  /* ── Spacing scale ───────────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* ── Border radius ───────────────────────────────────── */
  --radius: 0.625rem;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* ── Transitions ─────────────────────────────────────── */
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;

  /* ── Layout ──────────────────────────────────────────── */
  --header-height: 52px;

  /* ── Colors (OKLCH, neutral theme) ─────────────── */
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --gradient-start: oklch(0.65 0.18 145);
  --gradient-end: oklch(0.55 0.15 165);

  /* ── Shadows ─────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --primary: oklch(0.35 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.556 0 0);
  --gradient-start: oklch(0.70 0.18 145);
  --gradient-end: oklch(0.60 0.15 165);
}

/* BarefootJS Documentation — globals.css
 *
 * Site-specific styles for the documentation site.
 * Color tokens are provided by tokens.css (concatenated by build.ts).
 */

/* ── Reset & Base ──────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-width: 0;
  border-style: solid;
  border-color: var(--border);
}

:root {
  --sidebar-width: 14rem;    /* 224px — matches UI site (w-56) */
  --content-max-width: 1000px; /* matches UI site (max-w-[1000px]) */
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
}

button {
  border-width: 0;
  border-style: solid;
  background-color: transparent;
  color: inherit;
  font: inherit;
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
}

/* ── Theme transition ──────────────────────────────────────── */

html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color var(--duration-fast) ease,
              color var(--duration-fast) ease,
              border-color var(--duration-fast) ease !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Sidebar ───────────────────────────────────────────────── */

.sidebar {
  position: fixed;
  top: 3.5rem; /* top-14 — matches UI site */
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  overflow-y: auto;
  padding: 16px 0;
  background: var(--card);
  border-right: 1px solid var(--border);
  z-index: 90;
}

/* ── Markdown Toggle Button ────────────────────────────────── */

.md-toggle-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s;
  margin-right: auto;
}

.md-toggle-btn:hover {
  color: var(--foreground);
}

/* ── Document Title Bar ───────────────────────────────────── */

.doc-title-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 8px;
}

.doc-title {
  font-size: 1.875rem; /* text-3xl — matches UI site */
  font-weight: 700;
  line-height: 2.25rem;
  letter-spacing: -0.05em; /* tracking-tighter — matches UI site */
}

/* ── Main Content ──────────────────────────────────────────── */

.main-content {
  margin-left: var(--sidebar-width);
  padding: 5rem 1.5rem 3rem;
  min-height: 100vh;
}

.doc-content-wrapper {
  display: flex;
  gap: 4rem;  /* gap-16 — matches UI site */
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 1.75rem 1rem 0; /* top: compensate for * {margin:0} reset removing h1 default margin */
}

.doc-main-column {
  flex: 1;
  min-width: 0;
}

/* ── Typography ────────────────────────────────────────────── */

.doc-article h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  line-height: 1.25;
}

.doc-article h2 {
  position: relative;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  line-height: 1.3;
  scroll-margin-top: 5rem;
}

.doc-article h3 {
  position: relative;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  line-height: 1.35;
  scroll-margin-top: 5rem;
}

.doc-article h4 {
  position: relative;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
}

/* ── Heading Anchor Links ─────────────────────────────────── */

.doc-article .heading-anchor {
  position: absolute;
  left: -1.25rem;
  color: var(--muted-foreground);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.doc-article h2:hover > .heading-anchor,
.doc-article h3:hover > .heading-anchor,
.doc-article h4:hover > .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}

.doc-article p {
  margin-bottom: 16px;
}

.doc-article a {
  color: var(--primary);
  text-decoration: none;
}

.doc-article a:hover {
  text-decoration: underline;
}

.doc-article a.heading-anchor:hover {
  text-decoration: none;
}

.doc-article strong {
  font-weight: 600;
}

.doc-article ul,
.doc-article ol {
  margin-bottom: 16px;
  padding-left: 2em;
}

.doc-article li {
  margin-bottom: 4px;
}

.doc-article li > ul,
.doc-article li > ol {
  margin-top: 4px;
  margin-bottom: 4px;
}

.doc-article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.doc-article blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--primary);
  background: var(--muted);
  border-radius: 0 6px 6px 0;
  color: var(--muted-foreground);
}

.doc-article blockquote p:last-child {
  margin-bottom: 0;
}

.doc-article img {
  max-width: 100%;
  border-radius: 6px;
}

.doc-article table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 16px 0;
}

.doc-article th,
.doc-article td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.doc-article th {
  background: var(--muted);
  font-weight: 600;
}

/* ── Code ──────────────────────────────────────────────────── */

.doc-article code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--muted);
  padding: 2px 6px;
  border-radius: 4px;
}

.doc-article pre {
  margin: 16px 0;
  border-radius: 8px;
  overflow-x: auto;
}

.doc-article pre code {
  background: none;
  padding: 0;
  font-size: 0.85em;
  line-height: 1.6;
}

/* Shiki dual theme support */
.doc-article .shiki {
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid var(--border);
}

:root span[style*="--shiki-light"] {
  color: var(--shiki-light);
}

.dark span[style*="--shiki-dark"] {
  color: var(--shiki-dark);
}

html.dark .shiki,
html.dark .shiki span {
  color: var(--shiki-dark) !important;
  background-color: var(--shiki-dark-bg) !important;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 640px) {
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 5rem 0.3rem 3rem; /* matches UI site mobile spacing */
  }
}

/* BarefootJS Landing Page — landing.css
 *
 * LP-specific styles. Base tokens and resets come from tokens.css + globals.css.
 */

/* ── Gradient text ────────────────────────────────────────── */

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--foreground);
  color: var(--background);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: opacity 0.15s ease;
  text-decoration: none;
}

.btn-primary:hover { opacity: 0.8; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--accent);
  border-color: var(--muted-foreground);
}

/* ── Tabs ─────────────────────────────────────────────────── */

.tab-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: var(--foreground);
}

.tab-btn.active {
  color: var(--foreground);
  border-bottom-color: var(--primary);
}

/* ── Code block ───────────────────────────────────────────── */

.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
}

.code-content {
  padding: 1rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  font-family: var(--font-mono);
  overflow-x: auto;
  white-space: pre;
  color: var(--foreground);
}

/* ── Framework display ────────────────────────────────────── */

.framework-display {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.framework-logo {
  width: 32px;
  height: 32px;
}

.backend-text {
  display: inline-block;
  min-width: 180px;
}

/* ── Animation ────────────────────────────────────────────── */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.5s ease-out forwards; }
.fade-in-1 { animation: fadeIn 0.5s ease-out 0.1s forwards; opacity: 0; }
.fade-in-2 { animation: fadeIn 0.5s ease-out 0.2s forwards; opacity: 0; }
.fade-in-3 { animation: fadeIn 0.5s ease-out 0.3s forwards; opacity: 0; }

/* ── Code Demo - Interactive Before/After ─────────────────── */

.code-demo {
  --demo-bg: #0d1117;
  --demo-header: #161b22;
  --demo-border: #30363d;
  --demo-text: #c9d1d9;
  --demo-text-muted: #8b949e;

  display: flex;
  font-family: var(--font-mono);
  font-size: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--demo-bg);
  border: 1px solid var(--demo-border);
  max-width: 100%;
}

.code-demo .source-panel {
  flex: 1.6;
  min-width: 120px;
}

.code-demo .output-panel {
  flex: 0.4;
  min-width: 120px;
  transition: filter 0.2s;
}

.code-demo .output-panel.blurred .code-content {
  filter: blur(2px);
  opacity: 0.6;
}

.code-demo .output-panel.blurred:hover .code-content {
  filter: none;
  opacity: 1;
}

.code-demo .source-panel {
  transition: filter 0.2s;
}

.code-demo .source-panel.blurred .code-content {
  filter: blur(2px);
  opacity: 0.6;
}

.code-demo .source-panel.blurred:hover .code-content {
  filter: none;
  opacity: 1;
}

@media (max-width: 768px) {
  .code-demo {
    flex-direction: column;
  }
  .code-demo .source-panel,
  .code-demo .output-panel {
    flex: none;
    width: 100%;
  }
  .resizer {
    width: 100%;
    height: 1px;
    cursor: row-resize;
  }
  .resizer:hover,
  .resizer.dragging {
    width: 100%;
    height: 4px;
  }
}

@media (max-width: 660px) {
  .code-demo {
    font-size: 0.8125rem;
  }
  .code-panel .code-content pre {
    font-size: 0.8125rem;
  }
}

.code-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.code-panel .code-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  height: 36px;
  padding: 0 0.75rem;
  background: var(--demo-header);
  border-bottom: 1px solid var(--demo-border);
}

.code-tabs {
  display: flex;
  gap: 0.25rem;
}

.code-tab {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--demo-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.code-tab:hover {
  color: var(--demo-text);
}

.code-tab.active {
  color: var(--demo-text);
}

.backend-select {
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--demo-text);
  background: var(--demo-bg);
  border: 1px solid var(--demo-border);
  border-radius: 0.25rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.375rem center;
  padding-right: 1.5rem;
}

.backend-select:hover {
  border-color: var(--demo-text-muted);
}

.backend-select:focus {
  border-color: var(--demo-text);
}

.backend-select option {
  background: var(--demo-header);
  color: var(--demo-text);
}

.code-panel .code-content {
  overflow: auto;
  height: 390px;
  max-height: 390px;
  display: flex;
  flex-direction: column;
}

/* Shiki generated code styles */
.code-panel .code-content pre {
  margin: 0;
  padding: 0.75rem;
  background: var(--demo-bg) !important;
  font-size: 1rem;
  line-height: 1.6;
  box-sizing: border-box;
}

.code-panel .code-content code {
  font-family: var(--font-mono);
}

/* Shiki dual theme support */
.shiki span {
  color: var(--shiki-light);
}

html.dark .shiki span {
  color: var(--shiki-dark);
}

/* Code demo always uses dark theme */
.code-demo .shiki span {
  color: var(--shiki-dark);
}

/* ── Resizer Handle ───────────────────────────────────────── */

.resizer {
  width: 1px;
  background: var(--demo-border);
  cursor: col-resize;
  position: relative;
  flex-shrink: 0;
  transition: width 0.1s, background 0.1s;
}

.resizer:hover,
.resizer.dragging {
  width: 4px;
  background: var(--demo-text-muted);
}

.output-code {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.output-code pre {
  margin: 0;
}

/* ── Features Section ─────────────────────────────────────── */

.feature-section {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Benchmark Chart ──────────────────────────────────────── */

.benchmark-chart {
  background: var(--code-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.benchmark-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.benchmark-label {
  font-size: 0.8125rem;
  min-width: 100px;
  text-align: right;
}

.benchmark-bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.benchmark-bar {
  height: 1.25rem;
  border-radius: 0.25rem;
  transition: width 0.3s ease;
}

.benchmark-bar-brand {
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.benchmark-bar-gray {
  background: var(--muted-foreground);
  opacity: 0.4;
}

.benchmark-value {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  min-width: 2.5rem;
}

/* ── UI Component Previews ────────────────────────────────── */

.ui-preview-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ui-preview-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ui-preview-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ui-preview-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

/* Preview Buttons */
.ui-btn-primary {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-foreground);
  background: var(--foreground);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.ui-btn-secondary {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.ui-btn-ghost {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.ui-btn-ghost:hover {
  background: var(--accent);
}

/* Preview Accordion */
.ui-accordion {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ui-accordion-item {
  border-bottom: 1px solid var(--border);
}

.ui-accordion-item:last-child {
  border-bottom: none;
}

.ui-accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  background: var(--card);
  cursor: pointer;
}

.ui-accordion-icon {
  font-size: 1rem;
  color: var(--muted-foreground);
}

.ui-accordion-content {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  background: var(--card);
  border-top: 1px solid var(--border);
}

/* Preview Tabs */
.ui-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.ui-tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
}

.ui-tab-active {
  color: var(--foreground);
  border-bottom-color: var(--gradient-start);
}

/* Preview Input */
.ui-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
}

.ui-input:focus {
  border-color: var(--ring);
}

.ui-input::placeholder {
  color: var(--muted-foreground);
}

/* Preview Checkbox */
.ui-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
  cursor: pointer;
}

.ui-checkbox {
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  color: var(--primary-foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
}

.ui-checkbox-checked {
  background: var(--foreground);
  border-color: var(--foreground);
}

/* Preview Switch */
.ui-switch {
  width: 2.5rem;
  height: 1.25rem;
  background: var(--muted);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ui-switch-on {
  background: var(--gradient-start);
}

.ui-switch-thumb {
  width: 1rem;
  height: 1rem;
  background: white;
  border-radius: 9999px;
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ui-switch-on .ui-switch-thumb {
  transform: translateX(1.25rem);
}

/* Preview Badge */
.ui-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
  background: var(--muted);
  border-radius: 9999px;
}

.ui-badge-success {
  color: oklch(0.3 0.1 145);
  background: oklch(0.9 0.1 145);
}

.dark .ui-badge-success {
  color: oklch(0.9 0.15 145);
  background: oklch(0.25 0.08 145);
}

.ui-badge-warning {
  color: oklch(0.35 0.1 70);
  background: oklch(0.92 0.1 85);
}

.dark .ui-badge-warning {
  color: oklch(0.9 0.12 70);
  background: oklch(0.3 0.08 70);
}

/* ── Reactivity Diagram ───────────────────────────────────── */

.reactivity-diagram {
  padding: 1.5rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.diagram-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.diagram-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.diagram-box {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.diagram-signal {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
}

.diagram-effect {
  background: var(--card);
  border: 2px solid var(--border);
}

.diagram-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.diagram-code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.diagram-arrow {
  font-size: 1.5rem;
  color: var(--muted-foreground);
}

.diagram-description {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.diagram-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.diagram-step-num {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
  background: var(--muted);
  border-radius: 9999px;
}

/* ── Example Cards ────────────────────────────────────────── */

.example-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.example-card-featured {
  border-color: var(--gradient-start);
  box-shadow: 0 0 0 1px var(--gradient-start);
}

.example-card-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.example-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.example-card-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.example-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.example-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.example-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
}

.w-full {
  width: 100%;
}

/* Profile Card */
.example-avatar {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-foreground);
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 9999px;
}

.example-profile-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.example-profile-role {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.example-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
  margin: 0.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.example-stat {
  text-align: center;
}

.example-stat-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.example-stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Settings Card */
.example-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.example-setting:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.example-setting-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.example-setting-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

/* Pricing Card */
.example-price {
  margin-top: 0.5rem;
}

.example-price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
}

.example-price-period {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.example-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Alert Cards */
.example-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
}

.example-alert-success {
  background: oklch(0.95 0.05 145);
  border: 1px solid oklch(0.8 0.1 145);
}

.dark .example-alert-success {
  background: oklch(0.2 0.05 145);
  border-color: oklch(0.35 0.1 145);
}

.example-alert-warning {
  background: oklch(0.95 0.05 85);
  border: 1px solid oklch(0.85 0.1 70);
}

.dark .example-alert-warning {
  background: oklch(0.2 0.05 70);
  border-color: oklch(0.35 0.1 70);
}

.example-alert-info {
  background: oklch(0.95 0.03 230);
  border: 1px solid oklch(0.85 0.05 230);
}

.dark .example-alert-info {
  background: oklch(0.18 0.03 230);
  border-color: oklch(0.3 0.05 230);
}

.example-alert-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.example-alert-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.example-alert-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}
