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

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;

  --border: #e2e5ea;
  --border-light: #edf0f3;

  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --blue-dim: rgba(37, 99, 235, 0.08);

  --green: #16a34a;
  --green-dim: rgba(22, 163, 74, 0.08);

  --red: #dc2626;

  --text: #1f2937;
  --text-dim: #5f6b7a;
  --muted: #7b8492;
  --faint: #6b7280;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 85% -5%, rgba(37,99,235,0.08), transparent 60%),
    radial-gradient(ellipse 600px 400px at 0% 20%, rgba(34,197,94,0.03), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
}

p { margin: 0; color: var(--text-dim); }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

section { padding: 108px 0; position: relative; z-index: 1; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }

.eyebrow {
   font-size: 14px;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}
.section-head h2 { font-size: 36px; line-height: 1.2; margin-bottom: 14px; }
.section-head p { font-size: 17px; }

/* Nav */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
nav.wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 9px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--blue), #7c8cff); display: flex; align-items: center; justify-content: center; font-size: 13px; color: white; font-weight: 700; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { font-size: 14.5px; color: var(--text-dim); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-actions a.login-link { font-size: 14.5px; color: var(--text-dim); }
.nav-actions a.login-link:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; border: 1px solid transparent; transition: all .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: #4d68ff; }
.btn-ghost { background: transparent; border-color: #d1d5db; color: var(--text); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 90px 0 60px; border-top: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-copy h1 { font-size: 52px; line-height: 1.08; margin-bottom: 22px; max-width: 560px; }
.hero-copy .sub { font-size: 18px; color: var(--text-dim); max-width: 480px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.hero-note { font-size: 13.5px; color: var(--faint); }
.hero-visual { position: relative; }
.hero-visual .glow { position: absolute; inset: -40px; background: radial-gradient(circle at 60% 40%, rgba(61,90,254,0.25), transparent 65%); filter: blur(20px); z-index: -1; }

/* mock dashboard card */
.mock {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.mock-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-light); }
.mock-select { font-size: 12px; color: var(--muted); border: 1px solid var(--border-light); padding: 5px 10px; border-radius: 6px; }
.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.mock-stat { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 10px; padding: 12px; border-top: 2px solid var(--blue); }
.mock-stat .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 5px; }
.mock-stat .v { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mock-chart { height: 90px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; position: relative; overflow: hidden; padding: 10px; }
.mock-chart svg { width: 100%; height: 100%; }
.mock-table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mock-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; padding: 9px 12px; font-size: 12px; align-items: center; }
.mock-row.head { background: var(--surface-raised); color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; }
.mock-row:not(.head) { border-top: 1px solid var(--border); color: var(--text-dim); }
.mock-row:not(.head):nth-child(even) { background: rgba(255,255,255,0.015); }
.up { color: var(--green); }
.down { color: var(--red); }

/* Trust bar */
.trust-bar { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left; }
.trust-item .num { font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 600; color: var(--text); }
.trust-item .lab { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* Problem cards */
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.problem-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px 22px; }
.problem-card .ico { width: 34px; height: 34px; margin-bottom: 18px; opacity: .85; }
.problem-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.problem-card p { font-size: 14.5px; }
.transition-line { text-align: left; font-size: 20px; color: var(--text); margin-top: 44px; font-family: 'Space Grotesk', sans-serif; }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature-card .fico { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-dim); display: flex; align-items: center; justify-content: center; }
.feature-card h3 { font-size: 18px; }
.feature-card p { font-size: 14.5px; }
.feature-preview { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--faint); font-family: 'Space Grotesk', sans-serif; }

/* Split sections (rank tracking, client dashboard) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split.reverse .split-visual { order: 1; }
.split-copy h2 { font-size: 32px; margin-bottom: 16px; line-height: 1.2; }
.split-copy p { font-size: 16px; margin-bottom: 22px; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-dim); }
.checklist .tick { color: var(--green); flex-shrink: 0; margin-top: 1px; }

/* Reporting workflow */
.workflow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.wf-step { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 16px; text-align: left; }
.wf-step .n { font-family: 'Space Grotesk', sans-serif; font-size: 13px; color: var(--blue); margin-bottom: 10px; }
.wf-step .t { font-size: 14.5px; font-weight: 600; color: var(--text); }
.wf-arrow { color: var(--faint); flex-shrink: 0; }

