:root {
    --ink: #151515;
    --muted: #5f665f;
    --green: #247a28;
    --green-deep: #0f4f25;
    --green-soft: #e4f3df;
    --yellow: #f4c400;
    --yellow-deep: #cf9b00;
    --paper: #fbfaf3;
    --white: #ffffff;
    --line: rgba(21, 21, 21, 0.12);
    --shadow: 0 24px 70px rgba(18, 32, 22, 0.16);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(244, 196, 0, 0.28), transparent 26rem),
        linear-gradient(115deg, #fffef8 0%, #eef8ea 46%, #ffffff 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    color: var(--ink);
    background: rgba(244, 196, 0, 0.55);
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    width: 100%;
    height: 4px;
    background: rgba(15, 79, 37, 0.08);
}

.scroll-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 120ms linear;
}

.section-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 92px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(247, 255, 242, 0.86)),
        linear-gradient(90deg, rgba(36, 122, 40, 0.16) 0 1px, transparent 1px 80px),
        linear-gradient(0deg, rgba(244, 196, 0, 0.14) 0 1px, transparent 1px 80px);
}

.site-header::after {
    content: "";
    position: absolute;
    inset: auto -8% -18% 34%;
    height: 360px;
    background: linear-gradient(135deg, rgba(36, 122, 40, 0.22), rgba(244, 196, 0, 0.4));
    transform: skewY(-5deg);
    z-index: 0;
}

.navbar {
    position: fixed;
    top: 14px;
    left: 50%;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 40px));
    margin: 0;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 20px 55px rgba(16, 36, 21, 0.1);
    transform: translateX(-50%);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transition: top 220ms ease, padding 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.navbar.is-scrolled {
    top: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 52px rgba(13, 43, 18, 0.18);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand img {
    width: 54px;
    height: 54px;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: 0 10px 28px rgba(36, 122, 40, 0.2);
}

.brand span {
    display: grid;
    line-height: 1.1;
}

.brand strong {
    font-size: 1.35rem;
    letter-spacing: 0;
}

.brand small {
    max-width: 220px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 55px rgba(16, 36, 21, 0.12);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    backdrop-filter: blur(18px);
}

.nav-links:hover {
    border-color: rgba(36, 122, 40, 0.28);
    box-shadow: 0 30px 86px rgba(18, 32, 22, 0.2);
    transform: translateY(-3px);
}

.timeline article,
.payment-methods span,
.method-logo,
.cotisation-steps article {
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.feature:hover,
.news-card:hover,
.timeline article:hover,
.cotisation-steps article:hover {
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(25, 42, 26, 0.13);
}

.payment-methods span:hover,
.method-logo:hover {
    transform: translateY(-3px);
    border-color: rgba(36, 122, 40, 0.45);
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #263026;
    font-size: 0.9rem;
    font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
    background: var(--green-soft);
    outline: none;
}

.nav-links a.is-active {
    color: var(--green-deep);
    box-shadow: inset 0 0 0 1px rgba(36, 122, 40, 0.18);
}

.nav-links .nav-cta {
    color: var(--ink);
    background: var(--yellow);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: var(--radius);
    background: var(--ink);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
}

.hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(420px, 0.95fr) minmax(560px, 1.35fr);
    align-items: center;
    gap: 36px;
    width: min(1400px, calc(100% - 40px));
    min-height: calc(100vh - 92px);
    padding: 46px 0 72px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green-deep);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2 {
    margin: 0;
    font-family: "Playfair Display", serif;
    line-height: 1.02;
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    font-size: clamp(3rem, 8vw, 6.8rem);
}

h2 {
    font-size: clamp(2.2rem, 5vw, 4.55rem);
}

h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    line-height: 1.25;
}

.hero-text {
    max-width: 650px;
    margin: 24px 0 0;
    color: #343d33;
    font-size: 1.12rem;
}

