/* Search landing pages (budget-calendar, bill-calendar, paycheck-budget).
   Builds on site.css: same tokens, glows, phone mockup and type scale as the homepage. */

.lp-hero .wrap { gap: 22px; }
.lp-hero h1 { max-width: 14em; }
.lp-hero .lede { max-width: 36em; }
.lp-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.lp-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.lp-note span { display: inline-flex; align-items: center; gap: 7px; }
.lp-note svg { color: var(--green); }

.lp-section { padding: clamp(72px, 10vw, 130px) 0; border-top: 1px solid var(--border); position: relative; overflow-x: clip; }
.lp-section:first-of-type { border-top: 0; }
.lp-h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; }
.lp-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.lp-head .lede { text-align: center; }

/* Split: phone + copy */
.lp-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.lp-split.flip { grid-template-columns: 1.1fr 0.9fr; }
.lp-split.flip .lp-visual { order: 2; }
.lp-visual { position: relative; display: flex; justify-content: center; }
.lp-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.lp-copy p { color: var(--body); font-size: 17.5px; line-height: 1.7; max-width: 34em; }
.lp-copy strong { color: var(--text); }
.lp-list { list-style: none; display: grid; gap: 14px; margin-top: 4px; }
.lp-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--body); font-size: 16.5px; line-height: 1.6; }
.lp-list li svg { margin-top: 3px; color: var(--green); }
.lp-list b { color: var(--text); font-weight: 700; }

.glow { position: absolute; left: 50%; top: 50%; width: 130%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(34,197,94,0.32) 0%, rgba(34,197,94,0.07) 35%, transparent 62%); filter: blur(10px); pointer-events: none; }
.phone {
  --w: clamp(230px, 24vw, 290px);
  position: relative; width: var(--w); flex-shrink: 0;
  aspect-ratio: 590 / 1283;
  border-radius: calc(var(--w) * 0.165);
  padding: calc(var(--w) * 0.035);
  box-sizing: content-box;
  background: linear-gradient(145deg, #3a3f3d 0%, #151817 18%, #0b0d0c 55%, #232725 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 0 0 0 calc(var(--w) * 0.012) #050606,
    0 0 0 1px rgba(0,0,0,0.6),
    0 40px 80px -24px rgba(0,0,0,0.85),
    0 90px 120px -60px rgba(34,197,94,0.35);
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * 0.135); overflow: hidden; background: #000; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 18px;
  background: rgba(18,23,22,0.78);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.7);
  white-space: nowrap;
}
.chip-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--green-a15); color: var(--green-2); flex-shrink: 0; }
.chip-icon.red { background: rgba(248,113,113,0.14); color: var(--red); }
.chip small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chip strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.chip strong.red { color: var(--red); }
.chip-a { left: -14%; top: 22%; }
.chip-b { right: -14%; bottom: 18%; }

/* Example month: dated rows with a running balance */
.ledger { max-width: 760px; margin: 0 auto; border: 1px solid var(--border); border-radius: 24px; background: var(--card); overflow: hidden; }
.ledger-head, .ledger-row { display: grid; grid-template-columns: 92px 1fr 110px 120px; align-items: center; gap: 12px; padding: 14px 22px; font-variant-numeric: tabular-nums; }
.ledger-head { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.ledger-row + .ledger-row { border-top: 1px solid var(--border); }
.ledger-row { font-size: 15.5px; color: var(--body); }
.ledger-row .d { color: var(--muted); font-weight: 600; }
.ledger-row .n { color: var(--text); font-weight: 600; }
.ledger-row .amt { text-align: right; font-weight: 700; }
.ledger-row .amt.in { color: var(--green); }
.ledger-row .amt.out { color: var(--text); }
.ledger-row .bal { text-align: right; font-weight: 800; color: var(--text); }
.ledger-row .bal.low { color: var(--red); }
.ledger-row.flag { background: rgba(248,113,113,0.06); }
.ledger-head span:nth-child(3), .ledger-head span:nth-child(4) { text-align: right; }
.ledger-cap { max-width: 760px; margin: 16px auto 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Three steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-step { border-radius: 24px; padding: 28px; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.lp-step .n { font-size: 13px; font-weight: 700; color: var(--green); letter-spacing: 0.1em; }
.lp-step h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.lp-step p { color: var(--body); font-size: 15.5px; line-height: 1.65; }

/* FAQ (same look as support.html) */
.lp-faq { max-width: 820px; margin: 0 auto; border: 1px solid var(--border); border-radius: 22px; background: var(--card); overflow: hidden; }
.lp-faq details + details { border-top: 1px solid var(--border); }
.lp-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 22px; cursor: pointer; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; transition: background .2s; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary:hover { background: rgba(255,255,255,0.025); }
.lp-faq summary .chev { flex-shrink: 0; color: var(--muted); transition: transform .35s var(--ease), color .2s; }
.lp-faq details[open] summary .chev { transform: rotate(180deg); color: var(--green-2); }
.lp-faq .faq-body { padding: 0 22px 22px; color: var(--body); font-size: 16px; line-height: 1.7; }
.lp-faq .faq-body a { color: var(--green-2); text-underline-offset: 3px; }

/* Related pages */
.lp-related { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lp-related a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--body); background: rgba(255,255,255,0.03); border: 1px solid var(--border); transition: color .2s, border-color .2s, background .2s; }
.lp-related a:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,0.06); }
.lp-related svg { color: var(--green); }

