*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0f0f0d;
  --paper: #f5f2ec;
  --paper2: #ede9e0;
  --accent: #1a3a2a;
  --accent2: #2d6a4a;
  --warm: #c8b89a;
  --muted: #7a7468;
  --red: #c0392b;
  --amber: #d47c0a;
  --green: #1a6b3a;
  --white: #faf9f6;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 24px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245,242,236,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.logo {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent2); font-style: italic; }

.logo-by {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--warm);
  letter-spacing: 0.04em;
  margin-left: 12px;
  font-weight: 400;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500 !important;
  font-size: 15px !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent) !important; color: var(--white) !important; }

/* NAV DROPDOWN */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-trigger::after {
  content: '\25BE';
  font-size: 11px;
  opacity: 0.5;
  transition: transform 0.2s;
}
.nav-dropdown.open .nav-dropdown-trigger::after,
.nav-dropdown:hover .nav-dropdown-trigger::after {
  transform: rotate(180deg);
}
nav .nav-links .nav-dropdown .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  padding: 8px;
  min-width: 200px;
  z-index: 99999;
}
nav .nav-links .nav-dropdown.open > .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  position: relative;
  padding: 10px 16px;
  font-size: 14px !important;
  color: var(--ink) !important;
  border-radius: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: var(--paper2);
}

/* Mega-Dropdown (Solutions: 2 columns — By outcome + By use case) */
.nav-dropdown-menu--mega {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  min-width: 540px !important;
  padding: 20px 22px !important;
}
nav .nav-links .nav-dropdown.nav-dropdown--mega .nav-dropdown-menu--mega {
  display: none !important;
}
nav .nav-links .nav-dropdown.nav-dropdown--mega.open > .nav-dropdown-menu--mega {
  display: grid !important;
}
.nav-mega-col { display: flex; flex-direction: column; }
.nav-mega-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-mega-col a {
  padding: 6px 10px !important;
  font-size: 13px !important;
}
.nav-mega-more {
  font-size: 12px !important;
  color: var(--muted) !important;
  padding-top: 10px !important;
  margin-top: 6px !important;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Mobile labels inside Solutions section */
.mobile-menu .mobile-menu-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 4px 16px;
  padding: 0;
}

/* MOBILE MENU COLLAPSIBLE SECTIONS */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm);
  padding: 20px 0 8px;
  cursor: pointer;
  font-family: inherit;
}
.mobile-menu-toggle::after {
  content: '+';
  font-size: 16px;
  font-weight: 300;
  transition: transform 0.2s;
}
.mobile-menu-toggle.open::after {
  content: '\2212';
}
.mobile-menu-section {
  display: none;
}
.mobile-menu-section.open {
  display: block;
}

/* BREADCRUMB */
.breadcrumb {
  background: var(--paper);
  padding: 16px 56px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  margin-top: 73px;
  position: relative;
  z-index: 0;
}
.breadcrumb-inner {
  max-width: 1240px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-link:hover {
  color: var(--ink);
}
.breadcrumb-sep {
  margin: 0 8px;
  color: var(--warm);
  opacity: 0.5;
}
.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* LANG SWITCH */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--warm);
  cursor: pointer;
  padding: 4px 6px;
  letter-spacing: 0.04em;
  transition: color 0.2s, font-weight 0.2s;
  line-height: 1;
  text-decoration: none;
}

.lang-btn.active {
  color: var(--ink);
  font-weight: 600;
}

.lang-btn:hover:not(.active) {
  color: var(--muted);
}

.nav-lang-mobile {
  display: none;
  align-items: center;
  gap: 4px;
}

.lang-sep {
  font-size: 12px;
  color: var(--warm);
  opacity: 0.5;
  user-select: none;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.hero-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--warm);
}

h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 820px;
  margin-bottom: 28px;
}

h1 em {
  font-style: italic;
  color: var(--accent2);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }

.btn-secondary {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.btn-secondary:hover { color: var(--ink); }

.hero-share {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

.hero-share a {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-trusted {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.trusted-label {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 16px;
  text-align: center;
}

.trusted-logos {
  display: flex;
  align-items: center;
  gap: 16px 28px;
  flex-wrap: wrap;
}

.trusted-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  color: var(--warm);
  letter-spacing: 0.03em;
}

/* DIVIDER */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--warm), transparent);
  opacity: 0.4;
}

/* HISTORY SECTION */
.history {
  background: var(--paper2);
  color: var(--ink);
  padding: 100px 48px;
}

.history-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.history-item {
  padding: 36px;
  border: 1px solid rgba(15,15,13,0.08);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.35);
}

.history-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent2);
  opacity: 0.55;
}

.history-year {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  color: rgba(15,15,13,0.18);
  line-height: 1;
  margin-bottom: 16px;
}

.history-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(15,15,13,0.72);
}

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

.history-mission {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.history-mission p {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.5;
  color: rgba(15,15,13,0.88);
  font-style: italic;
}

.history-mission p strong {
  color: var(--accent2);
  font-style: normal;
}

/* PROBLEMS */
.problems {
  padding: 100px 48px;
  max-width: 1240px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--warm);
  opacity: 0.4;
  max-width: 60px;
}

h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 60px;
  font-weight: 300;
}

.problems-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 48px;
  overflow-x: auto;
}

.tab {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: 'DM Sans', sans-serif;
}

.tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 500;
}

.tab-content { display: none; }
.tab-content.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.problem-stat {
  padding: 40px;
  background: var(--paper2);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
}

.stat-number {
  font-family: 'Instrument Serif', serif;
  font-size: 72px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}

.stat-number span { color: var(--accent2); }

.stat-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 280px;
}

.problem-desc h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.problem-desc p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 300;
}

.problem-cta {
  font-size: 14px;
  color: var(--accent2);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* SOLUTIONS */
.solutions {
  background: var(--ink);
  padding: 100px 48px;
}

.solutions-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.solutions .section-label { color: rgba(255,255,255,0.4); }
.solutions .section-label::after { background: var(--warm); }

.solutions h2 { color: var(--white); }
.solutions .section-sub { color: rgba(255,255,255,0.5); }

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
}

.solution-card {
  background: var(--ink);
  padding: 40px;
  transition: background 0.2s;
  cursor: default;
}

.solution-card:hover { background: #1a1a18; }

.solution-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 24px;
}

.solution-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.solution-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  font-weight: 300;
}

.solution-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm);
  opacity: 0.7;
}

/* PROCESS */
.process {
  padding: 100px 48px;
  max-width: 1240px;
  margin: 0 auto;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 60px;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  align-items: start;
}

.step-num {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  color: rgba(0,0,0,0.08);
  line-height: 1;
  text-align: right;
  padding-top: 4px;
}

.step-content h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.step-content p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 580px;
  font-weight: 300;
}

/* TESTIMONIALS */
.testimonials {
  background: var(--paper2);
  padding: 100px 48px;
}

.testimonials-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.testimonial {
  background: var(--white);
  padding: 36px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
}

.quote-mark {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  color: var(--warm);
  line-height: 0.8;
  margin-bottom: 20px;
  opacity: 0.6;
}

.testimonial p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 28px;
  font-weight: 300;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 16px;
  color: var(--muted);
  flex-shrink: 0;
}

.author-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.author-title {
  font-size: 12px;
  color: var(--muted);
}

/* FAQ */
.faq {
  padding: 100px 48px;
  max-width: 1240px;
  margin: 0 auto;
}

.faq-list {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.faq-question {
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 24px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
  font-weight: 300;
}

/* CTA */
.cta-section {
  background: var(--ink);
  padding: 100px 48px;
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 20px;
}

.cta-section h2 em {
  font-style: italic;
  color: rgba(255,255,255,0.5);
}

.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
  line-height: 1.6;
  font-weight: 300;
}

