/* styles.css */
:root{
  --navy:#1B3A5B;
  --blue:#2C5F8E;
  --green:#2FA36B;
  --lightblue:#EAF2FB;
  --tile:#E4EEF8;
  --grey:#5B6B7B;
  --border:#E3E8EF;
}
*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--navy);
  background:#fff;
  line-height:1.55;
}
a{color:inherit;text-decoration:none}
.container{max-width:1120px;margin:0 auto;padding:0 20px}

/* Top bar */
.topbar{background:var(--navy);color:#fff;font-size:13px}
.topbar .container{display:flex;justify-content:space-between;align-items:center;height:38px}
.topbar a{color:#dbe6f2}
.topbar a:hover{color:#fff}

/* Header */
.header{background:#fff;border-bottom:1px solid var(--border)}
.header .container{display:flex;justify-content:space-between;align-items:center;height:74px}
.brand{display:flex;align-items:center;gap:10px}
.logo-box{width:38px;height:38px;border-radius:8px;background:var(--blue);display:flex;align-items:center;justify-content:center}
.logo-box svg{width:22px;height:22px}
.wordmark{font-size:22px;font-weight:700}
.wordmark .g{color:var(--green)}
.nav{display:flex;align-items:center;gap:26px;font-size:15px}
.nav a:hover{color:var(--blue)}
.btn-portal{border:1px solid var(--blue);color:var(--blue);padding:9px 16px;border-radius:6px;font-weight:600}
.nav a.btn-portal:hover{background:var(--blue);color:#fff;border-color:var(--navy)}

/* Hero */
.hero{background:var(--blue);color:#fff;padding:70px 0}
.hero h1{font-size:44px;line-height:1.15;max-width:620px;margin-bottom:20px}
.hero p{max-width:600px;font-size:17px;color:#e6eef7;margin-bottom:30px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap}
.btn{padding:13px 22px;border-radius:6px;font-weight:600;font-size:15px;display:inline-block}
.btn-primary{background:var(--navy);color:#fff}
.btn-primary:hover{background:#152c45}
.btn-ghost{border:1px solid #cfe0f0;color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.12)}

/* Sections */
.section{padding:64px 0}
.section h2{font-size:30px;margin-bottom:12px}
.section .lead{color:var(--grey);max-width:640px;margin-bottom:36px}
.section.alt{background:var(--lightblue)}

/* Cards grid */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:24px}
.icon-tile{width:44px;height:44px;border-radius:10px;background:var(--tile);display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.icon-tile svg{width:22px;height:22px;stroke:var(--blue);fill:none;stroke-width:2}
.card h3{font-size:18px;margin-bottom:8px}
.card p{color:var(--grey);font-size:14px}

/* Stats */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.stat{background:#fff;border:1px solid var(--border);border-radius:10px;padding:22px}
.stat h3{font-size:20px;margin-bottom:6px}
.stat p{color:var(--grey);font-size:14px}

/* Footer */
.footer{background:#12283f;color:#c7d4e2;padding:48px 0 26px}
.footer-top{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px;margin-bottom:26px}
.footer .wordmark{color:#fff;margin-bottom:12px}
.footer h4{color:#fff;font-size:15px;margin-bottom:12px}
.footer a:hover{color:#fff}
.footer ul{list-style:none;font-size:14px;line-height:2}
.footer .small{font-size:13px;color:#9fb2c6;max-width:340px}
.footer-bottom{border-top:1px solid #24405c;padding-top:18px;font-size:13px;color:#9fb2c6}

/* Auth pages */
.auth-wrap{min-height:70vh;display:flex;align-items:center;justify-content:center;background:var(--lightblue);padding:40px 20px}
.auth-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:34px;width:100%;max-width:400px}
.auth-card h2{font-size:22px;margin-bottom:6px}
.auth-card .sub{color:var(--grey);font-size:14px;margin-bottom:22px}
.field{margin-bottom:16px}
.field label{display:block;font-size:13px;color:var(--grey);margin-bottom:6px}
.field input[type="text"],.field input[type="password"]{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:7px;font-size:15px}
.field input[type="text"]:focus,.field input[type="password"]:focus{outline:none;border-color:var(--blue)}
.field label.show-pass{margin-top:10px;margin-bottom:0;display:flex;align-items:center;gap:7px;font-size:13px;color:var(--grey);cursor:pointer;font-weight:400}
.field label.show-pass input{width:15px;height:15px;margin:0;cursor:pointer}
.btn-submit{width:100%;background:var(--blue);color:#fff;border:none;padding:12px;border-radius:7px;font-size:15px;font-weight:600;cursor:pointer}
.btn-submit:hover{background:#24507a}
.alert{background:#fdecec;color:#b23a3a;border:1px solid #f3c9c9;padding:10px 12px;border-radius:7px;font-size:14px;margin-bottom:16px}

/* Portal */
.portal{padding:50px 0}
.portal h2{font-size:26px;margin-bottom:6px}
.portal .sub{color:var(--grey);margin-bottom:26px}
.report-row{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--border);border-radius:9px;padding:16px 18px;margin-bottom:12px}
.report-row .name{font-weight:600}
.report-row .meta{color:var(--grey);font-size:13px}
.dl{background:var(--blue);color:#fff;padding:8px 14px;border-radius:6px;font-size:14px;font-weight:600}
.dl:hover{background:#24507a}

/* Generic page body */
.page{padding:56px 0}
.page h1{font-size:34px;margin-bottom:16px}
.page p{color:var(--grey);margin-bottom:14px;max-width:760px}
.page h3{margin:22px 0 8px}
.doc-list{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:10px}

@media(max-width:820px){
  .grid,.stats,.footer-top,.doc-list{grid-template-columns:1fr}
  .hero h1{font-size:32px}
  .nav{gap:14px;font-size:14px}
  .nav .hide-sm{display:none}
}