/* FinTracker — css/landing.css
 * Marketing/landing page (index.html) styles. Deliberately self-contained and
 * independent of the app's own css/base.css etc. — the landing page is a normal
 * full-width marketing page, not the mobile-card app shell, so it keeps its own
 * copy of the brand tokens rather than inheriting the app's layout rules. */

:root {
  --navy: #1e2a45;
  --navy-soft: #56607a;
  --green: #0fa968;
  --green-dark: #0c8a56;
  --green-light: #e8f9f0;
  --mint: #b7ecda;
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --border: #eef1f5;
  --shadow: 0 8px 24px rgba(30, 42, 69, 0.06);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: linear-gradient(180deg, #f7f9fb 0%, #eef1f6 100%);
  color: var(--navy);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--navy); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.lp-wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- Top nav ---- */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 249, 251, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.lp-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lp-logo span { color: var(--green); }
.lp-nav__cta {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.lp-nav__cta:hover { background: var(--green-dark); }

/* ---- Buttons ---- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.lp-btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(15, 169, 104, 0.55);
}
.lp-btn--primary:hover { background: var(--green-dark); }
.lp-btn--primary:active { transform: scale(0.98); }
.lp-btn--ghost {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid #dfe4ea;
}
.lp-btn--ghost:hover { border-color: var(--green); color: var(--green-dark); }

/* ---- Hero ---- */
.lp-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .lp-hero { grid-template-columns: 1.05fr 0.95fr; padding-top: 72px; }
}
.lp-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.lp-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.05rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.lp-hero__sub {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--navy-soft);
  max-width: 540px;
  margin-bottom: 28px;
}
.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.lp-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lp-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-soft);
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}
.lp-hero__mock-wrap {
  justify-self: center;
  position: relative;
}

/* ---- Hero background blobs (decorative, light drifting animation) ---- */
.lp-hero { position: relative; overflow: visible; }
.lp-blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
}
.lp-blob--a {
  width: 380px; height: 380px;
  top: -120px; right: -60px;
  background: radial-gradient(circle at 30% 30%, var(--mint), transparent 70%);
  animation: lp-blob-drift-a 16s ease-in-out infinite;
}
.lp-blob--b {
  width: 300px; height: 300px;
  bottom: -100px; left: -80px;
  background: radial-gradient(circle at 60% 40%, var(--green-light), transparent 70%);
  animation: lp-blob-drift-b 20s ease-in-out infinite;
}
@keyframes lp-blob-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 26px) scale(1.08); }
}
@keyframes lp-blob-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -18px) scale(1.06); }
}

/* ---- Illustrative phone mockup (CSS/SVG, not a screenshot) ---- */
.lp-mock {
  position: relative;
  z-index: 1;
  width: min(300px, 76vw);
  background: var(--card-bg);
  border-radius: 28px;
  padding: 16px 16px 18px;
  box-shadow: 0 30px 60px -20px rgba(30, 42, 69, 0.28), 0 0 0 1px rgba(30, 42, 69, 0.06);
}
.lp-mock__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.lp-mock__bars { display: flex; flex-direction: column; gap: 3px; width: 16px; }
.lp-mock__bars span { height: 2px; border-radius: 1px; background: var(--navy); opacity: 0.7; }
.lp-mock__logo { font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; }
.lp-mock__logo b { color: var(--green); font-weight: 700; }
.lp-mock__stat-icon {
  width: 24px; height: 24px;
  border-radius: 8px;
  border: 1.2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-soft);
}
.lp-mock__amount-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mint), var(--green-light));
  border-radius: 18px;
  padding: 16px 16px 22px;
  margin-bottom: 12px;
}
.lp-mock__label { font-size: 0.68rem; font-weight: 700; color: var(--green-dark); }
.lp-mock__amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.7rem;
  margin-top: 4px;
}
.lp-mock__amount span:first-child { font-size: 1.05rem; }
.lp-mock__amount--dark { color: var(--navy); font-size: 1.5rem; }
.lp-mock__wave {
  position: absolute;
  left: 0; right: 0; bottom: -2px; height: 14px;
  background: rgba(255,255,255,0.5);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.lp-mock__pills { display: flex; gap: 8px; margin-bottom: 14px; }
.lp-mock__pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--navy-soft);
}
.lp-mock__pill.is-active { border-color: var(--green); color: var(--green-dark); background: var(--green-light); }
.lp-mock__list { display: flex; flex-direction: column; gap: 10px; }
.lp-mock__row { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; }
.lp-mock__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.lp-mock__row-label { flex: 1; color: var(--navy); font-weight: 600; }
.lp-mock__row b { color: var(--navy-soft); font-weight: 700; font-size: 0.76rem; }

/* ---- Floating trust badges beside the hero mockup ---- */
.lp-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow);
  z-index: 2;
}
.lp-float svg { color: var(--green-dark); flex-shrink: 0; }
.lp-float--a { top: -16px; left: -22px; animation: lp-float-bob 4.5s ease-in-out infinite; }
.lp-float--b { bottom: -16px; right: -18px; animation: lp-float-bob 5.5s ease-in-out infinite 0.6s; }
@keyframes lp-float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 640px) {
  .lp-float { display: none; }
}

/* ---- Features ---- */
.lp-section { padding: 64px 24px; max-width: var(--max); margin: 0 auto; }
.lp-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}
.lp-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.lp-feature {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 22px;
}
.lp-feature__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.lp-feature h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.lp-feature p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--navy-soft);
}

