/* =============================================================
   design-system.css — Affiliates Portal
   Base tokens + shared components used by all affiliate templates.
   Phase 4 CSP cleanup (extracts inline styles from templates).
   ============================================================= */

:root {
  --pm-color-primary: #92a4bb;
  --pm-color-primary-light: #d1e3f0;
  --pm-color-secondary: #f2b872;
  --pm-color-accent: #ff6d4d;
  --pm-color-background: #f7f1e3;
  --pm-color-surface: #ffffff;
  --pm-color-text-strong: #1a2533;
  --pm-color-text: #2f3a48;
  --pm-color-text-soft: #6b7280;
  --pm-color-blue-active: #1c5680;
  --pm-color-green-cta-strong: #2d8659;
  --pm-font-ui: 'Inter', system-ui, sans-serif;
  --pm-font-hand: 'Patrick Hand', cursive;
  --pm-radius-md: 8px;
  --pm-radius-xl: 16px;
}

/* ---- Layout sections ---- */
.pm-l-section { background: var(--pm-color-surface); }
.pm-l-section--soft { background: var(--pm-color-primary-light); }
.pm-l-section--ink { background: var(--pm-color-text-strong); }
.pm-l-section--surface { background: var(--pm-color-surface); }
.pm-u-pt-0 { padding-top: 0; }

/* ---- Text utilities ---- */
.pm-u-text-white { color: #fff; }
.pm-u-text-white-80 { color: rgba(255, 255, 255, 0.8); }
.pm-u-text-white-75 { color: rgba(255, 255, 255, 0.75); }
.pm-u-text-white-60 { color: rgba(255, 255, 255, 0.6); }
.pm-u-text-blue-active { color: var(--pm-color-blue-active); }
.pm-u-text-soft { color: var(--pm-color-text-soft); }
.pm-u-color-error { color: #b00020; }
.pm-u-color-success { color: var(--pm-color-green-cta-strong); }
.pm-u-color-info { color: var(--pm-color-blue-active); }
.pm-u-max-width-580 { max-width: 580px; }
.pm-u-mt-xs { margin-top: 12px; }
.pm-u-mt-top { margin-top: 12px; }

/* ---- Hero ---- */
.pm-c-hero { padding: 64px 24px; text-align: center; max-width: 960px; margin: 0 auto; }
.pm-c-hero__title {
  font-size: 30px;
  font-weight: 800;
  margin: 12px 0 16px;
  color: var(--pm-color-text-strong);
  font-family: var(--pm-font-ui);
}
.pm-c-hero__title--md { font-size: 26px; }
.pm-c-hero__title--lg { font-size: 36px; font-weight: 800; margin-bottom: 20px; }
.pm-c-hero__title--hero { font-size: 32px; font-weight: 800; margin-top: 12px; margin-bottom: 16px; }
.pm-c-hero__title--lp-vuelta { font-size: 28px; }
.pm-c-hero__copy { padding: 40px 24px 32px; max-width: 720px; margin: 0 auto; }
.pm-c-hero__copy--compact { padding: 40px 24px 32px; max-width: 400px; margin: 0 auto; text-align: left; }
.pm-c-hero__emoji { font-size: 64px; line-height: 1; margin-bottom: 16px; }
.pm-c-hero__media { max-width: 240px; padding: 24px; }
.pm-c-hero__media--md { max-width: 280px; padding: 24px; }

/* ---- Buttons ---- */
.pm-c-button--primary {
  background: var(--pm-color-primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--pm-radius-md);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.pm-c-button--accent {
  background: var(--pm-color-accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--pm-radius-md);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.pm-c-button--ghost {
  background: transparent;
  border: 2px solid var(--pm-color-primary);
  color: var(--pm-color-primary);
  padding: 12px 28px;
  border-radius: var(--pm-radius-md);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.pm-c-button--ghost-white {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}
.pm-c-cta-cta { min-width: 240px; padding: 14px 32px; }

/* ---- Card ---- */
.pm-c-card {
  background: #fff;
  border-radius: var(--pm-radius-md);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.pm-c-card--narrow { max-width: 400px; margin: 0 auto; text-align: left; }

/* ---- Images ---- */
.pm-c-image--full { width: 100%; max-width: 480px; border-radius: var(--pm-radius-md); }
.pm-c-image--wide { width: 100%; border-radius: var(--pm-radius-md); }
.pm-c-qr-image { width: 140px; max-width: 200px; }

/* ---- Flex layouts ---- */
.pm-c-flex-row-center {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.pm-c-flex-row-end {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.pm-c-list-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pm-c-list-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pm-c-list-check--inline {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

/* ---- Check marks (icons) ---- */
.pm-c-check-mark {
  font-size: 16px;
  line-height: 1;
}
.pm-c-check-mark--success {
  color: var(--pm-color-green-cta-strong);
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.pm-c-check-mark--success-static {
  color: var(--pm-color-green-cta-strong);
  font-size: 16px;
  line-height: 1;
}
.pm-c-check-mark--info {
  color: var(--pm-color-blue-active);
  font-size: 16px;
  line-height: 1;
}
.pm-c-check-mark--error {
  color: #b00020;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

/* ---- Text sizes / typography ---- */
.pm-c-text-15 {
  font-family: var(--pm-font-ui);
  font-size: 15px;
  color: var(--pm-color-text-strong);
  margin: 0 0 8px;
}
.pm-c-text-15-bold {
  font-family: var(--pm-font-ui);
  font-size: 15px;
  color: var(--pm-color-text-strong);
  margin: 0 0 8px;
}
.pm-c-text-14 { font-size: 14px; }
.pm-c-text-13 { font-size: 13px; }
.pm-c-text-12 { font-size: 12px; }
.pm-c-text-13-soft {
  font-family: var(--pm-font-ui);
  font-size: 13px;
  color: var(--pm-color-text-soft);
  margin: 0;
}
.pm-c-text-13-hand {
  font-family: var(--pm-font-hand);
  font-size: 13px;
  color: var(--pm-color-text-soft);
}
.pm-c-link-ui {
  color: var(--pm-color-blue-active);
  font-family: var(--pm-font-ui);
  font-size: 14px;
}
.pm-c-footer-note {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--pm-font-ui);
  font-size: 13px;
}

/* ---- Step / nav / trust ---- */
.pm-c-step-highlight {
  background: var(--pm-color-green-cta-strong);
  color: #fff;
}
.pm-c-nav-divider {
  margin: 0 12px;
  color: var(--pm-color-text-soft);
}
.pm-c-trust-band {
  background: var(--pm-color-text-strong);
  padding: 24px;
}
.pm-c-trust-band__item {
  color: #fff;
  font-size: 14px;
}
.pm-c-field__hint--center {
  text-align: center;
  margin: 0;
}