/* DetailFlash marketing site - single CSS file, no framework */
/* Tokens copied 1:1 from frontend/src/index.css */
:root {
  --surface-900: oklch(0.16 0.01 250);
  --surface-800: oklch(0.20 0.01 250);
  --surface-700: oklch(0.25 0.012 250);
  --surface-600: oklch(0.30 0.012 250);
  --text-primary: oklch(0.95 0.01 250);
  --text-secondary: oklch(0.65 0.02 250);
  --text-muted: oklch(0.50 0.015 250);
  --accent: oklch(0.72 0.14 195);
  --accent-hover: oklch(0.78 0.14 195);
  --accent-muted: oklch(0.72 0.14 195 / 0.15);
  --border: oklch(0.30 0.01 250);
  --border-subtle: oklch(0.25 0.01 250);
  --max-w: 64rem;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/dmsans/v15/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAop-hSA.woff2") format("woff2");
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--surface-900); color: var(--text-primary); }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }

/* Header */
.site-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 1.5rem;
}
.site-header nav a:hover { color: var(--text-primary); }
.site-header .cta-login { color: var(--text-primary); }

/* Hero */
.hero { max-width: var(--max-w); margin: 0 auto; padding: 4rem 1.5rem 6rem; }
.eyebrow {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin: 0 0 2rem;
}
.hero-title {
  font-size: clamp(3.25rem, 9vw, 6rem);
  line-height: 0.92;
  margin: 0 0 2rem;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 42ch;
  margin: 0 0 2.5rem;
}
.hero-cta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--surface-900);
  padding: 0.9rem 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: none;
}
.btn-primary:hover { background: var(--accent-hover); color: var(--surface-900); }
.cta-note { color: var(--text-muted); font-size: 0.9rem; }

/* Features */
.features {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature-num {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.feature h3 { font-size: 1.5rem; margin: 0 0 0.75rem; }
.feature p { color: var(--text-secondary); margin: 0; }

/* Pricing */
.pricing {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.pricing h2 { font-size: 2.25rem; margin: 0 0 0.5rem; }
.pricing-sub { color: var(--text-secondary); margin: 0 0 3rem; }
.price-card {
  max-width: 24rem;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--surface-800);
  border: 1px solid var(--border);
}
.price { font-size: 3rem; font-weight: 700; margin-bottom: 1.5rem; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
  color: var(--text-secondary);
}
.price-card li { padding: 0.4rem 0; }
.price-card li::before { content: "— "; color: var(--accent); }

/* Prose (page + blog post) */
.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.prose h1 { font-size: 2.5rem; margin: 0 0 1.5rem; }
.prose h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.prose p { color: var(--text-secondary); margin: 0 0 1.25rem; }
.prose ul, .prose ol { color: var(--text-secondary); padding-left: 1.25rem; }
.prose li { margin: 0.25rem 0; }
.prose code {
  background: var(--surface-700);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  color: var(--text-primary);
  font-style: italic;
  margin: 1.5rem 0;
}

/* Blog index */
.blog-index { max-width: 42rem; margin: 0 auto; padding: 4rem 1.5rem; }
.blog-header h1 { font-size: 2.5rem; margin: 0 0 0.5rem; }
.blog-header p { color: var(--text-secondary); margin: 0 0 3rem; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.post-item time { color: var(--text-muted); font-size: 0.85rem; }
.post-item h2 { font-size: 1.5rem; margin: 0.25rem 0 0.5rem; }
.post-item h2 a { color: var(--text-primary); }
.post-item h2 a:hover { color: var(--accent); }
.post-item p { color: var(--text-secondary); margin: 0; }

/* Blog post */
.blog-post header { margin-bottom: 2.5rem; }
.blog-post header time { color: var(--text-muted); font-size: 0.85rem; }
.blog-post header h1 { margin: 0.25rem 0 1rem; }
.blog-post .lede {
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.5;
}
.author-bio {
  margin-top: 4rem;
  padding: 2rem 2rem;
  background: var(--surface-800);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}
.author-bio p { margin: 0; }
.author-bio strong { color: var(--text-primary); font-size: 0.95rem; }

.post-cta {
  margin-top: 2.5rem;
  padding: 2.5rem;
  background: var(--surface-800);
  border: 1px solid var(--border);
  text-align: center;
}
.post-cta h3 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.post-cta p { color: var(--text-secondary); margin: 0 0 1.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 1.5rem 2rem;
  margin-top: 6rem;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-grid h4 {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 1rem;
}
.footer-grid a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 0.25rem 0;
}
.footer-grid a:hover { color: var(--text-primary); }
.copyright {
  max-width: var(--max-w);
  margin: 3rem auto 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .site-header nav a { margin-left: 1rem; }
  .prose { padding: 3rem 1.25rem; }
}
