/* ============================================
   ClearSide Landing Page — Theme CSS
   ============================================ */

:root {
  --bg: #faf8f3;
  --bg-alt: #f0ede4;
  --fg: #1a3526;
  --fg-muted: #4d6655;
  --accent: #e8832a;
  --accent-dark: #c46e1a;
  --light: #ffffff;
  --border: #ddd8cc;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* ---- Hero ---- */
.hero {
  padding: 80px 32px 0;
  max-width: 1160px;
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--fg);
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.hero-headline {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
}
.hero-image-wrap {
  position: relative;
}
.hero-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-img-panel {
  border-radius: 8px;
  overflow: hidden;
  background: var(--fg);
}
.hero-img-label {
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 0.72rem;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  padding: 6px 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-img-placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-before .hero-img-placeholder {
  background: #8a7560;
}
.hero-img-after .hero-img-placeholder {
  background: linear-gradient(135deg, #4d8c6e 0%, #6aab88 60%, #8ec9a8 100%);
}
.hero-img-dirty {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(0,0,0,0.08) 0px,
    rgba(0,0,0,0.08) 2px,
    transparent 2px,
    transparent 6px
  );
}
.hero-img-clean {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4d8c6e 0%, #6aab88 60%, #8ec9a8 100%);
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 64px;
  padding: 32px 40px;
  background: var(--fg);
  border-radius: 8px;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}
.hero-stat {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { padding-right: 0; }
.stat-number {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.stat-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ---- Problem ---- */
.problem {
  padding: 120px 32px;
  background: var(--bg-alt);
}
.problem-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.problem-label, .how-label, .features-label, .proof-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.problem-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 56px;
  letter-spacing: -0.025em;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.problem-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
}
.problem-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.problem-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
}
.problem-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.problem-hook {
  font-size: 1.1rem;
  color: var(--fg-muted);
  border-top: 2px solid var(--accent);
  padding-top: 32px;
}
.problem-hook strong {
  color: var(--fg);
}

/* ---- How It Works ---- */
.how {
  padding: 120px 32px;
  background: var(--bg);
}
.how-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.how-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 72px;
  letter-spacing: -0.025em;
}
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.how-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.how-step:last-child {
  border-bottom: 1px solid var(--border);
}
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  padding-top: 2px;
}
.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.step-content p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* ---- Features ---- */
.features {
  padding: 120px 32px;
  background: var(--fg);
}
.features-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.features .features-label {
  color: var(--accent);
}
.features-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--light);
  margin-bottom: 56px;
  letter-spacing: -0.025em;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-check {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
}
.feature-check::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  background: var(--fg);
  border-radius: 50%;
}
.feature-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 6px;
}
.feature-text p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}

/* ---- Social Proof ---- */
.social-proof {
  padding: 120px 32px;
  background: var(--bg-alt);
}
.proof-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.proof-headline {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 48px;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.proof-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
}
.proof-quote {
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.proof-attr {
  display: flex;
  flex-direction: column;
}
.proof-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fg);
}
.proof-role {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ---- Closing ---- */
.closing {
  padding: 120px 32px;
  background: var(--bg);
  text-align: center;
}
.closing-inner {
  max-width: 760px;
  margin: 0 auto;
}
.closing-headline {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ---- Footer ---- */
.footer {
  padding: 48px 32px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--fg);
  display: block;
  margin-bottom: 6px;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.footer-meta {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-before-after {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin-top: 40px;
  }
  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }
  .problem-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .proof-grid {
    grid-template-columns: 1fr;
  }
  .how-step {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }
  .step-num {
    font-size: 1.8rem;
  }
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero, .problem, .how, .features, .social-proof, .closing, .footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero {
    padding-top: 48px;
  }
  .problem, .how, .features, .social-proof, .closing {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}