/* HPRA Home Shim: maps drop-in classes to the site's existing look */

:root{
  --bg: #f8fafc; --text:#111827; --muted:#4b5563; --line:rgba(0,0,0,0.08);
  --card:#ffffff; --primary:#2563eb; --primary-600:#1d4ed8; --accent:#0ea5e9;
  --shadow:0 10px 30px rgba(0,0,0,0.05); --radius:16px;
  /* Brand accents */
  --proton:#7c3aed; /* violet-600 */
  --proton-700:#6d28d9; /* violet-700 */
}

/* Base */
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;line-height:1.5}
*,*::before,*::after{box-sizing:border-box}
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:8px;top:8px;width:auto;height:auto;padding:.5rem .75rem;background:#fff;border:1px solid var(--line);border-radius:10px;z-index:999}

/* Layout */
.container{max-width:1100px;margin:0 auto;padding:0 1rem}
.section{padding:2.25rem 0}
/* Ensure main content has a solid white background (avoids global overlay tint) */
main{background:#fff}
.grid{display:grid;gap:1rem}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:860px){ .grid-2{grid-template-columns:1fr} }

/* Header */
.site-header{position:sticky;top:0;z-index:10;background:rgba(255,255,255,0.9);backdrop-filter:saturate(120%) blur(6px);border-bottom:1px solid var(--line)}
.site-header .nav{display:flex;align-items:center;justify-content:space-between;height:64px;gap:1rem}
.brand{display:inline-flex;align-items:center;gap:.6rem;font-weight:800;letter-spacing:.3px}
/* Avoid over-styling the logo image to prevent visual artifacts */
.brand .brand-mark{width:28px;height:28px;border-radius:6px;display:block}
.brand .brand-name{font-size:clamp(.95rem,2.2vw,1.05rem)}
.nav-links{display:flex;gap:.35rem;flex-wrap:wrap}
.nav-links a{padding:.45rem .7rem;border-radius:10px;text-decoration:none;color:var(--primary)}
.nav-links a:hover{background:rgba(37,99,235,0.08)}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.7rem 1rem;border-radius:999px;font-weight:600;text-decoration:none;border:1px solid transparent}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-600)}
.btn-secondary{background:#fff;color:var(--primary);border-color:var(--primary)}
.btn-secondary:hover{background:rgba(37,99,235,0.06)}
.btn-ghost{background:transparent;color:var(--primary)}
.btn-ghost:hover{background:rgba(37,99,235,0.06)}

/* Larger size helper for standout CTAs */
.btn-lg{padding:.9rem 1.25rem;font-size:1.05rem}

/* Proton-themed button */
.btn-proton{background:linear-gradient(135deg,var(--proton),var(--proton-700));color:#fff;box-shadow:0 8px 24px rgba(109,40,217,0.28)}
.btn-proton:hover{filter:brightness(.98);box-shadow:0 10px 28px rgba(109,40,217,0.36)}

/* Hero */
.hero{background:radial-gradient(1200px 500px at 50% -200px, rgba(37,99,235,0.08), transparent 60%)}
.hero .kicker{color:var(--primary);font-weight:800;letter-spacing:.02em;margin:0}
.hero h1{margin:.35rem 0 .9rem;font-size:clamp(1.8rem,3.6vw,2.6rem);line-height:1.2}
.lead{color:var(--muted);max-width:70ch}
.cta-row{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1rem}

/* Trust strip */
.trust-strip{display:flex;gap:.75rem;flex-wrap:wrap;list-style:none;margin:1rem 0 0;padding:0;color:var(--muted)}
.trust-strip li{padding:.35rem .6rem;border-radius:999px;border:1px dashed var(--line);background:#fff}

/* Cards, ribbons, and sections */
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:1rem}
.ribbon{display:inline-block;padding:.25rem .6rem;border-radius:999px;background:#eef2ff;color:#3730a3;font-weight:700;font-size:.8rem}
.text-muted{color:var(--muted)}

/* Stats */
.stats{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1rem}
.stat{flex:1 1 220px;padding:1rem;border-radius:12px;border:1px dashed var(--line);background:#fff}

/* Footer helpers */
.visually-hidden,.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,1px,1px);white-space:nowrap}

/* Proton CTA section highlight */
.proton-cta{background:radial-gradient(900px 380px at 50% -120px, rgba(124,58,237,0.12), transparent 60%);padding-bottom:1rem}
.proton-cta .container{display:flex;flex-direction:column;align-items:center;text-align:center}
.proton-cta .btn{margin-top:.1rem}
.proton-cta p{max-width:60ch;margin-bottom:0}


/* Large white footer section */
.footer-large{background:#fff;color:var(--text);border-top:1px solid var(--line);padding-top:2rem;padding-bottom:2rem}

@media (prefers-color-scheme: dark){
  /* Keep footer readable on dark backgrounds */
  .footer-large{background:#fff;color:#111827}
}

/* Responsive header nav stack */
@media (max-width:860px){
  .site-header .nav{flex-wrap:wrap;height:auto;padding-top:.35rem;padding-bottom:.35rem}
  /* Collapse menu: closed by default; open with [data-menu-open] via JS (bg.js) */
  .nav-links{width:100%;display:block;overflow:hidden;max-height:0;opacity:0;transition:max-height .25s ease, opacity .2s ease}
  .site-header[data-menu-open="true"] .nav-links{max-height:60vh;opacity:1}
  .site-header[data-menu-open="true"] .nav-links{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:.35rem}
  .nav-links a{display:block}
  .site-header[data-menu-open="true"] .nav-links a + a{border-top:1px solid rgba(0,0,0,.06)}
  /* Optionally hide long brand text on very narrow screens to save space */
  .brand .brand-name{display:none}
}

/* Toggle button (inserted by JS) */
.menu-toggle{appearance:none;border:1px solid var(--line);background:#fff;color:inherit;border-radius:10px;padding:.5rem .7rem;display:none;align-items:center;gap:.45rem;font-weight:600;cursor:pointer}
.menu-toggle svg{width:18px;height:18px}
@media (max-width:860px){ .menu-toggle{display:inline-flex} }

/* Dark mode adjustments */
@media (prefers-color-scheme: dark){
  .site-header[data-menu-open="true"] .nav-links{background:rgba(17,24,39,0.96);border-color:rgba(255,255,255,0.12);box-shadow:0 10px 30px rgba(0,0,0,0.4)}
  .site-header[data-menu-open="true"] .nav-links a + a{border-top-color:rgba(255,255,255,0.08)}
  .menu-toggle{background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.14);color:#e5e7eb}
  .menu-toggle:hover{background:rgba(255,255,255,0.12)}
}

/* ===== HPRA Full-Width CTA Band ===== */
.hpra-cta-band { position: relative; color: #fff; text-align: center; padding: clamp(4rem, 8vw, 6rem) 1rem; overflow: hidden;
  /* Use the same people image so it fits the site's assets; offer multiple paths for resilience */
  background:
    center/cover no-repeat url('/assets/img/people.png'),
    center/cover no-repeat url('assets/img/people.png'),
    center/cover no-repeat url('../assets/img/people.png');
}

/* semi-transparent overlay for contrast */
.hpra-cta-band__overlay { background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); padding: clamp(3rem, 5vw, 4rem) 1rem; border-radius: 0; }

.hpra-cta-band__content { max-width: 700px; margin: 0 auto; display: grid; gap: 1rem; }

.hpra-cta-band__eyebrow { text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.1em; color: #bcbcff; font-weight: 700; margin: 0; }

.hpra-cta-band__title { font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.2; margin: 0; }

.hpra-cta-band__text { font-size: 1.05rem; color: #e6e7ff; line-height: 1.6; margin-bottom: 0.5rem; }

/* email form */
.hpra-cta-band__form { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; }

.hpra-cta-band__form input { padding: 0.75rem 1rem; border-radius: 999px; border: none; min-width: 240px; font-size: 1rem; outline: none; }

.hpra-cta-band__form button, .hpra-cta-band__btn { background: #6c5ce7; color: #fff; border: none; border-radius: 999px; padding: 0.75rem 1.25rem; font-weight: 700; cursor: pointer; transition: background 0.2s ease; }
.hpra-cta-band__form button:hover, .hpra-cta-band__btn:hover { background: #5a4ad1; }

/* action buttons */
.hpra-cta-band__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; }

.hpra-cta-band__link { color: #fff; text-decoration: none; border: 2px solid transparent; border-radius: 999px; padding: 0.6rem 1.2rem; background: #6c5ce7; font-weight: 700; transition: all 0.2s ease; }
.hpra-cta-band__link:hover { background: #5a4ad1; }
.hpra-cta-band__link--outline { background: transparent; border-color: #fff; }
.hpra-cta-band__link--outline:hover { background: rgba(255, 255, 255, 0.15); }

/* assurance line */
.hpra-cta-band__assurance { font-size: 0.9rem; color: #d1d1ff; margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.hpra-cta-band__assurance .dot { width: 8px; height: 8px; background: #6c5ce7; border-radius: 50%; display:inline-block }

/* responsiveness */
@media (max-width: 768px) {
  .hpra-cta-band__form { flex-direction: column; }
  .hpra-cta-band__form input { width: 100%; }
}
/* ===== /HPRA Full-Width CTA Band ===== */

/* Solid header background after scroll for better contrast on busy backgrounds */
.site-header[data-scrolled="true"]{background:#fff;border-bottom-color:rgba(0,0,0,0.12)}
