/* ============================================================
   TECTIC homepage — style.css
   Spec: ./CLAUDE.md
   Visual system from ./reference/prototype.css
   No hardcoded hex outside the :root token blocks.
   Mobile-first. Dark default + light theme via [data-theme].
   ============================================================ */

/* ── Self-hosted Fonts (ITF Free Font License) ── */
@font-face {
  font-family: 'Switzer';
  src: url('./fonts/Switzer-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('./fonts/Switzer-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('./fonts/Switzer-Semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('./fonts/Switzer-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('./fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('./fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('./fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem;  --sp-8: 2rem;    --sp-10: 2.5rem;
  --sp-12: 3rem;   --sp-16: 4rem;   --sp-20: 5rem;   --sp-24: 6rem;
  --sp-32: 8rem;

  --font-display: 'Switzer', 'Helvetica Neue', sans-serif;
  --font-body:    'Satoshi', 'Inter', sans-serif;

  --r-sm: 0.375rem; --r-md: 0.5rem; --r-lg: 0.875rem;
  --r-xl: 1.25rem;  --r-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.4,  0, 1, 1);
  --t-fast: 180ms var(--ease-out);
  --t-med:  300ms var(--ease-out);

  --w-narrow:  680px;
  --w-default: 1000px;
  --w-wide:    1280px;

  /* macOS window dot colors — universal across themes */
  --c-mac-red:    #FF6058;
  --c-mac-yellow: #FFBC2E;
  --c-mac-green:  #2ACA44;

  /* Brand colors (logo) — universal across themes */
  --c-brand-teal:       #0d9488;
  --c-brand-teal-light: #abdad5;
}

/* ── Light Mode ── */
:root, [data-theme="light"] {
  --c-bg:        #F6F5F1;
  --c-surface:   #FFFFFF;
  --c-surface2:  #F0EFEB;
  --c-border:    #DDD9D2;
  --c-border2:   #E8E5E0;
  --c-text:      #0F1011;
  --c-muted:     #6E6D6A;
  --c-faint:     #B4B2AE;
  --c-teal:      #007A80;
  --c-teal-h:    #005E64;
  --c-teal-dim:  rgba(0,122,128,0.10);
  --c-amber:     #A85C0A;
  --c-red:       #A63030;
  --c-violet:    #6B35BB;
  --c-blue:      #3870A8;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.13);
  --shadow-glow: 0 0 60px rgba(0,122,128,0.15);
}

/* ── Dark Mode (default via <html data-theme="dark">) ── */
[data-theme="dark"] {
  --c-bg:        #0B0C0D;
  --c-surface:   #111314;
  --c-surface2:  #181A1B;
  --c-border:    #222527;
  --c-border2:   #1C1F21;
  --c-text:      #E2E0DC;
  --c-muted:     #7E7C78;
  --c-faint:     #454340;
  --c-teal:      #22C9BB;
  --c-teal-h:    #18B5A8;
  --c-teal-dim:  rgba(34,201,187,0.10);
  --c-amber:     #F5A623;
  --c-red:       #E05454;
  --c-violet:    #A67EDF;
  --c-blue:      #5591C7;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 80px rgba(34,201,187,0.12);
}

/* ============================================================
   2. BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); }
p, li { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--c-teal-dim); color: var(--c-text); }
:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 3px; border-radius: var(--r-sm); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-teal); color: var(--c-bg);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  font-weight: 600; font-size: var(--text-sm);
  z-index: 1000;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* ============================================================
   3. SCROLL REVEALS
   ============================================================ */
.fade-in { opacity: 1; }
@supports (animation-timeline: view()) {
  .fade-in {
    opacity: 0;
    animation: fade-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}
@keyframes fade-reveal { to { opacity: 1; } }

.fade-in[data-reveal="ready"]   { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.fade-in[data-reveal="visible"] { opacity: 1; transform: translateY(0); }

@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;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 clamp(var(--sp-6), 5vw, var(--sp-16));
}
.section { padding-block: clamp(var(--sp-16), 8vw, var(--sp-32)); }

.section-label {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-teal);
  margin-bottom: var(--sp-4);
}
.section-title {
  font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; color: var(--c-text);
  margin-bottom: var(--sp-6);
}
.section-sub {
  font-size: var(--text-lg); color: var(--c-muted);
  max-width: 56ch; line-height: 1.65;
  margin-bottom: var(--sp-16);
}

/* ============================================================
   5. PULSE DOT (shared)
   ============================================================ */
.badge-pulse, .pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-teal);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
  display: inline-block;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.75); }
}
/* ============================================================
   6. NAVIGATION
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--c-bg) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border2);
  transition: box-shadow var(--t-med), border-color var(--t-med), background var(--t-med);
}
.nav.scrolled { box-shadow: var(--shadow-md); border-color: var(--c-border); }
.nav-inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 clamp(var(--sp-6), 5vw, var(--sp-16));
  height: 64px;
  display: flex; align-items: center; gap: var(--sp-8);
}
.nav-logo {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  transition: opacity var(--t-fast);
}
.nav-logo:hover { opacity: 0.75; }
.logo-icon { width: 26px; height: 26px; color: var(--c-teal); }
.logo-text { color: var(--c-text); }

/* Brand mark (real TECTIC logo) — inline SVG with theme-aware fills */
.logo-mark {
  display: inline-block;
  color: var(--c-text);
  flex-shrink: 0;
}
.logo-mark--h { height: 28px; width: auto; }
.logo-mark--i { height: 22px; width: 22px; }
.logo-mark .lg-text,
.logo-mark g.lg-text path { fill: currentColor; }
.logo-mark .lg-teal       { fill: var(--c-brand-teal); }
.logo-mark .lg-teal-light { fill: var(--c-brand-teal-light); }

