/**
 * Refer & Earn public page (?m=8)
 * Migrated from referral_earnings_page.php inline styles — ph-* tokens, no copy changes.
 */
@import url('public-pages-shared.css');

.ph-refer-page {
  background: var(--ph-bg);
  font-family: 'DM Sans', sans-serif;
  color: var(--ph-text-body);
  padding: 48px 45px 64px;
}

.ph-refer-page .refer-earnings-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.ph-refer-page .referral-earnings-hero {
  margin-bottom: 48px;
  padding: 36px 32px;
  background: var(--ph-card);
  border: 1px solid rgba(0, 207, 160, 0.28);
  border-radius: var(--ph-rl);
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ph-refer-page .hero-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--ph-text-body);
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.ph-refer-page .hero-subheading {
  font-size: 1.1rem;
  color: var(--ph-text-muted);
  margin: 0 auto 32px;
  max-width: 560px;
  line-height: 1.65;
}

.ph-refer-page .hero-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
  max-width: 1200px;
  width: 100%;
  min-width: 0;
  margin: 0 auto 28px;
}

.ph-refer-page .hero-example-card {
  padding: 28px 24px;
  border-radius: var(--ph-rl);
  text-align: center;
  border: 1px solid var(--ph-border);
  background: var(--ph-surface);
}

.ph-refer-page .hero-example-card.hero-annual {
  border-color: rgba(0, 207, 160, 0.35);
  background: var(--ph-accent-dim);
}

.ph-refer-page .hero-example-card.hero-monthly {
  border-color: rgba(107, 163, 247, 0.35);
  background: var(--ph-accent-blue-dim);
}

.ph-refer-page .hero-example-card.hero-dynamic {
  border-color: rgba(206, 145, 120, 0.35);
  background: rgba(206, 145, 120, 0.08);
}

.ph-refer-page .hero-dynamic .hero-example-badge,
.ph-refer-page .hero-dynamic .hero-number,
.ph-refer-page .hero-dynamic .hero-dollar {
  color: var(--ph-plans-orange);
}

.ph-refer-page .hero-example-math {
  font-size: 0.85rem;
  color: var(--ph-text-muted);
  margin-bottom: 12px;
  line-height: 1.45;
}

.ph-refer-page .hero-example-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ph-accent);
  margin-bottom: 14px;
}

.ph-refer-page .hero-monthly .hero-example-badge {
  color: var(--ph-accent-blue);
}

.ph-refer-page .hero-example-title {
  font-size: 1rem;
  color: var(--ph-text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

.ph-refer-page .hero-example-title strong {
  color: var(--ph-text-body);
}

.ph-refer-page .hero-example-you-get {
  font-size: 1.1rem;
  color: var(--ph-text-body);
  margin-bottom: 6px;
}

.ph-refer-page .hero-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ph-accent);
}

.ph-refer-page .hero-monthly .hero-number {
  color: var(--ph-accent-blue);
}

.ph-refer-page .hero-example-cash {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ph-text-body);
  margin-bottom: 12px;
}

.ph-refer-page .hero-dollar {
  font-size: 2.25rem;
  color: var(--ph-accent);
}

.ph-refer-page .hero-monthly .hero-example-cash .hero-dollar {
  color: var(--ph-accent-blue);
}

.ph-refer-page .hero-example-note {
  font-size: 0.9rem;
  color: var(--ph-text-label);
  margin: 0;
  line-height: 1.4;
}

.ph-refer-page .hero-cta {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.ph-refer-page .hero-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--ph-r);
  background: var(--ph-accent);
  color: var(--ph-bg);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.ph-refer-page .hero-cta-link:hover {
  background: #00e6b3;
  text-decoration: none;
}

.ph-refer-page .referral-sources-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  max-width: 900px;
  width: 100%;
  min-width: 0;
  margin: 18px auto 12px;
  text-align: left;
}

.ph-refer-page .referral-source-chip {
  padding: 14px 16px;
  border-radius: var(--ph-r);
  background: var(--ph-card);
  border: 1px solid rgba(197, 134, 192, 0.55);
  min-width: 0;
  overflow-wrap: anywhere;
}

.ph-refer-page .referral-source-chip p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ph-text-muted);
  line-height: 1.45;
}

.ph-refer-page .referral-source-chip a {
  color: var(--ph-accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.ph-refer-page .referral-source-chip a:hover {
  color: var(--ph-accent);
  text-decoration: underline;
}

.ph-refer-page .referral-source-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ph-accent-purple);
  margin-bottom: 6px;
}

.ph-refer-page .referral-sources-note {
  max-width: 720px;
  margin: 6px auto 28px;
  font-size: 0.92rem;
  color: var(--ph-text-muted);
  line-height: 1.5;
}

.ph-refer-page .referral-sources-note strong {
  color: var(--ph-text-body);
}

.ph-refer-page .earnings-comparison-section,
.ph-refer-page .earnings-faq-section,
.ph-refer-page .earnings-calc-section,
.ph-refer-page .earnings-how-section {
  padding: 28px 0;
  border-top: 1px solid var(--ph-border);
}

.ph-refer-page .earnings-strategy-boost-section {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(0, 207, 160, 0.28);
  border-radius: var(--ph-rl);
  background: var(--ph-accent-dim);
}