.hero-actions,
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions {
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, filter 180ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.btn-primary {
    color: var(--ink);
    background: linear-gradient(135deg, var(--yellow), #ffe36a);
    box-shadow: 0 18px 35px rgba(207, 155, 0, 0.26);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    filter: saturate(1.08);
    box-shadow: 0 22px 46px rgba(207, 155, 0, 0.34);
}

.btn-soft {
    color: var(--green-deep);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(36, 122, 40, 0.18);
}

.hero-media {
    position: relative;
    width: 100%;
    max-width: 840px;
    justify-self: end;
    isolation: isolate;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: -10px -10px 18px 18px;
    border: 2px solid rgba(36, 122, 40, 0.24);
    border-radius: var(--radius);
    z-index: -1;
}

.hero-media img,
.hero-media video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow);
    animation: heroFloat 7s ease-in-out infinite;
}

.hero-badge {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: grid;
    gap: 3px;
    max-width: calc(100% - 48px);
    padding: 13px 15px;
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.hero-badge strong {
    font-size: 1.1rem;
}

.hero-badge span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.notice {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 28px;
    padding: 16px 18px;
    border-left: 5px solid var(--green);
    border-radius: var(--radius);
    background: #edf8e9;
    box-shadow: 0 14px 34px rgba(16, 62, 23, 0.12);
}

.notice-error {
    border-left-color: #b83220;
    background: #fff1ec;
}

#adhesion-message {
    scroll-margin-top: 120px;
    margin-bottom: 28px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 56px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--line);
    box-shadow: 0 18px 55px rgba(16, 36, 21, 0.08);
}

.metrics article {
    position: relative;
    padding: 28px;
    background: rgba(255, 255, 255, 0.86);
    transition: transform 180ms ease, background 180ms ease;
}

.metrics article:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.96);
}

.metrics span {
    display: block;
    color: var(--green-deep);
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.metrics p {
    margin: 10px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.vision,
.news {
    padding: 96px 0;
}

.section-heading {
    display: grid;
    gap: 10px;
    max-width: 820px;
    margin-bottom: 34px;
}

.vision-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature,
.news-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 44px rgba(25, 42, 26, 0.08);
    will-change: transform;
}

.feature {
    padding: 28px;
}

.feature svg {
    width: 38px;
    height: 38px;
    margin-bottom: 22px;
    color: var(--green);
    stroke-width: 1.8;
}

.feature p,
.program-copy p,
.news-card p,
.membership-copy p,
.site-footer p {
    color: var(--muted);
}

.program {
    position: relative;
    padding: 96px 0;
    background:
        linear-gradient(125deg, rgba(15, 79, 37, 0.96), rgba(36, 122, 40, 0.88)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 90px);
    color: var(--white);
}

.program-inner,
.membership-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 54px;
}

.program-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
}

.program .eyebrow,
.program-copy p {
    color: #dff7d8;
}

.president {
    position: relative;
    overflow: hidden;
    padding: 96px 0;
    color: var(--white);
    background:
        linear-gradient(115deg, rgba(11, 52, 27, 0.98), rgba(29, 108, 43, 0.92)),
        linear-gradient(90deg, rgba(244, 196, 0, 0.16) 0 1px, transparent 1px 82px);
}

.president::before {
    content: "";
    position: absolute;
    inset: -22% auto auto 48%;
    width: 620px;
    height: 620px;
    border: 1px solid rgba(244, 196, 0, 0.28);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.president-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: 48px;
}

.president-copy {
    display: grid;
    gap: 16px;
}

.president-copy .eyebrow {
    color: var(--yellow);
}

.president-copy h2,
.president-copy p {
    margin: 0;
}

.president-copy p:not(.eyebrow) {
    max-width: 530px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.06rem;
}

.president-signature {
    display: inline-grid;
    gap: 4px;
    justify-self: start;
    margin-top: 10px;
    padding: 14px 16px;
    border-left: 4px solid var(--yellow);
    background: rgba(255, 255, 255, 0.1);
}

.president-signature span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.president-signature strong {
    color: var(--white);
    font-size: 1rem;
}

.president-showcase {
    display: grid;
    gap: 16px;
}

.president-feature,
.president-tile {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 85px rgba(0, 0, 0, 0.32);
    transform: translateY(0);
    transition: transform 420ms ease, box-shadow 420ms ease;
    will-change: transform;
}

