:root{
  --navy:#1E3A5F;
  --navy-2:#274B76;
  --navy-3:#31608F;
  --marigold:#E8A33D;
  --marigold-dark:#C97F1E;
  --green:#3F8F6B;
  --green-bright:#4FAE84;
  --paper:#F1EBDD;
  --paper-2:#F8F5EE;
  --ink-text:#1E2430;
  --muted:#646A7C;
  --line:rgba(30,58,95,0.14);
  --line-light:rgba(248,245,238,0.2);
  --shadow:0 18px 40px -18px rgba(30,58,95,0.32);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0; background:var(--paper-2); color:var(--ink-text); font-family:'Inter', sans-serif; -webkit-font-smoothing:antialiased; overflow-x:hidden;}
h1,h2,h3,h4{font-family:'Fraunces', serif; font-weight:700; margin:0; letter-spacing:-0.01em;}
.mono{font-family:'IBM Plex Mono', monospace;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
button{font-family:inherit;}
.wrap{max-width:1180px; margin:0 auto; padding:0 28px;}
@media (max-width:640px){ .wrap{padding:0 18px;} }
a:focus-visible, button:focus-visible{outline:2px solid var(--green-bright); outline-offset:3px;}
@media (prefers-reduced-motion: reduce){ *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;} html{scroll-behavior:auto;} }

