/* ================================================================
   HealthCIP — Main Stylesheet
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0a7e8c;
  --primary-light: #e0f5f8;
  --primary-dark: #065a64;
  --secondary: #1a3a4a;
  --accent: #00b4d8;
  --accent-light: #e6faff;
  --success: #10b981;
  --warning: #f59e0b;
  --light: #f8fafc;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--secondary);
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 10px 24px;
  background: var(--primary);
  color: white !important;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---- Hero ---- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--secondary) 0%, #0f2a36 50%, var(--primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.12);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--secondary);
}

.btn-primary:hover { background: #0098b8; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.hero-mockup {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-mockup-screen {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-mockup-bar {
  height: 32px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}

.hero-mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.hero-mockup-dot:nth-child(1) { background: #ff5f56; }
.hero-mockup-dot:nth-child(2) { background: #ffbd2e; }
.hero-mockup-dot:nth-child(3) { background: #27c93f; }

.hero-mockup-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mockup-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); flex-shrink: 0; }
.mockup-line { height: 12px; border-radius: 6px; background: var(--gray-100); flex: 1; }
.mockup-line.wide { width: 70%; }
.mockup-line.short { width: 40%; }
.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mockup-card {
  height: 60px;
  border-radius: var(--radius);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 10px;
}
.mockup-icon { width: 28px; height: 28px; border-radius: 6px; background: var(--primary-light); flex-shrink: 0; }

/* ---- Stats Strip ---- */
.stats-strip {
  padding: 48px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.stat-plus {
  font-size: 1.5rem;
  color: var(--accent);
  vertical-align: super;
}

/* ---- Sections common ---- */
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ---- Features ---- */
.features { background: var(--light); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: all 0.3s;
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-icon.teal { background: var(--primary-light); color: var(--primary); }
.feature-icon.blue { background: #dbeafe; color: #2563eb; }
.feature-icon.green { background: #d1fae5; color: #059669; }
.feature-icon.purple { background: #ede9fe; color: #7c3aed; }
.feature-icon.amber { background: #fef3c7; color: #d97706; }
.feature-icon.rose { background: #ffe4e6; color: #e11d48; }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.feature-tag.ai { background: var(--primary-light); color: var(--primary); }
.feature-tag.new { background: #d1fae5; color: #059669; }
.feature-tag.infra { background: var(--gray-100); color: var(--gray-600); }

/* ---- AI Section ---- */
.ai-section { background: var(--white); position: relative; }

.ai-showcase {
  background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
  border-radius: var(--radius-xl);
  padding: 48px;
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ai-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.ai-content p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  line-height: 1.7;
}

.ai-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.ai-benefits li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--success);
  margin-top: 2px;
}

.ai-workflow {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.1);
}

.workflow-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.workflow-step:last-child { border-bottom: none; padding-bottom: 0; }

.workflow-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--secondary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.workflow-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.workflow-text p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---- Integrations ---- */
.integrations { background: var(--light); }

.integration-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.integration-logo {
  padding: 16px 28px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.integration-logo .icon { font-size: 1.4rem; }

/* ---- Roles ---- */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.role-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all 0.3s;
}

.role-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.role-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.role-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--secondary); }
.role-card p { font-size: 0.8rem; color: var(--gray-400); margin-top: 4px; }

/* ---- CTA ---- */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 80px 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta {
  background: white;
  color: var(--primary);
  padding: 16px 40px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

.btn-cta-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cta-outline:hover { border-color: white; background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ---- Footer ---- */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo { color: white; }
.footer-brand p {
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.7;
}

.footer h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ---- Pricing Page ---- */
.pricing-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
  color: white;
  text-align: center;
}

.pricing-hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; }
.pricing-hero p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px 0 48px;
}

.toggle-label { font-size: 0.95rem; color: var(--gray-600); }
.toggle-label.active { color: var(--secondary); font-weight: 600; }

.toggle-switch {
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: var(--gray-300);
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-switch.active { background: var(--primary); }

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  transition: transform 0.3s;
  box-shadow: var(--shadow-sm);
}

.toggle-switch.active::after { transform: translateX(22px); }

.save-badge {
  background: #d1fae5;
  color: #059669;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-100);
  padding: 36px 28px;
  transition: all 0.3s;
  position: relative;
}

.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(10, 126, 140, 0.12);
  transform: scale(1.02);
}

.pricing-card.popular:hover { transform: scale(1.02) translateY(-4px); }

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.pricing-amount {
  margin-bottom: 28px;
}

.pricing-amount .currency {
  font-size: 1.2rem;
  font-weight: 600;
  vertical-align: super;
  color: var(--gray-500);
}

.pricing-amount .amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
}