.cta-section .btn-primary,
.roi-cta .btn-primary,
.uc-cta .btn-primary,
.cs-cta .btn-primary,
.cso-cta .btn-primary,
[id="contact"] .btn-primary {
  background: var(--white) !important;
  color: var(--ink) !important;
}
.cta-section .btn-primary:hover,
.roi-cta .btn-primary:hover,
.uc-cta .btn-primary:hover,
.cs-cta .btn-primary:hover,
.cso-cta .btn-primary:hover,
[id="contact"] .btn-primary:hover {
  background: var(--paper) !important;
  color: var(--ink) !important;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.cta-form input,
.cta-form select {
  padding: 14px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  font-size: 15px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.cta-form input::placeholder { color: rgba(255,255,255,0.3); }
.cta-form input:focus,
.cta-form select:focus { border-color: rgba(255,255,255,0.3); }

.cta-form select {
  color: rgba(255,255,255,0.5);
  -webkit-appearance: none;
}

.cta-form select option { background: #1a1a18; color: white; }

.btn-submit {
  background: var(--white);
  color: var(--ink);
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover { opacity: 0.9; transform: translateY(-1px); }

.form-note {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  margin-top: 8px;
}

/* FOOTER */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

.footer-logo span { font-style: italic; color: rgba(255,255,255,0.6); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.5); }

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.2);
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-label { animation: fadeUp 0.5s ease both; }
h1 { animation: fadeUp 0.5s 0.1s ease both; }
.hero-sub { animation: fadeUp 0.5s 0.2s ease both; }
.hero-actions { animation: fadeUp 0.5s 0.3s ease both; }
.hero-trusted { animation: fadeUp 0.5s 0.4s ease both; }

/* RISK SIGNAL WIDGET */
.risk-widget {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.1);
  overflow: hidden;
  animation: fadeUp 0.6s 0.5s ease both;
}

.widget-header {
  padding: 14px 16px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.widget-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #4ade80;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.widget-body { padding: 16px; }

.risk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.risk-row:last-child { border-bottom: none; }

.risk-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
}

.risk-sub {
  font-size: 10px;
  color: var(--muted);
}

.risk-score {
  font-size: 13px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 12px;
}

.risk-score.red { background: #fef2f2; color: var(--red); }
.risk-score.amber { background: #fffbeb; color: var(--amber); }
.risk-score.green { background: #f0fdf4; color: var(--green); }

.widget-footer {
  padding: 12px 16px;
  background: rgba(0,0,0,0.02);
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-relative {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 120px 48px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* WIDGET — BIGGER DASHBOARD */
.widget-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.06);
}

.widget-kpi {
  background: var(--white);
  padding: 12px 10px;
  text-align: center;
}

.widget-kpi-value {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 2px;
}

.widget-kpi-value.kpi-red { color: var(--red); }
.widget-kpi-value.kpi-amber { color: var(--amber); }
.widget-kpi-value.kpi-green { color: var(--green); }

.widget-kpi-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
}

.widget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.widget-table thead th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
  padding: 8px 6px 6px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.widget-table tbody td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  vertical-align: middle;
}

.widget-table .risk-name {
  font-size: 11px;
  font-weight: 500;
}

.widget-table .risk-sub {
  font-size: 10px;
  color: var(--muted);
}

.widget-table .risk-score {
  font-size: 11px;
  padding: 2px 6px;
  margin-left: 0;
}

.trend-arrow {
  font-size: 10px;
  font-weight: 600;
}

.trend-arrow.trend-up { color: var(--red); }
.trend-arrow.trend-down { color: var(--green); }
.trend-arrow.trend-stable { color: var(--amber); }

/* BEFORE / AFTER */
.before-after {
  background: var(--paper);
  padding: 100px 48px;
}

.before-after-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.ba-toggle {
  display: flex;
  gap: 0;
  margin: 40px 0 32px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}

.ba-btn {
  padding: 12px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: all 0.25s;
}

.ba-btn.active {
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
}

.ba-panel {
  display: none;
}

.ba-panel.active {
  display: block;
  animation: fadeUp 0.4s ease both;
}

.ba-mockup {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(0,0,0,0.08);
  overflow: hidden;
}

.ba-mockup-header {
  padding: 12px 16px;
  background: rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ba-file-icon {
  font-size: 14px;
}

.ba-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  margin-left: auto;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ba-tag-red {
  background: #fef2f2;
  color: var(--red);
}

.ba-tag-green {
  background: #f0fdf4;
  color: var(--green);
}

.ba-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ba-table thead th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.ba-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 13px;
  color: var(--ink);
}

.ba-cell-warn {
  color: var(--red);
  font-weight: 500;
  font-style: italic;
}

.ba-cell-stale {
  color: var(--amber);
  font-size: 12px;
}

.ba-cell-empty {
  color: var(--muted);
  opacity: 0.4;
}

.ba-signal {
  font-size: 12px;
  color: var(--muted);
}

.ba-bottom-row {
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0,0,0,0.05);
  background: rgba(0,0,0,0.015);
}

.ba-effort-badge {
  font-size: 11px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0,0,0,0.04);
}

.ba-effort-good {
  background: #f0fdf4;
  color: var(--green);
}

.ba-messy .ba-table tbody tr:nth-child(odd) {
  background: rgba(192,57,43,0.03);
}

/* PRODUCT PREVIEW */
.product-preview {
  background: var(--ink);
  padding: 100px 48px;
}

.product-preview-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.product-preview .section-label { color: rgba(255,255,255,0.4); }
.product-preview .section-label::after { background: var(--warm); }
.product-preview .section-sub { color: rgba(255,255,255,0.5); }

.preview-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.preview-tab {
  padding: 12px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: transparent;
  color: rgba(255,255,255,0.4);
  transition: all 0.25s;
}

.preview-tab.active {
  color: var(--white);
  border-bottom-color: var(--white);
  font-weight: 500;
}

.preview-screen {
  display: none;
}

.preview-screen.active {
  display: block;
  animation: fadeUp 0.4s ease both;
}

.preview-mockup {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}

.preview-mockup-bar {
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pmb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.pmb-title {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-left: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
}

.preview-table thead th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  text-align: left;
  padding: 12px 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.preview-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.preview-bar-col {
  min-width: 140px;
}

.score-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.score-bar-fill.red-fill { background: var(--red); }
.score-bar-fill.amber-fill { background: var(--amber); }
.score-bar-fill.green-fill { background: var(--green); }

/* Early Warning Cards */
.ew-cards {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ew-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  transition: background 0.2s;
}

.ew-card:hover {
  background: rgba(255,255,255,0.04);
}

.ew-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.4;
}

.ew-project {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 4px;
}

.ew-signal {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin-bottom: 8px;
  font-weight: 300;
}

.ew-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ew-time {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

/* Report Mockup */
.report-mockup {
  padding: 24px;
}

.report-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}

.report-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: var(--white);
  font-style: italic;
}

.report-meta {
  margin-left: auto;
  text-align: right;
}

.report-title-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
}

.report-date {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

.report-section {
  margin-bottom: 20px;
}

.report-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  margin-bottom: 8px;
}

.report-text {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  font-weight: 300;
}

.report-highlights {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.report-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.report-highlight.red-hl {
  background: rgba(192,57,43,0.1);
  border: 1px solid rgba(192,57,43,0.15);
}

.report-highlight.amber-hl {
  background: rgba(212,124,10,0.1);
  border: 1px solid rgba(212,124,10,0.15);
}

.rh-score {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  color: var(--white);
  min-width: 28px;
}

.rh-name {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.rh-delta {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

.report-list {
  list-style: none;
  padding: 0;
}

.report-list li {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  padding: 4px 0 4px 16px;
  position: relative;
  font-weight: 300;
}

.report-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent2);
}

/* WALKTHROUGH */
.walkthrough {
  background: var(--paper);
  padding: 100px 48px;
}

.walkthrough-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.wt-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 48px 0 32px;
}

.wt-step {
  padding: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--white);
}

.wt-step:hover {
  border-color: rgba(0,0,0,0.12);
}

