/* EarnLayer Theme — Warm editorial, premium trust */
:root {
  --bg: #faf8f4;
  --bg-alt: #f2efe9;
  --fg: #1a1a1a;
  --fg-muted: #6b5f52;
  --accent: #2a6b4a;
  --accent-warm: #c98c3a;
  --accent-warm-light: #f5e4c8;
  --card-green: #e8f2ec;
  --card-blue: #e8eef5;
  --card-amber: #f7eddf;
  --border: #ddd6cc;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero ── */
.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent-warm);
}
.hero-lede {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* Profile card */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}
.profile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  width: 320px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.profile-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.profile-name { font-weight: 600; font-size: 0.9rem; }
.profile-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--card-green);
  padding: 3px 8px;
  border-radius: 20px;
}
.profile-streams { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.stream-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.stream-content { background: var(--card-blue); }
.stream-referral { background: var(--card-green); }
.stream-digital { background: var(--card-amber); }
.stream-label { color: var(--fg); font-weight: 500; }
.stream-status {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 10px;
}
.stream-status.on { background: #d4edda; color: #1a5c32; }
.stream-status.pending { background: #fff3cd; color: #856404; }
.profile-earnings {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.earnings-label { display: block; font-size: 0.72rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.earnings-value { display: block; font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.earnings-note { display: block; font-size: 0.75rem; color: var(--fg-muted); }

/* Hero bottom stats */
.hero-bottom {
  max-width: 1100px;
  margin: 50px auto 0;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 0;
}
.hero-stat { padding: 0 40px; }
.hero-stat:first-child { padding-left: 0; }
.stat-value { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--fg); }
.stat-label { display: block; font-size: 0.78rem; color: var(--fg-muted); margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Shared section styles */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 56px;
}

/* How It Works */
.howitworks { padding: 80px 0; border-bottom: 1px solid var(--border); }
.hiw-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.hiw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.hiw-step { position: relative; }
.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}
.step-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; color: var(--fg); }
.step-desc { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.7; }

/* Income Streams */
.streams { padding: 80px 0; background: var(--bg-alt); }
.streams-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.streams-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stream-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.stream-card-content { border-top: 3px solid #4a7fb5; }
.stream-card-referral { border-top: 3px solid var(--accent); }
.stream-card-digital { border-top: 3px solid var(--accent-warm); }
.card-icon { margin-bottom: 20px; color: var(--fg-muted); }
.stream-card-content .card-icon { color: #4a7fb5; }
.stream-card-referral .card-icon { color: var(--accent); }
.stream-card-digital .card-icon { color: var(--accent-warm); }
.card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; color: var(--fg); }
.card-desc { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.7; margin-bottom: 20px; }
.card-example {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 16px;
}
.example-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.example-text { font-size: 0.82rem; color: var(--fg); line-height: 1.6; }

/* Manifesto */
.manifesto { padding: 80px 0; border-bottom: 1px solid var(--border); }
.manifesto-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.manifesto-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--fg);
  margin: 16px 0 24px;
  font-style: italic;
}
.manifesto-body { font-size: 0.95rem; color: var(--fg-muted); line-height: 1.7; margin-bottom: 16px; }
.cta-box {
  background: var(--accent);
  border-radius: 20px;
  padding: 40px;
  text-align: left;
}
.cta-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.3;
}

/* Closing */
.closing {
  padding: 100px 0;
  background: var(--fg);
  text-align: center;
}
.closing-inner { max-width: 700px; margin: 0 auto; padding: 0 40px; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 28px;
}
.closing-body {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 16px;
}
.closing-sub { font-size: 0.95rem; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* Footer */
.footer { padding: 40px 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
.footer-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--fg); display: block; }
.footer-tagline { font-size: 0.8rem; color: var(--fg-muted); display: block; margin-top: 2px; }
.footer-copy { font-size: 0.8rem; color: var(--fg-muted); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-content: flex-start; }
  .hero-bottom { flex-direction: column; gap: 24px; align-items: flex-start; }
  .hero-stat-divider { display: none; }
  .hiw-steps { grid-template-columns: 1fr; gap: 32px; }
  .streams-grid { grid-template-columns: 1fr; }
  .manifesto-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 60px 0 40px; }
  .hero-inner, .hiw-inner, .streams-inner, .manifesto-inner { padding: 0 24px; }
  .profile-card { width: 100%; }
  .footer-inner { flex-direction: column; gap: 16px; }
}