.nav-links {
  display: flex; align-items: center; gap: var(--sp-8);
  margin-left: var(--sp-4);
}
.nav-links a {
  font-size: var(--text-sm); font-weight: 500;
  color: var(--c-muted);
  transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--c-text); }

.nav-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: var(--sp-4);
}
.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted);
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
}
.theme-toggle:hover { color: var(--c-text); background: var(--c-surface2); }

.btn-ghost {
  font-size: var(--text-sm); font-weight: 500;
  color: var(--c-muted);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
}
.btn-ghost:hover { color: var(--c-text); background: var(--c-surface2); }

.btn-primary-sm {
  display: inline-block;
  font-size: var(--text-sm); font-weight: 600;
  color: var(--c-bg);
  background: var(--c-teal);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  transition: background var(--t-fast), transform var(--t-fast);
}
.btn-primary-sm:hover { background: var(--c-teal-h); transform: translateY(-1px); }
.btn-primary-sm:active { transform: translateY(0); }

.btn-outline-sm {
  display: inline-block;
  font-size: var(--text-sm); font-weight: 600;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  transition: border-color var(--t-fast), background var(--t-fast);
  text-align: center;
}
.btn-outline-sm:hover { border-color: var(--c-teal); background: var(--c-teal-dim); }

.nav-mobile-toggle {
  display: none; align-items: center; justify-content: center;
  color: var(--c-muted);
  margin-left: auto;
  width: 44px; height: 44px;
  border-radius: 8px;
  cursor: pointer;
  background: none; border: none; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: var(--sp-6) clamp(var(--sp-6), 5vw, var(--sp-16));
  display: flex; flex-direction: column; gap: var(--sp-5);
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu a { font-size: var(--text-base); font-weight: 500; color: var(--c-muted); }
.mobile-menu a:hover { color: var(--c-text); }
.mobile-menu-ctas { display: flex; gap: var(--sp-4); margin-top: var(--sp-4); }

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-mobile-toggle { display: flex; }
}

/* ============================================================
   7. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--c-bg);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.hero-orb-1 {
  top: -10%; right: 5%;
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  background: radial-gradient(circle, color-mix(in srgb, var(--c-teal) 18%, transparent) 0%, transparent 70%);
  animation: orb1 12s ease-in-out infinite alternate;
}
.hero-orb-2 {
  bottom: 10%; left: -5%;
  width: clamp(250px, 35vw, 500px);
  height: clamp(250px, 35vw, 500px);
  background: radial-gradient(circle, color-mix(in srgb, var(--c-blue) 25%, transparent) 0%, transparent 70%);
  animation: orb2 15s ease-in-out infinite alternate;
}
.hero-orb-3 {
  top: 40%; left: 35%;
  width: clamp(200px, 25vw, 400px);
  height: clamp(200px, 25vw, 400px);
  background: radial-gradient(circle, color-mix(in srgb, var(--c-teal) 6%, transparent) 0%, transparent 70%);
  animation: orb3 10s ease-in-out infinite alternate;
}
@keyframes orb1 { from { transform: translate(0, 0); } to { transform: translate(-40px, 30px); } }
@keyframes orb2 { from { transform: translate(0, 0); } to { transform: translate(30px, -40px); } }
@keyframes orb3 { from { transform: translate(0, 0); } to { transform: translate(20px, 20px); } }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--c-text) 3%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--c-text) 3%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  flex: 1;
  max-width: var(--w-wide);
  width: 100%;
  margin: 0 auto;
  /* Reduced top padding so the product window sits in the first viewport on desktop */
  padding: clamp(var(--sp-8), 5vw, var(--sp-12)) clamp(var(--sp-6), 5vw, var(--sp-16)) var(--sp-16);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-12);
  align-items: center;
}
.hero-copy { min-width: 0; }

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-teal);
  background: var(--c-teal-dim);
  border: 1px solid color-mix(in srgb, var(--c-teal) 25%, transparent);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-6);
}

.hero-headline {
  font-size: var(--text-hero);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--c-text);
  margin-bottom: var(--sp-6);
}
.hero-headline em {
  font-style: italic;
  color: var(--c-teal);
  display: block;
}

.hero-sub {
  font-size: var(--text-lg); color: var(--c-muted);
  max-width: 44ch; line-height: 1.65;
  margin-bottom: var(--sp-8);
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--c-teal);
  color: var(--c-bg);
  font-family: var(--font-display);
  font-size: var(--text-sm); font-weight: 700;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn-hero-primary:hover {
  background: var(--c-teal-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--c-teal) 30%, transparent);
}
.btn-hero-primary:active { transform: translateY(0); box-shadow: none; }

.btn-hero-outline {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--c-text);
  font-family: var(--font-display);
  font-size: var(--text-sm); font-weight: 600;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  border: 1.5px solid var(--c-border);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.btn-hero-outline:hover {
  border-color: var(--c-teal);
  background: var(--c-teal-dim);
  transform: translateY(-1px);
}

.hero-trust-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs); color: var(--c-faint);
}
.hero-trust-row svg {
  display: inline; width: 11px; height: 11px;
  vertical-align: middle; margin-right: 3px;
}
.trust-sep { color: var(--c-faint); margin: 0 2px; }

.hero-confidence-callout {
  margin-top: var(--sp-6);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface2);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-md);
  font-size: var(--text-xs);
  color: var(--c-muted);
  max-width: 44ch;
  line-height: 1.55;
}

.hero-scroll-indicator {
  position: absolute; bottom: var(--sp-8); left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  z-index: 1;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--c-border));
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   8. PRODUCT WINDOW (Hero)
   ============================================================ */