/* ---- Showcase / how it works ---- */
.lp-showcase__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .lp-showcase__row { grid-template-columns: 0.85fr 1.15fr; }
}
.lp-showcase__chart { justify-self: center; width: 100%; }

/* ---- Illustrative analytics bar-chart mockup (CSS, not a screenshot) ---- */
.lp-chart-mock {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  max-width: 360px;
  margin: 0 auto;
}
.lp-chart-mock__total { margin-bottom: 18px; }
.lp-chart-mock__bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100px;
  margin-bottom: 8px;
}
.lp-bar {
  flex: 1;
  height: var(--h);
  background: var(--mint);
  border-radius: 6px 6px 2px 2px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.lp-bar--peak { background: var(--green); }
.lp-showcase__chart.is-visible .lp-bar { transform: scaleY(1); }
.lp-showcase__chart.is-visible .lp-bar:nth-child(1) { transition-delay: 0.05s; }
.lp-showcase__chart.is-visible .lp-bar:nth-child(2) { transition-delay: 0.12s; }
.lp-showcase__chart.is-visible .lp-bar:nth-child(3) { transition-delay: 0.19s; }
.lp-showcase__chart.is-visible .lp-bar:nth-child(4) { transition-delay: 0.26s; }
.lp-showcase__chart.is-visible .lp-bar:nth-child(5) { transition-delay: 0.33s; }
.lp-showcase__chart.is-visible .lp-bar:nth-child(6) { transition-delay: 0.4s; }
.lp-chart-mock__labels {
  display: flex;
  gap: 10px;
}
.lp-chart-mock__labels span {
  flex: 1;
  text-align: center;
  font-size: 0.68rem;
  color: var(--navy-soft);
  font-weight: 600;
}

.lp-steps { display: flex; flex-direction: column; gap: 20px; }
.lp-step { display: flex; gap: 16px; }
.lp-step__num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
}
.lp-step h3 { font-size: 1rem; margin-bottom: 4px; }
.lp-step p { font-size: 0.9rem; color: var(--navy-soft); line-height: 1.5; }

/* ---- FAQ (reuses the same visual language as the app's Configure > FAQ) ---- */
.lp-faq .faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  padding: 16px 18px;
}
.faq-item summary {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--green-dark);
  font-weight: 700;
}
.faq-item[open] summary::before { content: "\2212"; }
.faq-item p {
  margin: 10px 0 0;
  padding-left: 1.1em;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--navy-soft);
}

/* ---- Final CTA ---- */
.lp-final-cta {
  text-align: center;
  padding: 64px 24px 80px;
  max-width: 760px;
  margin: 0 auto;
}
.lp-final-cta h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 12px; }
.lp-final-cta p { color: var(--navy-soft); font-size: 1.02rem; margin-bottom: 26px; }

/* ---- Footer ---- */
.lp-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px 40px;
  text-align: center;
}
.lp-footer__flag {
  width: 56px;
  height: 21px;
  margin: 0 auto 12px;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lp-footer__flag span { flex: 1; }
.lp-footer__flag span:nth-child(1) { background: #ff9933; }
.lp-footer__flag span:nth-child(2) { background: #ffffff; }
.lp-footer__flag span:nth-child(3) { background: #138808; }
.lp-footer p {
  font-size: 0.82rem;
  color: var(--navy-soft);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---- Light motion: hero entrance + scroll reveals ----
   Two small, purposeful pieces: the hero content cascades in once on load
   (it's above the fold, so a scroll trigger would never fire), and everything
   further down fades/slides in the first time it scrolls into view. Both are
   fully disabled under prefers-reduced-motion — see the block at the very end
   of this file. */
.lp-fade-cascade > * {
  opacity: 0;
  transform: translateY(14px);
  animation: lp-fade-up 0.7s ease forwards;
}
.lp-fade-cascade > *:nth-child(1) { animation-delay: 0.05s; }
.lp-fade-cascade > *:nth-child(2) { animation-delay: 0.15s; }
.lp-fade-cascade > *:nth-child(3) { animation-delay: 0.25s; }
.lp-fade-cascade > *:nth-child(4) { animation-delay: 0.35s; }
.lp-fade-cascade > *:nth-child(5) { animation-delay: 0.45s; }
@keyframes lp-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.lp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.lp-reveal.is-visible { opacity: 1; transform: translateY(0); }

.lp-features__grid .lp-feature.is-visible:nth-child(1) { transition-delay: 0s; }
.lp-features__grid .lp-feature.is-visible:nth-child(2) { transition-delay: 0.06s; }
.lp-features__grid .lp-feature.is-visible:nth-child(3) { transition-delay: 0.12s; }
.lp-features__grid .lp-feature.is-visible:nth-child(4) { transition-delay: 0.18s; }
.lp-features__grid .lp-feature.is-visible:nth-child(5) { transition-delay: 0.24s; }
.lp-features__grid .lp-feature.is-visible:nth-child(6) { transition-delay: 0.3s; }
.lp-steps .lp-step.is-visible:nth-child(1) { transition-delay: 0s; }
.lp-steps .lp-step.is-visible:nth-child(2) { transition-delay: 0.1s; }
.lp-steps .lp-step.is-visible:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .lp-fade-cascade > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .lp-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .lp-blob, .lp-float { animation: none !important; }
  .lp-bar { transition: none !important; transform: scaleY(1) !important; }
}
