/* Ledgerly — page sections (prefix lg-). Tokens only; built from the Senna DNA. */

/* ── Shared: payment status chips ── */
.lg-st { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 3px 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--text); white-space: nowrap; }
.lg-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; }
.lg-st--paid { background: var(--success-soft); }
.lg-st--paid::before { background: var(--success); }
.lg-st--late { background: var(--danger-soft); }
.lg-st--late::before { background: var(--danger); }
.lg-st--sent { background: var(--accent-soft); }
.lg-st--sent::before { background: var(--accent); }

/* ── Hero: centred head over stats · owed board · quote ── */
.lg-hero { padding-top: 80px; padding-bottom: 40px; }
.lg-hero__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; margin-bottom: 60px; }
.lg-hero__copy { flex: 0 1 720px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 720px; }
.lg-hero__sub { max-width: 520px; font-size: 18px; }
.lg-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow-1); font-size: 13px; font-weight: 400; color: var(--text); }
.lg-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.lg-proof { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 32px; padding-bottom: 6px; }
.lg-proof li { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 15px; }
.lg-proof b { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1.1; letter-spacing: -.04em; color: var(--text); white-space: nowrap; }

.lg-hero__row { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
.lg-hero__art { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r); padding: 48px 48px 0; display: flex; justify-content: center; align-items: flex-end; min-height: 420px; }
.lg-hero__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.lg-board { width: 100%; max-width: 640px; border-radius: var(--r-btn) var(--r-btn) 0 0; overflow: hidden; }
.lg-board .mock__bar { border-radius: 0; }
.lg-board__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.lg-board__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--text-2); font-size: 13px; }
.lg-board__top b { font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: -.03em; color: var(--text); line-height: 1; }
.lg-inv { display: flex; flex-direction: column; gap: 6px; }
.lg-inv li { display: grid; grid-template-columns: 1fr auto 112px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-1); font-size: 14px; }
.lg-inv li .lg-st { justify-self: end; }
.lg-inv__who { color: var(--text); font-weight: 400; line-height: 1.3; min-width: 0; }
.lg-inv__who small { display: block; color: var(--muted); font-size: 12px; font-weight: 300; }
.lg-amt { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.lg-hero__quote { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 40px 36px; border-radius: var(--r); background: var(--ink-bg); }
.lg-hero__quote blockquote { font-family: var(--font-display); font-size: 24px; line-height: 1.4; letter-spacing: -.01em; color: var(--on-dark); }
.lg-person { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; color: var(--on-dark-2); }
.lg-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.lg-person b { display: block; color: var(--on-dark); font-weight: 500; font-size: 16px; }

/* ── Logo ticker ── */
.lg-logos { padding: 40px 0 20px; }
.lg-logos__line { max-width: 520px; margin: 0 auto 8px; padding-inline: var(--pad-x); text-align: center; font-size: 15px; }

/* ── Pain: copy + stack of unsent drafts ── */
.lg-pain__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.lg-pain__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 520px; }
.lg-pain__facts { display: flex; gap: 40px; margin-top: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.lg-pain__facts li { display: flex; flex-direction: column; gap: 4px; max-width: 190px; font-size: 15px; }
.lg-pain__facts b { font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: -.04em; color: var(--text); }
.lg-drafts { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: var(--r-xl); background: var(--surface-2); }
.lg-drafts__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--text); font-weight: 500; padding: 0 4px 6px; }
.lg-draft { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--r-btn); background: var(--surface); box-shadow: var(--shadow-1); font-size: 14px; }
.lg-draft:nth-child(3) { margin-left: 24px; }
.lg-draft:nth-child(4) { margin-left: 48px; }
.lg-draft__to { color: var(--muted); font-size: 12px; }
.lg-draft__txt { color: var(--text); text-decoration: line-through; text-decoration-color: var(--danger); text-decoration-thickness: 1.5px; }
.lg-draft__meta { align-self: flex-end; font-size: 12px; color: var(--muted); }

