/* ============================================
   Chefje - Landing Page Styles
   ============================================ */

:root {
  /* Brand - warm dark brown */
  --brand: #2C1810;
  --brand-light: #4A2E22;

  /* Accent - Warm Terracotta */
  --accent: #C75B3F;
  --accent-light: #F0D5CC;
  --accent-muted: #E8A08E;
  --accent-dark: #9E4430;

  /* Backgrounds */
  --bg: #FFFFFF;
  --bg-warm: #FAF8F5;
  --bg-cream: #F5F1EC;

  /* Text */
  --text: #1A1A1A;
  --text-secondary: #5A5A5A;
  --text-tertiary: #9B9B9B;

  /* Borders */
  --border: #E8E5E0;
  --border-light: #F0EDE8;

  /* Semantic */
  --success: #34C759;
  --protein: #5B7FFF;
  --carbs: #FFBA08;
  --fat: #FF6B6B;

  /* Spacing */
  --container: 1120px;
  --nav-height: 72px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(45,59,45,0.06), 0 1px 2px rgba(45,59,45,0.04);
  --shadow-md: 0 4px 12px rgba(45,59,45,0.08), 0 2px 4px rgba(45,59,45,0.04);
  --shadow-lg: 0 12px 40px rgba(45,59,45,0.12), 0 4px 12px rgba(45,59,45,0.06);
  --shadow-xl: 0 24px 64px rgba(45,59,45,0.16), 0 8px 24px rgba(45,59,45,0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Merriweather Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

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

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

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

.accent {
  color: var(--accent);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: 'Merriweather Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(199,91,63,0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(199,91,63,0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--brand);
  background: var(--bg-warm);
}

.btn-nav {
  background: var(--accent);
  color: white !important;
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn-nav:hover {
  background: var(--accent-dark);
  color: white !important;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: white;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 0;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-top: 20px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-proof-avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  border: 2px solid white;
}

.hero-proof-avatars .avatar + .avatar {
  margin-left: -8px;
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-mockup {
  width: 300px;
  background: #1A1A1A;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1) inset;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.phone-mockup:hover {
  transform: rotateY(0) rotateX(0);
}

.phone-screen {
  background: white;
  border-radius: 30px;
  padding: 24px 16px;
  min-height: 520px;
  overflow: hidden;
}

/* Mock UI elements */
.mock-header {
  margin-bottom: 16px;
}

.mock-greeting {
  display: block;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand);
}

.mock-week {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.mock-macros {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.mock-macro {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-macro-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-cream);
  border-radius: 3px;
  overflow: hidden;
}

.mock-macro-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.5s ease;
}

.mock-macro span {
  font-size: 0.6rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  min-width: 80px;
}

.mock-days {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.mock-day {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 6px 0;
  border-radius: 8px;
  color: var(--text-tertiary);
}

.mock-day.active {
  background: var(--accent);
  color: white;
}

.mock-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--bg-warm);
  border-radius: 12px;
  margin-bottom: 8px;
}

.mock-card-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.mock-card-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mock-card-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mock-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.mock-card-meta {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

/* ============================================
   Section Divider
   ============================================ */

.section-divider {
  border-top: 1px solid var(--border-light);
}

.hero-proof-text {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

/* ============================================
   Features
   ============================================ */

.features {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-header p {
  margin-top: 16px;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  background: var(--bg);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card-large {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-warm);
}

.feature-card-large .feature-icon,
.feature-card-large h3,
.feature-card-large p {
  grid-column: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
}

/* Feature Visual (generation steps) */
.feature-visual {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.feature-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: white;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.feature-step.done {
  color: var(--accent);
}

.feature-step.done svg {
  flex-shrink: 0;
}

.feature-step.active {
  color: var(--accent);
  border: 1.5px solid var(--accent-light);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
  padding: 100px 0;
  background: var(--bg-warm);
}

.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.step-content p {
  font-size: 1rem;
}

.step-visual {
  display: flex;
  justify-content: center;
}

.step-mock {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow-md);
}

/* Mock Onboarding */
.mock-question {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand);
  margin-bottom: 12px;
}

.mock-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-option {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.mock-option.active {
  border-color: var(--accent);
  background: rgba(199,91,63,0.04);
  color: var(--accent);
}

/* Mock Menu */
.mock-menu-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 8px;
}

.mock-menu-card.faded {
  opacity: 0.5;
}

.mock-menu-emoji {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.mock-menu-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
}

.mock-menu-card span {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Mock Shopping */
.mock-shop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}

.mock-shop-item:last-of-type {
  border-bottom: none;
}

.mock-shop-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.mock-shop-check.checked {
  background: var(--accent);
  border-color: var(--accent);
  position: relative;
}

.mock-shop-check.checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.mock-shop-item span:nth-child(2) {
  flex: 1;
  color: var(--text);
}

.mock-shop-price {
  color: var(--text-secondary);
  font-weight: 600;
}

.mock-shop-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 2px solid var(--border);
  font-size: 0.9rem;
}

.mock-shop-total span {
  color: var(--text-secondary);
}

.mock-shop-total strong {
  color: var(--brand);
  font-size: 1.1rem;
}

/* ============================================
   Testimonial
   ============================================ */

.testimonial {
  padding: 80px 0;
}

.testimonial blockquote {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.testimonial p {
  font-family: 'Merriweather', serif;
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  color: var(--brand);
  line-height: 1.6;
  margin-bottom: 24px;
}

.testimonial footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.testimonial footer strong {
  display: block;
  font-size: 0.9rem;
}

.testimonial footer span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ============================================
   Pricing
   ============================================ */

.pricing {
  padding: 100px 0;
  background: var(--bg-warm);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  background: white;
  border: 1px solid var(--border);
  position: relative;
}

.pricing-card-popular {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-name {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pricing-price {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand);
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features svg {
  flex-shrink: 0;
}

/* ============================================
   Waitlist CTA
   ============================================ */

.waitlist {
  padding: 100px 0;
}

.waitlist-card {
  background: var(--brand);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.waitlist-card h2 {
  color: white;
  margin-bottom: 12px;
}

.waitlist-card p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}

.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}

.waitlist-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  color: white;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.waitlist-form input:focus {
  border-color: var(--accent);
}

.waitlist-form .btn-primary {
  flex-shrink: 0;
}

.waitlist-note {
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.4) !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

/* Success state */
.waitlist-success {
  display: none;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
}

.waitlist-success.show {
  display: block;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  width: 100%;
  text-align: center;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-proof {
    justify-content: center;
  }

  .phone-mockup {
    transform: none;
    width: 260px;
  }

  .feature-card-large {
    grid-template-columns: 1fr;
  }

  .feature-card-large .feature-icon,
  .feature-card-large h3,
  .feature-card-large p {
    grid-column: auto;
  }

  .feature-visual {
    grid-column: auto;
    grid-row: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-large {
    grid-column: span 1;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .step-number {
    margin: 0 auto;
  }

  .step-mock {
    max-width: 280px;
    margin: 0 auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .waitlist-card {
    padding: 40px 24px;
  }

  .waitlist-form {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  h1 {
    font-size: 2.25rem;
  }

  .features, .how-it-works, .pricing, .waitlist {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 48px;
  }

  .phone-mockup {
    width: 240px;
  }

  .feature-card {
    padding: 24px;
  }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