.president-feature::after,
.president-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.24) 48%, transparent 58% 100%);
    transform: translateX(-120%);
    animation: presidentLightSweep 7.5s ease-in-out infinite;
    pointer-events: none;
}

.president-feature:hover,
.president-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
}

.president-feature img,
.president-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease, filter 700ms ease;
    animation: presidentPhotoDrift 11s ease-in-out infinite alternate;
    will-change: transform;
}

.president-feature:hover img,
.president-tile:hover img {
    filter: saturate(1.08) contrast(1.03);
    transform: scale(1.075);
}

.president-feature img {
    aspect-ratio: 16 / 9;
    object-position: center 42%;
}

.president-feature figcaption {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: grid;
    gap: 2px;
    max-width: calc(100% - 36px);
    padding: 12px 14px;
    border-left: 4px solid var(--yellow);
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.president-feature figcaption span {
    color: var(--green-deep);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.president-feature figcaption strong {
    font-size: 1.12rem;
}

.president-portraits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.president-tile {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    animation: presidentTileFloat 7s ease-in-out infinite;
}

.president-tile:nth-child(2) {
    animation-delay: 650ms;
}

.president-tile:nth-child(2)::after {
    animation-delay: 1.2s;
}

.president-tile:nth-child(3) {
    animation-delay: 1.3s;
}

.president-tile:nth-child(3)::after {
    animation-delay: 2.1s;
}

.president-tile img {
    aspect-ratio: 4 / 3;
    object-position: center 30%;
}

.timeline {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.timeline article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.timeline span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--ink);
    background: var(--yellow);
    font-weight: 900;
}

.timeline h3,
.timeline p {
    margin: 0;
}

.news-card {
    overflow: hidden;
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 520ms ease;
}

.news-card:hover img {
    transform: scale(1.045);
}

.news-card div {
    padding: 22px;
}

.news-card span {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--green-deep);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.membership {
    padding: 96px 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 196, 0, 0.12)),
        repeating-linear-gradient(135deg, rgba(36, 122, 40, 0.07) 0 1px, transparent 1px 16px);
}

.adhesion-page {
    min-height: 100vh;
}

.adhesion-header {
    min-height: 92px;
}

.adhesion-hero {
    display: grid;
    grid-template-columns: minmax(320px, 0.86fr) minmax(420px, 1.14fr);
    align-items: start;
    gap: 42px;
    padding: 58px 0 96px;
}

.adhesion-hero-copy {
    position: sticky;
    top: 124px;
    display: grid;
    gap: 22px;
}

.adhesion-hero-copy h1 {
    margin: 0;
    max-width: 680px;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: 0.95;
}

.adhesion-hero-copy p {
    margin: 0;
    max-width: 620px;
    color: var(--muted);
}

.adhesion-summary {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.adhesion-summary article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 14px;
    padding: 18px;
    border: 1px solid rgba(36, 122, 40, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(16, 62, 23, 0.08);
}

.adhesion-summary span {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--ink);
    background: var(--yellow);
    font-weight: 900;
}

.adhesion-summary strong {
    align-self: end;
}

.adhesion-summary p {
    margin: 0;
}

.adhesion-panel {
    display: grid;
    gap: 18px;
}

.contribution {
    padding: 96px 0;
    background:
        linear-gradient(135deg, rgba(16, 23, 17, 0.96), rgba(15, 79, 37, 0.92)),
        radial-gradient(circle at 88% 18%, rgba(244, 196, 0, 0.32), transparent 22rem);
    color: var(--white);
}

.membership-copy,
.contribution-copy {
    align-self: start;
}

.contribution-inner {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    align-items: start;
    gap: 54px;
}

.contribution .eyebrow,
.contribution-copy p {
    color: #dff7d8;
}

.payment-methods,
.payment-logos {
    margin: 28px 0;
}

.payment-methods span {
    padding: 10px 13px;
    border: 1px solid rgba(36, 122, 40, 0.2);
    border-radius: 999px;
    background: var(--white);
    color: var(--green-deep);
    font-size: 0.88rem;
    font-weight: 900;
}

