/* Datavelox Marketing Site — styles.css
   Token values match PHASE0-005 §2.1 exactly.
   When Agent B's design system merges, swap hardcoded hex values
   for CSS variable references if the marketing site is ever
   brought into the same build pipeline. For now these are correct
   standalone values. */

:root {
  --brand-primary: #185FA5;
  --brand-primary-dark: #0F4583;
  --brand-accent: #1D9E75;
  --text-primary: #1A1A2E;
  --text-secondary: #4A5568;
  --text-tertiary: #718096;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F8FA;
  --border: #E2E8F0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────── */

header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
}
.logo span {
  color: var(--brand-primary);
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 32px;
  font-size: 15px;
}
nav a:hover { color: var(--text-primary); }

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--brand-primary);
  color: white;
}
.btn-primary:hover {
  background: var(--brand-primary-dark);
}
.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-secondary);
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  padding: 96px 0 64px;
  text-align: center;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.hero h1 .accent { color: var(--brand-primary); }
.hero p.lead {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

/* ── Feature-highlight card (replaces screenshot slots) ──── */

.feature-highlight {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.feature-highlight .highlight-icon {
  font-size: 48px;
  margin-bottom: 20px;
}
.feature-highlight h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.feature-highlight p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Sections ────────────────────────────────────────────── */

section {
  padding: 96px 0;
}
section.alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* ── Grids ───────────────────────────────────────────────── */

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ── Feature cards ───────────────────────────────────────── */

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.feature-card .icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}
.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}
.feature-card .card-link {
  color: var(--brand-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
  display: inline-block;
}
.feature-card .card-link:hover {
  text-decoration: underline;
}

/* ── Pricing ─────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.pricing-card.popular {
  border-color: var(--brand-primary);
  border-width: 2px;
  position: relative;
}
.pricing-card.popular::before {
  content: 'Most popular';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pricing-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.pricing-card .price {
  font-size: 48px;
  font-weight: 700;
  margin: 16px 0 4px;
  color: var(--text-primary);
  line-height: 1;
}
.pricing-card .price .period {
  font-size: 16px;
  color: var(--text-tertiary);
  font-weight: 400;
}
.pricing-card .price-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}
.pricing-card ul {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}
.pricing-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}
.pricing-card li:last-child {
  border-bottom: none;
}
.pricing-card li .check {
  color: var(--brand-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-card li .coming-soon {
  font-size: 11px;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 4px;
  white-space: nowrap;
}
.pricing-footnote {
  text-align: center;
  margin-top: 32px;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* ── How it works (feature detail pages) ────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: steps;
}
.step {
  counter-increment: steps;
}
.step::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--brand-primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.step p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ── About page ──────────────────────────────────────────── */

.about-body {
  max-width: 720px;
  margin: 0 auto;
}
.about-body p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}
.about-body p strong {
  color: var(--text-primary);
}

/* ── Draft banner (legal pages) ─────────────────────────── */

.draft-banner {
  background: #FFF3CD;
  border: 1px solid #FFC107;
  border-radius: 6px;
  padding: 12px 20px;
  margin-bottom: 32px;
  font-size: 14px;
  color: #856404;
}

/* ── Legal page body ─────────────────────────────────────── */

.legal-body {
  max-width: 800px;
  margin: 0 auto;
}
.legal-body h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 12px;
  color: var(--text-primary);
}
.legal-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text-primary);
}
.legal-body p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.legal-body ul {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px 24px;
}
.legal-body li {
  margin-bottom: 8px;
}
.placeholder-field {
  background: #FFF3CD;
  border: 1px solid #FFC107;
  border-radius: 3px;
  padding: 1px 6px;
  font-family: monospace;
  font-size: 13px;
  color: #856404;
}

/* ── Page hero (feature detail pages) ───────────────────── */

.page-hero {
  padding: 72px 0 48px;
  text-align: center;
}
.page-hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.page-hero p.lead {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* ── Pricing page hero ───────────────────────────────────── */

.pricing-hero {
  padding: 72px 0 48px;
  text-align: center;
}
.pricing-hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.pricing-hero p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  font-weight: 600;
}
footer ul {
  list-style: none;
}
footer li { padding: 4px 0; }
footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
}
footer a:hover { color: var(--brand-primary); }
.footer-tagline {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero h1 { font-size: 40px; }
  .hero p.lead { font-size: 17px; }
  .page-hero h1 { font-size: 36px; }
  .page-hero p.lead { font-size: 17px; }
  .pricing-hero h1 { font-size: 36px; }
  .three-col { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  nav a:not(.btn) { display: none; }
  .hero-cta { flex-direction: column; align-items: center; }
}

@media (max-width: 375px) {
  .hero h1 { font-size: 32px; }
  .container { padding: 0 16px; }
}
