/* ============================================================
   Kaboozer Marketing Site — Styles
   Fonts: Libre Baskerville (serif) + Inter (sans)
   ============================================================ */

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

:root {
  --cream: #FFFBF5;
  --white: #FFFFFF;
  --navy: #1B2A4A;
  --navy-light: #2D4A6F;
  --slate: #5A6B7F;
  --muted: #8896A6;
  --border: #E8E0D6;
  --tangerine: #E8823A;
  --tangerine-light: #FDEBD4;
  --green: #22C55E;
  --green-bg: #F0FDF4;
  --amber: #FBBF24;
  --amber-bg: #FEFCE8;
  --blue: #3B82F6;
  --blue-bg: #EFF6FF;
  --pink: #EC4899;
  --pink-bg: #FDF2F8;
  --navy-on-dark: #CBD5E1;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.serif { font-family: 'Libre Baskerville', Georgia, serif; }

img { max-width: 100%; display: block; }

/* ---- HEADER ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

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

.header-cta {
  display: inline-block;
  background: var(--tangerine);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 130, 58, 0.35);
}

/* ---- SHARED ---- */
.section { padding: 80px 40px; }

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tangerine);
  margin-bottom: 12px;
}

.section-headline {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.section-body {
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.7;
}

.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--tangerine);
  color: var(--white);
  padding: 14px 36px;
  border-radius: var(--radius-lg);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 130, 58, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  padding: 14px 36px;
  border-radius: var(--radius-lg);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

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

/* ---- HERO ---- */
.hero {
  text-align: center;
  padding: 100px 40px 80px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.hero .eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tangerine);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- PROBLEM ---- */
.problem { text-align: center; }

.problem h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  max-width: 680px;
  margin: 0 auto 20px;
  line-height: 1.3;
}

.problem p {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- FEATURES ---- */
.features { text-align: center; }

.features .section-headline { margin-bottom: 48px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(27, 42, 74, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

.feature-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
}

/* ---- HOW IT WORKS ---- */
.how-it-works { text-align: center; }

.how-it-works .section-headline { margin-bottom: 48px; }

.steps {
  display: flex;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  justify-content: center;
  flex-wrap: wrap;
}

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

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tangerine);
  color: var(--white);
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

.step p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
}

/* ---- CHORES SPOTLIGHT ---- */
.spotlight {
  background: var(--amber-bg);
  border-top: 1px solid #FDE68A;
  border-bottom: 1px solid #FDE68A;
}

.spotlight-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}

.spotlight-text { flex: 1; min-width: 280px; }

.spotlight-text .section-label { color: #854D0E; }

.spotlight-text h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}

.spotlight-text p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 16px;
}

.spotlight-visual {
  flex: 1;
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid #FDE68A;
}

.leaderboard-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.leaderboard-row:last-child { border-bottom: none; }

.lb-medal { font-size: 20px; width: 30px; text-align: center; }
.lb-rank { font-size: 14px; color: var(--muted); width: 30px; text-align: center; }

.lb-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.lb-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--navy); }
.lb-pts { font-size: 14px; font-weight: 700; color: #854D0E; }

/* ---- AUDIENCE ---- */
.audience { text-align: center; }

.audience .section-headline { margin-bottom: 48px; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.audience-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

.audience-emoji { font-size: 36px; margin-bottom: 12px; }

.audience-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

.audience-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
}

/* ---- STORY ---- */
.story {
  background: var(--navy);
  text-align: center;
}

.story h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 16px;
}

.story p {
  font-size: 1.05rem;
  color: var(--navy-on-dark);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- WAITLIST ---- */
.waitlist { text-align: center; }

.waitlist .section-headline { margin-bottom: 12px; }

.waitlist .section-body {
  max-width: 460px;
  margin: 0 auto 32px;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.waitlist-input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--navy);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s ease;
}

.waitlist-input:focus { border-color: var(--tangerine); }
.waitlist-input::placeholder { color: var(--muted); }

.waitlist-message {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 16px;
}

.waitlist-message.success { color: var(--green); }
.waitlist-message.error { color: #EF4444; }
.waitlist-message.duplicate { color: var(--tangerine); }

/* ---- FOOTER ---- */
.footer {
  padding: 32px 40px;
  background: var(--cream);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer .logo { font-size: 16px; margin-bottom: 8px; display: block; }

.footer p { font-size: 13px; color: var(--muted); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .header { padding: 14px 20px; }
  .section { padding: 60px 20px; }
  .hero { padding: 80px 20px 60px; }
  .spotlight-inner { flex-direction: column; }
  .cta-row { flex-direction: column; align-items: center; }
}