.ph-refer-page .earnings-strategy-boost-text {
  margin: 0 0 12px 0;
  color: var(--ph-text-muted);
  line-height: 1.5;
}

.ph-refer-page .earnings-strategy-boost-text strong {
  color: var(--ph-text-body);
}

.ph-refer-page .earnings-strategy-boost-link-wrap {
  margin: 0;
}

.ph-refer-page .earnings-strategy-boost-link {
  color: var(--ph-accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.ph-refer-page .earnings-strategy-boost-link:hover {
  color: var(--ph-accent);
  text-decoration: underline;
}

.ph-refer-page .earnings-section-heading {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ph-text-body);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.ph-refer-page .earnings-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-r);
  background: var(--ph-card);
}

.ph-refer-page .earnings-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: transparent !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}

/* Beat windsurf-theme.css table tr:nth-child(even) zebra striping */
.ph-refer-page .earnings-comparison-table tr,
.ph-refer-page .earnings-comparison-table thead tr,
.ph-refer-page .earnings-comparison-table tbody tr,
.ph-refer-page .earnings-comparison-table tbody tr:nth-child(even),
.ph-refer-page .earnings-comparison-table tbody tr:nth-child(odd),
.ph-refer-page .earnings-comparison-table tr:hover {
  background: transparent !important;
  background-color: transparent !important;
}

.ph-refer-page .earnings-comparison-table th,
.ph-refer-page .earnings-comparison-table td {
  padding: 12px 14px;
  text-align: left;
  border: none !important;
  border-bottom: 1px solid var(--ph-border) !important;
  background: transparent !important;
  background-color: transparent !important;
}

.ph-refer-page .earnings-comparison-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ph-text-label) !important;
  font-weight: 600;
}

.ph-refer-page .earnings-comparison-table td {
  color: var(--ph-text-muted) !important;
}

.ph-refer-page .earnings-comparison-table td:first-child {
  color: var(--ph-text-body) !important;
  font-weight: 500;
}

.ph-refer-page .earnings-comparison-table tr:last-child td {
  border-bottom: none !important;
}

.ph-refer-page .earnings-faq-list {
  margin: 0;
}

.ph-refer-page .earnings-faq-list dt {
  font-weight: 600;
  color: var(--ph-text-body);
  margin-top: 14px;
  margin-bottom: 4px;
}

.ph-refer-page .earnings-faq-list dt:first-child {
  margin-top: 0;
}

.ph-refer-page .earnings-faq-list dd {
  margin: 0;
  color: var(--ph-text-muted);
  line-height: 1.5;
}

.ph-refer-page .earnings-faq-list a {
  color: var(--ph-accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.ph-refer-page .earnings-faq-list a:hover {
  color: var(--ph-accent);
  text-decoration: underline;
}

.ph-refer-page .earnings-calc-intro {
  font-size: 0.95rem;
  color: var(--ph-text-muted);
  margin: 0 0 16px 0;
}

.ph-refer-page .earnings-calc-intro strong {
  color: var(--ph-text-body);
}

.ph-refer-page .earnings-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  margin-bottom: 20px;
  width: 100%;
  min-width: 0;
}

.ph-refer-page .earnings-calc-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ph-text-muted);
}

.ph-refer-page .earnings-calc-input {
  padding: 10px 12px;
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-r);
  background: var(--ph-surface);
  color: var(--ph-text-body);
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
}

.ph-refer-page .earnings-calc-input:focus {
  outline: none;
  border-color: var(--ph-accent);
}

.ph-refer-page .earnings-calc-result {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
}

.ph-refer-page .earnings-calc-result-label {
  font-size: 0.9rem;
  color: var(--ph-text-muted);
}

.ph-refer-page .earnings-calc-result-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ph-accent);
}

.ph-refer-page .earnings-how-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.ph-refer-page .earnings-how-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--ph-card);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-r);
}

.ph-refer-page .earnings-how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ph-accent);
  color: var(--ph-bg);
  font-weight: 700;
  font-size: 0.9rem;
}

.ph-refer-page .earnings-how-text {
  font-weight: 500;
  color: var(--ph-text-body);
}

.ph-refer-page .earnings-how-arrow {
  color: var(--ph-text-label);
  font-size: 1.25rem;
}

.ph-refer-page code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  color: var(--ph-text-body);
}

.ph-refer-page .refer-bottom-cta {
  margin-top: 8px;
  padding: 40px 32px 8px;
  border-radius: var(--ph-rl);
}

@media (max-width: 768px) {
  .ph-refer-page {
    padding: 32px 16px 48px;
  }

  .ph-refer-page .refer-bottom-cta {
    padding: 32px 16px 8px;
  }

  .ph-refer-page .referral-earnings-hero {
    padding: 24px 16px;
  }

  .ph-refer-page .hero-examples,
  .ph-refer-page .referral-sources-row,
  .ph-refer-page .earnings-calc-grid {
    grid-template-columns: 1fr;
  }

  .ph-refer-page .hero-cta-link {
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }

  .ph-refer-page .earnings-how-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .ph-refer-page .earnings-how-arrow {
    display: none;
  }
}
