/* energieschmie.de — Light/serious B2B SaaS
   Black / Yellow / White palette, adapted from qfloow design system. */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Geist:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Base palette */
  --bg: #FAFAF7;           /* warm paper white */
  --bg-card: #FFFFFF;
  --bg-alt: #F2F1EC;       /* section alternation */
  --bg-dark: #0A0A0A;      /* black contrast sections */
  --ink: #0A0A0A;          /* near-black text */
  --ink-2: #1F1F1F;
  --ink-3: #4A4A4A;        /* secondary */
  --ink-4: #737373;        /* meta */
  --ink-5: #A3A3A3;
  --line: rgba(10,10,10,0.08);
  --line-2: rgba(10,10,10,0.14);
  --line-dark: rgba(255,255,255,0.10);

  /* Yellow accent (warm, non-saturated so it reads serious) */
  --y-50:  #FFFBEA;
  --y-100: #FEF3C7;
  --y-200: #FDE68A;
  --y-300: #FCD34D;
  --y-400: #FBC22A;         /* primary */
  --y-500: #F5B000;         /* hover / glow */
  --y-600: #CA8A04;
  --y-700: #854D0E;

  /* Semantic */
  --ok:   #16A34A;
  --warn: #EA580C;
  --err:  #DC2626;
  --info: #2563EB;

  --font-display: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-stat:    'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-3xl: 40px;
  --r-pill: 9999px;

  --shadow-xs: 0 1px 2px rgba(10,10,10,0.04);
  --shadow-sm: 0 1px 3px rgba(10,10,10,0.06), 0 1px 2px rgba(10,10,10,0.04);
  --shadow-md: 0 4px 12px rgba(10,10,10,0.06), 0 2px 4px rgba(10,10,10,0.04);
  --shadow-lg: 0 18px 40px -12px rgba(10,10,10,0.14), 0 4px 12px rgba(10,10,10,0.06);
  --shadow-xl: 0 30px 60px -20px rgba(10,10,10,0.18), 0 10px 20px rgba(10,10,10,0.06);
  --shadow-y:  0 14px 40px -12px rgba(245,176,0,0.40);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- RESET-ISH ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---------- TYPE ---------- */
.t-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.t-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--y-400);
  box-shadow: 0 0 0 3px rgba(251,194,42,0.25);
}
.t-eyebrow.dark { color: var(--y-300); }
.t-eyebrow.dark::before { box-shadow: 0 0 0 3px rgba(251,194,42,0.15); }

