/* ═══════════════════════════════════════════════════
   KitNode Theme v4 — Design System Component Layer
   Canonical source: theme-v4.css
   Brand: charcoal + amber (#2d2d2d / #f59e0b)
   ═══════════════════════════════════════════════════ */

/* ── Design Tokens ───────────────────────────────── */
:root {
  /* Brand */
  --brand-50: #fffbeb;
  --brand-100: #fef3c7;
  --brand-200: #fde68a;
  --brand-300: #fcd34d;
  --brand-400: #fbbf24;
  --brand-500: #f59e0b;
  --brand-600: #d97706;
  --brand-700: #b45309;
  --brand-800: #92400e;

  /* Neutrals */
  --bg: #fafaf7;
  --bg-alt: #ffffff;
  --bg-inverse: #2d2d2d;
  --bg-inverse-soft: #3a3a3a;
  --text: #2d2d2d;
  --text-soft: #525252;
  --text-muted: #737373;
  --text-inverse: #fafaf7;
  --text-inverse-soft: #d4d4d4;
  --line: #e8e5df;
  --line-strong: #d4d0c6;
  --white: #ffffff;

  /* Shadows from tailwind config */
  --shadow-level-1: 0 1px 3px rgba(45,45,45,0.06), 0 1px 2px rgba(45,45,45,0.04);
  --shadow-level-2: 0 4px 6px rgba(45,45,45,0.05), 0 2px 4px rgba(45,45,45,0.04);
  --shadow-level-3: 0 10px 15px rgba(45,45,45,0.06), 0 4px 6px rgba(45,45,45,0.04);
  --shadow-level-4: 0 20px 25px rgba(45,45,45,0.08), 0 8px 10px rgba(45,45,45,0.04);

  /* Brand shadows */
  --shadow-brand-sm: 0 0 20px rgba(245,158,11,0.15);
  --shadow-brand-md: 0 0 30px rgba(245,158,11,0.2);
  --shadow-brand-lg: 0 0 50px rgba(245,158,11,0.25);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --text-xs: clamp(0.75rem, 1vw, 0.875rem);
  --text-sm: clamp(0.875rem, 1.1vw, 0.9375rem);
  --text-base: clamp(1rem, 1.3vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 2vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 2.5vw, 2rem);
  --text-3xl: clamp(2rem, 3.5vw, 2.75rem);
  --text-4xl: clamp(2.5rem, 5vw, 4rem);

  /* Spacing */
  --space-section: clamp(4rem, 8vw, 7rem);

  /* Misc */
  --radius: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  --duration: 300ms;
  --duration-slow: 600ms;
  --ease-standard: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
}

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-width: 320px;
}

/* Restore list styling (Tailwind reset kills it) */
ul { list-style-type: disc; padding-left: 1.5rem; }
ol { list-style-type: decimal; padding-left: 1.5rem; }
li { margin-bottom: 0.375rem; }

