/* Citation Monitor signup + welcome page styles.
 * Layered on css/styles.css.
 * CSP-compliant: same-origin external CSS. No inline styles. */

.cm-banner { background: var(--ink); color: var(--paper); padding: 96px 0 64px; }
.cm-banner .eyebrow { color: var(--accent-on-dark); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; font-size: 12px; display: block; }
.cm-banner h1 { font-size: clamp(40px, 7vw, 80px); line-height: 1.05; margin: 12px 0 16px; font-weight: 900; color: var(--paper); }
.cm-banner .lead { font-size: clamp(18px, 2vw, 22px); max-width: 760px; color: var(--paper); }

.cm-form-section { padding: 48px 0; background: var(--paper); border-top: 8px solid var(--accent); }

.cm-form { max-width: 680px; margin: 0 auto; background: var(--paper); padding: 0; }
.cm-form__title { font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.1; margin: 0 0 8px; color: var(--ink); }
.cm-form__sub { font-size: 14px; color: #555; line-height: 1.5; margin: 0 0 32px; }

.cm-form__row { margin-bottom: 24px; }
.cm-form__label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 6px; }
.cm-form__optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--slate-500); font-size: 12px; margin-left: 6px; }
.cm-form__input { width: 100%; padding: 14px 16px; font-size: 16px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-family: inherit; box-sizing: border-box; }
.cm-form__input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.cm-form__input--textarea { resize: vertical; min-height: 96px; line-height: 1.5; font-family: inherit; }
.cm-form__hint { font-size: 12px; color: #666; margin: 6px 0 0; line-height: 1.5; }
.cm-form__honeypot { position: absolute; left: -10000px; top: -10000px; height: 1px; width: 1px; }

.cm-form__price-row { display: flex; align-items: center; gap: 20px; padding: 20px; background: #ededea; border: 2px solid var(--ink); margin: 32px 0 20px; }
.cm-form__price-amount { font-size: 48px; font-weight: 900; line-height: 1; color: var(--ink); letter-spacing: -0.03em; flex-shrink: 0; }
.cm-form__price-meta { flex: 1; }
.cm-form__price-line { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); }
.cm-form__price-sub { font-size: 12px; color: #555; line-height: 1.5; margin-top: 4px; }

.cm-form__submit { width: 100%; background: var(--ink); color: var(--paper); border: none; padding: 18px 32px; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; }
.cm-form__submit:hover { background: var(--accent); }
.cm-form__submit:disabled { opacity: 0.5; cursor: wait; }
.cm-form__submit-loading { display: none; }
.cm-form__submit[data-loading="true"] .cm-form__submit-label { display: none; }
.cm-form__submit[data-loading="true"] .cm-form__submit-loading { display: inline; }
.cm-form__fine { font-size: 12px; color: #555; margin-top: 16px; line-height: 1.6; }
.cm-form__fine a { color: var(--ink); text-decoration: underline; }
.cm-form__fine a:hover { color: var(--accent); }

.cm-error { max-width: 680px; margin: 24px auto 0; padding: 16px 20px; background: #fff5f5; border: 2px solid var(--accent); color: var(--accent); font-weight: 600; }

.cm-explain { padding: 64px 0; border-top: 1px solid #d6d4ce; }
.cm-explain h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.1; margin: 32px 0 16px; color: var(--ink); }
.cm-explain h2:first-child { margin-top: 0; }
.cm-explain__list { padding-left: 24px; }
.cm-explain__list li { margin-bottom: 12px; font-size: 16px; line-height: 1.6; }
.cm-explain p { font-size: 16px; line-height: 1.6; margin: 0 0 16px; }
.cm-explain a { color: var(--ink); text-decoration: underline; }
.cm-explain a:hover { color: var(--accent); }

/* Comparison section: SXO Audit vs Citation Monitor */
.cm-compare-section { padding: 64px 0; background: var(--paper); border-top: 1px solid #d6d4ce; }
.cm-compare-section h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.1; margin: 0 0 16px; color: var(--ink); }
.cm-compare-lead { font-size: 16px; line-height: 1.6; color: #444; margin: 0 0 24px; max-width: 720px; }
.cm-compare-wrap { overflow-x: auto; margin: 0 0 24px; -webkit-overflow-scrolling: touch; }
.cm-compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.cm-compare th, .cm-compare td { padding: 12px 16px; text-align: left; border: 1.5px solid var(--ink); vertical-align: top; }
.cm-compare thead th { background: var(--ink); color: var(--paper); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.cm-compare thead tr th:first-child { background: var(--paper); color: var(--ink); border-color: var(--paper); border-bottom-color: var(--ink); }
.cm-compare tbody th { background: #ededea; font-weight: 700; width: 30%; }
.cm-compare tbody tr:nth-child(even) td { background: #faf9f5; }
.cm-compare-foot { font-size: 16px; line-height: 1.6; color: #444; margin: 16px 0 0; }
.cm-compare-foot a { color: var(--ink); text-decoration: underline; font-weight: 600; }
.cm-compare-foot a:hover { color: var(--accent); }

/* FAQ section: reuses global .faq + .faq__item styles from /css/styles.css */
.cm-faq-section { padding: 64px 0 96px; background: var(--paper); border-top: 1px solid #d6d4ce; }
.cm-faq-section h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.1; margin: 0 0 24px; color: var(--ink); }
.cm-faq-foot { font-size: 14px; line-height: 1.6; color: #555; margin: 32px 0 0; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.cm-faq-foot a { color: var(--ink); text-decoration: underline; font-weight: 600; }
.cm-faq-foot a:hover { color: var(--accent); }

/* Welcome page */
.cm-welcome { background: var(--ink); color: var(--paper); padding: 120px 0 80px; min-height: 60vh; }
.cm-welcome .eyebrow { color: var(--accent-on-dark); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; font-size: 12px; display: block; margin-bottom: 16px; }
.cm-welcome h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.05; margin: 0 0 24px; font-weight: 900; color: var(--paper); }
.cm-welcome .lead { font-size: clamp(18px, 2vw, 22px); color: var(--paper); max-width: 720px; line-height: 1.5; margin: 0 0 32px; }
.cm-welcome__list { padding-left: 24px; margin: 24px 0 32px; color: var(--paper); }
.cm-welcome__list li { margin-bottom: 12px; font-size: 16px; line-height: 1.6; color: var(--paper); }
.cm-welcome__cta { display: inline-block; background: var(--accent); color: var(--paper); padding: 14px 28px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; margin-right: 12px; }
.cm-welcome__cta:hover { background: var(--paper); color: var(--ink); }
.cm-welcome__secondary { color: rgba(244, 243, 239, 0.7); text-decoration: underline; font-size: 14px; }
.cm-welcome__secondary:hover { color: var(--paper); }
.cm-welcome__h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 900; color: var(--paper); margin: 32px 0 16px; }
.cm-welcome__inline-link { color: var(--paper); text-decoration: underline; }
.cm-welcome__inline-link:hover { color: var(--accent); }
.cm-welcome__cta-row { margin-top: 32px; }

/* Manage page: fresh-link request form (rendered inside the dark cm-welcome section) */
.cm-manage-form { max-width: 480px; margin: 24px 0 12px; background: transparent; }
.cm-manage-label { color: var(--paper); }
.cm-manage-input { background: var(--paper); color: var(--ink); }
.cm-manage-submit { background: var(--accent); color: var(--paper); }
.cm-manage-submit:hover { background: var(--paper); color: var(--ink); }
.cm-manage-submit[data-loading="true"] .cm-manage-submit-label { display: none; }
.cm-manage-submit[data-loading="true"] .cm-manage-submit-loading { display: inline; }
.cm-manage-fineprint { font-size: 12px; color: rgba(244, 243, 239, 0.7); line-height: 1.5; margin-top: 12px; max-width: 520px; }

/* Plan picker: two tier cards (Watch / Command) as a bordered group, stacked
 * with a divider rule, each padded, with a dark selected state and an accent
 * dot. Mirrors the audit form's .form .tier-opt design from css/styles.css,
 * scoped to the CM signup form (which uses its own .cm-form sheet). Without
 * this, the .tier-opt markup renders as run-together inline text. */
.cm-form .tiers {
  display: grid;
  gap: 0;
  border: var(--rule);
  margin: 0;
  padding: 0;
}
.cm-form .tier-opt { display: block; }
.cm-form .tier-opt + .tier-opt { border-top: var(--rule); }
.cm-form .tier-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cm-form .tier-opt__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  background: var(--paper-white);
  transition: background 120ms ease;
}
.cm-form .tier-opt__inner:hover { background: var(--slate-100); }
.cm-form .tier-opt input[type="radio"]:checked + .tier-opt__inner {
  background: var(--ink);
  color: var(--paper-white);
}
.cm-form .tier-opt input[type="radio"]:focus-visible + .tier-opt__inner {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}
.cm-form .tier-opt__dot {
  width: 1rem; height: 1rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex: none;
}
.cm-form .tier-opt input[type="radio"]:checked + .tier-opt__inner .tier-opt__dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--accent);
  border-radius: 50%;
}
.cm-form .tier-opt__label { font-weight: 800; letter-spacing: 0.02em; }
.cm-form .tier-opt__badge { font-weight: 400; color: var(--slate-600); }
.cm-form .tier-opt__scope {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--slate-600);
  display: block;
  margin-top: 0.1rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
}
.cm-form .tier-opt input[type="radio"]:checked + .tier-opt__inner .tier-opt__scope { color: var(--slate-200); }
.cm-form .tier-opt__price { font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; }
.cm-form .tier-opt__price-per { font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; color: var(--slate-700); margin-left: 1px; }
.cm-form .tier-opt input[type="radio"]:checked + .tier-opt__inner .tier-opt__price-per { color: var(--slate-200); }

/* Per-field line counters (prompts / pages / competitors), matching the audit
 * intake form's .form .field-counter. Sits under each field; turns accent red
 * when the entry count exceeds the selected plan's cap. */
.cm-form .field-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--slate-500);
  margin: 6px 0 0;
}
.cm-form .field-counter--over {
  color: var(--accent);
  font-weight: 600;
}