.hero-product { position: relative; animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.product-window {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  font-size: var(--text-xs);
}

.win-chrome {
  display: flex; align-items: center; gap: var(--sp-4);
  background: var(--c-surface2);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-3) var(--sp-5);
}
.win-dots { display: flex; gap: 5px; }
.wdot { width: 10px; height: 10px; border-radius: 50%; transition: opacity var(--t-fast); }
.wdot-red    { background: var(--c-mac-red); }
.wdot-yellow { background: var(--c-mac-yellow); }
.wdot-green  { background: var(--c-mac-green); }

.win-tabs { display: flex; gap: 1px; flex: 1; }
.wtab {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  color: var(--c-faint);
  font-size: 10px; font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.wtab.active { background: var(--c-surface); color: var(--c-text); }
.wtab:hover:not(.active) { color: var(--c-muted); }
.win-actions { margin-left: auto; }
.win-badge {
  background: var(--c-teal-dim);
  color: var(--c-teal);
  border: 1px solid color-mix(in srgb, var(--c-teal) 20%, transparent);
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 10px; font-weight: 600;
}

.win-project-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--c-border2);
  background: var(--c-surface);
  gap: var(--sp-3);
}
.win-project-name {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 11px; font-weight: 600; color: var(--c-text);
}
.win-project-total {
  font-size: 11px; font-weight: 700; color: var(--c-teal);
  font-family: var(--font-display);
}

.win-agents {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  border-bottom: 1px solid var(--c-border2);
  background: var(--c-surface2);
}
.agent-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-size: 10px; font-weight: 600;
  border: 1px solid transparent;
}
.agent-done {
  background: color-mix(in srgb, var(--c-teal) 12%, transparent);
  color: var(--c-teal);
  border-color: color-mix(in srgb, var(--c-teal) 20%, transparent);
}
.agent-running {
  background: color-mix(in srgb, var(--c-amber) 12%, transparent);
  color: var(--c-amber);
  border-color: color-mix(in srgb, var(--c-amber) 20%, transparent);
}
.agent-idle {
  background: var(--c-surface);
  color: var(--c-faint);
  border-color: var(--c-border2);
}
.agent-spinner {
  width: 8px; height: 8px;
  border: 1.5px solid color-mix(in srgb, var(--c-amber) 30%, transparent);
  border-top-color: var(--c-amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.agent-idle-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--c-faint); }
@keyframes spin { to { transform: rotate(360deg); } }

.win-table-wrap { overflow-x: auto; }
.win-table { width: 100%; border-collapse: collapse; }
.win-table th {
  padding: var(--sp-2) var(--sp-4);
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--c-faint);
  border-bottom: 1px solid var(--c-border2);
  text-align: left;
  background: var(--c-surface2);
  white-space: nowrap;
}
.win-table th.num, .win-table td.num { text-align: right; }
.win-table tr { transition: background var(--t-fast); }
.win-table tr:hover { background: var(--c-surface2); }
.row-group td { font-weight: 600; color: var(--c-text); background: color-mix(in srgb, var(--c-surface) 50%, transparent); }
.row-child td { color: var(--c-muted); }
.row-uncertain td { background: color-mix(in srgb, var(--c-amber) 5%, transparent); }
.win-table td {
  padding: var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--c-border2);
  font-size: 11px;
  white-space: nowrap;
}
.code-cell { font-family: monospace; font-size: 10px; color: var(--c-muted); }
.indent { padding-left: var(--sp-8) !important; }
.conf-bar { display: flex; gap: 2px; align-items: center; }
.cb { width: 7px; height: 7px; border-radius: 50%; background: var(--c-border); }
.cb-fill      { background: var(--c-teal); }
.cb-uncertain { background: var(--c-amber); }

.prov {
  padding: 1px 6px;
  border-radius: var(--r-full);
  font-size: 9px; font-weight: 600; letter-spacing: 0.03em;
}
.prov-tpk     { background: color-mix(in srgb, var(--c-teal) 15%, transparent);   color: var(--c-teal); }
.prov-mkt     { background: color-mix(in srgb, var(--c-blue) 20%, transparent);   color: var(--c-blue); }
.prov-est     { background: color-mix(in srgb, var(--c-amber) 15%, transparent);  color: var(--c-amber); }
.prov-learned { background: color-mix(in srgb, var(--c-violet) 15%, transparent); color: var(--c-violet); }

.win-statusbar {
  display: flex; align-items: center; gap: var(--sp-5);
  padding: var(--sp-2) var(--sp-5);
  background: var(--c-surface2);
  border-top: 1px solid var(--c-border2);
  font-size: 10px; color: var(--c-faint);
}
.ws-stat  { display: flex; align-items: center; gap: 4px; }
.ws-dot   { width: 6px; height: 6px; border-radius: 50%; }
.ws-green { background: var(--c-teal); }
.ws-right { margin-left: auto; }

.hint-card {
  position: absolute;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  font-size: 11px; color: var(--c-muted);
  display: flex; align-items: flex-start; gap: var(--sp-2);
  max-width: 220px;
  box-shadow: var(--shadow-md);
  line-height: 1.45;
  z-index: 2;
}
.hint-card svg { flex-shrink: 0; margin-top: 1px; color: var(--c-amber); }
.hint-card-1 { bottom: -14px; left: -20px; }
.hint-card-2 {
  top: -14px; right: -12px;
  border-color: color-mix(in srgb, var(--c-teal) 30%, transparent);
}
.hint-card-2 svg { color: var(--c-teal); }

/* ============================================================
   9. PROOF BAR
   ============================================================ */
