:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #666;
  --border: #d8dce1;
  --accent: #1e5fa7;
  --accent-hover: #174a82;
  --success: #1f7a3a;
  --error: #b3261e;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

main {
  max-width: 640px;
  margin: 40px auto;
  padding: 0 20px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}

/* ---- Wordmark ---- */
.eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.wordmark {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text);
}
.wordmark .wx {
  font-weight: 800;
  color: var(--accent);
}

h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.lede {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 22px;
}

/* ---- Hero section ---- */

.hero-headline {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 14px 0 18px;
  letter-spacing: -0.01em;
}

@media (min-width: 540px) {
  .hero-headline { font-size: 26px; }
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 14px;
}

.hero-features li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  padding: 14px 16px;
  background: #f6f8fb;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
  align-items: baseline;
}

.hero-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 2px;
}

.hero-features li strong {
  font-weight: 600;
  color: var(--text);
}

.hero-features li span {
  color: var(--muted);
  grid-column: 2;
}

form label {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

form label input[type="email"],
form label input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

form label input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

fieldset {
  border: none;
  padding: 0;
  margin: 24px 0;
}

legend {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  padding: 0;
}

.hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}

/* ---- ZIP field status text ---- */

.field-status {
  display: inline-block;
  margin-top: 4px;
  margin-left: 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  min-height: 14px;
}
.field-status[data-tone="ok"] { color: var(--success); }
.field-status[data-tone="warn"] { color: #a85a00; }

/* ---- Form group (label + hint + control) ---- */

.form-group { margin-bottom: 18px; }
.group-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ---- State multi-select dropdown (trigger styled like text input) ---- */

.state-select {
  position: relative;
}

/* Trigger mirrors the email/name/zip text input look exactly. */
.state-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  line-height: 1.4;
}
.state-trigger:hover { border-color: #a8b3c2; }
.state-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

.state-select[data-disabled="true"] .state-trigger {
  background: #f4f5f7;
  cursor: not-allowed;
}

.state-display {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.state-display[data-tone="muted"] { color: var(--muted); }

.state-caret {
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.state-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 10;
}

.state-option {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 0 !important;
  font-weight: 400 !important;
  font-size: 14px;
  cursor: pointer;
  border-radius: 0;
}
.state-option:hover { background: #f4f7fb; }
.state-option input { margin: 0; }
.state-option input:disabled + span { color: #aaa; }

.state-option.all-row {
  border-bottom: 1px solid var(--border);
  background: #fcfdfe;
  font-weight: 600 !important;
}
.state-option.all-row:hover { background: #eef3f9; }

button[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 8px;
}

button[type="submit"]:hover:not(:disabled) { background: var(--accent-hover); }
button[type="submit"]:disabled { opacity: 0.6; cursor: wait; }

.legal {
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0 0;
  line-height: 1.5;
}

.message {
  text-align: center;
  padding: 24px 0;
}

.message.success h2 { color: var(--success); }
.message.error h2 { color: var(--error); }

a { color: var(--accent); }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Pricing / trial UI ---- */

.trial-banner {
  margin: 18px 0 24px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #eef7ee 0%, #e3f0ff 100%);
  border: 1px solid #c8dcc8;
  border-radius: 8px;
  font-size: 14px;
  color: #1a4a1a;
  text-align: center;
}

.affiliate-banner {
  margin: 0 0 24px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fff7e0 0%, #ffe8c0 100%);
  border: 1px solid #e0b97a;
  border-radius: 8px;
  font-size: 14px;
  color: #5a3e10;
  text-align: center;
  line-height: 1.4;
}

.billing-cycle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0 18px;
}

.billing-cycle legend {
  grid-column: 1 / -1;
}

.cycle-option {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 14px;
  margin: 0 !important;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.12s, background 0.12s;
  font-weight: 400 !important;
}

.cycle-option:has(input:checked) {
  border-color: var(--accent);
  background: #eef3f9;
}

.cycle-option input { margin: 0; }

.cycle-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cycle-label .price {
  font-size: 13px;
  color: var(--muted);
}

.save-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #1f7a3a;
  background: #d8f0db;
  border-radius: 10px;
  vertical-align: middle;
}
