/* MommaBills — Mom's view. Built for a 71-year-old on a phone: big, high-contrast, tappable. */

:root {
    --bg: #eef1f5;
    --card: #ffffff;
    --ink: #14202b;
    --muted: #5c6a78;
    --line: #d7dee6;

    --paid: #0f7a37;
    --paid-bg: #e5f5ec;
    --due: #1f5fbf;
    --due-bg: #e8f0fd;
    --sched: #6a5acd;
    --sched-bg: #eeecfb;
    --over: #c1121f;
    --over-bg: #fdeaec;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.4;
}

.wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 12px 14px 40px;
}

/* ---------- Root landing (non-sensitive) ---------- */
.landing { text-align: center; padding: 60px 16px; }
.landing h1 { font-size: 34px; margin: 0 0 6px; }
.landing p { color: var(--muted); font-size: 20px; margin: 0; }

/* ---------- Month bar ---------- */
.monthbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 4px;
    margin-bottom: 12px;
    background: var(--bg);
}

.monthtitle {
    flex: 1;
    text-align: center;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.arrow {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    line-height: 1;
    text-decoration: none;
    color: var(--ink);
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.arrow:active { background: #e9edf2; }

/* ---------- Summary ---------- */
.summary {
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.summary-line { font-size: 20px; color: var(--muted); }
.summary-line.big { font-size: 26px; font-weight: 800; color: var(--ink); }
.summary-amount { font-size: 22px; font-weight: 700; margin-top: 4px; }

/* ---------- Bill cards ---------- */
.bill {
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.bill.overdue { border-color: var(--over); }

/* Paid = a happy, rewarding green (no longer dimmed) */
.bill.paid {
    background: linear-gradient(180deg, #cdf6dd, #b6edc8);
    border: 3px solid #14a457;
    box-shadow: 0 2px 8px rgba(15,122,55,.25);
}
.bill.paid .bill-name,
.bill.paid .bill-amount { color: #0b5e2a; }

.bill-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bill-icon { font-size: 30px; line-height: 1.1; }

.bill-main { flex: 1; min-width: 0; }

.bill-name { font-size: 23px; font-weight: 800; }
.bill-acct { font-size: 15px; color: var(--muted); margin-top: 2px; }

.bill-amount {
    font-size: 28px;
    font-weight: 800;
    white-space: nowrap;
    margin-left: 6px;
}

/* ---------- Status pill ---------- */
.pill {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 16px;
    font-size: 19px;
    font-weight: 800;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.pill.paid { color: #fff; background: var(--paid); box-shadow: 0 1px 2px rgba(15,122,55,.35); }
.pill.due { color: var(--due); background: var(--due-bg); }
.pill.scheduled { color: var(--sched); background: var(--sched-bg); }
.pill.overdue { color: #fff; background: var(--over); }

.bill-note {
    margin-top: 10px;
    font-size: 16px;
    color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    margin-top: 22px;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
