/* ── Shared styles for the lead-magnet capture flow ──────────────────────────
   Apple-inspired system per DESIGN.md: parchment canvas, white cards, SF Pro,
   single Action Blue accent, pill CTAs, hairline borders (no chrome shadows). */

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

:root {
  --blue:        #0066cc;
  --blue-focus:  #0071e3;
  --ink:         #1d1d1f;
  --ink-80:      #333333;
  --ink-48:      #7a7a7a;
  --canvas:      #ffffff;
  --parchment:   #f5f5f7;
  --pearl:       #fafafc;
  --hairline:    #e0e0e0;
  --divider:     #f0f0f0;
  --display:     "SF Pro Display", system-ui, -apple-system, sans-serif;
  --text:        "SF Pro Text", system-ui, -apple-system, sans-serif;
}

html, body {
  min-height: 100vh;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 48px 40px;
}

/* Eyebrow */
.eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  color: var(--ink-48);
  margin-bottom: 24px;
}

/* Headings & body */
h1 {
  font-family: var(--display);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.28px;
  color: var(--ink);
  margin-bottom: 14px;
}

p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--ink-48);
  margin-bottom: 8px;
}

/* ── Capture page ─────────────────────────────────────────────────────────── */

.guide-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--blue);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--ink-48);
  margin-bottom: 32px;
}

.proof {
  background: var(--parchment);
  border: 1px solid var(--divider);
  border-radius: 11px;
  padding: 14px 18px;
  margin-bottom: 32px;
}
.proof-text {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.224px;
  color: var(--ink-48);
  line-height: 1.43;
}
.proof-text strong {
  color: var(--ink-80);
  font-weight: 600;
}

.error-msg {
  background: #fff0f0;
  border: 1px solid #ffd0d0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  letter-spacing: -0.224px;
  color: #c0392b;
}

.form-group { margin-bottom: 16px; }

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--ink-80);
  margin-bottom: 8px;
}

input[type="email"],
input[type="tel"] {
  width: 100%;
  background: var(--canvas);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 12px 20px;
  font-family: var(--text);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.374px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  height: 44px;
}
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: var(--blue-focus);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}
input::placeholder { color: var(--ink-48); }

.optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-48);
  margin-left: 4px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 24px;
  cursor: pointer;
}
.consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.consent-text {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.224px;
  color: var(--ink-48);
  line-height: 1.43;
}

button[type="submit"] {
  width: 100%;
  background: var(--blue);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 14px 28px;
  font-family: var(--text);
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  transition: background 0.15s;
}
button[type="submit"]:hover { background: var(--blue-focus); }
button[type="submit"]:active { transform: scale(0.95); }

/* ── Thank-you page ───────────────────────────────────────────────────────── */

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--blue);
  border-radius: 9999px;
  margin-bottom: 24px;
}
.check svg { width: 22px; height: 22px; }

.email-pill {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--blue);
  background: #f0f5ff;
  border: 1px solid #d0e4ff;
  border-radius: 9999px;
  padding: 6px 16px;
  margin-bottom: 32px;
}

.steps {
  border: 1px solid var(--hairline);
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 32px;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--divider);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.12px;
  color: var(--blue);
  min-width: 20px;
  margin-top: 1px;
}
.step-text {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.224px;
  color: var(--ink-48);
  line-height: 1.43;
}
.step-text strong {
  color: var(--ink-80);
  font-weight: 600;
}

/* ── Download page ────────────────────────────────────────────────────────── */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  margin-bottom: 24px;
}
.icon.valid { background: var(--blue); }
.icon.invalid { background: #fff0f0; border: 1px solid #ffd0d0; }
.icon svg { width: 22px; height: 22px; }

.cover {
  background: var(--parchment);
  border: 1px solid var(--divider);
  border-radius: 11px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.cover-thumb {
  width: 48px;
  height: 64px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-thumb svg { width: 20px; height: 20px; color: var(--ink-48); }
.cover-meta { flex: 1; }
.cover-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  color: var(--ink-48);
  margin-bottom: 4px;
}
.cover-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.374px;
  color: var(--ink);
  line-height: 1.24;
}

.btn-download {
  display: block;
  width: 100%;
  background: var(--blue);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 14px 28px;
  font-family: var(--text);
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}
.btn-download:hover { background: var(--blue-focus); }
.btn-download:active { transform: scale(0.95); }

.expiry-note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  color: var(--ink-48);
}

.error-box {
  background: #fff0f0;
  border: 1px solid #ffd0d0;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 24px;
}
.error-box p {
  font-size: 14px;
  letter-spacing: -0.224px;
  color: #c0392b;
  margin: 0;
}

/* ── Footer (shared) ──────────────────────────────────────────────────────── */

.footer {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  color: var(--ink-48);
  line-height: 1.3;
}
.footer a {
  color: var(--blue);
  text-decoration: none;
}
.footer a:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  body { padding: 32px 16px; }
  .card { padding: 32px 24px; border-radius: 11px; }
  h1 { font-size: 28px; }
  .subtitle { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