/* How it works */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step-item { position: relative; padding-top: 18px; }
.step-item .stepnum { font-family: 'Space Grotesk', sans-serif; font-size: 42px; font-weight: 600; color: #d1d5db; line-height: 1; margin-bottom: 16px; }
.step-item h3 { font-size: 17px; margin-bottom: 8px; }
.step-item p { font-size: 14.5px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 26px; display: flex; flex-direction: column; }
.price-card.popular { border-color: var(--blue); background: linear-gradient(180deg, rgba(61,90,254,0.08), var(--surface) 40%); position: relative; transform: scale(1.03); }
.price-card .badge { position: absolute; top: -13px; left: 26px; background: var(--blue); color: white; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.price-name { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.price-amount { font-family: 'Space Grotesk', sans-serif; font-size: 42px; font-weight: 600; margin-bottom: 4px; }
.price-amount span { font-size: 15px; color: var(--muted); font-weight: 500; font-family: 'Inter', sans-serif; }
.price-note { font-size: 13px; color: var(--faint); margin-bottom: 26px; }
.price-feats { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-feats li { display: flex; gap: 9px; font-size: 14px; color: var(--text-dim); align-items: flex-start; }
.price-feats .tick { color: var(--green); margin-top: 2px; flex-shrink: 0; }
.billing-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--border-light); border-radius: 30px; padding: 4px; margin-bottom: 40px; }
.billing-toggle button { border: none; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 600; padding: 8px 18px; border-radius: 24px; cursor: pointer; font-family: 'Inter', sans-serif; }
.billing-toggle button.active { background: var(--blue); color: white; }
.save-pill { font-size: 11px; color: var(--green); background: var(--green-dim); padding: 2px 7px; border-radius: 10px; margin-left: 6px; }

/* Comparison table */
.comp-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.comp-table th, .comp-table td { padding: 15px 20px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.comp-table th { color: var(--muted); font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.comp-table td { color: var(--text-dim); }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table td:first-child { color: var(--text); font-weight: 500; }

/* ROI calc */
.roi-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.roi-field { margin-bottom: 20px; }
.roi-field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.roi-field input { width: 100%; background: var(--surface-raised); border: 1px solid var(--border-light); border-radius: 8px; padding: 11px 14px; color: var(--text); font-size: 15px; font-family: 'Inter', sans-serif; }
.roi-results { background: var(--surface-raised); border-radius: var(--radius-md); padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.roi-result-item .n { font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 600; color: var(--blue); }
.roi-result-item .l { font-size: 13px; color: var(--muted); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; cursor: pointer; }
.faq-item .q { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 500; color: var(--text); }
.faq-item .a { font-size: 14.5px; color: var(--text-dim); max-height: 0; overflow: hidden; transition: max-height .25s ease, margin .25s ease; margin-top: 0; }
.faq-item.open .a { max-height: 200px; margin-top: 12px; }
.faq-item .plus { font-size: 20px; color: var(--faint); transition: transform .2s; flex-shrink: 0; margin-left: 20px; }
.faq-item.open .plus { transform: rotate(45deg); color: var(--blue); }

/* Final CTA */
.final-cta { text-align: left; background: linear-gradient(135deg, rgba(61,90,254,0.1), transparent); border-radius: var(--radius-lg); padding: 64px; border: 1px solid var(--border-light); }
.final-cta h2 { font-size: 34px; margin-bottom: 12px; }
.final-cta p { font-size: 16.5px; margin-bottom: 28px; max-width: 480px; }

/* Footer */
footer { padding: 64px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer-col h4 { font-size: 13px; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.footer-col a { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 11px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--faint); }

/* Page header (for sub-pages) */
.page-header { padding: 64px 0 20px; text-align: left; }
.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 { font-size: 44px; line-height: 1.15; max-width: 700px; margin-bottom: 16px; }
.page-header p { font-size: 17px; max-width: 560px; }

/* Sticky mobile CTA */
.sticky-cta { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-grid, .split, .roi-box, .footer-grid { grid-template-columns: 1fr; }
  .split.reverse .split-copy, .split.reverse .split-visual { order: unset; }
  .problem-grid, .feature-grid, .steps-row, .pricing-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.popular { transform: none; }
  .hero-copy h1 { font-size: 38px; }
  .workflow { flex-direction: column; }
  .wf-arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
  .final-cta { padding: 40px 24px; }
  .sticky-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border); padding: 12px 16px;
  }
  .sticky-cta .btn { width: 100%; }
  body { padding-bottom: 66px; }
}

@media (max-width: 600px) {
  .problem-grid, .feature-grid, .steps-row, .pricing-grid, .trust-grid, .comp-table { grid-template-columns: 1fr; }
  .mock-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
