/* ======================================================================
   Marketing landing page (/). Self-contained — does NOT depend on the app's
   style.css. Brand palette is built up from the in-app colors (navy #2a4c6e,
   green #2a6d3c) into a fuller landing-page design system.
   ====================================================================== */

:root {
  --ink:        #15233a;   /* primary text */
  --ink-soft:   #45526a;   /* secondary text */
  --muted:      #6b7280;   /* tertiary / captions */
  --navy:       #1f3d5a;
  --navy-deep:  #14283f;
  --green:      #2a6d3c;
  --green-700:  #235d33;
  --green-300:  #7fc593;
  --line:       #e6e9ef;
  --surface:    #ffffff;
  --surface-2:  #f7f9fc;
  --page:       #f4f6fa;
  --radius:     16px;
  --radius-sm:  10px;
  --shadow-sm:  0 1px 2px rgba(16, 32, 56, 0.06), 0 1px 3px rgba(16, 32, 56, 0.04);
  --shadow-md:  0 6px 20px rgba(16, 32, 56, 0.08), 0 2px 6px rgba(16, 32, 56, 0.05);
  --shadow-lg:  0 30px 60px -20px rgba(13, 28, 48, 0.45), 0 12px 28px -12px rgba(13, 28, 48, 0.35);
  --maxw:       1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.55;
  overflow-x: hidden; /* belt-and-suspenders against the floating mockup badge */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.lp-container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

/* ---------- Buttons ----------------------------------------------------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.lp-btn:active { transform: translateY(1px); }
.lp-btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(42, 109, 60, 0.55);
}
.lp-btn--primary:hover { background: var(--green-700); box-shadow: 0 12px 24px -8px rgba(42, 109, 60, 0.6); }
.lp-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.lp-btn--ghost:hover { border-color: #c9d2e0; background: #fff; }
.lp-btn--on-dark {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.lp-btn--on-dark:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.6); }
.lp-btn--lg { font-size: 1.06rem; padding: 1rem 1.7rem; }

/* ---------- Header ------------------------------------------------------ */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.lp-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 64px;
}
.lp-brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.lp-brand img { height: 46px; width: auto; }
.lp-nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.lp-nav__links { display: flex; gap: 1.6rem; }
.lp-nav__links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.96rem;
}
.lp-nav__links a:hover { color: var(--ink); }
.lp-nav__cta { display: flex; align-items: center; gap: 0.6rem; }
.lp-nav__cta .lp-btn { padding: 0.6rem 1.05rem; font-size: 0.95rem; }
@media (max-width: 820px) {
  .lp-nav__links { display: none; }
}
@media (max-width: 520px) {
  /* Tighten the bar to logo + one CTA so nothing clips on small phones. */
  .lp-nav__signin { display: none; }
}

/* ---------- Hero -------------------------------------------------------- */
.lp-hero {
  position: relative;
  overflow: hidden;
  color: #eaf1fb;
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(42,109,60,0.55) 0%, rgba(42,109,60,0) 45%),
    radial-gradient(90% 90% at 0% 110%, rgba(74,134,200,0.35) 0%, rgba(74,134,200,0) 50%),
    linear-gradient(155deg, #16324f 0%, #1f3d5a 52%, #14283f 100%);
}
.lp-hero::after {
  /* subtle dot grid */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  pointer-events: none;
}
.lp-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  /* Only set vertical padding — the horizontal padding comes from .lp-container
     on the same element; a `padding: … 0 …` shorthand here would zero it out and
     push the hero edge-to-edge. */
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem);
}
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-300);
  background: rgba(127,197,147,0.12);
  border: 1px solid rgba(127,197,147,0.25);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}
.lp-hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 1.2rem 0 0;
  color: #fff;
  font-weight: 800;
}
.lp-hero h1 .accent { color: var(--green-300); }
.lp-hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: #c2d2e6;
  margin: 1.1rem 0 0;
  max-width: 34ch;
}
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.lp-hero__trust {
  display: flex; flex-wrap: wrap; gap: 1.1rem;
  margin-top: 1.6rem; font-size: 0.9rem; color: #9fb4cf;
}
.lp-hero__trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.lp-hero__trust svg { color: var(--green-300); flex: none; }

