/* ============================================================
   TASKFUND BRAND SYSTEM — "SUNBIRD"
   Deep forest green + warm gold. Built for trust, legibility,
   and mobile-first use across seven markets.
   Link this on every page: <link rel="stylesheet" href="brand.css">
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    /* Color */
    --forest-900: #0B3D2E;   /* deepest green - headers, hero backgrounds */
    --forest-700: #14532D;   /* primary brand green */
    --forest-500: #1F7A4D;   /* interactive green - hovers, links */
    --forest-100: #E3EEE7;   /* pale green tint - subtle fills */
    --gold-600:   #B8860B;   /* deep gold - text on light backgrounds */
    --gold-500:   #D4A017;   /* primary accent - CTAs, highlights */
    --gold-300:   #E8C468;   /* light gold - subtle accents, borders */
    --cream-50:   #FAF7F0;   /* page background - warm, not stark white */
    --cream-100:  #F2EDE1;   /* card/section background */
    --ink-900:    #1A2420;   /* primary text */
    --ink-500:    #5B6B62;   /* secondary/muted text */
    --danger:     #B3261E;
    --danger-bg:  #FBEAE9;
    --success:    #2E7D46;
    --success-bg: #E7F3EB;

    /* Type */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

    /* Layout */
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(11, 61, 46, 0.08);
    --shadow-md: 0 8px 24px rgba(11, 61, 46, 0.12);
    --shadow-lg: 0 20px 48px rgba(11, 61, 46, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--cream-50);
    color: var(--ink-900);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Brand mark: abstract sunbird, two swooping wings ---------- */
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.brand-mark svg { display: block; }
.brand-mark .wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.01em;
    color: inherit;
}

/* ---------- Money figures: tabular mono everywhere, the site's signature ---------- */
.figure, .money {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--gold-500);
    color: var(--forest-900);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-300); box-shadow: var(--shadow-md); }
.btn-secondary {
    background: var(--forest-700);
    color: var(--cream-50);
}
.btn-secondary:hover { background: var(--forest-500); }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(11, 61, 46, 0.06);
}

/* ---------- Form fields ---------- */
.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--forest-900);
    margin-bottom: 0.4rem;
}
.field input,
.field select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid #E2DDD0;
    border-radius: var(--radius-sm);
    background: var(--cream-50);
    color: var(--ink-900);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--forest-500);
    background: #fff;
}
.field .error-message {
    color: var(--danger);
    font-size: 0.82rem;
    margin-top: 0.35rem;
    min-height: 1.1em;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }

/* ---------- Responsive helpers ---------- */
@media (max-width: 480px) {
    .btn { padding: 0.8rem 1.1rem; font-size: 0.9rem; }
    .brand-mark .wordmark { font-size: 1.25rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
