/* Landing page — marketing page for logged-out visitors. Self-contained; only
   vars.css is loaded alongside it. Mirrors the app's look: Baloo 2 / Nunito,
   warm cream background, rounded cards, springy accent CTAs. */

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

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; line-height: 1.5;
  background-image: radial-gradient(rgba(255, 79, 154, .05) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  min-height: 100vh; min-height: 100dvh;
}

/* ── Nav ── */
.lp-nav {
  max-width: 1040px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { display: inline-flex; flex-direction: column; line-height: 1; transform: rotate(-2deg); user-select: none; }
.logo .kicker { font-family: 'Baloo 2', cursive; font-size: 11px; font-weight: 700; letter-spacing: 3.5px; text-transform: uppercase; color: var(--muted); margin-left: 3px; }
.logo .main { font-family: 'Baloo 2', cursive; font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--text); }
.logo .main .dot { color: var(--accent); }
.lp-nav-actions { display: flex; align-items: center; gap: 14px; }
.lp-link { font-weight: 800; font-size: 14px; color: var(--text); text-decoration: none; }
.lp-link:hover { color: var(--accent-deep); }

/* ── Buttons ── */
.lp-btn {
  display: inline-block; font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 16px;
  background: var(--accent); color: #fff; border: 2px solid var(--accent-deep);
  border-radius: 16px; padding: 13px 22px; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--accent-deep); transition: transform .12s, box-shadow .12s;
}
.lp-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-deep); }
.lp-btn.ghost { background: var(--surface); color: var(--accent-deep); border-color: var(--accent-mid); box-shadow: 0 4px 0 var(--accent-mid); }
.lp-btn.sm { font-size: 14px; padding: 9px 16px; border-radius: 13px; box-shadow: 0 3px 0 var(--accent-deep); }

/* ── Hero ── */
.lp-hero {
  max-width: 1040px; margin: 0 auto; padding: 40px 24px 16px;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center;
}
.lp-badge { display: inline-block; background: var(--accent-soft); color: var(--accent-deep); font-weight: 800; font-size: 12.5px; padding: 7px 14px; border-radius: 99px; margin-bottom: 18px; }
.lp-title { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 46px; line-height: 1.04; letter-spacing: -.5px; margin-bottom: 16px; }
.lp-title .acc { color: var(--accent); }
.lp-lead { font-size: 17px; font-weight: 600; color: var(--text); opacity: .82; max-width: 38ch; margin-bottom: 26px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-note { margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* ── Hero preview mock ── */
.lp-preview {
  background: var(--surface); border: 2px solid var(--border); border-radius: 26px;
  box-shadow: 0 18px 50px rgba(61, 44, 58, .14); padding: 18px; transform: rotate(1.6deg);
}
.lp-pre-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lp-pre-day { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 18px; }
.lp-pre-pct { font-weight: 800; font-size: 13px; color: var(--accent); }
.lp-pre-bar { height: 12px; border-radius: 99px; background: var(--faint); overflow: hidden; margin-bottom: 16px; }
.lp-pre-bar > i { display: block; height: 100%; width: 80%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-mid), var(--accent)); }
.lp-pre-habit { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 2px solid var(--border); border-radius: 16px; margin-bottom: 9px; }
.lp-pre-habit .e { font-size: 19px; }
.lp-pre-habit .n { flex: 1; font-weight: 800; font-size: 14px; }
.lp-pre-habit.done { border-color: var(--accent-mid); background: var(--accent-soft); }
.lp-pre-check { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.lp-pre-todo { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--accent-mid); }
.lp-pre-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; }
.lp-gc { aspect-ratio: 1; border-radius: 3px; background: var(--accent); }
.lp-gc.empty { background: var(--faint); }

/* ── Features ── */
.lp-features { max-width: 1040px; margin: 0 auto; padding: 44px 24px; }
.lp-h2 { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 28px; text-align: center; margin-bottom: 28px; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.lp-feat {
  background: var(--surface); border: 2px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow); padding: 22px; transition: transform .15s, box-shadow .15s;
}
.lp-feat:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(61, 44, 58, .1); }
.lp-emoji { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; font-size: 24px; background: var(--accent-soft); border-radius: 14px; margin-bottom: 14px; }
.lp-feat h3 { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.lp-feat p { font-size: 14px; font-weight: 600; color: var(--text); opacity: .8; }

/* ── CTA band ── */
.lp-band { max-width: 1040px; margin: 12px auto 0; padding: 0 24px; }
.lp-band-inner {
  background: linear-gradient(180deg, var(--surface), var(--accent-soft));
  border: 2px solid var(--accent-mid); border-radius: 28px; padding: 42px 24px; text-align: center;
}
.lp-band h2 { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 26px; margin-bottom: 18px; }
.lp-fine { margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.lp-fine a { color: var(--accent); text-decoration: none; font-weight: 800; }
.lp-fine a:hover { text-decoration: underline; }

/* ── Footer ── */
.lp-footer {
  text-align: center; padding: 30px 16px calc(30px + env(safe-area-inset-bottom, 0px));
  font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted); opacity: .75;
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .lp-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 22px; }
  .lp-title { font-size: 34px; }
  .lp-lead { max-width: none; }
  .lp-preview { transform: none; }
}
@media (max-width: 380px) {
  .lp-title { font-size: 30px; }
  .lp-cta .lp-btn { flex: 1; text-align: center; }
}
