/* Bodycount landing — candlelight design system (mirrors the app theme) */

:root {
  --bg: #17120d;
  --surface: #221c15;
  --surface-alt: #2e261d;
  --border: rgba(242, 235, 223, 0.07);
  --text: #f2ebdf;
  --text-secondary: #a89c8b;
  --text-muted: #756a5b;
  --cream: #e7dcc3;
  --on-cream: #211a12;
  --tan: #c79a6b;
  --blue: #9db1c4;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 28px;
  --radius-sm: 18px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Warm candlelight glow behind the hero */
body::before {
  content: '';
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 100vw);
  height: 900px;
  background: radial-gradient(closest-side, rgba(199, 154, 107, 0.14), transparent 70%);
  pointer-events: none;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: 0.2px; }

h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.05; }
h1 em { font-style: italic; color: var(--cream); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; }

.eyebrow {
  color: var(--tan);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lede { color: var(--text-secondary); font-size: 1.15rem; max-width: 34em; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-primary { background: var(--cream); color: var(--on-cream); }
.btn-secondary { background: var(--surface-alt); color: var(--text); }
.btn-ghost { color: var(--text-muted); border: 1px solid var(--border); cursor: default; }
.btn-small { padding: 11px 20px; font-size: 0.92rem; }

/* ---------- Store badges (official assets, heights visually matched) ---------- */
.store-badge { display: inline-flex; align-items: center; transition: transform 0.15s ease, opacity 0.15s ease; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { height: 54px; width: auto; display: block; }
/* The Google Play artwork ships with built-in padding: compensate. */
.store-badge img[src*='google-play'] { height: 80px; margin: -13px; }
.store-badge.soon { opacity: 0.45; cursor: default; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(23, 18, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
}
.nav-logo img { border-radius: 8px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  padding: clamp(60px, 9vw, 130px) clamp(20px, 6vw, 90px) clamp(50px, 7vw, 110px);
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-copy .lede { margin-top: 22px; }
.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.hearts { color: var(--tan); letter-spacing: 3px; }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(320px, 78vw);
  border-radius: 48px;
  background: #0d0a06;
  padding: 12px;
  border: 1px solid rgba(242, 235, 223, 0.12);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 120px rgba(199, 154, 107, 0.12);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #0d0a06;
  border-radius: 14px;
  z-index: 2;
}
.screen {
  background: var(--bg);
  border-radius: 38px;
  padding: 58px 18px 14px;
  overflow: hidden;
}
.scr-eyebrow { color: var(--text-secondary); font-size: 0.82rem; }
.scr-title-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 14px; }
.scr-title { font-size: 1.7rem; }
.scr-add {
  width: 40px; height: 40px;
  background: var(--cream); color: var(--on-cream);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 600;
}
.scr-stats { display: flex; gap: 8px; margin-bottom: 14px; }
.scr-stat {
  flex: 1;
  background: var(--surface);
  border-radius: 16px;
  padding: 10px 4px;
  text-align: center;
}
.scr-stat strong { display: block; font-family: var(--serif); font-size: 1.3rem; }
.scr-stat span { font-size: 0.62rem; color: var(--text-muted); }
.cream { color: var(--cream); } .tan { color: var(--tan); } .blue { color: var(--blue); }
.scr-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border-radius: 20px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.scr-card.faded { opacity: 0.45; }
.scr-avatar {
  width: 38px; height: 38px;
  background: var(--surface-alt);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  color: var(--cream);
  font-size: 1.05rem;
}
.scr-card-txt { flex: 1; line-height: 1.25; }
.scr-card-txt strong { font-family: var(--serif); font-size: 0.98rem; display: block; }
.scr-card-txt span { font-size: 0.72rem; color: var(--text-muted); }
.scr-pill { background: var(--surface-alt); border-radius: 999px; padding: 5px 10px; font-size: 0.78rem; color: var(--tan); font-weight: 700; }
.scr-dock {
  display: flex; justify-content: space-around;
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 12px 6px;
  margin-top: 12px;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.scr-dock span:first-child { color: var(--cream); }

.float-card {
  position: absolute;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 0.85rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  animation: floaty 5s ease-in-out infinite;
}
.float-badge { top: 12%; right: -4%; animation-delay: 0.6s; }
.float-lock { bottom: 16%; left: -6%; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* ---------- Strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 10px clamp(20px, 5vw, 60px) clamp(60px, 8vw, 100px);
  text-align: center;
}
.strip strong { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--cream); }
.strip span { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Features ---------- */
.features { max-width: 1150px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); display: grid; gap: clamp(70px, 9vw, 130px); }
.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-visual { order: 1; }
.feature-copy p { color: var(--text-secondary); margin-top: 18px; }
.checklist { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; color: var(--text-secondary); }
.checklist li::before { content: '♥'; position: absolute; left: 0; color: var(--tan); }

.feature-visual { display: flex; justify-content: center; }
.mini-screen {
  width: min(320px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.scr-label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin: 14px 0 8px; }
.scr-label:first-child { margin-top: 0; }
.scr-hearts { font-size: 1.5rem; letter-spacing: 4px; }
.scr-hearts .on { color: var(--tan); }
.scr-hearts .off { color: var(--surface-alt); }
.scr-field { background: var(--surface-alt); border-radius: 18px; padding: 14px 16px; font-size: 0.95rem; }
.scr-cta {
  background: var(--cream); color: var(--on-cream);
  text-align: center; font-weight: 700;
  border-radius: 999px; padding: 15px;
  margin-top: 22px;
}

/* Globe */
.globe { text-align: center; }
.globe-sphere {
  width: min(300px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  background-color: var(--cream);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 90px rgba(231, 220, 195, 0.12);
  background-image:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.45), transparent 50%),
    radial-gradient(circle at 70% 75%, rgba(169, 116, 62, 0.18), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 44px, rgba(255, 255, 255, 0.6) 44px 45px),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(255, 255, 255, 0.6) 44px 45px);
  overflow: hidden;
}
.globe .dot {
  position: absolute;
  width: 16px; height: 16px;
  background: var(--tan);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(199, 154, 107, 0.28);
}
.globe .dot.tan { background: #a9743e; }
.globe-caption { margin-top: 22px; color: var(--text-secondary); }
.globe-caption strong { color: var(--cream); font-family: var(--serif); font-size: 1.2rem; }

/* Stats chart mock */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; margin-top: 6px; }
.bars i { flex: 1; background: #4a4034; border-radius: 10px; }
.bars i.peak { background: var(--cream); }
.badge-row { display: flex; gap: 10px; margin-top: 20px; }
.badge-row span {
  width: 48px; height: 48px;
  background: var(--surface-alt);
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.3rem;
}
.badge-row .locked { opacity: 0.3; }

/* ---------- Privacy ---------- */
.privacy {
  max-width: 1150px;
  margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 60px) 0;
  text-align: center;
}
.privacy .lede { margin: 18px auto 0; }
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 50px;
  text-align: left;
}
.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.privacy-card span { font-size: 1.8rem; }
.privacy-card h3 { margin: 14px 0 8px; font-size: 1.15rem; }
.privacy-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Premium ---------- */
.premium {
  max-width: 1150px;
  margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 60px) 0;
  text-align: center;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 50px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--tan); box-shadow: 0 0 60px rgba(199, 154, 107, 0.12); }