/* Green CTA panel (matches the homepage's final panel) */
.lp-cta { margin: 0 auto; max-width: 1000px; border-radius: 32px; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); background: var(--green); color: #03140a; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; box-shadow: 0 40px 100px -40px rgba(34,197,94,0.7); }
.lp-cta h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.lp-cta p { font-size: 17.5px; max-width: 32em; color: rgba(3,20,10,0.78); font-weight: 500; }
.lp-cta .btn { background: #050706; color: #f4f7f5; box-shadow: none; }
.lp-cta .btn:hover { background: #111614; }
.lp-cta small { font-size: 13.5px; color: rgba(3,20,10,0.7); font-weight: 600; }

@media (max-width: 900px) {
  .lp-split, .lp-split.flip { grid-template-columns: 1fr; }
  .lp-split.flip .lp-visual { order: 0; }
  .lp-copy { align-items: center; text-align: center; }
  .lp-list { text-align: left; }
  .lp-steps { grid-template-columns: 1fr; }
  .chip-a { left: -6%; }
  .chip-b { right: -6%; }
}
@media (max-width: 600px) {
  .ledger-head, .ledger-row { grid-template-columns: 50px 1fr 70px 76px; gap: 8px; padding: 12px 14px; font-size: 13.5px; }
  .ledger-head { font-size: 10.5px; letter-spacing: 0.06em; }
  .chip { padding: 10px 12px 10px 10px; gap: 10px; }
  .chip strong { font-size: 16px; }
  .chip-icon { width: 32px; height: 32px; }
  .chip-a { left: -4%; top: 14%; }
  .chip-b { right: -4%; bottom: 10%; }
  .lp-ctas .btn { width: 100%; }
}

/* ── Comparison pages ───────────────────────────────── */
.vs-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs-pick { border-radius: 24px; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--border); background: var(--card); display: flex; flex-direction: column; gap: 14px; }
.vs-pick.us { border-color: rgba(34,197,94,0.35); background: radial-gradient(ellipse 90% 60% at 100% 0%, rgba(34,197,94,0.14), transparent 60%), linear-gradient(180deg, #0f1612, var(--card)); }
.vs-pick h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.vs-pick.us h3 { color: var(--green-2); }
.vs-pick ul { list-style: none; display: grid; gap: 12px; }
.vs-pick li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--body); font-size: 16px; line-height: 1.6; }
.vs-pick li svg { margin-top: 3px; color: var(--muted); }
.vs-pick.us li svg { color: var(--green); }

.vs-table { max-width: 940px; margin: 0 auto; border: 1px solid var(--border); border-radius: 24px; background: var(--card); overflow: hidden; }
.vs-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.vs-table th, .vs-table td { padding: 16px 20px; text-align: left; vertical-align: top; line-height: 1.55; }
.vs-table thead th { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); }
.vs-table thead th.us { color: var(--green-2); }
.vs-table tbody tr + tr td, .vs-table tbody tr + tr th { border-top: 1px solid var(--border); }
.vs-table tbody th { color: var(--text); font-weight: 600; width: 30%; }
.vs-table td { color: var(--body); width: 35%; }
.vs-table td.us { color: var(--text); background: rgba(34,197,94,0.04); }
.vs-src { max-width: 940px; margin: 16px auto 0; text-align: center; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.vs-src a { color: var(--body); text-underline-offset: 3px; }

@media (max-width: 760px) {
  .vs-picks { grid-template-columns: 1fr; }
  .vs-table th, .vs-table td { padding: 12px 12px; font-size: 14px; }
  .vs-table thead th { font-size: 10.5px; letter-spacing: 0.06em; }
  .vs-table tbody th { width: 28%; }
}