.payment-logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    gap: 12px;
}

.method-logo {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 10px;
    min-height: 124px;
    padding: 14px 10px;
    border: 1px solid rgba(36, 122, 40, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 34px rgba(16, 62, 23, 0.08);
    cursor: default;
}

.method-logo img {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    object-fit: contain;
    background: var(--white);
}

.method-logo span {
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 900;
    text-align: center;
}

.method-mpesa img,
.method-orange img {
    width: 78px;
    height: 68px;
}

.cotisation-steps {
    display: grid;
    gap: 14px;
    margin-top: 30px;
}

.cotisation-steps article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.cotisation-steps span {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--ink);
    background: var(--yellow);
    font-weight: 900;
}

.cotisation-steps strong {
    align-self: end;
    font-size: 1.02rem;
}

.cotisation-steps p {
    margin: 0;
}

.contribution-form {
    background: rgba(255, 255, 255, 0.96);
}

.payment-cta-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 16px;
    align-self: stretch;
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    color: var(--ink);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(228, 243, 223, 0.94)),
        repeating-linear-gradient(135deg, rgba(36, 122, 40, 0.08) 0 1px, transparent 1px 18px);
    box-shadow: var(--shadow);
}

.payment-cta-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--yellow), var(--green), var(--ink));
}

.payment-cta-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 22px;
    color: var(--ink);
    background: var(--yellow);
    box-shadow: 0 18px 38px rgba(207, 155, 0, 0.24);
}

.payment-cta-icon svg {
    width: 34px;
    height: 34px;
}

.payment-cta-card .eyebrow {
    margin-bottom: 0;
}

.payment-cta-card h3 {
    max-width: 440px;
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.03;
}

.payment-cta-card p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.payment-cta-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0;
}

.payment-cta-methods span {
    padding: 9px 11px;
    border: 1px solid rgba(36, 122, 40, 0.18);
    border-radius: 999px;
    color: var(--green-deep);
    background: var(--green-soft);
    font-size: 0.78rem;
    font-weight: 900;
}

.mobile-app {
    position: relative;
    overflow: hidden;
    padding: 110px 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(228, 243, 223, 0.9)),
        radial-gradient(circle at 12% 84%, rgba(244, 196, 0, 0.3), transparent 22rem);
}

.mobile-app::before {
    content: "";
    position: absolute;
    inset: 12% -16% auto auto;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(36, 122, 40, 0.14);
    border-radius: 50%;
}

.mobile-app-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 70px;
}

.mobile-app-copy p {
    max-width: 680px;
    color: var(--muted);
}

.app-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 32px;
}

