/* Email capture panel — sits beside the quick-check widget on the home page.
   A new file on purpose: /assets/* is served with a one-year immutable cache,
   so a change to an existing stylesheet would never reach a returning visitor. */

.lead-panel {
  margin: 24px auto 0;
  max-width: 640px;
  padding: 32px;
  background: var(--card, #fffdf8);
  border: 1px solid var(--border, #e4e1d6);
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow, 0 10px 30px rgba(20, 20, 19, 0.06));
  text-align: left;
}

.lead-panel h3 {
  margin: 0 0 8px;
  font-family: var(--heading-font, "Fraunces", Georgia, serif);
  font-size: 24px;
  line-height: 1.2;
  color: var(--text, #141413);
}

.lead-panel p.lead-panel-lede {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted, #5e5d59);
}

.lead-form label {
  display: block;
  margin: 0 0 8px;
  font-family: var(--body-font, "Inter", -apple-system, sans-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text, #141413);
}

.lead-form .lead-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.lead-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--body-font, "Inter", -apple-system, sans-serif);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text, #141413);
  background: #ffffff;
  border: 1px solid #8f8a76; /* 3.4:1 against white — a field boundary must be
                                visible even when it is empty (WCAG 1.4.11) */
  border-radius: 10px;
}

.lead-form input[type="email"]:focus-visible {
  outline: 3px solid var(--accent-dark, #a84e2f);
  outline-offset: 2px;
  border-color: var(--accent-dark, #a84e2f);
}

.lead-form button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 22px;
  font-family: var(--body-font, "Inter", -apple-system, sans-serif);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-dark, #a84e2f);
  border: 1px solid var(--accent-dark, #a84e2f);
  border-radius: 10px;
  cursor: pointer;
}

.lead-form button:hover { background: #8f4227; border-color: #8f4227; }

.lead-form button[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.lead-form input[type="email"][aria-invalid="true"] {
  border-color: #a8271a;
  border-width: 2px;
}

.lead-hint {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted, #5e5d59);
}

.lead-hint a { color: var(--accent-dark, #a84e2f); }

.lead-status {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text, #141413);
}

.lead-status:empty { display: none; }

.lead-status.is-error { color: #a8271a; }

.lead-status.is-success { color: #245c36; }

.lead-status a { color: inherit; }

.lead-form.is-done .lead-row,
.lead-form.is-done .lead-hint {
  display: none;
}

@media (max-width: 560px) {
  .lead-panel { padding: 24px; }
  .lead-form .lead-row { flex-direction: column; }
  .lead-form button { width: 100%; }
}
