/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #2d3748;
  background: #fafbfc;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

/* --- Layout --- */
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.wrap--narrow { max-width: 640px; }

/* --- Header --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo {
  font-weight: 600;
  color: #1a202c;
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: #2563eb; }
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nav a {
  color: #4a5568;
  font-size: 0.9375rem;
}
.nav a:hover { color: #1a202c; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: #2563eb;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn:hover {
  background: #1d4ed8;
  text-decoration: none;
}
.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

/* --- Hero --- */
.hero {
  padding: 3.5rem 0 4rem;
  text-align: center;
}
.hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  color: #1a202c;
  max-width: 28ch;
  margin: 0 auto 1rem;
}
.hero-lead {
  font-size: 1.125rem;
  color: #4a5568;
  max-width: 42ch;
  margin: 0 auto 1.5rem;
}
.hero .btn { margin-top: 0.5rem; }

/* --- Sections --- */
.section {
  padding: 3rem 0;
}
.section--alt { background: #fff; }
.section--cta { padding: 3rem 0 4rem; }
.section h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 0.75rem;
}
.section-intro {
  color: #4a5568;
  margin: 0 0 2rem;
  max-width: 56ch;
}
.pricing-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a202c;
  margin: 2rem 0 0.75rem;
}
.pricing-heading:first-of-type { margin-top: 0; }
.pricing-note {
  font-size: 0.9375rem;
  color: #4a5568;
  margin: 0 0 1rem;
}

/* --- Grid & cards --- */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
}
.card h3, .card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 0.5rem;
}
.card p, .card ul { margin: 0 0 0.75rem; }
.card ul:last-child { margin-bottom: 0; }
.card ul {
  padding-left: 1.25rem;
  font-size: 0.9375rem;
}
.card .price {
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.5rem;
}
.card--highlight { border-color: #2563eb; background: #f8fafc; }

/* --- Pricing tables --- */
.pricing-table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.pricing-table {
  width: 100%;
  min-width: 400px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.pricing-table th,
.pricing-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.pricing-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #1a202c;
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table td:last-child { white-space: nowrap; font-weight: 500; }

/* --- Cheat sheet --- */
.cheat-sheet {
  margin-top: 2rem;
  padding: 1.25rem;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 0.9375rem;
}
.cheat-sheet h4 { margin: 0 0 0.5rem; font-size: 1rem; }
.cheat-sheet ul { margin: 0; padding-left: 1.25rem; }

/* --- Contact form --- */
.contact-form {
  margin-top: 1.5rem;
  max-width: 28rem;
}
.form-row {
  margin-bottom: 1rem;
}
.form-row label {
  display: block;
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
  color: #1a202c;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: #fff;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: #2563eb;
  outline: none;
}
.form-row textarea { resize: vertical; min-height: 6rem; }
.contact-form .btn { margin-top: 0.25rem; }
.contact-fallback {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: #4a5568;
}

/* --- Footer --- */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.9375rem;
  color: #4a5568;
}
.site-footer p { margin: 0 0 0.25rem; }
.footer-note { margin-top: 0.5rem; font-size: 0.875rem; color: #718096; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .hero { padding: 2.5rem 0 3rem; }
  .section { padding: 2rem 0; }
}