.wt-step.active {
  border-color: var(--accent2);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.wt-step-num {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  color: rgba(0,0,0,0.08);
  line-height: 1;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.wt-step.active .wt-step-num {
  color: var(--accent2);
}

.wt-step-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s;
}

.wt-step.active .wt-step-label {
  color: var(--ink);
}

.wt-step-progress {
  margin-top: 12px;
  height: 2px;
  background: rgba(0,0,0,0.06);
  border-radius: 1px;
  overflow: hidden;
}

.wt-step-bar {
  width: 0%;
  height: 100%;
  background: var(--accent2);
  border-radius: 1px;
  transition: width 0.1s linear;
}

.wt-step.active .wt-step-bar {
  animation: wtProgress 4s linear forwards;
}

@keyframes wtProgress {
  from { width: 0%; }
  to { width: 100%; }
}

.wt-screen {
  display: none;
}

.wt-screen.active {
  display: block;
  animation: fadeUp 0.4s ease both;
}

.wt-visual {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(0,0,0,0.06);
  padding: 40px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Walkthrough Step 1: Data flows */
.wt-flow-sources {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wt-source {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 6px;
  background: var(--paper);
}

.wt-source-icon {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent2);
  background: rgba(45,106,74,0.08);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.wt-source-label {
  font-size: 12px;
  color: var(--muted);
}

.wt-flow-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 24px;
}

.wt-arrow {
  font-size: 18px;
  color: var(--accent2);
  opacity: 0.5;
}

.wt-flow-target {
  text-align: center;
  padding: 24px;
  border: 2px solid var(--accent2);
  border-radius: 12px;
  background: rgba(45,106,74,0.04);
}

.wt-target-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.wt-target-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

/* Walkthrough Step 2: Analysis */
.wt-analysis {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wt-scan-row {
  display: grid;
  grid-template-columns: 160px 1fr 40px;
  gap: 12px;
  align-items: center;
}

.wt-scan-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.wt-scan-bar {
  height: 6px;
  background: rgba(0,0,0,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.wt-scan-fill {
  height: 100%;
  background: var(--accent2);
  border-radius: 3px;
  animation: scanGrow 1s ease both;
}

@keyframes scanGrow {
  from { width: 0% !important; }
}

.wt-scan-val {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

/* Walkthrough Step 3: Alerts */
.wt-alerts {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wt-alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  background: var(--paper);
}

.wt-alert-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.wt-alert-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wt-alert-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 300;
}

/* Walkthrough Step 4: Report */
.wt-report {
  width: 100%;
  max-width: 460px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  overflow: hidden;
}

.wt-report-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.wt-report-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--accent2);
  margin-bottom: 4px;
}

.wt-report-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.wt-report-date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.wt-report-body {
  padding: 16px 20px;
}

.wt-report-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.wt-report-kpi {
  text-align: center;
  padding: 8px;
  background: var(--paper);
  border-radius: 6px;
}

.wt-rkpi-val {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}

.wt-rkpi-val.kpi-red { color: var(--red); }
.wt-rkpi-val.kpi-amber { color: var(--amber); }
.wt-rkpi-val.kpi-green { color: var(--green); }

.wt-rkpi-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 2px;
}

.wt-report-line {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 12px 0;
}

.wt-report-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 12px;
}

.wt-report-badge {
  font-size: 11px;
  color: var(--green);
  background: #f0fdf4;
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-block;
}

/* Walkthrough animations */
.wt-anim-pop {
  animation: wtPop 0.5s ease both;
}

@keyframes wtPop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.wt-anim-flow {
  animation: wtFlow 1.2s ease infinite;
}

@keyframes wtFlow {
  0%, 100% { opacity: 0.3; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

.wt-anim-scan {
  animation: wtScanIn 0.6s ease both;
}

@keyframes wtScanIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.wt-anim-slide {
  animation: wtSlideIn 0.5s ease both;
}

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

.wt-anim-fade {
  animation: wtFadeIn 0.8s ease both;
}

@keyframes wtFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── USE CASES SHOWCASE ── */
.uc-showcase {
  background: var(--paper2);
  padding: 100px 48px;
}
.uc-showcase-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.uc-showcase h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 48px;
}
.uc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.uc-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 28px 28px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.uc-card:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.uc-card-stat {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 90px;
  text-align: center;
}
.uc-card-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.uc-card-body p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.5;
}
.uc-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent2);
  transition: transform 0.2s;
  display: inline-block;
}
.uc-card:hover .uc-card-link {
  transform: translateX(4px);
}

/* ── INDUSTRIES SHOWCASE ── */
.ind-showcase {
  background: var(--ink);
  padding: 100px 48px;
}
.ind-showcase-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.ind-showcase h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--white);
  margin-bottom: 8px;
}
.ind-showcase h2 em {
  font-style: italic;
  color: var(--warm);
}
.ind-showcase .section-label { color: rgba(255,255,255,0.4); }
.ind-showcase .section-label::after { background: var(--warm); }
.ind-showcase .section-sub { color: rgba(255,255,255,0.5); margin-bottom: 48px; }
.ind-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ind-card {
  display: block;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid #3d7fff;
  border-radius: 10px;
  padding: 20px 20px;
  text-decoration: none;
  color: var(--white);
  transition: background 0.25s, transform 0.25s;
}
.ind-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(4px);
}
.ind-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ind-card-icon {
  font-size: 20px;
  line-height: 1;
}
.ind-card-name {
  font-size: 15px;
  font-weight: 600;
}
.ind-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.ind-all-link {
  text-align: center;
  margin-top: 36px;
}
.ind-all-link .btn-secondary {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}
.ind-all-link .btn-secondary:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

/* ── ROI BANNER ── */
.roi-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #1a5a3a 100%);
  padding: 48px;
}
.roi-banner-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.roi-banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
}
.roi-banner-icon {
  font-size: 36px;
  flex-shrink: 0;
}
.roi-banner h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 4px;
}
.roi-banner p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}
.roi-banner-cta {
  background: var(--white);
  color: var(--ink);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.roi-banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.roi-callout {
  text-align: center;
  padding: 32px 0;
}
.roi-callout p {
  font-size: 16px;
  color: var(--muted);
}
.roi-callout a {
  color: var(--accent2);
  font-weight: 600;
  text-decoration: none;
}
.roi-callout a:hover {
  text-decoration: underline;
}

/* ── CASE STUDIES SHOWCASE ── */
.case-studies-showcase {
  background: var(--paper2);
  padding: 100px 48px;
}
.cs-showcase-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.cs-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.cs-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 28px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.cs-card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cs-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(45,106,74,0.08);
  color: var(--accent2);
  letter-spacing: 0.02em;
}
.cs-card-stat {
  font-family: 'Instrument Serif', serif;
  font-size: 42px;
  line-height: 1;
  color: var(--accent2);
  margin-bottom: 4px;
}
.cs-card-stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.cs-card h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 16px;
  flex: 1;
}
.cs-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent2);
  transition: transform 0.2s;
  display: inline-block;
}
.cs-card:hover .cs-card-link {
  transform: translateX(4px);
}
.cs-all-link {
  text-align: center;
  margin-top: 36px;
}

/* ── SHARE INTERNALLY ── */
.share-section {
  background: var(--paper);
  padding: 100px 48px;
}
.share-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.share-section h2 em {
  color: var(--accent2);
  font-style: italic;
}
.share-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.share-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 28px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.share-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.share-card-icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.share-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.share-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.share-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent2);
  display: inline-block;
  transition: transform 0.2s;
}
.share-card:hover .share-card-link {
  transform: translateX(4px);
}

/* ── DETECT ANALYZE ACT ── */
.daa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
}
.daa-card {
  background: var(--ink);
  padding: 40px;
}
.daa-card:hover { background: #1a1a18; }
.daa-num {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  margin-bottom: 12px;
}
.daa-persona-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(45,106,74,0.15);
  color: var(--accent2);
  margin-bottom: 20px;
}
.daa-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 12px;
}
.daa-lead {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 300;
}
.daa-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.daa-features li {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.daa-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent2);
}

/* ── SCENARIO MOCKUP ── */
.scenario-mockup { padding: 24px; }
.scenario-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.scenario-project { font-weight: 600; font-size: 16px; color: var(--ink); }
.scenario-tag { font-size: 12px; color: var(--muted); }
.scenario-bars { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.scenario-row { display: grid; grid-template-columns: 90px 1fr 180px; gap: 12px; align-items: center; }
.scenario-label { font-size: 13px; font-weight: 500; color: var(--ink); }
.scenario-bar-track { height: 24px; background: rgba(0,0,0,0.04); border-radius: 4px; overflow: hidden; }
.scenario-bar-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.scenario-value { font-size: 12px; font-weight: 500; }
.scenario-drivers { padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.08); }
.scenario-driver-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.scenario-driver-row { display: grid; grid-template-columns: 180px 1fr 80px; gap: 12px; align-items: center; padding: 6px 0; font-size: 12px; color: var(--muted); }
.scenario-impact-bar { height: 6px; background: rgba(0,0,0,0.06); border-radius: 3px; overflow: hidden; }
.scenario-impact-fill { height: 100%; background: var(--accent2); border-radius: 3px; }
.scenario-impact-pct { font-size: 11px; color: var(--muted); text-align: right; }