/* ── Typography ───────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brand-500);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: var(--text-lg);
  color: var(--text-soft);
  max-width: 48rem;
  line-height: 1.6;
}

.section-head {
  max-width: 60rem;
  margin: 0 auto var(--space-section);
  text-align: center;
}

/* ── Grid & Container ─────────────────────────────── */
.container {
  width: 100%;
  max-width: 96rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.container-narrow {
  max-width: 56rem;
}

/* ── Section spacing ──────────────────────────────── */
.section { padding-block: var(--space-section); }
.section-tight { padding-block: calc(var(--space-section) * 0.6); }

/* ── Canvas / Pane alternation ────────────────────── */
.canvas { background: var(--bg); }
.pane { background: var(--bg-alt); }

.band-inverse {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}

.band-inverse .lede { color: var(--text-inverse-soft); }
.band-inverse .eyebrow { color: var(--brand-400); }

/* ── Button System ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.2;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  transition: transform var(--duration) var(--ease-standard);
  user-select: none;
}

.btn-primary {
  background: var(--bg-inverse);
  color: var(--white);
  border-color: var(--bg-inverse);
  border-radius: var(--radius);
  box-shadow: var(--shadow-level-2);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--shadow-level-4);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-standard);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--bg-inverse-soft);
  border-color: var(--bg-inverse-soft);
}

.btn-primary:hover::after { opacity: 1; }

.btn-primary:active {
  transform: scale(0.97);
  transition: transform 50ms var(--ease-out);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
  border-radius: var(--radius);
}

.btn-secondary:hover {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-level-2);
}

.btn-secondary:active {
  transform: scale(0.97);
  transition: transform 50ms var(--ease-out);
}

.btn-accent {
  background: var(--brand-500);
  color: var(--bg-inverse);
  border-color: var(--brand-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-level-2);
}

.btn-accent:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand-sm);
}

.btn-accent:active {
  transform: scale(0.97);
  transition: transform 50ms var(--ease-out);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--text-base);
  min-height: 48px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  filter: saturate(0.3);
}

/* ── Tag / Badge ──────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
}

.tag-accent {
  background: var(--brand-100);
  color: var(--brand-800);
}

.tag-urgent {
  background: #fef2f2;
  color: #991b1b;
}

.tag-soon {
  background: var(--brand-50);
  color: var(--brand-700);
}

/* ── Card System ──────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 2vw, 2rem);
  box-shadow: var(--shadow-level-1);
  transition: transform var(--duration) var(--ease-standard), box-shadow var(--duration) var(--ease-standard);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-level-3);
}

.card-highlight {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-brand-sm);
}

.card-inverse,
.compare-card.card-inverse {
  background: var(--bg-inverse-soft);
  border-color: rgba(255,255,255,0.08);
  color: var(--text-inverse);
  transition: border-color var(--duration) var(--ease-standard), box-shadow var(--duration) var(--ease-standard);
}

.card-inverse:hover,
.compare-card.card-inverse:hover {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-brand-sm);
}

/* ── Compare Cards (v4 feature-card pattern) ───────── */
.compare-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.compare-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-level-1);
  transition: border-color var(--duration) var(--ease-standard), box-shadow var(--duration) var(--ease-standard);
}

.compare-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-brand-sm);
}

.compare-card .compare-icon {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}
.compare-card .compare-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--text-muted);
}
.compare-card.card-highlight .compare-icon svg {
  color: var(--brand-500);
}
.compare-card.card-inverse .compare-icon svg {
  color: var(--brand-400);
}
.compare-card h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.compare-card p { font-size: var(--text-sm); color: var(--text-soft); line-height: 1.6; margin-bottom: 0.5rem; }
.compare-card .quote { font-size: var(--text-xs); color: var(--text-muted); font-family: var(--font-mono); font-style: italic; }

/* ── Form System ──────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 44px;
  font-size: var(--text-base);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--duration) var(--ease-standard), box-shadow var(--duration) var(--ease-standard);
}

.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.form-input.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.form-message {
  font-size: var(--text-sm);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  line-height: 1.5;
}

.form-message-success {
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  color: var(--brand-800);
}

.form-message-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* ── Alert Cards ──────────────────────────────────── */
.alert-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid;
  gap: 1rem;
}

.alert-card .title { font-size: var(--text-sm); font-weight: 600; }
.alert-card .meta { font-size: var(--text-xs); margin-top: 0.125rem; }

