/* ============================================
   LifePlannerAI — Minimal / Apple-style Landing
   Clean, warm whites, subtle sage accents
   ============================================ */

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

:root {
  --bg:         #FAFAF8;
  --bg-alt:     #F2F0EC;
  --surface:    #FFFFFF;
  --text:       #1C1C1E;
  --text-mid:   #6B6B6B;
  --text-light: #AEAEB2;
  --accent:     #2D7D6B;
  --accent-mid: #3D9E87;
  --accent-bg:  #EAF5F2;
  --border:     #E8E5E0;
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-mid); }

h1, h2, h3, h4 { color: var(--text); line-height: 1.2; }

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

/* ── Buttons ──────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--text);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: -0.2px;
}
.btn-primary:hover {
  background: #333333;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #FFFFFF;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ── Navigation ───────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(250,250,248,0);
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text) !important;
  letter-spacing: -0.8px;
}
.navbar-brand span { color: var(--accent); }
.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid) !important;
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s;
}
.nav-cta:hover {
  border-color: var(--text);
  color: var(--text) !important;
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 80px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-image-wrap {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 64px;
  box-shadow: 0 16px 64px rgba(0,0,0,0.12);
}

.hero-image-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: -1.5px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ── Sections ─────────────────────────────────── */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-heading {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -1px;
}
.section-sub {
  text-align: center;
  color: var(--text-mid);
  max-width: 540px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

/* ── Feature Sections (scroll storytelling) ──── */
.feature-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-story:last-child { margin-bottom: 0; }
.feature-story.reverse { direction: rtl; }
.feature-story.reverse > * { direction: ltr; }

.feature-story-text h3 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
  line-height: 1.2;
}
.feature-story-text p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.feature-story-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

/* ── Time Card Mockup ──────────────────────────── */
.time-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.time-slot {
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}
.time-slot.work    { background: #EAF5F2; color: var(--accent); }
.time-slot.coach  { background: #F5F0E8; color: #9A7B4F; }
.time-slot.exercise { background: #FDE8E8; color: #C0392B; }
.time-slot.break  { background: #F0F0F0; color: var(--text-light); }
.time-slot.sleep  { background: #EEF2FF; color: #5C6AC4; }
.time-slot.personal { background: #FDF2F8; color: #B44C7A; }
.time-slot-label { display: block; font-size: 0.68rem; margin-top: 3px; opacity: 0.75; }

.time-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.time-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.time-card-date {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ── Voice Feature Visual ──────────────────────── */
.voice-ui {
  background: var(--text);
  border-radius: 16px;
  padding: 24px;
  color: #FFFFFF;
}
.voice-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  margin-bottom: 16px;
}
.voice-bar {
  width: 3px;
  border-radius: 3px;
  background: var(--accent-mid);
  animation: wave 1.2s ease-in-out infinite;
}
.voice-bar:nth-child(2) { animation-delay: 0.1s; height: 20px; }
.voice-bar:nth-child(3) { animation-delay: 0.2s; height: 28px; }
.voice-bar:nth-child(4) { animation-delay: 0.3s; height: 16px; }
.voice-bar:nth-child(5) { animation-delay: 0.15s; height: 24px; }
.voice-bar:nth-child(6) { animation-delay: 0.05s; height: 30px; }
.voice-bar:nth-child(7) { animation-delay: 0.25s; height: 22px; }
.voice-bar:nth-child(8) { animation-delay: 0.1s; height: 18px; }
.voice-bar:nth-child(9) { animation-delay: 0.2s; height: 26px; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
.voice-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.voice-message {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}
.voice-label {
  font-size: 0.7rem;
  color: var(--accent-mid);
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Stats Bar ─────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat-item {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.4;
}

/* ── How It Works ─────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
}
.step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  background: var(--bg);
}
.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.step p {
  color: var(--text-mid);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── Vision / Quote ───────────────────────────── */
.vision-block {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.vision-quote {
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}
.vision-sub {
  color: var(--text-mid);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Waitlist Form ────────────────────────────── */
.waitlist-section {
  background: var(--text);
  color: #FFFFFF;
  border-top: none;
}
.waitlist-inner {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.waitlist-section .section-label { color: var(--accent-mid); }
.waitlist-section .section-heading { color: #FFFFFF; }
.waitlist-section .section-sub { color: rgba(255,255,255,0.6); }

.waitlist-form {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist-form input {
  flex: 1;
  min-width: 240px;
  padding: 14px 20px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #FFFFFF;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.waitlist-form input::placeholder { color: rgba(255,255,255,0.35); }
.waitlist-form input:focus { border-color: var(--accent-mid); }

.waitlist-success {
  display: none;
  margin-top: 20px;
  padding: 14px 24px;
  background: rgba(61,158,135,0.15);
  border: 1px solid rgba(61,158,135,0.3);
  border-radius: 12px;
  color: #7FCFB8;
  font-weight: 600;
  font-size: 0.9rem;
}
.waitlist-error {
  display: none;
  margin-top: 12px;
  color: #FF8A80;
  font-size: 0.85rem;
}
.waitlist-section .btn-primary {
  background: var(--accent-mid);
  color: #FFFFFF;
}
.waitlist-section .btn-primary:hover {
  background: #359680;
}

/* ── Footer ───────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
}
.footer-brand {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.footer-brand span { color: var(--accent); }
.footer p {
  color: var(--text-light);
  font-size: 0.82rem;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .feature-story {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-story.reverse { direction: ltr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps::before { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .time-card-grid { grid-template-columns: repeat(4, 1fr); }
  .waitlist-form { flex-direction: column; }
  .waitlist-form input { min-width: 100%; }
  .hero { padding-bottom: 60px; }
}