/* ==========================================================
   2026 MODERN ENTERPRISE K3 TOOL DESIGN SYSTEM
   ========================================================== */
:root {
  --st-forest: var(--brand);
  --st-forest-dark: var(--brand);
  --st-forest-light: var(--brand-mid);
  --st-emerald: var(--success);
  --st-emerald-dark: var(--brand-mid);
  --st-lime: var(--success-border);
  --st-lime-soft: var(--warning-bg);
  --st-slate-50: var(--slate-50);
  --st-slate-100: var(--slate-100);
  --st-slate-200: var(--slate-200);
  --st-slate-300: var(--slate-300);
  --st-slate-600: var(--slate-600);
  --st-slate-700: var(--slate-700);
  --st-slate-800: var(--slate-800);
  --st-slate-900: var(--slate-900);
  --st-card-bg: var(--surface);
  --st-radius-sm: 8px;
  --st-radius-md: 12px;
  --st-radius-lg: 16px;
  --st-radius-xl: 24px;
  --st-shadow-card: 0 4px 16px -2px color-mix(in srgb, var(--slate-900) 5%, transparent), 0 2px 6px -2px color-mix(in srgb, var(--slate-900) 3%, transparent);
  --st-shadow-hover: 0 20px 30px -6px color-mix(in srgb, var(--brand) 12%, transparent), 0 8px 12px -4px color-mix(in srgb, var(--brand) 6%, transparent);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--st-slate-50);
  color: var(--st-slate-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── HERO SECTION (HIGH CTR) ───────────────────────────── */
.st-hero {
  position: relative;
  background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--success-border) 18%, transparent), transparent 32%),
              radial-gradient(circle at 15% 85%, color-mix(in srgb, var(--brand-mid) 35%, transparent), transparent 36%),
              linear-gradient(145deg, var(--brand) 0%, var(--brand) 55%, var(--brand) 100%);
  color: var(--surface);
  padding: 68px 0 54px;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--success-border) 15%, transparent);
}
.st-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--surface) 4%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--surface) 4%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, var(--black) 60%, transparent 100%);
  pointer-events: none;
}
.st-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.8fr);
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.st-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: color-mix(in srgb, var(--success-border) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--success-border) 35%, transparent);
  border-radius: 999px;
  color: var(--accent-soft);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.st-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--st-lime);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--success-border) 70%, transparent);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success-border) 70%, transparent); }
  70% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--success-border) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success-border) 0%, transparent); }
}
.st-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--surface);
  margin-bottom: 14px;
}
.st-hero h1 span {
  color: var(--accent-soft);
  display: block;
}
.st-hero p.st-lead {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.65;
  color: color-mix(in srgb, var(--surface) 85%, transparent);
  margin-bottom: 26px;
  max-width: 650px;
}

/* Hero Search Bar (Modern Elevated) */
.st-search-box {
  background: var(--surface);
  border-radius: 16px;
  padding: 6px 8px 6px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--black) 28%, transparent), 0 0 0 1px color-mix(in srgb, var(--surface) 35%, transparent);
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 680px;
}
.st-search-box:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px color-mix(in srgb, var(--black) 35%, transparent), 0 0 0 3px var(--st-lime);
}
.st-search-icon {
  color: var(--st-slate-600);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.st-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--st-slate-900);
  font-weight: 500;
  background: transparent;
  min-width: 0;
}
.st-search-input::placeholder { color: var(--st-slate-600); }
.st-search-btn {
  background: var(--accent);
  color: var(--surface);
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s, transform 0.18s;
  flex-shrink: 0;
}
.st-search-btn:hover { background: var(--accent-dark); transform: scale(1.02); }

/* Quick Action Chips (High CTR Boost) */
.st-quick-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.st-quick-label {
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--surface) 65%, transparent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.st-chip {
  background: color-mix(in srgb, var(--surface) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--surface) 20%, transparent);
  color: var(--surface);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  backdrop-filter: blur(8px);
}
.st-chip:hover {
  background: var(--st-lime);
  color: var(--st-forest-dark);
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}

/* Trust Row */
.st-trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--surface) 80%, transparent);
  font-weight: 600;
}
.st-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.st-trust-item svg { color: var(--accent-soft); }