/* ── Chase timeline on a gradient stage ── */
.lg-chase__stage { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); padding: 72px 48px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.lg-chase__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.lg-track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; width: 100%; max-width: 1080px; }
.lg-track::before { content: ""; position: absolute; left: 10%; right: 10%; top: 9px; border-top: 1.5px dashed rgba(35, 31, 35, .25); z-index: 0; }
.lg-track li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.lg-track li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.lg-track li.is-now::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.lg-track li.is-paid::before { background: var(--success); box-shadow: 0 0 0 5px var(--success-soft); }
.lg-track__day { padding: 2px 8px; border-radius: var(--r-xs); background: var(--surface); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.lg-track__what { font-size: 15px; font-weight: 400; color: var(--text); }
.lg-mail { width: 100%; max-width: 520px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.lg-mail__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.lg-mail__from { font-size: 13px; color: var(--muted); }
.lg-mail__subj { font-size: 16px; font-weight: 500; color: var(--text); }
.lg-mail__txt { font-size: 14px; color: var(--text-2); }
.lg-mail__pay { align-self: flex-start; margin-top: 6px; padding: 8px 16px; border-radius: var(--r-sm); background: var(--ink-bg); color: var(--on-dark); font-size: 14px; font-weight: 400; }

/* ── Who owes what: bento ── */
.lg-owed__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: var(--head-gap); }
.lg-owed__head .sec-head { margin-bottom: 0; }
.lg-owed__lead { max-width: 400px; }
.lg-bento { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.lg-bento__big { grid-row: span 2; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 56px 48px 40px; border-radius: var(--r); }
.lg-bento__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.lg-bento__card { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 32px; border-radius: var(--r); background: var(--surface); }
.lg-bento__cap h3 { font-family: var(--font); font-size: 20px; font-weight: 400; line-height: 1.4; letter-spacing: -.01em; margin-bottom: 6px; }
.lg-bento__cap p { font-size: 15px; }
.lg-bento__big .lg-bento__cap p { color: var(--text); font-weight: 400; }
.lg-aging { width: 100%; max-width: 560px; margin-inline: auto; padding: 24px 24px 20px; }
.lg-aging__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--text-2); margin-bottom: 20px; }
.lg-aging__top b { font-family: var(--font-display); font-size: 28px; font-weight: 400; letter-spacing: -.03em; color: var(--text); line-height: 1; }
.lg-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; height: 220px; }
.lg-bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; text-align: center; }
.lg-bar i { display: block; height: var(--h); border-radius: var(--r-sm) var(--r-sm) 2px 2px; background: var(--accent); }
.lg-bar--late i { background: var(--danger); }
.lg-bar span { order: -1; font-size: 13px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.lg-bar small { font-size: 12px; color: var(--muted); }
.lg-habit, .lg-forecast { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-btn); background: var(--surface-1); }
.lg-habit__who, .lg-forecast__lbl { font-size: 13px; color: var(--muted); }
.lg-habit__num, .lg-forecast__num { font-family: var(--font-display); font-size: 36px; font-weight: 400; letter-spacing: -.04em; line-height: 1.1; color: var(--text); }
.lg-habit__lbl { font-size: 14px; color: var(--text-2); }
.lg-dots { display: flex; gap: 6px; margin-top: 8px; }
.lg-dots i { width: 22px; height: 8px; border-radius: 4px; background: var(--success); }
.lg-dots i.is-late { background: var(--danger); }
.lg-meter { display: block; height: 8px; margin: 8px 0 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.lg-meter i { display: block; width: var(--w); height: 100%; border-radius: 4px; background: var(--accent); }

/* ── Set-up steps: small mock-ups ── */
.lg-import, .lg-tone { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 280px; }
.lg-import span, .lg-tone span { padding: 8px 14px; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-1); font-size: 14px; color: var(--text); }
.lg-import span.is-on, .lg-tone span.is-on { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-1); }
.lg-tone { gap: 4px; padding: 4px; border-radius: var(--r-btn); background: var(--surface-2); }
.lg-tone span { box-shadow: none; background: transparent; }
.lg-tone span.is-on { background: var(--surface); }
.lg-sent { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-btn); background: var(--surface); box-shadow: var(--shadow-1); font-size: 14px; color: var(--text); }
.lg-sent small { display: block; font-size: 12px; color: var(--muted); }