/* ── AI RECOMMENDATIONS MOCKUP ── */
.ai-reco-mockup { padding: 24px; }
.ai-reco-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.ai-reco-avatar { width: 36px; height: 36px; background: var(--accent2); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Instrument Serif', serif; font-size: 18px; font-weight: 600; }
.ai-reco-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.ai-reco-status { font-size: 12px; color: var(--muted); }
.ai-reco-list { display: flex; flex-direction: column; gap: 12px; }
.ai-reco-item { padding: 16px; border-radius: 8px; border-left: 4px solid; }
.ai-reco-critical { background: rgba(192,57,43,0.04); border-left-color: var(--red); }
.ai-reco-high { background: rgba(212,124,10,0.04); border-left-color: var(--amber); }
.ai-reco-watch { background: rgba(45,106,74,0.04); border-left-color: var(--accent2); }
.ai-reco-priority { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.ai-reco-critical .ai-reco-priority { color: var(--red); }
.ai-reco-high .ai-reco-priority { color: var(--amber); }
.ai-reco-watch .ai-reco-priority { color: var(--accent2); }
.ai-reco-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.ai-reco-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; }
.ai-reco-impact { font-size: 12px; font-weight: 500; color: var(--accent2); }

/* ── TECHNOLOGY TEASER ── */
.tech-teaser {
  background: var(--ink);
  padding: 100px 48px;
}
.tech-teaser-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.tech-teaser h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--white);
  margin-bottom: 16px;
}
.tech-teaser h2 em {
  font-style: italic;
  color: var(--warm);
}
.tech-teaser .section-label {
  color: rgba(255,255,255,0.4);
}
.tech-teaser .section-label::after {
  background: var(--warm);
}
.tech-teaser p {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 8px;
}
.tech-teaser .btn-primary {
  background: var(--white);
  color: var(--ink);
}
.tech-teaser .btn-primary:hover {
  background: var(--paper);
}
.tech-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tech-teaser-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.tech-teaser-card:hover {
  background: rgba(255,255,255,0.07);
}
.tech-teaser-icon {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--warm);
}
.tech-teaser-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.tech-teaser-card p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

