/* Default Theme Styles — Dark */
:root {
  --color-primary: #60a5fa;
  --color-secondary: #94a3b8;
  --color-accent: #34d399;
  --color-text: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-bg: #111827;
  --color-bg-alt: #1f2937;
  --color-border: #374151;
  --font-heading: system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --max-width: 768px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; line-height: 1.6; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

header { padding: 0.75rem 0; background: #0d1117; border-bottom: 1px solid var(--color-border); }
main { padding: 2rem 0; min-height: calc(100vh - 200px); }
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}
.footer-cta {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}
.footer-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.footer-cta p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.footer-cta .hero-form {
  margin: 0 auto;
}
.footer-links {
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--color-text-muted);
  font-weight: 500;
}
.footer-links a:hover { color: var(--color-primary); text-decoration: none; }
.built-with { color: var(--color-text-muted); font-size: 0.75rem; margin-bottom: 0.25rem; }

/* Navigation */
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header nav ul { list-style: none; display: flex; gap: 1.5rem; }
header nav a { color: var(--color-text); font-weight: 500; }
header nav a:hover { color: var(--color-primary); text-decoration: none; }
.site-title { font-size: 1rem; font-weight: 700; color: var(--color-text); }
.site-title:hover { text-decoration: none; color: var(--color-primary); }
header nav a { font-size: 0.875rem; }

/* Hero */
.hero {
  padding: 3rem 0 3.5rem;
  text-align: center;
}
.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #f3f4f6 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .tagline {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.hero-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}
.hero-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
}
.hero-form input:focus { border-color: var(--color-primary); }
.hero-form button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--color-primary);
  color: #111827;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}
.hero-form button:hover { opacity: 0.9; }
.hero-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* Integrations bar */
.integrations {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.integrations-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.integrations-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.integration {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.integration img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

/* Landing page sections */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.section-heading {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.section-body {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
}
.section-body p { margin-bottom: 1rem; }
.section-body p:last-child { margin-bottom: 0; }
.section-body strong { color: var(--color-text); }
.section-centered { text-align: center; }
.section-body-centered { margin: 0 auto; max-width: 540px; }

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.bento-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}
.bento-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.bento-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.bento-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}
.bento-card strong { color: var(--color-text); }

/* Differentiators */
.diffs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.diff h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.diff p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Cost table */
.cost-table {
  max-width: 480px;
  margin-top: 1.5rem;
}
.cost-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.cost-tool { color: var(--color-text-muted); }
.cost-price { color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.cost-total {
  border-bottom: 2px solid var(--color-border);
  padding-top: 0.75rem;
  font-weight: 600;
}
.cost-total .cost-tool,
.cost-total .cost-price { color: var(--color-text); }
.cost-yearly {
  border-bottom: none;
  padding-top: 0.5rem;
}
.cost-yearly .cost-tool { color: var(--color-primary); font-weight: 600; }
.cost-yearly .cost-price { color: var(--color-text-muted); font-size: 0.85rem; }
.cost-alternative {
  margin-top: 2rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* FAQ */
.faq {
  margin-top: 1.5rem;
}
.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.faq-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Diff strong */
.diff strong { color: var(--color-text); }

/* Bottom CTA */
.cta-bottom {
  text-align: center;
  border-bottom: none;
}
.cta-bottom .section-heading { margin-bottom: 0.5rem; }
.cta-bottom .section-body {
  margin: 0 auto 2rem;
}
.cta-bottom .hero-form {
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-form { flex-direction: column; }
  .bento { grid-template-columns: 1fr; }
  .diffs { grid-template-columns: 1fr; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1.5rem; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Article content */
article { max-width: 100%; }
article .content { line-height: 1.8; }

article .content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

article .content pre {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

article .content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-bg-alt);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

article .content pre code { background: none; padding: 0; }

article .content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--color-text-muted);
  font-style: italic;
}

article .content ul,
article .content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

article .content li { margin-bottom: 0.5rem; }

article .content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

article .content th,
article .content td {
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  text-align: left;
}

article .content th { background: var(--color-bg-alt); font-weight: 600; }

/* Post meta */
article header { border: none; padding: 0; margin-bottom: 1.5rem; }
time { color: var(--color-text-muted); font-size: 0.875rem; }
.author, .reading-time {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.tag {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.tag:hover { text-decoration: none; border-color: var(--color-primary); color: var(--color-primary); }

/* Post cards (list pages) */
.post-card {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}
.post-card:last-child { border-bottom: none; }
.post-card h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.post-card h2 a { color: var(--color-text); }
.post-card h2 a:hover { color: var(--color-primary); text-decoration: none; }
.excerpt { color: var(--color-text-muted); margin-top: 0.5rem; }
.description { color: var(--color-text-muted); margin-bottom: 2rem; }

/* Post navigation (prev/next) */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.page-info { color: var(--color-text-muted); font-size: 0.875rem; }

/* Recent posts */
.recent-posts { margin-top: 3rem; }
.recent-posts ul { list-style: none; padding: 0; }
.recent-posts li { margin-bottom: 0.75rem; }
.recent-posts p { color: var(--color-text-muted); font-size: 0.875rem; margin: 0; }

