/* ========================================
   DBPA Auditor — Landing Page
   ======================================== */

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

:root {
  --brand: #3b82f6;
  --brand-dark: #2563eb;
  --brand-light: rgba(59, 130, 246, 0.1);
  --dark: #0f172a;
  --dark-light: #1e293b;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); line-height: 1.6; }

/* ── Nav ────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 65px; overflow: hidden;
  background: #fff; border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-size: 18px; font-weight: 700; letter-spacing: -0.5px; }
.logo-icon { width: 32px; height: 32px; background: var(--brand); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; }
.nav-links { list-style: none; display: flex; gap: 24px; align-items: center; flex-shrink: 0; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-auth { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta-outline { color: var(--brand) !important; padding: 8px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 14px; white-space: nowrap; border: 1.5px solid var(--brand); background: transparent; }
.nav-cta-outline:hover { background: rgba(59,130,246,0.08); }
.nav-cta { background: var(--brand); color: #fff !important; padding: 8px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 14px; white-space: nowrap; flex-shrink: 0; }
.nav-cta:hover { background: var(--brand-dark); }

/* ── Hero ────────────────────────────────── */
.hero {
  background: var(--dark); color: #fff; padding: 140px 24px 80px;
  text-align: center;
}
.hero-inner { max-width: 740px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 5px 14px; background: rgba(59,130,246,0.12);
  color: var(--brand); font-size: 13px; font-weight: 600; border-radius: 20px; margin-bottom: 20px;
  border: 1px solid rgba(59,130,246,0.2);
}
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 16px; }
.hero h1 .accent { color: var(--brand); }
.hero-sub { font-size: 17px; color: #94a3b8; margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; font-size: 15px; font-weight: 600; border-radius: 8px; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(59,130,246,0.35); }
.btn-outline { background: none; border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.btn-outline:hover { border-color: rgba(255,255,255,0.5); }
.hero-stats { display: flex; gap: 40px; justify-content: center; }
.hero-stats .stat strong { display: block; font-size: 22px; font-weight: 800; }
.hero-stats .stat span { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Sections ────────────────────────────── */
.section { padding: 80px 24px; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-badge { display: inline-block; padding: 4px 12px; background: var(--brand-light); color: var(--brand); font-size: 12px; font-weight: 600; border-radius: 4px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.section-badge.bp-badge { background: rgba(59,130,246,0.1); color: #2563eb; }
.section-badge.dp-badge { background: rgba(34,197,94,0.1); color: #15803d; }
.section-header h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--text-secondary); line-height: 1.7; }

/* ── Two-Track Cards ────────────────────── */
.tracks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.track-card {
  display: block; text-decoration: none; color: var(--text);
  border: 2px solid var(--border); border-radius: 16px; padding: 40px 32px;
  text-align: center; transition: all 0.3s;
}
.track-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.track-bp:hover { border-color: var(--brand); }
.track-dp:hover { border-color: var(--green); }
.track-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.track-icon svg { width: 32px; height: 32px; }
.track-bp .track-icon { background: rgba(59,130,246,0.1); color: var(--brand); }
.track-dp .track-icon { background: rgba(34,197,94,0.1); color: var(--green); }
.track-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px; }
.track-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.track-cta { font-size: 14px; font-weight: 600; color: var(--brand); }
.track-dp .track-cta { color: var(--green); }

/* ── Feature Rows (BP section) ──────────── */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; margin-bottom: 64px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-content { order: 2; }
.feature-row.reverse .feature-preview { order: 1; }
.feature-content h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.feature-content > p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  font-size: 14px; color: var(--text-secondary); padding-left: 24px;
  position: relative; line-height: 1.5;
}
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(34,197,94,0.15); border: 2px solid var(--green);
}

/* ── Mock Dashboard Preview ────────────── */
.feature-preview { position: relative; }
.mock-dashboard {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.mock-header {
  background: var(--dark); color: #fff; padding: 14px 20px;
  font-size: 13px; font-weight: 700; letter-spacing: -0.3px;
}
.mock-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.mock-row:last-child { border-bottom: none; }
.mock-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.mock-dot.green { background: var(--green); }
.mock-dot.red { background: var(--red); }
.mock-dot.amber { background: var(--amber); }
.mock-dot.warn { background: #f97316; }
.mock-row strong { width: 110px; flex-shrink: 0; font-weight: 600; }
.mock-row span { flex: 1; color: var(--text-muted); font-size: 12px; }
.mock-status { flex: 0 0 auto !important; font-weight: 600; font-size: 12px !important; }
.mock-row.green .mock-status { color: var(--green); }
.mock-row.red .mock-status { color: var(--red); }
.mock-row.amber .mock-status { color: var(--amber); }
.mock-row.warn .mock-status { color: #f97316; }

/* ── Mock Timeline Preview ─────────────── */
.mock-timeline {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.tl-item {
  display: flex; gap: 16px; padding-bottom: 20px; position: relative;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: 7px; top: 20px; bottom: 0;
  width: 2px; background: var(--border);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  margin-top: 2px; border: 3px solid;
}
.tl-item.sent .tl-dot { border-color: var(--brand); background: rgba(59,130,246,0.15); }
.tl-item.received .tl-dot { border-color: var(--green); background: rgba(34,197,94,0.15); }
.tl-item.overdue .tl-dot { border-color: var(--red); background: rgba(239,68,68,0.15); }
.tl-content strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.tl-content span { font-size: 12px; color: var(--text-muted); }
.tl-item.overdue .tl-content strong { color: var(--red); }

/* ── Mock Variation Preview ────────────── */
.mock-variation {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.var-header {
  font-size: 15px; font-weight: 800; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.var-detail { font-size: 13px; margin-bottom: 8px; color: var(--text-secondary); }
.var-label { font-weight: 600; color: var(--text); }
.var-status {
  margin: 16px 0; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
}
.var-status.acknowledged { background: rgba(245,158,11,0.1); color: #b45309; border: 1px solid rgba(245,158,11,0.2); }
.var-actions {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.var-step {
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 6px; background: #f1f5f9; color: var(--text-muted);
}
.var-step.done { background: rgba(34,197,94,0.1); color: #15803d; }
.var-step.active { background: rgba(245,158,11,0.15); color: #b45309; border: 1px solid rgba(245,158,11,0.3); }
.var-arrow { color: var(--text-muted); font-size: 12px; }

/* ── Mock Export Preview ───────────────── */
.mock-export {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px; text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.export-icon { color: var(--brand); margin-bottom: 16px; }
.export-title { font-size: 16px; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.3px; }
.export-contents {
  text-align: left; background: var(--bg-alt); border-radius: 8px; padding: 16px 20px;
  margin-bottom: 20px;
}
.export-contents div {
  font-size: 12px; color: var(--text-secondary); padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.export-contents div:last-child { border-bottom: none; }
.export-btn {
  display: inline-block; padding: 12px 28px; background: var(--brand);
  color: #fff; border-radius: 8px; font-size: 14px; font-weight: 600;
}

/* ── Modules Grid ────────────────────────── */
.modules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.module-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: all 0.2s;
}
.module-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); transform: translateY(-2px); }
.module-card .mc-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.module-card .mc-icon svg { width: 22px; height: 22px; }
.mc-icon.blue { background: rgba(59,130,246,0.1); color: var(--brand); }
.mc-icon.green { background: rgba(34,197,94,0.1); color: var(--green); }
.mc-icon.amber { background: rgba(245,158,11,0.1); color: var(--amber); }
.mc-icon.red { background: rgba(239,68,68,0.1); color: var(--red); }
.module-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.module-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.module-card { position: relative; }
.module-tier {
  position: absolute; top: 12px; right: 12px;
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 6px; letter-spacing: 0.3px; text-transform: uppercase;
}
.module-tier.free { background: #f1f5f9; color: #64748b; }
.module-tier.pro { background: linear-gradient(135deg, #7c3aed, #2563eb); color: white; }
.modules-grid .module-card:last-child { grid-column: 1 / -1; }

/* ── Flow Steps (connection) ─────────────── */
.flow-steps {
  display: flex; align-items: flex-start; gap: 0;
  max-width: 900px; margin: 0 auto;
}
.flow-step {
  flex: 1; text-align: center; padding: 0 12px; position: relative;
}
.flow-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand);
  color: #fff; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.flow-role {
  display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.3px;
}
.bp-tag { background: rgba(59,130,246,0.1); color: #2563eb; }
.dp-tag { background: rgba(34,197,94,0.1); color: #15803d; }
.auto-tag { background: rgba(124,58,237,0.1); color: #7c3aed; }
.flow-step h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.flow-step p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.flow-connector {
  width: 32px; height: 2px; background: var(--border); flex-shrink: 0;
  margin-top: 20px;
}

/* ── Carrot & Stick ─────────────────────── */
.carrot-stick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cs-column {
  border-radius: var(--radius); padding: 32px; border: 1px solid var(--border);
}
.cs-column.stick { background: #fef2f2; border-color: #fecaca; }
.cs-column.carrot { background: #f0fdf4; border-color: #bbf7d0; }
.cs-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid;
}
.cs-header h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.stick-header { color: #b91c1c; border-bottom-color: #fecaca; }
.carrot-header { color: #15803d; border-bottom-color: #bbf7d0; }
.cs-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.cs-list li { display: flex; gap: 12px; align-items: flex-start; }
.cs-icon {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; margin-top: 2px;
}
.stick-icon { background: #fecaca; color: #b91c1c; }
.carrot-icon { background: #bbf7d0; color: #15803d; }
.cs-list strong { font-size: 14px; font-weight: 700; color: var(--text); display: block; margin-bottom: 2px; }
.cs-list p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ── Audit Findings ──────────────────────── */
.findings-list { max-width: 720px; margin: 0 auto; }
.finding { padding: 20px 0; border-bottom: 1px solid var(--border); }
.finding:last-child { border-bottom: none; }
.finding-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.finding-label.red { color: var(--red); }
.finding-label.amber { color: var(--amber); }
.finding h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.finding p { font-size: 14px; color: var(--text-secondary); }
.finding .penalty { font-size: 12px; color: var(--red); font-weight: 600; margin-top: 4px; }

/* ── Pricing ────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 720px; margin: 0 auto;
}
.price-card {
  border: 1px solid var(--border); border-radius: 16px; padding: 36px 28px;
  background: var(--bg);
}
.price-card.featured {
  border-color: var(--brand); box-shadow: 0 4px 24px rgba(59,130,246,0.12);
  position: relative;
}
.price-card.featured::before {
  content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.3px;
}
.price-label { font-size: 14px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.price-amount { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 4px; }
.price-period { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li {
  font-size: 14px; color: var(--text-secondary); padding: 8px 0 8px 24px;
  border-bottom: 1px solid var(--border); position: relative;
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(34,197,94,0.15); border: 2px solid var(--green);
}

/* ── FAQ ──────────────────────────────────── */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 20px 0; font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: inherit; color: var(--text);
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--text-muted); transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 20px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── Footer ──────────────────────────────── */
.footer { background: var(--dark); color: #94a3b8; padding: 48px 24px; text-align: center; font-size: 13px; }
.footer a { color: var(--brand); text-decoration: none; }
.footer .footer-brand { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: 30px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .nav-links { display: none; }
  .tracks-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-content { order: 1; }
  .feature-row.reverse .feature-preview { order: 2; }
  .modules-grid { grid-template-columns: 1fr; }
  .flow-steps { flex-direction: column; align-items: center; }
  .flow-connector { width: 2px; height: 24px; }
  .carrot-stick-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}