/* Hero Stat Panel Card */
.st-hero-panel {
  background: color-mix(in srgb, var(--surface) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--surface) 16%, transparent);
  border-radius: var(--st-radius-lg); border-color: color-mix(in srgb, var(--surface) 20%, transparent);
  padding: 28px 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px color-mix(in srgb, var(--black) 22%, transparent);
}
.st-panel-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
  margin-bottom: 8px;
}
.st-hero-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--surface);
  margin-bottom: 20px;
}
.st-stat-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.st-stat-cell {
  background: color-mix(in srgb, var(--surface) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--surface) 10%, transparent);
  border-radius: var(--st-radius-md);
  padding: 12px 14px;
}
.st-stat-cell strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-soft);
  line-height: 1.1;
}
.st-stat-cell span {
  font-size: 0.76rem;
  color: color-mix(in srgb, var(--surface) 75%, transparent);
  font-weight: 500;
}
.st-panel-cta {
  display: block;
  text-align: center;
  background: var(--st-lime);
  color: var(--st-forest-dark);
  padding: 11px 16px;
  border-radius: var(--st-radius-md);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.18s, box-shadow 0.18s;
}
.st-panel-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--success-border) 30%, transparent);
}

/* ─── STICKY DISCOVERY & CATEGORY TABS ───────────────────── */
.st-discovery {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--st-slate-200);
  padding: 14px 0;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--black) 3%, transparent);
}
.st-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.st-filter-bar::-webkit-scrollbar { display: none; }
.st-cat-btn {
  flex: 0 0 auto;
  border: 1px solid var(--st-slate-200);
  background: var(--surface);
  color: var(--st-slate-700);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.st-cat-btn:hover {
  background: var(--st-slate-100);
  border-color: var(--st-slate-300);
  color: var(--st-forest);
}
.st-cat-btn.active {
  background: var(--accent);
  border-color: var(--st-forest);
  color: var(--surface);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 25%, transparent);
}

/* ─── SECTION CONTENT AREA ──────────────────────────────── */
.st-main-content {
  padding: 36px 0 60px;
}
.st-results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.st-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--st-emerald-dark);
  margin-bottom: 4px;
}
.st-results-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--st-slate-900);
  letter-spacing: -0.02em;
}
.st-results-count {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--st-forest);
  background: var(--st-lime-soft);
  border: 1px solid color-mix(in srgb, var(--success-border) 60%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ─── CARDS GRID (MODERN 2026 SAAS STYLE) ────────────────── */
.st-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.st-card {
  background: var(--st-card-bg);
  border: 1px solid var(--st-slate-200);
  border-radius: var(--st-radius-lg);
  box-shadow: var(--st-shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s, border-color 0.22s;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.st-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--st-shadow-hover);
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}
.st-card.is-hidden { display: none; }

.st-card-top {
  padding: 18px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.st-cat-badge {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.st-topic-id {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--st-slate-600);
}

/* Category-specific pill badges */
.cat-umum { background: var(--success-bg); color: var(--brand-mid); border-color: var(--success-border); }
.cat-ketinggian { background: var(--success-bg); color: var(--warning-dark); border-color: var(--warning-border); }
.cat-kebakaran { background: var(--slate-100); color: var(--danger-dark); border-color: var(--danger-border); }
.cat-listrik { background: var(--success-bg); color: var(--warning-dark); border-color: var(--warning-border); }
.cat-kimia { background: var(--accent-light); color: var(--accent-dark); border-color: var(--slate-200); }
.cat-alatberat { background: var(--success-bg); color: var(--success-dark); border-color: var(--success-border); }
.cat-kesehatan { background: var(--success-bg); color: var(--brand-mid); border-color: var(--success-border); }
.cat-konstruksi { background: var(--accent-light); color: var(--accent-dark); border-color: var(--accent-soft); }
.cat-tambang { background: var(--slate-50); color: var(--slate-600); border-color: var(--slate-300); }
.cat-lingkungan { background: var(--success-bg); color: var(--success-dark); border-color: var(--success-border); }
.cat-teknologi { background: var(--info-bg); color: var(--info); border-color: var(--info-border); }

.st-card-header {
  padding: 12px 20px 8px;
}
.st-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--st-slate-900);
  letter-spacing: -0.01em;
}
.st-card-body {
  padding: 0 20px 14px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--st-slate-600);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.st-card-tags {
  padding: 0 20px 14px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.st-tag {
  background: var(--st-slate-100);
  color: var(--st-slate-600);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Card Related Link */
.st-card-related {
  margin: 0 20px 14px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--success-bg);
  border: 1px solid var(--success-soft);
  color: var(--success-dark);
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.18s;
}
.st-card-related:hover {
  background: var(--success-soft);
  color: var(--brand);
  transform: translateX(2px);
}

/* Card Action Footer */
.st-card-footer {
  border-top: 1px solid var(--st-slate-100);
  padding: 12px 20px 16px;
  display: flex;
  gap: 8px;
  background: var(--slate-50);
}
.st-btn-detail {
  flex: 1;
  background: var(--accent);
  color: var(--surface);
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.18s, transform 0.15s;
}
.st-btn-detail:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.st-btn-print {
  background: var(--surface);
  color: var(--st-slate-700);
  border: 1px solid var(--st-slate-200);
  border-radius: 10px;
  padding: 9px 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s;
}
.st-btn-print:hover {
  background: var(--st-slate-100);
  border-color: var(--st-slate-300);
  color: var(--st-slate-900);
}

/* ─── LOAD MORE BUTTON ──────────────────────────────────── */
.st-load-more-wrapper {
  text-align: center;
  margin: 32px 0 16px;
}
.st-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  background: var(--surface);
  color: var(--st-forest);
  border: 1.5px solid var(--st-forest);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 8%, transparent);
  transition: all 0.2s;
}
.st-load-more-btn:hover {
  background: var(--accent);
  color: var(--surface);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 20%, transparent);
  transform: translateY(-2px);
}
.st-load-more-btn[hidden] { display: none; }

