:root {
  --brand: #0ea5e9;
  --brand-dark: #0284c7;
  --text: #1e293b;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --max: 760px;
  --wide: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--brand-dark); }
a:hover { color: var(--brand); }

.container { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  background: #0f172a;
  color: #fff;
  padding: 1rem 0;
  border-bottom: 3px solid var(--brand);
}

.site-header a { color: #fff; text-decoration: none; }
.site-header .brand { font-weight: 700; font-size: 1.25rem; }
.site-header .tagline { color: #94a3b8; font-size: 0.875rem; margin-top: 0.25rem; }

.nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-top: 0.75rem; font-size: 0.875rem; }
.nav a { color: #cbd5e1; }
.nav a:hover { color: #fff; }

main { padding: 2rem 0 3rem; }

.article-wrap { max-width: var(--max); margin: 0 auto; }

h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

.meta { color: var(--muted); font-size: 0.875rem; margin-bottom: 1.5rem; }

.prose img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.25rem; }

.disclosure {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.cta-box {
  background: var(--card);
  border: 2px solid var(--brand);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin: 2rem 0;
  text-align: center;
}

.cta-inline {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
  text-align: center;
}

.cta-inline img,
.prose .product-img img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  margin-top: 0.5rem;
}
.btn:hover { background: var(--brand-dark); }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: box-shadow 0.15s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card p { color: var(--muted); font-size: 0.875rem; margin: 0; }

.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related h2 { font-size: 1.1rem; }

.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2rem 0;
  font-size: 0.875rem;
  margin-top: 2rem;
}
.site-footer a { color: #cbd5e1; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #334155;
}

.page-content h1 { margin-top: 0; }

.contact-form-wrap { margin-top: 2rem; }

.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.contact-form-heading {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-field label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}

.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #94a3b8;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.contact-field textarea {
  resize: vertical;
  min-height: 9rem;
}

.contact-form-actions {
  padding-top: 0.25rem;
}

.contact-form .contact-submit,
.contact-form button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 14rem;
  margin: 0;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease;
}

.contact-form .contact-submit:hover,
.contact-form button.btn:hover {
  background: var(--brand-dark);
}

.contact-honeypot {
  display: none !important;
}

.contact-alert {
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.contact-alert-success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.contact-alert-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

.breadcrumb { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }

@media (max-width: 640px) {
  main { padding: 1.25rem 0 2rem; }
}
