:root{
  --navy:#2F3E7D;
  --navy2:#3A4D8F;
  --sky:#8AAAE4;
  --ink:#23283a;
  --text:#5f6574;
  --muted:#7b8296;
  --bg:#ffffff;
  --soft:#F5F7FF;
  --border: rgba(20, 32, 70, .12);

  --header-h: 74px;

  --shadow: 0 18px 50px rgba(10, 22, 60, .10);
  --shadow2: 0 10px 22px rgba(10, 22, 60, .10);

  --r: 18px;
  --r2: 22px;

  --container: 1180px;
  --focus: 0 0 0 4px rgba(138,170,228,.35);
}

*{box-sizing:border-box}
html,body{height:100%; padding-top: var(--header-h)}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
a:focus-visible, button:focus-visible, input:focus-visible{outline:none; box-shadow: var(--focus); border-radius: 12px}
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}
.skip{position:absolute; left:-999px; top:12px; background:#111; color:#fff; padding:10px 12px; border-radius:12px; z-index:9999}
.skip:focus{left:12px}

.container{width:min(var(--container), calc(100% - 56px)); margin:0 auto}

/* Header */
.header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20,32,70,.10);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

.header__inner{height: var(--header-h); display:flex; align-items:center; justify-content:space-between; gap:16px}
.brand__logo{height: 34px; width:auto}
.nav{display:flex; gap:16px; font-weight:600; font-size:14px; color: var(--muted)}
.nav a{padding:10px 12px; border-radius:999px; transition: background .2s ease, color .2s ease}
.nav a:hover{background: rgba(138,170,228,.18); color: var(--navy2)}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 16px; border-radius:999px;
  border:1px solid transparent;
  font-weight:700; font-size:14px;
  cursor:pointer; user-select:none;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active{transform: translateY(1px)}