.proof-bar {
  background: var(--c-surface2);
  border-block: 1px solid var(--c-border2);
  padding: var(--sp-8) clamp(var(--sp-6), 5vw, var(--sp-16));
}
.proof-bar-inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(var(--sp-6), 5vw, var(--sp-16));
  flex-wrap: wrap;
  justify-content: center;
}
.proof-metric {
  display: flex; align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  padding-right: clamp(var(--sp-4), 3vw, var(--sp-8));
  border-right: 1px solid var(--c-border);
}
.proof-metric strong {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--c-teal);
  letter-spacing: -0.04em;
  line-height: 1;
}
.proof-metric span {
  font-size: var(--text-xs);
  color: var(--c-muted);
  line-height: 1.3;
  font-weight: 500;
}
.proof-content {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.proof-bar-label {
  font-size: var(--text-xs); color: var(--c-faint);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.04em;
}
.proof-logos {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: var(--sp-3) var(--sp-6);
}
.proof-firm {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.proof-firm-muted { color: var(--c-faint); font-weight: 500; }
.proof-sep { color: var(--c-faint); }

@media (max-width: 768px) {
  .proof-metric {
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    padding-right: 0;
    padding-bottom: var(--sp-4);
  }
  .proof-bar-inner { flex-direction: column; }
}

/* ============================================================
   10. PIPELINE
   ============================================================ */
.pipeline-section { background: var(--c-surface2); }
.pipeline-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}
.pipeline-step {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  transition: border-color var(--t-med), box-shadow var(--t-med);
  display: flex; flex-direction: column;
}
.pipeline-step:hover { border-color: var(--c-teal); box-shadow: var(--shadow-md); }
.pipeline-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-5);
}
.pipeline-icon-1 { background: color-mix(in srgb, var(--c-teal)   12%, transparent); color: var(--c-teal); }
.pipeline-icon-2 { background: color-mix(in srgb, var(--c-amber)  12%, transparent); color: var(--c-amber); }
.pipeline-icon-3 { background: color-mix(in srgb, var(--c-violet) 12%, transparent); color: var(--c-violet); }
.pipeline-icon-4 { background: color-mix(in srgb, var(--c-teal)   12%, transparent); color: var(--c-teal); }
.pipeline-step-num {
  font-size: var(--text-xs); font-weight: 700;
  color: var(--c-faint); letter-spacing: 0.1em;
  margin-bottom: var(--sp-2);
}
.pipeline-step h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--sp-3); }
.pipeline-step p { font-size: var(--text-sm); color: var(--c-muted); line-height: 1.6; margin-bottom: var(--sp-5); }
.pipeline-metric {
  font-size: var(--text-sm); font-weight: 700;
  color: var(--c-teal);
  font-family: var(--font-display);
  margin-top: auto;
}
.pipeline-metric span { font-weight: 400; color: var(--c-faint); }

.pipeline-connector {
  display: flex; align-items: center; justify-content: center;
  width: 48px; flex-shrink: 0;
  position: relative;
}
.connector-line {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--c-border), var(--c-teal), var(--c-border));
  position: relative;
  overflow: hidden;
}
.connector-line::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--c-teal), transparent);
  animation: connector-pulse 2.5s ease-in-out infinite;
}
@keyframes connector-pulse { 0% { left: -100%; } 100% { left: 100%; } }
.connector-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-teal);
  animation: dot-travel 2.5s ease-in-out infinite;
  box-shadow: 0 0 8px var(--c-teal);
}
@keyframes dot-travel {
  0%   { left: 0;             opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

/* ============================================================
   11. BENTO FEATURES
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--sp-4);
}
.bento-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med);
  overflow: hidden;
  display: flex; flex-direction: column; gap: var(--sp-6);
}
.bento-card:hover {
  border-color: color-mix(in srgb, var(--c-teal) 40%, transparent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.bento-card-lg   { grid-column: span 2; }
.bento-card-wide { grid-column: span 2; }
.bento-card-tall { grid-row: span 2; }
.bento-card-featured {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c-teal) 6%, transparent), transparent 60%),
    var(--c-surface);
}
.bento-card-usp {
  border-color: color-mix(in srgb, var(--c-teal) 40%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c-teal) 8%, transparent), transparent 60%),
    var(--c-surface);
  box-shadow: 0 0 60px color-mix(in srgb, var(--c-teal) 8%, transparent);
}

.bc-content { display: flex; flex-direction: column; gap: var(--sp-4); }
.bc-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bc-icon-teal   { background: var(--c-teal-dim);                                   color: var(--c-teal); }
.bc-icon-amber  { background: color-mix(in srgb, var(--c-amber)  12%, transparent); color: var(--c-amber); }
.bc-icon-violet { background: color-mix(in srgb, var(--c-violet) 12%, transparent); color: var(--c-violet); }
.bento-card h3 { font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.02em; }
.bento-card p  { font-size: var(--text-sm); color: var(--c-muted); line-height: 1.6; }

.alert-list { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: auto; }
.alert-item {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  font-size: var(--text-xs); line-height: 1.5;
}
.alert-warn {
  background: color-mix(in srgb, var(--c-amber) 10%, transparent);
  color: var(--c-amber);
  border: 1px solid color-mix(in srgb, var(--c-amber) 20%, transparent);
}
.alert-info {
  background: var(--c-teal-dim);
  color: var(--c-teal);
  border: 1px solid color-mix(in srgb, var(--c-teal) 20%, transparent);
}
.alert-item svg { flex-shrink: 0; margin-top: 1px; }

.bc-price-bars { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: auto; }
.price-bar-row { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--text-xs); }
.price-bar-row > span:first-child { width: 100px; flex-shrink: 0; color: var(--c-muted); }
.price-bar-track {
  flex: 1; height: 5px;
  background: var(--c-border);
  border-radius: var(--r-full);
  overflow: hidden;
}
.price-bar-fill {
  height: 100%;
  border-radius: var(--r-full);
  width: var(--w, 0%);
  transition: width 0.8s var(--ease-out);
}
.price-bar-ok   { background: var(--c-teal); }
.price-bar-warn { background: var(--c-amber); }
.price-bar-val  { width: 36px; text-align: right; font-weight: 700; font-size: var(--text-xs); }
.price-val-ok   { color: var(--c-teal); }
.price-val-warn { color: var(--c-amber); }

.plausibility-example {
  margin-top: auto;
  padding: var(--sp-3);
  background: var(--c-surface2);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border2);
}
.plaus-q { font-size: var(--text-xs); color: var(--c-teal); font-style: italic; }

.bc-conf-visual {
  display: flex; align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-4) var(--sp-6);
  background: var(--c-surface2);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border2);
  flex-wrap: wrap;
  margin-top: auto;
}
.conf-stat { text-align: center; }
.conf-stat-num {
  font-size: var(--text-2xl); font-weight: 800;
  font-family: var(--font-display);
  color: var(--c-text); line-height: 1;
  margin-bottom: 4px;
}
.conf-stat-label { font-size: var(--text-xs); color: var(--c-muted); }
.conf-divider { width: 1px; height: 40px; background: var(--c-border); }
.conf-legend {
  display: flex; align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap; flex: 1; min-width: 200px;
}
.cl-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cl-confirmed { background: var(--c-teal); }
.cl-review    { background: var(--c-amber); }
.cl-failed    { background: var(--c-red); }
.conf-progress-bar {
  flex: 1; height: 6px;
  background: var(--c-border);
  border-radius: var(--r-full);
  overflow: hidden;
  min-width: 30px;
}
.conf-progress-fill {
  height: 100%;
  background: var(--c-teal);
  border-radius: var(--r-full);
  width: var(--w, 0%);
}
.conf-fill-amber { background: var(--c-amber); }
.conf-fill-red   { background: var(--c-red); }

.magic-link-example {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-top: auto;
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-surface2);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.magic-link-example:hover { border-color: var(--c-teal); }
.magic-link-chip {
  font-size: var(--text-xs);
  font-family: monospace;
  color: var(--c-teal);
  flex: 1;
}

.doc-flow {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--text-xs); color: var(--c-muted);
  padding: var(--sp-3); margin-top: auto;
  background: var(--c-surface2);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border2);
}
.doc-flow__arrow { color: var(--c-teal); }

/* ============================================================
   12. PRODUCT SHOWCASE (The Workbench)
   ============================================================ */
.showcase-window {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 clamp(var(--sp-6), 5vw, var(--sp-16));
}
.showcase-frame {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 560px;
}
.sw-sidebar {
  background: var(--c-surface2);
  border-right: 1px solid var(--c-border);
  padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-6);
}
.sw-logo { display: flex; align-items: center; gap: var(--sp-2); font-weight: 700; font-size: var(--text-sm); }
.sw-logo .logo-icon { width: 20px; height: 20px; }
.sw-nav { display: flex; flex-direction: column; gap: 2px; }
.sw-nav-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--text-xs); font-weight: 500;
  color: var(--c-muted);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.sw-nav-item:hover { background: var(--c-surface); color: var(--c-text); }
