/* ============================================================
   MLPipeKit — custom.css
   Accent: #059669 (emerald green)
   Theme: light/neutral — pharmaceutical/clinical professional
   Bootstrap 3 + Font Awesome 4 + template: 2082_pure_mix
   ============================================================ */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --accent:         #059669;
  --accent-dark:    #047857;
  --accent-light:   #d1fae5;
  --bg:             #f8fafb;
  --surface:        #ffffff;
  --surface2:       #f0f4f3;
  --text:           #1e293b;
  --text-muted:     #64748b;
  --border:         rgba(0,0,0,0.08);
  --border-accent:  rgba(5,150,105,0.2);
  --radius:         10px;
  --nav-height:     70px;
  --section-pad:    90px;
  --bg-rgb:         248,250,251;
}

/* ── Base Reset & Typography ─────────────────────────────── */
body {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text);
  text-transform: none !important;   /* override template uppercase */
  letter-spacing: 0 !important;      /* override template letter-spacing */
  line-height: 1.2;
}

h1 { font-size: 58px; }
h2 { font-size: 40px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

p { font-size: 18px; line-height: 1.85; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); text-decoration: none; }

/* ── R77: Nav item cleanup ───────────────────────────────── */
.nav-item {
  margin-bottom: 0 !important;
  background-image: none !important;
}
.site-logo {
  max-width: none !important;
  height: 36px;
  width: auto;
}
.btn-accent, .cta-primary, .cta-secondary {
  white-space: nowrap;
}

/* ── R79: Hero container transparent ────────────────────── */
.header-thumb {
  background: transparent !important;
  border: none !important;
}

/* ── R89: Template overlay pointer-events ───────────────── */
.tm-bg-overlay,
[class*="overlay"] {
  pointer-events: none !important;
}

/* ── R81: Force accent on icons ─────────────────────────── */
.feature-icon .fa,
.card-icon .fa,
.step-icon .fa {
  color: var(--accent) !important;
}

/* ── Navigation ─────────────────────────────────────────── */
.nav-container { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }

.nav-inner.transparent { background: rgba(255,255,255,0.97); box-shadow: 0 1px 0 var(--border); }

.navbar { padding: 0; min-height: var(--nav-height); }

/* R72: Logo left, menu right */
.navbar .row {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  min-height: var(--nav-height);
}
.brand { float: none !important; }
.navicon { float: none !important; margin-left: auto !important; }

.brand a { display: flex; align-items: center; text-decoration: none; }

/* Menu trigger with label */
.menu-trigger {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 8px 14px !important;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text) !important;
  background: none !important;
}
.menu-trigger .icon {
  font-size: 20px;
  line-height: 1;
  color: var(--text);
}
.menu-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}
.menu-trigger:hover .menu-label,
.menu-trigger:hover .icon {
  color: var(--accent) !important;
}

/* Overlay menu text */
#nav-menu a {
  font-size: 36px !important;
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 500 !important;
  text-transform: none !important;
}
#nav-menu li.active a {
  color: var(--accent) !important;
  font-weight: 700 !important;
}
#nav-menu a:hover {
  color: var(--accent) !important;
}

/* ── Page offset for fixed nav ───────────────────────────── */
body { padding-top: var(--nav-height); }
section#header, .hero-section, .page-hero { margin-top: 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-accent,
.btn-primary-custom {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #ffffff !important;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--accent);
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff !important;
}

.btn-outline,
.btn-secondary-custom {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--text) !important;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.btn-outline-accent {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--accent) !important;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--accent);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: #ffffff !important;
}