.btn--primary{
  background: linear-gradient(135deg, var(--navy2), #2940A6);
  color:#fff;
  box-shadow: 0 12px 30px rgba(41,64,166,.22);
}
.btn--primary:hover{box-shadow: 0 18px 46px rgba(41,64,166,.28)}
.btn--ghost{
  background: rgba(138,170,228,.16);
  color: var(--navy2);
  border-color: rgba(138,170,228,.18);
}
.btn--ghost:hover{background: rgba(138,170,228,.22); border-color: rgba(138,170,228,.28)}

/* Hero */
.hero{position:relative; overflow:hidden}
.hero__bg{
  position:absolute; inset:-1px;
  background:
    radial-gradient(900px 520px at 15% 20%, rgba(138,170,228,.25), rgba(0,0,0,0)),
    radial-gradient(800px 420px at 85% 0%, rgba(47,62,125,.18), rgba(0,0,0,0)),
    linear-gradient(180deg, #ffffff, #ffffff 50%, var(--soft));
  pointer-events:none;
}
.hero__grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: calc(92vh - var(--header-h));
  align-items:center;
  gap: 30px;
  padding: 54px 0 34px;
}

.hero__copy{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.hero__copy > *{max-width: 720px}
.kicker{margin:0 0 12px; font-size: clamp(18px, 1.6vw, 28px); color:#6d8fe7}
.h1{
  margin:0;
  color: var(--navy2);
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.08;
  font-size: clamp(36px, 3.1vw, 58px);
}
.sub{margin: 14px 0 0; color:#6c7590; font-size: clamp(16px, 1.2vw, 22px)}
.fine{margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height:1.55}

.email{
  margin-top: 24px;
  display:flex;
  gap: 14px;
  align-items:stretch;
  justify-content:center;
  width:100%;
  max-width: 720px;
}

/* field + button: same height, clean alignment */
.email__field{
  flex:1;
  height: 56px;
  display:flex;
  align-items:center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(20,32,70,.14);
  border-radius: 999px;
  padding: 0 18px;
  box-shadow: var(--shadow2);
}

/* Email button matches input height */
.email .btn{height:56px; padding:0 22px}

.email__icon{
  opacity:.65;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 18px;
  font-size: 15px;
  line-height: 1;
}

.email input{
  width:100%;
  height: 100%;
  border:0;
  outline:none;
  padding: 0;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
}

.email input::placeholder{color: rgba(95,101,116,.55)}

/* make the button match the field height and look balanced */
#emailBtn{
  flex: 1;
  height: 56px;
  padding: 0 22px;
  white-space: nowrap;
}

.chips{margin-top: 16px; display:flex; flex-wrap:wrap; gap:10px; justify-content:center}
.chip{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47,62,125,.12);
  background: rgba(245,247,255,.85);
  color: rgba(47,62,125,.82);
  font-size: 13px;
  font-weight: 700;
}

.hero__media{display:flex; justify-content:stretch}
.mediaCard{
  width:100%;
  border-radius: var(--r2);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.55);
  background:#fff;
}
.mediaCard picture, .mediaCard img{width:100%; height:100%}
.mediaCard img{object-fit:cover}

/* Sections */
.section{padding: 92px 0}
.section--soft{background: linear-gradient(180deg, var(--soft), #ffffff)}
.sectionHead{display:flex; flex-direction:column; gap:12px; margin-bottom: 44px}
.h2{
  margin:0;
  color: var(--navy2);
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height:1.12;
  font-size: clamp(30px, 2.5vw, 52px);
}
.lead{margin:0; color: var(--muted); font-size: 17px; line-height:1.65; max-width: 780px}

.grid{display:grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items:stretch}
.grid--survey{grid-template-columns: 1.05fr .95fr}

.card{
  background: #fff;
  border: 1px solid rgba(20,32,70,.10);
  border-radius: var(--r2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card--pad{padding: 26px 26px 22px}
.card--frame{padding: 14px}
.card--media{display:flex; flex-direction:column}
.card--media picture{flex:1; display:block; height:100%}
.card--media img{width:100%; height:100%; object-fit:cover}
.card--media img{width:100%; height:100%; object-fit:cover}

.prose{font-size: 16px; line-height: 1.9; color: var(--text)}
.prose p{margin:0 0 18px}
.prose strong{font-weight: 900; color: var(--navy2)}
.callout{
  margin-top: 18px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(138,170,228,.14);
  border: 1px solid rgba(138,170,228,.22);
  color: rgba(47,62,125,.88);
  font-size: 14px;
}
.callout strong{color: var(--navy2)}

.frame{
  width:100%;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(20,32,70,.10);
  background:#fff;
}
.frame iframe{width:100%; height: 980px; border:0; display:block}

.asideNote{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(20,32,70,.08);
  color: rgba(95,101,116,.85);
  font-size: 13px;
}
.badge{padding: 6px 10px; border-radius: 999px; background: rgba(47,62,125,.10); color: rgba(47,62,125,.90); font-weight: 800}
.sep{opacity:.55}

/* Toast */
.toast{
  display:none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(245,247,255,.9);
  border: 1px solid rgba(138,170,228,.28);
  color: rgba(47,62,125,.90);
  font-size: 13px;
}
.toast.is-show{display:block}
.toast.is-error{background: rgba(255,245,245,.95); border-color: rgba(255,214,214,.9); color:#8a1f1f}

/* Footer */
.footer{
  background: radial-gradient(1200px 500px at 20% 10%, rgba(138,170,228,.18), rgba(0,0,0,0)),
              radial-gradient(900px 500px at 85% 0%, rgba(47,62,125,.18), rgba(0,0,0,0)),
              #0f1637;
  color: rgba(255,255,255,.85);
  padding: 44px 0;
}
.footer__inner{display:flex; justify-content:space-between; align-items:flex-start; gap:20px}
.footer__logo{height: 30px; width:auto; filter: brightness(0) invert(1); opacity:.95}
.footer__left p{margin: 10px 0 0; color: rgba(255,255,255,.72); font-size: 14px}
.footer__right{display:flex; flex-direction:column; align-items:flex-end; gap:10px; font-size:14px}
/* Footer: only style text links, not social icon buttons */
.footer__right a:not(.socialLink){
  color: rgba(255,255,255,.92);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__right a:not(.socialLink):hover{background: rgba(255,255,255,.18)}

/* Footer social icons */
.footer .socialRow{display:flex;align-items:center;gap:10px}
.footer .socialLink{width:44px;height:44px;border-radius:999px;padding:0;border:1px solid rgba(255,255,255,.22);background: rgba(255,255,255,.08);color: rgba(255,255,255,.92);display:inline-flex;align-items:center;justify-content:center;transition: transform .15s ease, background .15s ease, border-color .15s ease}
.footer .socialLink:hover{transform: translateY(-1px);background: rgba(255,255,255,.14);border-color: rgba(255,255,255,.32)}
.footer .socialLink svg{width:20px;height:20px}
.copy{color: rgba(255,255,255,.70)}

@media (max-width: 1024px){
  .hero__grid{grid-template-columns:1fr; min-height: unset; padding: 40px 0 28px}
  .hero__media{order:-1}
  .nav{display:none}
}
@media (max-width: 860px){
  .grid{grid-template-columns:1fr}
  .frame iframe{height: 1120px}
  .email{flex-direction:column}
  /* Mobile CTA: ensure the input and button truly span the full width and
     avoid flex sizing quirks that can make the button look "small". */
  .email__field{flex:none; width:100%}
  #emailBtn{flex:none; width:100%}
  .btn--primary{width:100%}
  .footer__inner{flex-direction:column; align-items:flex-start}
  .footer__right{align-items:flex-start}
}

/* Extra-narrow phones: keep the CTA label from wrapping into an odd shape */
@media (max-width: 420px){
  #emailBtn{font-size: 15px; padding: 0 16px}
}
@media (max-width: 520px){
  .container{width:min(var(--container), calc(100% - 32px))}
  .header__inner{height: 68px}
  .brand__logo{height: 32px}
}


/* Ensure anchor links account for sticky header */
.section{scroll-margin-top: 96px}


/* ---------------- Contact page ---------------- */
.page--contact .bg{position:fixed; inset:0; z-index:-1}
.contactShell{
  /* The site header is fixed; reserve space so the card doesn't sit under it. */
  min-height: calc(100vh - var(--header-h));
  display:flex;
  align-items:center;
  justify-content:center;
  padding: calc(var(--header-h) + 28px) 16px 44px;
}

.contactCard{
  width: min(720px, 100%);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(20,32,70,.10);
  border-radius: 22px;
  box-shadow: var(--shad2);
  padding: 26px 18px 24px;
  position: relative;
}

.contactBack{
  position:absolute;
  left: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(20,32,70,.72);
  background: rgba(245,248,255,.9);
  border: 1px solid rgba(20,32,70,.12);
  box-shadow: var(--shad1);
  transition: transform .12s ease, background .12s ease;
}
.contactBack:hover{transform: translateY(-1px); background: rgba(240,244,255,1)}

.contactTitle{
  margin: 10px 0 10px;
  text-align:center;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3.8vw, 44px);
}
.contactSubtitle{
  margin: 0 0 22px;
  text-align:center;
  color: rgba(20,32,70,.78);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 28px);
}

.contactForm{display:flex; flex-direction:column; gap: 14px}
.cLabel{
  font-weight: 800;
  color: rgba(20,32,70,.92);
  font-size: 16px;
  margin-top: 4px;
}
.cField{
  background:#fff;
  border: 1px solid rgba(20,32,70,.12);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shad1);
}
.cField input, .cField textarea{
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 18px;
  color: rgba(20,32,70,.9);
  font-family: inherit;
}
.cField textarea{resize: vertical; min-height: 170px}
.cField input::placeholder, .cField textarea::placeholder{
  color: rgba(95,101,116,.55);
}

.recaptchaWrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  padding: 10px 0 0;
}
.recaptchaHint{margin:0; font-size: 12px; color: rgba(95,101,116,.75)}

.contactActions{display:flex; flex-direction:column; align-items:center; gap: 10px; margin-top: 8px}
.contactBtn{
  width: min(520px, 100%);
  height: 58px;
  border-radius: 999px;
  font-weight: 800;
}
.contactBtn[disabled]{opacity:.55; cursor:not-allowed}
.contactMsg{
  min-height: 20px;
  margin: 0;
  text-align:center;
  font-size: 14px;
  color: rgba(95,101,116,.85);
}
.contactMsg.is-ok{color: rgba(16,120,74,.95)}
.contactMsg.is-err{color: rgba(176,48,60,.95)}

@media (max-width: 520px){
  .contactCard{padding: 22px 14px 22px}
  .contactBack{left: 12px; top: 12px}
}

/* Social links (header + footer) */
.header__cta{display:flex;align-items:center;gap:12px;}
.socialRow{display:flex;align-items:center;gap:10px;}
.socialLink{width:34px;height:34px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid rgba(15,23,42,.12);background:rgba(15,23,42,.04);color:var(--ink);transition:transform .12s ease, background .12s ease, border-color .12s ease;}
.socialLink:hover{transform:translateY(-1px);background:rgba(15,23,42,.06);border-color:rgba(15,23,42,.18);}
.socialLink:focus-visible{outline:3px solid rgba(59,130,246,.35);outline-offset:2px;}

/* Keep header tidy on small screens */
@media (max-width: 820px){
  .header__cta{gap:10px;}
  .socialRow--header{display:none;}
}