.sw-nav-active { background: var(--c-surface); color: var(--c-text); }
.sw-project-list { margin-top: auto; }
.sw-proj-label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--c-faint);
  margin-bottom: var(--sp-3);
}
.sw-proj {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--text-xs); color: var(--c-muted); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.sw-proj:hover { background: var(--c-surface); color: var(--c-text); }
.sw-proj-active { background: var(--c-surface); color: var(--c-text); font-weight: 600; }
.sw-main { display: flex; flex-direction: column; min-width: 0; }
.sw-topbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--c-border);
  gap: var(--sp-4);
}
.sw-breadcrumb { font-size: var(--text-xs); color: var(--c-muted); font-weight: 500; }
.sw-agent-bar { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.sw-agent {
  font-size: 10px; font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; gap: 4px;
}
.sw-agent-done    { background: color-mix(in srgb, var(--c-teal) 12%, transparent);  color: var(--c-teal); }
.sw-agent-running { background: color-mix(in srgb, var(--c-amber) 12%, transparent); color: var(--c-amber); }
.sw-agent-wait    { background: var(--c-surface2); color: var(--c-faint); }
.sw-spinner {
  width: 8px; height: 8px;
  border: 1.5px solid color-mix(in srgb, var(--c-amber) 30%, transparent);
  border-top-color: var(--c-amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.sw-connector-sm { color: var(--c-faint); font-size: 10px; }

.sw-kpi-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--c-border);
}
.sw-kpi {
  padding: var(--sp-4) var(--sp-6);
  border-right: 1px solid var(--c-border);
}
.sw-kpi:last-child { border-right: none; }
.sw-kpi-val {
  font-size: var(--text-xl); font-weight: 800;
  font-family: var(--font-display);
  color: var(--c-text);
  letter-spacing: -0.03em;
}
.sw-kpi-warn .sw-kpi-val { color: var(--c-amber); }
.sw-kpi-label { font-size: var(--text-xs); color: var(--c-faint); margin-top: 2px; }

.sw-table-area { overflow-x: auto; flex: 1; }
.sw-table {
  width: 100%; border-collapse: collapse;
  font-size: var(--text-xs);
}
.sw-table th {
  padding: var(--sp-3) var(--sp-4);
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--c-faint); text-align: left;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface2);
  white-space: nowrap;
}
.sw-table th.num, .sw-table td.num { text-align: right; }
.sw-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-border2);
  white-space: nowrap;
}
.sw-row:hover td      { background: var(--c-surface2); }
.sw-row-group td      { font-weight: 600; }
.sw-row-flag td       { background: color-mix(in srgb, var(--c-amber) 5%, transparent); }
.sw-price-warn        { color: var(--c-amber); font-weight: 700; }
.sw-table td.indent   { padding-left: var(--sp-8); }