@media (max-width: 900px) {
  .risk-widget {
    position: static;
    transform: none;
    width: 100%;
    max-width: 420px;
    margin: 48px auto 0;
  }
  nav { padding: 16px 24px; }
  .hero-relative, .problems, .solutions-inner, .process, .faq, .cta-inner { padding-left: 24px; padding-right: 24px; }
  .history { padding: 60px 24px; }
  .history-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .case-studies-showcase { padding: 60px 24px; }
  .cs-cards { grid-template-columns: 1fr; }
  .tech-teaser { padding: 60px 24px; }
  .tech-teaser-inner { grid-template-columns: 1fr; }
  .tech-teaser-grid { grid-template-columns: 1fr 1fr; }
  .tab-content.active { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  .nav-links { display: none; }
  .nav-lang-mobile { display: flex; }
  .logo-by { display: none; }

  /* Before/After */
  .before-after { padding: 60px 24px; }
  .ba-toggle { flex-direction: column; width: 100%; }
  .ba-btn { width: 100%; text-align: center; }
  .ba-table { font-size: 11px; }
  .ba-table thead th { padding: 8px 8px 6px; font-size: 9px; }
  .ba-table tbody td { padding: 8px; font-size: 11px; }
  .ba-bottom-row { flex-direction: column; }

  /* Product Preview */
  .product-preview { padding: 60px 24px; }
  .product-preview-inner { padding-left: 0; padding-right: 0; }
  .preview-tabs { overflow-x: auto; }
  .preview-tab { white-space: nowrap; padding: 12px 16px; font-size: 13px; }
  .preview-table thead th, .preview-table tbody td { padding: 8px; font-size: 11px; }
  .preview-bar-col { min-width: 80px; }
  .ew-cards { padding: 12px; }
  .report-mockup { padding: 16px; }
  .report-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .report-meta { margin-left: 0; text-align: left; }

  /* Problems tabs */
  .problems-tabs { -webkit-overflow-scrolling: touch; flex-wrap: wrap; }
  .tab { padding: 10px 12px; font-size: 11px; flex: 1 1 auto; text-align: center; }

  /* Walkthrough */
  .walkthrough { padding: 60px 24px; }
  .wt-steps { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .wt-visual { padding: 24px 16px; min-height: 220px; }
  .wt-flow-sources { gap: 6px; }
  .wt-source { padding: 6px 10px; }
  .wt-flow-arrows { margin: 0 12px; }
  .wt-flow-target { padding: 16px; }
  .wt-scan-row { grid-template-columns: 100px 1fr 36px; gap: 8px; }
  .wt-scan-label { font-size: 10px; }
  .wt-report-summary { grid-template-columns: repeat(2, 1fr); }
  .widget-table { font-size: 10px; }
  .widget-table thead th { font-size: 8px; padding: 6px 4px; }
  .widget-table tbody td { padding: 6px 4px; }

  /* Use Cases Showcase */
  .uc-showcase { padding: 60px 24px; }
  .uc-cards { grid-template-columns: repeat(2, 1fr); }
  .uc-card { padding: 20px; gap: 16px; }
  .uc-card-stat { font-size: 36px; min-width: 70px; }

  /* Industries Showcase */
  .ind-showcase { padding: 60px 24px; }
  .ind-cards { grid-template-columns: repeat(2, 1fr); }

  .roi-banner { padding: 32px 24px; }
  .roi-banner-inner { flex-direction: column; text-align: center; }
  .roi-banner-content { flex-direction: column; text-align: center; }
  .roi-banner-cta { width: 100%; text-align: center; }
  .share-section { padding: 60px 24px; }
  .share-cards { grid-template-columns: 1fr; }
  .daa-grid { grid-template-columns: repeat(2, 1fr); }
  .scenario-row { grid-template-columns: 80px 1fr; gap: 8px; }
  .scenario-value { grid-column: 1 / -1; }
  .scenario-driver-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .scenario-driver-row span:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .ind-cards { grid-template-columns: 1fr; }
  .uc-cards { grid-template-columns: 1fr; }
  .daa-grid { grid-template-columns: 1fr; }
}

/* ── HAMBURGER MENU ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: rgba(245,242,236,0.98);
  backdrop-filter: blur(16px);
  padding: 80px 32px 40px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent2); }
.mobile-menu a.mobile-cta {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  border-radius: 8px;
  margin-top: 16px;
  border-bottom: none;
  padding: 16px;
  font-weight: 600;
}
.mobile-menu a.mobile-cta:hover { background: var(--accent); }
.mobile-menu-divider {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm);
  padding: 20px 0 8px;
  border-bottom: none;
}

@media (max-width: 900px) {
  .hamburger { display: block; }
}

/* ============================================================
   PRODUCT SECTION — "See it in action" (Apple-style scroll)
   ============================================================ */

/* Theme tokens — default: Dark (ink). Modifiers: --light (paper), --warm (paper2) */
.product-section {
  --ps-bg: var(--ink);
  --ps-text: var(--white);
  --ps-text-label: rgba(255,255,255,0.4);
  --ps-text-sub: rgba(255,255,255,0.55);
  --ps-text-muted: rgba(255,255,255,0.72);
  --ps-text-dim: rgba(255,255,255,0.62);
  --ps-text-faint: rgba(255,255,255,0.22);
  --ps-jumps-label: rgba(255,255,255,0.45);
  --ps-jump-border: rgba(255,255,255,0.18);
  --ps-jump-color: rgba(255,255,255,0.75);
  --ps-jump-hover-border: rgba(255,255,255,0.5);
  --ps-jump-hover-bg: rgba(255,255,255,0.05);
  --ps-jump-active-bg: var(--white);
  --ps-jump-active-color: var(--ink);

  background: var(--ps-bg);
  color: var(--ps-text);
  padding: clamp(64px, 10vw, 100px) clamp(16px, 4vw, 48px);
}

.product-section--light {
  --ps-bg: var(--paper);
  --ps-text: var(--ink);
  --ps-text-label: rgba(15,15,13,0.5);
  --ps-text-sub: rgba(15,15,13,0.62);
  --ps-text-muted: rgba(15,15,13,0.75);
  --ps-text-dim: rgba(15,15,13,0.6);
  --ps-text-faint: rgba(15,15,13,0.22);
  --ps-jumps-label: rgba(15,15,13,0.5);
  --ps-jump-border: rgba(15,15,13,0.14);
  --ps-jump-color: rgba(15,15,13,0.72);
  --ps-jump-hover-border: rgba(15,15,13,0.4);
  --ps-jump-hover-bg: rgba(15,15,13,0.04);
  --ps-jump-active-bg: var(--ink);
  --ps-jump-active-color: var(--white);
}

.product-section--warm {
  --ps-bg: var(--paper2);
  --ps-text: var(--ink);
  --ps-text-label: rgba(15,15,13,0.5);
  --ps-text-sub: rgba(15,15,13,0.62);
  --ps-text-muted: rgba(15,15,13,0.75);
  --ps-text-dim: rgba(15,15,13,0.6);
  --ps-text-faint: rgba(15,15,13,0.22);
  --ps-jumps-label: rgba(15,15,13,0.5);
  --ps-jump-border: rgba(15,15,13,0.14);
  --ps-jump-color: rgba(15,15,13,0.72);
  --ps-jump-hover-border: rgba(15,15,13,0.4);
  --ps-jump-hover-bg: rgba(15,15,13,0.04);
  --ps-jump-active-bg: var(--ink);
  --ps-jump-active-color: var(--white);
}

.product-section .section-label { color: var(--ps-text-label); }
.product-section .section-sub { color: var(--ps-text-sub); }

.product-section h2 {
  color: var(--ps-text);
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 900px;
}

.product-jumps {
  display: flex;
  gap: 8px;
  margin: 40px 0 56px;
  flex-wrap: wrap;
  align-items: center;
}

.product-jumps-label {
  font-size: 12px;
  color: var(--ps-jumps-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-right: 8px;
}

.product-jump {
  background: transparent;
  border: 1px solid var(--ps-jump-border);
  color: var(--ps-jump-color);
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.product-jump:hover {
  border-color: var(--ps-jump-hover-border);
  color: var(--ps-text);
  background: var(--ps-jump-hover-bg);
}

.product-scroll {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
}

.product-sticky {
  position: sticky;
  top: 130px;
  align-self: start;
}

.product-visual-wrap {
  position: relative;
  width: 100%;
  min-height: 680px;
}

.product-visual {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(6px);
}

.product-visual.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.product-steps {
  display: flex;
  flex-direction: column;
  gap: 180px;
  padding: 60px 0 240px;
}

.product-step {
  display: block;
  scroll-margin-top: 100px;
  position: relative;
  transition: opacity 0.3s ease;
}

.product-step.highlight::before {
  content: '';
  position: absolute;
  left: -20px;
  top: -10px;
  bottom: -10px;
  width: 3px;
  background: #4ade80;
  border-radius: 2px;
  animation: highlightPulse 2.4s ease-out;
}

@keyframes highlightPulse {
  0% { opacity: 0; transform: scaleY(0.5); }
  15% { opacity: 1; transform: scaleY(1); box-shadow: 0 0 20px rgba(74,222,128,0.6); }
  100% { opacity: 0; transform: scaleY(1); box-shadow: 0 0 0 rgba(74,222,128,0); }
}

.product-step .step-number {
  font-family: 'Instrument Serif', serif;
  font-size: 44px;
  line-height: 1;
  color: var(--ps-text-faint);
  margin-bottom: 18px;
}

.product-step h3 {
  color: var(--ps-text);
  font-family: 'Instrument Serif', serif;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 460px;
}

.product-step p {
  color: var(--ps-text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 480px;
}

.product-step ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 480px;
}

.product-step li {
  color: var(--ps-text-dim);
  font-size: 14px;
  line-height: 1.6;
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}

.product-step li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: 500;
}

/* ---------- Visual 1: Alert Card ---------- */
.av-alert {
  width: 100%;
  max-width: 500px;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.1);
}

.av-alert-header {
  background: #fef2f2;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(192,57,43,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.av-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--red);
}

.av-alert-badge .live-dot { background: var(--red); width: 7px; height: 7px; }

.av-alert-time { font-size: 11px; color: var(--muted); }

.av-alert-body { padding: 20px; }

.av-alert-subject {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 6px;
}

.av-alert-project {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.av-alert-text {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 16px;
}

.av-alert-drivers {
  background: #faf9f6;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.av-alert-drivers-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.av-alert-driver {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink);
  padding: 4px 0;
}

.av-alert-driver-val { font-weight: 500; color: var(--red); }

.av-alert-confidence {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(45,106,74,0.07);
  border-radius: 8px;
  font-size: 12px;
  color: var(--accent2);
  line-height: 1.4;
}

.av-alert-footer {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #faf9f6;
}

.av-alert-btn {
  flex: 1;
  padding: 9px 12px;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.av-alert-btn.secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(0,0,0,0.12);
}

/* ---------- Visual 2: Evidence Panel ---------- */
.av-evidence {
  width: 100%;
  max-width: 500px;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.av-evidence-head {
  padding: 14px 20px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.av-evidence-head-title {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

.av-evidence-head-id {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
}

.av-evidence-step {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.av-evidence-step:last-of-type { border-bottom: 1px solid rgba(0,0,0,0.05); }

.av-evidence-step-num {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  font-size: 11px;
  line-height: 20px;
  margin-right: 10px;
  vertical-align: middle;
  font-weight: 500;
}

.av-evidence-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  vertical-align: middle;
}

.av-evidence-step-detail {
  margin-top: 8px;
  margin-left: 30px;
  padding: 9px 11px;
  background: #faf9f6;
  border-radius: 5px;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: #4a4638;
  line-height: 1.55;
}

.av-evidence-match {
  padding: 14px 20px;
  background: rgba(45,106,74,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.av-evidence-match-label {
  font-size: 12px;
  color: var(--accent2);
  font-weight: 600;
}

.av-evidence-match-conf {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  color: var(--accent2);
  line-height: 1;
}

/* ---------- Visual 3: Power BI Widget ---------- */
.av-powerbi {
  width: 100%;
  max-width: 580px;
  background: #f5f5f5;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.av-pbi-bar {
  background: #f3f2f1;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-size: 11px;
  color: #605e5c;
}

.av-pbi-bar-icon {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #f2c811 0%, #e8a800 100%);
  border-radius: 3px;
  flex-shrink: 0;
}

.av-pbi-canvas { background: var(--white); padding: 16px; }

.av-pbi-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.06);
  margin-bottom: 16px;
  border: 1px solid rgba(0,0,0,0.06);
}

.av-pbi-kpi {
  background: var(--white);
  padding: 14px 10px;
  text-align: center;
}

.av-pbi-kpi-val {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--ink);
}

.av-pbi-kpi-val.red { color: var(--red); }
.av-pbi-kpi-val.amber { color: var(--amber); }
.av-pbi-kpi-val.green { color: var(--green); }

.av-pbi-kpi-label {
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.av-pbi-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}

.av-pbi-table th {
  text-align: left;
  padding: 8px 10px 6px;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-weight: 600;
}

.av-pbi-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  color: var(--ink);
  font-size: 11.5px;
}

.av-pbi-table .score-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  min-width: 32px;
  text-align: center;
}

.av-pbi-table .score-pill.red { background: #fef2f2; color: var(--red); }
.av-pbi-table .score-pill.amber { background: #fffbeb; color: var(--amber); }
.av-pbi-table .score-pill.green { background: #f0fdf4; color: var(--green); }

.av-pbi-table .trend { font-size: 10.5px; font-weight: 600; }
.av-pbi-table .trend.up { color: var(--red); }
.av-pbi-table .trend.down { color: var(--green); }

/* ---------- Visual 4: Signal Sources ---------- */
.av-sources {
  width: 100%;
  max-width: 540px;
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.av-sources-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.av-sources-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.av-sources-scan {
  font-size: 11px;
  color: var(--accent2);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.av-sources-scan .live-dot { width: 7px; height: 7px; }

.av-sources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.av-source {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: #faf9f6;
  border-radius: 7px;
  border: 1px solid rgba(0,0,0,0.03);
}

.av-source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.av-source-dot.ok { background: var(--green); box-shadow: 0 0 0 3px rgba(26,107,58,0.12); }
.av-source-dot.warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(212,124,10,0.12); }

.av-source-body { flex: 1; min-width: 0; }
.av-source-name { font-size: 12px; font-weight: 600; color: var(--ink); }
.av-source-meta { font-size: 10px; color: var(--muted); margin-top: 2px; }

.av-sources-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Visual 5: Executive Briefing ---------- */
.av-brief {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  padding: 32px 30px;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 10px 10px 0 -3px rgba(255,255,255,0.08);
  position: relative;
}

.av-brief-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.av-brief-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.av-brief-meta {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  line-height: 1.4;
}

.av-brief-title {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.2;
}

.av-brief-sub {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}

.av-brief-section-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
  margin-top: 18px;
  font-weight: 700;
}

.av-brief-item {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 11.5px;
}

.av-brief-item-name { font-weight: 500; color: var(--ink); }
.av-brief-item-val { color: var(--red); font-weight: 600; }

.av-brief-reco {
  background: #faf9f6;
  padding: 11px 13px;
  border-radius: 4px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--ink);
  margin-top: 8px;
  border-left: 3px solid var(--accent2);
}

/* ---------- Visual 6: Timeline ---------- */
.av-timeline {
  width: 100%;
  max-width: 540px;
  background: var(--white);
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.av-timeline-title {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 22px;
  line-height: 1.3;
}

.av-tl-item {
  position: relative;
  padding-left: 30px;
  padding-bottom: 20px;
  border-left: 2px solid rgba(0,0,0,0.08);
  margin-left: 8px;
}

.av-tl-item:last-child { padding-bottom: 0; border-left: 2px solid transparent; }

.av-tl-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent2);
}

.av-tl-item.current::before {
  background: var(--accent2);
  box-shadow: 0 0 0 4px rgba(45,106,74,0.18);
}

.av-tl-item.future::before { border-color: rgba(0,0,0,0.2); }

.av-tl-when {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
  font-weight: 700;
  margin-bottom: 4px;
}

.av-tl-item.future .av-tl-when { color: var(--muted); }

.av-tl-what {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.av-tl-detail {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-scroll {
    display: block;
  }
  /* Hide the sticky visual column — we clone visuals inline per step via JS */
  .product-sticky { display: none; }

  .product-steps {
    gap: 64px;
    padding: 24px 0 40px;
  }
  .product-step {
    padding-bottom: 0;
    scroll-margin-top: 80px;
  }
  .product-step .step-number { font-size: 32px; margin-bottom: 10px; }
  .product-step h3 { font-size: 22px; margin-bottom: 10px; }
  .product-step p { font-size: 15px; margin-bottom: 14px; }

  /* Inline-cloned visual appears right above each step's copy */
  .product-visual.inline-mobile {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
  }
  .product-visual.inline-mobile > * {
    max-width: 100%;
    width: 100%;
  }

  .product-tabs { margin: 28px 0 32px; }
  .product-tab { padding: 9px 16px; font-size: 13px; }
  .av-alert, .av-evidence, .av-powerbi, .av-sources, .av-brief, .av-timeline {
    max-width: 100%;
  }
  .av-pbi-kpi-val { font-size: 22px; }
  .av-pbi-table { font-size: 11px; }
  .av-pbi-table td { padding: 7px 6px; font-size: 11px; }
  .av-pbi-table th { padding: 7px 6px; font-size: 9px; }
}

@media (max-width: 600px) {
  .av-sources-grid { grid-template-columns: 1fr; }
  .av-pbi-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Visual 1: Dashboard Overview ---------- */
.av-dashboard {
  width: 100%;
  max-width: 620px;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
}

.av-dash-chrome {
  background: #ebe8e2;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.av-dash-chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.av-dash-chrome-dot.r { background: #ff5f56; }
.av-dash-chrome-dot.y { background: #ffbd2e; }
.av-dash-chrome-dot.g { background: #27c93f; }

.av-dash-title {
  font-size: 11px;
  color: #4a4638;
  font-weight: 600;
  margin-left: 8px;
}

.av-dash-scan {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.av-dash-scan .live-dot { width: 6px; height: 6px; }

.av-dash-body { padding: 14px; }

.av-dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 12px;
}

.av-dash-kpi {
  background: var(--white);
  padding: 10px 8px;
  text-align: center;
}

.av-dash-kpi-val {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 3px;
}

.av-dash-kpi-val.red { color: var(--red); }
.av-dash-kpi-val.amber { color: var(--amber); }
.av-dash-kpi-val.green { color: var(--green); }

.av-dash-kpi-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 3px;
}

.av-dash-kpi-delta {
  font-size: 9px;
  color: var(--muted);
}
.av-dash-kpi-delta.up { color: var(--red); }
.av-dash-kpi-delta.down { color: var(--green); }

.av-dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.av-dash-panel-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.av-count {
  color: var(--red);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.av-dash-matrix {
  padding: 10px;
  background: #faf9f6;
  border-radius: 6px;
}

.av-matrix {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  aspect-ratio: 1;
  max-width: 180px;
  margin: 0 auto;
}

.av-matrix-cell {
  background: rgba(0,0,0,0.03);
  border-radius: 2px;
  position: relative;
}

.av-matrix-cell.cell-5 { background: rgba(192,57,43,0.12); }
.av-matrix-cell.cell-4 { background: rgba(212,124,10,0.10); }
.av-matrix-cell.cell-3 { background: rgba(212,124,10,0.06); }
.av-matrix-cell.cell-2 { background: rgba(26,107,58,0.05); }
.av-matrix-cell.cell-1 { background: rgba(26,107,58,0.08); }

.av-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.av-dot.red { background: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,0.2); }
.av-dot.amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(212,124,10,0.2); }
.av-dot.green { background: var(--green); box-shadow: 0 0 0 3px rgba(26,107,58,0.2); }

.av-matrix-axes {
  font-size: 9px;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
}

.av-dash-alerts { padding: 10px; background: #faf9f6; border-radius: 6px; }

.av-dash-alert {
  display: flex;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  align-items: flex-start;
}

.av-dash-alert:last-child { border-bottom: none; }
.av-dash-alert.faded { opacity: 0.55; }

.av-dash-pill {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.av-dash-pill.red { background: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,0.15); }
.av-dash-pill.amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(212,124,10,0.15); }
.av-dash-pill.muted { background: var(--muted); }

.av-dash-alert-body { flex: 1; min-width: 0; }

.av-dash-alert-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.av-dash-alert-meta {
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 2px;
}

.av-dash-feed {
  padding: 10px 12px;
  background: var(--ink);
  border-radius: 6px;
}

.av-dash-feed .av-dash-panel-label { color: rgba(255,255,255,0.5); }

.av-dash-feed-row {
  display: flex;
  gap: 10px;
  font-size: 10.5px;
  color: rgba(255,255,255,0.75);
  padding: 3px 0;
  line-height: 1.4;
}

.av-feed-time {
  color: rgba(255,255,255,0.4);
  font-family: 'SF Mono', ui-monospace, monospace;
  flex-shrink: 0;
  width: 36px;
}

.av-feed-src {
  color: #4ade80;
  font-weight: 500;
  flex-shrink: 0;
  width: 60px;
}

/* ---------- Visual 4: Gantt with Risk Overlay ---------- */
.av-gantt {
  width: 100%;
  max-width: 600px;
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.av-gantt-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.av-gantt-scale {
  display: grid;
  grid-template-columns: 160px repeat(8, 1fr) 40px;
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.av-gantt-scale span { text-align: center; font-weight: 600; }
.av-gantt-scale span:first-child { text-align: left; padding-left: 0; }
.av-gantt-scale span.now {
  color: var(--accent2);
  background: rgba(45,106,74,0.08);
  border-radius: 3px;
  padding: 2px 0;
}

.av-gantt-rows {
  position: relative;
  padding: 6px 0;
}

.av-gantt-row {
  display: grid;
  grid-template-columns: 160px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.av-gantt-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.av-gantt-track {
  position: relative;
  height: 16px;
  background: rgba(0,0,0,0.04);
  border-radius: 3px;
}

.av-gantt-bar {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 3px;
  opacity: 0.85;
}

.av-gantt-bar.red { background: var(--red); }
.av-gantt-bar.amber { background: var(--amber); }
.av-gantt-bar.green { background: var(--green); }

.av-gantt-flag {
  position: absolute;
  top: -4px;
  width: 16px;
  height: 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.av-gantt-score {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
  border-radius: 4px;
}

.av-gantt-score.red { background: #fef2f2; color: var(--red); }
.av-gantt-score.amber { background: #fffbeb; color: var(--amber); }
.av-gantt-score.green { background: #f0fdf4; color: var(--green); }

.av-gantt-today {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent2);
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
}

.av-gantt-legend {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 10px;
  color: var(--muted);
  align-items: center;
}

.av-gantt-legend span { display: flex; align-items: center; gap: 5px; }

.av-gantt-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.av-gantt-dot.red { background: var(--red); }
.av-gantt-dot.amber { background: var(--amber); }
.av-gantt-dot.green { background: var(--green); }

.av-gantt-legend strong {
  display: inline-flex;
  width: 14px;
  height: 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 9px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
}

/* ---------- Visual 9: Monte Carlo Scenario ---------- */
.av-mc {
  width: 100%;
  max-width: 580px;
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.av-mc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.av-mc-chart {
  background: #faf9f6;
  border-radius: 8px;
  padding: 16px 14px 10px;
  margin-bottom: 14px;
}

.av-mc-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 110px;
  gap: 2px;
}

.av-mc-bar {
  flex: 1;
  background: linear-gradient(to top, rgba(212,124,10,0.6), rgba(212,124,10,0.25));
  border-radius: 2px 2px 0 0;
  position: relative;
  min-height: 4px;
}

.av-mc-bar.mark-p5 {
  background: linear-gradient(to top, rgba(26,107,58,0.7), rgba(26,107,58,0.3));
}

.av-mc-bar.mark-p5::after,
.av-mc-bar.mark-p50::after,
.av-mc-bar.mark-p95::after {
  content: attr(data-label);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  margin-bottom: 3px;
}

.av-mc-bar.mark-p5::after { content: 'P95'; color: var(--green); }
.av-mc-bar.mark-p50::after { content: 'P50'; color: var(--amber); }
.av-mc-bar.mark-p95::after { content: 'P5'; color: var(--red); }

.av-mc-bar.mark-p95 {
  background: linear-gradient(to top, rgba(192,57,43,0.7), rgba(192,57,43,0.3));
}

.av-mc-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(0,0,0,0.1);
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 500;
}

.av-mc-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.av-mc-outcome {
  padding: 10px 12px;
  background: #faf9f6;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.av-mc-outcome.active {
  border-color: var(--amber);
  background: #fffbeb;
}

.av-mc-outcome-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 4px;
}

.av-mc-outcome-label.red { color: var(--red); }
.av-mc-outcome-label.amber { color: var(--amber); }
.av-mc-outcome-label.green { color: var(--green); }

.av-mc-outcome-val {
  font-family: 'Instrument Serif', serif;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 4px;
}

.av-mc-outcome-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
}

.av-mc-drivers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.av-mc-drivers-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
}

.av-mc-driver {
  padding: 4px 9px;
  background: #faf9f6;
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--ink);
  font-weight: 500;
}

.av-mc-driver em {
  font-style: normal;
  color: var(--red);
  font-weight: 600;
  margin-left: 3px;
}

/* ---------- Big Dashboard additions ---------- */
.av-dashboard-big { max-width: 680px; }

.av-dash-kpis-6 { grid-template-columns: repeat(6, 1fr); }

.av-dash-gantt-mini {
  padding: 12px;
  background: #faf9f6;
  border-radius: 6px;
  margin-bottom: 10px;
}

.av-dash-gm-scale {
  display: grid;
  grid-template-columns: 68px repeat(8, 1fr) 28px;
  font-size: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  font-weight: 600;
}
.av-dash-gm-scale span { text-align: center; }
.av-dash-gm-scale span:first-child { text-align: left; }
.av-dash-gm-scale span.now {
  color: var(--accent2);
  background: rgba(45,106,74,0.1);
  border-radius: 2px;
}

.av-dash-gm-row {
  display: grid;
  grid-template-columns: 68px 1fr 28px;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}

.av-dash-gm-name {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.av-dash-gm-track {
  position: relative;
  height: 10px;
  background: rgba(0,0,0,0.04);
  border-radius: 2px;
}

.av-dash-gm-bar {
  position: absolute;
  top: 1px;
  bottom: 1px;
  border-radius: 2px;
  opacity: 0.85;
}

.av-dash-gm-bar.red { background: var(--red); }
.av-dash-gm-bar.amber { background: var(--amber); }
.av-dash-gm-bar.green { background: var(--green); }

.av-dash-gm-flag {
  position: absolute;
  top: -3px;
  width: 10px;
  height: 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 7px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  z-index: 2;
}

.av-dash-gm-score {
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
  border-radius: 3px;
}

.av-dash-gm-score.red { background: #fef2f2; color: var(--red); }
.av-dash-gm-score.amber { background: #fffbeb; color: var(--amber); }
.av-dash-gm-score.green { background: #f0fdf4; color: var(--green); }

.av-dash-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.av-dash-engine, .av-dash-mc, .av-dash-bottom .av-dash-feed {
  padding: 10px;
  background: #faf9f6;
  border-radius: 6px;
}

.av-dash-bottom .av-dash-feed { background: var(--ink); }

.av-dash-engine-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.av-dash-engine-row:last-child { border-bottom: none; }

.av-dash-eng-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.av-dash-eng-dot.rules { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.av-dash-eng-dot.ml { background: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }
.av-dash-eng-dot.llm { background: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,0.15); }

.av-dash-eng-name {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
}

.av-dash-eng-meta {
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 1px;
}

.av-dash-mc-sparks {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 36px;
  margin: 8px 0;
}

.av-dash-mc-spark {
  flex: 1;
  background: linear-gradient(to top, rgba(212,124,10,0.7), rgba(212,124,10,0.25));
  border-radius: 1px 1px 0 0;
  min-height: 3px;
}

.av-dash-mc-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ink);
  padding: 3px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.av-dash-mc-row:last-child, .av-dash-mc-row.sub { border-bottom: none; }
.av-dash-mc-row.sub { font-size: 9.5px; color: var(--muted); padding-top: 6px; }
.av-dash-mc-row .red { color: var(--red); font-weight: 600; }
.av-dash-mc-row .amber { color: var(--amber); font-weight: 600; }

/* ---------- Delivery / Output Channels ---------- */
.av-delivery {
  width: 100%;
  max-width: 540px;
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.av-delivery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.av-delivery-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.av-delivery-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: #faf9f6;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.03);
}

.av-delivery-icon {
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--white);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.av-delivery-body { flex: 1; min-width: 0; }

.av-delivery-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.av-delivery-meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.av-delivery-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent2);
  background: rgba(45,106,74,0.08);
  padding: 4px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.av-delivery-foot {
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-style: italic;
  line-height: 1.5;
}

/* ---------- Rules Engine ---------- */
.av-rules {
  width: 100%;
  max-width: 540px;
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.av-rules-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.av-rules-status { display: flex; gap: 6px; align-items: center; }

.av-rules-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 3px;
}
.av-rules-badge.prod { background: #dcfce7; color: var(--green); }

.av-rules-version {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--muted);
}

.av-rules-meta {
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.av-rules-body { margin-bottom: 14px; }

.av-rules-block {
  background: #faf9f6;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-left: 3px solid #3b82f6;
}

.av-rules-block.then { border-left-color: var(--accent2); }

.av-rules-kw {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #3b82f6;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.av-rules-kw.then { color: var(--accent2); }

.av-rules-cond {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--ink);
  padding: 3px 0;
  line-height: 1.5;
}

.av-rules-field { color: #0891b2; }
.av-rules-op { color: var(--muted); padding: 0 4px; }
.av-rules-val { color: var(--red); font-weight: 600; }

.av-rules-and {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 700;
  padding-left: 14px;
}

.av-rules-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.av-rules-stat {
  text-align: center;
  padding: 8px 4px;
  background: #faf9f6;
  border-radius: 6px;
}

.av-rules-stat-num {
  font-family: 'Instrument Serif', serif;
  font-size: 15px;
  color: var(--ink);
  display: block;
  line-height: 1;
  margin-bottom: 3px;
}

.av-rules-stat-num.green { color: var(--green); }
.av-rules-stat-num.red { color: var(--red); }

.av-rules-stat-lbl {
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- ML Pattern Match ---------- */
.av-ml {
  width: 100%;
  max-width: 540px;
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.av-ml-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.av-ml-matches {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.av-ml-match {
  padding: 10px 12px;
  background: #faf9f6;
  border-radius: 7px;
}

.av-ml-match-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.av-ml-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.av-ml-conf {
  font-family: 'Instrument Serif', serif;
  font-size: 15px;
  color: var(--ink);
  line-height: 1;
}

.av-ml-conf.red { color: var(--red); }
.av-ml-conf.amber { color: var(--amber); }

.av-ml-bar {
  height: 5px;
  background: rgba(0,0,0,0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.av-ml-bar-fill {
  height: 100%;
  background: #8b5cf6;
  border-radius: 3px;
}
.av-ml-bar-fill.red { background: var(--red); }
.av-ml-bar-fill.amber { background: var(--amber); }

.av-ml-outcome {
  font-size: 10.5px;
  color: var(--muted);
}

.av-ml-features {
  padding: 10px 12px;
  background: rgba(139,92,246,0.05);
  border-radius: 7px;
  font-size: 10.5px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.av-ml-features-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
  margin-right: 6px;
}

.av-ml-feat {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 10px;
  padding: 3px 8px;
  background: var(--white);
  border-radius: 999px;
  color: #8b5cf6;
  font-weight: 500;
}

.av-ml-foot {
  font-size: 10px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-style: italic;
}

/* ---------- LLM Recommendation ---------- */
.av-llm {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.av-llm-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  gap: 10px;
}

.av-llm-head-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.av-llm-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.av-llm-model {
  font-size: 10px;
  padding: 4px 10px;
  background: rgba(20,184,166,0.1);
  color: #14b8a6;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.av-llm-grounded {
  background: #faf9f6;
  padding: 10px 12px;
  border-radius: 7px;
  margin-bottom: 12px;
}

.av-llm-grounded-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.av-llm-source {
  font-size: 10.5px;
  color: var(--ink);
  padding: 2px 0;
  padding-left: 12px;
  position: relative;
}

.av-llm-source::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: #14b8a6;
}

.av-llm-output {
  padding: 14px 16px;
  background: rgba(20,184,166,0.04);
  border-radius: 8px;
  border-left: 3px solid #14b8a6;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 12px;
}

.av-llm-output p { margin: 0; }

.av-llm-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
  gap: 10px;
}

.av-llm-audit {
  font-size: 10px;
  color: var(--accent2);
  font-weight: 500;
}

.av-llm-actions { display: flex; gap: 6px; }

.av-llm-btn {
  padding: 6px 12px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.av-llm-btn.primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* ---------- Dashboard: Score Distribution Bar ---------- */
.av-dash-distribution {
  padding: 10px 12px;
  background: #faf9f6;
  border-radius: 6px;
  margin-bottom: 12px;
}

.av-dash-dist-bar {
  display: flex;
  height: 26px;
  gap: 2px;
  margin-bottom: 6px;
  border-radius: 4px;
  overflow: hidden;
}

.av-dash-dist-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
}

.av-dash-dist-seg.red { background: var(--red); }
.av-dash-dist-seg.amber-dark { background: #b45309; }
.av-dash-dist-seg.amber { background: var(--amber); }
.av-dash-dist-seg.green { background: var(--green); }

.av-dash-dist-legend {
  display: flex;
  gap: 16px;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.av-dash-dist-legend span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle;
}

.av-dash-dist-legend .red::before { background: var(--red); }
.av-dash-dist-legend .amber-dark::before { background: #b45309; }
.av-dash-dist-legend .amber::before { background: var(--amber); }
.av-dash-dist-legend .green::before { background: var(--green); }

.av-dash-dist-legend .red { color: var(--red); }
.av-dash-dist-legend .amber-dark { color: #b45309; }
.av-dash-dist-legend .amber { color: var(--amber); }
.av-dash-dist-legend .green { color: var(--green); }

/* ---------- Rules Engine: Signal Weights (replaces WHEN/THEN) ---------- */
.av-signals {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.av-signal {
  padding: 10px 12px;
  background: #faf9f6;
  border-radius: 7px;
  border-left: 3px solid #3b82f6;
}

.av-signal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.av-signal-name {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.av-signal-weight {
  font-family: 'Instrument Serif', serif;
  font-size: 17px;
  color: var(--ink);
  line-height: 1;
}

.av-signal-slider {
  height: 5px;
  background: rgba(0,0,0,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.av-signal-fill {
  height: 100%;
  background: linear-gradient(to right, #3b82f6, #60a5fa);
  border-radius: 3px;
}

.av-signal-threshold {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.av-signal-threshold strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Pattern Library (replaces ML matches) ---------- */
.av-patterns {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 12px;
}

.av-pattern {
  padding: 10px 12px;
  background: #faf9f6;
  border-radius: 7px;
  border-left: 3px solid rgba(0,0,0,0.1);
  transition: all 0.2s;
}

.av-pattern.active {
  border-left-color: #8b5cf6;
  background: rgba(139,92,246,0.04);
}

.av-pattern-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.av-pattern-name {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.av-pattern-conf {
  font-family: 'Instrument Serif', serif;
  font-size: 15px;
  color: var(--muted);
  line-height: 1;
}

.av-pattern-conf.red { color: var(--red); }
.av-pattern-conf.amber { color: var(--amber); }

.av-pattern-desc {
  font-size: 11.5px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 6px;
}

.av-pattern-projects {
  font-size: 10.5px;
  color: var(--muted);
}

.av-pattern-projects strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- LLM: 5-field structured Recommendation ---------- */
.av-llm-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.av-llm-field {
  padding: 10px 12px;
  background: rgba(20,184,166,0.04);
  border-radius: 7px;
  border-left: 3px solid #14b8a6;
}

.av-llm-field-row {
  display: flex;
  gap: 8px;
}

.av-llm-field.half { flex: 1; }

.av-llm-field-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #14b8a6;
  margin-bottom: 4px;
}

.av-llm-field-val {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.5;
}

.av-llm-pri {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}

.av-llm-pri.red { background: #fef2f2; color: var(--red); }
.av-llm-pri.amber { background: #fffbeb; color: var(--amber); }
.av-llm-pri.green { background: #f0fdf4; color: var(--green); }

/* ---------- Monte Carlo: Input Sliders ---------- */
.av-mc-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.av-mc-input {
  padding: 10px 12px;
  background: rgba(45,106,74,0.04);
  border-radius: 7px;
  border: 1px solid rgba(45,106,74,0.12);
}

.av-mc-input-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.av-mc-input-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
}

.av-mc-input-val {
  font-family: 'Instrument Serif', serif;
  font-size: 15px;
  color: var(--accent2);
  line-height: 1;
}

.av-mc-input-slider {
  height: 4px;
  background: rgba(0,0,0,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.av-mc-input-fill {
  height: 100%;
  background: var(--accent2);
  border-radius: 2px;
}

.av-mc-input-range {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  font-weight: 500;
}

/* Mobile adjustments for new visuals */
@media (max-width: 900px) {
  .av-dash-grid { grid-template-columns: 1fr; }
  .av-dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .av-dash-kpis-6 { grid-template-columns: repeat(3, 1fr); }
  .av-dash-bottom { grid-template-columns: 1fr; }
  .av-matrix { max-width: 160px; }
  .av-gantt-scale { grid-template-columns: 100px repeat(8, 1fr) 30px; font-size: 8px; }
  .av-gantt-row { grid-template-columns: 100px 1fr 30px; }
  .av-gantt-label { font-size: 10px; }
  .av-mc-outcomes { grid-template-columns: 1fr; }
  .av-mc-inputs { grid-template-columns: 1fr; }
  .av-dashboard-big { max-width: 100%; }
  .av-rules-footer { grid-template-columns: repeat(2, 1fr); }
  .av-llm-footer { flex-direction: column; align-items: stretch; }
  .av-llm-field-row { flex-direction: column; }
}

/* Hero Evidence block — replaces brand-name logos with quantified credibility */
.hero-evidence {
  max-width: 680px;
  margin: 28px auto 0;
  padding: 18px 22px;
  background: var(--paper2, rgba(255, 255, 255, 0.04));
  border-left: 2px solid var(--accent, #d68a5e);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}
.hero-evidence .hev-methodology {
  color: var(--muted, #7a6b5c);
  font-style: italic;
  margin-bottom: 8px;
}
.hero-evidence .hev-traction {
  color: var(--ink, #2a2622);
  font-weight: 600;
}
@media (max-width: 700px) {
  .hero-evidence { margin-left: 20px; margin-right: 20px; font-size: 13px; }
}

/* Trust segments — replaces brand-name logo strip with category chips */
.trust-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto 18px;
  padding: 0 20px;
}
.trust-chip {
  padding: 8px 16px;
  background: var(--paper2, rgba(0,0,0,0.04));
  border: 1px solid var(--line, rgba(0,0,0,0.08));
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink, #2a2622);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.trust-footer {
  text-align: center;
  font-size: 14px;
  color: var(--muted, #7a6b5c);
  max-width: 640px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .trust-chip { font-size: 12px; padding: 6px 12px; white-space: normal; }
}