.t-hero {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 86px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.t-h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.t-h4 {
  font-family: var(--font-display);
  font-size: 18px; line-height: 1.3;
  font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink);
}
.t-lead {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-3);
  font-weight: 400;
}
.t-body { color: var(--ink-3); font-size: 15px; line-height: 1.6; }
.t-body-sm { color: var(--ink-3); font-size: 14px; line-height: 1.55; }
.t-meta { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }
.t-stat {
  font-family: var(--font-stat);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

strong { color: var(--ink); font-weight: 600; }

/* ---------- LAYOUT ---------- */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: 960px; }
.section { padding: 96px 0; position: relative; }
.section-dark { background: var(--bg-dark); color: #FFFFFF; }
.section-dark .t-hero, .section-dark .t-h2, .section-dark .t-h3, .section-dark .t-h4 { color: #FFFFFF; }
.section-dark .t-lead, .section-dark .t-body, .section-dark .t-body-sm { color: rgba(255,255,255,0.70); }
.section-dark strong { color: #FFFFFF; }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
}

/* ================================================================
   RESPONSIVE / MOBILE OVERRIDES
   Targets inline `gridTemplateColumns` values via attribute selectors,
   plus class-based overrides for Nav, buttons, typography.
   Breakpoints: 1024 (tablet-landscape) · 900 (tablet) · 768 (large phone)
               · 600 (phone) · 480 (small phone)
   ================================================================ */

/* Always prevent horizontal scroll on mobile devices */
html, body { max-width: 100%; }
body { overflow-x: hidden; }

/* ----- 1024px: tablet landscape — collapse asymmetric 2-col hero/features/app layouts ----- */
@media (max-width: 1024px) {
  [style*="grid-template-columns: 1.05fr 1fr"],
  [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns: 1fr 1.2fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  /* Features sticky intro goes non-sticky on tablet */
  .section [style*="position: sticky"][style*="top: 100px"] { position: static !important; }
  /* 4-col grids → 2-col */
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ----- 900px: large tablets / small laptops — collapse remaining 2-col layouts ----- */
@media (max-width: 900px) {
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 1.1fr 1fr"],
  [style*="grid-template-columns: 1.3fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* Testimonials & Problem cards: 3-col → 1-col */
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* Trust marquee faster on small screens */
  .marquee { animation-duration: 28s; }
}

/* ----- 768px: tablet portrait / large phones ----- */
@media (max-width: 768px) {
  /* Nav: hide middle links, keep brand + CTA; tighten padding */
  .nav-links { display: none !important; }
  nav .wrap { padding: 12px 20px !important; }

  /* Reduce section padding */
  .section { padding: 56px 0 !important; }

  /* Hero adjustments */
  .t-hero { font-size: clamp(32px, 8vw, 54px) !important; line-height: 1.05 !important; }
  .t-h2 { font-size: clamp(26px, 6vw, 44px) !important; }
  .t-lead { font-size: 16px !important; }

  /* Generic 2-col → 1-col */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Hero right card shrink */
  .app-frame { border-radius: 20px !important; }

  /* Wrap horizontal padding tighter */
  .wrap { padding: 0 20px !important; }

  /* Comparison table compact */
  [style*="grid-template-columns: 1.2fr 1fr 1fr"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
    font-size: 13px !important;
  }

  /* Touch targets: buttons minimum 44px */
  .btn { min-height: 44px; padding: 14px 20px; }
  .btn-sm { min-height: 38px; padding: 9px 14px; }
  .btn-lg { padding: 16px 22px; font-size: 15px; }

  /* FAQ: wider tap area */
  .faq-btn { padding: 20px 4px !important; }

  /* Stats bar 4-col → 2-col */
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
  .t-stat { font-size: 36px !important; }

  /* UseCases pill buttons wrap + scroll */
  .section [style*="justify-content: center"][style*="flex-wrap: wrap"] {
    gap: 8px !important;
  }
}

/* ----- 600px: phones ----- */
@media (max-width: 600px) {
  /* 4-col and 2-col grids collapse to 1-col */
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Comparison: keep 3-col but shrink heavily */
  [style*="grid-template-columns: 1.2fr 1fr 1fr"] {
    grid-template-columns: 1.1fr 0.8fr 0.8fr !important;
    font-size: 12px !important;
    padding: 12px 12px !important;
  }

  /* Card padding reduce */
  .card { padding: 20px !important; }
  .card-lg { padding: 24px !important; border-radius: 20px !important; }

  /* AppPreview header compacts */
  .app-header { padding: 10px 12px !important; flex-wrap: wrap; gap: 8px; }

  /* Tweaks panel full-width */
  .tweaks-panel { right: 10px !important; left: 10px !important; bottom: 10px !important; width: auto !important; }
}

/* ----- 480px: small phones (iPhone SE etc.) ----- */
@media (max-width: 480px) {
  .wrap { padding: 0 16px !important; }
  .section { padding: 44px 0 !important; }

  /* Hero ultra-compact */
  .t-hero { font-size: clamp(28px, 9vw, 42px) !important; }
  .t-h2 { font-size: clamp(24px, 7vw, 36px) !important; }
  .t-h3 { font-size: 20px !important; }

  /* Stats: 1-col */
  section[style*="padding: 48px 0"] [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Buttons full-width by default on very small screens */
  .btn-lg { width: 100%; justify-content: center; }

  /* Comparison: force horizontal scroll wrapper instead of cramming */
  [style*="grid-template-columns: 1.2fr 1fr 1fr"] {
    font-size: 11.5px !important;
    padding: 10px 10px !important;
  }

  /* Badge-live smaller */
  .badge-live { font-size: 11px; padding: 3px 8px; }
}

/* ----- Accessibility: prefers-reduced-motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee { animation: none !important; }
  .pulse-dot { animation: none !important; }
}

/* ----- Safari / iOS fixes ----- */
@supports (-webkit-touch-callout: none) {
  /* Prevent iOS font-boost */
  body { -webkit-text-size-adjust: 100%; }
  /* Fix sticky nav on iOS */
  nav[style*="position: sticky"] { position: -webkit-sticky !important; position: sticky !important; }
}

/* ----- Ensure images/SVG never overflow viewport ----- */
svg { max-width: 100%; height: auto; }
.app-frame, .card { max-width: 100%; }

/* ----- AppPreview specific mobile overrides ----- */
@media (max-width: 1024px) {
  .app-frame [style*="min-height: 520px"],
  .app-frame [style*="minHeight: 520px"] { min-height: 0 !important; }
}
@media (max-width: 768px) {
  .app-frame { border-radius: 16px !important; }
  /* App filter bar wraps nicely */
  .app-frame [style*="flex-wrap: wrap"] { gap: 6px !important; }
  /* Data-grid inside detail drawer: keep 2-col on phone, collapse on very-small */
}
@media (max-width: 480px) {
  .app-frame [style*="grid-template-columns: 1fr 1fr"]:not(.app-header) {
    grid-template-columns: 1fr !important;
  }
  /* KPI chips */
  .app-frame [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
}

/* ----- Trust marquee: smooth mask on small screens ----- */
@media (max-width: 600px) {
  .marquee-mask {
    mask: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  }
}

/* ================================================================
   MOBILE NAV: hamburger + full-screen drawer (<768px)
   ================================================================ */
.nav-burger { display: none; }
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer-inner {
  position: absolute;
  top: 72px;
  left: 12px;
  right: 12px;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}
.mobile-drawer.open .mobile-drawer-inner {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.mobile-drawer-inner a[href]:hover {
  background: var(--bg-alt);
}

@media (max-width: 768px) {
  .nav-burger { display: inline-flex !important; }
  /* hide middle links + desktop Einloggen; keep Demo buchen CTA visible */
  .nav-links { display: none !important; }
  .nav-login { display: none !important; }
  /* Let CTA shrink if needed */
  .nav-cta { gap: 6px !important; }
  .nav-cta .btn-primary { padding: 9px 14px; font-size: 13px; }
}
@media (max-width: 420px) {
  /* On very narrow phones, also hide the inline CTA — burger carries it */
  .nav-cta { display: none !important; }
}

/* ================================================================
   DARK-CARD TEXT: fix black-on-black <strong> inside dark cards
   Applied to cards with className="on-dark" (inline dark background
   outside of .section-dark wrapper)
   ================================================================ */
.on-dark strong { color: var(--y-300); font-weight: 600; }

/* ================================================================
   CLASS-BASED MOBILE OVERRIDES (most reliable: targets explicit classes)
   ================================================================ */
@media (max-width: 1024px) {
  .grid-hero-row,
  .grid-features-row,
  .grid-app-body {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .grid-app-body { min-height: 0 !important; }
}

@media (max-width: 900px) {
  .grid-usecase-row,
  .grid-funding-row,
  .grid-footer-row {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 768px) {
  .grid-hero-row { gap: 32px !important; }
  /* Features intro unsticky */
  .grid-features-row > div:first-child { position: static !important; top: auto !important; }
}

@media (max-width: 600px) {
  .grid-footer-row { grid-template-columns: 1fr !important; gap: 24px !important; }
  .grid-app-body { gap: 0 !important; }
  .grid-app-body > div:first-child { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: var(--r-pill);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--y-400);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 1px 2px rgba(10,10,10,0.1);
}
.btn-primary:hover {
  background: var(--y-300);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), var(--shadow-y);
}
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: #fff; border-color: var(--ink); }
.btn-dark {
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 2px rgba(10,10,10,0.2);
}
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-lg { padding: 18px 28px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* Arrow animation */
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}
.card-lg { border-radius: var(--r-2xl); padding: 36px; }

.icon-tile {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--y-100);
  color: var(--y-700);
  border: 1px solid rgba(251,194,42,0.25);
}
.icon-tile.ink { background: var(--ink); color: var(--y-300); border-color: transparent; }

/* ---------- CHIPS ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
}
.chip.yellow {
  background: var(--y-50);
  border-color: rgba(251,194,42,0.35);
  color: var(--y-700);
}
.chip.dark { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); color: #fff; }
.chip.dot::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--y-400); }

/* ---------- DIVIDER ---------- */
.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- HERO BG PATTERN ---------- */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(10,10,10,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
}
.grid-bg-dark {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 40px 40px;
}

.glow-y {
  position: absolute; pointer-events: none;
  background: radial-gradient(circle, rgba(251,194,42,0.35) 0%, rgba(251,194,42,0) 60%);
  filter: blur(40px);
}

/* ---------- MAP APP PREVIEW ---------- */
.app-frame {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.app-dots { display: flex; gap: 6px; }
.app-dot { width: 10px; height: 10px; border-radius: 99px; background: #E5E5E5; }

/* ---------- MARQUEE ---------- */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee {
  display: flex; gap: 48px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-mask {
  mask: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  overflow: hidden;
}

/* ---------- BLINK PULSE ---------- */
@keyframes blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(1.35); } }
.pulse-dot { animation: blink 1.8s ease-in-out infinite; }

/* ---------- FADE IN ---------- */
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(24px); filter: blur(6px); } 100% { opacity: 1; transform: none; filter: none; } }
.fade-up { animation: fadeUp 1s var(--ease) both; }
.fade-d-1 { animation-delay: 0.08s; }
.fade-d-2 { animation-delay: 0.16s; }
.fade-d-3 { animation-delay: 0.24s; }
.fade-d-4 { animation-delay: 0.32s; }
.fade-d-5 { animation-delay: 0.40s; }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-btn { width: 100%; padding: 22px 4px; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; }
.faq-btn .plus { flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; transition: transform 0.3s var(--ease), background 0.2s; }
.faq-item.open .faq-btn .plus { transform: rotate(45deg); background: var(--y-400); border-color: var(--y-400); }
.faq-panel { overflow: hidden; max-height: 0; transition: max-height 0.4s var(--ease); }
.faq-panel-inner { padding: 0 4px 22px; color: var(--ink-3); font-size: 15px; line-height: 1.6; max-width: 680px; }

/* ---------- TWEAKS PANEL ---------- */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000;
  width: 300px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 18px;
  box-shadow: var(--shadow-xl);
  font-family: var(--font-body);
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
  font-family: var(--font-display); font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 14px;
}
.tweak-row { margin-bottom: 14px; }
.tweak-row label { display: block; font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.tweak-seg {
  display: flex; background: var(--bg-alt);
  padding: 3px; border-radius: 10px; gap: 2px;
}
.tweak-seg button {
  flex: 1; padding: 7px 10px; font-size: 12px; font-weight: 500;
  border-radius: 8px; color: var(--ink-3);
}
.tweak-seg button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }

/* ---------- THEME VARIANTS (tweak-driven) ---------- */
/* Accent is default yellow. Alt palettes apply body class. */
body.palette-mono {
  --y-400: #0A0A0A;
  --y-300: #1F1F1F;
  --y-500: #000;
  --y-100: #EDEDED;
  --y-50:  #F5F5F5;
  --y-200: #D4D4D4;
  --y-700: #0A0A0A;
  --shadow-y: 0 14px 40px -12px rgba(10,10,10,0.30);
}
body.palette-warm {
  --y-400: #FFD60A;
  --y-300: #FFE866;
  --y-500: #F5B000;
  --y-100: #FFF8D6;
  --y-50:  #FFFCEB;
  --y-200: #FFEFA1;
  --y-700: #7A5B00;
}

/* ---------- UTILS ---------- */
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none !important; }

.badge-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(22,163,74,0.1);
  border: 1px solid rgba(22,163,74,0.25);
  border-radius: 99px;
  color: #15803D;
  font-size: 12px; font-weight: 600;
}
.badge-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 99px;
  background: #16A34A;
  animation: blink 1.8s ease-in-out infinite;
}