.pricing-amount .period {
  font-size: 0.9rem;
  color: var(--gray-400);
}

.pricing-features {
  list-style: none;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.pricing-features li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--primary);
  flex-shrink: 0;
}

.pricing-features li.na { color: var(--gray-400); }
.pricing-features li.na::before { background: var(--gray-100); color: var(--gray-300); content: '✕'; }

.pricing-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--gray-200);
  background: white;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
}

.pricing-btn:hover { border-color: var(--primary); color: var(--primary); }

.pricing-btn.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pricing-btn.primary:hover { background: var(--primary-dark); }

/* Comparison Table */
.comparison-section {
  padding: 80px 0;
  background: var(--light);
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
}

.comparison-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table td:first-child { font-weight: 500; }
.comparison-table td { text-align: center; }
.comparison-table td:first-child { text-align: left; }

.check-cell { color: var(--success); font-weight: 700; font-size: 1.1rem; }
.dash-cell { color: var(--gray-300); }

.faq-section { padding: 80px 0; }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  background: white;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  font-size: 0.95rem;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--gray-800);
}

.faq-question:hover { background: var(--gray-50); }
.faq-question .arrow { transition: transform 0.3s; }
.faq-question.open .arrow { transform: rotate(180deg); }

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  background: var(--gray-50);
}

.faq-answer.open {
  padding: 18px 24px;
  max-height: 500px;
}

/* ---- Documentation Page ---- */
.docs-hero {
  padding: 120px 0 48px;
  background: var(--light);
  border-bottom: 1px solid var(--gray-200);
}

.docs-hero h1 { font-size: 2.4rem; font-weight: 700; color: var(--secondary); }
.docs-hero p { color: var(--gray-500); max-width: 600px; margin-top: 8px; }

.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
  align-self: start;
}

.docs-sidebar h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 16px;
  font-weight: 600;
}

.docs-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--gray-600);
  border-radius: 6px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.docs-nav a:hover,
.docs-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
}

.docs-content {
  min-height: 60vh;
}

.docs-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 48px;
  margin-bottom: 16px;
}

.docs-content h2:first-child { margin-top: 0; }

.docs-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.docs-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-top: 24px;
  margin-bottom: 8px;
}

.docs-content p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.docs-content ul, .docs-content ol {
  margin: 0 0 16px 20px;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.docs-content li { margin-bottom: 6px; }

.docs-content strong { color: var(--gray-800); }

.docs-content code {
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--primary);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.docs-content pre {
  background: var(--gray-900);
  color: #e5e7eb;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 16px 0 24px;
  font-size: 0.85rem;
  line-height: 1.6;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.docs-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.docs-content .tip {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0 24px;
}

.docs-content .tip p { margin-bottom: 0; color: var(--primary-dark); font-size: 0.9rem; }

.docs-content .tip strong { color: var(--secondary); }

.docs-content .warning-box {
  background: #fff7ed;
  border-left: 4px solid var(--warning);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0 24px;
}

.docs-content .warning-box p { margin-bottom: 0; color: #9a3412; font-size: 0.9rem; }

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

.docs-content table th,
.docs-content table td {
  padding: 10px 16px;
  border: 1px solid var(--gray-200);
  text-align: left;
}

.docs-content table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.85rem;
}

.docs-content table td { color: var(--gray-600); }

.docs-nav-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  font-weight: 600;
  padding: 16px 14px 6px;
  font-size: 0.75rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-mockup { max-width: 500px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .ai-showcase { grid-template-columns: 1fr; text-align: center; }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card.popular { transform: none; }
  .pricing-card.popular:hover { transform: translateY(-4px); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .integration-logos { gap: 24px; }
}

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

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: white;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }

  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 64px 0; }
  .section h2 { font-size: 1.8rem; }
  .features-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .pricing-hero h1 { font-size: 2rem; }

  .comparison-table { font-size: 0.8rem; }
  .comparison-table th,
  .comparison-table td { padding: 10px 12px; }

  .ai-showcase { padding: 32px 24px; }

  .hero-mockup { display: none; }
}

@media (max-width: 480px) {
  .roles-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
