/**
 * interest-modal.css — styling for the interest-only pre-launch dialog.
 *
 * The site had NO form styling before this file: theme.css has no input,
 * label, field or dialog rules (there were zero <form> elements on the site).
 * Everything here is built from scratch against the existing design tokens —
 * no new colours are invented.
 *
 * Design system ("The Signal Path"): dark bookends, mono/human type split,
 * orange rationed to CTAs only. The card is a dark panel (--sp-dark-1) because
 * the modal is a "bookend" surface, and the signal accent marks focus only.
 *
 * z-index sits ABOVE the cookie banner's modal (60) so an interest dialog
 * opened from a CTA is never trapped behind a cookie prompt.
 */

.cp-int {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cp-int[hidden] { display: none; }

.cp-int-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 18, 0.72);
  backdrop-filter: blur(2px);
}

.cp-int-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--sp-dark-1);
  color: var(--sp-dark-fg);
  border: 1px solid var(--sp-dark-border-strong);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ── Header ─────────────────────────────────────────────────────────── */
.cp-int-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 0;
}
.cp-int-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--sp-dark-fg);
}
.cp-int-x {
  flex: none;
  display: inline-flex;
  padding: 4px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--sp-dark-muted);
  cursor: pointer;
}
.cp-int-x:hover { color: var(--sp-dark-fg); background: var(--sp-dark-2); }

/* ── Body ───────────────────────────────────────────────────────────── */
.cp-int-body { padding: 12px 24px 24px; }

.cp-int-lede {
  margin: 4px 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--sp-dark-muted);
}

.cp-int-field { margin-bottom: 16px; }

.cp-int-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-dark-fg);
}
.cp-int-opt { font-weight: 400; color: var(--sp-dark-faint); }

.cp-int-field input[type="email"],
.cp-int-field input[type="number"],
.cp-int-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: var(--sp-dark-0);
  color: var(--sp-dark-fg);
  border: 1px solid var(--sp-dark-border-strong);
  border-radius: 8px;
  font: inherit;
  font-size: 15px; /* >=16px avoids iOS zoom on focus; 15 + no zoom-lock is fine here */
}
.cp-int-field textarea { resize: vertical; min-height: 72px; }

.cp-int-field input::placeholder,
.cp-int-field textarea::placeholder { color: var(--sp-dark-faint); }

/* Focus is the ONLY place the signal accent appears in this form — the
   submit button carries the brand gradient via .sp-btn--primary. */
.cp-int-field input:focus-visible,
.cp-int-field textarea:focus-visible,
.cp-int-cur button:focus-visible,
.cp-int-x:focus-visible {
  outline: 2px solid var(--sp-signal);
  outline-offset: 2px;
  border-color: var(--sp-signal);
}

/* ── Price row ──────────────────────────────────────────────────────── */
.cp-int-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cp-int-price-row input[type="number"] { width: 110px; flex: none; }

.cp-int-cur {
  display: inline-flex;
  border: 1px solid var(--sp-dark-border-strong);
  border-radius: 8px;
  overflow: hidden;
}
.cp-int-cur button {
  padding: 9px 12px;
  background: var(--sp-dark-0);
  color: var(--sp-dark-muted);
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cp-int-cur button + button { border-left: 1px solid var(--sp-dark-border-strong); }
.cp-int-cur button[aria-pressed="true"] {
  background: var(--sp-signal-faint);
  color: var(--sp-dark-fg);
}
.cp-int-per { font-size: 14px; color: var(--sp-dark-muted); }

/* ── Honeypot: reachable to bots, invisible + unfocusable to humans ──── */
.cp-int-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.cp-int-turnstile:not(:empty) { margin: 4px 0 16px; }

/* ── Status line (aria-live) ────────────────────────────────────────── */
.cp-int-msg { margin: 0; font-size: 13px; line-height: 1.5; }
.cp-int-msg:not(.is-shown) { display: none; }
.cp-int-msg.is-shown { margin: 0 0 12px; color: var(--sp-dark-muted); }
/* Errors are announced by aria-live AND carry a non-colour cue, so the
   message never depends on colour perception alone. */
.cp-int-msg.is-error { color: var(--cp-accent); }
.cp-int-msg.is-error::before { content: "⚠ "; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.cp-int-foot {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 4px;
}
.cp-int-foot .sp-btn { cursor: pointer; }
.cp-int-foot button[disabled] { opacity: 0.6; cursor: default; }

.cp-int-legal {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--sp-dark-faint);
}
.cp-int-legal a { color: var(--sp-dark-muted); }

/* ── Success state ──────────────────────────────────────────────────── */
.cp-int-done { padding: 8px 0 4px; text-align: left; }
.cp-int-done h3 { margin: 0 0 8px; font-size: 18px; color: var(--sp-dark-fg); }
.cp-int-done p { margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: var(--sp-dark-muted); }

@media (max-width: 480px) {
  .cp-int-foot { flex-direction: column-reverse; }
  .cp-int-foot .sp-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cp-int-overlay { backdrop-filter: none; }
}
