/* ============================================
   PainFree Leggings — Landing Page Styles
   Warm terracotta palette, mobile-first
   ============================================ */

:root {
  --clay: #c4704a;
  --clay-dark: #a85a38;
  --clay-light: #e8a882;
  --sand: #f5ede4;
  --sand-dark: #e8d9c8;
  --cream: #fdfaf6;
  --charcoal: #2d2420;
  --stone: #6b5e55;
  --white: #ffffff;
  --success: #4a7c59;
  --error: #c0392b;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-soft: 0 4px 24px rgba(45, 36, 32, 0.08);
  --shadow-card: 0 8px 40px rgba(45, 36, 32, 0.12);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ──────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p { color: var(--stone); line-height: 1.7; }

/* ─── Layout ───────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* ─── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--clay);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(196, 112, 74, 0.4);
}
.btn-primary:hover {
  background: var(--clay-dark);
  box-shadow: 0 8px 32px rgba(196, 112, 74, 0.5);
}

.btn-secondary {
  background: var(--white);
  color: var(--clay);
  border: 2px solid var(--clay);
}
.btn-secondary:hover { background: var(--sand); }

.btn-ghost {
  background: transparent;
  color: var(--clay);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* ─── HERO ─────────────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 168, 130, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content { z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(196, 112, 74, 0.1);
  color: var(--clay);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.5rem; color: var(--charcoal); }
.hero h1 em { font-style: normal; color: var(--clay); }
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--stone);
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
.hero-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* ─── PROBLEM ──────────────────────────────── */
.problem {
  background: var(--charcoal);
  color: var(--cream);
}
.problem h2 { color: var(--cream); margin-bottom: 0.75rem; }
.problem .section-label { color: var(--clay-light); }
.problem-intro {
  font-size: 1.25rem;
  color: rgba(253, 250, 246, 0.7);
  margin-bottom: 3rem;
  max-width: 600px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.problem-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 2rem;
}
.problem-card .icon {
  width: 48px;
  height: 48px;
  background: rgba(196, 112, 74, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.problem-card h4 { color: var(--cream); margin-bottom: 0.75rem; }
.problem-card p { color: rgba(253, 250, 246, 0.65); }

/* ─── SOLUTION ─────────────────────────────── */
.solution { background: var(--sand); }
.solution-header { text-align: center; margin-bottom: 4rem; }
.solution-header h2 { margin-bottom: 1rem; }
.solution-header p { max-width: 560px; margin: 0 auto; }
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.solution-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.solution-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.solution-features { display: flex; flex-direction: column; gap: 1.5rem; }
.solution-feature { display: flex; gap: 1rem; align-items: flex-start; }
.solution-feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--clay);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}
.solution-feature h4 { margin-bottom: 0.25rem; }
.solution-feature p { margin: 0; }

/* ─── HIGHLIGHTS ───────────────────────────── */
.highlights { background: var(--cream); }
.highlights-header { text-align: center; margin-bottom: 3.5rem; }
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.highlight-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.highlight-icon {
  width: 64px;
  height: 64px;
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}
.highlight-card h4 { margin-bottom: 0.5rem; }
.highlight-card p { font-size: 0.95rem; }

/* ─── SOCIAL PROOF ─────────────────────────── */
.proof {
  background: var(--sand-dark);
}
.proof-header { text-align: center; margin-bottom: 3rem; }
.proof-header h2 { margin-bottom: 0.5rem; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.proof-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.proof-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-size: 5rem;
  color: var(--clay-light);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.4;
}
.proof-text {
  font-size: 1.05rem;
  color: var(--stone);
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}
.proof-author { display: flex; align-items: center; gap: 0.75rem; }
.proof-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clay-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
}
.proof-meta strong { display: block; font-size: 0.95rem; }
.proof-meta span { font-size: 0.85rem; color: var(--stone); }
.proof-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
}
.proof-stars span { color: #f5a623; font-size: 1.1rem; }

/* ─── EMAIL CAPTURE ─────────────────────────── */
.capture {
  background: var(--clay);
  color: var(--white);
  text-align: center;
  padding: 6rem 0;
}
.capture h2 { color: var(--white); margin-bottom: 1rem; }
.capture p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 2.5rem; }
.capture-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.capture-form input {
  flex: 1;
  min-width: 240px;
  padding: 0.875rem 1.5rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.capture-form input::placeholder { color: rgba(255,255,255,0.6); }
.capture-form input:focus { border-color: rgba(255,255,255,0.7); }
.capture-form button {
  background: var(--white);
  color: var(--clay);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.capture-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.capture-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.capture-success {
  display: none;
  padding: 2rem;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  max-width: 480px;
  margin: 0 auto;
}
.capture-success.show { display: block; }
.capture-success h3 { color: var(--white); margin-bottom: 0.5rem; }
.capture-success p { color: rgba(255,255,255,0.8); }
.capture-error { display: none; color: rgba(255,200,200,0.9); font-size: 0.9rem; margin-top: 0.75rem; }
.capture-error.show { display: block; }

/* ─── FOUNDER ───────────────────────────────── */
.founder { background: var(--cream); }
.founder-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.founder-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.founder-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.founder-story .eyebrow {
  color: var(--clay);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.founder-story h2 { margin-bottom: 1.5rem; }
.founder-story p { margin-bottom: 1.25rem; }

/* ─── FOOTER CTA ───────────────────────────── */
.footer-cta {
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
  padding: 5rem 0;
}
.footer-cta h2 { color: var(--cream); margin-bottom: 1rem; }
.footer-cta p { color: rgba(253,250,246,0.6); max-width: 480px; margin: 0 auto 2.5rem; }

/* ─── FOOTER ────────────────────────────────── */
footer {
  background: var(--charcoal);
  color: rgba(253,250,246,0.5);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}
footer a { color: rgba(253,250,246,0.7); text-decoration: none; }
footer a:hover { color: var(--clay-light); }

/* ─── SCROLL REVEAL ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-image-wrapper { order: -1; }
  .hero-image-wrapper img { height: 300px; }
  .solution-grid { grid-template-columns: 1fr; }
  .founder-inner { grid-template-columns: 1fr; }
  .capture-form { flex-direction: column; align-items: stretch; }
  .capture-form input { min-width: unset; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .btn { padding: 0.875rem 2rem; font-size: 1rem; }
  .problem-card, .proof-card, .highlight-card { padding: 1.5rem; }
}