/* ─── CTA STRIP (HIGH CONVERSION) ────────────────────────── */
.st-cta-strip {
  background: radial-gradient(circle at 90% 20%, color-mix(in srgb, var(--success-border) 15%, transparent), transparent 40%),
              linear-gradient(135deg, var(--brand) 0%, var(--brand) 100%);
  color: var(--surface);
  border-radius: var(--st-radius-lg); border-color: color-mix(in srgb, var(--surface) 20%, transparent);
  padding: 40px 36px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 20px 45px color-mix(in srgb, var(--brand) 16%, transparent);
}
.st-cta-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--surface);
}
.st-cta-content p {
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--surface) 85%, transparent);
  max-width: 620px;
}
.st-btn-wa {
  background: var(--whatsapp);
  color: var(--surface);
  border-radius: 12px;
  padding: 13px 24px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--whatsapp) 35%, transparent);
  transition: transform 0.18s, box-shadow 0.18s;
  flex-shrink: 0;
}
.st-btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--whatsapp) 45%, transparent);
}

/* ─── TOOL ARTICLE & FAQ SECTION ────────────────────────── */
.st-tool-article {
  background: var(--surface);
  padding: 64px 0;
  border-top: 1px solid var(--st-slate-200);
}
.st-article-inner { max-width: 880px; margin: 0 auto; }
.st-tool-article h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--st-slate-900);
  margin: 40px 0 14px;
  letter-spacing: -0.02em;
}
.st-tool-article h2:first-child { margin-top: 0; }
.st-tool-article p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--st-slate-700);
  margin-bottom: 16px;
}
.st-steps-list {
  padding-left: 20px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--st-slate-700);
  margin-bottom: 24px;
}
.st-steps-list li { margin-bottom: 8px; }

/* FAQ Cards */
.st-faq-grid {
  display: grid;
  gap: 12px;
  margin: 16px 0 32px;
}
.st-faq-card {
  border: 1px solid var(--st-slate-200);
  border-radius: var(--st-radius-md);
  padding: 18px 22px;
  background: var(--st-slate-50);
  transition: border-color 0.2s, background 0.2s;
}
.st-faq-card:hover {
  border-color: var(--st-emerald);
  background: var(--surface);
}
.st-faq-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--st-slate-900);
  margin-bottom: 6px;
}
.st-faq-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--st-slate-600);
  margin: 0;
}
.st-faq-card a {
  color: var(--st-emerald-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s;
}
.st-faq-card a:hover { color: var(--st-forest); }

/* Related Guide Banners */
.st-guide-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  padding: 18px 22px;
  border: 1px solid var(--success-soft);
  background: var(--success-bg);
  border-radius: var(--st-radius-md);
  color: var(--success-dark);
  transition: transform 0.18s, background 0.18s;
}
.st-guide-card:hover {
  background: var(--success-soft);
  transform: translateY(-2px);
}
.st-guide-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--brand);
}
.st-guide-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--success-dark);
  margin-top: 3px;
}

/* Related Trainings Grid */
.st-related-trainings {
  background: var(--st-slate-50);
  padding: 56px 0;
  border-top: 1px solid var(--st-slate-200);
}
.st-related-trainings h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--st-slate-900);
  margin-bottom: 20px;
}
.st-trainings-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.st-training-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--st-slate-200);
  border-radius: var(--st-radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--st-slate-800);
  transition: all 0.18s;
}
.st-training-item a:hover {
  border-color: var(--st-emerald);
  color: var(--st-emerald-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--black) 5%, transparent);
}