.sw-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 10px; font-weight: 600;
}
.sw-status-confirmed { background: var(--c-teal-dim);                                  color: var(--c-teal); }
.sw-status-ok        { background: color-mix(in srgb, var(--c-blue) 15%, transparent); color: var(--c-blue); }
.sw-status-uncertain { background: color-mix(in srgb, var(--c-amber) 15%, transparent); color: var(--c-amber); }

/* --- Workbench tab system --- */
.sw-nav-item {
  background: none; border: none; width: 100%; text-align: left;
  font-family: inherit;
}
.sw-nav-item:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; }
.sw-panel { display: flex; flex-direction: column; min-height: 0; flex: 1;
  animation: sw-fade 180ms var(--ease-out); }
.sw-panel[hidden] { display: none; }
@keyframes sw-fade { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
.sw-badge-quiet {
  font-size: 10px; font-weight: 600; padding: 3px 8px;
  border-radius: var(--r-full);
  background: var(--c-surface2);
  color: var(--c-faint);
  border: 1px solid var(--c-border2);
}

/* --- Dashboard tab --- */
.sw-dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--sp-4);
  padding: var(--sp-6);
  flex: 1;
}
.sw-dash-card {
  background: var(--c-surface2);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-4);
  min-height: 0;
}
.sw-dash-chart { grid-row: 1; grid-column: 1; }
.sw-dash-conf  { grid-row: 1; grid-column: 2; }
.sw-dash-activity { grid-row: 2; grid-column: 1 / -1; }
.sw-dash-title {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-faint);
}

.dash-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: var(--sp-3);
  height: 140px;
  padding-top: var(--sp-4);
}
.dash-bar { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); height: 100%; justify-content: flex-end; }
.dash-bar-fill {
  width: 100%;
  height: var(--h, 0%);
  min-height: 4px;
  background: linear-gradient(180deg, var(--c-teal) 0%, color-mix(in srgb, var(--c-teal) 60%, transparent) 100%);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  position: relative;
  transition: height var(--t-med);
}
.dash-bar-warn {
  background: linear-gradient(180deg, var(--c-amber) 0%, color-mix(in srgb, var(--c-amber) 60%, transparent) 100%);
}
.dash-bar-val {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 700; color: var(--c-muted); white-space: nowrap;
}
.dash-bar-label {
  font-size: 10px; font-weight: 600; color: var(--c-faint);
  font-family: var(--font-display);
}

.dash-stack {
  display: flex; height: 28px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-border2);
}
.dash-stack-seg {
  width: var(--w);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--c-bg);
}
.dash-seg-confirmed { background: var(--c-teal); }
.dash-seg-review    { background: var(--c-amber); }
.dash-seg-failed    { background: var(--c-red); }
.dash-stack-legend {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  font-size: var(--text-xs); color: var(--c-muted);
}
.dash-stack-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ds-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ds-dot-confirmed { background: var(--c-teal); }
.ds-dot-review    { background: var(--c-amber); }
.ds-dot-failed    { background: var(--c-red); }

.dash-activity { list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--sp-2); }
.dash-activity li {
  display: grid; grid-template-columns: 80px 1fr; gap: var(--sp-3);
  align-items: baseline;
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-md);
  font-size: var(--text-xs);
}
.dash-act-time { color: var(--c-faint); font-weight: 500; font-size: 10px; }
.dash-act-text { color: var(--c-muted); }
.dash-act-text strong { color: var(--c-text); font-weight: 600; }
.dash-act-warn { color: var(--c-amber); font-weight: 600; }

/* --- Triage tab --- */
.sw-triage-table .sw-triage-header td {
  background: var(--c-surface2);
  padding: var(--sp-3) var(--sp-4);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-border);
  border-top: 1px solid var(--c-border);
}
.sw-triage-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 9px; font-weight: 700;
  margin-right: var(--sp-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sw-triage-pill-uncertain { background: color-mix(in srgb, var(--c-amber) 18%, transparent); color: var(--c-amber); }
.sw-triage-pill-review    { background: color-mix(in srgb, var(--c-blue) 18%, transparent);  color: var(--c-blue); }
.sw-triage-pill-confirmed { background: var(--c-teal-dim);                                    color: var(--c-teal); }
.sw-reason { color: var(--c-muted); font-style: italic; }
.sw-triage-btn {
  background: var(--c-teal-dim);
  color: var(--c-teal);
  border: 1px solid color-mix(in srgb, var(--c-teal) 30%, transparent);
  border-radius: var(--r-md);
  padding: 4px 10px;
  font-size: 10px; font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.sw-triage-btn:hover { background: color-mix(in srgb, var(--c-teal) 20%, transparent); border-color: var(--c-teal); }
.sw-triage-more td {
  text-align: center;
  font-size: 10px;
  color: var(--c-faint);
  font-style: italic;
  background: var(--c-surface);
}

/* --- Vergabespiegel tab --- */
.sw-vergabe-table tfoot td {
  padding: var(--sp-3) var(--sp-4);
  font-weight: 700;
  background: var(--c-surface2);
  border-top: 2px solid var(--c-border);
  font-size: var(--text-xs);
}
.sw-bid-low  { color: var(--c-teal); font-weight: 700; }
.sw-bid-high { color: var(--c-red); font-weight: 700; }
.sw-vergabe-reco {
  display: flex; align-items: center; gap: var(--sp-2);
  margin: var(--sp-4) var(--sp-6) var(--sp-6);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-teal-dim);
  border: 1px solid color-mix(in srgb, var(--c-teal) 30%, transparent);
  border-radius: var(--r-md);
  font-size: var(--text-xs);
  color: var(--c-text);
}
.sw-vergabe-reco svg { color: var(--c-teal); }
.sw-vergabe-reco strong { color: var(--c-teal); margin-right: 4px; }

/* ============================================================
   13. NUMBERS + BEFORE/AFTER
   ============================================================ */
.numbers-section { background: var(--c-bg); }
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-surface);
}
.number-card {
  padding: var(--sp-10) var(--sp-8);
  border-right: 1px solid var(--c-border);
}
.number-card:last-child { border-right: none; }
.number-val {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  color: var(--c-text);
  line-height: 1;
  margin-bottom: var(--sp-4);
}
.number-highlight { color: var(--c-teal); }
/* Statement variant: keyword instead of a number; tighter scale to fit longer words */
.number-card-statement .number-val {
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  letter-spacing: -0.03em;
}
.number-label {
  font-size: var(--text-sm); color: var(--c-muted);
  max-width: 28ch; line-height: 1.55;
}
.numbers-footnote {
  font-size: var(--text-xs);
  color: var(--c-faint);
  margin-top: var(--sp-4);
}