.alert-card-urgent { background: #fef2f2; border-color: #fecaca; }
.alert-card-urgent .title { color: #991b1b; }
.alert-card-urgent .meta { color: #dc2626; }

.alert-card-soon { background: var(--brand-50); border-color: var(--brand-200); }
.alert-card-soon .title { color: var(--brand-800); }
.alert-card-soon .meta { color: var(--brand-600); }

.alert-card-neutral { background: var(--white); border-color: var(--line); }
.alert-card-neutral .title { color: var(--text); }
.alert-card-neutral .meta { color: var(--text-muted); }

/* ── Asset Chips (for feature display) ─────────────── */
.asset-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.asset-chip .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand-500);
  flex-shrink: 0;
}

.asset-chip .name { font-weight: 500; color: var(--text); }
.asset-chip .detail { color: var(--text-muted); margin-left: auto; font-size: var(--text-xs); }

/* ── Divider ──────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
  border: 0;
  margin: 2rem 0;
}

/* ── Price Card ───────────────────────────────────── */
.price-card {
  background: var(--bg-inverse);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  color: var(--text-inverse);
  box-shadow: var(--shadow-level-2);
  transition: transform var(--duration) var(--ease-standard);
}

.price-card:hover { transform: translateY(-3px); }

.price-card-highlight {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-brand-md);
  position: relative;
}

.price-card-highlight::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  opacity: 0.3;
  z-index: -1;
  filter: blur(12px);
}

.price-card .tier { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--brand-400); margin-bottom: 0.5rem; }
.price-card .amount { font-size: var(--text-4xl); font-weight: 800; }
.price-card .period { font-size: var(--text-sm); color: var(--text-inverse-soft); }
.price-card ul { list-style: none; padding: 0; }
.price-card li { font-size: var(--text-sm); color: var(--text-inverse-soft); padding: 0.375rem 0; display: flex; align-items: flex-start; gap: 0.5rem; }
.price-card li::before { content: '✓'; color: var(--brand-400); font-weight: 700; flex-shrink: 0; }

.price-badge {
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  background: var(--brand-500);
  color: var(--bg-inverse);
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Future tiers — visually muted */
.price-card-future {
  opacity: 0.55;
  border-style: dashed;
}

.price-card-future:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

.price-badge-future {
  background: rgba(255,255,255,0.1);
  color: var(--text-inverse-soft);
}

.amount-future {
  color: var(--text-inverse-soft);
}

/* ── Trust bar ────────────────────────────────────── */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-xs);
  color: var(--text-inverse-soft);
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
}

.trust-pill::before {
  content: '✓';
  color: var(--brand-400);
  font-weight: 700;
}

/* ── Scroll Reveal System ─────────────────────────── */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1),
              transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

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

.js .reveal-up { transform: translateY(24px); }
.js .reveal-up.is-visible { transform: translateY(0); }

.js .reveal-left { transform: translateX(-24px); }
.js .reveal-left.is-visible { transform: translateX(0); }

.js .reveal-right { transform: translateX(24px); }
.js .reveal-right.is-visible { transform: translateX(0); }

/* Staggered children */
.js .stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.js .stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.js .stagger > .reveal:nth-child(4) { transition-delay: 300ms; }
.js .stagger > .reveal:nth-child(5) { transition-delay: 400ms; }
.js .stagger > .reveal:nth-child(6) { transition-delay: 500ms; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Breakout Grid ────────────────────────────────── */
.breakout-grid {
  --gap: clamp(1rem, 4vw, 2.5rem);
  --content-width: min(100% - (var(--gap) * 2), 75ch);
  --popout-width: minmax(0, 0px);
  --feature-width: minmax(0, 1fr);
  --full-width: minmax(1rem, 2rem);

  display: grid;
  grid-template-columns:
    [full-start]
    var(--full-width)
    [feature-start]
    var(--feature-width)
    [popout-start]
    var(--popout-width)
    [content-start]
    var(--content-width)
    [content-end]
    var(--popout-width)
    [popout-end]
    var(--feature-width)
    [feature-end]
    var(--full-width)
    [full-end];
}

.breakout-grid > * {
  grid-column: content;
}

.breakout-content {
  grid-column: content;
}

.breakout-feature {
  grid-column: feature;
  max-width: 1500px;
  justify-self: center;
  width: 100%;
}

.breakout-full {
  grid-column: full;
}

/* ── Node diagram (inline SVG, no icons) ──────────── */
.node-diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
}

.node-diagram svg {
  width: 100%;
  height: 100%;
}

