/* ==========================================================================
   SkuPilot — Vori-Grade Editorial SaaS Design System
   Shared by: Landing (/), Margin Engine (/app.html), Label Studio (/labels.html)
   Typography: Rethink Sans + Fragment Mono
   ========================================================================== */

:root {
  --white: #ffffff;
  --stone: #f4f3f1;
  --stone-2: #eae8e4;
  --lavender-bg: #faf6ff;
  --lavender: #ece5ff;
  --lavender-strong: #dfd3fd;
  --violet: #5b3fd1;
  --violet-hover: #492ec0;
  --ink: #14121f;
  --charcoal: #292929;
  --muted: #55526a;
  --subtle: #737373;
  --border: #e5e5e5;
  --border-lavender: #dcd2f8;
  --coral: #e5485b;
  --coral-soft: #fff1f3;
  --green: #0d9468;
  --green-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(20, 18, 31, 0.05);
  --shadow-card: 0 12px 34px rgba(20, 18, 31, 0.07);
  --shadow-float: 0 24px 60px rgba(82, 53, 208, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Rethink Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'Fragment Mono', ui-monospace, SFMono-Regular, monospace; }
.mono-xs {
  font-family: 'Fragment Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hidden { display: none !important; }
.muted-sm { color: var(--muted); font-size: 0.88rem; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ==================== NAVBAR (MARKETING) ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.025em; }
.brand-sub { font-size: 0.64rem; letter-spacing: 0.08em; color: var(--violet); margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--violet); font-weight: 700; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex;
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'Fragment Mono', monospace;
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn-lg { padding: 14px 26px; font-size: 0.98rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-xs { padding: 6px 13px; font-size: 0.79rem; }
.btn-full { width: 100%; }

.btn-violet { background: var(--violet); color: var(--white); }
.btn-violet:hover { background: var(--violet-hover); transform: translateY(-1px); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #27233a; transform: translateY(-1px); }

.btn-lavender { background: var(--lavender); color: var(--ink); }
.btn-lavender:hover { background: var(--lavender-strong); }

.btn-outline { background: var(--white); color: var(--ink); border-color: #d4d4d8; }
.btn-outline:hover { border-color: var(--ink); }

.btn-ghost { background: transparent; color: var(--charcoal); }
.btn-ghost:hover { background: var(--stone); }

.link-btn-sm {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.link-btn-sm:hover { color: var(--violet); }

/* ==================== LANDING TYPOGRAPHY & SECTIONS ==================== */
.mono-eyebrow {
  font-family: 'Fragment Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
  display: inline-block;
}
.eyebrow-light { color: var(--lavender-strong); }

.display-h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.7rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}

.section-h2 {
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.section-h2.light { color: var(--white); }

.section-lead {
  font-size: 1.06rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 540px;
}
.section-lead.center { margin: 14px auto 0; max-width: 620px; }

.section-stone { background: var(--stone); padding: 88px 0; }
.section-white { background: var(--white); padding: 88px 0; }
.section-lavender {
  background: linear-gradient(180deg, var(--lavender-bg) 0%, #f3effe 100%);
  padding: 88px 0;
  border-top: 1px solid var(--border-lavender);
  border-bottom: 1px solid var(--border-lavender);
}
.section-dark { background: var(--ink); color: var(--white); padding: 88px 0; }

.section-head-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 44px;
}
.section-head-center { text-align: center; max-width: 760px; margin: 0 auto 48px; }

/* ==================== HERO ==================== */
.hero-section {
  padding: 64px 0 84px;
  background: linear-gradient(180deg, var(--white) 0%, #fcfaff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.94fr;
  gap: 48px;
  align-items: center;
}

.hero-lead {
  font-size: 1.14rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 560px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* Floating Showcase Card */
.hero-showcase-bg {
  background: radial-gradient(circle at 20% 10%, #e7deff, #f3effe 60%, #ece5ff 100%);
  border: 1px solid var(--border-lavender);
  border-radius: 26px;
  padding: 26px;
}

.showcase-card {
  background: var(--white);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(91, 63, 209, 0.12);
}

.showcase-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mono-tag {
  display: inline-block;
  font-family: 'Fragment Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.tag-coral { background: var(--coral-soft); color: var(--coral); }
.tag-violet { background: var(--lavender); color: var(--violet); }
.tag-green { background: var(--green-soft); color: var(--green); }

.showcase-item-title { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.02em; }
.showcase-meta { font-size: 0.74rem; color: var(--subtle); margin-top: 3px; }
.showcase-cost-pill { text-align: right; background: var(--stone); padding: 8px 12px; border-radius: 10px; flex-shrink: 0; }
.cost-jump { font-size: 0.92rem; margin-top: 2px; }
.cost-jump .old { text-decoration: line-through; color: var(--subtle); }

.showcase-impact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--lavender-bg);
  border: 1px solid var(--border-lavender);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
}

.impact-num { font-size: 1.15rem; font-weight: 700; margin-top: 3px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.impact-arrow { font-size: 1.3rem; color: var(--violet); font-weight: 800; }
.badge-coral { font-size: 0.68rem; background: var(--coral-soft); color: var(--coral); padding: 2px 7px; border-radius: 999px; }
.badge-green { font-size: 0.68rem; background: var(--green-soft); color: var(--green); padding: 2px 7px; border-radius: 999px; }

.guidance-label { margin-bottom: 8px; }
.guidance-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }

.guidance-opt {
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
  font-family: inherit;
}
.guidance-opt:hover { border-color: var(--violet); }
.guidance-opt.active { border-color: var(--violet); background: var(--lavender-bg); box-shadow: 0 0 0 2px rgba(91, 63, 209, 0.14); }
.guidance-opt .g-tier { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.guidance-opt.active .g-tier { color: var(--violet); }
.guidance-opt strong { font-size: 1.05rem; color: var(--ink); }
.guidance-opt .g-margin { font-size: 0.72rem; color: var(--green); }

.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.lift-pill { font-size: 0.78rem; color: var(--green); font-weight: 700; }

/* ==================== PROBLEM & WORKFLOW ==================== */
.three-col-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.editorial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-num {
  font-size: 0.76rem;
  color: var(--violet);
  background: var(--lavender);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.editorial-card h3 { font-size: 1.24rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.editorial-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

/* ==================== PRODUCT SPOTLIGHT WALKTHROUGH (REPLACES CRAMPED TABLE ON LANDING) ==================== */
.spotlight-tabs {
  display: inline-flex;
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  gap: 5px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.spot-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.spot-tab.active {
  background: var(--ink);
  color: var(--white);
}

.spot-stage {
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.spot-panel { display: none; }
.spot-panel.active {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 36px;
  align-items: center;
}

.spot-copy h3 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.spot-copy p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.spot-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}
.spot-bullets li {
  font-size: 0.93rem;
  font-weight: 500;
  padding-left: 22px;
  position: relative;
}
.spot-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--violet);
  font-weight: 800;
}

/* Polished UI Mockup Frames inside Spotlight */
.ui-mockup {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.ui-mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #efefef;
  margin-bottom: 10px;
}
.mock-row:last-child { margin-bottom: 0; }
.mock-row.alert { background: var(--coral-soft); border-color: rgba(229, 72, 91, 0.2); }
.mock-row.good { background: var(--green-soft); border-color: rgba(13, 148, 104, 0.2); }
.mock-row strong { display: block; font-size: 0.94rem; }
.mock-row small { color: var(--subtle); font-size: 0.78rem; }
.mock-right { text-align: right; flex-shrink: 0; }

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.check-tile {
  background: var(--lavender-bg);
  border: 1px solid var(--border-lavender);
  border-radius: 12px;
  padding: 14px;
}
.check-tile strong { display: block; font-size: 0.88rem; margin-bottom: 3px; }
.check-tile span { font-size: 0.78rem; color: var(--muted); }

/* ==================== SEPARATE COMPANION PRODUCT: THERMAL LABELS ==================== */
.companion-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.companion-stage {
  background: var(--white);
  border: 1px solid var(--border-lavender);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.companion-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 245px;
}

/* ==================== BENTO FEATURES, DARK BAND, PRICING, FAQ ==================== */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.bento-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.bento-tag {
  font-size: 0.68rem;
  color: var(--violet);
  background: var(--lavender);
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 12px;
}
.bento-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 7px; line-height: 1.25; }
.bento-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

.dark-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.dark-lead { color: #b7b3c9; font-size: 1.04rem; margin-top: 16px; line-height: 1.6; }
.dark-stats { display: grid; gap: 14px; }
.stat-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(223, 211, 253, 0.18);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.stat-num { font-size: 1.75rem; color: var(--lavender-strong); min-width: 120px; }
.stat-lbl { font-size: 0.92rem; color: #e4e2ee; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--violet);
  background: linear-gradient(180deg, var(--lavender-bg) 0%, var(--white) 40%);
  box-shadow: var(--shadow-float);
}
.popular-pill {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--violet);
  color: var(--white);
  font-size: 0.68rem;
  padding: 4px 11px;
  border-radius: 999px;
}
.plan-name { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 10px; }
.plan-price .amount { font-size: 2.5rem; line-height: 1; }
.plan-price .period { font-size: 0.88rem; color: var(--muted); }
.plan-desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; min-height: 44px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.plan-features li { font-size: 0.9rem; padding-left: 22px; position: relative; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--violet); font-weight: 800; }

.faq-wrap { max-width: 860px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; }
.faq-item summary {
  font-size: 1.05rem; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::after { content: '+'; font-family: 'Fragment Mono', monospace; font-size: 1.3rem; color: var(--violet); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 12px; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

.cta-banner {
  background: radial-gradient(circle at 85% 20%, rgba(135, 91, 255, 0.35), transparent 45%), var(--ink);
  color: var(--white);
  padding: 72px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.footer { background: var(--white); border-top: 1px solid var(--border); padding: 24px 0; font-size: 0.84rem; color: var(--subtle); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }

/* ==========================================================================
   DEDICATED FULL-SCREEN SAAS WORKSPACES (/app.html & /labels.html)
   ========================================================================== */
body.app-body {
  background: #f6f6f8;
  min-height: 100vh;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 62px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-topbar-left { display: flex; align-items: center; gap: 16px; }
.app-topbar-right { display: flex; align-items: center; gap: 10px; }

.app-divider { width: 1px; height: 22px; background: var(--border); }

.app-module-nav {
  display: inline-flex;
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}

.app-module-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-module-link.active { background: var(--ink); color: var(--white); }

/* 2-Pane Engine App Shell */
.engine-shell {
  max-width: 1520px;
  margin: 0 auto;
  padding: 20px 22px 48px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

.sidebar-stack { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 82px; }

.panel-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.panel-head h3 { font-size: 0.92rem; font-weight: 800; letter-spacing: -0.01em; }

.main-workspace { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* KPI Strip */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.kpi-card.kpi-coral { background: var(--coral-soft); border-color: rgba(229, 72, 91, 0.24); }
.kpi-card.kpi-green { background: var(--green-soft); border-color: rgba(13, 148, 104, 0.24); }
.kpi-label { font-size: 0.68rem; color: var(--muted); margin-bottom: 5px; }
.kpi-value { font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1.15; }
.kpi-coral .kpi-value { color: var(--coral); }
.kpi-green .kpi-value { color: var(--green); }
.kpi-sub { font-size: 0.76rem; color: var(--subtle); margin-top: 4px; }

/* Dropzones in Sidebar */
.dropzone-stack { display: flex; flex-direction: column; gap: 10px; }
.dropzone {
  background: #fafafa;
  border: 1.5px dashed #c8bede;
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--violet); background: var(--lavender-bg); }
.dropzone.loaded { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.dropzone-title { font-size: 0.85rem; font-weight: 700; }
.dropzone-sub { font-size: 0.74rem; color: var(--subtle); }
.dropzone-status {
  margin-top: 3px;
  font-size: 0.69rem;
  color: var(--violet);
  background: var(--lavender);
  padding: 2px 9px;
  border-radius: 999px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropzone.loaded .dropzone-status { color: var(--green); background: var(--white); }

.opt-pill {
  font-size: 0.65rem; font-weight: 700; background: var(--lavender); color: var(--violet);
  padding: 2px 6px; border-radius: 999px; margin-left: 4px;
}

/* Guidance & Rules */
.guidance-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 14px;
}
.g-pill {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 7px 6px;
  border-radius: 7px;
  cursor: pointer;
}
.g-pill.active { background: var(--violet); color: var(--white); }

.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.rule-box label { display: block; font-size: 0.74rem; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.input-pct { position: relative; }
.input-pct input { padding-right: 22px; font-family: 'Fragment Mono', monospace; font-size: 0.82rem; }
.input-pct span { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 0.76rem; color: var(--subtle); }

.toggles-compact { display: flex; flex-direction: column; gap: 7px; padding-top: 10px; border-top: 1px solid var(--border); }
.check-row { display: flex; align-items: flex-start; gap: 8px; font-size: 0.78rem; color: var(--charcoal); cursor: pointer; line-height: 1.35; }
.check-row input[type="checkbox"] { width: 14px; height: 14px; margin-top: 2px; accent-color: var(--violet); flex-shrink: 0; }
.velocity-inline { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.input-mini { width: 68px !important; text-align: right; padding: 4px 8px !important; }

textarea, input[type="text"], input[type="email"], input[type="number"], input[type="date"], select {
  width: 100%;
  background: var(--white);
  border: 1px solid #d4d4d8;
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}
textarea:focus, input:focus, select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(91, 63, 209, 0.12); }

/* Audit Table Card */
.table-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-toolbar {
  padding: 14px 18px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.pill.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pill-coral.active { background: var(--coral); border-color: var(--coral); color: var(--white); }
.pill-violet.active { background: var(--violet); border-color: var(--violet); color: var(--white); }
.pill-green.active { background: var(--green); border-color: var(--green); color: var(--white); }

.export-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }

.audit-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.audit-table th {
  text-align: left;
  padding: 11px 10px;
  font-family: 'Fragment Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--subtle);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.audit-table th.num, .audit-table td.num { text-align: right; }
.audit-table td { padding: 8px 10px; border-bottom: 1px solid #f0f0f2; vertical-align: middle; }
.audit-table tbody tr:hover { background: #faf9fd; }
.audit-table tbody tr.row-leak { background: #fff8f9; }
.audit-table tbody tr.row-excluded { opacity: 0.5; }

.cell-input { background: transparent; border: 1px solid transparent; padding: 4px 6px; border-radius: 6px; font-size: 0.82rem; color: var(--ink); }
.cell-input:hover { border-color: #d8d8de; }
.cell-input:focus { background: var(--white); border-color: var(--violet); }
.cell-code { width: 116px; font-family: 'Fragment Mono', monospace; font-size: 0.74rem; color: var(--muted); }
.cell-name { min-width: 190px; font-weight: 600; }
.cell-num { width: 70px; text-align: right; font-family: 'Fragment Mono', monospace; }
.cell-cat { width: 102px; padding: 4px 6px; font-size: 0.78rem; background: var(--stone); border-color: var(--border); }
.price-new { color: var(--violet); font-weight: 700; }

.status-badge { display: inline-block; font-family: 'Fragment Mono', monospace; font-size: 0.68rem; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.status-leak { background: var(--coral-soft); color: var(--coral); }
.status-new { background: var(--lavender); color: var(--violet); }
.status-ok { background: var(--green-soft); color: var(--green); }
.status-excluded { background: var(--stone); color: var(--subtle); }

.del-row-btn { background: none; border: none; color: #a1a1aa; font-size: 1rem; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.del-row-btn:hover { color: var(--coral); background: var(--coral-soft); }

.table-footer {
  padding: 13px 18px;
  background: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footnote { font-size: 0.77rem; color: var(--subtle); }
.tier-status { font-size: 0.73rem; color: var(--violet); }

/* ==================== DEDICATED THERMAL LABEL STUDIO (/labels.html) ==================== */
.labels-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 22px 56px;
}

.labels-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.studio-mode-switch {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.mode-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.mode-btn.active { background: var(--ink); color: var(--white); }

.studio-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: start; }

.preset-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.preset-chip {
  border: 1px solid var(--border);
  background: var(--stone);
  color: var(--charcoal);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.preset-chip.active { border-color: var(--violet); background: var(--lavender); color: var(--violet); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.editor-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.preview-stage {
  background: radial-gradient(circle at 50% 20%, #ece5ff, #f4f3f1 80%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  justify-content: center;
}

/* Monochrome 62x100mm Brother QL Food Label */
.thermal-food-label {
  width: 248px;
  min-height: 400px;
  background: #ffffff;
  color: #000000;
  padding: 12px;
  border-radius: 3px;
  box-shadow: 0 14px 34px rgba(20, 18, 31, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

.tfl-frame {
  border: 2px solid #000;
  padding: 8px 9px;
  min-height: 376px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tfl-store { text-align: center; font-size: 8.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 5px; border-bottom: 1.5px solid #000; }
.tfl-title { text-align: center; font-family: Georgia, serif; font-size: 16px; font-weight: 700; line-height: 1.18; margin: 8px 0 4px; }
.tfl-price { text-align: center; font-family: Georgia, serif; font-size: 25px; font-weight: 800; line-height: 1.05; margin: 4px 0 8px; }
.tfl-rule { border-top: 1px solid #000; margin: 5px 0; }
.tfl-block { font-size: 9.2px; line-height: 1.32; margin-bottom: 6px; }
.tfl-allergen-box { border: 1.2px solid #000; padding: 5px 6px; margin: 5px 0; font-size: 9px; line-height: 1.3; }
.tfl-dates { border-top: 1.5px solid #000; padding-top: 6px; margin-top: auto; display: flex; justify-content: space-between; font-size: 8.8px; }
.tfl-dates .exp { text-align: right; font-weight: 800; }

.preview-tip { margin-top: 12px; font-size: 0.78rem; color: var(--subtle); line-height: 1.45; }

.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 14px; margin-top: 14px; }
.shelf-tag {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000;
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 112px;
}
.st-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.st-name { font-size: 11px; font-weight: 800; line-height: 1.2; text-transform: uppercase; }
.st-cat { font-size: 8px; font-weight: 700; border: 1px solid #000; padding: 1px 4px; white-space: nowrap; }
.st-mid { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 4px; }
.st-price { font-family: 'Fragment Mono', monospace; font-size: 25px; font-weight: 700; line-height: 1; }
.st-meta { text-align: right; font-size: 8.5px; font-family: 'Fragment Mono', monospace; }
.st-barcode { border-top: 1px dashed #000; padding-top: 4px; display: flex; justify-content: space-between; align-items: center; font-family: 'Fragment Mono', monospace; font-size: 8.5px; }

/* ==================== MODALS & TOAST ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 18, 31, 0.55);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-card {
  width: 100%;
  max-width: 470px;
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-float);
}
.modal-wide { max-width: 660px; max-height: 82vh; overflow-y: auto; }
.modal-close { position: absolute; top: 16px; right: 18px; border: none; background: none; font-size: 1.5rem; color: var(--subtle); cursor: pointer; }
.modal-card h2 { font-size: 1.35rem; font-weight: 800; margin: 4px 0 8px; }
.modal-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.modal-success { text-align: center; padding: 12px 0 4px; }
.success-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 1.4rem; font-weight: 800; display: grid; place-items: center; margin: 0 auto 12px; }
.modal-success p { font-size: 0.9rem; color: var(--muted); margin: 8px 0 18px; }
.legal-body { margin-top: 12px; font-size: 0.88rem; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.legal-body h4 { color: var(--ink); margin-top: 6px; }

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-float);
}

/* ==================== EXECUTIVE IMPACT BANNER & AUTOPILOT BAR ==================== */
.impact-banner {
  background: linear-gradient(135deg, #14121f 0%, #241b45 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow-card);
}
.impact-hero-money {
  border-right: 1px solid rgba(223, 211, 253, 0.2);
  padding-right: 18px;
}
.impact-kicker {
  font-family: 'Fragment Mono', monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dfd3fd;
  margin-bottom: 4px;
}
.impact-big-num {
  font-family: 'Fragment Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: #34d399;
  line-height: 1.05;
}
.impact-annual {
  font-size: 0.85rem;
  color: #a7f3d0;
  margin-top: 4px;
  font-weight: 600;
}
.impact-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.impact-stat-val {
  font-family: 'Fragment Mono', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}
.impact-stat-sub {
  font-size: 0.76rem;
  color: #c4bfe0;
  line-height: 1.3;
}
.autopilot-strip {
  background: var(--lavender-bg);
  border: 1px solid var(--border-lavender);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.autopilot-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.flow-chip {
  background: var(--white);
  border: 1px solid var(--border-lavender);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--violet);
}
.delta-pill {
  display: inline-block;
  font-family: 'Fragment Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.delta-up { background: var(--green-soft); color: var(--green); }
.delta-new { background: var(--lavender); color: var(--violet); }
.delta-flat { background: var(--stone); color: var(--subtle); }
.stock-pill {
  font-family: 'Fragment Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--violet);
  background: var(--lavender-bg);
  border: 1px solid var(--border-lavender);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .impact-banner { grid-template-columns: 1fr 1fr; }
  .impact-hero-money { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(223,211,253,0.2); padding-bottom: 12px; grid-column: 1 / -1; }
}

/* ==================== SIMPLE VISUAL FLOW & BEFORE/AFTER (ZERO JARGON) ==================== */
.flow-sim-card {
  background: var(--white);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(91, 63, 209, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-step-box {
  border: 1.5px solid var(--border);
  border-radius: 13px;
  padding: 13px 15px;
  background: #fafafa;
  transition: all 0.25s ease;
}
.flow-step-box.active {
  border-color: var(--violet);
  background: var(--lavender-bg);
  box-shadow: 0 0 0 3px rgba(91, 63, 209, 0.12);
}
.flow-step-box.done {
  border-color: var(--green);
  background: var(--green-soft);
}
.flow-step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.flow-step-title { font-size: 0.95rem; font-weight: 800; color: var(--ink); }
.flow-step-sub { font-size: 0.8rem; color: var(--muted); }
.flow-arrow-down { text-align: center; font-size: 1rem; color: var(--violet); font-weight: 800; line-height: 1; }

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ba-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  border: 1.5px solid var(--border);
}
.ba-card.before { border-color: rgba(229, 72, 91, 0.3); background: #fffcfd; }
.ba-card.after { border-color: rgba(13, 148, 104, 0.35); background: #f7fefb; box-shadow: var(--shadow-card); }
.ba-card h3 { font-size: 1.25rem; font-weight: 800; margin: 10px 0 16px; }
.ba-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ba-list li { font-size: 0.95rem; color: var(--charcoal); padding-left: 24px; position: relative; line-height: 1.45; }
.ba-card.before .ba-list li::before { content: '✕'; position: absolute; left: 0; color: var(--coral); font-weight: 800; }
.ba-card.after .ba-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }

.bonus-strip {
  margin-top: 28px;
  background: var(--lavender-bg);
  border: 1px solid var(--border-lavender);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .ba-grid { grid-template-columns: 1fr; }
}

/* ==================== PRINT STYLES (THERMAL READY) ==================== */
.print-only { display: none; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; color: #000 !important; margin: 0 !important; padding: 0 !important; }
  .print-only { display: block !important; }
  .print-food-page { width: 62mm; height: 100mm; padding: 3mm; page-break-after: always; break-after: page; }
  .print-food-page .tfl-frame { min-height: 94mm; height: 94mm; }
  .print-shelf-wrap { display: grid; grid-template-columns: repeat(3, 62mm); gap: 3mm; padding: 4mm; }
  .print-shelf-wrap .shelf-tag { width: 62mm; min-height: 29mm; break-inside: avoid; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .hero-grid, .section-head-split, .spot-panel.active, .companion-grid, .dark-grid, .engine-shell, .studio-grid { grid-template-columns: 1fr; }
  .sidebar-stack { position: static; }
  .bento-grid, .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .three-col-cards, .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 680px) {
  .bento-grid, .kpi-grid, .check-grid { grid-template-columns: 1fr; }
  .spot-stage { padding: 20px; }
  .app-module-nav { display: none; }
}