.compare-table {
  width: 100%;
  margin-top: var(--sp-12);
  border-collapse: collapse;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.compare-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--c-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.compare-table th, .compare-table td {
  padding: var(--sp-3) var(--sp-5);
  text-align: left;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--c-border2);
}
.compare-table thead th {
  background: var(--c-surface2);
  font-weight: 700;
  color: var(--c-text);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td:first-child { color: var(--c-muted); font-weight: 500; }
.compare-table td.col-tectic { color: var(--c-teal); font-weight: 600; }
.compare-table th.col-tectic { color: var(--c-teal); }

/* ============================================================
   14. TESTIMONIAL
   ============================================================ */
.testimonial-section { background: var(--c-bg); }
.testimonial-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: clamp(var(--sp-8), 5vw, var(--sp-16));
  box-shadow: var(--shadow-sm);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-text);
  margin-bottom: var(--sp-6);
}
.testimonial-quote::before { content: '\201C'; color: var(--c-teal); margin-right: 4px; }
.testimonial-quote::after  { content: '\201D'; color: var(--c-teal); margin-left: 4px; }
.testimonial-author { font-size: var(--text-sm); color: var(--c-muted); }
.testimonial-author strong {
  display: block;
  font-weight: 700;
  color: var(--c-text);
  font-family: var(--font-display);
  margin-bottom: 2px;
}
.testimonial-second {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border2);
  font-size: var(--text-base);
  color: var(--c-muted);
  line-height: 1.55;
  font-style: italic;
}
.testimonial-second cite {
  display: block;
  margin-top: var(--sp-2);
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--c-faint);
}

/* ============================================================
   15. TRUST / SECURITY
   ============================================================ */
.security-section { background: var(--c-surface2); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
}
.trust-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med);
}
.trust-card:hover {
  border-color: color-mix(in srgb, var(--c-teal) 40%, transparent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.trust-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-teal-dim);
  border-radius: var(--r-lg);
  color: var(--c-teal);
  margin-bottom: var(--sp-5);
}
.trust-card h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--sp-3); }
.trust-card p  { font-size: var(--text-sm); color: var(--c-muted); line-height: 1.6; }

/* ============================================================
   16. PRICING
   ============================================================ */
.pricing-section { background: var(--c-bg); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
  align-items: start;
}
.pricing-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med);
  position: relative;
  display: flex; flex-direction: column;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-featured {
  border-color: var(--c-teal);
  background: color-mix(in srgb, var(--c-teal) 5%, var(--c-surface));
  box-shadow: 0 0 0 1px var(--c-teal), var(--shadow-lg);
  transform: translateY(-4px);
}
.pricing-featured:hover { transform: translateY(-8px); }
.pricing-popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--c-teal);
  color: var(--c-bg);
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 12px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.pricing-tier {
  font-size: var(--text-sm); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: var(--sp-4);
}
.pricing-price {
  font-size: var(--text-2xl); font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  color: var(--c-text);
  line-height: 1;
}
.pricing-price span { font-size: var(--text-base); font-weight: 500; color: var(--c-muted); }
.pricing-annual {
  font-size: var(--text-xs);
  color: var(--c-faint);
  margin: var(--sp-1) 0 var(--sp-4);
}
.pricing-desc {
  font-size: var(--text-sm); color: var(--c-muted);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--c-border2);
}
.pricing-features {
  list-style: none;
  display: flex; flex-direction: column; gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.pricing-features li {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  font-size: var(--text-sm); color: var(--c-muted);
}
.pricing-features svg { color: var(--c-teal); flex-shrink: 0; margin-top: 2px; }
.pricing-cta {
  display: block; text-align: center;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  font-weight: 600; font-size: var(--text-sm);
  transition: all var(--t-fast);
  margin-top: auto;
}
.pricing-featured .pricing-cta { background: var(--c-teal); color: var(--c-bg); }
.pricing-featured .pricing-cta:hover { background: var(--c-teal-h); transform: translateY(-1px); }

.enterprise-row {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding: var(--sp-6) var(--sp-8);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
}
.enterprise-row h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--sp-1); }
.enterprise-row p  { font-size: var(--text-sm); color: var(--c-muted); }

/* ============================================================
   17. FINAL CTA
   ============================================================ */
