/* Earn Real — shared styles for the public site (landing, legal pages).
   No frameworks, no JS framework, no tracking. Print-friendly. */

:root {
  --bg:           #FFFFFF;
  --surface:      #F9FAFB;
  --surface-2:    #FDF2F8;
  --border:       #E5E7EB;
  --text:         #0F172A;
  --text-soft:    #334155;
  --text-muted:   #64748B;
  --gold:         #10B981; /* coin / amount */
  --orange:       #EC4899; /* CTA / brand accent */
  --purple:       #8B5CF6;
  --indigo:       #4F46E5;
  --error:        #F43F5E;
  --grad-cta:     linear-gradient(90deg, #EC4899 0%, #8B5CF6 100%);
  --grad-bg:      linear-gradient(180deg, #FDF2F8 0%, #F5F3FF 100%);
  --grad-text:    linear-gradient(90deg, #EC4899 0%, #8B5CF6 50%, #4F46E5 100%);
  --shadow-card:  0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-cta:   0 4px 14px rgba(236, 72, 153, 0.35);
  --shadow-phone: 0 20px 60px rgba(15, 23, 42, 0.18);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
  background: var(--bg);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* ─── Header strip ─── */
.brand {
  background: var(--grad-cta);
  color: #FFF;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.brand-title a {
  color: #FFF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.brand-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}
.brand-nav a {
  color: #FFFFFFD9;
  text-decoration: none;
  font-weight: 600;
}
.brand-nav a:hover { color: #FFF; text-decoration: underline; }

/* ─── Headings ─── */
h1 {
  font-size: 32px;
  line-height: 1.2;
  color: var(--text);
  margin: 16px 0 8px;
  letter-spacing: -0.3px;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  color: var(--text);
  margin: 28px 0 8px;
  letter-spacing: -0.2px;
}
p { margin: 10px 0 14px; }

.section-title {
  text-align: center;
  font-size: 28px;
  margin: 0 0 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 36px;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Last-updated note (legal pages) ─── */
.last-updated {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  margin: 0 0 24px;
}

/* ─── Legal page section blocks ─── */
.section { margin-bottom: 18px; }

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s;
}
footer a:hover { color: var(--orange); }

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-bg);
  padding: 80px 24px 96px;
  text-align: center;
}
.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
}
.hero-bg-blob-1 {
  width: 360px;
  height: 360px;
  background: #FBCFE8;
  top: -120px;
  left: -120px;
}
.hero-bg-blob-2 {
  width: 480px;
  height: 480px;
  background: #DDD6FE;
  bottom: -200px;
  right: -160px;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative; /* above blobs */
  z-index: 1;
}
.hero-emoji {
  font-size: 80px;
  line-height: 1;
  margin-bottom: 18px;
  animation: float 3.5s ease-in-out infinite;
}
.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin: 0 auto 18px;
  display: block;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  animation: float 3.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(-6deg); }
}
.hero-title {
  font-size: 52px;
  line-height: 1.1;
  margin: 8px 0 16px;
  letter-spacing: -1px;
  color: var(--text);
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 auto 28px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}
.hero-cta {
  display: inline-block;
  padding: 16px 32px;
  background: var(--grad-cta);
  color: #FFF;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow-cta);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.45);
}
.hero-cta-secondary {
  display: inline-block;
  padding: 16px 24px;
  color: var(--text);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}
.hero-cta-secondary:hover { color: var(--orange); }

/* ─── Screenshots carousel ─── */
.screenshots-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDF2F8 100%);
  padding: 72px 24px 80px;
  text-align: center;
}
.screenshots-section h2 {
  font-size: 28px;
  margin: 0 0 8px;
}
.phone-frame {
  position: relative;
  width: 280px;
  margin: 24px auto 0;
  padding: 14px 12px;
  background: #0F172A;
  border-radius: 36px;
  box-shadow: var(--shadow-phone);
}
.phone-frame::before {
  /* notch */
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0F172A;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.screenshots-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #1A1438;
  border-radius: 24px;
  overflow: hidden;
}
.screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.screenshot.active { opacity: 1; }
.screenshots-dots {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.dot.active {
  width: 28px;
  background: var(--grad-cta) var(--orange);
  background: var(--orange);
}

/* ─── Features ─── */
.features-wrap {
  margin: 64px 0 16px;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 36px 0;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(236, 72, 153, 0.3);
}
.feature-emoji {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 10px;
}
.feature h3 {
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--text);
}
.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Coming soon ─── */
.coming-soon {
  margin: 64px 0 24px;
  padding: 56px 32px;
  background: var(--grad-cta);
  border-radius: 24px;
  color: #FFF;
  text-align: center;
  box-shadow: var(--shadow-cta);
}
.coming-soon-inner { max-width: 540px; margin: 0 auto; }
.coming-soon-emoji { font-size: 56px; margin-bottom: 12px; }
.coming-soon h2 {
  color: #FFF;
  font-size: 28px;
  margin: 0 0 12px;
}
.coming-soon p {
  color: #FFFFFFE0;
  font-size: 16px;
  margin-bottom: 24px;
}
.coming-soon-cta {
  display: inline-block;
  padding: 14px 28px;
  background: #FFF;
  color: var(--orange);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s;
}
.coming-soon-cta:hover { transform: translateY(-2px); }

/* ─── 404 ─── */
.center-stack {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.center-stack h1 { font-size: 56px; margin: 0; }
.center-stack p  { color: var(--text-muted); }

/* ─── Mobile breakpoints ─── */
@media (max-width: 640px) {
  .hero { padding: 56px 20px 72px; }
  .hero-emoji { font-size: 64px; }
  .hero-logo { width: 96px; height: 96px; border-radius: 22px; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 17px; }
  .section-title { font-size: 24px; }
  .screenshots-section { padding: 56px 20px 64px; }
  .phone-frame { width: 240px; }
  .coming-soon { padding: 44px 24px; margin: 48px 0 16px; }
  .coming-soon h2 { font-size: 24px; }
}

/* ─── Print ─── */
@media print {
  .brand, footer, .hero-cta, .hero-cta-secondary, .coming-soon-cta { display: none; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
  .hero-bg-blob, .screenshots-section, .coming-soon { display: none; }
}
