/* ===== Bright Steps — Styles ===== */
/* Based on brand-identity.md */

/* ===== CSS Variables ===== */
:root {
  /* Fonts */
  --font-display: 'Baloo 2', 'Nunito', cursive;
  --font-body: 'DM Sans', 'Inter', system-ui, sans-serif;
  
  /* Colors */
  --coral: #F26B5B;
  --coral-dark: #E05A4A;
  --coral-glow: rgba(242, 107, 91, 0.25);
  --teal: #3DBFBF;
  --teal-dark: #2EA3A3;
  --teal-glow: rgba(61, 191, 191, 0.15);
  --yellow: #FFD93D;
  --yellow-glow: rgba(255, 217, 61, 0.3);
  --orange: #FF9149;
  --green: #7ED957;
  --lavender: #B39DDB;
  
  --white: #FDFBF7;
  --surface: #FFFFFF;
  --charcoal: #1F2937;
  --grey: #6B7280;
  --mist: #F3F4F6;
  --border: #E5E7EB;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  
  /* Layout */
  --max-width: 1200px;
  --content-width: 720px;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 50px;
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(31, 41, 55, 0.06);
  --shadow-medium: 0 8px 30px rgba(31, 41, 55, 0.1);
  --shadow-coral: 0 6px 20px var(--coral-glow);
  --shadow-yellow: 0 4px 16px var(--yellow-glow);
  
  /* Timing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-dark);
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  color: var(--grey);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  padding: var(--space-3xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: calc(-1 * var(--space-lg)) auto var(--space-3xl);
  font-size: 1.1rem;
  color: var(--medium-gray);
  line-height: 1.6;
}

/* ===== Components ===== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease-out-back);
  white-space: nowrap;
}

.btn-primary {
  background: var(--coral);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-coral);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-sm {
  padding: 12px 24px;
  font-size: 0.9375rem;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.badge-yellow {
  background: var(--yellow);
  color: var(--charcoal);
  box-shadow: var(--shadow-yellow);
}

/* Form */
.email-form {
  display: flex;
  gap: var(--space-md);
  max-width: 520px;
}

.email-form-centered {
  margin: 0 auto;
}

.email-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 17px;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-glow);
}

.email-input::placeholder {
  color: var(--grey);
}

