/* Precision Research — Email Capture */

:root {
  --bg: #060606;
  --card-bg: #0c0c0c;
  --card-border: rgba(255, 255, 255, 0.06);
  --card-glow: rgba(255, 255, 255, 0.015);
  --text: #d4d4d4;
  --text-dim: #666666;
  --text-faint: #444444;
  --white: #f0f0f0;
  --accent: #e0e0e0;
  --btn-bg: #f0f0f0;
  --btn-text: #080808;
  --btn-hover: #d0d0d0;
  --error: #c44;
  --field-bg: #080808;
  --field-border: rgba(255, 255, 255, 0.08);
  --field-focus: rgba(255, 255, 255, 0.18);
  --radius: 6px;
  --radius-lg: 10px;
  --max-width: 420px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --logo-gradient: linear-gradient(90deg, #81229b 0%, #3b82f6 50%, #81229b 100%);
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* Cosmic background glow */

body::before {
  content: '';
  position: fixed;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background:
    radial-gradient(ellipse 600px 400px at 30% 20%, rgba(129, 34, 155, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 70% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(129, 34, 155, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
}

/* Layout */

.page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  overflow-y: auto;
}

/* Card */

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 80px var(--card-glow);
  padding: 36px 32px 28px;
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
}

/* Header */

.card-header {
  margin-bottom: 20px;
}

.wordmark {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.divider {
  height: 1px;
  background: var(--card-border);
  margin-bottom: 24px;
}

/* Typography — all centred explicitly */

h1 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  text-align: center;
}

.sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  text-align: center;
}

/* Value line */

.value-line {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 24px;
  text-align: center;
}

/* Form — centred text, full-width controls */

form {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.field {
  margin-bottom: 2px;
}

input[type="email"] {
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  padding: 13px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

input[type="email"]::placeholder {
  color: var(--text-faint);
  text-align: center;
}

input[type="email"]:focus {
  border-color: var(--field-focus);
}

input[type="email"].invalid {
  border-color: var(--error);
}

.error {
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
  text-align: center;
}

/* Consent checkbox */

.consent-label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 18px;
  max-width: 320px;
  cursor: pointer;
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.5;
  letter-spacing: 0.005em;
  text-align: left;
}

.consent-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-label span {
  flex: 1;
}

/* Submit button */

button[type="submit"] {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 24px;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
}

button[type="submit"]:hover {
  background: var(--btn-hover);
}

button[type="submit"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Trust line — centred explicitly */

.trust {
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  text-align: center;
}

/* Footer — centred explicitly */

.card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.card-footer a {
  font-size: 11px;
  color: var(--text-faint);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.card-footer a:hover {
  color: var(--text-dim);
}

/* Thank-you state */

.confirm-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--text-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

#thankyou h1 {
  margin-bottom: 10px;
}

.confirm-body {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}

/* Mobile */

@media (max-width: 520px) {
  .card {
    padding: 28px 22px 24px;
    border-radius: 8px;
  }

  h1 {
    font-size: 19px;
  }
}