.app-feature-grid article {
    display: grid;
    gap: 8px;
    min-height: 172px;
    padding: 20px;
    border: 1px solid rgba(36, 122, 40, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 44px rgba(25, 42, 26, 0.08);
}

.app-feature-grid svg {
    width: 32px;
    height: 32px;
    color: var(--green);
}

.app-feature-grid strong {
    font-size: 1rem;
}

.app-feature-grid span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.phone-mockup {
    justify-self: center;
    width: min(100%, 390px);
}

.phone-shell {
    position: relative;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 38px;
    background: linear-gradient(145deg, #111812, #263126);
    box-shadow: 0 34px 90px rgba(16, 36, 21, 0.28);
    transform: perspective(1100px) rotateX(var(--phone-tilt-x, 0deg)) rotateY(var(--phone-tilt-y, 0deg));
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.phone-shell:hover {
    box-shadow: 0 40px 110px rgba(16, 36, 21, 0.34);
}

.phone-camera {
    position: absolute;
    top: 18px;
    left: 50%;
    width: 86px;
    height: 22px;
    border-radius: 999px;
    background: #0b0f0c;
    transform: translateX(-50%);
    z-index: 2;
}

.phone-screen {
    min-height: 690px;
    overflow: hidden;
    padding: 52px 18px 20px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, #f8fff3 0%, #ffffff 55%, #edf8e9 100%);
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.app-topbar span,
.member-card-preview span,
.app-balance-card span,
.app-news-list span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.app-topbar strong {
    display: block;
    margin-top: 2px;
    font-size: 1.16rem;
}

.app-topbar img {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(36, 122, 40, 0.22);
}

.member-card-preview {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    min-height: 158px;
    padding: 20px;
    border-radius: 22px;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(15, 79, 37, 0.98), rgba(36, 122, 40, 0.92)),
        linear-gradient(90deg, rgba(244, 196, 0, 0.26) 0 1px, transparent 1px 36px);
    box-shadow: 0 18px 45px rgba(15, 79, 37, 0.3);
}

.member-card-preview span {
    color: rgba(255, 255, 255, 0.72);
}

.member-card-preview strong {
    display: block;
    margin-top: 8px;
    font-size: 1.05rem;
}

.qr-mark {
    display: grid;
    grid-template-columns: repeat(4, 10px);
    grid-auto-rows: 10px;
    gap: 4px;
    align-self: end;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
}

.qr-mark span {
    border-radius: 2px;
    background: rgba(15, 79, 37, 0.92);
}

.qr-mark span:nth-child(2n),
.qr-mark span:nth-child(5),
.qr-mark span:nth-child(11) {
    background: transparent;
}

.app-balance-card {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding: 18px;
    border: 1px solid rgba(36, 122, 40, 0.14);
    border-radius: 20px;
    background: var(--white);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-balance-card.is-switching {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(16, 62, 23, 0.12);
}

.app-balance-card strong {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    line-height: 1;
}

.app-balance-card button {
    min-height: 44px;
    border: 0;
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--yellow);
    cursor: pointer;
    font-weight: 900;
}

.app-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.app-tabs button {
    display: grid;
    justify-items: center;
    gap: 4px;
    border: 0;
    padding: 10px 6px;
    border-radius: 14px;
    color: var(--muted);
    background: rgba(36, 122, 40, 0.08);
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.app-tabs button:hover,
.app-tabs button:focus-visible {
    color: var(--green-deep);
    outline: none;
    transform: translateY(-2px);
}

.app-tabs .is-active {
    color: var(--green-deep);
    background: var(--green-soft);
}

.app-tabs svg {
    width: 18px;
    height: 18px;
}

.app-news-list {
    display: grid;
    gap: 10px;
}

.app-news-list article {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
}

.app-news-list img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
}

.app-news-list strong {
    display: block;
    margin-top: 3px;
    font-size: 0.92rem;
    line-height: 1.25;
}

.contact-panel {
    padding: 18px;
    border-left: 5px solid var(--yellow);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
}

.contact-panel p {
    margin: 6px 0 0;
}

.adhesion-form {
    display: grid;
    gap: 16px;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.adhesion-form:focus-within {
    border-color: rgba(36, 122, 40, 0.28);
    box-shadow: 0 30px 86px rgba(18, 32, 22, 0.2);
    transform: translateY(-3px);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    color: #2b332b;
    font-size: 0.9rem;
    font-weight: 900;
}

input,
select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(21, 21, 21, 0.16);
    border-radius: var(--radius);
    padding: 12px 14px;
    background: #fffefa;
    color: var(--ink);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
select:focus {
    border-color: var(--green);
    outline: 3px solid rgba(36, 122, 40, 0.16);
}

.photo-upload {
    position: relative;
    overflow: hidden;
    min-height: 104px;
    padding: 18px;
    border: 1.5px dashed rgba(36, 122, 40, 0.34);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(228, 243, 223, 0.86)),
        repeating-linear-gradient(135deg, rgba(36, 122, 40, 0.08) 0 1px, transparent 1px 14px);
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.photo-upload:hover,
.photo-upload:focus-within {
    border-color: var(--green);
    box-shadow: 0 18px 42px rgba(16, 62, 23, 0.12);
    transform: translateY(-2px);
}

.photo-upload-copy {
    display: flex;
    align-items: center;
    gap: 14px;
}

.photo-upload-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    color: var(--ink);
    background: var(--yellow);
    box-shadow: 0 14px 30px rgba(207, 155, 0, 0.24);
}

.photo-upload-icon svg {
    width: 26px;
    height: 26px;
}

.photo-upload strong,
.photo-upload small {
    display: block;
}

.photo-upload small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.photo-upload input[type="file"] {
    position: absolute;
    inset: 0;
    min-height: 100%;
    opacity: 0;
    cursor: pointer;
}

.consent {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

.consent input {
    width: 18px;
    min-height: 18px;
    margin-top: 4px;
}

.form-status {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: var(--radius);
    color: #7d1c10;
    background: #fff1ec;
    font-weight: 800;
}

.form-status.is-visible {
    display: flex;
}

.form-status.is-loading {
    color: var(--green-deep);
    background: #edf8e9;
}

.form-status.is-success {
    color: var(--green-deep);
    background: #edf8e9;
    border-left: 5px solid var(--green);
}

.form-status.is-error {
    color: #7d1c10;
    background: #fff1ec;
    border-left: 5px solid #b83220;
}

.status-spinner,
.status-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.status-spinner {
    border: 3px solid rgba(36, 122, 40, 0.2);
    border-top-color: var(--green);
    animation: statusSpin 760ms linear infinite;
}

.status-icon {
    color: var(--white);
    background: var(--green);
    font-weight: 900;
}

.form-status.is-error .status-icon {
    background: #b83220;
}

.status-copy {
    display: grid;
    gap: 2px;
}

.status-copy span {
    font-size: 0.88rem;
    font-weight: 700;
}

.form-submit {
    width: 100%;
}

.form-submit:disabled,
.adhesion-form.is-submitting input,
.adhesion-form.is-submitting select {
    cursor: wait;
}

.form-submit:disabled {
    opacity: 0.72;
}

.form-submit svg {
    width: 19px;
    height: 19px;
}

.site-footer {
    padding: 54px 0 22px;
    color: var(--white);
    background: #101711;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 32px;
}

.site-footer img {
    width: 68px;
    height: 68px;
    border-radius: var(--radius);
    object-fit: cover;
}

.site-footer strong {
    display: block;
    margin-bottom: 12px;
}

.site-footer a {
    display: block;
    width: fit-content;
    margin: 8px 0;
    color: #e6f6df;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    border-color: rgba(244, 196, 0, 0.72);
    background: rgba(244, 196, 0, 0.16);
    box-shadow: 0 16px 36px rgba(244, 196, 0, 0.12);
    outline: none;
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.1;
}

.social-brand {
    fill: currentColor;
}

.social-brand-stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 13px 18px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, #1fb85f, #0f8f44);
    box-shadow: 0 18px 44px rgba(15, 143, 68, 0.34);
    font-weight: 900;
    transform: translateY(12px);
    animation: whatsappEnter 620ms ease 800ms forwards, whatsappPulse 2.8s ease-in-out 1.5s infinite;
    opacity: 0;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    outline: none;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 24px 58px rgba(15, 143, 68, 0.42);
}

.whatsapp-float svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.3;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: 89;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: var(--green-deep);
    box-shadow: 0 16px 36px rgba(15, 79, 37, 0.28);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    outline: none;
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(15, 79, 37, 0.34);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.copyright {
    width: min(1180px, calc(100% - 40px));
    margin: 30px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.9rem;
}

.reveal {
    opacity: 0;
    transform: translateY(34px) scale(0.98);
    transition: opacity 820ms ease, transform 820ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.vision-grid .reveal:nth-child(2),
.news-grid .reveal:nth-child(2) {
    --reveal-delay: 120ms;
}

.vision-grid .reveal:nth-child(3),
.news-grid .reveal:nth-child(3) {
    --reveal-delay: 220ms;
}

@keyframes heroFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes presidentPhotoDrift {
    0% {
        transform: scale(1) translate3d(0, 0, 0);
    }

    100% {
        transform: scale(1.045) translate3d(8px, -6px, 0);
    }
}

@keyframes presidentTileFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes presidentLightSweep {
    0%,
    58% {
        transform: translateX(-120%);
    }

    78%,
    100% {
        transform: translateX(120%);
    }
}

@keyframes statusSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes whatsappEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes whatsappPulse {
    0%,
    100% {
        box-shadow: 0 18px 44px rgba(15, 143, 68, 0.34);
    }

    50% {
        box-shadow: 0 18px 44px rgba(15, 143, 68, 0.34), 0 0 0 12px rgba(31, 184, 95, 0.13);
    }
}

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        inset: 88px 20px auto;
        z-index: 95;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border-radius: var(--radius);
        padding: 14px;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        text-align: center;
    }

    .hero,
    .program-inner,
    .membership-inner,
    .adhesion-hero,
    .contribution-inner,
    .mobile-app-inner {
        grid-template-columns: 1fr;
    }

    .adhesion-hero-copy {
        position: static;
    }

    .phone-mockup {
        order: -1;
    }

    .hero {
        gap: 34px;
        min-height: 0;
    }

    .hero-media {
        justify-self: stretch;
        width: 100%;
        max-width: none;
    }

    .hero-media img,
    .hero-media video {
        aspect-ratio: 16 / 11;
    }

    .president-inner {
        grid-template-columns: 1fr;
    }

    .president-showcase {
        order: -1;
    }

    .metrics,
    .vision-grid,
    .news-grid,
    .app-feature-grid,
    .payment-logos,
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1140px) and (min-width: 981px) {
    .navbar {
        gap: 12px;
        padding-inline: 12px;
    }

    .hero {
        grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
        gap: 28px;
        width: min(1080px, calc(100% - 32px));
    }

    .hero-media {
        max-width: 660px;
    }

    .brand small {
        max-width: 160px;
    }

    .nav-links a {
        padding: 9px 10px;
        font-size: 0.82rem;
    }
}

@media (max-width: 680px) {
    .section-shell,
    .navbar,
    .copyright {
        width: min(100% - 28px, 1180px);
    }

    .brand small {
        display: none;
    }

    .site-header {
        min-height: 0;
        padding-top: 84px;
    }

    .navbar {
        top: 10px;
        border-radius: 18px;
    }

    .navbar.is-scrolled {
        top: 8px;
    }

    h1 {
        font-size: clamp(2.65rem, 16vw, 4.4rem);
    }

    h2 {
        font-size: clamp(2rem, 11vw, 3.2rem);
    }

    .hero-actions,
    .btn {
        width: 100%;
    }

    .metrics,
    .vision-grid,
    .news-grid,
    .form-row,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .vision,
    .program,
    .news,
    .membership,
    .adhesion-hero,
    .contribution,
    .mobile-app {
        padding: 68px 0;
    }

    .mobile-app-inner {
        gap: 36px;
    }

    .app-feature-grid,
    .payment-logos {
        grid-template-columns: 1fr;
    }

    .phone-shell {
        border-radius: 30px;
        padding: 12px;
    }

    .phone-screen {
        min-height: 620px;
        padding: 48px 14px 16px;
        border-radius: 22px;
    }

    .member-card-preview {
        min-height: 142px;
        padding: 16px;
    }

    .app-balance-card strong {
        font-size: 1.7rem;
    }

    .payment-logos {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin: 18px 0;
    }

    .method-logo {
        min-height: 82px;
        gap: 6px;
        padding: 8px 5px;
    }

    .method-logo img {
        width: 42px;
        height: 42px;
        border-radius: 8px;
    }

    .method-mpesa img,
    .method-orange img {
        width: 50px;
        height: 42px;
    }

    .method-logo span {
        font-size: 0.64rem;
        line-height: 1.1;
    }

    .notice {
        align-items: flex-start;
        flex-direction: column;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        min-height: 52px;
        padding: 12px 14px;
    }

    .whatsapp-float span {
        display: none;
    }

    .back-to-top {
        right: 14px;
        bottom: 76px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 360px) {
    .payment-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-media img,
    .hero-media video,
    .status-spinner,
    .president-feature::after,
    .president-tile::after,
    .president-feature img,
    .president-tile,
    .president-tile img,
    .whatsapp-float,
    .back-to-top,
    .phone-shell {
        animation: none;
        opacity: 1;
        transform: none;
    }
}