.cta-section {
  background: var(--c-surface2);
  border-top: 1px solid var(--c-border);
  padding-block: clamp(var(--sp-20), 10vw, var(--sp-32));
}
.cta-inner {
  max-width: var(--w-narrow);
  margin: 0 auto;
  text-align: center;
  padding: 0 clamp(var(--sp-6), 5vw, var(--sp-16));
}
.cta-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--c-teal);
  background: var(--c-teal-dim);
  border: 1px solid color-mix(in srgb, var(--c-teal) 25%, transparent);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-6);
}
.cta-headline {
  font-size: var(--text-3xl); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1.1;
  color: var(--c-text);
  margin-bottom: var(--sp-5);
}
.cta-headline span { display: block; color: var(--c-teal); font-style: italic; }
.cta-sub {
  font-size: var(--text-lg); color: var(--c-muted);
  margin: 0 auto var(--sp-8);
  max-width: 44ch; line-height: 1.65;
}
.cta-actions {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.cta-note { font-size: var(--text-xs); color: var(--c-faint); }

/* ============================================================
   18. FOOTER
   ============================================================ */
.footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border2);
  padding-block: var(--sp-20);
}
.footer-inner {
  max-width: var(--w-wide); margin: 0 auto;
  padding: 0 clamp(var(--sp-6), 5vw, var(--sp-16));
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--sp-4); }
.footer-tagline {
  font-size: var(--text-sm);
  color: var(--c-muted);
  max-width: 28ch;
  line-height: 1.6;
}
.footer-address { font-size: var(--text-xs); color: var(--c-faint); }
.footer-col h4 {
  font-size: var(--text-sm); font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--sp-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); list-style: none; }
.footer-col a {
  font-size: var(--text-sm);
  color: var(--c-muted);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--c-text); }

.footer-bottom {
  max-width: var(--w-wide); margin: 0 auto;
  padding: var(--sp-6) clamp(var(--sp-6), 5vw, var(--sp-16)) 0;
  border-top: 1px solid var(--c-border2);
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--c-faint);
}
.footer-badges { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.footer-badge {
  padding: 2px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  font-size: 10px; font-weight: 600;
  color: var(--c-faint);
}

/* ============================================================
   19. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .pipeline-flow {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: var(--sp-4);
  }
  .pipeline-connector { display: none; }
  .bento-card-lg, .bento-card-wide { grid-column: span 1; }
  .bento-grid    { grid-template-columns: repeat(2, 1fr); }
  .showcase-frame { grid-template-columns: 1fr; }
  .sw-sidebar    { display: none; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
}

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

  /* Condensed Product Window — NEVER display:none (Spec Anti-Pattern #12) */
  .hero-product { animation: none; transform: none; }
  .hint-card { display: none; }
  .product-window .wtab:not(.active) { display: none; }
  .product-window .win-table th:nth-child(4),
  .product-window .win-table td:nth-child(4) { display: none; }
  .product-window .win-actions { display: none; }
  .product-window { font-size: 10px; }

  .sw-kpi-row    { grid-template-columns: repeat(2, 1fr); }
  .sw-dash-grid  { grid-template-columns: 1fr; }
  .sw-dash-chart, .sw-dash-conf, .sw-dash-activity { grid-column: 1; grid-row: auto; }
  .bento-grid    { grid-template-columns: 1fr; }
  .bento-card-tall { grid-row: span 1; }
  .numbers-grid  { grid-template-columns: repeat(2, 1fr); }
  .number-card   { border-right: none; border-bottom: 1px solid var(--c-border); }
  .number-card:last-child { border-bottom: none; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .pricing-featured { transform: none; }
  .pricing-featured:hover { transform: translateY(-2px); }
  .footer-inner  { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}

@media (max-width: 480px) {
  .numbers-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section-title { font-size: var(--text-2xl); }
}

/* ============================================================
   DEMO MODAL
   ============================================================ */
.demo-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6);
  animation: demo-fade 200ms var(--ease-out);
}
.demo-modal[hidden] { display: none; }
@keyframes demo-fade { from { opacity: 0; } to { opacity: 1; } }
.demo-modal-backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, #000 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.demo-modal-card {
  position: relative;
  width: 100%; max-width: 480px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: clamp(var(--sp-6), 4vw, var(--sp-10));
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--sp-12));
  overflow-y: auto;
  animation: demo-rise 240ms var(--ease-out);
}
@keyframes demo-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.demo-modal-close {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  color: var(--c-muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.demo-modal-close:hover { background: var(--c-surface2); color: var(--c-text); }
.demo-modal-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 var(--sp-2);
  letter-spacing: -0.02em;
}
.demo-modal-sub {
  font-size: var(--text-sm);
  color: var(--c-muted);
  margin: 0 0 var(--sp-6);
  line-height: 1.55;
}
.demo-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.demo-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3);
}
.demo-field { display: flex; flex-direction: column; gap: 6px; }
.demo-field span {
  font-size: var(--text-xs); font-weight: 600;
  color: var(--c-muted);
}
.demo-field span sup { color: var(--c-teal); }
.demo-field span em { color: var(--c-faint); font-style: normal; font-weight: 500; }
.demo-field input, .demo-field textarea {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--c-text);
  transition: border-color var(--t-fast), background var(--t-fast);
  width: 100%;
}
.demo-field textarea { resize: vertical; min-height: 72px; }
.demo-field input:focus, .demo-field textarea:focus {
  outline: none;
  border-color: var(--c-teal);
  background: var(--c-bg);
}
.demo-field input:invalid:not(:placeholder-shown) {
  border-color: color-mix(in srgb, var(--c-red) 50%, var(--c-border));
}
.demo-form-submit {
  background: var(--c-teal);
  color: var(--c-bg);
  border: none;
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-6);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  margin-top: var(--sp-2);
}
.demo-form-submit:hover { background: var(--c-teal-h); transform: translateY(-1px); }
.demo-form-note {
  font-size: 11px;
  color: var(--c-faint);
  margin: 0;
  text-align: center;
}
.demo-modal-success { text-align: center; padding: var(--sp-4) 0; }
.demo-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-teal-dim);
  color: var(--c-teal);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-5);
  border: 1px solid color-mix(in srgb, var(--c-teal) 30%, transparent);
}
.demo-modal-success .demo-form-submit { display: inline-block; min-width: 160px; }

@media (max-width: 480px) {
  .demo-form-row { grid-template-columns: 1fr; }
}