/* Nav */
.nav{position:sticky; top:0; z-index:60; background:rgba(30,58,95,0.97); backdrop-filter:blur(6px); border-bottom:1px solid var(--line-light);}
.nav-inner{max-width:1180px; margin:0 auto; padding:16px 28px; display:flex; align-items:center; justify-content:space-between;}
.brand{color:var(--paper-2); font-family:'Fraunces', serif; font-weight:700; font-size:1.28rem; display:flex; align-items:center; gap:10px;}
.brand .mark{width:30px; height:30px; border-radius:50%; background:var(--marigold); color:var(--navy); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:0.85rem;}
.nav-links{display:flex; align-items:center; gap:28px;}
.nav-links a, .nav-links button.navlink{color:var(--paper-2); opacity:0.85; font-size:0.92rem; font-weight:500; background:none; border:none; cursor:pointer; padding:0;}
.nav-links a:hover, .nav-links button.navlink:hover{opacity:1;}
.nav-cta{background:var(--marigold); color:var(--navy); padding:9px 18px; border-radius:6px; font-weight:700; font-size:0.88rem; border:none; cursor:pointer;}
.nav-cta:hover{background:var(--marigold-dark); color:#fff;}
.nav-toggle{display:none; background:none; border:none; color:var(--paper-2); font-size:1.4rem; cursor:pointer;}
@media (max-width:860px){
  .nav-links{position:absolute; top:100%; left:0; right:0; background:var(--navy); flex-direction:column; align-items:stretch; padding:10px 28px 22px; gap:16px; display:none; border-bottom:1px solid var(--line-light);}
  .nav-links.open{display:flex;}
  .nav-toggle{display:block;}
  .nav-cta{align-self:flex-start;}
}

/* Hero */
.hero{background:radial-gradient(1100px 480px at 88% -10%, rgba(232,163,61,0.16), transparent), var(--navy); color:var(--paper-2); padding:80px 0 56px; position:relative; overflow:hidden;}
.hero-grid{display:grid; grid-template-columns:1.05fr 0.95fr; gap:50px; align-items:center;}
@media (max-width:900px){ .hero-grid{grid-template-columns:1fr;} }
.eyebrow{font-family:'IBM Plex Mono'; font-size:0.72rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--marigold); margin-bottom:16px; display:flex; align-items:center; gap:10px;}
.eyebrow::before{content:''; width:22px; height:1px; background:var(--marigold);}
.hero h1{font-size:clamp(2.2rem, 4.3vw, 3.4rem); line-height:1.1; color:var(--paper-2);}
.hero h1 em{font-style:italic; color:var(--marigold); font-weight:600;}
.hero p.lede{font-size:1.06rem; line-height:1.65; color:rgba(248,245,238,0.8); margin:20px 0 28px; max-width:480px;}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap;}
.btn{display:inline-flex; align-items:center; gap:8px; padding:13px 24px; border-radius:6px; font-weight:700; font-size:0.94rem; border:1px solid transparent; cursor:pointer; transition:transform 0.15s, background 0.2s;}
.btn-primary{background:var(--marigold); color:var(--navy);}
.btn-primary:hover{transform:translateY(-1px); background:var(--marigold-dark); color:#fff;}
.btn-ghost{border-color:rgba(248,245,238,0.35); color:var(--paper-2); background:transparent;}
.btn-ghost:hover{border-color:var(--paper-2); background:rgba(248,245,238,0.08);}
.hero-meta{margin-top:30px; display:flex; gap:26px; flex-wrap:wrap; font-size:0.8rem; color:rgba(248,245,238,0.62);}
.hero-meta b{color:var(--paper-2); font-size:1rem; display:block; font-family:'Fraunces'; font-weight:700;}

/* Match card mock (hero visual) */
.matchcard{position:relative; background:var(--navy-2); border:1px solid rgba(232,163,61,0.3); border-radius:12px; padding:24px 24px 20px; box-shadow:var(--shadow); max-width:400px; margin:0 auto;}
.matchcard-head{display:flex; justify-content:space-between; align-items:flex-start; border-bottom:1px solid rgba(248,245,238,0.14); padding-bottom:14px; margin-bottom:16px;}
.matchcard-head .name{color:var(--paper-2); font-family:'Fraunces'; font-weight:700; font-size:1.02rem;}
.matchcard-head .sub{color:rgba(248,245,238,0.55); font-size:0.72rem; margin-top:4px;}
.matchcard-head .pct{text-align:right; font-size:0.72rem; color:rgba(248,245,238,0.55);}
.matchcard-head .pct b{color:var(--marigold); font-family:'Fraunces'; font-size:1.1rem; display:block;}
.match-row{display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid rgba(248,245,238,0.08);}
.match-row:last-child{border-bottom:none;}
.match-row .dot{width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.85rem; flex-shrink:0;}
.dot.done{background:rgba(79,174,132,0.18); color:var(--green-bright);}
.dot.review{background:rgba(232,163,61,0.18); color:var(--marigold);}
.dot.draft{background:rgba(248,245,238,0.1); color:rgba(248,245,238,0.5);}
.match-row .txt{flex:1;}
.match-row .t{color:var(--paper-2); font-size:0.85rem; font-weight:600;}
.match-row .s{color:rgba(248,245,238,0.5); font-size:0.72rem; margin-top:2px;}

/* Ledger strip */
.ledger{background:var(--paper); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.ledger-inner{display:grid; grid-template-columns:repeat(4,1fr);}
.ledger-item{padding:22px 26px; border-right:1px solid var(--line);}
.ledger-item:last-child{border-right:none;}
.ledger-item .num{font-family:'Fraunces'; font-weight:700; font-size:1.55rem; color:var(--navy-3);}
.ledger-item .lbl{font-size:0.78rem; color:var(--muted); margin-top:4px;}
@media (max-width:800px){ .ledger-inner{grid-template-columns:repeat(2,1fr);} .ledger-item:nth-child(2){border-right:none;} }

section{padding:84px 0;}
.section-head{max-width:640px; margin-bottom:44px;}
.section-head .eyebrow{color:var(--green);}
.section-head .eyebrow::before{background:var(--green);}
.section-head h2{font-size:clamp(1.75rem, 2.9vw, 2.4rem); color:var(--navy); line-height:1.18;}
.section-head p{color:var(--muted); font-size:1.02rem; margin-top:14px; line-height:1.6;}
.light-on-dark{background:var(--navy); color:var(--paper-2);}
.light-on-dark .section-head h2{color:var(--paper-2);}
.light-on-dark .section-head p{color:rgba(248,245,238,0.7);}
.journey-eyebrow{color:var(--marigold);}
.journey-eyebrow::before{background:var(--marigold);}

/* Explore */
.tier-tabs{display:flex; gap:10px; margin-bottom:24px; flex-wrap:wrap;}
.tier-tab{padding:10px 20px; border:1px solid var(--line); border-radius:6px; background:transparent; font-size:0.85rem; font-weight:600; color:var(--muted); cursor:pointer; transition:all 0.15s;}
.tier-tab.active{background:var(--navy); color:var(--paper-2); border-color:var(--navy);}
.chips{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:30px;}
.chip{padding:7px 14px; border-radius:20px; border:1px solid var(--line); background:var(--paper-2); font-size:0.8rem; color:var(--ink-text); cursor:pointer; transition:all 0.15s;}
.chip.active{background:var(--green); color:#fff; border-color:var(--green);}
.opp-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
@media (max-width:960px){ .opp-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .opp-grid{grid-template-columns:1fr;} }
.opp-card{background:#fff; border:1px solid var(--line); border-radius:10px; padding:22px; display:flex; flex-direction:column; gap:12px; transition:transform 0.18s, box-shadow 0.18s;}
.opp-card:hover{transform:translateY(-3px); box-shadow:0 16px 30px -16px rgba(30,58,95,0.22);}
.opp-top{display:flex; justify-content:space-between; align-items:flex-start; gap:10px;}
.badge{font-size:0.68rem; text-transform:uppercase; letter-spacing:0.04em; padding:4px 9px; border-radius:20px; font-weight:700;}
.badge.scholarship{background:rgba(63,143,107,0.14); color:var(--green);}
.badge.fellowship{background:rgba(232,163,61,0.18); color:var(--marigold-dark);}
.badge.grant{background:rgba(39,75,118,0.14); color:var(--navy-3);}
.badge.loan{background:rgba(30,36,48,0.08); color:var(--ink-text);}
.badge.internship{background:rgba(63,143,107,0.1); color:var(--green);}
.match-tag{font-size:0.72rem; font-weight:700; color:var(--green);}
.opp-card h4{font-size:1.04rem; line-height:1.3; color:var(--ink-text);}
.opp-card .provider{font-size:0.82rem; color:var(--muted);}
.opp-meta{display:flex; justify-content:space-between; font-size:0.78rem; color:var(--muted); border-top:1px dashed var(--line); padding-top:12px; margin-top:auto;}
.opp-meta .amt{color:var(--ink-text); font-weight:700;}
.opp-card .apply{margin-top:6px; text-align:center; padding:10px; border:1px solid var(--navy); border-radius:6px; font-size:0.83rem; font-weight:700; color:var(--navy); background:transparent; cursor:pointer;}
.opp-card .apply:hover{background:var(--navy); color:#fff;}

/* Journey */
.journey{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
@media (max-width:900px){ .journey{grid-template-columns:1fr; gap:12px;} }
.journey-step{background:var(--navy-2); border:1px solid rgba(232,163,61,0.22); border-radius:10px; padding:24px 20px; opacity:0; transform:translateY(16px); transition:opacity 0.5s ease, transform 0.5s ease;}
.journey-step.in{opacity:1; transform:translateY(0);}
.journey-step .jnum{width:42px; height:42px; border-radius:50%; border:1.5px solid var(--marigold); display:flex; align-items:center; justify-content:center; color:var(--marigold); font-weight:700; margin-bottom:16px; font-family:'Fraunces';}
.journey-step h4{color:var(--paper-2); font-size:1.02rem; margin-bottom:8px;}
.journey-step p{color:rgba(248,245,238,0.65); font-size:0.87rem; line-height:1.55; margin:0;}

/* Dashboard */
.dash{display:grid; grid-template-columns:280px 1fr; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff; box-shadow:var(--shadow);}
@media (max-width:800px){ .dash{grid-template-columns:1fr;} }
.dash-side{background:var(--navy); color:var(--paper-2); padding:24px 20px;}
.dash-side .who{font-family:'Fraunces'; font-weight:700; font-size:1.08rem;}
.dash-side .role{font-size:0.75rem; color:rgba(248,245,238,0.55); margin:4px 0 22px;}
.vault-item{display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid rgba(248,245,238,0.12); font-size:0.82rem;}
.vault-item .ok{color:var(--green-bright); font-size:0.72rem; font-weight:700;}
.vault-item .warn{color:var(--marigold); font-size:0.72rem; font-weight:700;}
.dash-main{padding:26px 28px;}
.dash-main h3{font-size:1.18rem; margin-bottom:4px;}
.dash-main .sub{color:var(--muted); font-size:0.85rem; margin-bottom:22px;}
.kanban{display:grid; grid-template-columns:repeat(4,1fr); gap:14px;}
@media (max-width:640px){ .kanban{grid-template-columns:1fr;} }
.kcol h5{font-size:0.74rem; text-transform:uppercase; letter-spacing:0.03em; color:var(--muted); margin-bottom:10px; padding-bottom:8px; border-bottom:2px solid var(--line);}
.kcard{background:var(--paper-2); border:1px solid var(--line); border-radius:8px; padding:12px; margin-bottom:10px; font-size:0.82rem;}
.kcard .t{font-weight:700; margin-bottom:6px;}
.kcard .d{color:var(--muted); font-size:0.72rem;}
.kcol[data-col="disbursed"] .kcard{border-left:3px solid var(--green);}
.kcol[data-col="review"] .kcard{border-left:3px solid var(--marigold);}
.kcol[data-col="applied"] .kcard{border-left:3px solid var(--navy-3);}
.kcol[data-col="draft"] .kcard{border-left:3px dashed var(--muted);}

/* Trust */
.trust-grid{display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center;}
@media (max-width:860px){ .trust-grid{grid-template-columns:1fr;} }
.badge-circle{width:64px; height:64px; border-radius:50%; background:var(--green); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.5rem; margin-bottom:22px;}
.trust-list{list-style:none; padding:0; margin:20px 0 0;}
.trust-list li{display:flex; gap:14px; padding:14px 0; border-bottom:1px solid var(--line);}
.trust-list .n{font-family:'IBM Plex Mono'; color:var(--green); font-weight:700; font-size:0.85rem; min-width:24px;}
.trust-list .txt b{display:block; margin-bottom:3px;}
.trust-list .txt span{color:var(--muted); font-size:0.88rem;}

/* Parents */
.parents{background:var(--paper);}
.faq-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:18px;}
@media (max-width:800px){ .faq-grid{grid-template-columns:1fr;} }
.faq-card{background:#fff; border:1px solid var(--line); border-radius:10px; padding:22px;}
.faq-card h4{font-size:1rem; margin-bottom:8px; color:var(--navy);}
.faq-card p{color:var(--muted); font-size:0.88rem; line-height:1.6; margin:0;}

/* Guidance */
.guide-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
@media (max-width:860px){ .guide-grid{grid-template-columns:1fr;} }
.guide-card{border:1px solid var(--line); border-radius:10px; padding:26px; background:#fff;}
.guide-card .icon{width:38px; height:38px; border-radius:50%; background:rgba(39,75,118,0.1); margin-bottom:16px; display:flex; align-items:center; justify-content:center; font-weight:700; color:var(--navy-3);}
.guide-card h4{font-size:1.02rem; margin-bottom:8px;}
.guide-card p{color:var(--muted); font-size:0.88rem; line-height:1.55; margin:0 0 14px;}
.guide-card a, .guide-card button.linklike{font-size:0.82rem; font-weight:700; color:var(--green); border-bottom:1px solid var(--green); background:none; border-left:none; border-right:none; border-top:none; padding:0; cursor:pointer;}

/* CTA */
.cta-band{background:var(--green); color:#fff; text-align:center; padding:64px 0;}
.cta-band h2{color:#fff; font-size:clamp(1.6rem,2.8vw,2.2rem); max-width:640px; margin:0 auto 16px;}
.cta-band p{color:rgba(255,255,255,0.85); max-width:520px; margin:0 auto 26px;}
.cta-band .btn-primary{background:var(--paper-2); color:var(--navy);}
.cta-band .btn-primary:hover{background:#fff;}

/* Footer */
footer{background:var(--navy); color:rgba(248,245,238,0.62); padding:54px 0 28px;}
.foot-grid{display:grid; grid-template-columns:2fr 1fr 1fr 1fr 1fr; gap:30px;}
@media (max-width:900px){ .foot-grid{grid-template-columns:1fr 1fr;} }
.foot-grid h5{font-size:0.74rem; text-transform:uppercase; letter-spacing:0.04em; color:var(--paper-2); margin-bottom:14px;}
.foot-grid a, .foot-grid button.footlink{display:block; width:100%; text-align:left; font-size:0.85rem; padding:5px 0; color:rgba(248,245,238,0.65); background:none; border:none; cursor:pointer; font-family:inherit;}
.foot-grid a:hover, .foot-grid button.footlink:hover{color:var(--paper-2);}
.foot-bottom{border-top:1px solid rgba(248,245,238,0.12); margin-top:36px; padding-top:20px; display:flex; justify-content:space-between; font-size:0.74rem; flex-wrap:wrap; gap:10px;}

/* Modal */
.modal-overlay{position:fixed; inset:0; background:rgba(20,26,38,0.55); display:none; align-items:center; justify-content:center; padding:20px; z-index:100;}
.modal-overlay.open{display:flex;}
.modal-box{background:#fff; border-radius:12px; max-width:520px; width:100%; max-height:85vh; overflow-y:auto; padding:30px 30px 28px; position:relative; box-shadow:0 30px 60px -20px rgba(0,0,0,0.4);}
.modal-close{position:absolute; top:16px; right:16px; width:32px; height:32px; border-radius:50%; border:1px solid var(--line); background:var(--paper-2); font-size:1rem; cursor:pointer; color:var(--muted);}
.modal-close:hover{background:var(--line);}
.modal-box h3{font-size:1.3rem; color:var(--navy); margin-bottom:14px; padding-right:30px;}
.modal-box p{color:var(--muted); font-size:0.92rem; line-height:1.65; margin:0 0 12px;}
.modal-box ul{margin:0 0 12px; padding-left:20px; color:var(--muted); font-size:0.92rem; line-height:1.6;}
.modal-box .tag{display:inline-block; font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; color:var(--green); background:rgba(63,143,107,0.1); padding:4px 10px; border-radius:20px; margin-bottom:14px;}
.modal-box .cta-line{margin-top:18px; padding-top:16px; border-top:1px solid var(--line); font-size:0.88rem; color:var(--navy); font-weight:600;}

/* ---------- Mobile refinements ---------- */
@media (max-width:900px){
  .foot-grid > div:first-child{grid-column:1 / -1; margin-bottom:8px;}
}
@media (max-width:640px){
  section{padding:52px 0;}
  .hero{padding:56px 0 38px;}
  .hero-grid{gap:34px;}
  .hero-meta{gap:20px; margin-top:26px;}
  .ledger-inner{}
  .ledger-item{padding:16px 16px;}
  .ledger-item .num{font-size:1.3rem;}
  .section-head{margin-bottom:30px;}
  .opp-card{padding:18px;}
  .guide-card{padding:20px;}
  .faq-card{padding:18px;}
  .dash-main{padding:20px 18px;}
  .dash-side{padding:20px 18px;}
  .nav-inner{padding:14px 18px;}
  .brand{font-size:1.12rem;}
  .brand .mark{width:26px; height:26px; font-size:0.75rem;}
  .modal-box{padding:22px 18px 20px; border-radius:10px;}
  .modal-box h3{font-size:1.15rem;}
  .cta-band{padding:52px 0;}
  footer{padding:44px 0 24px;}
  .foot-bottom{flex-direction:column; align-items:flex-start;}
}
@media (max-width:520px){
  .foot-grid{grid-template-columns:1fr; gap:26px;}
  .foot-grid > div:first-child{grid-column:auto; margin-bottom:0;}
  .hero-actions{flex-direction:column; align-items:stretch;}
  .hero-actions .btn{width:100%; justify-content:center;}
  .cta-band .btn{width:100%; justify-content:center;}
  .tier-tabs{gap:8px;}
  .tier-tab{flex:1; text-align:center; padding:10px 12px;}
  .matchcard{padding:20px 18px 16px;}
}
@media (max-width:380px){
  .hero h1{font-size:1.9rem;}
  .eyebrow{font-size:0.66rem;}
  .wrap{padding:0 16px;}
}