@media (max-width: 860px) {
  .lp-hero__grid { grid-template-columns: 1fr; padding-bottom: clamp(3rem, 9vw, 5rem); }
  .lp-hero__sub { max-width: none; }
}
@media (max-width: 520px) {
  /* Stack the hero CTAs full-width so long labels never clip on phones. */
  .lp-hero__actions { flex-direction: column; align-items: stretch; }
  .lp-hero__actions .lp-btn { width: 100%; }
}

/* ---------- App mockup (hero visual) ------------------------------------ */
.lp-mock {
  position: relative;
  justify-self: center;
  width: min(330px, 82vw);
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(160deg, #3a5d80, #14283f) border-box;
  border: 1px solid transparent;
  border-radius: 34px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.lp-mock__screen {
  background: var(--surface-2);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.lp-mock__bar {
  background: #2a4c6e;
  color: #fff;
  padding: 0.7rem 0.95rem;
  display: flex; align-items: center; justify-content: space-between;
}
.lp-mock__bar b { font-size: 0.9rem; font-weight: 700; }
.lp-mock__bar small { font-size: 0.72rem; opacity: 0.8; }
.lp-mock__body { padding: 0.9rem; }
.lp-rcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.lp-rcard h4 {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6573;
}
.lp-rcard .lp-rcard__meta { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.7rem; }
.lp-line { display: flex; align-items: center; justify-content: space-between; font-size: 0.86rem; padding: 0.28rem 0; }
.lp-line span:first-child { color: #41506a; }
.lp-line .amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.lp-line.in .amt  { color: var(--green); }
.lp-line.out .amt { color: #b6342a; }
.lp-sub {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: #6b7686; margin: 0.7rem 0 0.2rem;
}
.lp-sub .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-300); flex: none; }
.lp-sub.out .dot { background: #e09a92; }
.lp-bal {
  display: flex; align-items: center; justify-content: space-between;
  background: #f2f7f3; border: 1px solid #d9eadf; border-radius: 10px;
  padding: 0.55rem 0.7rem; margin-top: 0.8rem;
}
.lp-bal span:first-child { font-size: 0.78rem; color: #2a6d3c; font-weight: 600; }
.lp-bal .amt { font-weight: 800; color: #1f5130; font-variant-numeric: tabular-nums; }
.lp-mock__float {
  position: absolute;
  right: -16px; bottom: 26px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 0.55rem 0.75rem;
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.8rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line);
}
.lp-mock__float .ico {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: grid; place-items: center; color: #fff; background: var(--green);
}
@media (max-width: 520px) { .lp-mock__float { right: 4px; } }
@media (max-width: 380px) { .lp-mock__float { display: none; } }

/* ---------- Section scaffolding ----------------------------------------- */
.lp-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.lp-section--tint { background: var(--surface-2); border-block: 1px solid var(--line); }
.lp-section__head { max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.lp-kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green);
}
.lp-section__head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.12; letter-spacing: -0.02em; margin: 0.6rem 0 0; color: var(--ink); font-weight: 800;
}
.lp-section__head p { font-size: 1.08rem; color: var(--ink-soft); margin: 0.8rem 0 0; }

/* ---------- Trust strip ------------------------------------------------- */
.lp-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lp-strip__item { background: #fff; padding: 1.4rem 1.2rem; text-align: center; }
.lp-strip__item b { display: block; font-size: 1.5rem; color: var(--navy); letter-spacing: -0.02em; }
.lp-strip__item span { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 640px) {
  .lp-strip { grid-template-columns: 1fr; }
}

/* ---------- Features grid ----------------------------------------------- */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .lp-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lp-features { grid-template-columns: 1fr; } }
.lp-feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.lp-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d7deea; }
.lp-feature__ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1rem;
  color: var(--green); background: rgba(42,109,60,0.10);
}
.lp-feature h3 { margin: 0 0 0.4rem; font-size: 1.12rem; letter-spacing: -0.01em; }
.lp-feature p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- How it works ------------------------------------------------ */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
@media (max-width: 760px) { .lp-steps { grid-template-columns: 1fr; gap: 1.1rem; } }
.lp-step { position: relative; padding-top: 0.5rem; }
.lp-step__num {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.1rem;
  margin-bottom: 0.9rem;
}
.lp-step h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.lp-step p { margin: 0; color: var(--ink-soft); }

/* ---------- Values / trust ---------------------------------------------- */
.lp-values { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 820px) { .lp-values { grid-template-columns: 1fr; } }
.lp-values ul { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.lp-values li { display: flex; gap: 0.7rem; align-items: flex-start; }
.lp-values li svg { color: var(--green); flex: none; margin-top: 2px; }
.lp-values li b { display: block; }
.lp-values li span { color: var(--ink-soft); }
.lp-values__card {
  background: linear-gradient(155deg, #1f3d5a, #14283f);
  color: #dbe7f5;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-md);
}
.lp-values__card .q { font-size: 1.18rem; line-height: 1.5; color: #fff; }
.lp-values__card .who { margin-top: 1rem; font-size: 0.9rem; color: #9fb4cf; }

/* ---------- Pricing ----------------------------------------------------- */
.lp-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 760px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 640px) { .lp-pricing { grid-template-columns: 1fr; } }
.lp-plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.lp-plan--featured { border-color: #bfe0c9; box-shadow: var(--shadow-md); }
.lp-plan__badge {
  align-self: flex-start;
  background: rgba(42,109,60,0.10);
  color: var(--green-700);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.lp-plan h3 {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6573;
}
.lp-plan__price { display: flex; align-items: baseline; gap: 0.3rem; margin-top: 0.4rem; }
.lp-plan__price span:first-child { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.lp-plan__price .per { color: var(--muted); font-weight: 600; }
.lp-plan__note { color: var(--ink-soft); font-size: 0.92rem; margin: 0.3rem 0 1.1rem; }
.lp-plan .lp-btn { width: 100%; }
.lp-plan__list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.lp-plan__list li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); font-size: 0.95rem; }
.lp-plan__list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.lp-pricing__anchor { text-align: center; color: var(--ink-soft); margin: 1.9rem auto 0; max-width: 54ch; font-size: 0.98rem; }

/* ---------- CTA band ---------------------------------------------------- */
.lp-cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(100% 140% at 100% 0%, rgba(42,109,60,0.5), rgba(42,109,60,0) 55%),
    linear-gradient(155deg, #1f3d5a, #14283f);
  color: #fff;
  border-radius: clamp(18px, 3vw, 28px);
  padding: clamp(2.4rem, 6vw, 4rem);
  text-align: center;
}
.lp-cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0; letter-spacing: -0.02em; font-weight: 800; }
.lp-cta p { color: #c2d2e6; margin: 0.8rem auto 0; max-width: 46ch; font-size: 1.08rem; }
.lp-cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

/* ---------- Footer ------------------------------------------------------ */
.lp-footer { padding: 3rem 0 3.5rem; color: var(--ink-soft); }
.lp-footer__top { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.lp-footer__brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.lp-footer__brand img { height: 28px; }
.lp-footer__links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.lp-footer__links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.lp-footer__links a:hover { color: var(--ink); }
.lp-footer__legal { margin-top: 1.6rem; font-size: 0.82rem; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 1.4rem; }

/* ---------- Legal pages (/privacy, /terms) ------------------------------ */
.legal { padding: clamp(2rem, 6vw, 4rem) 0 1.5rem; }
.legal__inner { max-width: 760px; }
.legal__back { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.92rem; margin-bottom: 1.6rem; }
.legal__back:hover { color: var(--ink); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 0.4rem; font-weight: 800; }
.legal__updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 2rem; }
.legal h2 { font-size: 1.18rem; font-weight: 700; margin: 2.4rem 0 0.6rem; letter-spacing: -0.01em; scroll-margin-top: 5rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p { margin: 0.7rem 0; }
.legal ul { margin: 0.7rem 0; padding-left: 1.2rem; }
.legal li { margin: 0.45rem 0; }
.legal a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--green); }
.legal strong { color: var(--ink); font-weight: 650; }

/* ---------- Entrance animation ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(14px); animation: lp-rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .06s; }
.reveal.d2 { animation-delay: .12s; }
.reveal.d3 { animation-delay: .18s; }
.reveal.d4 { animation-delay: .24s; }
@keyframes lp-rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .lp-feature:hover, .lp-btn:active { transform: none; }
}

/* ---------- Focus visibility -------------------------------------------- */
a:focus-visible, button:focus-visible, .lp-btn:focus-visible {
  outline: 3px solid #7fc593;
  outline-offset: 2px;
  border-radius: 8px;
}
