/* Landing-page styles — extends style.css (loaded after it). */

.landing-header nav.header-right { gap: 1.6rem; }
.landing-header nav a { color: #44586c; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.landing-header nav a:hover { color: #22303d; }

/* Anchor-style buttons matching button.primary */
.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  background: var(--card-edge);
}
.landing-header nav a.btn { color: var(--text); }
.btn.primary { background: var(--accent-dark); color: #241a03; font-weight: 800; }
.btn.primary:hover { background: var(--accent); color: #241a03; }
.btn.ghost { background: transparent; border: 1px solid var(--card-edge); color: var(--muted); }
.btn.ghost:hover { border-color: var(--accent-dark); color: var(--text); }
.btn.big { padding: 0.7rem 1.4rem; font-size: 1rem; }

.landing section { margin: 3.5rem 0; }

/* Birds in the distance — pen-and-ink strokes drifting across the sky */
.birds {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 240px;
  overflow: hidden;
  pointer-events: none;
}
.bird-flock { position: absolute; left: 0; width: 120px; }
.bird-flock .bird { position: absolute; }
.bird-flock.f1 {
  top: 88px;
  opacity: 0.65;
  animation: fly 48s linear infinite, bob 7s ease-in-out infinite alternate;
}
.bird-flock.f2 {
  top: 150px;
  opacity: 0.4; /* smaller + fainter = further away */
  animation: fly 70s linear infinite, bob 9s ease-in-out infinite alternate;
  animation-delay: -35s, -3s;
}
@keyframes fly {
  from { transform: translateX(-140px); }
  to { transform: translateX(calc(100vw + 40px)); }
}
@keyframes bob {
  from { margin-top: 0; }
  to { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  /* park the flocks; the SMIL wing-flap is sub-pixel and harmless */
  .bird-flock { animation: none; left: 12%; }
  .bird-flock.f2 { left: 58%; }
}

/* Hero — under a morning sun */
.hero { text-align: center; margin-top: 3rem; position: relative; }
.hero::before {
  content: "";
  position: absolute;
  top: -3.5rem;
  right: 2%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3b0 20%, #ffdf5c 60%, #ffd23e 100%);
  box-shadow: 0 0 70px 35px rgba(255, 223, 92, 0.55);
  z-index: -1;
}
.hero-title {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 800;
  color: var(--text);
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 1.6rem;
}
.hero-ctas { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.2rem; }

/* Payout-ledger hero visual */
.ledger {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.9;
}
.ledger-toggle {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
  font-family: "Nunito", system-ui, sans-serif;
}
.ledger-toggle label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.86rem;
}
.ledger-toggle input { accent-color: var(--accent-dark); margin: 0; }
.ledger-toggle label:has(input:checked) { color: var(--text); font-weight: 700; }

/* radio switches the example; without :has() support the forgiven view stays */
.ledger-view.owed { display: none; }
.ledger:has(input[value="owed"]:checked) .ledger-view.forgiven { display: none; }
.ledger:has(input[value="owed"]:checked) .ledger-view.owed { display: block; }

.ledger-row { display: flex; gap: 0.9rem; white-space: nowrap; }
.ledger-day { color: var(--muted); min-width: 3.2rem; }
.ledger-state { min-width: 4.6rem; color: var(--muted); }
.ledger-arrow { color: var(--card-edge); }
.ledger-paid { color: var(--good); }
.ledger-row.skipped { color: var(--muted); }
.ledger-row.skipped .ledger-state { color: var(--warn); }
.ledger-note { color: var(--muted); font-style: normal; }

/* Sections */
.landing h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; margin: 0 0 0.4rem; }
.landing .card p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.lead { color: var(--muted); line-height: 1.6; max-width: 680px; }

/* How-it-works steps */
.steps { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 999px;
  background: var(--accent); color: #3a2e10;
  font-size: 0.85rem; margin-right: 0.35rem;
}

/* FAQ */
#faq details {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 0.6rem;
}
#faq summary { cursor: pointer; font-weight: 800; font-size: 0.95rem; font-family: "Baloo 2", "Nunito", system-ui, sans-serif; }
#faq summary:hover { color: var(--accent); }
#faq details p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0.6rem 0 0.2rem; }

.closing { text-align: center; }

/* Sunflower field flowing into the grass-green footer */
.field { margin-top: 3.5rem; line-height: 0; }
.field svg { display: block; }

footer .footer-links { display: inline-block; margin-top: 0.4rem; }
