/* ==============================
   NESTABLE — Landing Page Styles
   Vibe: warm, calm, ADHD-friendly
   Fonts: Fraunces (display) + DM Sans (body)
   ============================== */

:root {
  --cream:        #f7f3ee;
  --cream-dark:   #ede8e0;
  --ink:          #1c1812;
  --ink-muted:    #6b6056;
  --terracotta:   #c85c3a;
  --terra-light:  #f0c4b4;
  --terra-bg:     #fdf1ec;
  --sage:         #6a8c6a;
  --sage-light:   #ddeadd;
  --border:       rgba(28, 24, 18, 0.1);

  --radius-sm:    6px;
  --radius-md:    14px;
  --radius-lg:    24px;

  --transition:   0.22s ease;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
em { font-style: italic; }
strong { font-weight: 500; }
a { color: inherit; text-decoration: none; }

/* LAYOUT UTILITIES */
.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================
   NAV
   ============================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 238, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--terracotta);
  border: 1.5px solid var(--terracotta);
  border-radius: 999px;
  padding: 6px 18px;
  transition: background var(--transition), color var(--transition);
}
.nav-cta:hover {
  background: var(--terracotta);
  color: #fff;
}

/* ==============================
   BUTTONS
   ============================== */
.btn-primary {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(200, 92, 58, 0.22);
  text-decoration: none;
}
.btn-primary:hover {
  background: #b04d2e;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(200, 92, 58, 0.32);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-full { width: 100%; text-align: center; padding: 16px; }

/* ==============================
   HERO
   ============================== */
.hero {
  padding: 80px 24px 80px;
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero-headline em {
  color: var(--terracotta);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin-bottom: 32px;
  line-height: 1.65;
}
.hero-sub strong {
  color: var(--ink);
}
.hero-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* HERO VISUAL — App preview mock */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: 0 2px 16px rgba(28, 24, 18, 0.08);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.task-card--active {
  border-left: 4px solid var(--terracotta);
}
.task-card--next {
  opacity: 0.65;
  transform: scale(0.97);
}
.task-card--done {
  background: var(--sage-light);
  transform: scale(1.02);
}
.task-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 6px;
}
.task-card--next .task-label {
  color: var(--ink-muted);
}
.task-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}
.task-card--next .task-text { margin-bottom: 0; }
.task-actions {
  display: flex;
  gap: 8px;
}
.task-done, .task-skip {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border: none;
}
.task-done {
  background: var(--terracotta);
  color: #fff;
}
.task-done:hover {
  background: #b04d2e;
  transform: scale(1.04);
}
.task-skip {
  background: transparent;
  color: var(--ink-muted);
  border: 1.5px solid var(--border);
}
.task-skip:hover {
  background: var(--cream-dark);
}

.progress-bar-wrap {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  border: 1px solid var(--border);
}
.progress-label {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.progress-label span {
  color: var(--ink);
  font-weight: 500;
}
.progress-track {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--terracotta) 0%, #e07a60 100%);
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* ==============================
   EMPATHY SECTION
   ============================== */
.empathy {
  background: var(--terra-bg);
  padding: 72px 0;
  text-align: center;
  border-top: 1px solid var(--terra-light);
  border-bottom: 1px solid var(--terra-light);
}
.empathy-pre {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.empathy-apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.empathy-apps span {
  font-size: 0.875rem;
  color: var(--ink-muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 999px;
  text-decoration: line-through;
  opacity: 0.7;
}
.empathy-post {
  max-width: 580px;
  margin: 0 auto 20px;
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.7;
}
.empathy-call {
  font-size: 1.2rem;
  font-family: var(--font-display);
  color: var(--ink);
}
.empathy-call strong {
  color: var(--terracotta);
  font-weight: 600;
}

/* ==============================
   FEATURES
   ============================== */
.features {
  padding: 80px 0;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 52px;
  letter-spacing: -0.02em;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.feature-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.feature-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.feature-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature-body p {
  font-size: 0.975rem;
  color: var(--ink-muted);
  line-height: 1.7;
}
.feature-body em { color: var(--ink); }

/* ==============================
   QUOTE
   ============================== */
.quote-section {
  background: var(--ink);
  padding: 72px 0;
}
.quote-section blockquote {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.quote-section blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
  margin-bottom: 16px;
}
.quote-section blockquote cite {
  font-size: 0.85rem;
  color: rgba(247, 243, 238, 0.5);
  font-style: normal;
}

/* ==============================
   WAITLIST
   ============================== */
.waitlist {
  padding: 88px 0;
}
.waitlist-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.waitlist-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.waitlist-copy p {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.waitlist-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.waitlist-perks li {
  font-size: 0.9rem;
  color: var(--ink-muted);
  padding-left: 20px;
  position: relative;
}
.waitlist-perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 600;
}

/* FORM */
.waitlist-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(28, 24, 18, 0.07);
}
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.form-input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input::placeholder { color: var(--ink-muted); opacity: 0.5; }
.form-input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(200, 92, 58, 0.12);
}
.form-thanks {
  text-align: center;
  font-size: 1rem;
  color: var(--sage);
  padding: 16px 0;
}
.form-error {
  text-align: center;
  font-size: 0.875rem;
  color: var(--terracotta);
  padding: 8px 0;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: var(--cream-dark);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer p {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ==============================
   RESPONSIVE
   ============================== */
.br-desktop { display: none; }

@media (max-width: 720px) {
  .br-desktop { display: block; }

  .hero {
    grid-template-columns: 1fr;
    padding: 48px 20px 56px;
    gap: 40px;
  }
  .hero-visual { max-width: 420px; }

  .waitlist-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .waitlist-form-wrap {
    padding: 24px;
  }

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

  .section-title { margin-bottom: 36px; }

  .feature-item {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }
  .feature-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.1rem; }
  .empathy { padding: 52px 0; }
  .features { padding: 60px 0; }
  .waitlist { padding: 60px 0; }
  .quote-section { padding: 52px 0; }
}

/* Scroll animation: fade-up on features */
@media (prefers-reduced-motion: no-preference) {
  .feature-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .feature-item.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