.plan-badge {
  position: absolute;
  top: -14px; left: 28px;
  background: var(--tan); color: var(--on-cream);
  font-size: 0.78rem; font-weight: 700;
  border-radius: 999px;
  padding: 5px 14px;
}
.plan h3 { font-size: 1.2rem; }
.price { font-family: var(--serif); font-size: 2.4rem; color: var(--cream); margin: 10px 0 18px; }
.price span { font-size: 1rem; color: var(--text-muted); font-family: var(--sans); }
.plan ul { list-style: none; display: grid; gap: 9px; margin-bottom: 28px; flex: 1; }
.plan li { color: var(--text-secondary); padding-left: 26px; position: relative; font-size: 0.97rem; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--tan); font-weight: 700; }
.plan .btn { justify-content: center; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 60px) 0;
}
.faq h2 { margin-bottom: 36px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  color: var(--tan);
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; color: var(--text-secondary); }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: clamp(90px, 12vw, 160px) 20px clamp(80px, 10vw, 130px);
  position: relative;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(199, 154, 107, 0.1), transparent 70%);
  pointer-events: none;
}
.final-cta .final-icon { border-radius: 22px; margin-bottom: 26px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.final-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.final-cta .lede { margin: 14px auto 34px; }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(50px, 8vw, 90px) clamp(20px, 5vw, 60px) clamp(70px, 9vw, 110px);
}
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.legal-date { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 34px; }
.legal h2 { font-size: 1.35rem; margin: 42px 0 14px; }
.legal p, .legal li { color: var(--text-secondary); }
.legal p { margin-bottom: 16px; }
.legal ul { padding-left: 22px; display: grid; gap: 10px; margin-bottom: 16px; }
.legal li::marker { color: var(--tan); }
.legal a { color: var(--cream); }
.legal strong { color: var(--text); }
.legal em { color: var(--cream); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px clamp(20px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.05rem; color: var(--text); }
.footer-brand img { border-radius: 7px; }
.footer nav { display: flex; gap: 24px; flex: 1; }
.footer a { color: var(--text-secondary); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 60px; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-ctas, .hero-proof { justify-content: center; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 1; }
  .feature.flip .feature-visual { order: 2; }
  .strip { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .nav-links { display: none; }
  .float-badge { right: 2%; top: -3%; }
  .float-lock { left: 2%; }
}
