/* Bristlenose website — minimal functional CSS */

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

:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
  --max-width: 960px;
  --color-text: #1a1a1a;
  --color-muted: #666;
  --color-border: #e5e5e5;
  --color-bg: #fff;
  --color-bg-alt: #f8f8f8;
  --color-accent: #2563eb;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

/* Nav */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem;
}
.nav-logo { font-weight: 600; text-decoration: none; color: var(--color-text); font-size: 1.1rem; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: var(--color-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--color-text); }

/* Sections */
section { max-width: var(--max-width); margin: 0 auto; padding: 3rem 1rem; }

/* Hero */
.hero { text-align: center; padding-top: 4rem; }
.hero h1 { font-size: 2.4rem; line-height: 1.2; max-width: 700px; margin: 0 auto 1rem; }
.hero-subtitle { font-size: 1.15rem; color: var(--color-muted); max-width: 600px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; margin-bottom: 1rem; }
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 6px; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.btn-primary { background: var(--color-text); color: #fff; }
.btn-secondary { border: 1px solid var(--color-border); color: var(--color-text); }
.hero-note { font-size: 0.85rem; color: var(--color-muted); }

/* Video */
.video-section { text-align: center; }
.placeholder-box { background: var(--color-bg-alt); border: 2px dashed var(--color-border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--color-muted); font-size: 0.9rem; }
.placeholder-video { max-width: 640px; margin: 0 auto; aspect-ratio: 16/9; }
.placeholder-screenshot { width: 100%; aspect-ratio: 16/10; }

/* Features */
.features { padding-top: 2rem; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.feature-row-reverse .feature-text { order: 2; }
.feature-row-reverse .feature-image { order: 1; }
.feature-text h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.feature-text p { color: var(--color-muted); }

/* Story */
.story h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.story p { margin-bottom: 1rem; max-width: 640px; }
.story p:last-child { margin-bottom: 0; }

/* How it works */
.how-it-works h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; margin-bottom: 1.5rem; padding-left: 2.5rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--color-bg-alt); border: 1px solid var(--color-border); text-align: center; line-height: 1.8rem; font-size: 0.85rem; font-weight: 600; }
.steps li strong { display: block; }
.steps li span { color: var(--color-muted); }

/* Privacy */
.privacy h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.privacy p { max-width: 640px; }

/* Providers */
.providers h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.providers > p { color: var(--color-muted); margin-bottom: 1rem; }
.provider-list { list-style: none; }
.provider-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); }
.provider-list li:last-child { border-bottom: none; }

/* Pricing */
.pricing { text-align: center; }
.pricing h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.pricing-card { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 8px; padding: 2rem; max-width: 480px; margin: 0 auto; }
.pricing-main { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.75rem; }
.pricing-detail { margin-bottom: 0.75rem; }
.pricing-free { font-size: 0.85rem; color: var(--color-muted); }

/* Newsletter */
.newsletter { text-align: center; }
.newsletter h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.newsletter > p { color: var(--color-muted); margin-bottom: 1.5rem; }
.substack-embed iframe { max-width: 100%; }

/* Footer */
.site-footer { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1rem; border-top: 1px solid var(--color-border); }
.footer-links { display: flex; gap: 1.5rem; margin-bottom: 0.75rem; }
.footer-links a { text-decoration: none; color: var(--color-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--color-text); }
.footer-note { font-size: 0.82rem; color: var(--color-muted); }
.footer-note a { color: var(--color-muted); }

/* Manual layout */
.manual-layout { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
.manual-toc { position: sticky; top: 2rem; align-self: start; }
.manual-toc ul { list-style: none; }
.manual-toc li { margin-bottom: 0.4rem; }
.manual-toc a { text-decoration: none; color: var(--color-muted); font-size: 0.9rem; }
.manual-toc a:hover { color: var(--color-text); }
.manual-content { max-width: 700px; }
.manual-content section { padding: 2rem 0; }
.manual-content h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.manual-content h2 { font-size: 1.5rem; margin-top: 1rem; margin-bottom: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.manual-content section:first-child h2 { border-top: none; }
.manual-content h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.manual-content p { margin-bottom: 0.75rem; }
.manual-content ul, .manual-content ol { margin-bottom: 0.75rem; padding-left: 1.5rem; }
.manual-content li { margin-bottom: 0.3rem; }
.manual-content pre { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 4px; padding: 0.75rem 1rem; overflow-x: auto; margin-bottom: 0.75rem; }
.manual-content code { font-family: var(--font-mono); font-size: 0.88rem; }
.manual-content p code { background: var(--color-bg-alt); padding: 0.15rem 0.35rem; border-radius: 3px; }

/* Tables */
.shortcuts-table, .commands-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.92rem; }
.shortcuts-table th, .commands-table th { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 2px solid var(--color-border); font-weight: 600; }
.shortcuts-table td, .commands-table td { padding: 0.4rem 0.75rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
kbd { display: inline-block; padding: 0.15rem 0.4rem; font-family: var(--font-mono); font-size: 0.82rem; background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 3px; line-height: 1; }

/* Changelog */
.changelog-entry { margin-bottom: 2rem; }
.changelog-entry h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.changelog-date { font-weight: 400; color: var(--color-muted); margin-left: 0.5rem; }
.changelog-entry ul { padding-left: 1.5rem; }
.changelog-entry li { margin-bottom: 0.3rem; font-size: 0.92rem; }

/* Responsive */
@media (max-width: 700px) {
  .hero h1 { font-size: 1.8rem; }
  .feature-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-row-reverse .feature-text { order: 1; }
  .feature-row-reverse .feature-image { order: 2; }
  .manual-layout { grid-template-columns: 1fr; }
  .manual-toc { position: static; }
  .hero-cta { flex-direction: column; align-items: center; }
}
