/* Equals MVP — Warm Cream & Amber Design System */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --cream: #FAF7F2;
  --cream-dark: #F0EBE3;
  --amber: #E8A87C;
  --amber-light: #F2C9A8;
  --amber-dark: #C97A4F;
  --warm-brown: #3D2B1F;
  --text-dark: #2C1810;
  --text-muted: #7A6455;
  --white: #FFFFFF;
  --success: #5A9E6F;
  --error: #D9534F;
  --border: rgba(61,43,31,0.12);
  --shadow: 0 4px 24px rgba(61,43,31,0.08);
  --shadow-lg: 0 8px 40px rgba(61,43,31,0.12);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
}

a { color: var(--amber-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber-dark);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--text-dark); text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--amber);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-error { color: var(--error); font-size: 13px; margin-top: 4px; }

.card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--amber); }
.nav-links { display: flex; gap: 8px; align-items: center; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(232,168,124,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 720px; position: relative; z-index: 1; }
.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--amber-dark);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: italic;
  color: var(--amber-dark);
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.hero-image {
  width: 100%;
  max-width: 600px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  margin: 48px auto 0;
  display: block;
}

.hero-image-wrapper {
  position: relative;
  max-width: 560px;
  margin: 48px auto 0;
}
.hero-image-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

/* Features */
.features { padding: 80px 24px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}
.feature-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* Dream Life Vision Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,24,16,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: 24px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--cream);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s;
}
.modal-close:hover { background: var(--cream-dark); }
.modal h2 {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.modal-sub { color: var(--text-muted); font-size: 15px; margin-bottom: 32px; }

/* Waitlist form */
.waitlist-form { display: flex; gap: 10px; }
.waitlist-form input { flex: 1; }

/* Divider */
.section { padding: 80px 24px; }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 12px;
}
.section-title p { color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* Testimonials */
.testimonials { background: var(--warm-brown); color: var(--cream); padding: 80px 24px; }
.testimonials h2 { color: var(--cream); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.testimonial-card {
  background: rgba(250,247,242,0.08);
  border: 1px solid rgba(250,247,242,0.12);
  border-radius: 20px;
  padding: 28px;
}
.testimonial-card blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 16px;
}
.testimonial-card cite {
  font-size: 13px;
  color: var(--amber-light);
  font-style: normal;
}

/* App Shell */
.app-shell { padding-top: 80px; min-height: 100vh; }
.app-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  position: sticky;
  top: 64px;
  z-index: 50;
}
.app-header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-content { max-width: 900px; margin: 0 auto; padding: 32px 24px; }

/* Discover Cards */
.swipe-container { position: relative; }
.swipe-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  margin: 0 auto;
}
.swipe-card-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 48px;
}
.swipe-card-body { padding: 24px; }
.swipe-card-body h3 {
  font-size: 26px;
  margin-bottom: 4px;
}
.swipe-card-body .location { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.swipe-card-body .bio { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.dlv-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.dlv-section strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber-dark); display: block; margin-bottom: 4px; }
.dlv-section p { font-size: 14px; color: var(--text-dark); margin-bottom: 8px; }
.swipe-actions { display: flex; justify-content: center; gap: 20px; padding: 20px; }
.swipe-actions button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.swipe-actions button:hover { transform: scale(1.1); }
.pass-btn { background: var(--cream); color: var(--text-muted); box-shadow: var(--shadow); }
.like-btn { background: var(--amber); color: var(--white); box-shadow: 0 4px 20px rgba(232,168,124,0.4); }
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state h3 { font-size: 28px; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* Match List */
.match-list { display: flex; flex-direction: column; gap: 12px; }
.match-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.match-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.match-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--amber-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
}
.match-info { flex: 1; }
.match-info h4 { font-size: 17px; margin-bottom: 2px; }
.match-info p { font-size: 13px; color: var(--text-muted); }
.match-score { background: var(--cream); border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 600; color: var(--amber-dark); }

/* Chat */
.chat-container { background: var(--white); border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
.chat-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.chat-header h3 { font-size: 20px; }
.chat-messages { padding: 24px; height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.msg { max-width: 70%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.5; }
.msg-sent { align-self: flex-end; background: var(--amber); color: var(--white); border-bottom-right-radius: 4px; }
.msg-received { align-self: flex-start; background: var(--cream-dark); color: var(--text-dark); border-bottom-left-radius: 4px; }
.msg-time { font-size: 11px; opacity: 0.7; margin-top: 4px; }
.chat-input-row { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.chat-input-row input { flex: 1; }
.chat-input-row button { padding: 14px 20px; }

/* Life Builder */
.lb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lb-section { background: var(--white); border-radius: 20px; padding: 24px; border: 1px solid var(--border); }
.lb-section h3 { font-size: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.lb-section ul { list-style: none; }
.lb-section li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.lb-section li:last-child { border-bottom: none; }
.lb-add { display: flex; gap: 8px; margin-top: 12px; }
.lb-add input { flex: 1; font-size: 14px; padding: 10px 12px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-dark);
  color: var(--cream);
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  transition: transform 0.3s ease;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--cream-dark);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .lb-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 42px; }
  .waitlist-form { flex-direction: column; }
  .hero-cta { flex-direction: column; align-items: center; }
  .modal { padding: 24px; }
}