:root {
  --brown: #835024;
  --brown-dark: #633819;
  --navy: #10172d;
  --blue: #2b5ec7;
  --cream: #f5f2ed;
  --sand: #ead8c2;
  --line: #e7e3dd;
  --muted: #6f7179;
  --green: #148157;
  --amber: #c48215;
  --white: #fff;
  --shadow: 0 22px 55px rgba(16, 23, 45, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--navy); background: #fff; font-family: Montserrat, Arial, sans-serif; font-size: 16px; line-height: 1.55; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.demo-ribbon { padding: 7px 16px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-align: center; }
.news-strip { background: var(--brown); color: #fff; }
.news-inner { max-width: 1120px; min-height: 42px; margin: auto; display: flex; align-items: center; gap: 18px; padding: 0 24px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.news-label { color: #ffd793; font-size: .68rem; letter-spacing: .14em; }
.news-copy { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.socials { display: flex; gap: 7px; }
.socials i { width: 27px; height: 27px; display: grid; place-items: center; background: rgba(255,255,255,.13); font-size: .65rem; font-style: normal; font-weight: 800; }
.brand-row { max-width: 1120px; min-height: 93px; margin: auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; }
.brand-logo { display: block; width: 385px; max-width: 100%; height: auto; }
.flag { position: relative; width: 42px; height: 28px; display: flex; box-shadow: 0 0 0 1px #ddd; }
.flag b, .mini-flag b { flex: 1; }
.flag b:nth-child(1), .mini-flag b:nth-child(1) { background: #16864a; }
.flag b:nth-child(2), .mini-flag b:nth-child(2) { background: #f1c735; }
.flag b:nth-child(3), .mini-flag b:nth-child(3) { background: #db2c34; }
.flag em { position: absolute; inset: 4px 14px; color: #16864a; font-size: .72rem; font-style: normal; }
.brand-rule { width: 1px; height: 45px; margin: 0 14px; background: #ddd; }
.der-symbol { margin-right: 5px; font-size: 2.35rem; line-height: 1; transform: rotate(-20deg); }
.der-word { font-size: 2rem; font-weight: 800; letter-spacing: -.08em; }
.der-word span { font-size: 1rem; letter-spacing: -.05em; }
.brand-name { margin-left: 11px; padding-left: 11px; border-left: 1px solid #a58c79; color: var(--brown); font-size: .56rem; font-weight: 700; line-height: 1.25; }
.header-side { display: flex; align-items: center; gap: 28px; }
.secure { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: .75rem; font-weight: 700; }
.secure svg { width: 18px; }
.menu-button { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: var(--navy); font-weight: 700; }
.menu-button span { color: var(--brown); font-size: 1.55rem; line-height: 1; }
.main-nav { min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 35px; padding: 8px 24px; border-top: 1px solid #eee; box-shadow: 0 7px 18px rgba(0,0,0,.08); color: #53545a; font-size: .85rem; font-weight: 600; }
.candidate-active .main-nav { display: none; }
.main-nav a { position: relative; }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 2px; background: var(--brown); }
.outline-button { padding: 11px 18px; border: 1px solid var(--brown); border-radius: 3px; background: #fff; color: var(--brown); font-size: .82rem; font-weight: 700; }

.lookup-section { min-height: 565px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(370px,.7fr); gap: 70px; align-items: center; padding: 70px max(24px, calc((100vw - 1120px)/2)); background: radial-gradient(circle at 83% 38%, rgba(255,255,255,.10), transparent 20%), linear-gradient(112deg, #74401b 0%, #925d2c 49%, #6a391d 100%); color: white; overflow: hidden; position: relative; }
.lookup-section::before { content: ""; position: absolute; width: 510px; height: 510px; right: -210px; bottom: -270px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; box-shadow: 0 0 0 75px rgba(255,255,255,.025), 0 0 0 150px rgba(255,255,255,.018); }
.lookup-content, .lookup-card { position: relative; z-index: 1; }
.eyebrow, .section-heading > span, .overline, .breadcrumb { font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: #f5d2a6; }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: #f5d2a6; }
h1 { max-width: 650px; margin: 16px 0 20px; font-size: clamp(2.45rem, 4vw, 4.4rem); line-height: 1.05; letter-spacing: -.045em; }
h1 span { color: #f2c685; }
.hero-copy { max-width: 610px; color: rgba(255,255,255,.86); font-size: 1rem; line-height: 1.8; }
.trust-row { display: flex; gap: 26px; margin-top: 30px; font-size: .82rem; font-weight: 700; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row svg { width: 18px; height: 18px; padding: 3px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }

.lookup-card { padding: 34px; border-top: 4px solid var(--navy); background: #fff; box-shadow: var(--shadow); color: var(--navy); }
.card-icon { width: 47px; height: 47px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; background: #f1e8df; color: var(--brown); }
.card-icon svg { width: 24px; }
.lookup-card h2 { margin: 0 0 5px; font-size: 1.45rem; }
.lookup-card > p { margin: 0 0 23px; color: var(--muted); font-size: .84rem; }
label { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 700; }
.phone-field { height: 53px; display: flex; border: 1px solid #ccd0d6; border-radius: 2px; overflow: hidden; transition: border .2s, box-shadow .2s; }
.phone-field:focus-within { border-color: var(--brown); box-shadow: 0 0 0 3px rgba(131,80,36,.1); }
.country { min-width: 103px; display: flex; align-items: center; justify-content: center; gap: 8px; border-right: 1px solid #ddd; background: #f7f7f7; font-size: .82rem; font-weight: 700; }
.senegal-flag { font-size: 1.35rem; line-height: 1; }
.mini-flag { width: 22px; height: 15px; display: flex; }
input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 15px; color: var(--navy); font-size: .95rem; }
input::placeholder { color: #aaa; }
.hint { margin: 7px 0 0 !important; color: #898b91 !important; font-size: .68rem !important; }
.error { min-height: 18px; margin: 5px 0 !important; color: #b5222d !important; font-size: .72rem !important; font-weight: 600; }
.primary-button { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 18px; border: 0; border-radius: 2px; background: var(--brown); color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .02em; transition: background .2s, transform .2s; }
.primary-button:hover { background: var(--brown-dark); }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { cursor: wait; opacity: .72; transform: none; }
.demo-numbers { margin-top: 18px; padding-top: 15px; border-top: 1px solid #eee; color: #8b8c91; font-size: .66rem; }
.demo-numbers span { display: block; margin-bottom: 7px; font-weight: 700; }
.demo-numbers button { margin: 0 4px 5px 0; padding: 4px 7px; border: 1px solid #ddd; border-radius: 2px; background: #fafafa; color: var(--brown); font-size: .62rem; font-weight: 700; }

.steps-section { padding: 72px max(24px, calc((100vw - 1120px)/2)); background: var(--cream); }
.section-heading { text-align: center; }
.section-heading > span { color: var(--brown); }
.section-heading h2 { margin: 8px 0 35px; font-size: clamp(1.8rem,3vw,2.7rem); letter-spacing: -.035em; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); background: #fff; box-shadow: 0 12px 34px rgba(20,20,30,.06); }
.steps-grid article { min-height: 145px; display: flex; gap: 18px; align-items: center; padding: 28px; border-right: 1px solid var(--line); }
.steps-grid article:last-child { border-right: 0; }
.steps-grid strong { color: #d9c2ae; font-size: 2.6rem; line-height: 1; }
.steps-grid h3 { margin: 0 0 7px; font-size: .95rem; }
.steps-grid p { margin: 0; color: var(--muted); font-size: .78rem; }

.dashboard { padding: 65px max(24px, calc((100vw - 1120px)/2)) 80px; background: #f5f6f8; }
.dashboard[hidden] { display: none; }
.dashboard-top { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.breadcrumb { color: var(--brown); }
.dashboard-top h2 { margin: 7px 0 2px; font-size: 2.1rem; letter-spacing: -.035em; }
.dashboard-top p { margin: 0; color: var(--muted); font-size: .85rem; }
.change-user { border: 0; background: transparent; color: var(--brown); font-size: .78rem; font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: 275px 1fr; gap: 24px; align-items: start; }
.profile-card, .project-card, .progress-card, .action-card { background: #fff; border: 1px solid #e9e9e9; box-shadow: 0 10px 30px rgba(16,23,45,.045); }
.profile-card { padding: 28px; text-align: center; }
.avatar { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; background: var(--brown); color: #fff; font-size: 1.25rem; font-weight: 800; }
.profile-card h3 { margin: 0 0 3px; font-size: 1rem; }
.profile-card > p { margin: 0 0 23px; color: var(--muted); font-size: .76rem; }
.reference { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.reference span, .reference strong { display: block; }
.reference span { margin-bottom: 4px; color: var(--muted); font-size: .65rem; }
.reference strong { font-size: .8rem; }
.profile-note { display: flex; gap: 9px; margin-top: 18px; color: var(--muted); text-align: left; font-size: .64rem; line-height: 1.5; }
.profile-note svg { width: 18px; flex: 0 0 18px; color: var(--brown); }
.project-column { display: grid; gap: 18px; }
.project-card { padding: 27px 30px; border-top: 4px solid var(--brown); }
.project-header { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.overline { color: var(--brown); font-size: .62rem; }
.project-header h3 { margin: 5px 0 25px; font-size: 1.35rem; }
.status-badge { padding: 7px 11px; border-radius: 20px; font-size: .67rem; font-weight: 800; white-space: nowrap; }
.status-badge.approved { background: #e2f3eb; color: #08633f; }
.status-badge.review { background: #fff0d8; color: #87570b; }
.status-badge.funded { background: #e4edff; color: #234ea2; }
.project-stats { display: grid; grid-template-columns: 1.2fr 1fr .8fr; border-top: 1px solid var(--line); }
.project-stats div { padding: 20px 20px 0 0; }
.project-stats span, .project-stats strong { display: block; }
.project-stats span { margin-bottom: 4px; color: var(--muted); font-size: .65rem; }
.project-stats strong { font-size: .82rem; }
.project-stats div:first-child strong { font-size: 1.2rem; color: var(--brown); }
.progress-card { padding: 25px 30px; }
.progress-card h3 { margin: 0 0 22px; font-size: .95rem; }
.timeline { display: grid; grid-template-columns: repeat(4,1fr); }
.timeline-step { position: relative; padding-top: 23px; color: #92949a; font-size: .65rem; font-weight: 600; }
.timeline-step::before { content: ""; position: absolute; top: 4px; left: 0; width: 12px; height: 12px; border: 3px solid #d8d9dc; border-radius: 50%; background: #fff; z-index: 1; }
.timeline-step::after { content: ""; position: absolute; top: 10px; left: 16px; right: 0; height: 2px; background: #dedfe2; }
.timeline-step:last-child::after { display: none; }
.timeline-step.done, .timeline-step.current { color: var(--navy); }
.timeline-step.done::before { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px #fff; }
.timeline-step.done::after { background: var(--green); }
.timeline-step.current::before { border-color: var(--brown); background: #fff; }
.action-card { display: grid; grid-template-columns: 1fr 225px; align-items: center; overflow: hidden; }
.action-copy { display: flex; gap: 17px; padding: 28px 30px; }
.action-icon { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 45px; border-radius: 50%; background: #f5e9dd; color: var(--brown); }
.action-icon svg { width: 23px; }
.action-copy h3 { margin: 4px 0 6px; font-size: 1rem; }
.action-copy p { margin: 0; color: var(--muted); font-size: .75rem; }
.fee-block { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 22px; background: var(--navy); color: #fff; text-align: center; }
.fee-block > span { color: #bbc1d1; font-size: .65rem; }
.fee-block > strong { margin: 3px 0 12px; font-size: 1.3rem; }
.payment-button { min-height: 43px; font-size: .68rem; }
.fee-block small { margin-top: 8px; color: #aeb4c3; font-size: .55rem; line-height: 1.3; }
.action-card.no-payment { grid-template-columns: 1fr; border-left: 4px solid var(--amber); }
.action-card.complete { grid-template-columns: 1fr; border-left: 4px solid var(--green); }
.action-card.no-payment .fee-block, .action-card.complete .fee-block { display: none; }

.help-band { min-height: 140px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px max(24px, calc((100vw - 1120px)/2)); background: #ece3da; }
.help-band > div:first-child { display: flex; align-items: center; gap: 18px; }
.help-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--brown); border-radius: 50%; color: var(--brown); font-weight: 800; }
.help-band h2 { margin: 0; font-size: 1.15rem; }
.help-band p { margin: 3px 0 0; color: #6f6258; font-size: .76rem; }
.contact-items { display: flex; gap: 22px; color: var(--brown); font-size: .78rem; font-weight: 700; }
footer { min-height: 100px; display: flex; align-items: center; gap: 25px; padding: 25px max(24px, calc((100vw - 1120px)/2)); background: #161828; color: #afb2bd; font-size: .68rem; }
footer > div:first-child { display: flex; align-items: center; gap: 15px; }
footer strong { color: #fff; font-size: 1.3rem; }

dialog { width: min(465px, calc(100% - 32px)); padding: 36px; border: 0; border-top: 5px solid #00a7a5; box-shadow: 0 30px 90px rgba(0,0,0,.32); color: var(--navy); }
dialog::backdrop { background: rgba(12,15,29,.72); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 12px; right: 15px; border: 0; background: transparent; color: #777; font-size: 1.5rem; }
.cinetpay-mark { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: #222; }
.cinetpay-mark span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #00a7a5; color: #fff; font-weight: 800; }
.cinetpay-mark strong { font-size: 1.2rem; }
.demo-pill { display: inline-block; padding: 4px 8px; border-radius: 20px; background: #fff1ce; color: #865a0c; font-size: .6rem; font-weight: 800; letter-spacing: .08em; }
dialog h2 { margin: 12px 0 18px; font-size: 1.35rem; }
.payment-summary { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 16px; background: #f5f6f8; font-size: .76rem; }
.payment-summary span { color: var(--muted); }
dialog p { color: var(--muted); font-size: .76rem; line-height: 1.7; }
.cinetpay-button { width: 100%; min-height: 48px; border: 0; background: #00a7a5; color: #fff; font-weight: 800; }
.cancel-button { width: 100%; margin-top: 9px; padding: 8px; border: 0; background: transparent; color: #777; font-size: .75rem; }
.toast { position: fixed; z-index: 10; right: 24px; bottom: 24px; display: flex; gap: 12px; align-items: center; padding: 15px 18px; border-left: 4px solid var(--green); background: #fff; box-shadow: var(--shadow); transform: translateY(140%); opacity: 0; transition: .35s ease; }
.toast.show { transform: none; opacity: 1; }
.toast > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; }
.toast strong, .toast small { display: block; }
.toast strong { font-size: .75rem; }
.toast small { color: var(--muted); font-size: .62rem; }

@media (max-width: 900px) {
  .main-nav { gap: 18px; }
  .main-nav a { display: none; }
  .lookup-section { grid-template-columns: 1fr; gap: 35px; padding-top: 55px; }
  .lookup-content { text-align: center; }
  .eyebrow, .trust-row { justify-content: center; }
  .hero-copy { margin-inline: auto; }
  .lookup-card { width: min(100%, 520px); margin: auto; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .profile-card { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; text-align: left; }
  .avatar { grid-row: span 2; }
  .profile-card > p { margin-bottom: 12px; }
  .reference, .profile-note { grid-column: 1/-1; }
}

@media (max-width: 650px) {
  .demo-ribbon { font-size: .58rem; }
  .news-strip, .secure, .brand-name, .brand-rule { display: none; }
  .brand-row { min-height: 72px; padding: 12px 18px; }
  .brand-logo { width: 250px; }
  .flag { width: 34px; height: 23px; }
  .der-symbol { margin-left: 10px; font-size: 1.8rem; }
  .der-word { font-size: 1.55rem; }
  .main-nav { min-height: 54px; justify-content: flex-end; padding-inline: 18px; }
  .menu-button { font-size: .76rem; }
  .lookup-section { min-height: 0; padding: 48px 18px; }
  h1 { font-size: 2.5rem; }
  .trust-row { gap: 13px; font-size: .7rem; }
  .lookup-card { padding: 26px 20px; }
  .demo-numbers button { display: inline-block; }
  .steps-section, .dashboard { padding-inline: 18px; }
  .dashboard-top { align-items: start; gap: 15px; }
  .dashboard-top h2 { font-size: 1.65rem; }
  .change-user { text-align: right; }
  .project-header { display: block; }
  .status-badge { display: inline-block; margin-bottom: 18px; }
  .project-header h3 { margin-bottom: 14px; }
  .project-stats { grid-template-columns: 1fr 1fr; }
  .project-stats div:last-child { grid-column: 1/-1; }
  .timeline { grid-template-columns: 1fr; gap: 8px; }
  .timeline-step { min-height: 42px; padding: 0 0 0 29px; display: flex; align-items: start; }
  .timeline-step::before { top: 1px; }
  .timeline-step::after { top: 17px; left: 7px; width: 2px; height: 30px; }
  .action-card { grid-template-columns: 1fr; }
  .action-copy { padding: 24px 20px; }
  .help-band, footer { align-items: flex-start; flex-direction: column; }
  .contact-items { flex-direction: column; gap: 5px; }
  footer { justify-content: center; }
}

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