/* Marketing landing. Themed via --brand / --brand-accent (set by theme.js from
   branding); the :root defaults below are the neutral palette used when branding
   fails to load. Mobile-first; AA contrast against the chosen palette. */

:root {
  --brand: #1e293b; /* slate-800 - white text on it is AAA */
  --brand-accent: #2563eb; /* blue-600 - white text on it is AA */
  --ink: #0f172a;
  --muted: #475569;
  --bg: #ffffff;
  --bg-soft: #f1f5f9;
  --maxw: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 10;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--brand-accent);
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(0.94);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-secondary:hover {
  border-color: #fff;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 8px 16px;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* --- Header --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--brand);
  color: #fff;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  height: 32px;
  width: auto;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

/* --- Hero --- */
.hero {
  background: var(--brand);
  color: #fff;
  padding: 48px 20px 64px;
  text-align: center;
}
.hero h1 {
  margin: 0 auto 16px;
  max-width: 18ch;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.1;
}
.hero-sub {
  margin: 0 auto 28px;
  max-width: 60ch;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: #e2e8f0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.contact-address {
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 0.95rem;
  user-select: all;
}

/* --- Sections --- */
section {
  padding: 56px 20px;
}
.how,
.why {
  max-width: var(--maxw);
  margin: 0 auto;
}
.how h2,
.why h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  /* auto (not 0) horizontal margins: in the full-width .why section the heading
     is a max-width block, so it must center itself rather than pin left. */
  margin: 0 auto 36px;
}
.why {
  background: var(--bg-soft);
}
.why > * {
  max-width: var(--maxw);
  margin-inline: auto;
}

.steps,
.benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
}
.steps {
  counter-reset: step;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}
.step {
  position: relative;
  padding: 24px 20px 20px;
  background: var(--bg);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #fff;
  font-weight: 700;
}
.benefit {
  padding: 20px;
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}
.step h3,
.benefit h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.step p,
.benefit p {
  margin: 0;
  color: var(--muted);
}

/* --- Contact form --- */
.contact {
  background: var(--bg-soft);
}
.contact-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px;
}
.contact h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
}
.contact-intro {
  margin: 0 0 24px;
  color: var(--muted);
}
#lead-form .field {
  margin-bottom: 16px;
}
#lead-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
#lead-form input {
  width: 100%;
  padding: 11px 12px;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}
#lead-form input:focus-visible {
  border-color: var(--brand-accent);
}
#lead-form .btn {
  width: 100%;
  margin-top: 4px;
}
/* Honeypot: kept in the DOM and submittable but never shown to humans. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.consent {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.lead-status {
  margin: 12px 0 0;
  font-weight: 600;
  min-height: 1.2em;
}
.lead-status.ok {
  color: #15803d;
}
.lead-status.err {
  color: #b91c1c;
}

/* --- Footer --- */
.site-footer {
  background: var(--brand);
  color: #e2e8f0;
  text-align: center;
  padding: 32px 20px;
}
.footer-tagline {
  margin: 0 auto;
  max-width: 60ch;
}
.powered-by {
  margin: 12px 0 0;
  font-size: 0.85rem;
  opacity: 0.75;
}
