/* The pages leads reach from our emails (step 6 part 3, decision 1):
   static/public/nisemail/lead.html, as in the design's Unsubscribe
   screen. Plain on purpose: neutral greys, the system font, no product
   colours or fonts, nothing loaded from the admin. Light or dark follows
   the system. */

:root {
  color-scheme: light dark;
  --bg: #F5F5F4; --card: #FCFCFB; --border: #E0E0DE;
  --text: #2E2E2E; --text-2: #5C5C5C; --btn: #333333; --btn-text: #FAFAFA; --error: #B42318;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1C1C; --card: #242424; --border: #383838;
    --text: #E8E8E8; --text-2: #ABABAB; --btn: #E8E8E8; --btn-text: #1C1C1C; --error: #F97066;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body.nm-lead {
  margin: 0; min-height: 100vh; padding: 48px 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 24px;
}

.nm-lead-card {
  width: 100%; max-width: 440px; padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
}
.nm-lead-card > div, .nm-lead-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }

.nm-lead h1 { margin: 0; font-size: 22px; line-height: 30px; font-weight: 600; }
.nm-lead h2 { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.nm-lead p { margin: 0; }
.nm-lead a { color: var(--text); text-underline-offset: 3px; }
.nm-lead-text { color: var(--text-2); }
.nm-lead-note { font-size: 13px; line-height: 20px; color: var(--text-2); }

.nm-lead-email {
  font-weight: 600; padding: 12px 14px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border); overflow-wrap: anywhere;
}

.nm-lead-button {
  height: 44px; border: none; border-radius: 8px;
  background: var(--btn); color: var(--btn-text); font: 600 15px system-ui, sans-serif; cursor: pointer;
}
.nm-lead-button:hover { opacity: 0.9; }
.nm-lead-link-button {
  align-self: flex-start; height: 36px; padding: 0; border: none; background: transparent;
  color: var(--text); font: 500 14px system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
:is(.nm-lead-button, .nm-lead-link-button, .nm-lead a, .nm-lead input):focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.nm-lead-check {
  width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text);
}

.nm-lead-field { display: flex; flex-direction: column; gap: 6px; }
.nm-lead-field label { font-size: 14px; font-weight: 500; }
.nm-lead-field input {
  height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font: 400 15px system-ui, sans-serif;
}
.nm-lead-field input[aria-invalid="true"] { border-color: var(--error); }
.nm-lead-error { font-size: 13px; line-height: 20px; color: var(--error); }
.nm-lead-check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 22px; color: var(--text-2); }
.nm-lead-check-row input { margin: 4px 0 0; accent-color: var(--btn); flex: none; }
.nm-lead-lists { margin: 0; padding: 0; border: none; display: flex; flex-direction: column; gap: 8px; }
.nm-lead-lists legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.nm-lead-list { margin: 0; padding-left: 20px; color: var(--text-2); }
.nm-lead-data { padding-top: 16px; border-top: 1px solid var(--border); }

@media (max-width: 480px) {
  .nm-lead-card { padding: 24px 20px; }
}