/* ── Photo story with live payment chips ── */
.lg-story__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: center; }
.lg-story__photo { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 11; }
.lg-story__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lg-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-btn); background: var(--surface); box-shadow: var(--shadow-2); font-size: 14px; color: var(--text); white-space: nowrap; }
.lg-chip--a { left: 24px; bottom: 88px; }
.lg-chip--b { left: 24px; bottom: 32px; }
.lg-story__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 500px; }

/* ── Pricing head (toggle sits under it) ── */
.lg-price-head { margin-bottom: 28px; }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .lg-hero__top { flex-direction: column; align-items: flex-start; gap: 40px; }
  .lg-proof { width: 100%; max-width: 620px; }
  .lg-hero__row { grid-template-columns: 1fr; }
}
@media (max-width: 991px) {
  .lg-hero { padding-top: 60px; }
  .lg-pain__grid, .lg-story__grid { grid-template-columns: 1fr; gap: 48px; }
  .lg-story__copy { order: -1; }
  .lg-owed__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .lg-bento { grid-template-columns: 1fr 1fr; }
  .lg-bento__big { grid-column: 1 / -1; grid-row: auto; }
  .lg-track { grid-template-columns: 1fr; gap: 14px; max-width: 320px; }
  .lg-track::before { left: 8px; right: auto; top: 8px; bottom: 8px; border-top: 0; border-left: 1.5px dashed rgba(35, 31, 35, .25); }
  .lg-track li { flex-direction: row; text-align: left; }
  .lg-chase__stage { padding: 48px 24px; gap: 36px; }
}
@media (max-width: 640px) {
  .lg-proof { gap: 16px; }
  .lg-proof li { font-size: 13px; }
  .lg-proof b { font-size: 28px; }
  .lg-hero__art { min-height: 0; padding: 28px 12px 0; }
  .lg-hero__top { margin-bottom: 40px; }
  .lg-inv li { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px; }
  .lg-inv li .lg-st { grid-column: 1 / -1; justify-self: start; }
  .lg-board__body { padding: 14px 14px 16px; }
  .lg-hero__quote { padding: 28px 24px; }
  .lg-hero__quote blockquote { font-size: 22px; }
  .lg-drafts { padding: 20px 16px; }
  .lg-draft:nth-child(3) { margin-left: 12px; }
  .lg-draft:nth-child(4) { margin-left: 24px; }
  .lg-pain__facts { gap: 24px; }
  .lg-bento { grid-template-columns: 1fr; }
  .lg-bento__big { padding: 32px 16px 28px; }
  .lg-aging { padding: 18px 14px 14px; }
  .lg-bars { height: 180px; gap: 8px; }
  .lg-bar span { font-size: 12px; }
  .lg-bar small { font-size: 11px; }
  .lg-story__photo { aspect-ratio: 4 / 5; }
  .lg-story__photo > img { object-position: 55% 50%; }
  .lg-chip { left: 12px; font-size: 13px; padding: 8px 12px; }
  .lg-chip--a { bottom: 72px; }
  .lg-chip--b { bottom: 20px; }
}

/* ── Phone: compare rows stack (before above after), step visuals shorter ── */
@media (max-width: 680px) {
  .lg-steps .v-steps__vis { min-height: 130px; padding-top: 12px; }
}
@media (max-width: 560px) {
  .lg-compare .v-old__head { display: none; }
  .lg-compare .v-old__row { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
  .lg-compare .v-old__row:nth-child(2) { border-top: 0; }
  .lg-compare .v-old__row > .ic { display: none; }
  .lg-compare .v-old__row > :first-child { flex-direction: row-reverse; justify-content: flex-end; text-align: left; }
}
/* Tablet: keep the 3 steps and 3 plans as one row (no orphan card) */
@media (min-width: 681px) and (max-width: 991px) {
  .lg-steps, .lg-plans { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .lg-plans .v-plan { padding: 22px 18px; }
}
.lg-tone { flex-wrap: nowrap; }
@media (min-width: 681px) and (max-width: 991px) { .lg-tone span { padding: 6px 9px; font-size: 13px; } }
