/* ===========================================================================
   AGENDA 2063 — "The Africa We Want"
   Aesthetic: Pan-African Editorial Futurism
   Display: Fraunces (serif)  •  Body: Plus Jakarta Sans
   =========================================================================== */

:root {
    /* Pan-African palette */
    --green:      #0B5D34;
    --green-700:  #094a2a;
    --green-900:  #06301b;
    --gold:       #F0A818;
    --gold-soft:  #FCC34D;
    --red:        #C8102E;
    --ink:        #1A1410;
    --ink-soft:   #4A4038;
    --paper:      #FBF6EC;
    --paper-2:    #F4ECDB;
    --card:       #FFFDF8;
    --line:       #E6DBC4;
    --white:      #ffffff;

    /* status (traffic-light) */
    --st-green:  #1F9D55;
    --st-yellow: #F2C200;
    --st-orange: #F2870D;
    --st-red:    #D64545;
    --st-nodata: #C4BAA6;

    --font-display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 3px rgba(26,20,16,.06), 0 2px 8px rgba(26,20,16,.05);
    --shadow: 0 6px 24px -6px rgba(26,20,16,.16), 0 2px 8px rgba(26,20,16,.06);
    --shadow-lg: 0 24px 60px -16px rgba(11,93,52,.28), 0 8px 24px rgba(26,20,16,.10);
    --container: 1200px;
    --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-size: 17px;
    overflow-x: hidden;
    background-image:
        radial-gradient(1200px 700px at 85% -10%, rgba(240,168,24,.10), transparent 60%),
        radial-gradient(900px 600px at -5% 5%, rgba(11,93,52,.08), transparent 55%);
    background-attachment: fixed;
}

::selection { background: var(--gold); color: var(--ink); }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-optical-sizing: auto; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
select { max-width: 100%; }
p { color: var(--ink-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* Kente stripe accent */
.kente {
    height: 6px; width: 100%;
    background: repeating-linear-gradient(90deg,
        var(--green) 0 28px, var(--gold) 28px 44px, var(--red) 44px 60px, var(--ink) 60px 64px);
}
.kente-thin { height: 4px; }

/* Eyebrow label, a clean kicker with no decorative bar */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body); font-weight: 800; font-size: .72rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--green);
    margin-bottom: 4px;
}
.eyebrow.on-dark { color: var(--gold-soft); }

/* ---------------------------------------------------------------- Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body); font-weight: 700; font-size: .95rem;
    padding: 13px 24px; border-radius: 100px; border: none; cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .25s, background .2s; text-decoration: none;
    line-height: 1; white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px -8px rgba(11,93,52,.7); }
.btn-primary:hover { background: var(--green-700); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(11,93,52,.8); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(240,168,24,.8); }
.btn-gold:hover { background: var(--gold-soft); color: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost.on-dark:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------- Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251,246,236,.82); backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .kente { position: absolute; bottom: -6px; left: 0; opacity: .9; }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.15rem; }
.brand:hover { color: var(--ink); }
.brand .emblem { width: 42px; height: 42px; flex: none; }
.brand-logo { height: 46px; width: auto; max-width: 280px; flex: none; object-fit: contain; display: block; }
.brand-logo-footer { height: 52px; max-width: 260px; }
.brand.brand-has-logo { gap: 0; }
@media (max-width: 600px){ .brand-logo { height: 38px; max-width: 200px; } }
.brand small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a:not(.btn) { color: var(--ink-soft); font-weight: 600; font-size: .93rem; padding: 8px 13px; border-radius: 10px; transition: all .18s; }
.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active { color: var(--green); background: rgba(11,93,52,.07); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta-auth { display: inline-flex; align-items: center; gap: 10px; }
.nav-mobile-auth { display: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: 6px; }
.hud-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: var(--gold-soft); padding: 7px 13px; border-radius: 100px; font-weight: 700; font-size: .82rem; }
.hud-chip .lvl { background: var(--gold); color: var(--ink); border-radius: 100px; padding: 1px 8px; font-size: .72rem; }

@media (max-width: 940px) {
    .nav { gap: 12px; }
    /* Mobile dropdown panel — fully hidden when closed (visibility + opacity),
       so no part of it can peek at the top of the page. */
    .nav-links {
        position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
        background: var(--paper); padding: 14px 16px 18px; gap: 4px;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        max-height: calc(100vh - 72px); overflow-y: auto;
        transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
    .nav-links a { padding: 12px 14px; }
    /* Group the language pill next to the hamburger on the right (only nav-cta
       takes the auto margin, so the two sit together rather than splitting it). */
    .nav-toggle { display: inline-flex; order: 3; }
    .nav-cta { order: 2; margin-left: auto; }
    .nav-cta-auth { display: none; }
    .nav-mobile-auth {
        display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px;
        padding-top: 14px; border-top: 1px solid var(--line);
    }
    .nav-mobile-auth .btn, .nav-mobile-auth .hud-chip { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 480px) {
    .nav { gap: 8px; }
    .lang-switch-btn { padding: 7px 11px; }
}

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: float 16s ease-in-out infinite; }
.hero-blob.b1 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(240,168,24,.55), transparent 70%); top: -120px; right: -60px; }
.hero-blob.b2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(11,93,52,.45), transparent 70%); bottom: -140px; left: -80px; animation-delay: -6s; }
.hero-blob.b3 { width: 280px; height: 280px; background: radial-gradient(circle, rgba(200,16,46,.30), transparent 70%); top: 40%; left: 55%; animation-delay: -10s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-30px) scale(1.06); } 66% { transform: translate(-20px,20px) scale(.96); } }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin: 14px 0 18px; }
.hero h1 .accent { color: var(--green); position: relative; }
.hero h1 .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 12px; background: var(--gold); opacity: .45; z-index: -1; border-radius: 3px; }
.hero .lead { font-size: 1.18rem; max-width: 36ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero-visual { order: -1; } }