.form-hint {
  font-size: 14px;
  color: var(--grey);
  margin-top: var(--space-md);
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  display: block;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(242, 107, 91, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(61, 191, 191, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 217, 61, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero-headline {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.hero-subhead {
  font-size: 1.25rem;
  color: var(--grey);
  max-width: 540px;
  margin: 0 auto var(--space-xl);
}

.hero .email-form {
  justify-content: center;
  margin: 0 auto;
}

.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  animation: sparkle 3s ease-in-out infinite;
}

.star-1 {
  top: 15%;
  right: 10%;
  animation-delay: 0s;
}

.star-2 {
  top: 25%;
  left: 8%;
  animation-delay: 0.5s;
}

.star-3 {
  bottom: 20%;
  right: 15%;
  animation-delay: 1s;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

/* ===== Social Proof ===== */
.social-proof {
  padding: var(--space-xl) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.proof-stat {
  text-align: center;
}

.proof-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
}

.proof-label {
  font-size: 14px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proof-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ===== Problem ===== */
.problem {
  background: var(--white);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.problem-card {
  background: var(--surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.problem-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: var(--mist);
  color: var(--coral);
}

.problem-card:nth-child(1) .problem-icon { color: var(--lavender); background: rgba(179, 157, 219, 0.15); }
.problem-card:nth-child(2) .problem-icon { color: var(--orange); background: rgba(255, 145, 73, 0.15); }
.problem-card:nth-child(3) .problem-icon { color: var(--teal); background: var(--teal-glow); }

.problem-card p {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--charcoal);
}

/* ===== Solution ===== */
.solution {
  background: var(--mist);
}

.solution-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.solution-content .section-title {
  text-align: left;
  margin-bottom: var(--space-lg);
}

.solution-text {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
}

.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: 1.0625rem;
  color: var(--charcoal);
}

.solution-list svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Activity Preview */
.activity-preview {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.activity-preview::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--coral), var(--orange));
}

.activity-preview-header {
  margin-bottom: var(--space-md);
}

.activity-preview-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.activity-preview-desc {
  color: var(--grey);
  margin-bottom: var(--space-lg);
}

.activity-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 14px;
  color: var(--grey);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item svg {
  flex-shrink: 0;
}

/* ===== Benefits ===== */
.benefits {
  background: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.benefit-card {
  background: var(--surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: var(--mist);
}

.benefit-icon-coral { color: var(--coral); background: var(--coral-glow); }
.benefit-icon-teal { color: var(--teal); background: var(--teal-glow); }
.benefit-icon-yellow { color: #D97706; background: var(--yellow-glow); }
.benefit-icon-lavender { color: var(--lavender); background: rgba(179, 157, 219, 0.15); }

.benefit-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--charcoal);
}

/* ===== How It Works ===== */
.how-it-works {
  background: var(--mist);
}

.steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 240px;
  max-width: 300px;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--coral);
  color: white;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: var(--space-md);
}

.step h3 {
  margin-bottom: var(--space-sm);
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  padding-top: 14px;
}

/* ===== Testimonials ===== */
.testimonials {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.testimonial {
  background: var(--surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.testimonial-quote {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.testimonial-quote::before {
  content: '"';
}

.testimonial-quote::after {
  content: '"';
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-weight: 600;
  color: var(--charcoal);
}

.testimonial-role {
  font-size: 14px;
  color: var(--grey);
}

/* ===== FAQ ===== */
.faq {
  background: var(--mist);
}

.faq-container {
  max-width: 800px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--surface);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.faq-question {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--charcoal);
}

.faq-answer {
  color: var(--grey);
  line-height: 1.7;
}

/* ===== Final CTA ===== */
.final-cta {
  background: linear-gradient(135deg, var(--coral) 0%, var(--orange) 100%);
  text-align: center;
}

.final-cta-content {
  max-width: var(--content-width);
}

.final-cta-headline {
  color: white;
  margin-bottom: var(--space-md);
}

.final-cta-subhead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
}

.final-cta .email-input {
  border-color: transparent;
}

.final-cta .btn-primary {
  background: var(--charcoal);
  box-shadow: 0 4px 20px rgba(31, 41, 55, 0.3);
}

.final-cta .btn-primary:hover {
  background: #111827;
  box-shadow: 0 6px 24px rgba(31, 41, 55, 0.4);
}

.final-cta .form-hint {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Footer ===== */
.footer {
  background: var(--charcoal);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.footer-content {
  max-width: 600px;
}

.footer-logo {
  margin-bottom: var(--space-md);
}

.footer-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-links a:hover {
  color: white;
}

.footer-links span {
  color: rgba(255, 255, 255, 0.3);
}

.footer-copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  section {
    padding: var(--space-2xl) 0;
  }
  
  .hero {
    min-height: auto;
    padding: calc(72px + var(--space-2xl)) 0 var(--space-2xl);
  }
  
  .email-form {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .proof-stats {
    gap: var(--space-lg);
  }
  
  .proof-divider {
    display: none;
  }
  
  .solution-container {
    grid-template-columns: 1fr;
  }
  
  .solution-content .section-title {
    text-align: center;
  }
  
  .step-arrow {
    display: none;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .star {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .nav-container {
    height: 64px;
  }
  
  .btn-sm {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* ===== Pricing ===== */
.pricing {
  padding: var(--space-3xl) 0;
  background: var(--cream);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 720px;
  margin: var(--space-xl) auto 0;
  align-items: start;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 2px solid var(--light-gray);
  text-align: center;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--coral);
  box-shadow: 0 8px 32px var(--coral-glow);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-plan {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: var(--space-xs);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: var(--space-lg);
}

.pricing-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--medium-gray);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.95rem;
  color: var(--dark);
}

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  border: 2px solid var(--coral);
  color: var(--coral);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
}

.btn-outline:hover {
  background: var(--coral);
  color: white;
}

@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
