:root { --brand: #2563eb; --brand-dark: #1d4ed8; --ink: #1f2937; --muted: #6b7280; --line: #e5e7eb; }
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); line-height: 1.6;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--brand); }
.wrap { max-width: 60rem; margin: 0 auto; padding: 1rem 1.25rem; }

/* Site header / nav */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; background: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; flex-wrap: nowrap; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; flex: none; }
.brand .brand-mark { width: 1.6rem; height: 1.6rem; flex: none; }
.nav { display: flex; gap: 1.25rem; flex: 1; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.nav a.active, .nav a:hover { color: var(--brand); }
.nav-cta {
  padding: .5rem 1rem; background: var(--brand); color: #fff; text-decoration: none;
  border-radius: .5rem; font-weight: 600; white-space: nowrap; flex: none;
}
.nav-cta:hover { background: var(--brand-dark); }
.nav-toggle-cb { display: none; }
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: .25rem; color: var(--ink); margin-left: auto; flex: none;
}
@media (max-width: 640px) {
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; z-index: 200; padding: .5rem 0;
  }
  .nav-toggle-cb:checked ~ .nav { display: flex; }
  .nav a { padding: .75rem 1.25rem; }
  .nav-cta { display: none; }
  .nav-cta-mobile {
    display: block; margin: .75rem 1.25rem; text-align: center;
    padding: .65rem 1rem; background: var(--brand); color: #fff !important;
    text-decoration: none; border-radius: .5rem; font-weight: 600;
  }
}
.nav-cta-mobile { display: none; }

/* Sections */
main { min-height: 60vh; }
.hero { text-align: center; padding: 3.5rem 1rem 2.5rem; }
.hero h1 { font-size: 2.4rem; margin: 0 0 .5rem; line-height: 1.15; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; margin: 0 auto; }
.cta {
  display: inline-block; margin-top: 1.5rem; padding: .9rem 1.8rem;
  background: var(--brand); color: #fff; text-decoration: none;
  border-radius: .6rem; font-weight: 600;
}
.cta:hover { background: var(--brand-dark); }
h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.features { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.features article { border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem; }
.features h3 { margin-top: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { padding-left: 3rem; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; border-radius: 50%; font-weight: 700;
}
.prose { max-width: 44rem; }
.prose h1 { font-size: 2rem; }
.muted { color: var(--muted); }
.note { background: #f9fafb; border: 1px solid var(--line); border-radius: .6rem; padding: 1rem 1.25rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; background: #f9fafb; }
.footer-cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.footer-cols h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin: 0 0 .5rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-cols a { color: var(--ink); text-decoration: none; }
.footer-cols a:hover { color: var(--brand); }
.copy { color: var(--muted); font-size: .9rem; margin-top: 1.5rem; }

/* Contact form */
.contact-form .form-row { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.contact-form label { font-weight: 600; font-size: .9rem; }
.contact-form input, .contact-form textarea {
  border: 1px solid var(--line); border-radius: .5rem; padding: .6rem .8rem;
  font: inherit; font-size: .95rem; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--brand); border-color: transparent;
}
.note--success { background: #f0fdf4; border-left: 3px solid #16a34a; padding: 1rem 1.25rem; border-radius: .5rem; }

/* Data table (privacy policy) */
.data-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: .5rem .75rem; text-align: left; }
.data-table th { background: #f9fafb; font-weight: 600; }

/* Blog */
.blog-page { padding: 2.5rem 1.25rem; }
.blog-heading { font-size: 2rem; margin: 0 0 .25rem; }
.blog-sub { color: var(--muted); margin: 0 0 2rem; }
.article-list { display: flex; flex-direction: column; gap: 2rem; }
.article-card { border-bottom: 1px solid var(--line); padding-bottom: 2rem; }
.article-date { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .05em; }
.article-title { margin: .25rem 0 .5rem; font-size: 1.4rem; }
.article-title a { color: var(--ink); text-decoration: none; }
.article-title a:hover { color: var(--brand); }
.article-excerpt { color: var(--muted); margin: 0 0 .75rem; }
.read-more { font-weight: 700; font-size: .9rem; color: var(--brand); text-decoration: none; }
/* Article single */
.article-page { padding: 2rem 1.25rem; max-width: 46rem; }
.back-link { color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none; }
.back-link:hover { color: var(--brand); }
.article-header { margin: 1rem 0 2rem; }
.article-header h1 { font-size: 1.9rem; margin: .25rem 0 .5rem; }
.article-lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
.article-body h2 { font-size: 1.25rem; margin: 1.75rem 0 .5rem; }
.article-body p, .article-body ul { margin: 0 0 1rem; }
.article-body ul { padding-left: 1.5rem; }
.article-body li { margin-bottom: .4rem; }

/* Utilities — replace former inline style="" attributes (CSP: no unsafe-inline) */
.m0 { margin: 0; }
.mt-lg { margin-top: 1.5rem; }
.honeypot { display: none; }
button.cta { border: none; cursor: pointer; }
