/* Shared marketing-site styling: landing, blog, and legal pages. Same
   palette as the app (web/src/styles.css) so the brand feels whole across
   the static site and the React tool. */
* { box-sizing: border-box; margin: 0; }
:root {
  --bg: #0e1116; --card: #171c24; --border: #2a3240;
  --text: #e6ebf2; --muted: #8b96a5; --accent: #4f8ef7; --accent-hover: #6ba1f8;
}
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
}
.wrap { max-width: 72ch; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
nav a { color: var(--accent); text-decoration: none; font-weight: 600; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 1.5rem 0 0.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
p, li { color: #c9d2dd; }
p { margin: 0.8rem 0; }
ul, ol { padding-left: 1.4rem; margin: 0.8rem 0; }
a { color: var(--accent); }
.meta { color: var(--muted); font-size: 0.9rem; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
th, td { border: 1px solid var(--border); padding: 0.5rem 0.7rem; text-align: left; }
th { background: var(--card); }
.cta {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem 1.5rem; margin: 2rem 0;
}
.cta a.button {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 600;
  padding: 0.6rem 1.1rem; border-radius: 8px; text-decoration: none; margin-top: 0.5rem;
}
code { background: var(--card); border-radius: 4px; padding: 0.1rem 0.35rem; font-size: 0.9em; }
.postlist { list-style: none; padding: 0; }
.postlist li { margin: 1.25rem 0; }
.postlist a { font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.postlist p { margin: 0.25rem 0 0; }

/* --- shared site header/footer (landing, blog, legal) --- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1000px; margin: 0 auto; padding: 1.5rem 1.25rem;
  flex-wrap: wrap; gap: 1rem;
}
.site-header .logo { font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a { color: var(--muted); font-weight: 500; }
.site-header nav a:hover { color: var(--text); }
.site-header nav a.button {
  background: var(--accent); color: #fff; padding: 0.5rem 1rem; border-radius: 8px;
  font-weight: 600;
}
.site-header nav a.button:hover { background: var(--accent-hover); }

.site-footer {
  max-width: 1000px; margin: 3rem auto 0; padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: 0.9rem;
}
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); font-weight: 500; }
.site-footer nav a:hover { color: var(--text); }

/* --- landing page --- */
.hero { max-width: 1000px; margin: 2rem auto; padding: 2rem 1.25rem 1rem; text-align: center; }
.hero h1 { font-size: 2.75rem; margin: 0 0 1rem; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 2rem; }
.hero .cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.75rem; }
.hero .cta-row a.button {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  padding: 0.85rem 1.6rem; border-radius: 10px; text-decoration: none; font-size: 1.05rem;
}
.hero .cta-row a.button:hover { background: var(--accent-hover); }
.hero .cta-row a.secondary { color: var(--muted); padding: 0.85rem 1rem; font-weight: 600; }
.hero .fine-print { color: var(--muted); font-size: 0.85rem; }

.screenshot {
  max-width: 720px; margin: 2.5rem auto; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.screenshot img { display: block; width: 100%; }

section.section { max-width: 1000px; margin: 0 auto; padding: 3rem 1.25rem; }
section.section h2 { text-align: center; font-size: 1.8rem; margin: 0 0 0.5rem; }
section.section .section-lede { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 2.5rem; }

.steps-grid, .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 720px) { .steps-grid, .features-grid { grid-template-columns: 1fr; } }
.step-card, .feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem;
}
.step-card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 999px; background: var(--accent);
  color: #fff; font-weight: 700; margin-bottom: 0.75rem; font-size: 0.95rem;
}
.step-card h3, .feature-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--text); }
.step-card p, .feature-card p { font-size: 0.92rem; margin: 0; color: var(--muted); }
.feature-card .icon { font-size: 1.5rem; margin-bottom: 0.6rem; display: block; }

.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 640px; margin: 0 auto; }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.75rem; text-align: center;
}
.price-card .amount { font-size: 2.25rem; font-weight: 800; color: var(--text); margin: 0.5rem 0; }
.price-card .amount small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 1.25rem 0; text-align: left; font-size: 0.9rem; }
.price-card li { margin: 0.4rem 0; color: #c9d2dd; }
.price-card li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.price-card-button {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 600;
  padding: 0.6rem 1.2rem; border-radius: 8px; text-decoration: none;
}
.price-card-button:hover { background: var(--accent-hover); }
.price-card-button.outline { background: var(--bg); border: 1px solid var(--border); color: var(--text); }
.price-card-button.outline:hover { border-color: var(--accent); }

.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--text); }
.faq-item p { margin: 0; font-size: 0.92rem; }

.footer-cta { text-align: center; padding: 3rem 1.25rem; }
.footer-cta a.button {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  padding: 0.85rem 1.8rem; border-radius: 10px; text-decoration: none; font-size: 1.05rem; margin-top: 1rem;
}
.footer-cta a.button:hover { background: var(--accent-hover); }