/* Africa hero visual with Moonshot nodes */
.hero-africa { width: 100%; max-width: 480px; margin: 0 auto; display: block; overflow: visible; }
.hero-africa-legend { text-align: center; margin-top: 14px; font-weight: 700; font-size: .82rem; color: var(--ink-soft); letter-spacing: .01em; }
.ms-node { transform-box: fill-box; transform-origin: center; }
.ms-node .ms-pulse { trans-origin: center; animation: ms-pulse 2.8s ease-out infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
@keyframes ms-pulse { 0% { opacity: .7; transform: scale(1); } 70% { opacity: 0; transform: scale(2.4); } 100% { opacity: 0; transform: scale(2.4); } }
.ms-node { animation: ms-bob 6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes ms-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .ms-node, .ms-node .ms-pulse { animation: none; } }

/* ---------------------------------------------------------------- Stat band */
.stat-band { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 56px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.stat { text-align: center; padding: 8px; min-width: 0; }
.stat .num { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 600; color: var(--green); line-height: 1; }
.stat .lbl { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin-top: 6px; font-weight: 600; overflow-wrap: break-word; }
@media (max-width: 760px) { .stat-band { grid-template-columns: repeat(3, 1fr); padding: 18px 14px; gap: 6px; } }
@media (max-width: 480px) { .stat-band { grid-template-columns: repeat(2, 1fr); gap: 8px 6px; } .stat .lbl { letter-spacing: .03em; font-size: .72rem; } }
/* Hide selected elements on phones only (tablets and up keep them). */
@media (max-width: 600px) { .hide-on-mobile { display: none !important; } }

/* ---------------------------------------------------------------- Sections */
.section { padding: 76px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 12px; font-size: 1.08rem; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--green-900); color: var(--paper); }
.section-dark h1,.section-dark h2,.section-dark h3 { color: #fff; }
.section-dark p { color: rgba(251,246,236,.78); }

/* ---------------------------------------------------------------- Cards & grids */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
/* Two-column main+sidebar layouts collapse to single column on mobile */
@media (max-width: 760px) { .with-sidebar { grid-template-columns: 1fr !important; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .28s var(--ease), box-shadow .28s, border-color .28s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { margin-bottom: 8px; }
.card .meta { font-size: .82rem; color: var(--ink-soft); }
.card-link::after { content: ""; position: absolute; inset: 0; }

/* Aspiration tile */
.asp-tile { --c: var(--green); color: #fff; border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(155deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.asp-tile:hover { transform: translateY(-6px) scale(1.012); box-shadow: var(--shadow-lg); }
.asp-tile .num { font-family: var(--font-display); font-size: 4rem; font-weight: 600; line-height: .8; opacity: .9; }
.asp-tile .num small { font-size: 1rem; opacity: .7; display: block; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 4px; }
.asp-tile h3 { color: #fff; font-size: 1.32rem; max-width: 20ch; }
.asp-tile p { color: rgba(255,255,255,.82); font-size: .9rem; }
.asp-tile .tile-icon { position: absolute; right: -10px; bottom: -10px; opacity: .14; }
.asp-tile .tile-icon .icon { width: 130px; height: 130px; }
.asp-tile .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; margin-top: 10px; color: #fff; }
.asp-tile .card-link::after { content: ""; position: absolute; inset: 0; }

/* chips / badges */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 100px; font-size: .76rem; font-weight: 700; background: rgba(11,93,52,.08); color: var(--green); white-space: nowrap; line-height: 1.2; }
.chip .icon { width: 14px; height: 14px; }
.chip.gold { background: rgba(240,168,24,.18); color: #8a5d00; }
button.chip { border: none; cursor: pointer; font-family: var(--font-body); transition: background .18s, color .18s, transform .18s; }
button.chip:hover { transform: translateY(-1px); }
.chip.active { background: var(--green); color: #fff; }
.chip.red { background: rgba(200,16,46,.12); color: var(--red); }
/* solid chip for use over coloured media / banners (high contrast) */
.chip-media { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(26,20,16,.18); }
/* High-contrast chips on dark / coloured surfaces (auto inside .section-dark, or via .on-dark) */
.section-dark .chip, .chip.on-dark { background: rgba(255,255,255,.18); color: #fff; }
.section-dark .chip.gold, .chip.gold.on-dark { background: var(--gold); color: var(--ink); }
.section-dark .chip.red, .chip.red.on-dark { background: rgba(255,255,255,.18); color: #fff; }
/* keep icons crisp and centred inside coloured icon tiles */
.gc-icon svg, .bdg-icon svg, .moon-num svg, .anum svg, .profile-avatar svg { display: block; }
.tag-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .78rem; text-transform: capitalize; }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; display: inline-block; }

/* progress bar */
.progress { height: 9px; background: var(--paper-2); border-radius: 100px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width 1s var(--ease); }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--green-900); color: rgba(251,246,236,.8); padding-top: 0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 36px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: rgba(251,246,236,.72); display: block; padding: 5px 0; font-size: .92rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-social { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.footer-social a { color: rgba(251,246,236,.78); font-size: .82rem; font-weight: 700; padding: 0; }
.footer-social a:hover { color: var(--gold); }
.site-footer .brand small { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .82rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- Reveal */
/* Reveals only hide when JS is active (html.js); no-JS / crawlers see everything. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-blob, .hero-emblem { animation: none; } }

/* ---------------------------------------------------------------- Page header (interior) */
.page-hero { padding: 56px 0 36px; position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-hero .lead { font-size: 1.12rem; max-width: 60ch; margin-top: 14px; }
.breadcrumb { font-size: .82rem; color: var(--ink-soft); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--green); font-weight: 600; }

/* ---------------------------------------------------------------- Forms */
.form-card { max-width: 460px; margin: 40px auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: .95rem; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,93,52,.12); }
.field .err { color: var(--red); font-size: .8rem; margin-top: 4px; }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .9rem; font-weight: 600; }
.alert-success { background: rgba(31,157,85,.12); color: #16713c; }
.alert-error { background: rgba(214,69,69,.12); color: var(--st-red); }

/* ---------------------------------------------------------------- Toast / HUD reward */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-weight: 600; transform: translateX(120%); transition: transform .45s var(--ease); max-width: 340px; }
.toast.show { transform: none; }
.toast .xp { background: var(--gold); color: var(--ink); border-radius: 100px; padding: 3px 10px; font-weight: 800; font-size: .82rem; flex: none; }
.toast.badge-toast { background: linear-gradient(135deg, var(--gold), var(--red)); }

@media (max-width: 620px) { .section { padding: 52px 0; } }

/* utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; }
.muted { color: var(--ink-soft); }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; } .items-end { align-items: flex-end; } .items-start { align-items: flex-start; } .gap { gap: 12px; } .wrap { flex-wrap: wrap; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
/* card-link-wrap: card acting as a full clickable block, needs relative positioning for the ::after overlay */
.card-link-wrap { position: relative; overflow: hidden; }

/* Language switcher */
.lang-switch{position:relative}
.lang-switch-btn{display:inline-flex;align-items:center;gap:7px;background:transparent;color:var(--ink);border:1.5px solid var(--line);border-radius:100px;padding:8px 14px;font-family:var(--font-body);font-weight:700;font-size:.85rem;line-height:1;cursor:pointer;transition:transform .2s var(--ease),border-color .2s,color .2s}
.lang-switch-btn:hover{border-color:var(--green);color:var(--green);transform:translateY(-2px)}
.lang-switch-btn .icon{width:16px;height:16px}
.lang-switch-menu{position:absolute;right:0;top:calc(100% + 6px);background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 28px rgba(26,20,16,.14);padding:6px;min-width:180px;display:none;z-index:60}
.lang-switch.open .lang-switch-menu{display:block}
.lang-switch-menu a{display:block;padding:8px 12px;border-radius:8px;color:var(--ink);text-decoration:none;font-size:.92rem;transition:background .15s,color .15s}
.lang-switch-menu a:hover{background:var(--paper-2);color:var(--green)}
.lang-switch-menu a.active{font-weight:700;color:var(--green)}
.divider { height: 1px; background: var(--line); margin: 28px 0; }

/* ---------------------------------------------------------------- Nav dropdowns */
.nav-group { position: relative; }
.nav-group-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 0; font-family: var(--font-body); color: var(--ink-soft);
    font-weight: 600; font-size: .93rem;
    cursor: pointer; padding: 8px 13px; border-radius: 10px;
    transition: color .18s, background .18s; white-space: nowrap;
}
.nav-group-btn:hover { color: var(--green); background: rgba(11,93,52,.07); }
.nav-group-btn svg { transition: transform .2s; flex-shrink: 0; }
.nav-group:hover .nav-group-btn svg,
.nav-group.open .nav-group-btn svg { transform: rotate(180deg); }
.nav-menu {
    position: absolute; top: 100%; left: 0;
    min-width: 210px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: 0 10px 28px rgba(26,20,16,.14);
    padding: 8px 6px 6px; margin-top: 2px; display: none; z-index: 60;
}
/* Open on keyboard focus or when JS sets .open (hover-intent: instant open,
   short grace period before closing so the cursor can reach the menu). */
.nav-group:focus-within .nav-menu,
.nav-group.open .nav-menu { display: block; }
.nav-menu a {
    display: block; padding: 8px 12px; border-radius: 8px;
    color: var(--ink); text-decoration: none; white-space: nowrap;
    font-size: .92rem; transition: background .15s, color .15s;
}
.nav-menu a:hover { background: var(--paper-2); color: var(--green); }
.nav-menu a.active { color: var(--green); font-weight: 700; }

/* Mobile — inside the hamburger panel (same 940px breakpoint as .nav-toggle) */
@media (max-width: 940px) {
    .nav-group { width: 100%; }
    .nav-group-btn { width: 100%; justify-content: space-between; font-weight: 700; padding: 12px 14px; }
    .nav-menu {
        position: static; display: block;
        box-shadow: none; border: 0; border-radius: 0;
        padding: 0 0 4px 16px; min-width: 0; background: transparent;
    }
    .nav-menu a { padding: 8px 10px; font-weight: 500; white-space: normal; }
    /* Keep the chevron rotation working on mobile via .open class */
    .nav-group:not(.open) .nav-menu { display: none; }
    .nav-group.open .nav-menu { display: block; }
}



/* Legal / info pages */
.legal-doc { max-width: 760px; }
.legal-doc h2 { font-size: 1.35rem; margin: 36px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-doc > h2:first-child, .legal-doc h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-doc h3 { font-size: 1.1rem; margin: 20px 0 8px; }
.legal-doc p { margin-bottom: 14px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 16px 1.2em; }
.legal-doc li { color: var(--ink-soft); margin-bottom: 6px; }
.legal-doc a { color: var(--green); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; padding: 16px 0 4px; }
@media (max-width: 620px){ .footer-legal { justify-content: flex-start; } }
.footer-legal a { color: rgba(251,246,236,.72); font-size: .82rem; }
.footer-legal a:hover { color: var(--gold-soft); }

/* ── Official Agenda 2063 icons ──────────────────────────────────────────── */

/* Base: contain proportions, no layout bleed */
.agenda-icon { object-fit: contain; display: block; flex-shrink: 0; }

/* Aspiration icons are white line-art → need a coloured/dark chip behind them.
   The asp-tile already provides a dark gradient background, so the watermark
   position works natively there. For the index card chips we add our own chip. */
.agenda-icon-chip {
    display: grid;
    place-items: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Moonshot icon chips — coloured pill used in list and detail hero.
   Moonshot SVGs are white line-art; chips have a solid colour background
   so the white strokes are legible at all sizes. */
.agenda-moon-chip {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
}
/* Force the white SVG strokes to render clearly on any coloured chip */
.agenda-moon-chip .agenda-icon,
.agenda-moon-hero-chip .agenda-icon {
    filter: brightness(0) invert(1);
}
.agenda-moon-hero-chip {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Goal icon chip in hero (light coloured ring, coloured bg set inline) */
.agenda-goal-hero-chip {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Aspiration icons are white line-art on dark/coloured backgrounds — force white
   for tile watermarks, detail hero watermarks, and the index card chips */
.asp-tile .tile-icon .agenda-icon,
.asp-hero-icon .agenda-icon,
.agenda-icon-chip .agenda-icon {
    filter: brightness(0) invert(1);
}
/* asp-tile watermark: parent already has opacity .14, don't double-dim */
.asp-tile .tile-icon .agenda-icon {
    opacity: 1;
}

/* Entrance animation — icons inside .reveal.in containers */
@keyframes agenda-icon-float-in {
    from { opacity: 0; transform: translateY(8px) scale(.88); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.reveal.in .agenda-icon {
    animation: agenda-icon-float-in .55s var(--ease, cubic-bezier(.22,.68,0,1.2)) both;
    animation-delay: calc(var(--d, 1) * 60ms + 80ms);
}

/* Hover bob on cards — gentle scale */
.card:hover .agenda-icon,
.asp-tile:hover .agenda-icon {
    transform: scale(1.08);
    transition: transform .35s cubic-bezier(.22,.68,0,1.2);
}
/* The watermark tile-icon already uses opacity; suppress hover scale there */
.asp-tile .tile-icon .agenda-icon {
    transition: none;
}

/* Reduced-motion: kill all transforms */
@media (prefers-reduced-motion: reduce) {
    .reveal.in .agenda-icon { animation: none; }
    .card:hover .agenda-icon,
    .asp-tile:hover .agenda-icon { transform: none; transition: none; }
}

/* Mobile: cap icon sizes so they don't overflow tight cards */
@media (max-width: 600px) {
    .agenda-icon-hero  { width: 140px !important; height: 140px !important; }
    .agenda-moon-hero-chip { width: 52px; height: 52px; }
    .agenda-moon-hero-chip .agenda-icon { width: 38px !important; height: 38px !important; }
    .agenda-goal-hero-chip { width: 52px; height: 52px; }
    .agenda-goal-hero-chip .agenda-icon { width: 38px !important; height: 38px !important; }
}

/* Video embed (click-to-load, privacy-friendly) */
.video-embed { position: relative; aspect-ratio: 16/9; width: 100%; max-width: 940px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: var(--ink) center/cover no-repeat; cursor: pointer; box-shadow: var(--shadow-lg); }
.video-embed::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.48)); transition: background .25s; }
.video-embed:hover::after { background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.34)); }
.video-play { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:2; width:78px; height:78px; border-radius:50%; border:none; background: var(--gold); color: var(--ink); display:grid; place-items:center; cursor:pointer; box-shadow:0 10px 30px rgba(0,0,0,.4); transition: transform .2s var(--ease), background .2s; }
.video-embed:hover .video-play { transform:translate(-50%,-50%) scale(1.08); background: var(--gold-soft); }
.video-play svg { margin-left: 4px; }
.video-play-label { position:absolute; left:50%; bottom:18px; transform:translateX(-50%); z-index:2; color:#fff; font-weight:700; font-size:.9rem; text-shadow:0 1px 6px rgba(0,0,0,.55); }
.video-embed iframe { position:absolute; inset:0; width:100%; height:100%; border:0; z-index:3; }
.video-embed.playing::after, .video-embed.playing .video-play, .video-embed.playing .video-play-label { display:none; }
@media (prefers-reduced-motion: reduce){ .video-embed:hover .video-play{ transform:translate(-50%,-50%);} }

/* Cookie consent banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.35); animation: cookie-in .35s var(--ease); }
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { color: rgba(255,255,255,.86); font-size: .86rem; margin: 0; flex: 1 1 320px; }
.cookie-banner-text a { color: var(--gold-soft); text-decoration: underline; }
.cookie-banner .btn { flex: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }

/* Goal icons: frame the official multi-colour goal SVGs in a clean white disc
   so they read crisply on cream cards (their internal AU colour-coding shows). */
.agenda-icon-goal {
    background: #fff; border-radius: 50%; padding: 4px;
    box-shadow: 0 1px 4px rgba(26,20,16,.12); border: 1px solid var(--line);
}
.agenda-icon-goal-hero { background: transparent; box-shadow: none; border: none; padding: 0; }
