:root{
  --brand-blue:#29497b;
  --text-blue:#2c4a76;
  --bg-inset-y: 10px;   /* top & bottom space */
  --bg-inset-x: 10px;   /* left & right space */
}

/* ========== HERO / BACKGROUND ========== */
html, body { height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.wb-hero{
  position: relative;
  min-height: 100dvh;
  padding: var(--bg-inset-y) var(--bg-inset-x);
  background-image: url("/static/img/background-assesment.png");
  background-repeat: no-repeat;
  background-position: 60% 30%;
  background-size: cover;
  background-origin: content-box;
  background-clip: content-box;
  background-color: #eef3f8;
  overflow: hidden;
}

/* ========== BRAND (top-left) ========== */
.wb-brandline{
  position: absolute;
  top: 10px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo (keep absolute positioning + final width rules) */
.wb-logo {
  position: absolute;
  top: 20px;
  left: 24px;
  width: clamp(830px, 30vw, 850px);   /* controls size properly */
  height: 160px;                       /* prevents vertical stretching */
  display: block;
}

/* Optional subtitle beside logo (as you had) */
.wb-subtitle{
  margin: 0;
  color: #1b2a44;
  font: 600 16px/1.2 "Roboto Slab", serif;
  letter-spacing: .2px;
  white-space: nowrap;
}

/* ========== TAGLINE (right) ========== */
.wb-tagline{
  position: absolute;
  margin: 0;
  text-align: left;
  font-family: "Roboto Slab", serif;
  font-weight: 400;
  color: var(--text-blue);

  /* current effective size/placement */
  font-size: clamp(50px, 5vw, 50px);
  line-height: 1.06;
  right: clamp(100px, 1vw, 120px);
  top: clamp(250px, 10vh, 150px);
  letter-spacing: 0.15px;
  line-height: 1.05;
}
.wb-tagline span{display: block;}

.wb-tagline span + span{          /* vertical gap between the words */
  margin-top: 6px;               /* bump to 12–16px if you want more */
}

/* ========== LOGIN BUTTON (center-left) ========== */
/* Keep only one definition with the final values you ended up with */
.wb-login-btn{
  position: absolute;
  left: clamp(120px, 15vw, 190px);   /* final left clamp */
  top: 50%;
  transform: translateY(-38%);
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 65px;
  width: 110px;
  padding: 0 40px;
  border-radius: 2%;
  background: var(--brand-blue);
  color: #fff;
  text-decoration: none;
  border: 1px solid #1f3660;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);

  font-family: "Roboto Slab", serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
}
.wb-login-btn:hover{ filter: brightness(1.04); }
.wb-login-btn:focus-visible{
  outline:3px solid rgba(41,73,123,.35);
  outline-offset:3px;
}
.wb-login-btn--low{
  position: static;
  transform: none;
  margin-top: 16px;
}

/* ========== ERROR + CONTACT PANEL ========== */
.wb-error{
  position: absolute;
  left: clamp(120px, 15vw, 190px);
  top: calc(50% - 120px);
  max-width: 520px;
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.wb-help-panel{
  position: absolute;
  left: clamp(120px, 15vw, 190px);
  top: calc(50% - 70px);
  width: clamp(280px, 34vw, 520px);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  backdrop-filter: blur(4px);
}
.wb-help-title{
  margin: 0 0 6px 0;
  font: 600 20px/1.2 "Roboto Slab", serif;
  color: #1b2a44;
}
.wb-help-text{
  margin: 0 0 10px 0;
  color: #334155;
}
.wb-help-list{
  margin: 0 0 14px 0;
  padding-left: 18px;
  color: #0f172a;
}
.wb-help-list a{
  color: #29497b;
  text-decoration: none;
}
.wb-help-list a:hover{ text-decoration: underline; }

/* ========== MOCK DROPDOWN (top-right role menu kept) ========== */
.wb-topbar{
  position:absolute; top:24px; right:24px;
  display:flex; align-items:center; gap:12px;
}

.wb-help{
  display:inline-flex; align-items:center; gap:8px;
  height:40px; padding:0 14px; border-radius:10px;
  background: rgba(255,255,255,.8);
  border:1px solid rgba(0,0,0,.08);
  color:#0f172a; text-decoration:none; font-weight:600;
  backdrop-filter: blur(4px);
}
.wb-help:hover{ filter:brightness(1.03); }
.wb-help-ico{
  width:20px; height:20px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%; border:2px solid #29497b; color:#29497b; font-weight:700; line-height:1;
}

.wb-role{ position:relative; }
.wb-role-btn{
  display:inline-flex; align-items:center; gap:8px;
  height:40px; padding:0 14px; border-radius:10px;
  background:#29497b; color:#fff; border:1px solid #1f3660; font-weight:600;
}
.wb-caret{
  width:0; height:0; display:inline-block; transform: translateY(1px);
  border-left:5px solid transparent; border-right:5px solid transparent; border-top:5px solid #fff;
}
.wb-role-menu{
  position:absolute; right:0; top: calc(100% + 8px);
  min-width: 240px; background:#fff; border:1px solid #e6e6e6;
  border-radius:12px; box-shadow:0 8px 28px rgba(0,0,0,.12);
  padding:.35rem 0; z-index: 20;
}
.wb-role-menu a{
  display:block; padding:.6rem 1rem; color:#111; text-decoration:none; font-weight:600;
}
.wb-role-menu a:hover{ background:#f3f4f6; }

/* Menu/button focus ring (shared) */
.wb-login-btn:focus-visible,
.wb-role-btn:focus-visible,
.wb-role-menu a:focus-visible,
.wb-help:focus-visible{
  outline:3px solid rgba(41,73,123,.35);
  outline-offset:3px;
}

/* ========== MISC (dev badge; no stacked mock links) ========== */
.mock-stack{ display:none; }
.mock-note{
  position:absolute;
  left: clamp(120px, 11vw, 190px);
  top: calc(50% + 230px);
  font-size:12px; color:#344054;
  background:#ffe08a; border:1px solid #ffd466; padding:6px 10px; border-radius:9px;
  max-width: 320px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px){
  .wb-login-btn{
    left:50%;
    transform: translate(-50%, -25%);
    height:56px; width:200px; font-size:19px;
  }
  .wb-error{
    left:50%;
    transform: translateX(-50%);
    top: 32%;
    width: min(90vw, 520px);
  }
  .wb-help-panel{
    left:50%;
    transform: translateX(-50%);
    top: 48%;
    width: min(90vw, 520px);
  }
  .wb-role-menu{ right:auto; left:0; }
  .wb-subtitle{ display:none; }
  .wb-logo{ width: clamp(80px, 18vw, 160px); }   /* keep your smaller logo on mobile */
  .wb-tagline{ right:24px; top: 26vh; font-size: clamp(28px, 9vw, 60px);}
}

@media (max-width: 768px){
  .wb-hero{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:1rem;
    padding:12px;
  }
  .wb-brandline{
    position:static;
    width:100%;
    display:flex;
    justify-content:center;
    margin-top:8px;
  }
  .wb-logo{
    position:static;
    width:min(78vw, 320px);
    height:auto;
  }
  .wb-topbar{
    top:12px;
    right:12px;
  }
  .wb-tagline{
    position:static;
    text-align:center;
    font-size:clamp(26px, 8vw, 38px);
    line-height:1.1;
    margin:8px 0 0;
  }
  .wb-login-btn{
    position:static;
    transform:none;
    margin:6px auto 0;
    width:min(72vw, 220px);
  }
  .wb-error,
  .wb-help-panel,
  .mock-note{
    position:static;
    transform:none;
    left:auto;
    top:auto;
    width:min(92vw, 520px);
    margin:8px auto 0;
  }
}

@media (max-width: 480px){
  .wb-role-btn{ height:36px; padding:0 10px; font-size:.9rem; }
  .wb-login-btn{ height:52px; font-size:18px; }
  .wb-tagline{ font-size:clamp(22px, 9vw, 30px); }
}