.node-legend {
  display: flex;
  gap: 1.5rem;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.node-legend-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.node-legend-item .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.node-legend-item .dot-core { background: var(--text); }
.node-legend-item .dot-depend { background: var(--brand-500); }

/* ── Feature Split (2-col) ────────────────────────── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

@media (max-width: 768px) {
  .feature-split { grid-template-columns: 1fr; }
}

/* ── Responsive utilities ─────────────────────────── */
.hide-mobile { display: block; }
@media (max-width: 768px) {
  .hide-mobile { display: none; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none; }
}

/* ── Accessibility ─────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

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

/* ── Table styles (for import step display) ───────── */
.import-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.import-steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  margin-bottom: 0.5rem;
}

.import-steps li::before {
  content: counter(step) ".";
  color: var(--brand-500);
  font-weight: 700;
  font-size: var(--text-sm);
}

/* ── Gradient text ────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Testimonial quote ────────────────────────────── */
.pull-quote {
  border-left: 3px solid var(--brand-300);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--text-soft);
}

.pull-quote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text);
  margin-top: 0.75rem;
}

/* ── Author Card (Who Built This) ─────────────────── */
.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-level-1);
}

.author-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.author-mark svg {
  width: 100%;
  height: 100%;
}

.author-card-body p {
  font-size: var(--text-sm);
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.author-card-body p:last-child { margin-bottom: 0; }

.author-lede {
  font-size: var(--text-base) !important;
  color: var(--text) !important;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .author-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* ── Trust Cards (Who Built This) ─────────────────── */
.trust-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-level-1);
  transition: border-color var(--duration) var(--ease-standard), box-shadow var(--duration) var(--ease-standard);
}

.trust-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-brand-sm);
}

.trust-card-icon {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}
.trust-card-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--brand-500);
}

.trust-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.trust-card p {
  font-size: var(--text-sm);
  color: var(--text-soft);
  line-height: 1.6;
}

/* ── Info box ─────────────────────────────────────── */
.info-box {
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: var(--text-sm);
  color: var(--brand-800);
  line-height: 1.6;
}

/* ── Utility aliases ─────────────────────────────── */
.text-muted { color: var(--text-muted); }

/* ── Visual card (feature panel right side) ───────── */
.visual-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 1.5rem);
}

/* ── Block Node (feature visual list items) ──────── */
.block-node {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.block-node-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-500);
  margin-top: 0.125rem;
}
.block-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}
.block-desc {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 0.125rem;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}

.site-footer .brand { font-size: var(--text-sm); font-weight: 700; }
.site-footer .brand span { color: var(--brand-500); }
.site-footer .copy { font-size: var(--text-xs); color: var(--text-muted); }

.feature-split.hidden { display: none; }
.feature-split-reverse { direction: rtl; }
.feature-split-reverse > * { direction: ltr; }

/* ── Tab System ───────────────────────────────────── */
.tab-bar {
  display: flex;
  border-bottom: 2px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to right, black calc(100% - 2rem), transparent);
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 2rem), transparent);
  padding-right: 1.5rem;
}

.tab-bar::-webkit-scrollbar { display: none; }

.tab-item {
  flex-shrink: 0;
  padding: 0.625rem 0.875rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--duration) var(--ease-standard), border-color var(--duration) var(--ease-standard);
}

.tab-item:hover { color: var(--text); }
.tab-item.active { color: var(--text); border-bottom-color: var(--brand-500); font-weight: 600; }

.tab-panel {
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

/* ── Mobile nav ───────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-nav .logo {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-nav .logo span { color: var(--brand-500); }

/* ── Hero Split (text left, visual right) ─────────── */
.hero-split {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  min-height: clamp(auto, 70vh, auto);
}

.hero-text {
  max-width: 42rem;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  max-height: 520px;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    max-width: 360px;
    order: 2;
  }

  .hero-visual svg {
    max-height: 380px;
  }

  .hero-split {
    padding-bottom: 0;
  }
}
