/* Naimo - Main stylesheet
   Mobile-first: most users will access via phone on data,
   so the CSS is intentionally lightweight (no framework/CDN
   dependency, no webfonts to download). */

:root {
    --color-primary: #0F7B6C;      /* deep teal-green: money/growth without being a cliché naira-green */
    --color-primary-dark: #0A5C51;
    --color-accent: #F2A33C;       /* warm amber accent for CTAs/highlights */
    --color-bg: #FAFAF8;
    --color-surface: #FFFFFF;
    --color-text: #1A1D1E;
    --color-text-muted: #6B7280;
    --color-border: #E5E7EB;
    --color-success-bg: #E6F4EA;
    --color-success-text: #1E7B34;
    --color-error-bg: #FDEDED;
    --color-error-text: #C0392B;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Header ---- */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    max-width: 480px;
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-primary);
    text-decoration: none;
}

.main-nav a {
    color: var(--color-text);
    text-decoration: none;
    margin-left: 16px;
    font-size: 0.95rem;
}

.btn-nav {
    background: var(--color-primary);
    color: #fff !important;
    padding: 8px 14px;
    border-radius: var(--radius);
}

/* ---- Layout ---- */
main.container {
    padding-top: 24px;
    padding-bottom: 60px;
    min-height: 70vh;
}

/* ---- Cards ---- */
.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

/* ---- Typography ---- */
h1 { font-size: 1.6rem; margin: 0 0 8px; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
p.subtitle { color: var(--color-text-muted); margin-top: 0; }

/* ---- Hero (landing page) ---- */
.hero {
    text-align: center;
    padding: 30px 0 10px;
}
.hero h1 {
    font-size: 1.9rem;
    line-height: 1.25;
}
.hero .balance-preview {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 6px 0;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-block { margin-bottom: 12px; }

/* ---- Forms ---- */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: #fff;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}
.form-hint {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ---- Alerts / flash messages ---- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 0.92rem;
}
.alert-success {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}
.alert-error {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

/* ---- Dashboard ---- */
.balance-card {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}
.balance-card .label {
    font-size: 0.85rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.balance-card .amount {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 6px 0 16px;
}

.task-list { list-style: none; padding: 0; margin: 0; }
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}
.task-item .task-title { font-weight: 600; margin: 0 0 2px; }
.task-item .task-desc { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }
.task-item .task-reward {
    color: var(--color-primary);
    font-weight: 700;
    white-space: nowrap;
    margin-left: 12px;
}

.task-item-completed {
    opacity: 0.55;
    background: #F3F3F1;
}
.task-item-completed .task-reward {
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 28px 0 12px;
}

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 20px 0 40px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}
.footer-links a {
    color: var(--color-text-muted);
    margin: 0 6px;
}

/* ---- Small utility ---- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.small-print {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