/* ─── MODERN MODAL DIALOG ───────────────────────────────── */
.st-modal-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--slate-900) 65%, transparent);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.st-modal-overlay.show { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.st-modal-dialog {
  background: var(--surface);
  border-radius: var(--st-radius-lg); border-color: color-mix(in srgb, var(--surface) 20%, transparent);
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 30px 80px color-mix(in srgb, var(--black) 35%, transparent);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.st-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--st-slate-200);
}
.st-modal-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  color: var(--st-slate-900);
  line-height: 1.3;
}
.st-btn-close {
  background: var(--st-slate-100);
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--st-slate-700);
  cursor: pointer;
  transition: all 0.15s;
}
.st-btn-close:hover { background: var(--st-slate-200); color: var(--st-slate-900); }

.st-stat-box {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--st-radius-md);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: var(--brand);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.st-modal-section { margin-bottom: 18px; }
.st-modal-section h4 {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--st-forest);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.st-modal-section p { font-size: 0.92rem; color: var(--st-slate-700); line-height: 1.6; }
.st-discuss-box {
  background: var(--st-slate-50);
  border-left: 3px solid var(--st-forest);
  border-radius: 6px;
  padding: 9px 13px;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--st-slate-800);
}
.st-action-steps {
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--st-slate-700);
}
.st-action-steps li { margin-bottom: 4px; }

.st-modal-related {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--accent-light);
  border: 1px solid var(--warning-bg);
  border-radius: var(--st-radius-md);
  padding: 12px 16px;
  margin-top: 18px;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.st-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--st-slate-100);
}

/* ─── QUICK TOOLS STRIP ──────────────────────────────────── */
.st-tools-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--st-slate-200);
  padding: 18px 0;
}
.st-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.st-tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--st-slate-50);
  border: 1px solid var(--st-slate-200);
  border-radius: var(--st-radius-md);
  text-decoration: none;
  transition: all 0.18s ease;
}
.st-tool-card:hover {
  background: var(--surface);
  border-color: var(--st-forest);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 12%, transparent);
}
.st-tool-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.st-tool-card h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--st-slate-900);
  margin-bottom: 3px;
}
.st-tool-card p {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--st-slate-600);
  margin: 0;
}

/* ─── CARD DETAILS & BADGES ──────────────────────────────── */
.st-badge-ready {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--brand-mid);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.st-card-scenario {
  padding: 0 20px 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--st-slate-700);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.st-card-scenario svg {
  color: var(--st-emerald-dark);
  flex-shrink: 0;
  margin-top: 2px;
}
.st-card-points {
  padding: 0 20px 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--st-slate-600);
}
.st-points-title {
  font-weight: 700;
  color: var(--st-slate-800);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.st-card-points ul {
  padding-left: 16px;
  margin: 0;
}
.st-card-points li {
  margin-bottom: 2px;
}
.st-btn-script {
  flex: 1;
  background: var(--brand);
  color: var(--on-brand);
  border: 1px solid var(--brand);
  border-radius: 10px;
  padding: 9px 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s;
}
.st-btn-script:hover {
  background: var(--brand-mid);
  color: var(--on-brand);
  transform: translateY(-1px);
}
.st-no-results {
  text-align: center;
  padding: 48px 20px;
  background: var(--surface);
  border: 1px dashed var(--st-slate-300);
  border-radius: var(--st-radius-lg);
  margin-top: 20px;
}
.st-no-results p {
  font-size: 1.05rem;
  color: var(--st-slate-700);
  margin-bottom: 16px;
}

/* ─── RESPONSIVE RULES ──────────────────────────────────── */
@media (max-width: 992px) {
  .st-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .st-hero-panel { display: none; }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-trainings-grid { grid-template-columns: 1fr; }
  .st-discovery { top: 62px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .st-tools-grid { grid-template-columns: 1fr; }
  .st-hero { padding: 50px 0 40px; }
  .st-grid { grid-template-columns: 1fr; gap: 16px; }
  .st-cta-strip { flex-direction: column; align-items: flex-start; padding: 28px 20px; }
  .st-btn-wa { width: 100%; justify-content: center; }
  .st-search-btn { padding: 10px 14px; }
  .st-modal-dialog { padding: 20px 16px; border-radius: 20px 20px 0 0; max-height: 92vh; }
  .st-modal-overlay { padding: 0; align-items: flex-end; }
}