.btn-gap {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ── Dark section ────────────────────────────────────────── */
/* R85: solid text colors on dark bg, no opacity on text */
.dark-section {
  background: #0f172a;
  color: #e2e8f0;
}
.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 {
  color: #f1f5f9;
}
.dark-section p,
.dark-section li {
  color: #c8d6e5;
}
.dark-section .section-label {
  color: var(--accent);
}
.dark-section a { color: var(--accent); }
.dark-section .footer-links a { color: #c8d6e5; }
.dark-section .footer-links a:hover { color: var(--accent); }

/* ── Section base ────────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-intro {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* container-narrow (MANDATORY per FRAMEWORK-INDEX) */
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
}

/* ── Hero Section ────────────────────────────────────────── */
.hero-section,
section#header.hero-section {
  min-height: 620px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #065f46 100%);
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  color: #e2e8f0;
}
.hero-section .header-thumb { padding: 40px 0; }
.hero-section h1 { color: #f1f5f9; font-size: 58px; line-height: 1.15; }
.hero-section .hero-sub { font-size: 18px; color: #c8d6e5; max-width: 620px; margin-top: 16px; }
.hero-section .section-label { color: var(--accent); }

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding: 80px 0 64px;
  min-height: 280px;
  display: flex;
  align-items: center;
}
.page-hero h1 { color: #f1f5f9; font-size: 48px; }
.page-hero p { color: #c8d6e5; font-size: 18px; }

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { padding: 8px; }
.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* ── Features Grid ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
/* R87: uniform icon height */
.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon img { width: 48px; height: 48px; object-fit: contain; }
.feature-card h3 { font-size: 20px; margin-bottom: 12px; }
.feature-card p { font-size: 16px; color: var(--text-muted); margin: 0; }

/* ── How It Works — Steps ────────────────────────────────── */
/* R80: horizontal CSS grid, vertical card content */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.step-card {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}
.step-num {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 16px; font-weight: 700; color: #f1f5f9; margin-bottom: 10px; }
.step-card p { font-size: 15px; color: #8fabc4; line-height: 1.6; margin: 0; }

/* ── Use Cases ───────────────────────────────────────────── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.usecase-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.usecase-img { height: 200px; overflow: hidden; }
.usecase-img img { width: 100%; height: 200px; object-fit: cover; }
.usecase-body { padding: 24px; }
.usecase-body h3 { font-size: 18px; margin-bottom: 10px; }
.usecase-body p { font-size: 16px; color: var(--text-muted); margin: 0; }

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  background: var(--surface2);
}
.cta-section.dark-section {
  background: #0f172a;
}
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 16px; }
.cta-inner p { color: var(--text-muted); margin-bottom: 32px; }
.cta-section.dark-section .cta-inner p { color: #8fabc4; }

/* ── Product Page Capabilities ───────────────────────────── */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.capability-card {
  padding: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.cap-icon { width: 48px; height: 48px; margin-bottom: 16px; }
.cap-icon img { width: 48px; height: 48px; object-fit: contain; }
.capability-card h3 { font-size: 20px; color: #f1f5f9; margin-bottom: 12px; }
.capability-card p { font-size: 16px; color: #8fabc4; margin-bottom: 12px; line-height: 1.7; }

/* ── Technical Specs ─────────────────────────────────────── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.spec-block {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.spec-block h4 { font-size: 16px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.spec-block ul { list-style: none; padding: 0; margin: 0; }
.spec-block ul li { font-size: 15px; color: var(--text-muted); padding: 4px 0; border-bottom: 1px solid var(--border); }
.spec-block ul li:last-child { border-bottom: none; }

/* ── Product Screenshot ──────────────────────────────────── */
.product-visual-section { padding: 60px 0; }
.product-visual { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.product-screenshot { width: 100%; display: block; }

/* ── About Page ──────────────────────────────────────────── */
.about-photo {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  object-position: center;    /* R86: never 'top' */
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.value-card {
  padding: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.value-icon { width: 48px; height: 48px; margin-bottom: 16px; }
.value-icon img { width: 48px; height: 48px; object-fit: contain; }
.value-card h3 { font-size: 18px; color: #f1f5f9; margin-bottom: 10px; }
.value-card p { font-size: 16px; color: #8fabc4; line-height: 1.7; margin: 0; }

/* ── Case Studies ────────────────────────────────────────── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
}
.case-metric { margin-bottom: 16px; }
.metric-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.metric-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.case-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.case-card p { font-size: 15px; color: var(--text-muted); margin: 0; line-height: 1.7; }

/* ── Milestones ──────────────────────────────────────────── */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.milestone-item { padding: 24px 16px; }
.milestone-num {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.milestone-label {
  font-size: 15px;
  color: #8fabc4;
  line-height: 1.4;
}

/* ── Team Page ───────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.team-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.team-avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid var(--accent-light);
}
/* R86: object-position center */
.team-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: 50% 10%;  /* slight crop to top of head */
  display: block;
}
.team-card h3 { font-size: 20px; margin-bottom: 4px; }
.team-role { font-size: 14px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.team-bio { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 0; }

/* Culture stats */
.culture-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 32px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}
.culture-stat { text-align: center; padding: 16px; }
.cstat-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.cstat-label { font-size: 14px; color: #8fabc4; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.pricing-card {
  padding: 36px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pricing-featured {
  border: 2px solid var(--accent);
  position: relative;
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(5,150,105,0.15);
}
.pricing-badge {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.pricing-card h3 { font-size: 22px; margin-bottom: 12px; }
.price {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin: 12px 0;
}
.price span { font-size: 18px; font-weight: 400; color: var(--text-muted); }
.price-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.feature-list li {
  font-size: 15px;
  color: var(--text-muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .fa-check { color: var(--accent); margin-top: 4px; flex-shrink: 0; }
.pricing-note { font-size: 14px; color: var(--text-muted); margin-top: 32px; }

/* ── FAQ Accordion (BS3 pattern) ─────────────────────────── */
.faq-panel {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-heading { background: rgba(255,255,255,0.04); }
.faq-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: #f1f5f9;
  cursor: pointer;
}
.faq-toggle .fa-chevron-down {
  font-size: 13px;
  color: var(--accent);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}
.faq-body {
  padding: 0 24px;
  background: rgba(255,255,255,0.02);
}
.faq-body.in { padding: 16px 24px 20px; }
.faq-body p { font-size: 16px; color: #8fabc4; margin: 0; line-height: 1.75; }

/* ── Contact Page ────────────────────────────────────────── */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 17px;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .fa {
  color: var(--accent);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.contact-form .form-control {
  height: 46px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  margin-bottom: 0;
}
.contact-form textarea.form-control { height: auto; padding: 14px; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-channels { margin-top: 8px; }
.contact-channels h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.channel-item { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.channel-item:last-child { border-bottom: none; }
.channel-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.channel-item .fa { color: var(--accent); margin-right: 6px; }
.channel-item p { font-size: 15px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.next-steps { margin-top: 32px; padding: 24px; background: var(--surface2); border-radius: var(--radius); }
.next-steps h4 { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.next-steps-list { padding-left: 20px; margin: 0; }
.next-steps-list li { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }

/* ── Blog Listing ────────────────────────────────────────── */
/* R78: fixed 3-col grid, no flex+grid conflict */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.blog-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.blog-card a { text-decoration: none; color: inherit; display: block; }
.blog-card-img { height: 200px; overflow: hidden; background: var(--surface2); }
.blog-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;  /* R86 */
  display: block;
}
.blog-card-body { padding: 20px 24px; }
.blog-card time { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.blog-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; color: var(--text); }
.blog-card p { font-size: 15px; color: var(--text-muted); margin: 0; line-height: 1.65; }
.blog-card a:hover h3 { color: var(--accent); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h3 { font-size: 16px; font-weight: 700; color: #f1f5f9; margin-bottom: 16px; }
.footer-col p { font-size: 15px; color: #8fabc4; line-height: 1.7; }
.footer-address { font-size: 14px; color: #64748b; margin-top: 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 15px; color: #8fabc4; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 14px; color: #64748b; margin: 0; }

/* ── Legal pages ─────────────────────────────────────────── */
.legal-section h2 { font-size: 24px; margin-top: 40px; margin-bottom: 12px; }
.legal-section h3 { font-size: 19px; margin-top: 24px; margin-bottom: 10px; }
.legal-section p { font-size: 16px; color: var(--text-muted); line-height: 1.8; }
.legal-section ul { padding-left: 20px; margin-bottom: 16px; }
.legal-section ul li { font-size: 16px; color: var(--text-muted); margin-bottom: 6px; line-height: 1.7; }
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}
.cookie-table th, .cookie-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.cookie-table th { background: var(--surface2); font-weight: 700; }

/* ── Cookie Banner ───────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1e293b;
  border-top: 2px solid var(--accent);
  padding: 16px 24px;
}
.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.cookie-text strong { display: block; font-size: 15px; color: #f1f5f9; margin-bottom: 4px; }
.cookie-text p { font-size: 14px; color: #8fabc4; margin: 0; }
.cookie-text a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
#cookie-accept {
  padding: 9px 22px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#cookie-accept:hover { background: var(--accent-dark); }
#cookie-decline {
  padding: 9px 22px;
  background: transparent;
  color: #8fabc4;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
#cookie-decline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Join section ────────────────────────────────────────── */
.join-section { background: var(--surface2); }
.join-section h2 { margin-bottom: 16px; }
.join-section p { color: var(--text-muted); margin-bottom: 16px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1199px) {
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .hero-section h1 { font-size: 42px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .capabilities-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-featured { transform: none; }
  .usecases-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .milestones-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; max-width: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .hero-section { padding: 60px 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-5 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .milestones-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cookie-content { flex-direction: column; align-items: flex-start; }
}

/* === Card Grid Alignment Fix (web0411 patch) === */
.row.features-grid {
    display: flex !important;
    flex-wrap: wrap !important;
}
.row.features-grid > [class*="col-"] {
    display: flex !important;
    flex-direction: column !important;
}
.feature-card-deep {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.feature-card-deep .feature-icon-sm {
    width: 52px;
    height: 52px;
    background-color: var(--accent-light, rgba(99,102,241,0.12));
    border-radius: 10px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
    color: var(--accent);
}
.feature-card-deep .feature-icon-sm .fa,
.feature-card-deep .feature-icon-sm .fas,
.feature-card-deep .feature-icon-sm span {
    color: var(--accent) !important;
    font-size: 22px;
}

/* ============================================================
   Button System — Consolidated Clean Rules (R75)
   mlpipekit.com uses DARK backgrounds throughout
   All outline buttons: white text + white border
   ============================================================ */

/* Primary CTA button */
.btn-accent {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent) !important;
    color: #ffffff !important;
    border: 2px solid var(--accent) !important;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.btn-accent:hover {
    background: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    color: #ffffff !important;
}

/* Outline button — dark bg: white border + white text */
.btn-outline,
.btn-secondary-custom {
    display: inline-block;
    padding: 14px 32px;
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.65) !important;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.btn-outline:hover,
.btn-secondary-custom:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* Accent outline button — accent border + accent text */
.btn-outline-accent {
    display: inline-block;
    padding: 14px 32px;
    background: transparent !important;
    color: var(--accent) !important;
    border: 2px solid var(--accent) !important;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.btn-outline-accent:hover {
    background: var(--accent) !important;
    color: #ffffff !important;
}

/* Navbar CTA button */
.nav-cta {
    display: inline-block;
    padding: 8px 20px !important;
    background: var(--accent) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
.nav-cta:hover {
    background: var(--accent-dark) !important;
    color: #ffffff !important;
}

/* btn-gap container */
.btn-gap {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}
/* Center buttons in CTA sections */
.cta-section .btn-gap,
.section-cta .btn-gap,
.text-center .btn-gap {
    justify-content: center;
}

/* btn-outline-sm: small outline button for article back links */
.btn-outline-sm {
    display: inline-block;
    padding: 8px 18px;
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.btn-outline-sm:hover {
    background: rgba(255,255,255,0.08) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* === CTA Section Force Dark Background + Button Fix === */
.cta-section {
    background: #0f172a !important;
    padding: 80px 0 !important;
}
.cta-section .cta-inner h2 {
    color: #ffffff !important;
}
.cta-section .cta-inner p {
    color: #8fabc4 !important;
}
/* Primary button stays accent */
.cta-section .btn-accent {
    background: var(--accent) !important;
    color: #ffffff !important;
    border-color: var(--accent) !important;
}
/* Outline button on dark bg: white border + white text */
.cta-section .btn-outline {
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.65) !important;
    background: transparent !important;
}
.cta-section .btn-outline:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: #ffffff !important;
}
/* Center the buttons */
.cta-section .btn-gap {
    justify-content: center !important;
}

/* === Article / Blog image sizing (R-IMG) === */
.img-fluid,
.blog-hero-img,
.article-thumbnail img,
.article-thumbnail,
article img,
.post-content img,
.container-narrow img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 8px;
    margin: 24px 0;
}
